@charset "UTF-8";

:root {
  --brand: #000000;
  --brand-deep: #0c0a09;
  --brand-strong: #292724;
  --accent: #8c6a34;
  --accent-light: #c9a46b;
  --accent-strong: #76592c;
  --accent-tint: #eadfcf;
  --surface-soft: #f5f2ed;
  --accent-line: #d7c8b0;
  --canvas: #f7f7f6;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #626262;
  --line: #e4e1dc;
  --line-soft: #efede9;
  --input-border: #91897d;
  --on-brand-soft: #f5f3ef;
  --on-brand-muted: #c7c3bb;
  --on-brand-hover: #ffffff0e;
  --on-brand-line: #ffffff18;
  --on-brand-tint: #ffffff10;
  --brand-decoration: #c9a46b19;
  --brand-overlay: #000000a0;
  --focus: #8c6a34;
  --focus-soft: #8c6a34;
  --success: #256346;
  --success-indicator: #5b9877;
  --success-bg: #eaf5ee;
  --success-line: #c4dfcd;
  --warning: #875c18;
  --warning-bg: #fff4df;
  --warning-line: #e8d8af;
  --danger: #a13d3d;
  --danger-bg: #fff0ef;
  --danger-line: #e6c5c2;
  --radius: 14px;
  --sidebar-width: 248px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .7; }
img, svg { vertical-align: middle; }
svg.icon { flex-shrink: 0; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-soft); outline-offset: 0; border-color: var(--brand-strong); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(25px, 2.3vw, 33px); line-height: 1.22; font-weight: 650; letter-spacing: -.9px; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.35px; }
h3 { font-size: 16px; font-weight: 650; }
h4 { font-size: 14px; font-weight: 650; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-value { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; color: var(--paper); background: var(--brand); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 9px; font-size: 9px; line-height: 1.2; letter-spacing: 1.75px; font-weight: 650; color: var(--muted); }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* Navigation */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); background: var(--brand); color: var(--paper); border-top: 3px solid var(--accent); display: flex; flex-direction: column; padding: 36px 21px 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font-size: 27px; letter-spacing: 5px; line-height: 1.1; font-weight: 450; }
.sidebar .brand { margin: 0 0 48px; }
.brand-logo-frame { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; background: transparent; border: 0; padding: 0; line-height: 1; letter-spacing: normal; }
.brand-logo { display: block; width: 190px; max-width: 100%; height: auto; aspect-ratio: 2946 / 991; object-fit: contain; }
.sidebar .brand-logo-frame { width: 190px; max-width: 100%; margin: 0 0 48px; }
.brand-logo-mobile { display: block; width: 190px; max-width: 100%; height: auto; }
.sidebar-close { display: none !important; }
.nav-caption { color: var(--on-brand-muted); font-size: 8px; letter-spacing: 1.5px; margin: 0 13px 15px; }
.main-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 9px; color: var(--on-brand-soft); font-size: 13px; font-weight: 450; min-height: 47px; transition: background .15s, color .15s; }
.nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { background: var(--on-brand-hover); color: var(--paper); }
.nav-link.is-active { background: var(--on-brand-tint); color: var(--accent-light); box-shadow: inset 3px 0 var(--accent); font-weight: 650; }
.nav-link.is-active .icon { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding: 28px 9px 0; }
.sidebar-note { display: flex; align-items: center; gap: 8px; color: var(--on-brand-muted); font-size: 10px; margin-bottom: 23px; }
.profile-block { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--on-brand-line); padding-top: 22px; }
.profile-block > div { min-width: 0; }
.profile-block strong { display: block; max-width: 151px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; font-weight: 550; }
.profile-block div > span { display: block; color: var(--on-brand-muted); font-size: 10px; margin-top: 2px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-strong); color: var(--on-brand-soft); font-size: 11px; font-weight: 650; flex-shrink: 0; letter-spacing: .2px; }
.avatar-small { width: 30px; height: 30px; font-size: 10px; background: var(--accent-tint); color: var(--brand); }
.avatar-light { background: var(--surface-soft); color: var(--brand-strong); }
.profile-actions { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 0; color: var(--on-brand-muted); font-size: 10px; }
.profile-actions a:hover, .text-button:hover { color: var(--paper); }
.profile-actions form { margin: 0; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; font-size: inherit; color: inherit; }
.text-button .icon { height: 13px; width: 13px; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 38px; }
.topbar-label { color: var(--muted); font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.environment-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.menu-toggle { display: none !important; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.main-content { width: 100%; max-width: 1640px; padding: 33px 38px 0; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 27px; }
.page-subtitle { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 9px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex-shrink: 0; }
.page-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 24px; }

/* Buttons and panels */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; line-height: 1.2; font-size: 11px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--surface-soft); border-color: var(--accent-line); }
.button-full { width: 100%; }
.quiet-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--brand-strong); white-space: nowrap; }
.quiet-link .icon { width: 15px; height: 15px; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px 20px; }
.section-heading .eyebrow { font-size: 8px; margin-bottom: 6px; letter-spacing: 1.4px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 11px; margin-top: 6px; }
.subtle-chip { display: inline-block; padding: 6px 9px; border-radius: 6px; background: var(--surface-soft); font-size: 10px; color: var(--muted); white-space: nowrap; }
.count-pill { min-width: 28px; height: 28px; display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--brand); font-size: 12px; font-weight: 650; }
.count-warning { background: var(--warning-bg); color: var(--warning); }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 600; color: var(--muted); background: var(--line-soft); line-height: 1.35; white-space: nowrap; }
.badge-approved, .badge-completed, .badge-closed, .badge-won, .badge-sold, .badge-active, .badge-available { color: var(--success); background: var(--success-bg); }
.badge-submitted, .badge-review, .badge-in_progress, .badge-contract, .badge-reserved, .badge-negotiation { color: var(--brand-strong); background: var(--surface-soft); }
.badge-pending, .badge-draft { color: var(--warning); background: var(--warning-bg); }
.badge-rejected, .badge-cancelled, .badge-canceled { color: var(--danger); background: var(--danger-bg); }
.badge-inactive, .badge-na { color: var(--muted); background: var(--surface-soft); }
.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 9px; font-size: 12px; background: var(--surface-soft); border: 1px solid var(--accent-line); color: var(--brand); }
.message-success { color: var(--success); border-color: var(--success-line); background: var(--success-bg); }
.message-error { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }
.message-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-line); }

