:root {
  --green-950: #063b29;
  --green-900: #074a33;
  --green-800: #075c3d;
  --green-700: #0b6b45;
  --green-600: #16845a;
  --green-200: #bce5d0;
  --green-100: #ddf3e8;
  --green-50: #eff9f4;
  --red: #c83b3b;
  --red-50: #fff3f2;
  --ink: #17211c;
  --ink-2: #2a3931;
  --muted: #697870;
  --muted-2: #94a098;
  --line: #dfe7e2;
  --line-soft: #edf2ef;
  --surface: #fff;
  --page: #f5f8f6;
  --amber: #a96407;
  --amber-50: #fff7e8;
  --blue: #315b96;
  --blue-50: #eff5ff;
  --shadow: 0 16px 40px rgba(8, 54, 37, .07);
  --sidebar-width: 248px;
  --topbar-height: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; text-decoration: none; }
a, a:link, a:visited, a:hover, a:active, a:focus { text-decoration: none; }
svg { display: block; }

.auth-screen { height: 100dvh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 15% 10%, rgba(188,229,208,.55), transparent 34%), linear-gradient(135deg, #f9fcfa 0%, #eff7f2 100%); }
.auth-header { width: min(1160px, calc(100% - 48px)); min-height: 84px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { display: block; height: 36px; width: auto; }
.brand-logo-on-dark { height: 34px; padding: 6px 8px; background: #fff; border-radius: 8px; }
.auth-brand span { color: var(--green-800); font-size: 1rem; font-weight: 800; letter-spacing: .13em; }
.auth-brand small { padding-left: 12px; color: var(--muted); border-left: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.auth-actions { display: flex; gap: 9px; }
.button-ghost { color: var(--green-800); background: transparent; border-color: rgba(11,107,69,.2); }
.button-ghost:hover:not(:disabled) { background: rgba(255,255,255,.7); border-color: rgba(11,107,69,.4); }
.auth-main { width: min(1160px, calc(100% - 48px)); flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,500px); grid-template-rows: minmax(0,1fr); align-items: stretch; gap: clamp(50px, 9vw, 130px); margin: 0 auto; padding: 24px 0; overflow: hidden; }
.auth-intro { display: flex; flex-direction: column; justify-content: center; max-width: 680px; min-height: 0; }
.auth-intro h1 { margin: 10px 0 16px; color: var(--green-950); font-size: clamp(2.25rem, 4.2vw + 0.6rem, 3.35rem); line-height: 1.15; letter-spacing: -.03em; }
.auth-intro > p:last-of-type { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 0.45vw + 0.95rem, 1.25rem); line-height: 1.6; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.auth-benefits span { padding: 9px 12px; color: var(--green-800); background: rgba(255,255,255,.72); border: 1px solid rgba(11,107,69,.14); border-radius: 999px; font-size: .8rem; font-weight: 650; }
.auth-benefits span::before { content: "✓"; margin-right: 7px; color: var(--green-600); }
.auth-card { min-height: 0; max-height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 36px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 28px 80px rgba(8,54,37,.12); }
.auth-card.is-access { justify-content: flex-start; }
.auth-panel { display: none; }
.auth-panel.is-visible { display: block; }
.auth-panel h2 { margin: 6px 0 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.auth-copy { margin: 0 0 24px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.auth-copy strong { color: var(--ink-2); font-weight: 700; }
.auth-code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.code-entry { display: grid; gap: 8px; }
.code-entry-label { color: var(--ink-2); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-box { width: 100%; min-height: 58px; padding: 0; color: var(--ink); text-align: center; background: #fff; border: 1px solid #ced9d2; border-radius: 10px; font-size: 1.45rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.code-box:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22,132,90,.1); outline: none; }
.auth-panel form > .full-button { width: 100%; margin-top: 18px; }
.auth-note { margin: 19px 0 0; padding-top: 17px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: .85rem; line-height: 1.55; }
.auth-back { display: flex; justify-content: flex-end; width: 100%; margin-top: 20px; text-align: right; }
.auth-feedback { margin-top: 20px; padding: 13px 14px; color: var(--green-900); background: var(--green-50); border-left: 3px solid var(--green-600); border-radius: 8px; font-size: .9rem; line-height: 1.55; }
.auth-feedback.is-error { color: #8b2828; background: var(--red-50); border-left-color: var(--red); }
.auth-feedback.is-notice { color: #76501a; background: var(--amber-50); border-left-color: var(--amber); }
.auth-footer { width: min(1160px, calc(100% - 48px)); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 20px 0 28px; color: var(--muted); border-top: 1px solid rgba(11,107,69,.12); font-size: .85rem; }
.auth-footer-links { display: flex; align-items: center; gap: 18px; }
.auth-footer a { color: var(--green-700); font-weight: 750; text-decoration: none; }
.auth-footer .auth-admin-link {
  margin-left: auto;
  color: var(--muted-2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .28;
  transition: opacity .2s ease, color .2s ease;
}
.auth-footer .auth-admin-link:hover,
.auth-footer .auth-admin-link:focus-visible {
  color: var(--green-800);
  opacity: .7;
}

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; color: rgba(255,255,255,.74); background: linear-gradient(180deg, #063b29 0%, #06452f 100%); }
.brand-wrap { min-height: 87px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; }
.brand-name { color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .12em; }
.brand-tag { color: #79cba5; font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.sidebar-close { display: none; color: #fff; }
.project-switcher { display: grid; grid-template-columns: 38px minmax(0,1fr) 10px; align-items: center; gap: 11px; width: 100%; margin: 0; padding: 12px; color: inherit; text-align: left; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; cursor: pointer; }
.project-switcher:hover { background: rgba(255,255,255,.1); }
.sidebar-switcher { position: relative; margin: 14px 14px 10px; }
.sidebar-projects { margin: 16px 14px 12px; }
.sidebar-projects-label { margin: 0 4px 8px; color: rgba(255,255,255,.42); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-project-list { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.sidebar-project-item { width: 100%; min-height: 48px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 10px; color: rgba(255,255,255,.78); text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; cursor: pointer; }
.sidebar-project-item:hover { color: #fff; background: rgba(255,255,255,.09); }
.sidebar-project-item.is-current { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(130,221,177,.35); }
.sidebar-project-item .project-avatar { width: 32px; height: 32px; font-size: .7rem; }
.sidebar-project-item small, .sidebar-project-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-project-item small { color: rgba(255,255,255,.42); font-size: .54rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-project-item strong { color: inherit; font-size: .78rem; line-height: 1.25; }
.project-switcher-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 6; padding: 10px; background: #05291f; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.switcher-caret { width: 8px; height: 8px; margin-top: -2px; border-right: 1.5px solid rgba(255,255,255,.55); border-bottom: 1.5px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.project-switcher[aria-expanded="true"] .switcher-caret { margin-top: 4px; transform: rotate(-135deg); }
.is-choosing-project .main-nav { display: none; }
.is-choosing-project .sidebar-switcher { display: none; }
.is-choosing-project .top-new-request { display: none; }
body.is-choosing-project .mobile-nav { display: none !important; }
body.is-choosing-project { padding-bottom: 0; }
.workspace-project-chip { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.workspace-project-chip select { min-height: 36px; min-width: 160px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; font-weight: 650; }
.project-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green-950); background: #fff; border-radius: 10px; font-size: .78rem; font-weight: 800; }
.project-switcher-copy { min-width: 0; }
.project-switcher-copy small, .project-switcher-copy strong { display: block; }
.project-switcher-copy small { margin-bottom: 4px; color: rgba(255,255,255,.39); font-size: .54rem; font-weight: 800; letter-spacing: .1em; }
.project-switcher-copy strong { overflow: hidden; color: #fff; font-size: .75rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher-copy select { width: 100%; padding: 2px 18px 2px 0; color: #fff; background: transparent; border: 0; outline: 0; font-size: .72rem; font-weight: 750; }
.project-switcher-copy select option { color: var(--ink); background: #fff; }
.status-dot { width: 7px; height: 7px; background: #79d5a8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(121,213,168,.1); }
.status-dot.is-paused { background: #d4b06a; box-shadow: 0 0 0 4px rgba(212,176,106,.12); }
.account-project-list { display: grid; gap: 14px; }
.account-project-card { display: grid; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.account-project-card.is-current { border-color: #cfe6d9; box-shadow: 0 10px 28px rgba(8,54,37,.06); }
.account-project-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.account-project-card header div { min-width: 0; }
.account-project-card h3 { margin: 4px 0 2px; font-size: 1.08rem; }
.account-project-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.account-project-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.account-project-facts div { padding: 10px 12px; background: var(--green-50); border-radius: 10px; }
.account-project-facts small { display: block; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-project-facts strong { display: block; margin-top: 4px; color: var(--green-950); font-size: .92rem; }
.account-project-alert { padding: 10px 12px; color: #8b5b10; background: var(--amber-50); border-radius: 10px; font-size: .86rem; font-weight: 650; }
.account-project-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project-flag { color: var(--green-700); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-flag.is-paused { color: var(--amber); }
#overview-projects-copy { margin: 4px 0 0; color: var(--muted); font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
@media (max-width: 700px) { .account-project-facts { grid-template-columns: 1fr; } }
.invoice-list { display: grid; gap: 12px; }
.invoice-card { display: grid; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.invoice-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.invoice-card h3 { margin: 4px 0 0; font-size: 1.02rem; }
.invoice-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.invoice-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .84rem; }
.invoice-amount { color: var(--green-950); font-weight: 800; }
.invoice-card.is-due { border-color: #e3c48a; background: linear-gradient(180deg, #fffdf8 0%, #fff 55%); box-shadow: 0 10px 28px rgba(169, 100, 7, .06); }
.invoice-card.is-paid { background: #fbfefc; }
.payment-hero,
.billing-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-bottom: 18px; padding: 20px 22px; background: linear-gradient(180deg, #eff9f4 0%, #fff 78%); border: 1px solid #d6eee1; border-radius: 18px; }
.billing-strip-copy { flex: 1 1 180px; min-width: 160px; }
.billing-strip-copy h2,
.payment-hero-top h2 { margin: 4px 0 4px; font-size: 1.15rem; }
.billing-strip-copy p,
.payment-hero-top p { margin: 0; color: var(--muted); }
.billing-strip-amount,
.payment-hero-amount { color: var(--green-950); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.billing-strip-aside { display: grid; justify-items: end; gap: 10px; margin-left: auto; }
.billing-strip-stats,
.invoice-balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 320px; }
.billing-strip-stats div,
.invoice-balance div { padding: 10px 12px; background: var(--green-50); border-radius: 10px; }
.billing-strip-stats span,
.invoice-balance span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.billing-strip-stats strong,
.invoice-balance strong { display: block; margin-top: 4px; color: var(--green-950); font-size: .95rem; font-variant-numeric: tabular-nums; }
.billing-strip-stats div:last-child,
.invoice-balance div:last-child { background: var(--amber-50); }
.billing-strip-stats div:last-child strong,
.invoice-balance div:last-child strong { color: #8b5b10; }
.billing-strip-stats.is-cleared div:last-child,
.invoice-balance.is-cleared div:last-child { background: var(--green-50); }
.billing-strip-stats.is-cleared div:last-child strong,
.invoice-balance.is-cleared div:last-child strong { color: var(--green-950); }
.billing-panel { overflow: visible; }
#page-payments > .card { margin-top: 16px; }
.billing-panel .panel-heading,
.billing-panel .admin-section-heading { margin-bottom: 12px; }
.billing-table-wrap { overflow-x: auto; margin: 0 -4px; }
.billing-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.billing-table th { padding: 10px 12px; color: var(--muted-2); text-align: left; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.billing-table td { padding: 14px 12px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: .9rem; vertical-align: middle; }
.billing-table tbody tr:last-child td { border-bottom: 0; }
.billing-table tbody tr:hover td { background: #fbfefc; }
.billing-table td strong, .billing-table td small { display: block; }
.billing-table td strong { color: var(--ink-2); font-size: .95rem; }
.billing-table td small { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.billing-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.billing-table td:last-child { text-align: right; overflow: visible; }
.billing-table th.num { text-align: right; }
.billing-table tr.is-due td { background: #fffdf8; }
.billing-table tr.is-paid td { background: #fbfefc; }
.billing-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.billing-table .button { min-height: 32px; padding: 0 11px; font-size: .68rem; }
.row-menu { position: relative; display: inline-flex; justify-content: flex-end; }
.row-menu-toggle { width: 34px; height: 34px; min-height: 34px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 1.15rem; font-weight: 800; line-height: 1; letter-spacing: .12em; border-radius: 9px; }
.row-menu-toggle:hover, .row-menu.is-open .row-menu-toggle { background: var(--green-50); }
.row-menu-list { position: fixed; z-index: 40; min-width: 176px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(8, 54, 37, .14); display: grid; }
.row-menu-list[hidden] { display: none !important; }
.row-menu-item { width: 100%; min-height: 38px; padding: 0 12px; border: 0; background: transparent; text-align: left; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-2); border-radius: 8px; cursor: pointer; }
.row-menu-item:hover { background: var(--green-50); }
.billing-table .row-menu-item, .admin-table .row-menu-item { min-height: 38px; padding: 0 12px; font-size: .88rem; }
.table-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 12px; color: var(--muted); font-size: .85rem; }
.table-pager:empty { display: none; }
.table-pager-nav { display: flex; align-items: center; gap: 8px; }
.table-pager .button { min-height: 34px; padding: 0 12px; }
.admin-heading-actions .search-field,
.billing-panel .search-field { width: min(240px, 100%); }
.status-pill { display: inline-flex; padding: 5px 8px; color: var(--green-800); background: var(--green-50); border-radius: 999px; font-size: .57rem; font-weight: 800; white-space: nowrap; }
.billing-table .status-pill { letter-spacing: .04em; text-transform: uppercase; }
.status-pill.is-pending, .status-pill.is-review, .status-pill.is-part, .status-pill.is-due { color: #8b5b10; background: var(--amber-50); }
.status-pill.is-rejected, .status-pill.is-overdue, .status-pill.is-cancelled { color: #8b2828; background: var(--red-50); }
.status-pill.is-draft { color: var(--muted); background: var(--line-soft); }
.status-pill.is-sent, .status-pill.is-paid { color: var(--green-800); background: var(--green-50); }
.payment-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; align-items: start; }
.payment-column .panel-heading { margin-bottom: 14px; }
.compact-field { display: flex; align-items: center; gap: 10px; margin: 0; }
.compact-field > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.compact-field select { min-width: 180px; min-height: 42px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 650; }
.bank-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.bank-facts div { display: grid; gap: 4px; padding: 10px 12px; background: var(--green-50); border-radius: 10px; }
.bank-facts span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bank-facts strong { color: var(--green-950); font-size: .95rem; }
#bank-transfer-body p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .payment-columns { grid-template-columns: 1fr; }
  .payment-hero-top { flex-direction: column; align-items: flex-start; }
  .billing-strip-aside { justify-items: start; margin-left: 0; }
}
@media (max-width: 640px) { .invoice-balance, .bank-facts, .billing-strip-stats { grid-template-columns: 1fr; } }
.admin-page[data-admin-view="invoices"] .section-tabs { margin: 0 0 18px; }
#admin-billing-card { margin-bottom: 18px; }
#admin-billing-card .form-grid { margin-top: 14px; }
#admin-billing-card .admin-agreement-toolbar { margin-top: 14px; }
#admin-bank-card { margin-bottom: 18px; }
#admin-bank-card .admin-agreement-toolbar { margin-top: 14px; }
.admin-billing-form-card { margin-top: 16px; }
.admin-billing-form-card .admin-agreement-toolbar { margin: 16px 0 0; }
#admin-billing-remaining { font-size: 1.25rem; letter-spacing: -.02em; }
#admin-payment-summary { margin-top: 12px; }
.main-nav { display: grid; gap: 5px; padding: 5px 14px; }
.nav-item { position: relative; width: 100%; min-height: 45px; display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 13px; color: rgba(255,255,255,.62); text-align: left; background: transparent; border: 0; border-radius: 9px; font-size: .9rem; font-weight: 650; cursor: pointer; transition: color .16s ease, background .16s ease; }
.nav-item svg { width: 19px; height: 19px; fill: currentColor; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 25px; background: #82ddb1; border-radius: 0 3px 3px 0; }
.nav-count { min-width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.11); border-radius: 999px; font-size: .6rem; }
.sidebar-footer { margin-top: auto; padding: 20px 17px 22px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-account { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--green-600); border: 1px solid rgba(255,255,255,.13); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { color: #fff; font-size: .73rem; }
.sidebar-account small { margin-top: 3px; color: rgba(255,255,255,.43); font-size: .63rem; }
.privacy-line { display: flex; align-items: center; gap: 7px; margin: 17px 2px 0; color: rgba(255,255,255,.35); font-size: .58rem; }
.privacy-line span { width: 6px; height: 6px; background: #72cfa0; border-radius: 50%; }
.sidebar-scrim { display: none; }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 50px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.breadcrumb span { color: var(--muted-2); }
.breadcrumb b { color: #c6d0ca; font-weight: 400; }
.breadcrumb strong { color: var(--ink-2); }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--green-700); background: var(--green-50); }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.icon-button.row-menu-toggle { width: 34px; height: 34px; min-height: 34px; color: var(--ink-2); background: #fff; border-color: var(--line); font-size: 1.15rem; font-weight: 800; letter-spacing: .12em; }
.icon-button.row-menu-toggle:hover, .row-menu.is-open .row-menu-toggle { color: var(--green-700); background: var(--green-50); }
.menu-button { display: none; }
.notification-button { position: relative; border-color: var(--line); background: #fff; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; background: var(--red); border: 2px solid #fff; border-radius: 50%; }
.top-account-wrap { display: none; position: relative; }
.top-account { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: #fff; background: var(--green-700); border: 0; border-radius: 50%; cursor: pointer; }
.top-account span { font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.top-account[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(11,107,69,.18); }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 46; min-width: 188px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(8,54,37,.14); }
.account-menu button { width: 100%; display: block; padding: 11px 12px; color: var(--ink-2); text-align: left; background: transparent; border: 0; border-radius: 8px; font-size: .9rem; font-weight: 650; cursor: pointer; }
.account-menu button:hover, .account-menu button:focus-visible { color: var(--green-800); background: var(--green-50); outline: none; }
.account-menu #account-menu-signout { color: var(--muted); }
.button,
.button:link,
.button:visited,
.button:hover,
.button:active,
.button:focus {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease; position: relative;
}
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .43; cursor: not-allowed; }
.button.is-loading { color: transparent !important; pointer-events: none; opacity: 1; }
.button.is-loading > * { visibility: hidden; }
.button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: geeslane-spin .6s linear infinite;
}
.button.is-cooldown {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}
.button-secondary.is-loading::after,
.button-ghost.is-loading::after {
  border-color: rgba(11,107,69,.18);
  border-top-color: var(--green-700);
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 248, 246, .78);
  backdrop-filter: blur(5px);
}
.page-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.page-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: geeslane-spin .7s linear infinite;
}
.page-loader-copy { margin: 0; color: var(--ink-2); font-size: .95rem; font-weight: 700; }
body.is-page-loading { overflow: hidden; }
@keyframes geeslane-spin { to { transform: rotate(360deg); } }
.button-primary { color: #fff; background: var(--green-700); box-shadow: 0 7px 18px rgba(11,107,69,.14); }
.button-primary:hover:not(:disabled) { background: var(--green-800); }
.button-secondary { color: var(--ink-2); background: #fff; border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: #adbbb3; }
.text-button, .back-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--green-700); background: transparent; border: 0; font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.text-button:hover, .back-link:hover { color: var(--green-900); }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .text-button:focus-visible, .filter-tab:focus-visible, .request-type-grid button:focus-visible, .back-link:focus-visible { outline: 3px solid rgba(22,132,90,.19); outline-offset: 2px; }

.content-wrap { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 42px 0 70px; }
.page { display: none; animation: page-in .25s ease both; }
.page.is-visible { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 8px; color: var(--green-700); font-size: .75rem; line-height: 1.2; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.welcome-row h1, .page-heading h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.03em; }
.welcome-row > div > p:last-child, .page-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 1rem; }
.page-heading > div > p.page-project-name { margin: 5px 0 0; color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 1px rgba(8,54,37,.02); }

.project-hero { overflow: hidden; }
.project-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 25px; }
.project-identity { display: flex; align-items: center; gap: 16px; }
.project-large-icon { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--green-700), var(--green-900)); border-radius: 14px; font-size: 1.05rem; font-weight: 850; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 5px 8px; color: var(--green-700); background: var(--green-50); border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-badge i { width: 6px; height: 6px; background: var(--green-600); border-radius: 50%; }
.status-badge.large { flex: 0 0 auto; padding: 7px 11px; font-size: .64rem; }
.project-identity h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.02em; }
.project-identity p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.progress-block { padding: 0 30px 27px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: .67rem; }
.progress-meta strong { color: var(--green-700); font-size: .75rem; }
.progress-track { height: 8px; overflow: hidden; background: #eaf0ec; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green-700), #3bac76); border-radius: inherit; transition: width .5s ease; }
.progress-stages { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted-2); font-size: .57rem; font-weight: 650; }
.project-quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fafcfb; border-top: 1px solid var(--line-soft); }
.project-quick-facts > div { display: flex; align-items: center; gap: 11px; padding: 18px 30px; border-right: 1px solid var(--line-soft); }
.project-quick-facts > div:last-child { border-right: 0; }
.quick-icon { width: 33px; height: 33px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 9px; }
.quick-icon svg { width: 17px; height: 17px; fill: currentColor; }
.project-quick-facts small, .project-quick-facts strong { display: block; }
.project-quick-facts small { margin-bottom: 3px; color: var(--muted); font-size: .59rem; }
.project-quick-facts strong { color: var(--ink-2); font-size: .72rem; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel-card { padding: 25px 27px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-heading h2, .project-details-card h2, .data-card h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.attention-badge { padding: 5px 8px; color: var(--red); background: var(--red-50); border-radius: 999px; font-size: .58rem; font-weight: 750; }
.next-action-body { min-height: 144px; display: flex; flex-direction: column; justify-content: center; }
.next-action-body .action-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; color: var(--green-700); background: var(--green-50); border-radius: 11px; }
.next-action-body .action-icon.is-alert { color: var(--red); background: var(--red-50); }
.action-icon svg { width: 21px; height: 21px; fill: currentColor; }
.next-action-body h3 { margin: 0; font-size: 1.05rem; }
.next-action-body p { margin: 7px 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.next-action-body .button { align-self: flex-start; min-height: 37px; }
.empty-action { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.activity-list { display: grid; }
.activity-item { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding-bottom: 16px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.activity-item:last-child::after { display: none; }
.activity-icon { z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 50%; }
.activity-icon svg { width: 14px; height: 14px; fill: currentColor; }
.activity-item strong { display: block; margin: 1px 0 4px; color: var(--ink-2); font-size: .9rem; }
.activity-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.request-preview-panel { margin-top: 20px; }

.request-list { display: grid; }
.request-row { display: grid; grid-template-columns: 40px minmax(0,1.7fr) minmax(100px,.7fr) minmax(95px,.7fr) 72px; align-items: center; gap: 14px; padding: 15px 3px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.request-row:last-child { border-bottom: 0; }
.request-row:hover { background: #fbfdfc; }
.request-kind-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 9px; }
.request-kind-icon.is-change { color: var(--red); background: var(--red-50); }
.request-kind-icon.is-milestone { color: var(--blue); background: var(--blue-50); }
.request-kind-icon svg { width: 17px; height: 17px; fill: currentColor; }
.request-main { min-width: 0; }
.request-main strong, .request-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-main strong { margin-bottom: 4px; font-size: .95rem; }
.request-main small, .request-date { color: var(--muted); font-size: .8rem; }
.request-id { color: var(--muted); font-size: .63rem; font-weight: 650; }
.request-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 5px 8px; color: var(--green-700); background: var(--green-50); border-radius: 999px; font-size: .57rem; font-weight: 800; }
.request-status.is-review { color: var(--amber); background: var(--amber-50); }
.request-status.is-complete { color: var(--blue); background: var(--blue-50); }
.request-empty, .resource-empty { padding: 30px 15px; color: var(--muted); text-align: center; font-size: .95rem; line-height: 1.55; }

.page-heading { align-items: center; }
.project-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.75fr); gap: 20px; }
.completion-label { color: var(--green-700); font-size: .69rem; }
.milestone-list { margin-top: 8px; }
.milestone-item { position: relative; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; gap: 14px; padding-bottom: 25px; }
.milestone-item:last-child { padding-bottom: 0; }
.milestone-item::after { content: ""; position: absolute; left: 19px; top: 39px; bottom: 0; width: 1px; background: var(--line); }
.milestone-item:last-child::after { display: none; }
.milestone-item.is-open { padding-bottom: 28px; }
.milestone-mark { z-index: 1; width: 39px; height: 39px; display: grid; place-items: center; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: .67rem; font-weight: 800; }
.milestone-item.is-complete .milestone-mark { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.milestone-item.is-current .milestone-mark { color: var(--green-700); background: var(--green-50); border: 2px solid var(--green-600); box-shadow: 0 0 0 5px rgba(22,132,90,.08); }
.milestone-copy { min-width: 0; }
.milestone-copy strong { display: block; margin: 2px 0 5px; font-size: .95rem; }
.milestone-copy p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.milestone-state { align-self: start; margin-top: 8px; color: var(--muted-2); background: transparent; border: 0; padding: 0; font-size: .58rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; white-space: nowrap; text-align: right; }
.milestone-item.is-current .milestone-state { color: var(--green-700); }
.milestone-item.is-review .milestone-mark { color: #8b5b10; background: var(--amber-50); border-color: #e3c48a; }
.milestone-item.is-review .milestone-state { color: #8b5b10; }
.milestone-thread { grid-column: 2 / -1; min-width: 0; margin-top: 4px; padding: 14px 16px; background: #f7fbf8; border: 1px solid var(--line-soft); border-radius: 12px; }
.milestone-item.is-review .milestone-thread { background: #fffaf0; border-color: #e3c48a; }
.milestone-item.is-admin_review .milestone-mark { color: var(--blue); background: var(--blue-50); border-color: #b9d4ee; }
.milestone-item.is-admin_review .milestone-state { color: var(--blue); }
.milestone-item.is-admin_review .milestone-thread { background: #f5f9fd; border-color: #d5e6f5; }
.thread-note { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.thread-note:first-child { border-top: 0; padding-top: 0; }
.thread-note header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.thread-note header strong { font-size: .85rem; }
.thread-note header span { color: var(--muted); font-size: .75rem; }
.thread-note p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; }
.thread-note.is-approval header strong { color: var(--green-800); }
.thread-note.is-changes header strong { color: #8b5b10; }
.thread-note a { color: var(--green-700); word-break: break-all; }
.thread-note.is-admin header strong { color: var(--green-800); }
.thread-note.is-target,
.milestone-item.is-target { box-shadow: 0 0 0 2px rgba(11, 107, 69, .35); border-radius: 12px; }
.thread-lead { margin: 0 0 12px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.brand-talk-card .thread-compose { margin-top: 8px; }
.milestone-item.is-open .milestone-thread { animation: none; }
.thread-empty { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.thread-compose { display: grid; gap: 10px; width: 100%; min-width: 0; margin-top: 12px; }
.thread-compose .field { min-width: 0; }
.thread-compose textarea { width: 100%; min-height: 84px; }
.thread-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-side { display: grid; align-content: start; gap: 20px; }
.project-details-card dl { margin: 20px 0; }
.project-details-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.project-details-card dt { color: var(--muted); font-size: .65rem; }
.project-details-card dd { margin: 0; color: var(--ink-2); text-align: right; font-size: .66rem; font-weight: 650; }
.full-button { width: 100%; }
.spaced-button { margin-top: 9px; }
.project-note-card { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--green-50); border-color: #d6eee1; box-shadow: none; }
.note-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green-700); background: #fff; border-radius: 9px; }
.note-icon svg { width: 17px; height: 17px; fill: currentColor; }
.project-note-card strong { display: block; margin: 2px 0 5px; font-size: .71rem; }
.project-note-card p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.5; }

.autosave-label { color: var(--green-700); font-size: .67rem; font-weight: 750; }
.brand-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(255px,.65fr); gap: 20px; }
.brand-main-card { min-width: 0; overflow: visible; }
.section-tabs { display: flex; gap: 5px; margin: -4px 0 25px; padding: 4px; overflow-x: auto; background: var(--page); border-radius: 10px; }
#page-brand .section-tabs {
  position: sticky;
  top: var(--topbar-height);
  z-index: 12;
  margin: -12px -12px 22px;
  padding: 10px;
  background: var(--page);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 10px 22px -14px rgba(8,54,37,.22);
}
.section-tab { min-height: 36px; flex: 1; padding: 0 12px; color: var(--muted); white-space: nowrap; background: transparent; border: 0; border-radius: 8px; font-size: .66rem; font-weight: 750; cursor: pointer; }
.section-tab.is-active { color: var(--green-800); background: #fff; box-shadow: 0 1px 5px rgba(8,54,37,.09); }
.brand-section { display: none; }
.brand-section.is-visible { display: block; }
.brand-section[hidden],
.section-tab[hidden],
.section-tabs[hidden],
.nav-item[hidden],
[data-track-feature][hidden],
[data-website-brief][hidden] { display: none !important; }
.section-intro { margin-bottom: 22px; }
.section-intro h2 { margin: 0; font-size: 1.2rem; }
.section-intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.colour-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 22px; }
.colour-field > span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: .66rem; font-weight: 700; }
.colour-field > div { display: grid; grid-template-columns: 43px 1fr; gap: 7px; }
.colour-field input[type="color"] { width: 43px; height: 43px; padding: 3px; background: #fff; border: 1px solid #ced9d2; border-radius: 8px; cursor: pointer; }
.colour-field input:not([type="color"]) { min-width: 0; height: 43px; padding: 0 10px; color: var(--ink); border: 1px solid #ced9d2; border-radius: 8px; outline: 0; font-size: .68rem; }
.colour-field input:not([type="color"]):focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22,132,90,.1); }
.brief-form-grid textarea,
.brand-form-grid textarea { min-height: 105px; }
#brief-form textarea { min-height: 118px; }
.content-completion { display: flex; align-items: center; gap: 11px; color: var(--green-700); font-size: .62rem; font-weight: 750; }
.content-completion .progress-track { width: 90px; height: 6px; }
.upload-panel { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 20px; background: var(--green-50); border: 1px dashed #a9d3bd; border-radius: 12px; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--green-700); background: #fff; border-radius: 11px; }
.upload-icon svg { width: 22px; height: 22px; fill: currentColor; }
.upload-panel h3 { margin: 0; font-size: 1.05rem; }
.upload-panel p { margin: 5px 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.upload-panel small { color: var(--muted-2); font-size: .85rem; }
.media-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0 27px; }
.media-guidance > div { padding: 16px; background: #fafcfb; border: 1px solid var(--line-soft); border-radius: 9px; }
.media-guidance strong, .media-guidance span { display: block; }
.media-guidance strong { margin-bottom: 6px; color: var(--ink-2); font-size: .95rem; }
.media-guidance span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.media-list-heading { align-items: center; margin-bottom: 4px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.media-list-heading h2 { margin: 0; font-size: 1.1rem; }
.brand-side { display: grid; align-content: start; gap: 20px; }
.brand-preview-card h2 { margin: 0 0 17px; font-size: 1rem; }
.brand-preview { padding: 25px 19px; text-align: center; background: #fbfdfc; border: 1px solid var(--green-700); border-radius: 12px; transition: border-color .2s ease; }
.preview-logo { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 13px; color: #fff; background: var(--green-700); border-radius: 14px; font-size: 1.1rem; font-weight: 850; transition: background .2s ease; }
.brand-preview strong { display: block; font-size: .83rem; }
.brand-preview p { min-height: 34px; margin: 7px 0 15px; color: var(--muted); font-size: .63rem; line-height: 1.45; }
.preview-swatches { display: flex; justify-content: center; gap: 7px; }
.preview-swatches span { width: 24px; height: 24px; border: 1px solid rgba(0,0,0,.1); border-radius: 50%; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 19px; border-bottom: 1px solid var(--line-soft); }
.filter-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; background: var(--page); border-radius: 9px; }
.filter-tab { min-height: 31px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: .65rem; font-weight: 700; cursor: pointer; }
.filter-tab.is-active { color: var(--green-800); background: #fff; box-shadow: 0 1px 4px rgba(8,54,37,.08); }
.search-field { min-width: 200px; min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.search-field svg { width: 15px; height: 15px; fill: var(--muted-2); }
.search-field input { min-width: 0; flex: 1; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .9rem; }

.resources-panel { padding-top: 12px; }
.resource-header, .resource-row { display: grid; grid-template-columns: minmax(0,1.6fr) .6fr .55fr 62px; align-items: center; gap: 16px; }
.resource-header { padding: 10px 3px; color: var(--muted-2); font-size: .58rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.resource-row { padding: 14px 3px; border-top: 1px solid var(--line-soft); }
.resource-name { min-width: 0; display: flex; align-items: center; gap: 12px; }
.resource-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 9px; }
.resource-icon svg { width: 17px; height: 17px; fill: currentColor; }
.resource-name strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.resource-type, .resource-date { color: var(--muted); font-size: .64rem; }
.resource-actions { display: flex; justify-content: flex-end; gap: 3px; }
.resource-actions .icon-button { width: 31px; height: 31px; }
.resource-actions .icon-button svg { width: 15px; height: 15px; }

.profile-layout { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 20px; }
.profile-summary-card { grid-row: span 2; text-align: center; }
.profile-avatar-large { width: 72px; height: 72px; display: grid; place-items: center; margin: 4px auto 15px; color: #fff; background: linear-gradient(145deg, var(--green-600), var(--green-900)); border-radius: 50%; font-size: 1.02rem; font-weight: 850; }
.profile-summary-card h2 { margin: 0; font-size: 1rem; }
.profile-summary-card > p { margin: 6px 0 10px; color: var(--muted); font-size: .7rem; }
.account-type-badge { display: inline-block; margin-bottom: 21px; padding: 5px 8px; color: var(--green-700); background: var(--green-50); border-radius: 999px; font-size: .57rem; font-weight: 800; }
.profile-stat { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: .66rem; }
.profile-stat span { color: var(--muted); }
.save-status { color: var(--green-700); font-size: .65rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 15px; }
.form-grid > [hidden] { display: none !important; }
.form-grid.one-column { grid-template-columns: 1fr; }
.field { min-width: 0; }
.name-with-title { display: grid; grid-template-columns: 118px 1fr; gap: 15px; grid-column: 1 / -1; }
.name-with-title .field-title { max-width: none; }
.field-full { grid-column: 1 / -1; }
.field small, .field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.field label, .field legend { display: block; margin: 0 0 7px; padding: 0; color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.field label span, .field legend span { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #ced9d2; border-radius: 8px; outline: none; font-size: 1rem; transition: border-color .16s ease, box-shadow .16s ease; }
.field textarea { min-height: 93px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9ba79f; }
.phone-combo { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: 8px; }
.phone-combo select { font-size: .92rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22,132,90,.1); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field output { display: block; margin-top: 5px; color: var(--green-700); font-size: .65rem; font-weight: 750; }
.form-footer { display: flex; justify-content: flex-end; margin-top: 23px; }
.brand-step-footer { align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand-step-footer .form-footer-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.data-card { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.data-card p:last-child { max-width: 480px; margin: 7px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }

.notification-popover { position: fixed; top: 64px; right: 44px; z-index: 45; width: min(340px, calc(100% - 28px)); padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 20px 55px rgba(8,54,37,.15); }
.popover-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 10px; border-bottom: 1px solid var(--line-soft); font-size: .75rem; }
.popover-heading .icon-button { width: 29px; height: 29px; font-size: 1rem; }
.notification-item { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); }
.notification-item:last-child { border-bottom: 0; }
.notification-item strong { display: block; margin-bottom: 4px; font-size: .68rem; }
.notification-item p { margin: 0; color: var(--muted); font-size: .61rem; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(4,27,18,.57); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(660px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: auto; background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; box-shadow: 0 30px 90px rgba(0,0,0,.25); animation: modal-in .2s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
.small-modal { width: min(520px, 100%); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 25px 18px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.modal-header h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.modal-close { width: 35px; height: 35px; border-color: var(--line); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 24px 25px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 25px; background: #fff; border-top: 1px solid var(--line-soft); }
.request-stepper { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 25px; color: var(--muted-2); background: #fafcfb; border-bottom: 1px solid var(--line-soft); font-size: .61rem; font-weight: 750; }
.request-stepper span.is-active { color: var(--green-700); }
.request-stepper i { width: 28px; height: 1px; background: var(--line); }
.request-step { display: none; }
.request-step.is-visible { display: block; }
.request-step > h3, .request-step-heading h3 { margin: 0; font-size: 1rem; }
.request-step > p, .request-step-heading p { margin: 7px 0 20px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.request-step-heading .back-link { margin-bottom: 15px; }
.request-type-grid { display: grid; gap: 10px; }
.request-type-grid > button { width: 100%; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; padding: 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.request-type-grid > button:hover, .request-type-grid > button.is-selected { transform: translateY(-1px); border-color: var(--green-600); }
.type-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 10px; }
.type-icon.red { color: var(--red); background: var(--red-50); }
.type-icon svg { width: 20px; height: 20px; fill: currentColor; }
.request-type-grid strong, .request-type-grid small { display: block; }
.request-type-grid strong { margin-bottom: 4px; font-size: .75rem; }
.request-type-grid small { color: var(--muted); font-size: .64rem; }
.form-error { margin: 15px 0 0; padding: 10px 12px; color: #8b2828; background: var(--red-50); border-left: 3px solid var(--red); border-radius: 7px; font-size: .66rem; font-weight: 650; }
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice-option { position: relative; }
.choice-option input { position: absolute; opacity: 0; }
.choice-option span { min-height: 42px; display: grid; place-items: center; padding: 7px; color: var(--muted); text-align: center; background: var(--page); border: 1px solid var(--line); border-radius: 8px; font-size: .61rem; font-weight: 700; cursor: pointer; }
.choice-option input:checked + span { color: var(--green-800); background: var(--green-50); border-color: var(--green-600); }
.review-box { padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; }
.review-box-heading { padding: 16px 0 13px; border-bottom: 1px solid var(--line-soft); }
.review-box-heading span, .review-box-heading strong { display: block; }
.review-box-heading span { margin-bottom: 4px; color: var(--green-700); font-size: .55rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.review-box-heading strong { font-size: .79rem; }
.review-box dl { margin: 7px 0; }
.review-box dl > div, .detail-list > div { display: grid; grid-template-columns: 35% 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.review-box dl > div:last-child, .detail-list > div:last-child { border-bottom: 0; }
.review-box dt, .detail-list dt { color: var(--muted); font-size: .62rem; }
.review-box dd, .detail-list dd { margin: 0; color: var(--ink-2); font-size: .65rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px 13px; background: var(--green-50); border-radius: 9px; cursor: pointer; }
.confirm-check input { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 1px 0 0; padding: 0; border: none; box-shadow: none; background: transparent; flex: 0 0 16px; accent-color: var(--green-700); }
.confirm-check strong, .confirm-check small { display: block; }
.confirm-check strong { font-size: .67rem; }
.confirm-check small { margin-top: 3px; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.setup-modal-panel { width: min(690px, 100%); padding: 35px; }
.setup-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.setup-brand span { color: var(--green-800); font-size: .86rem; font-weight: 850; letter-spacing: .12em; }
.setup-brand small { padding-left: 10px; color: var(--muted); border-left: 1px solid var(--line); font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.setup-modal-panel h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.setup-intro { max-width: 530px; margin: 10px 0 25px; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; }
.setup-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: var(--muted-2); font-size: .6rem; }
.setup-privacy span { width: 6px; height: 6px; background: var(--green-600); border-radius: 50%; }
.detail-status-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; color: var(--muted); font-size: .62rem; }
.detail-list { margin: 0; }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 80; min-width: 235px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: #fff; background: var(--green-950); border-radius: 10px; box-shadow: 0 15px 45px rgba(4,27,18,.25); font-size: .68rem; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast-icon { width: 23px; height: 23px; display: grid; place-items: center; color: var(--green-950); background: #8de0b7; border-radius: 50%; }
.toast-icon svg { width: 14px; height: 14px; fill: currentColor; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  :root { --sidebar-width: 218px; }
  .brand-wrap { padding-inline: 21px; }
  .content-wrap { width: min(100% - 38px, 940px); }
  .project-quick-facts { grid-template-columns: 1fr 1fr; }
  .project-quick-facts > div { padding-inline: 18px; }
  .overview-grid { grid-template-columns: 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .brand-layout { grid-template-columns: 1fr; }
  .project-side { grid-template-columns: 1fr 1fr; }
  .brand-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-height: 62px; }
  .workspace-project-chip { display: none; }
  .auth-header { width: calc(100% - 32px); min-height: 70px; }
  .auth-brand small { display: none; }
  .auth-actions .button { min-height: 38px; padding-inline: 12px; font-size: .67rem; }
  .auth-screen { height: auto; min-height: 100dvh; overflow: visible; }
  .auth-main { width: calc(100% - 28px); grid-template-columns: 1fr; grid-template-rows: auto; gap: 30px; padding: 38px 0 45px; overflow: visible; }
  .auth-intro { display: block; }
  .auth-card { max-height: none; overflow: visible; padding: 25px 20px; }
  .auth-card .form-grid { grid-template-columns: 1fr; }
  .auth-card .name-with-title { grid-template-columns: 110px 1fr; }
  .auth-card .field-full { grid-column: auto; }
  .auth-footer { width: calc(100% - 32px); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .sidebar { width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.22); }
  .sidebar-footer { display: none; }
  .top-account-wrap { display: block; }
  .top-signout { display: none !important; }
  .topbar-actions { gap: 8px; }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(4,27,18,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .main-area { margin-left: 0; }
  .topbar { height: var(--topbar-height); padding: 0 16px; }
  .menu-button { display: grid; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .top-new-request { display: none; }
  .top-admin-link { display: none !important; }
  .top-signout { min-height: 36px; padding: 0 10px; font-size: .63rem; }
  .content-wrap { width: calc(100% - 28px); padding: 28px 0 40px; }
  .welcome-row, .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .welcome-row h1, .page-heading h1 { font-size: 1.75rem; }
  .welcome-row > div > p:last-child, .page-heading > div > p:last-child { font-size: .75rem; }
  .overview-new-request { display: none; }
  .project-hero-top { padding: 22px 19px 20px; }
  .project-large-icon { width: 47px; height: 47px; }
  .project-identity { gap: 12px; }
  .project-identity h2 { font-size: 1rem; }
  .progress-block { padding: 0 19px 22px; }
  .project-quick-facts { grid-template-columns: 1fr; }
  .project-quick-facts > div { padding: 14px 19px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .project-quick-facts > div:last-child { border-bottom: 0; }
  .panel-card { padding: 21px 19px; }
  .request-row { grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; }
  .request-row .request-id, .request-row .request-date { display: none; }
  .request-kind-icon { width: 34px; height: 34px; }
  .project-side { grid-template-columns: 1fr; }
  .milestone-thread { grid-column: 2 / -1; min-width: 0; }
  .brand-side { grid-template-columns: 1fr; }
  .colour-grid, .media-guidance { grid-template-columns: 1fr; }
  .upload-panel { grid-template-columns: 42px 1fr; }
  .upload-panel .button { grid-column: 1 / -1; width: 100%; }
  .section-tab { flex: 0 0 auto; }
  .page-heading.with-action .button { display: none; }
  .page-heading.with-action .agreement-actions { display: flex; }
  .page-heading.with-action .agreement-actions .button { display: inline-flex; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .filter-tabs { overflow-x: auto; }
  .search-field { min-width: 0; width: 100%; }
  .resources-panel { padding-top: 10px; }
  .resource-header { display: none; }
  .resource-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .resource-row .resource-type, .resource-row .resource-date { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-summary-card { grid-row: auto; }
  .data-card { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .name-with-title { grid-template-columns: 110px 1fr; }
  .field-full { grid-column: auto; }
  .notification-popover { top: 58px; right: 14px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 40; min-height: 66px; height: calc(66px + max(env(safe-area-inset-bottom), 3px)); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; padding: 0 8px max(env(safe-area-inset-bottom), 3px); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(8,54,37,.07); backdrop-filter: blur(12px); }
  .mobile-nav > button { min-width: 0; display: grid; place-items: center; gap: 3px; padding: 5px 2px; color: var(--muted-2); background: transparent; border: 0; font-size: .7rem; font-weight: 700; cursor: pointer; }
  .mobile-nav > button svg { width: 19px; height: 19px; fill: currentColor; }
  .mobile-nav > button.is-active { color: var(--green-700); }
  .mobile-nav .mobile-create { align-self: start; transform: translateY(-17px); }
  .mobile-create > span { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--green-700); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(11,107,69,.25); }
  .mobile-create svg { width: 21px !important; height: 21px !important; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: calc(100vh - 30px); border-radius: 18px 18px 0 0; }
  .modal-header { padding: 19px 18px 15px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .request-stepper { padding-inline: 18px; }
  .setup-modal-panel { max-height: 100vh; padding: 27px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 0; }
  .setup-brand { margin-bottom: 26px; }
  .setup-actions { align-items: stretch; flex-direction: column-reverse; }
  .setup-actions .button { width: 100%; }
  .choice-group { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .project-hero-top .text-button { display: none; }
  .project-identity { min-width: 0; }
  .project-identity > div { min-width: 0; }
  .project-identity h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .progress-stages { font-size: .5rem; }
  .panel-heading { align-items: flex-start; }
  .filter-tab { padding-inline: 9px; }
  .review-box dl > div, .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
  .modal-footer .button { flex: 1; }
}

.request-body { background: radial-gradient(circle at 15% 10%, rgba(188,229,208,.55), transparent 34%), linear-gradient(135deg, #f9fcfa 0%, #eff7f2 100%); }
.request-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.request-main { width: min(920px, calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 12px 0 40px; }
.request-intro { margin-bottom: 22px; }
.request-intro h1 { margin: 8px 0 12px; color: var(--green-950); font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); letter-spacing: -.03em; }
.request-intro > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 640px; }
.request-note { margin-top: 10px !important; font-size: .9rem !important; }
.request-intro .button { margin-top: 16px; }
.request-card[hidden] { display: none !important; }
.request-card { padding: 0 0 24px; overflow: hidden; }
.request-card .request-stepper { justify-content: flex-start; flex-wrap: wrap; font-size: .7rem; }
.request-card .request-step { padding: 24px 28px 8px; }
.request-card .request-step h2 { margin: 0 0 6px; font-size: 1.35rem; }
.request-card .request-step > p { margin: 0 0 20px; font-size: .92rem; }
.request-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 28px 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field label.choice-item,
.choice-item { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; font-weight: 500; line-height: 1.4; cursor: pointer; }
.field label.choice-item span,
.choice-item span { color: var(--ink-2); font-weight: 500; }
.field .choice-item input[type="checkbox"],
.choice-item input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; border: none; border-radius: 3px; box-shadow: none; background: transparent; flex: 0 0 16px; accent-color: var(--green-700); }
.confirm-stack { display: grid; gap: 8px; }
.field label.confirm-check,
.confirm-stack .confirm-check { display: flex; margin-top: 0; }
.request-card .form-error { margin: 0 28px 12px; }
@media (max-width: 720px) {
  .request-main { width: min(100% - 28px, 920px); }
  .request-card .request-step, .request-actions { padding-inline: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
}

.agreement-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agreement-wrap { max-width: 860px; }
.agreement-sheet { max-width: 820px; margin: 0 auto; padding: 42px 48px 48px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(8,54,37,.06); }
.agreement-masthead { display: flex; align-items: center; gap: 22px; padding-bottom: 28px; border-bottom: 3px solid var(--green-700); }
.agreement-logo { height: 46px; width: auto; }
.agreement-kicker { margin: 0 0 6px; color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.agreement-masthead h1 { margin: 0; color: var(--green-950); font-size: 1.55rem; line-height: 1.25; letter-spacing: -.03em; }
.agreement-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 24px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.agreement-fact { display: grid; gap: 5px; padding: 14px 16px; background: #f7fbf8; }
.agreement-fact span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agreement-fact strong { color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.45; white-space: pre-wrap; }
.agreement-fact-wide { grid-column: 1 / -1; background: var(--green-50); }
.agreement-lead { margin: 0 0 28px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.agreement-block { margin: 0 0 26px; }
.agreement-block h2 { margin: 0 0 12px; padding-bottom: 8px; color: var(--green-950); border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; letter-spacing: -.02em; }
.agreement-clauses { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.agreement-clauses li { color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
.agreement-clauses strong { color: var(--green-950); }
.agreement-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.agreement-checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #f7fbf8; border: 1px solid var(--line-soft); border-radius: 10px; font-size: .92rem; }
.agreement-check { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; margin-top: 1px; color: #fff; background: #fff; border: 1.5px solid var(--green-700); border-radius: 4px; font-size: .72rem; font-weight: 800; }
.agreement-checklist li.is-done { background: var(--green-50); }
.agreement-checklist li.is-done .agreement-check { background: var(--green-700); border-color: var(--green-700); }
.agreement-sign-copy { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.agreement-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agreement-sign-card { display: grid; gap: 14px; min-height: 170px; padding: 20px; background: linear-gradient(180deg, #f7fbf8, #fff); border: 1px solid var(--line); border-radius: 14px; }
.agreement-sign-card > span { color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agreement-sign-logo { height: 40px; width: auto; }
.agreement-client-mark { color: var(--green-950); font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.agreement-sign-card small { margin-top: auto; color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) {
  .agreement-sheet { padding: 24px 18px 28px; }
  .agreement-masthead, .agreement-facts, .agreement-sign-grid { grid-template-columns: 1fr; }
  .agreement-masthead { display: grid; }
  .agreement-actions { width: 100%; }
  .agreement-actions .button { flex: 1; }
}
.portal-tour { position: fixed; inset: 0; z-index: 80; }
.portal-tour[hidden] { display: none !important; }
.portal-tour-scrim { position: absolute; inset: 0; background: rgba(6, 35, 24, .48); }
.portal-tour-card { position: absolute; z-index: 2; width: min(360px, calc(100vw - 32px)); padding: 22px 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(8,54,37,.18); }
.portal-tour-card .eyebrow { margin-bottom: 6px; }
.portal-tour-card h2 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -.02em; }
.portal-tour-card > p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.portal-tour-actions { display: flex; align-items: center; gap: 10px; }
.portal-tour-actions .tour-skip { margin-right: auto; }
.portal-tour-actions span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.nav-item.is-tour-target, .mobile-nav > button.is-tour-target { position: relative; z-index: 81; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green-700); }
.nav-item.is-tour-target { color: #fff; }
.mobile-nav > button.is-tour-target { color: var(--green-700); }
body.is-touring .sidebar { z-index: 81; }
@media (max-width: 760px) {
  body.is-touring .sidebar { z-index: 30; }
  .portal-tour-card { left: 16px !important; right: 16px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom)); top: auto !important; }
}

@media print {
  body { background: #fff; }
  .sidebar, .sidebar-scrim, .topbar, .mobile-nav, .toast, .page-loader, .notification-popover, .admin-sidebar, .admin-topbar, .agreement-actions, .admin-agreement-toolbar, .admin-agreement-form-card, .admin-heading-actions, .page-heading, .auth-screen, .admin-page-heading, .portal-tour { display: none !important; }
  .app-shell, .admin-shell, .admin-main, .main-area, .content-wrap, .admin-content, .admin-agreement-layout, .admin-agreement-preview-wrap { display: block !important; margin: 0; width: 100%; max-width: none; padding: 0; }
  .page, .admin-page { display: none !important; }
  .page.is-visible, .admin-page.is-visible { display: block !important; }
  .agreement-sheet { box-shadow: none; border: 0; border-radius: 0; max-width: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
