:root {
  --ink: #07103a; --muted: #656d8e; --line: #e1e5f0; --bg: #f4f6fc; --card: #fff; --nav: #0a0f2a;
  --blue: #0b3bff; --blue-deep: #0726c9; --orange: #ff6a1f; --gold: #ffb800; --lav: #b9a4ff;
  --pink: #ff5fa8; --mint: #36f1b6; --cyan: #4de4ff; --danger: #c0174f;
  --font-display: 'Outfit', system-ui, sans-serif; --font-body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.03em; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.muted { color: var(--muted); }
.boot { padding: 32px; }
.top { padding: 22px clamp(18px, 4vw, 52px); color: #fff; background: var(--nav); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { color: #fff; text-decoration: none; font: 800 23px var(--font-display); letter-spacing: -.05em; }
.brand em { color: var(--orange); font-style: normal; }
.top small { color: rgba(255,255,255,.68); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 34px 20px 70px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.55); border-radius: 20px; padding: 22px; box-shadow: 0 18px 50px -34px rgba(0,0,0,.72), 0 1px 0 rgba(255,255,255,.65) inset; color: var(--ink); }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card h2 { font-size: 20px; }
.stack { display: grid; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font: 700 14px var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: var(--nav); background: var(--orange); box-shadow: 0 8px 22px -10px rgba(255,106,31,.8); }
.btn.primary:hover { background: #ff8546; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 12% 8%, rgba(11,59,255,.08), transparent 35%), radial-gradient(ellipse at 95% 88%, rgba(255,106,31,.08), transparent 34%), var(--bg); }
.auth-card { width: min(440px, 100%); padding: clamp(26px, 6vw, 38px); border: 1px solid var(--line); background: #fff; border-radius: 22px; box-shadow: 0 18px 48px -32px rgba(7,16,58,.32); display: grid; gap: 18px; }
.auth-card .brand { color: var(--ink); }
.auth-card h1 { color: var(--ink); font-size: 30px; }
.auth-card > .muted { margin-top: -12px; }
.auth-card form { display: grid; gap: 14px; }
.error { min-height: 1.3em; color: var(--danger); }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 15px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.grow { min-width: 0; flex: 1; }
.sub { display: block; color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; padding: 4px 11px; border-radius: 99px; background: #e9edff; color: #233d9a; font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.chip.s-done, .chip.s-accepted, .chip.s-launched { background: #ddfff3; color: #08714f; }
.chip.s-doing, .chip.s-sent, .chip.s-development, .chip.s-review { background: #fff3d0; color: #7b5500; }
.chip.s-declined, .chip.s-expired, .chip.s-on_hold { background: #ffe5ed; color: #9a1749; }
.progress { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #8a4dff, var(--orange)); }
.details { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.quote-items { width: 100%; border-collapse: collapse; }
.quote-items th, .quote-items td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.quote-items th:last-child, .quote-items td:last-child { text-align: right; }
.quote-total { text-align: right; font-weight: 700; padding-top: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note { border-top: 1px solid var(--line); padding: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.note small { color: var(--muted); }
.empty { padding: 18px 0; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: #fff6d6; color: #6b4e00; }
.project-work > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.project-work > header h3 { margin: 0; }
.portal-work-grid { display: grid; gap: 12px; }
.portal-work-item { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid #8c95b5; border-radius: 14px; background: #fbfcff; }
.portal-work-item.status-in_progress { border-left-color: var(--blue); }
.portal-work-item.status-in_review { border-left-color: #df9e00; }
.portal-work-item.status-blocked { border-left-color: var(--danger); }
.portal-work-item.status-done { border-left-color: #0e9b70; }
.portal-work-item > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.portal-work-item h4 { margin: 0; font: 700 17px/1.3 var(--font-display); }
.portal-work-item > header p { margin-top: 5px; color: var(--muted); white-space: pre-wrap; }
.work-thread { display: grid; gap: 8px; }
.work-message { padding: 10px 12px; border-radius: 12px; background: #eef1fc; overflow-wrap: anywhere; }
.work-message.from-client { background: #fff4e9; }
.work-message p { white-space: pre-wrap; }
.work-message small { display: block; margin-top: 5px; color: var(--muted); }
.portal-top { position: sticky; z-index: 20; top: 0; min-height: 74px; display: flex; align-items: center; gap: 30px; padding: 12px clamp(20px, 6.5vw, 92px); border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; background: linear-gradient(112deg, #1645ed, var(--blue) 55%, var(--blue-deep)); box-shadow: 0 8px 22px -18px rgba(7,16,58,.5); }
.portal-top .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.03em; text-transform: lowercase; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.7); border-radius: 11px; color: var(--blue-deep); background: #fff; font-size: 19px; }
.portal-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.portal-nav [role="tab"] { min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; color: rgba(255,255,255,.78); background: transparent; font: 500 13px var(--font-body); cursor: pointer; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.portal-nav [role="tab"]:hover, .portal-nav [role="tab"][aria-selected="true"] { border-bottom-color: var(--orange); color: #fff; }
.portal-nav [role="tab"]:focus-visible { outline-color: var(--gold); outline-offset: 2px; }
.portal-tab-panel[hidden] { display: none !important; }
.portal-tab-panel > .status-section-heading { margin-bottom: 18px; }
.portal-tab-panel > .card + .card { margin-top: 16px; }
.row-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.portal-account { display: flex; align-items: center; gap: 11px; }
.account-initials { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.6); border-radius: 12px; color: #fff; background: rgba(5,8,23,.17); font-size: 12px; font-weight: 700; }
.account-name { max-width: 140px; overflow: hidden; color: rgba(255,255,255,.85); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-top .btn { min-height: 36px; padding-inline: 13px; border-radius: 12px; color: #fff; background: rgba(5,8,23,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); font-size: 12px; }
.portal-top .btn:hover { background: rgba(5,8,23,.28); }
.portal-wrap { max-width: 1260px; padding-top: 42px; }
.portal-welcome { margin-bottom: 34px; }
.portal-welcome .eyebrow, .eyebrow { color: #777f94; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-welcome h1 { margin-top: 7px; color: var(--ink); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -.045em; }
.status-project-list { display: grid; gap: 54px; }
.status-project-list > .empty { padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: #fff; }
.status-project { display: grid; gap: 18px; }
.status-project-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 10px 0 8px; }
.status-project-heading h2 { max-width: 780px; margin: 12px 0 8px; font-size: clamp(44px, 7vw, 86px); font-weight: 500; line-height: .98; letter-spacing: -.065em; }
.status-project-heading > div > p:last-child { max-width: 610px; color: var(--muted); font-size: 16px; }
.updated-stamp { flex: none; padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; font-size: 12px; }
.updated-stamp strong { font-weight: 500; }
.status-summary-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, .95fr); gap: 16px; }
.status-progress-card { min-height: 240px; display: flex; flex-direction: column; justify-content: center; padding: clamp(25px, 4vw, 38px); border: 1px solid #dce3fb; border-radius: 20px; color: var(--ink); background: linear-gradient(135deg, #fff 0%, #eef2ff 100%); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); }
.status-progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.status-eyebrow { color: #656d8e; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-progress-head h3 { margin-top: 7px; font-size: 22px; letter-spacing: -.02em; }
.progress-value { color: var(--blue); font: 700 clamp(32px, 5vw, 44px)/1 var(--font-display); }
.status-progress-track { height: 9px; margin-top: 30px; overflow: hidden; border-radius: 99px; background: #dfe4f3; }
.status-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.status-progress-dates { display: flex; justify-content: space-between; gap: 14px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.status-context-card { display: grid; align-content: start; gap: 12px; padding: 29px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); }
.status-context-card h3 { font-size: 22px; }
.context-health { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; color: #18714f; background: #e8f7ee; font-size: 11px; font-weight: 700; }
.context-health i { width: 8px; height: 8px; border-radius: 50%; background: #36a276; }
.context-health.has-blockers { color: #9a1749; background: #ffe5ed; }
.context-health.has-blockers i { background: #c0174f; }
.context-update { color: #596770; font-size: 13px; white-space: pre-wrap; }
.status-context-card > small { color: #899197; font-size: 11px; }
.next-step-box { display: grid; gap: 6px; margin-top: 4px; padding: 17px 19px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; color: #07103a; background: #fff; }
.next-step-box strong { font: 700 15px var(--font-display); }
.next-step-box span { color: #68747b; font-size: 13px; }
.status-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status-panel { min-width: 0; padding: 25px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); }
.status-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.status-section-heading h2, .status-section-heading h3 { color: #122f49; font-size: 22px; }
.status-section-heading > .eyebrow { white-space: nowrap; }
.status-work-list { list-style: none; padding: 0; margin: 0; }
.status-work-list > li { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #ecebe6; }
.status-work-list .grow { display: grid; gap: 2px; }
.status-work-list strong { color: #22384a; font-size: 13px; }
.status-work-list .sub { max-width: 360px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-status-dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #22664e; background: #e7f6ee; font-size: 14px; }
.dot-in_progress { color: #174d83; background: #e8f1fb; }
.dot-in_review { color: #856000; background: #fff5d6; }
.dot-blocked { color: #9a1749; background: #ffe5ed; }
.dot-todo { color: #717b81; background: #eef0f1; }
.status-work-list .chip { padding: 4px 8px; font-size: 10px; }
.status-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 5px; list-style: none; padding: 0; margin: 7px 0 0; }
.timeline-step { position: relative; display: grid; justify-items: start; align-content: start; gap: 8px; min-width: 0; padding-top: 25px; color: #78838a; }
.timeline-step::before { position: absolute; top: 9px; left: 13px; right: -5px; height: 2px; content: ""; background: #e2e5e5; }
.timeline-step:last-child::before { display: none; }
.timeline-marker { position: absolute; z-index: 1; top: 0; left: 5px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #d4d9db; border-radius: 50%; color: #fff; background: #fff; font-size: 10px; }
.timeline-step.is-done .timeline-marker { border-color: #2f9e74; background: #2f9e74; }
.timeline-step.is-current .timeline-marker { border-color: var(--orange); box-shadow: 0 0 0 4px #ffe5d7; }
.timeline-step strong { max-width: 130px; color: #263c4c; font-size: 11px; line-height: 1.35; }
.timeline-step small { color: #879198; font-size: 10px; }
.client-action { display: grid; gap: 3px; margin-top: 15px; padding: 11px 13px; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: #fff0e5; }
.client-action strong { color: #66510a; font-size: 12px; }
.client-action span { color: #737d80; font-size: 11px; }
.feature-overview { padding: 8px 0; }
.feature-overview > .status-section-heading { align-items: end; margin-bottom: 15px; }
.feature-overview .status-section-heading h3 { margin-top: 5px; font-size: 25px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.feature-card { min-width: 0; display: grid; align-content: start; gap: 11px; padding: 19px; border: 1px solid var(--line); border-top: 3px solid #adb5b9; border-radius: 16px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); }
.feature-in_progress { border-top-color: #4284ca; }
.feature-in_review { border-top-color: #e8ae20; }
.feature-blocked { border-top-color: #d45775; }
.feature-done { border-top-color: #36a276; }
.feature-number { color: #8a9498; font: 700 10px var(--font-display); letter-spacing: .12em; }
.feature-heading { display: grid; gap: 8px; justify-items: start; }
.feature-heading h3 { color: #19364c; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.feature-heading .chip { font-size: 10px; }
.feature-description { min-height: 38px; color: #6d797f; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.feature-due { color: #858e92; font-size: 11px; }
.feature-review { padding: 8px 10px; border-radius: 6px; color: #785a00; background: #fff6d8; font-size: 11px; font-weight: 700; }
.test-site-panel { display: flex; align-items: center; gap: 17px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); color: var(--ink); }
.test-site-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: var(--blue); font-size: 21px; }
.test-site-copy { flex: 1; min-width: 0; }
.test-site-copy p { margin-top: 4px; color: #68747b; font-size: 13px; }
.test-site-link { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 15px; border-radius: 14px; color: var(--nav); background: var(--orange); font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px -10px rgba(255,106,31,.8); }
.test-site-link:hover { background: #ff8546; transform: translateY(-2px); }
.project-conversation-card { display: grid; gap: 16px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); color: var(--ink); }
.project-conversation-card .status-section-heading { margin-bottom: 0; }
.project-conversation-card .status-section-heading h3 { margin-top: 4px; }
.project-conversation-card .status-section-heading p { margin-top: 5px; color: #68747b; font-size: 13px; }
.project-thread { display: grid; gap: 9px; }
.project-thread .work-message { background: #f0f2f3; }
.project-thread .work-message.from-client { background: #fff3df; }
.project-message-form { display: grid; justify-items: start; gap: 9px; padding-top: 15px; border-top: 1px solid #e9e9e3; }
.project-message-form .field { width: 100%; }
.project-message-form textarea { min-height: 76px; }
.project-message-form .error:empty { display: none; }
.project-message-form .btn { min-height: 36px; }
.project-updates { padding: 20px 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 24px -20px rgba(7,16,58,.35); color: var(--ink); }
.portal-extras { margin-top: 10px; padding-top: 12px; }
.portal-extras > .status-section-heading { margin-bottom: 16px; }
.portal-extras .grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
@media (max-width: 600px) {
  .top { align-items: flex-start; flex-direction: column; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 8px; }
  .quote-items th:nth-child(2), .quote-items td:nth-child(2) { display: none; }
  .portal-work-item > header { flex-direction: column; }
  .test-site-panel { align-items: flex-start; flex-wrap: wrap; }
  .test-site-link { margin-left: 61px; }
  .project-conversation-card { padding: 20px; }
  .portal-top { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
  .portal-nav { order: 3; width: 100%; gap: 20px; margin: 0; overflow-x: auto; }
  .portal-account { margin-left: auto; }
}
@media (max-width: 760px) {
  .portal-top { flex-wrap: wrap; gap: 12px; padding: 12px 18px; }
  .portal-nav { order: 3; width: 100%; justify-content: center; gap: 20px; margin: 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.12); }
  .portal-account { margin-left: auto; }
  .account-name { display: none; }
  .portal-wrap { padding-top: 30px; }
  .status-project-heading { align-items: flex-start; flex-direction: column; }
  .status-project-heading h2 { font-size: clamp(44px, 12vw, 68px); }
  .status-summary-grid, .status-work-grid { grid-template-columns: 1fr; }
  .status-progress-card { min-height: 220px; }
  .status-panel { padding: 20px; }
  .status-timeline { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