/* Dashboard */
.period-form { display: flex; align-items: center; gap: 7px; }
.period-form input { width: 81px; min-height: 40px; padding: 9px 8px; border-radius: 8px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 23px; }
.kpi-card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 20px 19px 18px; min-height: 140px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.kpi-icon { background: var(--surface-soft); color: var(--accent-strong); height: 29px; width: 29px; display: flex; justify-content: center; align-items: center; border-radius: 8px; flex-shrink: 0; }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-value { display: block; font-size: clamp(20px, 1.65vw, 28px); font-weight: 620; letter-spacing: -1px; margin: 12px 0 4px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-caption { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.kpi-featured { background: var(--brand); color: var(--on-brand-soft); border-color: var(--brand); }
.kpi-featured .kpi-top { color: var(--on-brand-soft); }
.kpi-featured .kpi-icon { background: var(--on-brand-tint); color: var(--on-brand-muted); }
.kpi-featured .kpi-caption { color: var(--on-brand-muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr); gap: 23px; margin-bottom: 23px; }
.bar-chart { height: 216px; padding: 5px 24px 0; display: flex; gap: clamp(7px, 1vw, 15px); position: relative; align-items: stretch; }
.chart-column { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.chart-bar-area { width: 100%; height: 181px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to top, transparent 0, transparent 59px, var(--line-soft) 59px, var(--line-soft) 60px); }
.chart-bar { position: relative; width: 100%; max-width: 34px; margin: 0 auto; border-radius: 4px 4px 0 0; background: var(--accent); transition: background .2s; }
.chart-column:nth-child(3n) .chart-bar { background: var(--accent-strong); }
.chart-bar:hover { background: var(--brand-strong); }
.chart-bar-tooltip { display: none; position: absolute; z-index: 2; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--paper); border-radius: 5px; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.chart-bar:hover .chart-bar-tooltip { display: inline-block; }
.chart-label { font-size: 9px; color: var(--muted); margin-top: 12px; }
.chart-note { padding: 9px 25px 19px; color: var(--muted); font-size: 9px; }
.pending-panel { display: flex; flex-direction: column; }
.pending-panel .section-heading { padding-bottom: 11px; }
.pending-list { padding: 0 24px; flex: 1; }
.pending-row { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.pending-row:last-child { border-bottom: 0; }
.pending-row > span:nth-child(2) { flex: 1; min-width: 0; }
.pending-row strong { display: block; font-size: 11px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-row small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }
.pending-row > .icon { width: 13px; height: 13px; color: var(--accent-strong); }
.pending-symbol { width: 31px; height: 31px; background: var(--warning-bg); color: var(--warning); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.pending-symbol .icon { width: 15px; height: 15px; }
.pending-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.panel-bottom-link { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 20px; margin-top: 13px; border-top: 1px solid var(--line); font-size: 10px; color: var(--brand-strong); font-weight: 600; }
.panel-bottom-link .icon { width: 14px; height: 14px; }
.panel-bottom-link:hover { background: var(--surface-soft); }
.compact-empty { padding: 32px 0 23px; text-align: center; }
.compact-empty .success-icon { margin: 0 auto 12px; width: 39px; height: 39px; }
.compact-empty strong { display: block; font-size: 12px; }
.compact-empty p { color: var(--muted); font-size: 10px; margin-top: 5px; }

/* Tables, lists and filters */
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--canvas); }
th { color: var(--muted); font-size: 9px; font-weight: 550; letter-spacing: .2px; padding: 13px 23px; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 18px 23px; font-size: 11px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--canvas); }
.table-main-link { font-size: 11px; font-weight: 650; color: var(--brand-strong); display: inline-block; }
.table-main-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-subline { display: block; margin-top: 4px; font-size: 9px; font-weight: 400; color: var(--muted); max-width: 320px; }
.table-arrow { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--accent-strong); }
.table-arrow:hover { background: var(--surface-soft); color: var(--brand); }
.table-arrow .icon { width: 16px; height: 16px; }
.team-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.team-tabs span { opacity: .8; }
.table-actions { display: flex; align-items: center; gap: 15px; }
.table-actions form { margin: 0; }
.danger-link { color: var(--danger); }
.member-remove-link { margin-top: 22px; }
.button-danger { background: var(--danger); border-color: var(--danger); color: var(--paper); }
.button-danger:hover { background: #873232; border-color: #873232; }
.member-removal > p { margin: 14px 0; max-width: 700px; font-size: 13px; }
.removal-person { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.removal-person strong { font-size: 16px; }
.removal-person span { color: var(--muted); font-size: 12px; }
.progress-inline { display: flex; align-items: center; gap: 9px; min-width: 106px; }
progress { display: block; width: 74px; height: 5px; border: 0; border-radius: 4px; overflow: hidden; background: var(--surface-soft); accent-color: var(--accent-strong); }
progress::-webkit-progress-bar { background: var(--surface-soft); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent-strong); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent-strong); border-radius: 4px; }
.progress-inline span { font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 21px 23px; }
.filter-bar > select { min-width: 174px; width: auto; }
.search-field { position: relative; flex: 1; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--accent-strong); width: 17px; height: 17px; }
.search-field input { padding-left: 39px; }
.filter-bar input, .filter-bar select { min-height: 40px; font-size: 11px; }
.broker-line { display: block; white-space: nowrap; font-size: 10px; }
.broker-line + .broker-line { margin-top: 5px; }
.broker-line small { display: inline-block; width: 42px; font-size: 8px; color: var(--muted); }
.person-cell { display: flex; align-items: center; gap: 12px; }
.person-cell .avatar { width: 33px; height: 33px; }
.empty-state { padding: 45px 24px; text-align: center; }
.empty-state h3 { margin: 14px 0 7px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 450px; margin: 0 auto 20px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--surface-soft); color: var(--accent-strong); border-radius: 16px; }
.empty-icon .icon { width: 25px; height: 25px; }

