:root {
  --aubergine: #302044; --purple: #68458a; --lavender: #a58ac0;
  --mist: #ede6f4; --porcelain: #faf8fc; --gold: #c5a36b;
  --forest: #244c3b; --sage: #668b72; --mint: #dce9df;
  --text: #30283a; --muted: #6b6175; --line: #e4deeb;
  --white: #fff; --warning: #795716; --warning-bg: #f6eddc;
  --danger: #973a50; --shadow: 0 5px 22px #30204406;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--porcelain); font: 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .75; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -1.2px; margin-bottom: 10px; color: var(--aubergine); }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.25px; margin-bottom: 4px; }
h3 { font-size: 15px; margin-bottom: 6px; }
p { margin-bottom: 12px; }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; background: var(--aubergine); color: #eee8f4; padding: 31px 18px 20px; z-index: 20; overflow-y: auto; }
.brand { padding: 0 15px 31px; display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 42px; background: #ffffff12; border: 1px solid #ffffff30; border-radius: 12px 12px 12px 3px; color: #e0ca9e; font-size: 27px; font-weight: 600; }
.brand strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.7px; color: white; }
.brand small { font-size: 12px; letter-spacing: 1.2px; color: #d0c1dd; }
.nav-caption, .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.nav-caption { color: #c3afd4; padding: 0 15px 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; color: #ddd3e7; transition: background .15s; }
.nav-link:hover { background: #ffffff0b; }
.nav-link.active { background: #ffffff16; color: white; box-shadow: inset 3px 0 var(--gold); }
.nav-link .count { margin-left: auto; background: #ffffff15; padding: 0 7px; border-radius: 5px; font-size: 12px; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; }
.safe-note { border: 1px solid #ffffff23; border-radius: 10px; padding: 13px; font-size: 12px; color: #d5c7e1; }
.safe-note strong { display: block; color: #f0e8f6; margin-bottom: 5px; }
.owner { display: flex; align-items: center; gap: 9px; padding-top: 20px; font-size: 12px; }
.owner small { display: block; color: #c3afd4; font-size: 12px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; background: var(--mist); color: var(--purple); border-radius: 50%; font-size: 12px; font-weight: 700; }
.shell { margin-left: 250px; }
.topbar { min-height: 75px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 16px 34px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb strong { color: var(--aubergine); font-weight: 600; }
.top-actions { display: flex; gap: 13px; align-items: center; }
.demo-pill { font-size: 12px; font-weight: 750; letter-spacing: 1px; color: var(--purple); background: var(--mist); border: 1px solid #d8cce5; border-radius: 5px; padding: 4px 8px; white-space: nowrap; }
.date-label { color: var(--muted); font-size: 12px; }
.menu-button { display: none; background: var(--mist); color: var(--aubergine); border-radius: 7px; padding: 8px; }
main { max-width: 1620px; margin: auto; padding: 32px 34px 18px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 23px; }
.eyebrow { color: var(--purple); margin-bottom: 10px; }
.muted { color: var(--muted); }
.subtitle { color: var(--muted); font-size: 13px; margin-bottom: 0; max-width: 720px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 14px; background: var(--purple); border: 1px solid var(--purple); color: white; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button:hover { background: var(--aubergine); }
.button.secondary { background: white; color: var(--purple); border-color: var(--line); }
.button.secondary:hover { background: var(--mist); }
.button.danger { color: var(--danger); border-color: #dfb9c3; background: white; }
.notice { padding: 11px 15px; background: var(--mist); color: #51405f; border: 1px solid #e1d6eb; border-radius: 8px; font-size: 12px; margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.notice strong { color: var(--aubergine); }
.notice.warning { background: var(--warning-bg); border-color: #e6d5b6; color: #674914; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.metric, .panel { border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.metric { padding: 19px 20px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-top .icon { color: var(--purple); }
.metric-value { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -1px; font-weight: 650; line-height: 1.4; margin: 8px 0 4px; color: var(--aubergine); }
.metric-foot { font-size: 12px; color: var(--muted); }
.positive { color: var(--forest); font-weight: 650; }
.overdue { color: var(--danger); }
.full-width { width: 100%; }
.metric.featured { background: var(--aubergine); border-color: var(--aubergine); }
.metric.featured .metric-value { color: white; }
.metric.featured .metric-top, .metric.featured .metric-top .icon, .metric.featured .metric-foot { color: #e4d9ee; }
.metric.featured .positive { color: #c6e4d0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 22px; margin-bottom: 22px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.panel { padding: 22px; min-width: 0; margin-bottom: 22px; }
.grid-main > .panel, .grid-two > .panel { margin-bottom: 0; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.panel-header p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.text-link { color: var(--purple); text-decoration: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--purple); border-radius: 50%; margin-right: 6px; }
.legend .expense::before { background: var(--sage); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 12px system-ui, sans-serif; fill: var(--muted); }
.chart .chart-grid { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .revenue-line { fill: none; stroke: var(--purple); stroke-width: 3; }
.chart .expense-line { fill: none; stroke: var(--sage); stroke-width: 2.5; }
.chart .area { fill: var(--mist); opacity: .65; }
.chart .dot { fill: white; stroke: var(--purple); stroke-width: 2; }
.chart-caption { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.snapshot-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.snapshot-row:first-of-type { padding-top: 0; }
.snapshot-row strong { font-size: 14px; color: var(--aubergine); }
.snapshot-row:last-child { border-bottom: 0; }
.inline-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.financial-disclaimer { color: var(--muted); font-size: 12px; margin: -12px 0 22px; }
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); background: var(--porcelain); font-weight: 650; padding: 11px 12px; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #eee9f2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.business-name { display: flex; align-items: center; gap: 10px; min-width: 190px; text-decoration: none; font-weight: 600; }
.business-name:hover { color: var(--purple); }
.business-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--mist); display: grid; place-items: center; font-size: 12px; color: var(--purple); font-weight: 750; flex: 0 0 auto; }
.business-mark.green { background: var(--mint); color: var(--forest); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 5px; background: var(--mist); color: #5e3d7b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.green { color: var(--forest); background: var(--mint); }
.badge.amber { color: var(--warning); background: var(--warning-bg); }
.badge.red { color: var(--danger); background: #f7e6eb; }
.badge.inactive { white-space: normal; font-size: 12px; letter-spacing: .2px; color: #5d4b6d; background: #eee9f2; border: 1px solid #d9cfe2; }
progress { width: 100%; height: 6px; border: 0; border-radius: 5px; background: var(--mist); accent-color: var(--purple); vertical-align: middle; }
progress::-webkit-progress-bar { background: var(--mist); border-radius: 5px; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--purple); border-radius: 5px; }
.progress-label { display: flex; align-items: center; gap: 9px; min-width: 100px; }
.progress-label span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item h3 { font-size: 12px; margin: 0 0 4px; font-weight: 600; }
.list-item p { font-size: 12px; color: var(--muted); margin: 0; }
.list-item .text-link { margin-left: auto; }
.activity-dot { width: 8px; height: 8px; border: 2px solid var(--lavender); border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.priority-index { color: var(--purple); font-size: 12px; font-weight: 700; background: var(--mist); border-radius: 7px; padding: 6px 9px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); flex: 1; min-width: 145px; }
select, input[type="search"], input[type="text"], input[type="date"], textarea { width: 100%; min-height: 39px; padding: 8px 11px; background: white; color: var(--text); border: 1px solid #d7cedf; border-radius: 6px; font-size: 12px; }
textarea { min-height: 84px; resize: vertical; }
td select { min-width: 125px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-bottom: 22px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards .panel { margin-bottom: 0; display: flex; flex-direction: column; }
.card-top { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.card-top .business-mark { width: 43px; height: 43px; font-size: 12px; }
.card-copy { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.card-stats { display: flex; gap: 24px; margin: auto 0 16px; }
.card-stats strong { display: block; font-size: 20px; color: var(--aubergine); }
.card-stats small { font-size: 12px; color: var(--muted); }
.card-footer { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.executive .avatar { width: 43px; height: 43px; font-size: 15px; border-radius: 12px; }
.executive h2 { font-size: 16px; }
.executive .job-title { font-size: 12px; color: var(--purple); margin: 0; }
.executive .badge { align-self: flex-start; margin-bottom: 14px; }
.executive dl { font-size: 12px; margin: 0 0 12px; }
dt { font-weight: 650; color: var(--aubergine); }
dd { margin: 3px 0 10px; color: var(--muted); }
details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; font-size: 12px; }
summary { cursor: pointer; color: var(--purple); font-weight: 650; }
details ul { padding-left: 18px; color: var(--muted); }
.approval-card .card-footer { flex-wrap: wrap; margin-top: auto; }
.approval-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; margin: 12px 0; }
.approval-card dd { margin-bottom: 0; }
.approval-controls { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.approval-controls .field { min-width: 140px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--aubergine); }
.empty .icon { width: 30px; height: 30px; margin-bottom: 12px; }
.report-output { background: var(--porcelain); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 20px; }
.report-output h3 { color: var(--purple); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.setting-row .subtitle { display: block; margin-top: 4px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--purple); flex-shrink: 0; }
.footer { padding: 10px 34px 26px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.compact td { padding-top: 9px; padding-bottom: 9px; }
.compact .panel { padding: 17px; }
.persona-switcher { display: grid; gap: 2px; min-width: 185px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.persona-switcher select { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.team-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.team-task-card { gap: 13px; }
.team-task-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.team-task-title .eyebrow { margin-bottom: 6px; }
.team-task-title h2 { margin-bottom: 0; }
.team-status { flex: 0 0 auto; }
.team-task-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 12px; background: var(--porcelain); border-radius: 8px; }
.team-task-meta > div { min-width: 0; display: grid; gap: 4px; align-content: start; }
.team-task-meta > div > span { color: var(--muted); font-size: 11px; }
.team-task-meta strong { font-size: 12px; font-weight: 600; }
.team-task-meta .progress-label { min-width: 0; }
.team-task-meta progress { min-width: 45px; }
.team-task-card .task-instructions, .team-task-card .feedback-note, .team-task-card .submission-preview, .team-task-card .guided-work { font-size: 12px; }
.task-instructions { color: var(--muted); margin: 0; }
.feedback-note { padding: 12px; border-left: 3px solid var(--gold); background: var(--warning-bg); color: #5d471e; border-radius: 4px; }
.feedback-note p { margin: 5px 0 0; }
.team-inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.team-inline-form .field { min-width: 135px; }
.team-action-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.team-action-form small { color: var(--muted); }
.team-reassign { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.team-reassign summary, .guided-work summary, .submission-preview summary, .team-history summary { cursor: pointer; color: var(--purple); font-weight: 650; }
.team-reassign form { margin-top: 12px; }
.guided-work { border-top: 1px solid var(--line); padding-top: 12px; }
.guided-work ol, .criteria-list, .plain-steps { padding-left: 21px; }
.guided-work li, .criteria-list li, .plain-steps li { padding: 3px 0; }
.guided-work textarea[readonly] { background: #fcfbfd; color: var(--text); }
.submission-preview { padding: 12px; background: var(--porcelain); border-radius: 7px; }
.submission-preview p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-history { border-top: 1px solid var(--line); padding-top: 11px; font-size: 12px; }
.team-activity, .calendar-list, .plain-list { list-style: none; margin: 8px 0 0; padding: 0; }
.team-activity li, .calendar-list li, .plain-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.team-activity li:last-child, .calendar-list li:last-child, .plain-list li:last-child { border-bottom: 0; }
.team-activity li { display: grid; gap: 3px; }
.team-activity span, .calendar-list span, .plain-list span { display: block; color: var(--muted); font-size: 12px; }
.calendar-list time { flex: 0 0 auto; color: var(--purple); font-size: 12px; font-weight: 700; }
.calendar-list li > div { flex: 1; }
.calendar-list li > div strong { display: block; font-size: 12px; }
.calendar-list .badge { flex: 0 0 auto; }
.team-scorecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scorecard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scorecard-grid > div { display: grid; gap: 5px; padding: 10px; background: var(--porcelain); border-radius: 7px; }
.scorecard-grid span { color: var(--muted); font-size: 11px; }
.scorecard-grid strong { color: var(--aubergine); font-size: 16px; }
.delegation-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.delegation-form .field { min-width: 0; }
.delegation-form .form-note, .delegation-form > .button { grid-column: 1 / -1; }
.form-note, .reserved-note { padding: 10px 12px; color: #5d4b6d; background: var(--mist); border-radius: 7px; font-size: 12px; }
.reserved-note { margin: 0; }
.intern-start { border-left: 4px solid var(--sage); }
.intern-start p:last-child { margin-bottom: 0; }
.plain-steps { margin-bottom: 0; }
@media (min-width: 1500px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) {
  .sidebar { width: 220px; padding-inline: 12px; }
  .shell { margin-left: 220px; }
  main { padding: 25px 24px 15px; }
  .topbar { padding-inline: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { gap: 11px; }
  .metric { padding: 16px 14px; }
  .grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 16px; }
  .persona-switcher { min-width: 130px; max-width: 170px; }
  .persona-switcher > span { display: none; }
}
@media (max-width: 940px) {
  .sidebar { width: 205px; }
  .shell { margin-left: 205px; }
  .nav-link { font-size: 12px; gap: 9px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-two { grid-template-columns: 1fr; }
  .date-label { display: none; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .team-task-list, .team-scorecards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sidebar { display: none; width: 260px; top: 65px; padding-top: 20px; overflow-y: auto; box-shadow: 10px 0 30px #30204430; }
  .sidebar.open { display: flex; }
  .sidebar .brand { padding-bottom: 20px; }
  .sidebar-bottom { padding-top: 20px; }
  .shell { margin-left: 0; }
  .topbar { min-height: 65px; padding: 12px 17px; position: sticky; top: 0; z-index: 30; gap: 8px; }
  .menu-button { display: inline-flex; }
  .breadcrumb { flex: 1; min-width: 0; margin-right: 0; font-size: 11px; }
  .breadcrumb .parent { display: none; }
  .breadcrumb strong { display: inline-block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
  .top-actions { flex: 0 1 auto; gap: 6px; }
  .top-actions .avatar { display: none; }
  .persona-switcher { flex: 0 1 122px; width: 122px; min-width: 0; max-width: 122px; }
  .persona-switcher select { font-size: 10px; }
  main { padding: 24px 17px 12px; }
  .page-heading { flex-direction: column; gap: 14px; }
  .page-heading .button { align-self: flex-start; }
  .metric { padding: 15px 13px; }
  .metric-top { font-size: 12px; }
  .metric-value { font-size: 25px; }
  .metric-foot { font-size: 12px; }
  .panel { padding: 17px; }
  .panel-header { gap: 8px; }
  .panel-header h2 { font-size: 15px; }
  .notice { align-items: flex-start; }
  .notice .icon { width: 17px; }
  .field { min-width: 130px; }
  .footer { padding: 12px 17px 22px; flex-direction: column; }
  .setting-row { align-items: flex-start; }
  .delegation-form { grid-template-columns: 1fr; }
  .delegation-form .form-note, .delegation-form > .button { grid-column: auto; }
  .scorecard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-task-meta { grid-template-columns: 1fr 1fr; }
  .calendar-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { transition: none !important; animation: none !important; }
