:root {
  --teal-950: #064d49;
  --teal-800: #087d71;
  --teal-700: #0a9486;
  --teal-100: #daf2ee;
  --teal-50: #effaf8;
  --ink: #1d2a2d;
  --muted: #718083;
  --line: #dfe7e5;
  --canvas: #f6f7f5;
  --panel: #ffffff;
  --gold: #efbd4d;
  --gold-50: #fff8e9;
  --blue: #496fcb;
  --blue-50: #eef3ff;
  --pink: #c95286;
  --danger: #c44948;
  --shadow: 0 18px 42px rgba(28, 53, 52, 0.07);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(8, 125, 113, 0.35); outline-offset: 2px; }
.skip-link { position: fixed; inset-inline-start: 14px; top: -70px; z-index: 50; padding: 10px 14px; background: var(--ink); color: white; border-radius: 10px; transition: top .18s ease; }
.skip-link:focus { top: 14px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.main-area { grid-column: 1; padding: 32px clamp(24px, 4vw, 64px) 42px; min-width: 0; }
.sidebar { grid-column: 2; border-inline-start: 1px solid var(--line); background: rgba(255,255,255,.84); padding: 24px 18px; display: flex; flex-direction: column; min-height: 100vh; }
body.ltr .app-shell { grid-template-columns: 290px minmax(0, 1fr); }
body.ltr .sidebar { grid-column: 1; border-inline-start: 0; border-inline-end: 1px solid var(--line); }
body.ltr .main-area { grid-column: 2; }

.brand { display: flex; align-items: center; gap: 11px; padding: 7px 8px 22px; text-align: start; text-decoration: none; color: inherit; }
.brand-mark { width: 36px; height: 36px; position: relative; flex: 0 0 36px; background: var(--teal-800); border-radius: 12px 12px 10px 10px; overflow: hidden; box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.brand-mark::before { content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid white; border-bottom: 0; border-radius: 11px 11px 0 0; bottom: 8px; inset-inline-start: 9px; }
.brand-mark::after { content: "✦"; position: absolute; color: var(--gold); font-size: 14px; top: 0; inset-inline-end: 3px; }
.brand-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.workspace-label { color: #93a2a0; font-size: 10px; font-weight: 800; letter-spacing: .1em; margin: 5px 9px 10px; text-align: start; }
.nav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; background: transparent; border-radius: 11px; color: #58676a; font-size: 13px; font-weight: 650; text-align: start; transition: .18s ease; }
.nav-button:hover { color: var(--teal-950); background: var(--teal-50); }
.nav-button.active { background: var(--teal-100); color: var(--teal-950); }
.nav-icon { width: 18px; text-align: center; font-size: 17px; line-height: 1; }
.nav-badge { margin-inline-start: auto; padding: 2px 7px; border-radius: 99px; background: white; color: var(--teal-800); font-size: 11px; }
.sidebar-info { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px; margin: 24px 4px 0; box-shadow: 0 6px 20px rgba(24,49,46,.03); }
.sidebar-info strong { display: block; font-size: 12px; }
.sidebar-info p { margin: 7px 0 0; font-size: 11px; color: var(--muted); line-height: 1.65; }
.profile { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 7px 4px; display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: #9d7116; font-weight: 800; font-size: 12px; }
.profile-copy { min-width: 0; text-align: start; }
.profile-copy strong { font-size: 12px; display: block; }
.profile-copy span { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 32px; }
.breadcrumb { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.breadcrumb b { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .lang-button { height: 37px; min-width: 37px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: #566569; display: grid; place-items: center; transition: .18s ease; }
.icon-button:hover, .lang-button:hover { border-color: var(--teal-700); color: var(--teal-800); }
.lang-button { padding: 0 11px; font-size: 12px; font-weight: 800; }
.role-switcher { display: flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 10px; font-weight: 750; }
.role-switcher select { border: 0; background: transparent; color: var(--teal-950); font-size: 11px; font-weight: 850; outline: none; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.1; letter-spacing: -.045em; margin: 0; }
.page-heading p { color: var(--muted); max-width: 660px; font-size: 14px; line-height: 1.55; margin: 9px 0 0; }
.primary-button, .secondary-button { border: 0; border-radius: 11px; font-weight: 750; padding: 11px 15px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; white-space: nowrap; }
.primary-button { background: var(--teal-800); color: white; box-shadow: 0 8px 17px rgba(8,125,113,.18); }
.primary-button:hover { background: var(--teal-950); transform: translateY(-1px); }
.secondary-button { background: white; color: var(--ink); border: 1px solid var(--line); }
.secondary-button:hover { background: var(--teal-50); border-color: var(--teal-100); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

.upload-layout { max-width: 820px; margin: 0 auto; }
.upload-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.upload-zone { min-height: 235px; border: 2px dashed #63b9ae; border-radius: 16px; background: linear-gradient(140deg, var(--teal-50), #fff 60%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; cursor: pointer; transition: .18s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--teal-800); background: #eaf8f5; }
.upload-glyph { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 16px; background: #dff2ef; color: var(--teal-800); font-size: 25px; margin-bottom: 12px; }
.upload-zone strong { font-size: 15px; }
.upload-zone span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.file-name { display: none; align-items: center; gap: 8px; margin: 12px 4px 0; padding: 10px 12px; border-radius: 10px; background: var(--teal-50); color: var(--teal-950); font-size: 12px; }
.file-name.visible { display: flex; }
.extraction-card { display: flex; align-items: flex-start; gap: 10px; margin: 12px 4px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: start; }
.extraction-card.extracting { background: #f8fbfb; }
.extraction-card.ready { background: var(--teal-50); border-color: #b8e4dc; }
.extraction-card strong, .extraction-card span { display: block; }
.extraction-card strong { font-size: 12px; color: var(--teal-950); }
.extraction-card span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.extraction-card p { margin: 7px 0 0; color: #506164; font-size: 11px; line-height: 1.5; }
.mini-spinner, .extraction-check { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; }
.mini-spinner { border: 3px solid #cfe8e3; border-top-color: var(--teal-700); animation: spin .8s linear infinite; }
.extraction-check { color: white; background: var(--teal-800); font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { color: #9aaaac; display: flex; align-items: center; gap: 12px; font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.manual-trigger { width: 100%; background: white; border: 1px solid var(--line); color: #4d5e61; padding: 12px; border-radius: 11px; font-weight: 700; }
.manual-trigger:hover { background: var(--teal-50); border-color: var(--teal-100); }
.manual-form { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .42s ease, opacity .24s ease, margin-top .24s ease; }
.manual-form.open { max-height: none; opacity: 1; overflow: visible; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 7px; text-align: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #46575a; font-weight: 750; }
.field-hint { color: #657578; font-size: 11px; line-height: 1.5; }
.vip-attendee-field { padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafcfb; transition: border-color .18s ease, background .18s ease; }
.vip-attendee-field label { color: #516164; }
.vip-attendee-field.needs-review { border-color: #e7bd5f; background: linear-gradient(135deg, #fff6dc, #fffdf8); }
.vip-attendee-field.needs-review label { color: #8a6414; }
.vip-attendee-field.ready { border-color: #9ad8cd; background: linear-gradient(135deg, #effaf8, #fff); }
.vip-attendee-field.ready label { color: var(--teal-950); }
.vip-attendee-status { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; margin-bottom: 10px; border-radius: 9px; color: #647477; background: #f2f5f4; }
.vip-attendee-status.needs-review { color: #76520b; background: #fff0c9; }
.vip-attendee-status.ready { color: #155b51; background: #ddf3ee; }
.vip-status-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: currentColor; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 900; }
.vip-attendee-status strong { display: block; font-size: 11px; }
.vip-attendee-status p { margin: 2px 0 0; font-size: 10px; line-height: 1.45; }
.vip-alternative { border: 1px solid #d8a83a; border-radius: 8px; background: white; color: #845b0d; padding: 7px 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.vip-alternative:hover { background: #fffaf0; }
.req { color: var(--pink); }
.field input, .field select, .field textarea, .filter-control input, .filter-control select { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: 10px 11px; border-radius: 9px; outline: none; font-size: 13px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-control input:focus, .filter-control select:focus { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(8,125,113,.10); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.swatch { width: 25px; height: 25px; border: 2px solid white; box-shadow: 0 0 0 1px rgba(24,45,44,.15); border-radius: 50%; padding: 0; }
.swatch.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-submit { width: 100%; margin-top: 19px; }
.document-editor { padding: 15px; border: 1px solid #d6e4ee; border-radius: 13px; background: linear-gradient(135deg, #f6fbfe, #fff); }
.document-editor-head strong { display: block; color: #35596b; font-size: 13px; }
.document-editor-head p { margin: 5px 0 13px; color: #617177; font-size: 11px; line-height: 1.55; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.document-grid .field.full { grid-column: 1 / -1; }
.schedule-editor { padding: 15px; border: 1px solid #cbe8e2; border-radius: 13px; background: linear-gradient(135deg, var(--teal-50), #fff); }
.schedule-editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.schedule-editor-head strong { display: block; font-size: 13px; color: var(--teal-950); }
.schedule-editor-head p { margin: 5px 0 0; color: #536568; font-size: 11px; line-height: 1.55; max-width: 540px; }
.schedule-editor-head .secondary-button { padding: 8px 10px; font-size: 11px; }
.schedule-rows { display: grid; gap: 9px; margin-top: 13px; }
.schedule-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; gap: 9px; align-items: end; padding-top: 10px; border-top: 1px solid #d7ebe7; }
.remove-schedule-day { width: 34px; height: 38px; border: 1px solid #efc2c2; border-radius: 9px; background: white; color: var(--danger); font-size: 18px; }
.remove-schedule-day:hover { background: #fff3f3; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stat span { display: block; color: var(--muted); font-size: 11px; }
.stat strong { font-size: 24px; display: block; margin-top: 4px; letter-spacing: -.04em; }
.stat .stat-note { color: var(--teal-800); font-weight: 700; font-size: 10px; margin-top: 5px; }
.ledger-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.filters { padding: 17px; display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filter-control { position: relative; flex: 1 1 180px; }
.filter-control.search { flex: 2 1 260px; }
.filter-control .search-icon { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: #93a1a4; pointer-events: none; }
.filter-control.search input { padding-inline-start: 33px; }
.tabs { display: flex; gap: 2px; padding: 0 17px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 13px 12px; color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--teal-800); border-bottom-color: var(--teal-800); }
.table-wrap { overflow-x: auto; }
.invite-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 12px; text-align: start; }
.invite-table th { padding: 12px 14px; background: #f8faf9; color: #93a0a2; font-size: 10px; letter-spacing: .06em; font-weight: 800; white-space: nowrap; }
.invite-table td { border-top: 1px solid #edf0ef; padding: 13px 14px; vertical-align: middle; }
.invite-table tbody tr { transition: background .15s ease; }
.invite-table tbody tr:hover { background: #fbfdfc; }
.invite-ref { font-weight: 800; font-variant-numeric: tabular-nums; }
.invite-title { display: flex; gap: 8px; align-items: flex-start; max-width: 260px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-top: 5px; }
.invite-title b { display: block; font-size: 12px; line-height: 1.35; }
.invite-title span { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 3px; }
.type-chip, .importance, .status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 99px; font-size: 10px; white-space: nowrap; }
.type-chip { background: #f2f5f5; color: #526265; }
.importance.vip { background: #f1edff; color: #6350a6; }
.importance.high { background: var(--gold-50); color: #9a6f12; }
.importance.normal { background: #f2f5f5; color: #586669; }
.status.confirmed { background: var(--blue-50); color: #405ca6; }
.status.pending { background: var(--gold-50); color: #956a11; }
.status.declined { background: #fff0f0; color: var(--danger); }
.coverage { display: flex; flex-direction: column; gap: 3px; }
.people { display: flex; direction: ltr; }
.initial { width: 21px; height: 21px; margin-inline-end: -4px; border: 2px solid white; border-radius: 50%; background: #e4e8fe; color: #4d53a1; display: grid; place-items: center; font-weight: 800; font-size: 8px; }
.coverage small { color: #a77a19; font-size: 9px; white-space: nowrap; }
.open-button { border: 0; color: var(--teal-800); background: transparent; font-weight: 800; font-size: 11px; }
.open-button:hover { text-decoration: underline; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.decision-queue { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 15px; padding: 13px 15px; border: 1px solid #b8e4dc; border-radius: 13px; background: var(--teal-50); }
.queue-step { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal-800); font-size: 12px; font-weight: 850; }
.decision-queue strong { display: block; color: var(--teal-950); font-size: 12px; }
.decision-queue p { margin: 3px 0 0; color: #506164; font-size: 12px; line-height: 1.55; }
.workspace-intro, .role-gate { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid #b8e4dc; border-radius: 14px; background: linear-gradient(135deg, var(--teal-50), #fff); }
.workspace-intro strong, .role-gate h2 { display: block; margin: 0; color: var(--teal-950); font-size: 14px; }
.workspace-intro p, .role-gate p { margin: 4px 0 0; color: #5d6b6d; font-size: 12px; line-height: 1.5; }
.queue-count { display: inline-flex; align-items: center; border: 1px solid #cce7e1; border-radius: 999px; padding: 8px 11px; background: var(--teal-50); color: var(--teal-950); font-size: 12px; font-weight: 850; }
.approved-intro { border-color: #cedaf7; background: linear-gradient(135deg, #f1f5ff, #fff); }
.approved-count { margin-inline-start: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #3f5ca2; background: var(--blue-50); font-weight: 850; }
.role-gate { max-width: 660px; margin-top: 12px; border-color: #e6d9b7; background: linear-gradient(135deg, #fffaf0, #fff); }
.role-gate-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 50%; color: #9d7116; background: var(--gold-50); font-weight: 900; }
.workspace-list { display: grid; gap: 12px; max-width: 980px; }
.workspace-invitation { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 16px; align-items: center; overflow: hidden; padding: 17px 18px 17px 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 22px rgba(25,50,48,.04); }
.workspace-invitation-bar { align-self: stretch; border-radius: 0 5px 5px 0; }
.workspace-invitation-main { min-width: 0; }
.workspace-invitation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-decision { color: #9a6f12; font-size: 10px; font-weight: 850; }
.workspace-invitation h3 { margin: 9px 0 4px; font-size: 15px; line-height: 1.4; }
.workspace-invitation p { margin: 0; color: var(--muted); font-size: 12px; }
.workspace-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 11px; color: #607173; font-size: 11px; }
.vip-attendee-chip { color: #8a6414; font-weight: 800; }
.workspace-invitation > .secondary-button { margin-inline-end: 0; font-size: 11px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.calendar-day { min-height: 156px; padding: 12px; border-inline-end: 1px solid #edf0ef; border-bottom: 1px solid #edf0ef; min-width: 90px; }
.calendar-day:nth-child(7n) { border-inline-end: 0; }
.calendar-day b { font-size: 12px; color: #536265; }
.calendar-event { border-inline-start: 3px solid var(--teal-800); margin-top: 8px; padding: 7px; background: var(--teal-50); border-radius: 5px; font-size: 10px; line-height: 1.4; }
.agenda-list { display: grid; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.agenda-date { color: var(--teal-800); font-weight: 800; font-size: 12px; }
.agenda-item h3 { margin: 0; font-size: 14px; }
.agenda-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.archive-card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.archive-card .archive-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--teal-800); background: var(--teal-50); }
.archive-card h3 { font-size: 14px; margin: 14px 0 4px; }
.archive-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-start; background: rgba(17,31,31,.25); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { width: min(430px, calc(100vw - 28px)); background: white; padding: 25px; box-shadow: -12px 0 36px rgba(18,42,40,.13); transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
body.ltr .drawer-backdrop { justify-content: flex-end; }
body.ltr .drawer { transform: translateX(-105%); }
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.drawer h2 { margin: 12px 0 6px; font-size: 22px; line-height: 1.25; }
.drawer p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-list { display: grid; gap: 11px; margin-top: 24px; }
.detail { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.detail span { color: var(--muted); }
.detail b { text-align: end; }
.detail.vip-detail { border-radius: 10px; padding: 11px; border: 1px solid #eadbb2; background: #fffaf0; }
.detail.vip-detail b { color: #825f13; }
.decision-panel { margin-top: 22px; padding: 16px; border: 1px solid #b8e4dc; border-radius: 14px; background: var(--teal-50); }
.decision-kicker { color: var(--teal-800); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.decision-panel h3 { margin: 6px 0 4px; font-size: 16px; }
.decision-panel p { margin: 0 0 13px; color: #526366; font-size: 12px; line-height: 1.55; }
.decision-panel label { display: block; margin-bottom: 6px; color: #45575a; font-size: 12px; font-weight: 800; }
.decision-panel select { width: 100%; border: 1px solid #a9dcd3; border-radius: 9px; background: white; color: var(--ink); padding: 10px 11px; font-size: 13px; }
.decision-actions { display: flex; gap: 8px; margin-top: 13px; }
.decision-actions button { flex: 1; white-space: normal; }
.decline-button { border: 1px solid #efc2c2; border-radius: 11px; background: white; color: var(--danger); font-weight: 800; padding: 11px 12px; }
.decline-button:hover { background: #fff4f4; }
.reminder-panel { margin-top: 16px; padding: 16px; border: 1px solid #d9d4f3; border-radius: 14px; background: #f8f6ff; }
.reminder-panel h3 { margin: 6px 0 12px; font-size: 16px; }
.reminder-panel form { display: grid; gap: 9px; }
.reminder-panel label { color: #45575a; font-size: 12px; font-weight: 800; }
.reminder-panel input, .reminder-panel select { width: 100%; border: 1px solid #d6d0ef; border-radius: 9px; background: white; color: var(--ink); padding: 10px 11px; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; }
.checkbox-label input { width: auto; }
.reminder-layout { display: grid; gap: 16px; max-width: 920px; }
.reminder-section, .email-settings-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-heading h2, .email-settings-card h2 { margin: 3px 0 0; font-size: 18px; }
.eyebrow { color: var(--teal-800); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.reminder-card { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf0ef; }
.reminder-card:first-of-type { border-top: 0; }
.reminder-marker { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eef1ff; color: #5d60a7; font-weight: 850; }
.review-reminder .reminder-marker { background: var(--gold-50); color: #a97814; }
.reminder-copy { min-width: 0; }
.reminder-copy h3 { margin: 0; font-size: 13px; line-height: 1.4; }
.reminder-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reminder-channel { display: inline-block; margin-top: 6px; color: #8064a4; font-size: 10px; font-weight: 750; }
.reminder-actions { display: flex; align-items: center; gap: 8px; }
.text-button { border: 0; background: transparent; color: var(--teal-800); font-weight: 800; font-size: 11px; padding: 8px 4px; }
.text-button:hover { text-decoration: underline; }
.empty-card { padding: 18px; border: 1px dashed #c9d8d5; border-radius: 12px; background: #fbfdfc; color: var(--muted); font-size: 12px; text-align: center; }
.email-settings-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 24px; align-items: center; background: linear-gradient(135deg, #f4fbfa, #fff); border-color: #c9e5df; }
.email-settings-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.email-settings-form { display: grid; gap: 8px; }
.email-settings-form label { color: #45575a; font-size: 12px; font-weight: 800; }
.email-settings-form input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 10px 11px; font-size: 13px; }
.email-settings-form .secondary-button { justify-self: start; padding: 9px 12px; font-size: 12px; }
.is-dismissed { opacity: .62; }

.toast-region { position: fixed; z-index: 60; bottom: 20px; inset-inline-start: 20px; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 340px; padding: 12px 14px; background: var(--ink); color: white; border-radius: 12px; box-shadow: 0 12px 28px rgba(18,36,35,.22); font-size: 12px; animation: toast-in .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .app-shell, body.ltr .app-shell { display: flex; flex-direction: column; width: 100%; overflow-x: clip; }
  .sidebar, body.ltr .sidebar { order: -1; width: 100%; border: 0; min-height: auto; padding: 15px 18px; position: sticky; top: 0; z-index: 12; box-shadow: 0 1px 0 var(--line); }
  .brand { padding: 2px 5px 10px; }
  .workspace-label, .sidebar-info, .profile { display: none; }
  .role-switcher span { display: none; }
  .nav-list { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 2px; }
  .nav-button { flex: 0 0 auto; width: auto; padding: 8px 10px; }
  .nav-badge { display: none; }
  .main-area, body.ltr .main-area { width: 100%; max-width: 100%; grid-column: auto; padding: 24px 20px 36px; }
  .upload-layout { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topbar { margin-bottom: 24px; }
  .breadcrumb { display: none; }
  .topbar { justify-content: flex-end; }
  .page-heading { display: block; }
  .page-heading .button-row { margin-top: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .upload-card { padding: 13px; }
  .upload-zone { min-height: 205px; }
  .stat-row { gap: 8px; }
  .stat { padding: 12px; }
  .calendar-grid { grid-template-columns: repeat(7, 110px); }
  .agenda-item { grid-template-columns: 59px minmax(0, 1fr); gap: 10px; padding: 13px; }
  .agenda-item .status { display: none; }
  .workspace-invitation { grid-template-columns: 4px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .workspace-invitation > .secondary-button { grid-column: 2; justify-self: start; }
  .workspace-meta { gap: 5px 10px; }
  .archive-grid { grid-template-columns: 1fr; }
  .decision-actions { flex-direction: column; }
  .schedule-editor-head, .email-settings-card { grid-template-columns: 1fr; display: grid; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .document-grid { grid-template-columns: 1fr; }
  .document-grid .field.full { grid-column: auto; }
  .vip-attendee-status { grid-template-columns: 21px minmax(0, 1fr); align-items: start; }
  .vip-alternative { grid-column: 2; justify-self: start; }
  .remove-schedule-day { grid-column: 1 / -1; width: 100%; height: 34px; }
  .reminder-card { grid-template-columns: 30px minmax(0,1fr); align-items: start; }
  .reminder-card > .primary-button, .reminder-card > .reminder-actions, .reminder-card > .text-button { grid-column: 2; justify-self: start; }
  .reminder-actions { flex-wrap: wrap; }
}


/* SBA visual system — derived from the supplied SBA public website reference. */
@font-face {
  font-family: "SBA Sharjah";
  src: url("/fonts/SharjahWeb-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SBA Sharjah";
  src: url("/fonts/SharjahWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SBA Sharjah";
  src: url("/fonts/SharjahWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-950: #6c3211;
  --teal-800: #d7771a;
  --teal-700: #e28a2c;
  --teal-100: #fff0df;
  --teal-50: #fff8f1;
  --ink: #17191d;
  --muted: #676c74;
  --line: #e4e6e9;
  --canvas: #f7f7f8;
  --panel: #ffffff;
  --gold: #e6aa33;
  --gold-50: #fff7e4;
  --blue: #415da2;
  --blue-50: #eff3ff;
  --pink: #b9495f;
  --shadow: 0 16px 42px rgba(24, 25, 28, 0.07);
  font-family: "SBA Sharjah", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body { background: linear-gradient(180deg, #ffffff 0, var(--canvas) 290px); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline-color: rgba(215, 119, 26, .36); }

.app-shell, body.ltr .app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 88px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar, body.ltr .sidebar {
  grid-column: 1;
  grid-row: 1;
  min-height: 88px;
  padding: 10px clamp(18px, 3vw, 54px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 3px 18px rgba(20, 21, 23, .03);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-area, body.ltr .main-area {
  grid-column: 1;
  grid-row: 2;
  width: min(100%, 1440px);
  min-width: 0;
  margin-inline: auto;
  padding: 30px clamp(22px, 4.2vw, 68px) 54px;
}

.brand { min-width: max-content; gap: 12px; padding: 2px 0; }
.brand-mark {
  width: 132px;
  height: 58px;
  flex: 0 0 132px;
  border-radius: 0;
  background: url("/sba-logo.webp") center / contain no-repeat;
  box-shadow: none;
  overflow: visible;
}
.brand-mark::before, .brand-mark::after { display: none; }
.brand-copy { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.brand-copy strong { max-width: 160px; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.2; }
.brand-copy span { color: var(--teal-800); font-size: 10px; font-weight: 700; margin-top: 4px; }
.workspace-label, .sidebar-info { display: none; }
.sidebar nav { flex: 1 1 auto; min-width: 0; }
.nav-list { display: flex; align-items: stretch; justify-content: center; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-button {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-height: 52px;
  padding: 15px 10px 13px;
  border-radius: 0;
  color: #3f434a;
  font-size: 12px;
  font-weight: 700;
}
.nav-button::after { content: ""; position: absolute; inset-inline: 10px; bottom: 5px; height: 2px; background: transparent; transition: background .18s ease; }
.nav-button:hover { color: var(--teal-800); background: transparent; }
.nav-button.active { color: var(--teal-800); background: transparent; }
.nav-button.active::after { background: var(--teal-800); }
.nav-icon { color: var(--teal-800); font-size: 15px; }
.nav-badge { background: var(--teal-50); color: var(--teal-950); }
.profile { margin-top: 0; padding: 0; border: 0; gap: 7px; }
.avatar { width: 33px; height: 33px; background: var(--teal-50); color: var(--teal-950); }
.profile-copy strong { color: var(--ink); }

.topbar { max-width: 1240px; margin: 0 auto 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #848991; font-size: 11px; font-weight: 400; }
.breadcrumb b { color: #34373d; font-weight: 700; }
.icon-button, .lang-button { border-color: #e1e3e6; border-radius: 8px; color: #454951; background: #fff; }
.icon-button:hover, .lang-button:hover { border-color: var(--teal-800); color: var(--teal-800); }
.lang-button { border-color: var(--teal-800); color: #fff; background: var(--teal-800); }
.lang-button:hover { color: #fff; background: var(--teal-950); }
.role-switcher { border-radius: 8px; border-color: #e2e4e8; background: #fff; }
.role-switcher select { color: #393d43; }

.page-heading { position: relative; max-width: 1240px; margin: 0 auto 24px; padding-top: 17px; }
.page-heading::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 50px; height: 3px; background: var(--teal-800); }
.page-heading h1 { color: #17191d; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.035em; }
.page-heading p { color: #6d727a; max-width: 700px; font-size: 14px; }
.primary-button, .secondary-button { border-radius: 8px; font-weight: 700; }
.primary-button { background: var(--teal-800); box-shadow: 0 8px 17px rgba(215,119,26,.18); }
.primary-button:hover { background: var(--teal-950); }
.secondary-button { border-color: #d9dce0; color: #32363d; }
.secondary-button:hover { border-color: var(--teal-800); color: var(--teal-800); background: var(--teal-50); }

.upload-layout { max-width: 940px; }
.upload-card, .ledger-card, .reminder-section, .email-settings-card { border-radius: 20px; border-color: #e4e6e9; box-shadow: var(--shadow); }
.upload-card { padding: 24px; }
.upload-zone { min-height: 250px; border-color: #d7771a; border-style: dashed; background: linear-gradient(135deg, #fff8f0, #fff 62%); }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--teal-950); background: #fff2e4; }
.upload-glyph { border-radius: 12px; color: #fff; background: var(--teal-800); }
.file-name, .extraction-card.ready { color: var(--teal-950); background: var(--teal-50); }
.extraction-card.ready { border-color: #f0cfac; }
.extraction-check, .queue-step { background: var(--teal-800); }
.manual-trigger { border-radius: 8px; }
.manual-trigger:hover { border-color: var(--teal-800); background: var(--teal-50); }
.field input:focus, .field select:focus, .field textarea:focus, .filter-control input:focus, .filter-control select:focus { border-color: var(--teal-800); box-shadow: 0 0 0 3px rgba(215,119,26,.1); }
.document-editor { border-color: #ead8c4; background: linear-gradient(135deg, #fffaf5, #fff); }
.document-editor-head strong { color: var(--teal-950); }
.schedule-editor, .decision-panel { border-color: #f0cfac; background: linear-gradient(135deg, var(--teal-50), #fff); }
.schedule-editor-head strong, .decision-queue strong, .workspace-intro strong { color: var(--teal-950); }

.stat { position: relative; overflow: hidden; border-color: #e4e6e9; border-radius: 16px; }
.stat::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--teal-800); }
.stat strong { color: #24272d; }
.stat .stat-note, .eyebrow { color: var(--teal-800); }
.ledger-card { border-radius: 20px; }
.filters { background: #fff; }
.filter-control input, .filter-control select { border-radius: 8px; }
.tabs { background: #fffaf5; }
.tab.active { color: var(--teal-800); border-bottom-color: var(--teal-800); }
.invite-table th { background: #f8f8f9; color: #7d8289; }
.invite-table tbody tr:hover { background: #fffaf5; }
.type-chip { background: #f0f1f3; color: #4b5058; }
.importance.vip { background: #fff0df; color: #9b4a0e; }
.importance.high, .status.pending { background: var(--gold-50); color: #936514; }
.status.confirmed { background: #eef4ec; color: #3f6c3d; }
.open-button, .text-button { color: var(--teal-800); }

.workspace-intro, .role-gate, .decision-queue { border-color: #f0cfac; background: linear-gradient(135deg, #fff8f1, #fff); }
.approved-intro { border-color: #d6e2d1; background: linear-gradient(135deg, #f6faf5, #fff); }
.approved-count { color: #3e6a3d; background: #edf5ea; }
.workspace-invitation { border-radius: 18px; box-shadow: 0 10px 28px rgba(28,30,34,.05); }
.workspace-invitation-bar { border-radius: 0 4px 4px 0; }
.workspace-decision, .vip-attendee-chip { color: var(--teal-800); }
.calendar-grid { border-radius: 20px; box-shadow: var(--shadow); }
.calendar-event { border-color: var(--teal-800); background: var(--teal-50); }
.agenda-item, .archive-card { border-radius: 16px; box-shadow: 0 8px 24px rgba(28,30,34,.035); }
.archive-card .archive-icon { color: var(--teal-800); background: var(--teal-50); }
.drawer { border-inline-start: 3px solid var(--teal-800); box-shadow: -12px 0 40px rgba(20,21,23,.18); }
.detail.vip-detail { border-color: #f0cfac; background: var(--teal-50); }
.detail.vip-detail b { color: var(--teal-950); }
.reminder-panel { border-color: #ead8c4; background: #fffaf5; }
.email-settings-card { border-color: #ead8c4; background: linear-gradient(135deg, #fffaf5, #fff); }

@media (max-width: 1080px) {
  .app-shell, body.ltr .app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .sidebar, body.ltr .sidebar { min-height: auto; flex-wrap: wrap; gap: 6px 18px; padding-block: 10px; }
  .sidebar nav { order: 3; flex-basis: 100%; }
  .nav-list { justify-content: flex-start; }
  .brand-copy { display: none; }
  .profile { margin-inline-start: auto; }
}

@media (max-width: 620px) {
  .sidebar, body.ltr .sidebar { padding: 8px 15px; gap: 8px; }
  .brand-mark { width: 102px; height: 45px; flex-basis: 102px; }
  .profile { display: none; }
  .nav-button { min-height: 40px; padding: 9px 8px; font-size: 11px; }
  .nav-button::after { bottom: 1px; inset-inline: 8px; }
  .nav-icon { display: none; }
  .main-area, body.ltr .main-area { padding: 22px 16px 40px; }
  .topbar { margin-bottom: 12px; }
  .page-heading { padding-top: 14px; }
  .page-heading h1 { font-size: 29px; }
  .upload-card { padding: 14px; }
}
