:root {
  color-scheme: light;
  --navy: #142a3b;
  --navy-soft: #20394b;
  --teal: #167d89;
  --teal-light: #e6f3f1;
  --ink: #1a2d3e;
  --muted: #71808b;
  --line: #e4e9ed;
  --canvas: #f7f9fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #6bafc3; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; vertical-align: middle; flex: 0 0 auto; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; transition: background .15s; white-space: nowrap; }
.primary { background: var(--teal); color: #fff; box-shadow: 0 3px 6px #167d8912; }
.primary:hover { background: #126773; }
.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.secondary:hover { background: #f1f5f7; }
.danger { color: #b94249; background: #fff1f1; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); background: transparent; border-radius: 7px; }
.icon-button:hover { background: #71808b12; color: var(--ink); }
.small-label, .eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.3px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #50ac8c; flex: 0 0 auto; }
.status-dot.blue { background: #598fce; }
.brand { display: flex; align-items: center; color: #fff; gap: 10px; font-size: 24px; font-weight: 650; letter-spacing: -.8px; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 32px; border-radius: 8px; background: #71c1bb; color: var(--navy); font-size: 28px; font-weight: 700; }
.brand-period { color: #76c7bf; margin-left: -10px; }
.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 19px 17px; background: var(--navy); color: #c3ced7; }
.sidebar .brand { padding-left: 10px; margin-bottom: 39px; }
.workspace-label { font-size: 9px; letter-spacing: 1.4px; color: #7d93a5; padding-left: 11px; font-weight: 600; }
.project-selector { display: flex; gap: 10px; align-items: center; padding: 13px 10px; background: #ffffff06; border: 1px solid #ffffff12; border-radius: 8px; margin: 10px 0 22px; }
.project-avatar { display: grid; place-items: center; height: 33px; width: 33px; border-radius: 8px; background: #284959; color: #a5ddd6; font-weight: 600; }
.project-selector strong { display: block; font-size: 13px; color: #edf3f8; }
.project-selector small { display: block; font-size: 10px; color: #93a7b8; }
.selector-arrow { margin-left: auto; color: #8da4b4; }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; background: transparent; color: #a4b7c7; text-align: left; padding: 12px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; }
.nav-item:hover { background: #ffffff07; color: #fff; }
.nav-item.active { color: #c3ebe3; background: #2c5a642e; box-shadow: inset 3px 0 #6fbcb4; }
.nav-count { margin-left: auto; background: #ffffff0a; color: #93a9b8; border-radius: 4px; padding: 0 6px; font-size: 10px; }
.links-label { margin-top: 32px; margin-bottom: 10px; }
.external { font-size: 11px; padding-block: 9px; }
.external [data-icon]:last-child { margin-left: auto; opacity: .55; }
.external [data-icon]:last-child .icon { width: 14px; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sync-card { display: flex; align-items: flex-start; gap: 8px; padding: 13px 8px 19px; border-bottom: 1px solid #ffffff12; }
.sync-card .status-dot { margin-top: 5px; }
.sync-card strong { display: block; font-size: 10px; font-weight: 500; color: #bccfdb; }
.sync-card small { display: block; font-size: 9px; color: #7f98aa; margin-top: 3px; }
.sync-card .icon-button { margin-left: auto; width: 22px; height: 22px; }
.sidebar .icon-button { color: #93a8b7; }
.sidebar .icon-button:hover { color: #fff; background: #ffffff0a; }
.user-row { display: flex; align-items: center; gap: 9px; padding: 19px 5px 0; }
.user-avatar { display: grid; place-items: center; height: 31px; width: 31px; border-radius: 50%; color: #d2e0eb; background: #31495b; font-size: 11px; }
.user-row strong { display: block; color: #dae5ed; font-size: 11px; font-weight: 500; }
.user-row small { display: block; font-size: 9px; color: #7e98aa; }
.user-row button { margin-left: auto; }
.main-content { min-width: 0; }
.topbar { height: 66px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; gap: 13px; align-items: center; font-size: 11px; color: #93a0aa; }
.breadcrumb strong { color: #506473; font-weight: 500; }
.breadcrumb-project { color: #506473; }
.topbar-right { display: flex; gap: 15px; align-items: center; }
.live-chip { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; color: #7e8c97; }
.page-content { padding: 35px 34px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading .eyebrow { font-size: 9px; color: #8d9ca7; letter-spacing: 1.8px; }
h1 { margin: 7px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.2; }
.title-dot { color: var(--teal); }
.page-heading p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: 1.04fr 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 31px; }
.summary-card { padding: 18px 19px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.summary-card .small-label { font-size: 9px; letter-spacing: .9px; }
.summary-number { display: flex; align-items: baseline; gap: 5px; font-size: 28px; line-height: 1.4; font-weight: 600; letter-spacing: -.8px; margin-top: 8px; }
.summary-number span { font-size: 12px; font-weight: 400; color: #8d9ba7; letter-spacing: 0; }
.summary-number small { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--teal); letter-spacing: 0; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 5px; background: #edf2f3; margin-top: 10px; accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #edf2f3; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 5px; }
.current-step { display: flex; align-items: center; gap: 10px; margin-top: 15px; min-height: 33px; }
.step-number { display: grid; place-items: center; border-radius: 7px; background: #eef4fc; color: #5783b8; font-size: 15px; width: 35px; height: 35px; flex: 0 0 auto; }
.current-step strong { font-size: 11px; font-weight: 550; line-height: 1.5; }
.summary-footnote { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #91a0aa; margin-top: 8px; }
.view-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); align-items: center; }
.view-tab { display: flex; align-items: center; gap: 7px; background: transparent; font-size: 12px; font-weight: 500; color: #8a98a4; padding: 0 0 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-tab .icon { width: 16px; height: 16px; }
.view-tab.active { color: var(--teal); border-color: var(--teal); }
.tabs-spacer { flex: 1; }
.scope-note { font-size: 10px; color: #8a98a4; padding-bottom: 12px; }
.toolbar { display: flex; justify-content: space-between; gap: 15px; margin: 22px 0 17px; }
.search-field { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #fff; border: 1px solid var(--line); border-radius: 7px; width: 310px; }
.search-field .icon { width: 16px; color: #a1adb6; }
.search-field input { border: 0; background: transparent; width: 100%; min-width: 0; outline: none; padding: 9px 0; font-size: 11px; color: var(--ink); }
.search-field input::placeholder { color: #a0abb5; }
kbd { font-family: inherit; border: 1px solid #e9edef; padding: 0 5px; border-radius: 4px; font-size: 10px; color: #a9b3bb; }
.toolbar-filters { display: flex; gap: 8px; }
select { border: 1px solid var(--line); background: #fff; color: #627583; padding: 8px 28px 8px 10px; border-radius: 7px; font-size: 11px; max-width: 100%; }
.section-caption { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #97a4ae; letter-spacing: 1.1px; margin-bottom: 13px; }
.section-caption span:last-child { letter-spacing: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 22px; font-size: 9px; color: #a0acb5; }
.notice { background: #fff7e8; color: #8a642d; font-size: 12px; padding: 12px 15px; border-radius: 8px; margin-top: 15px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; padding: 13px 20px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 12px; box-shadow: 0 8px 30px #142a3b30; max-width: calc(100vw - 30px); }
.toast.error { background: #923d43; }
