:root {
  --ink: #122628;
  --muted: #667779;
  --line: #e5ebeb;
  --paper: #ffffff;
  --wash: #f5f8f7;
  --teal-950: #063d41;
  --teal-800: #0a5960;
  --teal-600: #087f88;
  --teal-100: #dff3f1;
  --amber: #e7a43c;
  --amber-bg: #fff5e1;
  --green: #198754;
  --green-bg: #e4f6ed;
  --violet: #7259b5;
  --violet-bg: #eeeaff;
  --danger: #bb3c38;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--wash); }
body { margin: 0; color: var(--ink); background: var(--wash); font-size: 14px; line-height: 1.45; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.brand { color: var(--teal-950); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; letter-spacing: -0.5px; }
.brand b { font-weight: 750; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 15px; font-weight: 850; letter-spacing: -2px; }
.brand-light { color: white; }
.eyebrow { color: var(--teal-600); font-weight: 750; font-size: 10px; letter-spacing: 1.5px; margin: 0 0 9px; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 47%) 1fr; background: var(--paper); }
.login-copy { background: linear-gradient(145deg, #063d41 0%, #075a60 100%); padding: clamp(34px, 7vw, 90px); min-height: 100vh; color: white; display: flex; flex-direction: column; }
.login-hero { margin: auto 0; max-width: 540px; }
.login-copy .eyebrow { color: #a7e3dd; }
.login-hero h1 { font-size: clamp(39px, 4.2vw, 64px); line-height: 1.06; letter-spacing: -2px; max-width: 540px; margin: 0 0 25px; }
.login-hero p:not(.eyebrow) { font-size: 17px; color: #c6dfdf; max-width: 435px; margin: 0; line-height: 1.65; }
.accent-line { width: 70px; height: 3px; background: var(--amber); margin: 8px 0 34px; }
.login-footer { color: #9dc8c8; font-size: 12px; margin: 0; }
.login-panel { display: grid; place-items: center; padding: 40px 7vw; }
.auth-card { max-width: 405px; width: 100%; }
.auth-heading h2 { font-size: 31px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 10px; }
.auth-heading p:not(.eyebrow) { color: var(--muted); margin: 0 0 30px; }

/* Shared form components */
label { display: block; color: #425456; font-weight: 650; font-size: 12px; margin-bottom: 17px; }
input, textarea, select { margin-top: 7px; display: block; width: 100%; border: 1px solid #ccd8d8; border-radius: 7px; background: white; padding: 11px 12px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #9aa8a9; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(8, 127, 136, .13); }
textarea { min-height: 88px; resize: vertical; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.show-password { color: var(--teal-800); position: absolute; right: 8px; bottom: 6px; background: transparent; border: 0; padding: 5px 7px; font-size: 11px; font-weight: 750; }
.button { border: 0; border-radius: 7px; min-height: 42px; padding: 0 17px; font-weight: 750; letter-spacing: .05px; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button.primary { color: #fff; background: var(--teal-800); box-shadow: 0 4px 10px rgba(6, 61, 65, .14); }
.button.primary:hover { background: var(--teal-950); }
.button.primary span { font-size: 18px; line-height: 0; margin-left: 4px; }
.button.full { width: 100%; margin-top: 8px; }
.form-error, .form-success { display: none; font-size: 12px; margin: -4px 0 12px; }
.form-error:not(:empty) { color: var(--danger); display: block; }
.form-success:not(:empty) { color: var(--green); display: block; }

/* Dashboard shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { background: var(--paper); border-right: 1px solid var(--line); padding: 28px 18px 20px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; }
.sidebar .brand { padding: 0 9px; }
.workspace-label { font-size: 10px; letter-spacing: 1.3px; font-weight: 750; color: #9aa9aa; margin: 49px 9px 13px; }
.nav-list { display: grid; gap: 3px; }
.nav-link { border: 0; border-radius: 7px; padding: 10px 11px; background: transparent; color: #536567; text-align: left; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.nav-link:hover { background: #f0f5f5; color: var(--teal-950); }
.nav-link.active { background: var(--teal-100); color: var(--teal-950); font-weight: 750; }
.nav-icon { font-size: 17px; width: 17px; text-align: center; line-height: 1; }
.sidebar-bottom { margin-top: auto; }
.help-box { padding: 13px 9px; display: flex; align-items: flex-start; gap: 9px; color: var(--muted); border-top: 1px solid var(--line); }
.help-box > span { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; background: #edf2f2; border-radius: 50%; color: var(--teal-800); font-size: 12px; font-weight: 800; }
.help-box p { margin: 0; font-size: 10.5px; line-height: 1.45; }.help-box strong { color: #405254; }
.logout-button { width: 100%; background: transparent; color: #778789; border: 0; text-align: left; padding: 10px; font-weight: 650; }.logout-button:hover { color: var(--danger); }
.content-area { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 52px); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-weight: 750; color: #324749; }.breadcrumb-date { color: #91a0a1; font-weight: 500; font-size: 12px; padding-left: 13px; border-left: 1px solid #d8e0e0; }
.menu-button { display: none; background: transparent; border: 0; font-size: 24px; color: var(--teal-950); }
.profile-chip { background: transparent; border: 0; display: flex; align-items: center; gap: 9px; text-align: left; color: var(--ink); padding: 4px; }.profile-chip b { display: block; font-size: 12px; }.profile-chip small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }.chevron { color: var(--muted); margin-left: 3px; }
.avatar, .large-avatar { border-radius: 50%; display: grid; place-items: center; background: #cae6e2; color: var(--teal-950); font-weight: 800; }.avatar { width: 33px; height: 33px; font-size: 11px; }.large-avatar { width: 64px; height: 64px; font-size: 20px; }
.page-wrap { padding: clamp(28px, 4vw, 49px) clamp(22px, 4vw, 52px) 64px; max-width: 1540px; }
.page { display: none; }.page.active-page { display: block; }
.page-heading { margin-bottom: 28px; }.page-heading h1 { font-size: 29px; letter-spacing: -1px; line-height: 1.15; margin: 0 0 7px; }.page-heading > p:not(.eyebrow) { color: var(--muted); margin: 0; }.heading-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 15px; margin-bottom: 26px; }.stat-card { min-height: 124px; border: 1px solid var(--line); border-radius: 9px; padding: 20px; background: var(--paper); display: flex; align-items: flex-start; gap: 13px; }.stat-icon { width: 35px; height: 35px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; font-weight: 800; }.stat-icon.sea { background: var(--teal-100); color: var(--teal-800); }.stat-icon.amber { background: var(--amber-bg); color: #c78217; }.stat-icon.green { background: var(--green-bg); color: var(--green); }.stat-icon.violet { background: var(--violet-bg); color: var(--violet); }.stat-label { display: block; font-size: 9px; letter-spacing: .9px; font-weight: 750; color: #879697; margin: 2px 0 3px; }.stat-card strong { display: block; font-size: 27px; letter-spacing: -1px; line-height: 1; }.stat-card small { color: var(--muted); font-size: 10px; }
.content-card { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }.recent-card { padding: 23px 25px 8px; }.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.card-heading h2 { font-size: 15px; margin: 0 0 4px; }.card-heading p { color: var(--muted); margin: 0; font-size: 12px; }.text-button { border: 0; color: var(--teal-800); background: transparent; font-weight: 750; padding: 1px; font-size: 12px; }
.recent-list { min-height: 72px; }.recent-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 13px 1px; border-top: 1px solid var(--line); }.doc-icon { width: 31px; height: 33px; border-radius: 5px; background: #eaf2f2; color: var(--teal-800); display: grid; place-items: center; font-size: 15px; }.recent-item b { font-size: 12px; display: block; }.recent-item small { color: var(--muted); font-size: 11px; }.empty-state { color: var(--muted); text-align: center; padding: 32px 12px; font-size: 12px; }

/* Tables and details */
.plans-card { overflow: hidden; }.table-toolbar { padding: 17px 21px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }.search-wrap { max-width: 320px; flex: 1; position: relative; }.search-wrap span { position: absolute; color: #91a0a1; left: 11px; top: 8px; font-size: 19px; }.search-wrap input { margin: 0; padding: 9px 11px 9px 33px; font-size: 12px; }.item-count { color: var(--muted); font-size: 11px; white-space: nowrap; }.table-wrap { overflow-x: auto; }table { border-collapse: collapse; width: 100%; min-width: 730px; }th { text-align: left; color: #8a999a; background: #fbfcfc; font-size: 9px; letter-spacing: .8px; padding: 13px 21px; }td { padding: 14px 21px; border-top: 1px solid var(--line); font-size: 12px; color: #4d5e60; vertical-align: middle; }.plan-name { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }.plan-name .doc-icon { width: 27px; height: 29px; font-size: 13px; }.plan-name small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 1px; }.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 750; }.status.submitted { background: var(--amber-bg); color: #aa6c0c; }.status.reviewed { background: var(--green-bg); color: #187145; }.status.inactive { background: #f2eeee; color: #806565; }.action-button { border: 1px solid #d2dddd; border-radius: 5px; background: white; color: var(--teal-800); padding: 5px 8px; font-size: 11px; font-weight: 700; }.action-button:hover { background: var(--teal-100); }.action-stack { display: flex; gap: 6px; }.user-email { color: var(--muted); font-size: 11px; }

/* Account */
.account-grid { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.2fr); gap: 20px; max-width: 960px; }.profile-card { padding: 26px; }.account-identity { display: flex; align-items: center; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }.account-identity h2 { font-size: 18px; margin: 0 0 4px; }.account-identity p { margin: 0 0 9px; color: var(--muted); font-size: 12px; }.role-badge { display: inline-block; background: var(--teal-100); color: var(--teal-800); border-radius: 20px; padding: 3px 7px; font-size: 10px; font-weight: 750; }.info-row { padding: 17px 0 0; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }.info-row b { color: var(--ink); }.active-status { color: var(--green) !important; }.password-card { padding: 26px; }.form-grid { max-width: 480px; }.optional { color: var(--muted); font-weight: 500; }.file-input { border: 1px dashed #aebfbf; border-radius: 7px; padding: 12px; background: #fbfdfd; }.file-input input { border: 0; padding: 5px 0 0; box-shadow: none !important; background: transparent; }.file-input small { color: var(--muted); display: block; margin-top: 3px; font-size: 10px; font-weight: 500; }

/* Modals and notifications */
.modal { position: fixed; z-index: 20; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(6, 36, 38, .58); }.modal-card { position: relative; width: min(100%, 510px); max-height: calc(100vh - 48px); overflow-y: auto; background: white; border-radius: 11px; padding: 31px; box-shadow: 0 20px 70px rgba(0,0,0,.25); }.modal-card h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.5px; }.modal-description { color: var(--muted); margin: 0 0 23px; font-size: 12px; }.close-modal { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }.modal .form-grid { max-width: none; }.modal-locked { z-index: 30; }.modal-locked .modal-card { box-shadow: 0 20px 70px rgba(0,0,0,.3); }.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; min-width: 240px; max-width: min(420px, calc(100vw - 48px)); color: white; background: var(--teal-950); border-radius: 7px; padding: 13px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.18); font-size: 12px; }.toast.error { background: #9e3532; }

@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .login-shell { grid-template-columns: 1fr; }.login-copy { min-height: 295px; padding: 28px; }.login-hero { margin: auto 0 10px; }.login-hero h1 { font-size: 37px; margin-bottom: 12px; }.login-hero p:not(.eyebrow) { font-size: 14px; }.accent-line { margin: 14px 0 18px; }.login-footer { display: none; }.login-panel { padding: 42px 26px; align-items: start; }.app-shell { grid-template-columns: 1fr; }.sidebar { z-index: 15; position: fixed; width: 244px; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 0 0 0 rgba(0,0,0,0); }.app-shell.menu-open .sidebar { transform: translateX(0); box-shadow: 9px 0 30px rgba(0,0,0,.13); }.menu-button { display: block; }.topbar { padding: 0 20px; }.breadcrumb-date { display: none; }.profile-chip > span:nth-child(2), .chevron { display: none; }.page-wrap { padding: 27px 20px 45px; }.heading-split { align-items: flex-start; flex-direction: column; }.heading-split .button { width: 100%; }.stats-grid { grid-template-columns: 1fr; gap: 10px; }.stat-card { min-height: 105px; }.account-grid { grid-template-columns: 1fr; }.recent-card { padding: 19px 18px 5px; }.page-heading h1 { font-size: 26px; }.modal { padding: 14px; }.modal-card { padding: 25px 21px; max-height: calc(100vh - 28px); } }