/* Forms */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--input-border); border-radius: 7px; color: var(--ink); background: var(--paper); line-height: 1.4; font-size: 12px; min-height: 43px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 76px; }
select { padding-right: 27px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }
input[type="file"] { font-size: 11px !important; min-height: 45px; padding: 6px !important; }
input[type="file"]::file-selector-button { border: 0; background: var(--surface-soft); color: var(--brand); border-radius: 4px; font: inherit; padding: 8px 10px; margin-right: 8px; cursor: pointer; }
.form-panel { max-width: 1000px; }
.form-panel .section-heading { border-bottom: 1px solid var(--line); }
.stacked-form { padding: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; }
.form-grid > .form-alert, .form-grid > .form-field:has(textarea), .form-grid > .form-field:has(select[multiple]), .form-grid > .form-field:has(input[type="file"]) { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.stacked-form > .form-field + .form-field { margin-top: 19px; }
.form-field > label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.required-mark { color: var(--muted); font-weight: 400; }
.help-text { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.help-text ul { padding-left: 18px; margin: 4px 0 0; }
.help-text a { text-decoration: underline; }
.checkbox-label { display: flex !important; align-items: center; gap: 9px; padding: 8px 0; margin: 0 !important; }
.field-error { color: var(--danger); font-size: 11px; margin-top: 5px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.form-alert { color: var(--danger); border: 1px solid var(--danger-line); background: var(--danger-bg); padding: 12px 15px; border-radius: 8px; font-size: 12px; margin-bottom: 20px; }
.form-alert p + p { margin-top: 6px; }
.warning-alert { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 24px; margin-top: 22px; border-top: 1px solid var(--line); }
.narrow-panel { max-width: 590px; }
.success-panel { padding: 42px 30px; text-align: center; max-width: 680px; }
.success-icon { display: inline-flex; justify-content: center; align-items: center; width: 53px; height: 53px; border-radius: 50%; color: var(--success); background: var(--success-bg); }
.success-panel h2 { margin: 18px 0 8px; }
.success-panel p { font-size: 12px; margin-bottom: 25px; }

/* Deal and checklist */
.deal-overview { display: grid; grid-template-columns: 1.25fr 1fr .9fr 1.2fr; margin-bottom: 23px; padding: 23px 25px; gap: 20px; }
.deal-overview > div { border-right: 1px solid var(--line); padding-right: 15px; }
.deal-overview > div:last-child { border: 0; }
.field-caption { display: block; font-size: 8px; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 11px; }
.deal-overview strong { font-size: 13px; font-weight: 550; }
.deal-overview .deal-value { font-size: 24px; letter-spacing: -.7px; font-weight: 650; font-variant-numeric: tabular-nums; }
.overview-progress .progress-inline { margin-top: 15px; }
.overview-progress progress { width: 100%; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; align-items: start; }
.detail-main { display: grid; gap: 23px; }
.detail-side { display: grid; gap: 17px; }
.detail-side h2 { font-size: 16px; }
.detail-side .section-heading { padding: 22px 21px 15px; }
.checklist-panel > .section-heading { border-bottom: 1px solid var(--line); }
.checklist-group { padding: 22px 25px 0; }
.checklist-group:last-child { padding-bottom: 25px; }
.checklist-group > h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.checklist-items { display: grid; gap: 10px; }
.checklist-item { border: 1px solid var(--line); border-radius: 9px; padding: 16px; }
.checklist-item-heading { display: flex; align-items: center; gap: 10px; }
.checklist-item-heading > div { flex: 1; min-width: 0; }
.checklist-item-heading h4 { font-size: 12px; }
.item-kind { color: var(--muted); font-size: 9px; }
.checklist-status-icon { display: grid; place-items: center; width: 30px; height: 34px; flex-shrink: 0; color: var(--accent-strong); background: var(--surface-soft); border-radius: 6px; }
.checklist-status-icon .icon { width: 16px; height: 16px; }
.checklist-status-approved { background: var(--success-bg); color: var(--success); }
.checklist-value { margin-top: 15px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 5px; background: var(--canvas); color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.checklist-note { margin-top: 12px; padding: 0 0 0 12px; border-left: 2px solid var(--accent-line); }
.checklist-note > span { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.checklist-note p { color: var(--muted); font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.attachment-list { display: grid; gap: 7px; }
.attachment { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; margin-top: 10px; color: var(--brand-strong); background: var(--canvas); }
.attachment > span { flex: 1; min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
.attachment > span small { display: block; font-size: 8px; color: var(--muted); margin-top: 2px; }
.attachment .icon { width: 15px; height: 15px; }
.attachment:hover { background: var(--surface-soft); border-color: var(--accent-line); }
.checklist-editor { margin-top: 12px; }
.checklist-editor > summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 10px; color: var(--brand-strong); font-weight: 550; padding: 3px 0; }
.checklist-editor > summary::-webkit-details-marker { display: none; }
.checklist-editor > summary .icon { width: 13px; height: 13px; }
.details-indicator { margin-left: auto; font-size: 15px; }
.checklist-editor[open] .details-indicator { transform: rotate(45deg); }
.checklist-editor .stacked-form { padding: 18px 0 0; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.checklist-editor .form-field > label { font-size: 10px; }
.checklist-editor-actions { display: flex; align-items: flex-end; gap: 12px; margin-top: 17px; }
.checklist-editor-actions .form-field { flex: 1; }
.checklist-editor-actions .button { min-height: 43px; }
.group-empty { font-size: 11px; }
.role-person { display: flex; align-items: center; gap: 10px; padding: 12px 21px; }
.role-person:last-child { padding-bottom: 23px; }
.role-person .avatar { width: 33px; height: 33px; }
.role-person > div { min-width: 0; }
.role-person > div span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 3px; }
.role-person strong { display: block; font-size: 11px; font-weight: 550; }
.amount-list { padding: 0 21px 21px; margin: 0; }
.amount-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; }
.amount-list dt { font-size: 10px; color: var(--muted); }
.amount-list dd { margin: 0; font-size: 11px; color: var(--brand-strong); font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-list .amount-feature { display: block; padding: 14px 15px; margin: 0 -1px 11px; background: var(--surface-soft); border-radius: 7px; }
.amount-feature dt { font-size: 9px; }
.amount-feature dd { font-size: 23px; font-weight: 650; letter-spacing: -.7px; margin-top: 4px; }
.amount-list .amount-total { margin-top: 12px; border-top: 1px solid var(--line); padding: 20px 0 3px; }
.amount-total dt { color: var(--brand); font-size: 11px; font-weight: 650; }
.amount-total dd { color: var(--brand); font-size: 17px; font-weight: 650; }
.own-commission-panel { background: var(--brand); border-color: var(--brand); padding: 23px 21px; color: var(--paper); }
.own-commission-panel .kpi-icon { background: var(--on-brand-tint); color: var(--on-brand-muted); }
.own-commission-panel p { font-size: 11px; color: var(--on-brand-soft); margin-top: 20px; }
.own-commission-panel strong { display: block; font-size: 30px; letter-spacing: -1px; margin: 5px 0 11px; }
.own-commission-panel small { display: block; color: var(--on-brand-muted); font-size: 9px; }
.side-action { border: 1px solid var(--line); background: var(--surface-soft); padding: 17px 19px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--brand-strong); }
.side-action > span { display: flex; gap: 8px; align-items: center; }
.side-action strong { font-size: 11px; font-weight: 550; }
.side-action .icon { width: 16px; height: 16px; }
.side-action:hover { background: var(--accent-tint); }
.activity-list { list-style: none; margin: 0; padding: 0 25px 22px; }
.activity-list li { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.activity-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.activity-list li:not(:last-child)::before { position: absolute; content: ""; top: 23px; bottom: -5px; left: 2px; width: 1px; background: var(--line-soft); }
.activity-list strong { font-size: 11px; font-weight: 550; }
.activity-list p { color: var(--muted); font-size: 9px; margin-top: 4px; }
.activity-list .activity-empty { font-size: 11px; color: var(--muted); }

/* Calculator */
.calculator-notice { display: flex; align-items: center; gap: 13px; background: var(--surface-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 15px 19px; margin-bottom: 22px; color: var(--brand-strong); }
.calculator-notice > .icon { width: 22px; height: 22px; }
.calculator-notice strong { font-size: 11px; font-weight: 650; }
.calculator-notice p { font-size: 10px; margin-top: 3px; color: var(--muted); }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; gap: 23px; }
.calculator-result { min-height: 420px; }
.calculator-result .form-alert { margin: 0 23px 18px; }
.calculator-placeholder { text-align: center; padding: 41px 32px 47px; }
.calculator-placeholder h3 { font-size: 15px; margin: 19px 0 12px; font-weight: 550; }
.calculator-placeholder p { font-size: 11px; color: var(--muted); line-height: 1.8; max-width: 290px; margin: 0 auto; }
.calculator-placeholder p strong { font-weight: 550; color: var(--brand-strong); }
.placeholder-rule { display: block; width: 38px; height: 1px; background: var(--accent-line); margin: 25px auto 18px; }
.calculator-placeholder .calculator-hint { font-size: 9px; }
.result-highlight { background: var(--brand); border-radius: 9px; padding: 21px; margin: 2px 23px 16px; color: var(--paper); }
.result-highlight span { font-size: 10px; color: var(--on-brand-muted); }
.result-highlight strong { display: block; font-size: 31px; font-weight: 600; letter-spacing: -1px; margin-top: 6px; }
.result-amounts { padding: 0 25px 19px; }
.result-amounts > div { border-bottom: 1px solid var(--line-soft); padding: 13px 0; }
.result-amounts > div:last-child { border-bottom: 0; font-weight: 650; }
.result-footer { display: flex; gap: 8px; align-items: center; background: var(--canvas); border-top: 1px solid var(--line); padding: 15px 23px; color: var(--muted); font-size: 9px; }
.result-footer .icon { width: 13px; height: 13px; }

/* Login */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand-panel { background: var(--brand); color: var(--paper); border-top: 3px solid var(--accent); padding: 55px 12%; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.login-brand-panel .brand { position: relative; z-index: 1; }
.login-brand-panel .brand-logo-frame { align-self: flex-start; width: 260px; }
.login-brand-panel .brand-logo { width: 260px; }
.login-statement { position: relative; z-index: 1; margin: auto 0; padding: 88px 0; }
.login-statement .eyebrow { color: var(--on-brand-muted); font-size: 9px; letter-spacing: 2px; margin-bottom: 25px; }
.login-statement h1 { color: var(--on-brand-soft); font-size: clamp(38px, 4.8vw, 70px); font-weight: 450; letter-spacing: -2px; line-height: 1.15; }
.login-statement > p { font-size: 12px; color: var(--on-brand-muted); line-height: 1.85; margin-top: 29px; }
.login-brand-footer { position: relative; z-index: 1; font-size: 9px; color: var(--on-brand-muted); letter-spacing: .6px; }
.login-decoration { position: absolute; height: 500px; width: 400px; border: 1px solid var(--brand-decoration); border-radius: 50% 50% 0 0; bottom: -145px; right: -171px; transform: rotate(-17deg); }
.login-decoration::before, .login-decoration::after { content: ""; position: absolute; inset: 32px; border: 1px solid var(--brand-decoration); border-radius: inherit; }
.login-decoration::after { inset: 65px; }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 55px 50px; }
.login-box { width: 100%; max-width: 350px; }
.login-icon { display: grid; place-items: center; color: var(--brand-strong); background: var(--surface-soft); width: 41px; height: 41px; border-radius: 11px; margin-bottom: 30px; }
.login-icon .icon { width: 20px; height: 20px; }
.login-box .eyebrow { font-size: 8px; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 10px; }
.login-box h2 { font-size: 27px; letter-spacing: -.7px; font-weight: 650; }
.login-box > .muted { font-size: 11px; line-height: 1.7; margin-top: 10px; margin-bottom: 30px; }
.login-form .form-field + .form-field { margin-top: 20px; }
.login-form .button { margin-top: 25px; padding: 14px 18px; min-height: 46px; justify-content: space-between; }
.login-help { font-size: 10px; color: var(--muted); text-align: center; margin-top: 22px; }
.demo-note { display: flex; justify-content: center; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; margin-top: 38px; }
.login-mobile-brand { display: none; }
.login-mobile-brand, .login-mobile-brand.brand-logo-frame { width: fit-content; max-width: 100%; padding: 16px; border-radius: 10px; background: var(--brand); color: var(--paper); }
.login-mobile-brand img, .login-mobile-brand .brand-logo { display: block; width: 190px; max-width: 100%; height: auto; object-fit: contain; }
.error-state { max-width: 750px; padding: 55px 30px; }
.error-state h2 { margin: 18px 0 12px; }
.error-number { display: block; font-size: 58px; font-weight: 400; line-height: 1; color: var(--accent-strong); letter-spacing: -2px; margin-bottom: 23px; }
.public-error { display: flex; min-height: 100vh; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; }
.public-error .login-mobile-brand { display: block; margin-bottom: 50px; }
.public-error p { color: var(--muted); margin: 15px 0 25px; }

/* Tablet and mobile */
@media (min-width: 1500px) {
  .main-content { padding: 40px 50px 0; }
  .topbar { padding: 0 50px; }
  .kpi-card { padding: 23px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 218px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .main-content { padding: 28px 26px 0; }
  .topbar { padding: 0 26px; }
  .page-header { gap: 15px; }
  .page-actions { gap: 7px; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 17px 14px; }
  .kpi-value { font-size: 21px; }
  .dashboard-grid { gap: 17px; grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr); }
  .section-heading { padding: 20px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 17px; }
  .checklist-group { padding: 19px 20px 0; }
  .calculator-grid { gap: 17px; }
  th, td { padding-left: 19px; padding-right: 19px; }
  .login-brand-panel { padding-left: 10%; padding-right: 10%; }
}
@media (max-width: 1024px) {
  .page-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .kpi-value { font-size: 29px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pending-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .compact-empty { grid-column: 1 / -1; padding: 20px 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .detail-side .side-action { grid-column: 1 / -1; }
  .deal-overview { grid-template-columns: 1fr 1fr; gap: 20px 25px; }
  .deal-overview > div:nth-child(2) { border: 0; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-result { min-height: 0; }
  .calculator-placeholder { padding-top: 25px; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 248px; }
  .sidebar { padding-left: 21px; padding-right: 21px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar-close { display: inline-flex !important; align-self: flex-end; gap: 10px; margin: -22px 9px 22px; color: var(--on-brand-muted); font-size: 10px; }
  .sidebar-close span { font-size: 20px; line-height: 1; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-shade { position: fixed; inset: 0; background: var(--brand-overlay); z-index: 35; }
  .workspace { margin-left: 0; }
  .topbar { height: 63px; padding: 0 22px; gap: 12px; }
  .menu-toggle { display: inline-flex !important; }
  .topbar-label { margin-right: auto; font-size: 10px; }
  .topbar-right { gap: 11px; }
  .environment-label { font-size: 9px; }
  .main-content { padding: 28px 22px 0; }
  .page-header { gap: 17px; }
  .login-layout { grid-template-columns: .9fr 1fr; }
  .login-brand-panel { padding: 39px 10%; }
  .login-form-panel { padding: 40px 32px; }
  .login-statement h1 { font-size: 41px; letter-spacing: -1.7px; }
  .login-statement .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
  .login-statement > p { font-size: 10px; }
  .login-box h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  .main-content { padding: 23px 16px 0; }
  .topbar { padding: 0 16px; }
  .topbar-label { display: none; }
  .topbar-right { margin-left: auto; }
  h1 { font-size: 25px; letter-spacing: -.65px; }
  .page-subtitle { font-size: 11px; }
  .page-header { margin-bottom: 22px; }
  .page-actions { width: 100%; }
  .page-actions > .button { flex: 1; }
  .period-form { flex: 1; }
  .period-form input { width: 73px; }
  .period-form .button { flex: 1; }
  .kpi-grid { gap: 10px; margin-bottom: 17px; }
  .kpi-card { padding: 15px 13px; min-height: 131px; }
  .kpi-top { font-size: 10px; gap: 6px; align-items: flex-start; }
  .kpi-icon { width: 23px; height: 23px; border-radius: 6px; }
  .kpi-icon .icon { width: 14px; height: 14px; }
  .kpi-value { font-size: clamp(18px, 4.5vw, 24px); letter-spacing: -.65px; margin-top: 12px; }
  .kpi-caption { font-size: 8px; }
  .dashboard-grid { margin-bottom: 17px; gap: 17px; }
  .section-heading { padding: 19px 17px 16px; gap: 10px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading .eyebrow { font-size: 7px; }
  .bar-chart { padding-left: 17px; padding-right: 17px; gap: 6px; height: 202px; }
  .chart-bar-area { height: 165px; }
  .chart-label { font-size: 8px; }
  .chart-note { padding-left: 17px; padding-right: 17px; font-size: 8px; }
  .pending-list { padding: 0 17px; grid-template-columns: 1fr; }
  .filter-bar { padding: 17px; gap: 8px; flex-wrap: wrap; }
  .filter-bar .search-field { flex: 1 0 100%; }
  .filter-bar select { flex: 1; min-width: 0; }
  .filter-bar > .button { flex: 1; }
  th, td { padding-left: 17px; padding-right: 17px; }
  td { font-size: 10px; padding-top: 16px; padding-bottom: 16px; }
  th { font-size: 8px; }
  .table-main-link { font-size: 11px; min-width: 126px; }
  .table-subline { max-width: 200px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .stacked-form { padding: 20px 17px; }
  .form-grid > .form-field { grid-column: auto; }
  .form-actions { gap: 8px; margin-top: 20px; padding-top: 20px; }
  .form-actions > .button { flex: 1; }
  .page-footer { padding-top: 17px; font-size: 8px; gap: 13px; margin-top: 30px; }
  .deal-overview { padding: 19px 17px; gap: 22px 17px; margin-bottom: 17px; }
  .field-caption { font-size: 7px; letter-spacing: .8px; }
  .deal-overview .deal-value { font-size: 21px; }
  .deal-overview strong { font-size: 12px; }
  .detail-main { gap: 17px; }
  .detail-side { grid-template-columns: 1fr; }
  .detail-side .side-action { grid-column: auto; }
  .checklist-panel > .section-heading { align-items: flex-start; }
  .checklist-panel > .section-heading .subtle-chip { font-size: 8px; padding: 5px 6px; }
  .checklist-panel .section-heading p:not(.eyebrow) { font-size: 10px; }
  .checklist-group { padding: 20px 17px 0; }
  .checklist-group:last-child { padding-bottom: 20px; }
  .checklist-item { padding: 13px; }
  .checklist-item-heading { flex-wrap: wrap; gap: 8px; }
  .checklist-item-heading h4 { font-size: 11px; }
  .checklist-item-heading > .badge { margin-left: 38px; }
  .checklist-editor > summary { font-size: 9px; }
  .checklist-editor-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .checklist-editor .stacked-form { padding: 16px 0 0; }
  .activity-list { padding-left: 17px; padding-right: 17px; }
  .calculator-notice { padding: 13px 15px; align-items: flex-start; gap: 11px; }
  .calculator-notice p { font-size: 9px; }
  .calculator-notice strong { font-size: 10px; }
  .result-highlight { margin-left: 17px; margin-right: 17px; }
  .result-highlight strong { font-size: 29px; }
  .calculator-result .form-alert { margin-left: 17px; margin-right: 17px; }
  .result-amounts { padding-left: 20px; padding-right: 20px; }
  .login-layout { display: block; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 35px 28px; }
  .login-mobile-brand { display: block; font-size: 25px; letter-spacing: 4px; color: var(--paper); font-weight: 500; margin-bottom: 50px; }
  .login-mobile-brand small { display: block; font-size: 7px; margin-top: 4px; letter-spacing: 2.5px; }
  .login-icon { margin-bottom: 23px; }
  .login-box h2 { font-size: 27px; }
  .login-box > .muted { margin-bottom: 26px; }
  .demo-note { margin-top: 32px; }
  .error-state { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
