:root {
  --ink: #17211e;
  --muted: #66736f;
  --forest: #15352d;
  --forest-2: #1d4b3e;
  --cream: #f5f2ea;
  --paper: #fff;
  --line: #e1e5df;
  --soft: #f1f4f0;
  --green: #2d775f;
  --green-soft: #e4f2eb;
  --blue: #3a6f8c;
  --blue-soft: #e7f0f5;
  --amber: #d9893a;
  --red: #a33f3f;
  --red-soft: #faeaea;
  --shadow: 0 18px 55px rgba(21, 53, 45, .09);
  --radius: 18px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--forest); font-size: 14px; font-weight: 820; letter-spacing: .11em; text-decoration: none; }
.brand b { color: var(--amber); font-weight: 820; }
.brand-light { color: #fff; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 10px; color: inherit; font-family: Georgia, serif; font-size: 20px; letter-spacing: 0; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 42px; color: var(--forest); font-size: 13px; font-weight: 820; letter-spacing: .1em; }
.mobile-brand b { color: var(--amber); }

.eyebrow { display: inline-block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-light { color: #d5e7df; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.65; }
.muted { color: var(--muted); }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .nav-link:focus-visible, .row-action:focus-visible { outline: 3px solid rgba(217, 137, 58, .35); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--forest); box-shadow: 0 8px 18px rgba(21, 53, 45, .15); }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { color: var(--forest); border-color: var(--line); background: var(--paper); }
.button-secondary:hover { border-color: #aebbb5; background: var(--soft); }
.button-light { color: var(--forest); background: #fff; }
.button-danger { color: var(--red); border-color: #e7bcbc; background: #fff; }
.button-large { min-height: 47px; padding-inline: 18px; }
.button svg { width: 17px; height: 17px; }
.button:disabled { cursor: wait; opacity: .65; }
.button.is-loading::after { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; line-height: 1.5; }
.alert-error { color: #7c2828; border-color: #ecc4c4; background: var(--red-soft); }
.alert-success { color: #245d4b; border-color: #bbdcca; background: var(--green-soft); }
.alert-warning { color: #77531f; border-color: #ead6a8; background: #fff7df; }

.field { display: grid; align-content: start; gap: 7px; }
.field > span:first-child { color: #3e4b47; font-size: 12px; font-weight: 720; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.field input, .field select, .field textarea, .message-compose textarea { width: 100%; border: 1px solid #d6ddd8; border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.field input, .field select { min-height: 45px; padding: 9px 12px; }
.field textarea, .message-compose textarea { padding: 11px 12px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover, .message-compose textarea:hover { border-color: #aebbb5; }
.field input:focus, .field select:focus, .field textarea:focus, .message-compose textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 119, 95, .1); outline: none; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 80px; }
.text-button { padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 11px; font-weight: 760; }
.password-field .text-button { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); }
.generate-button { justify-self: start; padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 11px; font-weight: 760; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; font-size: 12px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--forest); }
.form-stack { display: grid; gap: 18px; margin-top: 27px; }

/* Login */
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .9fr) minmax(440px, 1.1fr); }
.login-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(32px, 5vw, 72px); color: #fff; background: var(--forest); }
.login-story::before { position: absolute; right: -15%; bottom: 6%; width: 60%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.login-story::after { position: absolute; top: 24%; right: 12%; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 70px 80px 0 2px rgba(217,137,58,.55), -45px 145px 0 -1px rgba(255,255,255,.45); content: ""; }
.story-copy { position: relative; z-index: 1; max-width: 560px; }
.story-copy h1 { max-width: 520px; margin: 13px 0 23px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 78px); font-weight: 450; letter-spacing: -.055em; line-height: .98; }
.story-copy p { max-width: 460px; margin: 0; color: #cfdbd6; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.trust-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #b9cbc4; font-size: 12px; }
.trust-line svg { color: var(--amber); }
.login-panel { display: grid; min-height: 100vh; grid-template-rows: 1fr auto; align-items: center; padding: clamp(28px, 6vw, 78px); background: var(--cream); }
.login-card { width: min(430px, 100%); margin: auto; }
.login-card h2 { margin: 9px 0 6px; font-size: clamp(31px, 4vw, 42px); letter-spacing: -.045em; }
.login-card .lead { margin: 0; }
.login-card .alert { margin: 22px 0 -7px; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-help a { color: var(--forest); font-weight: 700; }
.login-panel footer { color: #89938f; font-size: 10px; text-align: center; }
.login-panel footer a { text-decoration: none; }

/* Shell */
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; flex-direction: column; padding: 25px 18px 18px; color: #dbe5e1; background: var(--forest); }
.sidebar .brand { padding-inline: 8px; }
.area-label { margin: 40px 11px 12px; color: #829d93; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: 10px; color: #aac0b8; background: transparent; cursor: pointer; font-size: 12px; font-weight: 680; text-decoration: none; transition: color .15s ease, background .15s ease; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 0 var(--amber); }
.sidebar-bottom { display: grid; gap: 9px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.account-mini { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px; }
.account-mini > span:last-child { min-width: 0; }
.account-mini b, .account-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mini b { color: #fff; font-size: 11px; }
.account-mini small { margin-top: 2px; color: #89a097; font-size: 9px; }
.logout-button { width: 100%; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--forest); background: #dce8e3; font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.avatar-soft { color: var(--green); background: var(--green-soft); }
.avatar-large { width: 58px; height: 58px; border-radius: 16px; font-size: 16px; }
.avatar-xl { width: 84px; height: 84px; border-radius: 22px; font-size: 23px; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 70px; align-items: center; gap: 16px; padding: 11px clamp(22px, 4vw, 52px); border-bottom: 1px solid rgba(218, 224, 219, .85); background: rgba(245, 242, 234, .92); backdrop-filter: blur(14px); }
.topbar > div { display: grid; gap: 2px; }
.topbar-kicker { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.topbar strong { font-size: 13px; }
.topbar-contact { margin-left: auto; color: var(--forest); font-size: 11px; font-weight: 750; text-decoration: none; }
.menu-button { display: none; width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 3px 0; border-radius: 2px; background: var(--forest); }
.sidebar-backdrop { display: none; }
.content { width: min(1400px, 100%); margin: 0 auto; padding: 35px clamp(22px, 4vw, 52px) 60px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 7px 0 6px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 16px rgba(21, 53, 45, .035); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-heading h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.025em; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { position: relative; min-width: 0; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.metric::after { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 0 0 0 44px; background: var(--soft); content: ""; }
.metric-green::after { background: var(--green-soft); }
.metric-blue::after { background: var(--blue-soft); }
.metric > span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric strong { display: block; margin-top: 8px; font-size: 27px; letter-spacing: -.04em; }
.metric small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 18px; }
.span-2 { min-width: 0; }
.toolbar-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.toolbar-card h2 { margin: 5px 0 0; font-size: 18px; }

.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 690px; border-collapse: collapse; }
th { padding: 0 11px 11px; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 13px 11px; border-top: 1px solid #e8ebe7; font-size: 11px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.customer-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.customer-cell b, .customer-cell small { display: block; }
.customer-cell b { font-size: 12px; }
.customer-cell small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.project-cell { display: inline-flex; align-items: center; gap: 7px; }
.online-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #3ca779; box-shadow: 0 0 0 3px #e4f4ed; }
.online-dot.is-offline { background: #9ca7a3; box-shadow: 0 0 0 3px #edf0ee; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 760; white-space: nowrap; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-good { color: #276850; background: var(--green-soft); }
.status-muted { color: #6b7471; background: #eef0ef; }
.row-action { display: grid; width: 29px; height: 29px; margin-left: auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); text-decoration: none; }
.row-action:hover { background: var(--soft); }
.empty-cell { padding: 28px; color: var(--muted); text-align: center; }
.card-link { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--green); font-size: 10px; font-weight: 750; text-decoration: none; }

.activity-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.activity-list li { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 10px; padding: 0 0 18px; }
.activity-list li:not(:last-child)::before { position: absolute; top: 11px; bottom: 0; left: 4px; width: 1px; background: var(--line); content: ""; }
.activity-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.activity-list b { display: block; font-size: 10px; }
.activity-list p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.empty-compact { color: var(--muted); font-size: 11px; }

.back-link { display: inline-block; margin: -7px 0 18px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.back-link:hover { color: var(--forest); }
.form-layout, .stack { display: grid; gap: 18px; }
.form-section { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field-wide { grid-column: 1 / -1; }
.step-number { display: grid; width: 24px; height: 24px; float: left; margin-right: 10px; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 850; }
.sticky-actions { position: sticky; bottom: 15px; z-index: 10; display: flex; justify-content: flex-end; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }

.credential-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 22px; border-radius: var(--radius); color: #fff; background: var(--forest); box-shadow: var(--shadow); }
.credential-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--amber); background: rgba(255,255,255,.09); }
.credential-card h2 { margin: 5px 0; font-size: 20px; }
.credential-card p { max-width: 680px; margin: 0; color: #c0d0ca; font-size: 11px; line-height: 1.55; }
.credential-card pre { margin: 13px 0 0; padding: 12px; overflow-x: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #eef5f2; background: rgba(0,0,0,.13); font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-title h2 { margin: 0; font-size: 20px; }
.profile-hero p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.url-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.url-row:first-of-type { border-top: 0; }
.url-row small, .url-row b { display: block; }
.url-row small { color: var(--muted); font-size: 9px; }
.url-row b { max-width: 400px; margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.url-row svg { width: 16px; height: 16px; color: var(--green); }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.mini-metrics div { padding: 12px; border-radius: 10px; background: var(--soft); }
.mini-metrics span, .mini-metrics b { display: block; }
.mini-metrics span { color: var(--muted); font-size: 9px; }
.mini-metrics b { margin-top: 5px; font-size: 16px; }
.data-list { margin: 0; }
.data-list > div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.data-list > div:first-child { border-top: 0; }
.data-list dt { color: var(--muted); font-size: 10px; }
.data-list dd { margin: 0; font-size: 10px; font-weight: 700; text-align: right; }
.data-list-large > div { padding: 14px 0; }
.data-list-large dt, .data-list-large dd { font-size: 12px; }
.reset-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.count-pill { padding: 5px 9px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 780; }

.messages { display: flex; flex-direction: column; align-items: stretch; max-height: 430px; gap: 10px; overflow-y: auto; padding: 4px 2px 14px; }
.messages-large { min-height: 300px; max-height: 520px; padding: 22px; background: #f8faf8; }
.message { width: fit-content; max-width: min(80%, 560px); align-self: flex-start; padding: 11px 13px; border-radius: 4px 13px 13px 13px; background: var(--soft); overflow-wrap: anywhere; }
.message.is-own { align-self: flex-end; color: #fff; border-radius: 13px 13px 4px 13px; background: var(--forest); }
.message > div { display: flex; justify-content: space-between; gap: 15px; }
.message b, .message time { font-size: 8px; }
.message time { opacity: .65; white-space: nowrap; }
.message p { margin: 6px 0 0; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.message-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.compose-hint { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.4; }
.conversation-card { padding: 0; overflow: hidden; }
.conversation-head { display: flex; align-items: center; gap: 11px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.conversation-head h2 { margin: 0; font-size: 13px; }
.conversation-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.conversation-head .online-dot { margin-right: 4px; }
.conversation-card .message-compose { padding: 14px 18px 18px; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.service-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 11px; background: var(--soft); }
.service-grid > div > span { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Customer */
.welcome-card { position: relative; display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; margin-bottom: 18px; padding: clamp(25px, 4vw, 42px); border-radius: 22px; color: #fff; background: var(--forest); box-shadow: var(--shadow); }
.welcome-card::after { position: absolute; right: -35px; bottom: -80px; width: 240px; height: 240px; border: 45px solid rgba(255,255,255,.045); border-radius: 50%; content: ""; }
.welcome-card h2 { margin: 8px 0 8px; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 450; letter-spacing: -.035em; }
.welcome-card p { max-width: 560px; margin: 0; color: #c9d7d2; font-size: 13px; line-height: 1.6; }
.welcome-orb { position: relative; z-index: 1; display: grid; width: 105px; height: 105px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.07); font-family: Georgia, serif; font-size: 32px; }
.customer-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .45fr); gap: 18px; margin-bottom: 18px; }
.project-main { display: flex; flex-direction: column; }
.project-stage { margin: 15px 0 24px; }
.stage-line { display: grid; grid-template-columns: repeat(4, 1fr); }
.stage-line span { position: relative; height: 4px; background: var(--line); }
.stage-line span::before { position: absolute; top: -4px; left: 0; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 1px var(--line); content: ""; }
.stage-line .is-done, .stage-line .is-done::before { background: var(--green); }
.stage-line .is-current::before { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.stage-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; color: var(--muted); font-size: 8px; }
.project-next { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding: 15px; border-radius: 12px; background: var(--soft); }
.project-next small, .project-next b { display: block; }
.project-next small { color: var(--muted); font-size: 9px; }
.project-next b { margin-top: 4px; font-size: 11px; }
.contact-card { text-align: center; }
.contact-card .avatar { margin: 18px auto 10px; }
.contact-card h2 { margin: 0; font-size: 17px; }
.contact-card p { margin: 5px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.contact-card .button { width: 100%; }
.contact-link { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; }
.customer-metrics { margin-bottom: 0; }
.project-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 27px; background: linear-gradient(135deg, #fff 70%, var(--green-soft)); }
.project-banner h2 { margin: 7px 0; font-size: 24px; }
.project-banner p { margin: 0; color: var(--muted); font-size: 11px; }
.big-number { margin: 12px 0 18px; font-size: 42px; font-weight: 800; letter-spacing: -.05em; }
.big-number span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: normal; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline article { position: relative; padding: 0 20px 0 0; }
.timeline article:not(:last-child)::after { position: absolute; top: 13px; right: 7px; left: 36px; height: 1px; background: var(--line); content: ""; }
.timeline b { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 8px; }
.timeline .is-done b { color: #fff; border-color: var(--green); background: var(--green); }
.timeline .is-current b { color: #fff; border-color: var(--amber); background: var(--amber); }
.timeline h3 { margin: 12px 0 3px; font-size: 11px; }
.timeline p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.empty-state { display: grid; min-height: 140px; place-items: center; align-content: center; padding: 20px; color: var(--muted); text-align: center; }
.empty-state h3 { margin: 8px 0 3px; color: var(--ink); font-size: 13px; }
.empty-state p { max-width: 420px; margin: 0; font-size: 10px; line-height: 1.55; }
.empty-large { min-height: 330px; }
.empty-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.faq details { padding: 15px 0; border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-size: 11px; font-weight: 740; }
.faq p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.support-card { color: #fff; background: var(--forest); }
.support-card h2 { margin: 10px 0; font-family: Georgia, serif; font-size: 30px; font-weight: 450; }
.support-card p { margin: 0 0 22px; color: #c5d5cf; font-size: 11px; line-height: 1.65; }
.support-card > a:last-child { display: block; margin-top: 18px; color: #b9ccc4; font-size: 10px; }
.profile-summary { display: grid; justify-items: center; text-align: center; }
.profile-summary h2 { margin: 15px 0 4px; }
.profile-summary p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }

.error-page { display: grid; min-height: 100vh; justify-items: center; place-content: center; padding: 28px; text-align: center; }
.error-page .brand { margin-bottom: 45px; }
.error-code { color: var(--green); font: 64px/1 Georgia, serif; }
.error-page h1 { margin: 12px 0 5px; }
.error-page p { max-width: 430px; margin: 0 0 22px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .customer-dashboard-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 25px; }
  .mobile-brand { display: flex; }
  .login-panel footer { margin-top: 30px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 250px; transition: transform .2s ease; }
  .menu-open .sidebar { transform: translateX(0); box-shadow: 20px 0 55px rgba(0,0,0,.2); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: rgba(10,24,20,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .menu-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .menu-button { display: block; }
  .topbar { min-height: 62px; padding-inline: 16px; }
  .content { padding: 26px 16px 45px; }
  .detail-grid { grid-template-columns: 1fr; }
  .credential-card { grid-template-columns: auto 1fr; }
  .credential-card .button { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .timeline article:nth-child(2)::after { display: none; }
}

@media (max-width: 560px) {
  .topbar-contact { display: none; }
  .page-heading { margin-bottom: 20px; }
  .metric-grid, .form-grid, .service-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .card { padding: 17px; border-radius: 15px; }
  .card-heading { display: grid; }
  .card-heading .button { width: 100%; }
  .toolbar-card, .profile-hero, .project-banner { display: grid; }
  .toolbar-card .button, .profile-actions .button { width: 100%; }
  .profile-actions, .profile-actions form { width: 100%; }
  .sticky-actions { position: static; }
  .sticky-actions .button { flex: 1; }
  .credential-card { grid-template-columns: 1fr; }
  .credential-icon { width: 40px; height: 40px; }
  .welcome-card { min-height: 220px; }
  .welcome-orb { display: none; }
  .project-next { align-items: stretch; flex-direction: column; }
  .project-next .button { width: 100%; }
  .message { max-width: 92%; }
  .message-compose { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article::after { display: none; }
  .stage-labels { font-size: 7px; }
}

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