@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #0e2a36;
  --navy-soft: #163d4b;
  --ivory: #f7f3ec;
  --sand: #d8c3a5;
  --gold: #b99a5b;
  --ink: #17242a;
  --muted: #6b777b;
  --line: #e5e0d8;
  --surface: #ffffff;
  --green: #2e7d5a;
  --red: #b64a43;
  --shadow: 0 18px 50px rgba(14, 42, 54, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.positive { color: var(--green); }
.negative { color: var(--red); }
.text-right { text-align: right; }
.small { font-size: .82rem; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(185,154,91,.2), transparent 30%), var(--ivory); }
.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.brand { color: var(--navy); font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-card h1 { margin: 24px 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
.login-card p { color: var(--muted); margin: 0 0 24px; }
.demo-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.7; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #e9f0ef; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.sidebar .brand { color: #fff; }
.sidebar .brand span { display: block; color: var(--sand); font-size: .66rem; letter-spacing: .13em; margin-top: 4px; }
.nav { display: grid; gap: 6px; }
.nav button { width: 100%; border: 0; color: #c7d5d5; background: transparent; text-align: left; padding: 11px 12px; border-radius: 10px; transition: .18s ease; }
.nav button:hover, .nav button.active { color: #fff; background: var(--navy-soft); }
.sidebar-foot { margin-top: auto; color: #9bb1b4; font-size: .78rem; line-height: 1.55; }

.main { min-width: 0; padding: 24px clamp(18px, 4vw, 44px) 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.topbar h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font-size: .86rem; }
.role-pill { background: var(--ivory); color: var(--navy); border-radius: 999px; padding: 3px 7px; font-size: .7rem; font-weight: 700; }

.btn { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: var(--surface); color: var(--ink); transition: .18s ease; }
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-danger { color: var(--red); }
.btn-small { padding: 7px 9px; font-size: .82rem; }
.btn-block { width: 100%; }

.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; min-width: 150px; }
.field label { color: var(--muted); font-size: .78rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 10px 11px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,154,91,.15); }
.field textarea { min-height: 90px; resize: vertical; }

.grid { display: grid; gap: 16px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.tracker-kpis { margin-top: 0; }
.two-col { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: start; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 7px 24px rgba(14,42,54,.04); }
.card h2, .card h3 { margin: 0 0 14px; letter-spacing: -.02em; }
.kpi-label { color: var(--muted); font-size: .8rem; }
.kpi-value { margin-top: 8px; color: var(--navy); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.04em; }
.kpi-context { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; }

.eyebrow { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.plan-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 18px; border: 1px solid #d9d1c5; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--navy), #1b4654); box-shadow: var(--shadow); }
.plan-hero h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.plan-hero p { margin: 7px 0 0; color: #c9d8d8; font-size: .86rem; }
.plan-hero .btn-primary { color: var(--navy); background: #fff; border-color: #fff; }
.plan-controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; justify-content: end; }
.plan-period-tabs, .plan-filter-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.plan-period-tabs { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); }
.plan-period-tabs button, .plan-filter-tabs button { border: 0; border-radius: 8px; padding: 8px 10px; color: var(--muted); background: transparent; font-size: .78rem; white-space: nowrap; }
.plan-period-tabs button { color: #c9d8d8; }
.plan-period-tabs button:hover, .plan-period-tabs button.active { color: var(--navy); background: #fff; }
.plan-filter-tabs button:hover, .plan-filter-tabs button.active { color: #fff; background: var(--navy); }
.plan-date-control { display: grid; gap: 5px; color: #c9d8d8; font-size: .72rem; }
.plan-date-control input { min-width: 130px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 9px 10px; color: var(--ink); background: #fff; }
.plan-kpis .card { min-height: 126px; }
.plan-command-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.plan-focus-panel { min-height: 210px; }
.plan-alert-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plan-alert-row:last-child { border-bottom: 0; }
.plan-alert-row strong, .plan-alert-row span { display: block; }
.plan-alert-row strong { color: var(--navy); font-size: .86rem; }
.plan-alert-row span { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.alert-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.alert-icon.red { color: var(--red); background: #fae9e7; }
.alert-icon.gold { color: #806221; background: #f7efd9; }
.plan-clear-state { display: grid; gap: 6px; place-items: center; min-height: 135px; color: var(--green); text-align: center; }
.plan-clear-state span { color: var(--muted); font-size: .8rem; }
.team-result-grid-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-result-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; }
.team-result-card.ta { border-top: 3px solid var(--navy); }
.team-result-card.ota { border-top: 3px solid var(--gold); }
.team-result-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; color: var(--navy); font-weight: 750; }
.team-result-head b { font-size: .88rem; }
.plan-owner-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #edf0ed; }
.plan-owner-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.team-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.team-result-grid small, .team-result-grid strong { display: block; }
.team-result-grid small { color: var(--muted); font-size: .68rem; }
.team-result-grid strong { margin-top: 3px; color: var(--navy); font-size: .84rem; }
.plan-board { margin-top: 16px; }
.plan-board-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.plan-board-head h2 { margin: 0; }
.plan-board-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.plan-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-task-card { display: flex; flex-direction: column; min-height: 258px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; transition: .18s ease; }
.plan-task-card:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(14,42,54,.07); transform: translateY(-1px); }
.plan-task-card.is-overdue { border-left: 4px solid var(--red); }
.plan-task-card.is-blocked { border-left: 4px solid #c89429; background: #fffaf0; }
.plan-task-head, .plan-task-meta, .plan-task-footer, .plan-progress-line > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-task-head { margin-bottom: 11px; }
.plan-task-card h3 { margin: 0; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.plan-priority { border-radius: 999px; padding: 4px 7px; font-size: .67rem; font-weight: 800; }
.plan-priority.high { color: var(--red); background: #fae9e7; }
.plan-priority.normal { color: #806221; background: #f7efd9; }
.plan-priority.low { color: var(--green); background: #e7f3ed; }
.plan-task-meta { justify-content: start; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: .72rem; }
.plan-task-meta span + span::before { content: '·'; margin-right: 8px; color: var(--sand); }
.plan-task-scope { display: grid; gap: 2px; margin-top: 13px; padding: 9px 10px; border-radius: 9px; background: #f5f2ec; }
.plan-task-scope b { color: var(--navy); font-size: .75rem; }
.plan-task-scope span { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.plan-blocker { margin-top: 9px; padding: 8px 10px; border-radius: 8px; color: var(--red); background: #fae9e7; font-size: .74rem; }
.plan-progress-line { margin-top: 13px; }
.plan-progress-line > div:first-child { color: var(--muted); font-size: .72rem; }
.plan-progress-line b { color: var(--navy); }
.plan-progress-track { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #e9ece8; }
.plan-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--navy); }
.plan-task-output { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; min-height: 24px; }
.plan-output { padding: 4px 7px; border: 1px solid #dbe5df; border-radius: 6px; color: var(--green); background: #f3faf5; font-size: .68rem; }
.plan-output b { color: var(--navy); }
.plan-task-footer { align-items: end; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.plan-task-footer > .record-sub { max-width: 56%; }
.plan-task-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-quiet { color: var(--navy); background: #f3f7f5; border-color: #d6e5de; }
.plan-owner-panel { margin-top: 16px; }
.plan-owner-list { display: grid; gap: 12px; }
.plan-owner-row { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(100px, 1fr) minmax(160px, .7fr); align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plan-owner-row:last-child { border-bottom: 0; }
.plan-owner-row strong, .plan-owner-row .record-sub { display: block; }
.plan-owner-result { display: grid; grid-template-columns: auto auto auto auto; align-items: baseline; justify-content: end; gap: 4px 8px; color: var(--navy); }
.plan-owner-result span { color: var(--muted); font-size: .68rem; }

.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px; margin-bottom: 14px; border: 1px solid #d9d1c5; border-radius: 18px; color: #fff; box-shadow: var(--shadow); }
.report-hero.report-achieved { background: linear-gradient(120deg, #174b3d, #2e7d5a); }
.report-hero.report-behind { background: linear-gradient(120deg, var(--navy), #6c4f2f); }
.report-hero h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.report-hero p { margin: 7px 0 0; color: #d8e5e0; font-size: .82rem; }
.report-health { min-width: 150px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.12); text-align: center; }
.report-health strong, .report-health span { display: block; }
.report-health strong { font-size: 1.35rem; }
.report-health span { margin-top: 3px; color: #d8e5e0; font-size: .7rem; }
.report-toolbar { margin-bottom: 13px; }
.report-target-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.report-target-card { padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 15px; background: var(--surface); box-shadow: 0 7px 24px rgba(14,42,54,.04); }
.report-target-card.achieved { border-top-color: var(--green); }
.report-target-head, .report-target-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-target-head span { color: var(--muted); font-size: .8rem; }
.report-target-head strong { color: var(--red); font-size: .68rem; }
.report-target-card.achieved .report-target-head strong { color: var(--green); }
.report-target-actual { margin-top: 10px; color: var(--navy); font-size: clamp(1.35rem, 2.7vw, 1.9rem); font-weight: 800; letter-spacing: -.045em; }
.report-target-goal { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.report-target-track { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #f5e8e7; }
.report-target-card.achieved .report-target-track { background: #e7f3ed; }
.report-target-track span { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.report-target-card.achieved .report-target-track span { background: var(--green); }
.report-target-foot { margin-top: 7px; color: var(--muted); font-size: .7rem; }
.report-target-foot b { color: var(--red); }
.report-target-card.achieved .report-target-foot b { color: var(--green); }
.report-executive-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.report-alert-panel, .report-target-editor { min-height: 100%; }
.report-alert-list { display: grid; gap: 8px; }
.report-alert-row { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-alert-row:last-child { border-bottom: 0; }
.report-alert-row strong, .report-alert-row span { display: block; }
.report-alert-row strong { color: var(--navy); font-size: .84rem; }
.report-alert-row span { margin-top: 3px; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.report-alert-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.report-alert-icon.red { color: var(--red); background: #fae9e7; }
.report-alert-icon.gold { color: #806221; background: #f7efd9; }
.report-alert-icon.green { color: var(--green); background: #e7f3ed; }
.report-trend-card { margin-bottom: 16px; }
.report-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .7rem; }
.report-legend span { display: inline-flex; align-items: center; gap: 4px; }
.report-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; background: var(--navy); }
.report-legend i.profit { background: var(--green); }
.report-legend i.target { width: 13px; height: 2px; border-radius: 0; background: var(--gold); }
.report-trend-chart { display: flex; align-items: end; gap: 12px; min-height: 250px; padding: 14px 4px 30px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.report-bar-group { display: grid; grid-template-rows: 185px auto auto; gap: 4px; min-width: 75px; flex: 1; align-items: end; text-align: center; }
.report-bars { display: flex; align-items: end; justify-content: center; gap: 5px; height: 100%; position: relative; border-bottom: 1px solid #ece9e3; background: repeating-linear-gradient(to top, transparent 0, transparent 45px, #f2efea 46px); }
.report-bar { width: 19px; min-height: 3px; border-radius: 5px 5px 0 0; z-index: 1; }
.report-bar.gross { background: var(--navy); }
.report-bar.profit { background: var(--green); }
.report-target-line { position: absolute; left: 0; right: 0; height: 2px; z-index: 2; border-top: 2px dashed var(--gold); }
.report-bar-group small { color: var(--muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-bar-group b { color: var(--navy); font-size: .68rem; font-weight: 700; }
.report-chart-note { margin-top: 10px; color: var(--muted); font-size: .7rem; }
.report-cash-panel { margin-bottom: 16px; }
.report-cash-panel .tracker-kpis { margin-bottom: 0; }
.report-rank-grid { margin-bottom: 16px; }
.report-rank-list { display: grid; gap: 7px; }
.report-rank-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-rank-row:last-child { border-bottom: 0; }
.report-rank-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--navy); background: var(--ivory); font-size: .7rem; font-weight: 800; }
.report-rank-row strong, .report-rank-row span { display: block; }
.report-rank-row strong { color: var(--navy); font-size: .84rem; }
.report-rank-row span { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.report-rank-money { text-align: right; }
.report-rank-money b { color: var(--green); font-size: .8rem; }
.report-rank-money span { font-size: .65rem; }
.report-disclosure { margin-top: 12px; }
.report-disclosure > summary { padding: 15px 18px; border: 1px solid var(--line); border-radius: 13px; color: var(--navy); background: var(--surface); cursor: pointer; font-weight: 750; list-style-position: inside; }
.report-disclosure[open] > summary { border-radius: 13px 13px 0 0; border-bottom-color: transparent; }
.report-disclosure > section { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 13px 13px; box-shadow: none; }
.report-disclosure > .grid { padding: 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 13px 13px; }

.chart { display: flex; align-items: end; gap: 9px; height: 210px; padding: 18px 4px 26px; border-bottom: 1px solid var(--line); }
.bar-wrap { min-width: 0; flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; position: relative; }
.bar { width: 34%; max-width: 22px; min-height: 4px; border-radius: 7px 7px 0 0; background: var(--navy); }
.bar.target { background: var(--sand); }
.bar-label { position: absolute; bottom: -22px; color: var(--muted); font-size: .68rem; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: .78rem; margin-top: 10px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--navy); margin-right: 5px; }
.legend-dot.target { background: var(--sand); }

.alert-list { display: grid; gap: 11px; }
.alert { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: 0; padding-bottom: 0; }
.alert strong { display: block; font-size: .9rem; }
.alert span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.alert-icon { font-weight: 800; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .86rem; }
th { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: .7rem; font-weight: 750; background: var(--ivory); color: var(--navy); }
.status.green { color: var(--green); background: #e7f3ed; }
.status.red { color: var(--red); background: #fae9e7; }
.status.gold { color: #806221; background: #f7efd9; }
.record-title { font-weight: 700; color: var(--navy); }
.booking-row { cursor: pointer; }
.booking-row:hover td { background: #fffcf5; }
.booking-code-link { border: 0; padding: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; text-align: left; }
.booking-code-link:hover { color: var(--gold); text-decoration: underline; }
.record-sub { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: end; gap: 8px; margin-top: 14px; }
.notice { padding: 11px 13px; border-radius: 10px; background: #fff9e9; color: #765d1d; border: 1px solid #ead79c; font-size: .8rem; margin-bottom: 16px; }
.error { color: var(--red); font-size: .82rem; min-height: 1.1em; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(14,42,54,.52); }
.modal { width: min(900px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; color: var(--navy); }
.modal-body { padding: 20px 22px 24px; }
.modal-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; }
.detail-item label { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 4px; }
.detail-item strong { display: block; overflow-wrap: anywhere; }
.modal-linked-actions { display: flex; gap: 8px; margin-top: 16px; }
@media (max-width: 680px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .detail-grid { grid-template-columns: 1fr; } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-task-grid { grid-template-columns: 1fr; }
  .report-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; padding: 16px; }
  .nav { display: flex; overflow-x: auto; }
  .nav button { white-space: nowrap; width: auto; }
  .sidebar-foot { display: none; }
  .main { padding: 20px 14px 38px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .plan-hero { display: grid; align-items: start; padding: 18px; }
  .plan-controls { justify-content: start; }
  .plan-command-grid, .team-result-grid-wrap { grid-template-columns: 1fr; }
  .plan-board-head { display: grid; align-items: start; }
  .plan-filter-tabs { overflow-x: auto; max-width: 100%; }
  .plan-owner-row { grid-template-columns: 1fr; gap: 8px; }
  .plan-owner-result { justify-content: start; }
  .report-hero, .report-executive-grid { display: grid; grid-template-columns: 1fr; align-items: start; }
  .report-health { justify-self: start; }
  .report-legend { flex-wrap: wrap; }
}
@media (max-width: 470px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .report-target-grid { grid-template-columns: 1fr; }
}

.ota-performance { margin-bottom: 16px; }
.ota-performance .section-title { align-items: start; }
.ota-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.ota-summary-grid .card { min-height: 118px; }
.ota-executive-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.ota-subtitle { margin-bottom: 7px; }
.ota-subtitle h3 { margin: 0; font-size: .95rem; }
.ota-alert-list { display: grid; gap: 0; }
.ota-alert-row { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ota-alert-row:last-child { border-bottom: 0; }
.ota-alert-row strong, .ota-alert-row span { display: block; }
.ota-alert-row strong { color: var(--navy); font-size: .8rem; }
.ota-alert-row span { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.ota-funnel { padding-left: 16px; border-left: 1px solid var(--line); }
.ota-funnel-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.ota-funnel-row:last-child { border-bottom: 0; }
.ota-funnel-row strong { color: var(--navy); }
.ota-platform-heading { margin: 18px 0 10px; }
.ota-platform-heading h3 { margin: 0; font-size: 1rem; }
.ota-platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ota-platform-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ota-platform-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.ota-platform-head strong, .ota-platform-head span { display: block; }
.ota-platform-head strong { color: var(--navy); font-size: .92rem; }
.ota-platform-head span { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.ota-edit-button { flex: 0 0 auto; }
.ota-metric-line { margin: 9px 0; }
.ota-metric-line > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .68rem; }
.ota-metric-line strong { color: var(--navy); font-size: .68rem; }
.ota-metric-line strong.positive { color: var(--green); }
.ota-metric-line strong.negative { color: var(--red); }
.ota-progress { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #ece8e0; }
.ota-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.ota-progress span.positive { background: var(--green); }
.ota-progress span.negative { background: var(--red); }
.ota-platform-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.ota-platform-stats b { color: var(--navy); }
.ota-compact { margin-top: 16px; }
.ota-compact .ota-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ota-compact .ota-platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ota-metric-modal { width: min(820px, 100%); }

@media (max-width: 1050px) {
  .ota-platform-grid, .ota-compact .ota-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ota-summary-grid, .ota-compact .ota-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ota-executive-grid { grid-template-columns: 1fr; }
  .ota-funnel { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .ota-platform-grid, .ota-compact .ota-platform-grid { grid-template-columns: 1fr; }
}

/* DAVI editorial refinement */
:root {
  --navy: #171817;
  --navy-soft: #2b302c;
  --ivory: #f1eee7;
  --sand: #d8cfc1;
  --gold: #b9925a;
  --ink: #171817;
  --muted: #7b756d;
  --line: #ded8cf;
  --surface: #faf8f3;
  --green: #687967;
  --red: #a95c50;
  --shadow: 0 12px 32px rgba(23, 24, 23, .045);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

body { background: var(--ivory); font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, h4, .plan-hero h2, .report-hero h2, .login-card h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; letter-spacing: -.025em; }
.small, .muted, .kpi-label, .kpi-context, .field label, .record-sub, th, .eyebrow { letter-spacing: .01em; }

.login-shell { background: var(--ivory); }
.login-card { max-width: 460px; border-radius: 10px; padding: 42px; background: var(--surface); box-shadow: none; }
.login-card .brand { color: var(--ink); letter-spacing: .18em; }
.login-card h1 { font-size: clamp(2.7rem, 5vw, 4.1rem); line-height: .9; }

.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #171817; padding: 31px 18px 24px; border-right: 1px solid rgba(255,255,255,.05); }
.sidebar .brand { color: #f8f5ef; letter-spacing: .17em; }
.sidebar .brand span { color: var(--gold); letter-spacing: .19em; }
.nav { gap: 2px; margin-top: 10px; }
.nav button { position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 12px 12px 17px; border-radius: 4px; color: #b9b7af; font-size: .84rem; }
.nav button::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border: 1px solid #77756f; border-radius: 50%; }
.nav button:hover { color: #f8f5ef; background: rgba(255,255,255,.045); }
.nav button.active { color: #f8f5ef; background: rgba(185,146,90,.13); }
.nav button.active::before { border-color: var(--gold); background: var(--gold); }
.sidebar-foot { color: #777770; font-size: .7rem; letter-spacing: .02em; }

.main { padding: 32px clamp(22px, 4vw, 58px) 62px; }
.topbar { margin-bottom: 30px; }
.topbar h1 { font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: .86; }
.topbar .muted { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar-actions { gap: 10px; }
.topbar-actions select, .user-chip, .topbar-actions .btn { border-radius: 4px; background: var(--surface); border-color: var(--line); box-shadow: none; }
.user-chip { padding: 9px 12px; }
.role-pill { border-radius: 3px; color: var(--ink); background: #e7e0d5; }
.btn { border-radius: 4px; padding: 10px 14px; box-shadow: none; }
.btn:hover { transform: none; border-color: var(--gold); }
.btn-primary { color: #f8f5ef; background: var(--ink); border-color: var(--ink); }
.btn-primary:hover { color: #fff; background: #30342f; border-color: #30342f; }
.btn-small { padding: 7px 10px; font-size: .75rem; }

.card { border-radius: 8px; background: var(--surface); box-shadow: none; }
.card h2 { font-size: 1.75rem; line-height: .98; }
.card h3 { font-size: 1.15rem; }
.kpi-grid { gap: 12px; }
.kpi-grid .card { min-height: 122px; padding: 19px 20px; border-top: 2px solid var(--sand); }
.kpi-grid .card:nth-child(1) { border-top-color: var(--ink); }
.kpi-grid .card:nth-child(2) { border-top-color: var(--gold); }
.kpi-grid .card:nth-child(3) { border-top-color: var(--green); }
.kpi-grid .card:nth-child(4) { border-top-color: var(--sand); }
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi-value { color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.055em; }
.kpi-context { font-size: .71rem; }
.section-title { margin-bottom: 16px; }
.eyebrow { margin-bottom: 7px; color: var(--gold); font-size: .63rem; letter-spacing: .18em; }

.plan-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; min-height: 190px; padding: 28px 30px; margin-bottom: 16px; border: 1px solid var(--line); border-bottom: 3px solid var(--gold); border-radius: 8px; color: var(--ink); background: #ebe6dd; box-shadow: none; }
.plan-hero h2 { color: var(--ink); font-size: clamp(2.3rem, 5vw, 4.15rem); line-height: .82; }
.plan-hero p { color: var(--muted); font-size: .78rem; }
.plan-hero .eyebrow { color: var(--gold); }
.plan-hero .btn-primary { color: #f8f5ef; background: var(--ink); border-color: var(--ink); }
.plan-controls { gap: 8px; }
.plan-period-tabs, .plan-filter-tabs { gap: 2px; padding: 3px; border-radius: 4px; }
.plan-period-tabs { border-color: var(--line); background: rgba(255,255,255,.55); }
.plan-period-tabs button, .plan-filter-tabs button { border-radius: 3px; padding: 8px 10px; font-size: .72rem; }
.plan-period-tabs button { color: var(--muted); }
.plan-period-tabs button:hover, .plan-period-tabs button.active { color: var(--ink); background: var(--surface); }
.plan-filter-tabs button:hover, .plan-filter-tabs button.active { color: #f8f5ef; background: var(--ink); }
.plan-date-control { color: var(--muted); }
.plan-date-control input { min-width: 132px; border-color: var(--line); border-radius: 4px; background: var(--surface); }
.plan-kpis .card { min-height: 122px; }
.plan-command-grid { gap: 12px; margin-bottom: 12px; }
.plan-focus-panel { min-height: 178px; }
.plan-clear-state { min-height: 104px; }
.plan-clear-state b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 700; }
.team-result-card { border-radius: 5px; background: #f5f2eb; }
.team-result-card.ta { border-top: 2px solid var(--ink); }
.team-result-card.ota { border-top: 2px solid var(--gold); }
.plan-board { margin-top: 12px; }
.plan-board-head { margin-bottom: 13px; }
.plan-board-head h2 { font-size: 1.9rem; }
.plan-task-grid { gap: 10px; }
.plan-task-card { min-height: 240px; padding: 15px; border-radius: 6px; background: var(--surface); }
.plan-task-card:hover { box-shadow: none; transform: none; }
.plan-task-card h3 { font-family: 'Manrope', ui-sans-serif, sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: -.01em; }
.plan-priority { border-radius: 3px; }
.plan-task-scope { border-radius: 4px; background: #f2eee7; }
.plan-blocker { border-radius: 4px; }
.plan-output { border-radius: 3px; }

.report-hero { padding: 25px 28px; border-radius: 8px; border-color: var(--line); box-shadow: none; }
.report-hero.report-achieved { background: #dfe8df; }
.report-hero.report-behind { background: #ebe6dd; }
.report-hero h2 { color: var(--ink); font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: .84; }
.report-hero p, .report-health span { color: var(--muted); }
.report-health { border-color: var(--line); border-radius: 4px; background: rgba(250,248,243,.55); }
.report-health strong { color: var(--ink); }
.report-target-card { border-radius: 8px; box-shadow: none; }
.report-target-actual { color: var(--ink); }
.report-trend-chart { background: #f7f4ee; }

.table-wrap { border: 1px solid var(--line); border-radius: 5px; }
table { min-width: 700px; }
th, td { border-bottom-color: var(--line); }
th { font-size: .65rem; letter-spacing: .1em; }
.status { border-radius: 3px; }
.modal { border-radius: 8px; box-shadow: 0 24px 70px rgba(23,24,23,.18); }
.modal-head { border-bottom-color: var(--line); }
.modal-head h2 { font-size: 2.1rem; }
.detail-item { border-radius: 4px; background: #f7f4ee; }

@media (max-width: 760px) {
  .sidebar { position: static; height: auto; }
  .main { padding: 24px 15px 42px; }
  .plan-hero { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .plan-controls { justify-content: start; }
}

@media (max-width: 1050px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 470px) {
  .kpi-grid, .report-target-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 2.7rem; }
  .plan-hero h2, .report-hero h2 { font-size: 2.8rem; }
}

.module-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.module-intro h2 { margin: 0; color: var(--ink); font-size: clamp(2.35rem, 4.5vw, 3.7rem); line-height: .82; }
.module-intro p { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.module-badge { padding: 7px 10px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.module-kpis { margin-bottom: 16px; }
.marketing-main-grid, .intern-main-grid, .marketing-forms-grid { gap: 12px; align-items: start; }
.marketing-forms-grid { margin-top: 12px; }
.marketing-form-card { min-width: 0; }
.funnel-stack { display: grid; gap: 0; margin-bottom: 14px; }
.funnel-stack > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.funnel-stack span { color: var(--muted); font-size: .76rem; }
.funnel-stack strong { color: var(--ink); font-size: .9rem; }
.intern-task-list { display: grid; gap: 9px; max-height: 560px; overflow-y: auto; padding-right: 2px; }
.intern-task-list .plan-task-card { min-height: 220px; }
.marketing-campaign-status { max-width: 140px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--surface); font-size: .7rem; }
.marketing-campaign-status:focus { outline: 1px solid var(--gold); }
.ota-guest-ops { margin-top: 16px; }
.ota-guest-ops .ota-ops-kpis { margin: 0 0 16px; }
.ota-guest-ops .table-wrap { overflow-x: auto; }
.ota-guest-ops table { min-width: 920px; }
.ota-guest-ops td { vertical-align: top; }
.ota-guest-ops .record-sub { max-width: 260px; }
.ota-guest-ops .negative { color: #a9443f; font-weight: 700; }
.booking-ops-task-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.booking-ops-task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); background: #f7f4ee; }
.booking-ops-task strong { display: block; color: var(--ink); font-size: .8rem; }
.booking-ops-task select { min-width: 125px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: .7rem; }

@media (max-width: 760px) {
  .module-intro { display: grid; align-items: start; }
  .marketing-main-grid, .intern-main-grid, .marketing-forms-grid { grid-template-columns: 1fr; }
}

/* Donezo-inspired DAVI operating workspace */
:root {
  --page: #eef1f0;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --line: #e5ece8;
  --ink: #182a25;
  --muted: #8a9993;
  --green: #168357;
  --green-dark: #0d6947;
  --green-soft: #e2f4eb;
  --gold: #c4a15d;
  --red: #c9574f;
  --navy: #182a25;
  --navy-soft: #243b33;
  --ivory: var(--page);
  --shadow: 0 10px 28px rgba(27, 63, 49, .055);
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { background: var(--page); }
body { background: var(--page); color: var(--ink); font-family: 'Manrope', Inter, ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, h4, .plan-hero h2, .report-hero h2, .login-card h1 { font-family: 'Manrope', Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -.055em; }

.app-shell {
  min-height: 100vh;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--page);
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  min-height: 610px;
  padding: 27px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #fbfcfb;
  box-shadow: var(--shadow);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.sidebar .brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.06em;
}
.sidebar .brand .brand-copy {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.sidebar .brand .brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.nav { gap: 5px; margin-top: 26px; }
.nav-label {
  margin: 0 12px 7px;
  color: #a7b2ae;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 11px 12px 11px 15px;
  border: 0;
  border-radius: 13px;
  color: #9aa9a3;
  background: transparent;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.nav button::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 2px solid #afbbb6;
  border-radius: 3px;
  background: transparent;
}
.nav button:hover { color: var(--green-dark); background: #f1f7f4; }
.nav button.active { color: var(--green-dark); background: var(--green-soft); }
.nav button.active::before { border-color: var(--green); background: var(--green); }

.sidebar-foot { color: var(--muted); font-size: .68rem; }
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 6px 15px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.sidebar-avatar, .user-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #52b58a, #0e7650);
  font-weight: 800;
}
.sidebar-avatar { width: 29px; height: 29px; font-size: .72rem; }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { color: var(--ink); font-size: .7rem; }
.sidebar-profile small { margin-top: 2px; color: var(--muted); font-size: .58rem; }
.sidebar-caption { padding: 0 10px; line-height: 1.55; }

.main {
  min-width: 0;
  padding: 22px clamp(20px, 4vw, 48px) 56px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.topbar {
  display: block;
  margin-bottom: 27px;
  padding-bottom: 21px;
  border-bottom: 1px solid #eff3f1;
}
.topbar-row, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { align-items: end; margin-top: 25px; }
.topbar h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1; }
.topbar .muted { color: var(--muted); }
.topbar .muted.small { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions { gap: 8px; }
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(370px, 40vw);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #edf1ef;
  border-radius: 13px;
  color: #a6b0ac;
  background: #fafbfb;
  font-size: .75rem;
}
.global-search .search-icon { color: var(--ink); font-size: 1.35rem; line-height: 0; transform: translateY(-1px); }
.global-search kbd { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: #8b9993; background: #fff; font-size: .62rem; }
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.15rem;
}
.icon-btn:hover { border-color: #b4d8c7; color: var(--green-dark); background: #f3fbf6; }
.notification-btn { font-size: 1.05rem; }
.notification-btn i { position: absolute; top: 8px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.user-chip { gap: 8px; padding: 5px 11px 5px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .74rem; font-weight: 700; }
.user-chip > span:last-child { display: grid; gap: 1px; }
.user-chip small { color: var(--muted); font-size: .58rem; font-weight: 600; }
.user-avatar { width: 30px; height: 30px; font-size: .72rem; }
.role-pill { display: none; }

.btn { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 14px; color: var(--ink); background: #fff; font-size: .76rem; font-weight: 700; }
.btn:hover { transform: translateY(-1px); border-color: #a8d3c0; color: var(--green-dark); }
.btn-primary { border-color: var(--green); color: #fff; background: var(--green); }
.btn-primary:hover { border-color: var(--green-dark); color: #fff; background: var(--green-dark); }
.btn-danger { color: var(--red); }
.btn-small { min-height: 35px; padding: 7px 10px; font-size: .7rem; }
.topbar-actions select { min-height: 35px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: .7rem; }

.toolbar { margin-bottom: 17px; }
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(27, 63, 49, .035);
}
.card h2 { margin-bottom: 15px; color: var(--ink); font-size: 1.25rem; line-height: 1.1; }
.card h3 { font-size: 1rem; }
.kpi-grid { gap: 12px; margin-bottom: 16px; }
.kpi-grid .card { min-height: 142px; padding: 20px; border-top: 0; }
.kpi-grid .card:first-child { border-color: var(--green); color: #fff; background: linear-gradient(145deg, #168b5b, #096b48); }
.kpi-grid .card:first-child .kpi-label, .kpi-grid .card:first-child .kpi-context, .kpi-grid .card:first-child .kpi-value { color: #fff; }
.kpi-grid .card:first-child .kpi-context { color: #caeadd; }
.kpi-label { color: var(--muted); font-size: .75rem; font-weight: 650; text-transform: none; letter-spacing: 0; }
.kpi-value { margin-top: 13px; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.065em; }
.kpi-context { margin-top: 6px; color: var(--muted); font-size: .7rem; }
.section-title { margin-bottom: 15px; }
.section-title h2 { font-size: 1.25rem; }
.two-col { grid-template-columns: minmax(0, 1.38fr) minmax(290px, .82fr); gap: 15px; }
.three-col { gap: 12px; }

.chart { min-height: 220px; padding: 16px 4px 4px; border-bottom: 1px solid #edf2ef; background: repeating-linear-gradient(to top, transparent 0, transparent 51px, #f0f4f2 52px); }
.bar-wrap { min-width: 46px; }
.bar { background: var(--green); border-radius: 8px 8px 3px 3px; }
.bar.target { background: repeating-linear-gradient(135deg, #c7ddd2 0, #c7ddd2 3px, transparent 3px, transparent 7px); border: 1px solid #b4d0c3; }
.bar-label { color: var(--muted); font-size: .62rem; }
.chart-legend { margin-top: 11px; color: var(--muted); font-size: .68rem; }
.legend-dot { background: var(--green); }
.legend-dot.target { background: #bdd5c9; }
.alert-list { gap: 0; }
.alert { padding: 12px 0; border-bottom: 1px solid #edf2ef; }
.alert:last-child { border-bottom: 0; }
.alert strong { color: var(--ink); font-size: .78rem; }
.alert span { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.alert-icon { width: 25px; height: 25px; }
.alert-icon.positive { color: var(--green); background: var(--green-soft); }
.alert-icon.negative { color: var(--red); background: #fae9e7; }

.notice { border: 1px solid #cfe8db; border-radius: 13px; color: var(--green-dark); background: #f0faf4; }
.module-intro { padding-bottom: 17px; border-bottom-color: var(--line); }
.module-intro h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.module-badge { border-radius: 999px; color: var(--green-dark); border-color: #b8ddca; background: var(--green-soft); }
.eyebrow { color: var(--green); }
.status { border-radius: 999px; }
.status.green { color: var(--green-dark); background: var(--green-soft); }
.status.gold { color: #886b27; background: #f8f0dc; }

.table-wrap { border: 1px solid var(--line); border-radius: 13px; overflow-x: auto; }
table { min-width: 700px; }
th { color: #84938d; font-size: .64rem; letter-spacing: .1em; }
th, td { border-bottom-color: #edf2ef; }
td { color: var(--ink); font-size: .76rem; }
.record-title { color: var(--ink); font-weight: 750; }
.record-sub { color: var(--muted); }
.field input, .field select, .field textarea { border-color: var(--line); border-radius: 10px; background: #fbfcfb; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #89c7aa; box-shadow: 0 0 0 3px rgba(22, 131, 87, .12); }

.plan-hero { border: 0; border-radius: 20px; background: linear-gradient(135deg, #0d6c49, #19895b); box-shadow: 0 12px 25px rgba(13, 108, 73, .16); }
.plan-hero .eyebrow { color: #a8dec3; }
.plan-hero h2 { color: #fff; }
.plan-hero p { color: #d5eee1; }
.plan-hero .btn-primary { color: var(--green-dark); background: #fff; }
.plan-period-tabs { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.12); }
.plan-period-tabs button { color: #d6eee2; }
.plan-period-tabs button:hover, .plan-period-tabs button.active { color: var(--green-dark); background: #fff; }
.plan-filter-tabs button.active { color: #fff; background: var(--green); }
.plan-task-card, .team-result-card { border-radius: 14px; }
.plan-task-card:hover { border-color: #a8d3c0; }
.plan-task-card h3 { font-family: 'Manrope', sans-serif; }
.plan-output { color: var(--green-dark); background: #f0faf4; border-color: #cfe8db; }

.report-hero { border: 0; border-radius: 20px; background: linear-gradient(135deg, #0d6c49, #19895b); }
.report-hero.report-achieved, .report-hero.report-behind { background: linear-gradient(135deg, #0d6c49, #19895b); }
.report-hero h2 { color: #fff; }
.report-hero p, .report-health span { color: #d5eee1; }
.report-health { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.13); }
.report-health strong { color: #fff; }
.report-target-card { border-radius: 16px; }
.report-target-card.achieved { border-top-color: var(--green); }
.report-trend-chart { background: #f7faf8; }

.modal { border-radius: 18px; }
.detail-item { border-radius: 10px; background: #f7faf8; }
.booking-ops-task { border-radius: 11px; background: #f7faf8; }
.booking-ops-task select { border-radius: 9px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 216px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .sidebar { top: 14px; height: calc(100vh - 28px); }
  .main { padding: 20px 25px 45px; }
  .global-search { width: min(310px, 34vw); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 18px 12px; border-radius: 18px; }
  .sidebar-foot { display: none; }
  .nav { display: flex; gap: 5px; margin-top: 17px; overflow-x: auto; padding-bottom: 3px; }
  .nav-label { display: none; }
  .nav button { min-width: max-content; min-height: 38px; padding: 8px 11px; }
  .main { border-radius: 18px; padding: 18px 14px 35px; }
  .topbar-row { align-items: stretch; flex-direction: column; }
  .global-search { width: 100%; }
  .topbar-actions { justify-content: flex-start; }
  .page-heading { margin-top: 18px; }
  .topbar h1 { font-size: 2rem; }
  .two-col, .plan-command-grid, .report-executive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .kpi-grid, .report-target-grid { grid-template-columns: 1fr; }
  .topbar-actions select { max-width: 140px; }
  .user-chip { max-width: 145px; }
  .user-chip > span:last-child { overflow: hidden; }
}
