/* Original Replit template: Admin Dashboard Vorlage, local copy 03.10.2026.
   DM Sans / Manrope are bundled under the SIL Open Font License. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/vendor/fonts/dm-sans.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/vendor/fonts/manrope.ttf') format('truetype'); }
:root {
  color-scheme: light;
  --background: 42 43% 96%;
  --foreground: 163 22% 17%;
  --surface: 0 0% 100%;
  --surface-soft: 42 38% 92%;
  --muted: 153 12% 47%;
  --border: 39 20% 86%;
  --primary: 157 42% 34%;
  --primary-foreground: 0 0% 100%;
  --accent: 34 84% 66%;
  --accent-soft: 35 83% 91%;
  --mint: 153 39% 91%;
  --lavender: 260 37% 93%;
  --danger: 5 62% 55%;
  --shadow: 163 24% 25%;
  --app-font-sans: 'DM Sans', sans-serif;
  --app-font-display: 'Manrope', sans-serif;
}

.dark {
  color-scheme: dark;
  --background: 164 19% 12%;
  --foreground: 42 30% 91%;
  --surface: 164 17% 16%;
  --surface-soft: 164 16% 20%;
  --muted: 152 11% 65%;
  --border: 164 12% 26%;
  --primary: 151 39% 61%;
  --primary-foreground: 164 25% 12%;
  --accent: 34 75% 65%;
  --accent-soft: 34 28% 23%;
  --mint: 157 23% 23%;
  --lavender: 259 19% 25%;
  --danger: 5 65% 67%;
  --shadow: 164 40% 4%;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--app-font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 3px;
}
#root { min-height: 100vh; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 250px; flex: 0 0 250px; padding: 27px 17px 20px;
  background: hsl(var(--surface)); border-right: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; transition: background .25s ease, border .25s ease;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 36px; }
.brand-mark {
  width: 37px; height: 37px; border-radius: 13px; display: grid; place-items: center;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); transform: rotate(-5deg);
}
.avatar-lavender { background: hsl(var(--lavender)); color: hsl(260 32% 42%); }
.avatar-mint { background: hsl(var(--mint)); color: hsl(var(--primary)); }
.avatar-peach { background: hsl(var(--accent-soft)); color: hsl(30 64% 43%); }
.avatar-blue { background: hsl(198 40% 90%); color: hsl(198 40% 37%); }
.avatar-rose { background: hsl(5 48% 92%); color: hsl(5 47% 44%); }
.dark .avatar-blue { background: hsl(198 28% 25%); color: hsl(198 54% 74%); }
.dark .avatar-rose { background: hsl(5 26% 26%); color: hsl(5 64% 77%); }
.brand-name { font: 800 19px var(--app-font-display); letter-spacing: -.7px; }
.brand-name span { color: hsl(var(--primary)); }
.workspace-switch {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; margin-bottom: 26px; background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); border-radius: 13px; text-align: left; cursor: pointer;
}
.workspace-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--accent-soft)); color: hsl(28 62% 37%); }
.workspace-copy small, .workspace-copy strong { display: block; }
.workspace-copy small { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.workspace-copy strong { font-size: 12px; font-weight: 700; }
.nav-label { padding: 0 12px; margin: 0 0 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.1px; font-size: 10px; font-weight: 700; }
.nav-list { display: grid; gap: 4px; }
.nav-item {
  width: 100%; padding: 10px 12px; display: flex; align-items: center; gap: 12px;
  border: 0; background: transparent; border-radius: 11px; text-align: left; color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: color .18s, background .18s, transform .18s;
}
.nav-item:hover { background: hsl(var(--background)); color: hsl(var(--foreground)); transform: translateX(2px); }
.nav-item.active { background: hsl(var(--mint)); color: hsl(var(--primary)); }
.nav-item .nav-count { margin-left: auto; font-size: 11px; }
.side-bottom { margin-top: auto; }
.help-card { margin: 20px 4px 18px; padding: 16px; border-radius: 15px; background: hsl(var(--accent-soft)); position: relative; overflow: hidden; }
.help-card:after { content: ''; position: absolute; width: 80px; height: 80px; border: 1px solid hsl(var(--accent) / .5); border-radius: 50%; right: -25px; top: -27px; box-shadow: 0 0 0 11px hsl(var(--accent) / .12), 0 0 0 22px hsl(var(--accent) / .08); }
.help-card strong { display: block; font: 700 13px var(--app-font-display); margin-bottom: 5px; }
.help-card p { margin: 0 0 12px; max-width: 155px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.help-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: hsl(var(--primary)); font-size: 11px; font-weight: 700; cursor: pointer; }
.profile { border-top: 1px solid hsl(var(--border)); padding: 17px 6px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: hsl(var(--lavender)); color: hsl(260 32% 42%); font-size: 11px; font-weight: 700; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.profile-more { display: grid; place-items: center; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 8px; padding: 4px; }
.profile-more:hover { color: hsl(var(--foreground)); background: hsl(var(--surface-soft)); }

.main-area { flex: 1; min-width: 0; }
.topbar { height: 77px; border-bottom: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.breadcrumb strong { color: hsl(var(--foreground)); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.top-left { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--surface)); cursor: pointer; color: var(--text-muted); transition: .18s; }
.icon-button:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .4); transform: translateY(-1px); }
.notification-button { position: relative; }
.notification-dot { position: absolute; width: 7px; height: 7px; border: 1.5px solid hsl(var(--surface)); border-radius: 50%; background: hsl(var(--danger)); top: 8px; right: 8px; }
.user-chip { display: flex; align-items: center; gap: 9px; margin-left: 5px; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; }
.user-chip span { font-size: 12px; font-weight: 700; }
.content { max-width: 1440px; margin: auto; padding: 34px 42px 48px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: hsl(var(--primary)); font-size: 11px; font-weight: 700; letter-spacing: .2px; margin-bottom: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--primary)); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 800 clamp(27px, 3vw, 36px)/1.15 var(--app-font-display); letter-spacing: -1.5px; }
.welcome-copy { color: var(--text-muted); margin: 0; font-size: 13px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 11px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text-muted); }
.date-pill strong { color: hsl(var(--foreground)); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 136px; padding: 18px 19px; border: 1px solid hsl(var(--border)); border-radius: 17px; background: hsl(var(--surface)); transition: transform .2s, box-shadow .2s, background .2s; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px hsl(var(--shadow) / .08); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: hsl(var(--mint)); color: hsl(var(--primary)); }
.metric-card:nth-child(2) .metric-icon { background: hsl(var(--accent-soft)); color: hsl(30 64% 43%); }
.metric-card:nth-child(3) .metric-icon { background: hsl(var(--lavender)); color: hsl(260 32% 48%); }
.metric-card:nth-child(4) .metric-icon { background: hsl(8 65% 94%); color: hsl(var(--danger)); }
.metric-value { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 4px; font: 800 27px var(--app-font-display); letter-spacing: -.9px; }
.metric-change { color: hsl(var(--primary)); font-size: 10px; font-family: var(--app-font-sans); font-weight: 700; letter-spacing: 0; }
.metric-caption { color: var(--text-muted); font-size: 10px; }
.metric-change { display: inline-flex; align-items: center; gap: 2px; }
.positive-down { color: hsl(var(--primary)); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .9fr); gap: 17px; margin-bottom: 17px; }
.panel { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 17px; min-width: 0; }
.panel-header { padding: 19px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-title { margin: 0; font: 700 14px var(--app-font-display); letter-spacing: -.2px; }
.panel-subtitle { margin: 5px 0 0; font-size: 10px; color: var(--text-muted); }
.period-select { border: 1px solid hsl(var(--border)); border-radius: 9px; background: hsl(var(--surface)); padding: 7px 9px; font-size: 10px; font-weight: 600; color: hsl(var(--foreground)); cursor: pointer; }
.chart-wrap { padding: 15px 20px 16px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 8px; font-size: 10px; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--primary)); }
.legend-swatch.secondary { background: hsl(var(--accent)); }
.chart { width: 100%; height: 181px; overflow: visible; }
.chart-label { fill: var(--text-muted); font: 10px var(--app-font-sans); }
.chart-grid { stroke: hsl(var(--border)); stroke-dasharray: 4 5; stroke-width: 1; }
.line-a { fill: none; stroke: hsl(var(--primary)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-b { fill: none; stroke: hsl(var(--accent)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.area-a { fill: url(#chartGradient); }
.chart-point { fill: hsl(var(--surface)); stroke: hsl(var(--primary)); stroke-width: 2.5; }
.activity-list { padding: 8px 19px 14px; }
.activity-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid hsl(var(--border)); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: hsl(var(--mint)); color: hsl(var(--primary)); flex: 0 0 auto; }
.activity-item:nth-child(2) .activity-icon { background: hsl(var(--lavender)); color: hsl(260 32% 48%); }
.activity-item:nth-child(3) .activity-icon { background: hsl(var(--accent-soft)); color: hsl(30 64% 43%); }
.activity-item:nth-child(4) .activity-icon { background: hsl(8 65% 94%); color: hsl(var(--danger)); }
.activity-text { flex: 1; min-width: 0; font-size: 10px; line-height: 1.5; }
.activity-text strong { font-weight: 700; }
.activity-text span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.activity-time { color: var(--text-muted); font-size: 9px; white-space: nowrap; padding-top: 2px; }
.plain-more { width: 29px; height: 29px; border: 0; background: transparent; }
.activity-all { display: flex; align-items: center; gap: 7px; margin: 0 20px; padding: 9px 0 0; border: 0; background: transparent; color: hsl(var(--primary)); font-size: 10px; font-weight: 700; cursor: pointer; }
.activity-all:hover { gap: 10px; }
.chart-summary { padding: 19px 20px 0; display: flex; align-items: baseline; gap: 8px; color: var(--text-muted); font-size: 10px; }
.chart-summary strong { color: hsl(var(--foreground)); font: 800 23px var(--app-font-display); letter-spacing: -.7px; }
.summary-change { display: inline-flex; align-items: center; gap: 2px; color: hsl(var(--primary)); font-weight: 700; }
.select-wrap { display: flex; align-items: center; position: relative; }
.select-wrap .period-select { appearance: none; padding-right: 27px; }
.select-wrap > svg { position: absolute; right: 9px; pointer-events: none; color: var(--text-muted); }
.nav-divider { height: 1px; background: hsl(var(--border)); margin: 19px 10px 18px; }
.workspace-glyph { font: 800 13px var(--app-font-display); color: hsl(28 62% 37%); }
.help-spark { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 10px; background: hsl(var(--surface) / .8); color: hsl(28 62% 37%); }
.help-orbit { position: absolute; width: 65px; height: 65px; right: -19px; top: -22px; border: 1px solid hsl(var(--accent) / .45); border-radius: 50%; }
.search-control { display: flex; align-items: center; gap: 6px; border: 1px solid hsl(var(--border)); border-radius: 9px; padding: 0 9px; min-width: 116px; color: var(--text-muted); }
.search-control:focus-within { border-color: hsl(var(--primary) / .65); }
.search-control input { width: 72px; padding: 7px 0; color: hsl(var(--foreground)); font-size: 10px; background: transparent; border: 0; outline: 0; }
.search-control input::placeholder { color: var(--text-muted); }
.table-control { position: relative; }
.table-control select { appearance: none; position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.row-more { display: grid; place-items: center; border: 0; padding: 3px; background: transparent; border-radius: 7px; color: var(--text-muted); cursor: pointer; }
.row-more:hover { background: hsl(var(--surface-soft)); color: hsl(var(--foreground)); }
.page-button:disabled { opacity: .4; cursor: not-allowed; }
.empty-state { min-height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--text-muted); }
.empty-state strong { color: hsl(var(--foreground)); font-size: 11px; }
.empty-state span { font-size: 10px; }
.quick-check { color: hsl(var(--primary)); }
.drawer-scrim { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .9fr); gap: 17px; }
.table-panel { overflow: hidden; }
.table-header { padding: 19px 20px 16px; display: flex; justify-content: space-between; align-items: center; }
.table-controls { display: flex; gap: 8px; }
.table-control { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid hsl(var(--border)); border-radius: 9px; background: hsl(var(--surface)); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; transition: .18s; }
.table-control:hover, .table-control.selected { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .45); background: hsl(var(--mint)); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 10px 20px; color: var(--text-muted); background: hsl(var(--background) / .65); font-size: 9px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.data-table td { padding: 12px 20px; border-top: 1px solid hsl(var(--border)); font-size: 10px; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: hsl(var(--background) / .65); }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell .avatar { width: 29px; height: 29px; border-radius: 10px; font-size: 9px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell strong { font-size: 10px; }
.person-cell small { color: var(--text-muted); font-size: 9px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 700; }
.status:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-active { color: hsl(var(--primary)); background: hsl(var(--mint)); }
.status-pending { color: hsl(29 71% 42%); background: hsl(var(--accent-soft)); }
.status-paused { color: var(--text-muted); background: hsl(var(--surface-soft)); }
.table-footer { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid hsl(var(--border)); color: var(--text-muted); font-size: 9px; }
.pagination { display: flex; gap: 5px; }
.page-button { min-width: 25px; height: 25px; border: 1px solid hsl(var(--border)); background: hsl(var(--surface)); border-radius: 7px; color: var(--text-muted); font-size: 9px; cursor: pointer; }
.page-button.active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.quick-panel { padding-bottom: 15px; }
.quick-list { padding: 13px 17px 0; display: grid; gap: 9px; }
.quick-item { display: flex; align-items: center; gap: 11px; border: 1px solid hsl(var(--border)); background: hsl(var(--surface)); border-radius: 12px; padding: 11px; text-align: left; cursor: pointer; transition: .18s; }
.quick-item:hover { border-color: hsl(var(--primary) / .45); background: hsl(var(--mint) / .55); transform: translateX(2px); }
.quick-icon { width: 32px; height: 32px; display: grid; place-items: center; background: hsl(var(--mint)); color: hsl(var(--primary)); border-radius: 10px; }
.quick-item:nth-child(2) .quick-icon { background: hsl(var(--lavender)); color: hsl(260 32% 48%); }
.quick-item:nth-child(3) .quick-icon { background: hsl(var(--accent-soft)); color: hsl(30 64% 43%); }
.quick-copy { flex: 1; }
.quick-copy strong, .quick-copy span { display: block; }
.quick-copy strong { font-size: 10px; }
.quick-copy span { font-size: 9px; color: var(--text-muted); margin-top: 3px; }
.quick-arrow { color: var(--text-muted); }
.dashboard-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--text-muted); font-size: 9px; }
.toast-message { position: fixed; z-index: 5; bottom: 24px; right: 24px; padding: 12px 16px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--surface)); box-shadow: 0 12px 32px hsl(var(--shadow) / .16); font-size: 12px; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .content { padding-left: 28px; padding-right: 28px; }
  .topbar { padding: 0 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .sidebar { display: flex; position: fixed; z-index: 11; inset: 0 auto 0 0; width: 270px; flex-basis: auto; transform: translateX(-102%); transition: transform .24s ease; box-shadow: 16px 0 45px hsl(var(--shadow) / .13); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .drawer-scrim { display: block; position: fixed; z-index: 10; inset: 0; background: hsl(var(--shadow) / .35); border: 0; }
  .mobile-menu { display: grid; }
  .content { padding: 25px 20px 36px; }
  .topbar { height: 65px; padding: 0 20px; }
  .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: auto; }
}
@media (max-width: 520px) {
  .content { padding: 22px 14px 30px; }
  .topbar { padding: 0 14px; }
  .welcome-row { display: block; margin-bottom: 22px; }
  .date-pill { margin-top: 16px; }
  .metrics { gap: 9px; }
  .metric-card { min-height: 126px; padding: 14px; }
  .metric-value { font-size: 23px; }
  .metric-top { font-size: 10px; }
  .panel-header, .table-header { padding-left: 15px; padding-right: 15px; }
  .chart-wrap { padding-left: 12px; padding-right: 12px; }
  .chart { height: 155px; }
  .breadcrumb { font-size: 10px; }
  .user-chip span { display: none; }
  .table-controls .table-control { padding: 7px; }
}
/* Reduced motion is an accessibility override for all template transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* OnePass — an editorial front door for curious minds */
.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 84% 17%, hsl(var(--accent-soft) / .82), transparent 32rem),
    hsl(var(--background));
}
.landing-wrap { width: min(1330px, calc(100% - 64px)); margin: auto; }
.landing-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid hsl(var(--border) / .75); }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: hsl(var(--foreground)); text-decoration: none; }
.landing-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-radius: 13px 13px 13px 5px; box-shadow: 0 5px 13px hsl(var(--primary) / .18); }
.landing-brand-name { font: 800 21px var(--app-font-display); letter-spacing: -1px; }
.landing-brand-name span { color: hsl(var(--primary)); }
.landing-nav { display: flex; align-items: center; gap: 26px; }
.landing-nav a { text-decoration: none; color: var(--text-muted); font-size: 13px; font-weight: 600; transition: color .18s; }
.landing-nav a:hover { color: hsl(var(--primary)); }
.landing-theme { width: 38px; height: 38px; display: grid; place-items: center; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); background: hsl(var(--surface) / .72); border-radius: 50%; cursor: pointer; transition: transform .2s, background .2s; }
.landing-theme:hover { transform: rotate(-10deg); background: hsl(var(--surface)); }
.landing-hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr); align-items: center; gap: clamp(38px, 8vw, 118px); padding: 72px 0 86px; }
.landing-hero > * { min-width: 0; }
.hero-copy { position: relative; z-index: 1; min-width: 0; padding-bottom: 14px; animation: landing-in .7s both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; margin-bottom: 24px; border: 1px solid hsl(var(--primary) / .18); border-radius: 999px; background: hsl(var(--mint) / .68); color: hsl(var(--primary)); font-size: 11px; font-weight: 700; letter-spacing: .045em; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--primary) / .1); }
.hero-copy h1 { max-width: 700px; margin: 0 0 22px; font: 800 clamp(48px, 6.2vw, 82px)/.99 var(--app-font-display); letter-spacing: -.075em; }
.hero-copy h1 em { color: hsl(var(--primary)); font-style: normal; }
.hero-copy > p { max-width: 490px; margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.research-form { width: 100%; display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 33px; padding: 8px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 18px; box-shadow: 0 13px 38px hsl(var(--shadow) / .08); transition: border-color .2s, box-shadow .2s; }
.research-form:focus-within { border-color: hsl(var(--primary) / .55); box-shadow: 0 14px 42px hsl(var(--shadow) / .12); }
.research-input-icon { flex: 0 0 auto; margin-left: 8px; color: hsl(var(--primary)); }
.research-form input { min-width: 0; flex: 1; height: 45px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: hsl(var(--foreground)); font-size: 14px; }
.research-form input::placeholder { color: var(--text-muted); }
.research-submit { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 12px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .18s, background .18s; }
.research-submit:hover { transform: translateY(-2px); background: hsl(var(--primary) / .88); }
.outside-note { display: flex; align-items: center; gap: 7px; margin: 12px 4px 0; color: var(--text-muted); font-size: 11px; }
.outside-note svg { color: hsl(var(--primary)); }
.search-error { margin: 9px 4px 0; color: hsl(var(--danger)); font-size: 12px; }
.hero-aside { position: relative; display: grid; justify-items: end; animation: landing-in .75s .1s both; }
.research-art { position: absolute; width: min(520px, 110%); height: 420px; right: -29px; top: 50%; transform: translateY(-54%); pointer-events: none; }
.art-orbit { position: absolute; border: 1px solid hsl(var(--primary) / .15); border-radius: 50%; }
.art-orbit.one { width: 390px; height: 390px; top: 12px; right: 30px; }
.art-orbit.two { width: 300px; height: 300px; top: 58px; right: 76px; border-style: dashed; }
.art-disc { position: absolute; width: 220px; height: 220px; top: 96px; right: 116px; border-radius: 50%; background: hsl(var(--mint)); opacity: .68; }
.art-star { position: absolute; color: hsl(var(--accent)); }
.art-star.a { right: 26px; top: 63px; transform: rotate(16deg); }
.art-star.b { left: 57px; bottom: 56px; color: hsl(var(--primary)); }
.art-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: hsl(var(--accent)); top: 84px; left: 110px; box-shadow: 0 0 0 7px hsl(var(--accent) / .15); }
.art-line { position: absolute; width: 102px; height: 1px; background: hsl(var(--primary) / .25); right: 5px; bottom: 91px; transform: rotate(-34deg); }
.login-card { position: relative; z-index: 1; width: min(100%, 390px); margin-top: 2px; padding: 28px; border: 1px solid hsl(var(--border) / .86); border-radius: 23px; background: hsl(var(--surface) / .91); box-shadow: 0 22px 60px hsl(var(--shadow) / .12); backdrop-filter: blur(14px); }
.login-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.workspace-label { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.workspace-label span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: hsl(var(--accent-soft)); color: hsl(29 62% 38%); }
.preview-label { display: flex; align-items: center; gap: 5px; color: hsl(var(--primary)); font-size: 10px; font-weight: 700; }
.login-card h2 { margin: 0 0 6px; font: 800 24px var(--app-font-display); letter-spacing: -.8px; }
.login-intro { margin: 0 0 22px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.login-fields { display: grid; gap: 14px; }
.login-fields label { display: grid; gap: 7px; color: hsl(var(--foreground)); font-size: 11px; font-weight: 700; }
.login-fields input { width: 100%; height: 43px; padding: 0 12px; color: hsl(var(--foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 10px; font-size: 12px; }
.login-fields input::placeholder { color: var(--text-muted); }
.login-submit { width: 100%; min-height: 44px; margin-top: 18px; border: 0; border-radius: 11px; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s, opacity .18s; }
.login-submit:hover { transform: translateY(-1px); opacity: .88; }
.login-message { margin: 12px 0 0; padding: 10px 11px; border-radius: 9px; background: hsl(var(--accent-soft)); color: hsl(var(--foreground)); font-size: 11px; line-height: 1.5; }
.login-footnote { margin: 15px 0 0; color: var(--text-muted); text-align: center; font-size: 10px; line-height: 1.5; }
.login-footnote a { color: hsl(var(--primary)); font-weight: 700; text-decoration: none; }
.trust-row { display: flex; align-items: center; gap: 18px; margin-top: 29px; color: var(--text-muted); font-size: 10px; font-weight: 600; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; }
.trust-item svg { color: hsl(var(--primary)); }
.landing-section { padding: 74px 0; border-top: 1px solid hsl(var(--border) / .75); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.section-kicker { margin: 0 0 11px; color: hsl(var(--primary)); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2 { max-width: 580px; margin: 0; font: 800 clamp(30px, 4vw, 46px)/1.08 var(--app-font-display); letter-spacing: -.055em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.steps-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px; }
.steps-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 20px; background: hsl(var(--border)); }
.step { min-height: 220px; padding: 23px 20px; background: hsl(var(--surface)); }
.step-number { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: hsl(var(--mint)); color: hsl(var(--primary)); font: 800 11px var(--app-font-display); }
.step h3 { margin: 27px 0 9px; font: 700 15px var(--app-font-display); letter-spacing: -.3px; }
.step p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.note-panel { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; overflow: hidden; border-radius: 20px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.note-panel:after { content: ''; position: absolute; width: 205px; height: 205px; right: -59px; bottom: -112px; border: 1px solid hsl(var(--primary-foreground) / .24); border-radius: 50%; box-shadow: 0 0 0 22px hsl(var(--primary-foreground) / .06), 0 0 0 45px hsl(var(--primary-foreground) / .05); }
.note-mark { opacity: .75; }
.note-panel blockquote { position: relative; z-index: 1; max-width: 310px; margin: 0; font: 600 21px/1.3 var(--app-font-display); letter-spacing: -.6px; }
.note-panel p { margin: 13px 0 0; color: hsl(var(--primary-foreground) / .72); font-size: 10px; }
.landing-footer { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid hsl(var(--border) / .75); color: var(--text-muted); font-size: 10px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: hsl(var(--primary)); }
@keyframes landing-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .landing-wrap { width: min(100% - 42px, 700px); }
  .landing-hero { grid-template-columns: 1fr; gap: 54px; padding-top: 67px; }
  .hero-aside { justify-items: center; }
  .research-art { right: 50%; transform: translate(50%, -54%); }
  .login-card { width: min(100%, 470px); }
  .steps-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing-wrap { width: calc(100% - 34px); }
  .landing-header { min-height: 70px; }
  .landing-nav { gap: 13px; }
  .landing-nav a { font-size: 11px; }
  .landing-nav a:first-child { display: none; }
  .landing-theme { width: 34px; height: 34px; }
  .landing-hero { min-height: unset; padding: 54px 0 57px; gap: 48px; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-copy > p { font-size: 14px; }
  .research-form { gap: 5px; padding: 6px; border-radius: 15px; }
  .research-form input { font-size: 12px; }
  .research-submit { min-height: 42px; padding: 0 12px; font-size: 11px; }
  .research-submit span { display: none; }
  .trust-row { flex-wrap: wrap; gap: 11px 17px; font-size: 9px; }
  .research-art { width: 390px; height: 350px; }
  .art-orbit.one { width: 315px; height: 315px; right: 37px; top: 16px; }
  .art-orbit.two { width: 240px; height: 240px; right: 74px; top: 54px; }
  .art-disc { width: 178px; height: 178px; right: 105px; top: 85px; }
  .login-card { padding: 22px; border-radius: 19px; }
  .landing-section { padding: 57px 0; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 13px; }
  .section-heading > p { font-size: 12px; }
  .steps-panel { grid-template-columns: 1fr; }
  .step { min-height: auto; padding: 18px; }
  .step h3 { margin-top: 17px; }
  .note-panel { min-height: 195px; }
  .landing-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}

/* Search is the product; workspace access stays deliberately secondary. */
.landing-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(34px, 5vw, 76px);
}
.hero-copy h1 em { white-space: nowrap; }
.research-form {
  display: block;
  max-width: 700px;
  margin-top: 29px;
  padding: 15px 17px 13px;
  border-radius: 21px;
  box-shadow: 0 20px 54px hsl(var(--shadow) / .12);
}
.composer-topline, .composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-topline { padding: 0 1px 11px; border-bottom: 1px solid hsl(var(--border) / .78); }
.composer-context { display: inline-flex; align-items: center; gap: 8px; color: hsl(var(--primary)); font-size: 11px; font-weight: 700; }
.composer-hint { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.research-form textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: none;
  padding: 16px 2px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: hsl(var(--foreground));
  font: 500 18px/1.55 var(--app-font-sans);
}
.research-form textarea::placeholder { color: var(--text-muted); }
.composer-footer { padding-top: 12px; border-top: 1px solid hsl(var(--border) / .78); }
.composer-footnote { color: var(--text-muted); font-size: 10px; }
.research-submit { min-height: 44px; padding: 0 16px; }
.starter-prompts { max-width: 700px; margin: 14px 3px 0; }
.starter-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 10px; font-weight: 700; }
.starter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.starter-list button {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--surface) / .66);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.starter-list button:hover { transform: translateY(-1px); color: hsl(var(--primary)); border-color: hsl(var(--primary) / .45); background: hsl(var(--mint) / .7); }
.hero-aside { justify-items: center; }
.login-card {
  width: min(100%, 325px);
  padding: 21px;
  border-radius: 19px;
  box-shadow: 0 12px 32px hsl(var(--shadow) / .08);
}
.login-card-top { margin-bottom: 16px; }
.login-card h2 { font-size: 20px; }
.login-intro { margin-bottom: 15px; font-size: 11px; }
.login-fields { gap: 10px; }
.login-fields input { height: 38px; }
.login-submit { min-height: 40px; margin-top: 13px; }
.login-footnote { margin-top: 11px; }
.research-art { opacity: .58; }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { width: 100%; }
  .research-form, .starter-prompts { max-width: none; }
  .hero-aside { justify-items: start; }
  .research-art { right: 0; }
  .login-card { width: min(100%, 360px); }
}
@media (max-width: 600px) {
  .landing-wrap { width: calc(100% - 32px); }
  .landing-hero { gap: 30px; padding: 42px 0 46px; }
  .hero-copy h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .hero-copy h1 em { white-space: nowrap; }
  .hero-kicker { margin-bottom: 18px; font-size: 9px; }
  .hero-copy > p { max-width: 100%; font-size: 13px; }
  .research-form { margin-top: 22px; padding: 12px; border-radius: 17px; }
  .composer-topline { padding-bottom: 9px; }
  .composer-context { font-size: 10px; }
  .composer-hint { font-size: 8px; }
  .research-form textarea { min-height: 112px; padding: 13px 1px; font-size: 15px; }
  .composer-footer { align-items: flex-end; }
  .composer-footnote { max-width: 125px; font-size: 9px; line-height: 1.45; }
  .research-submit { min-height: 43px; padding: 0 12px; font-size: 10px; }
  .research-submit span { display: inline; }
  .starter-prompts { margin-top: 12px; }
  .starter-list { display: grid; grid-template-columns: 1fr; }
  .starter-list button { width: 100%; justify-content: space-between; }
  .outside-note { align-items: flex-start; font-size: 10px; line-height: 1.45; }
  .trust-row { margin-top: 17px; }
  .hero-aside { justify-items: end; }
  .research-art { display: none; }
  .login-card { width: min(100%, 100%); padding: 18px; }
  .login-card-top { margin-bottom: 12px; }
  .login-fields { grid-template-columns: 1fr 1fr; gap: 9px; }
  .login-fields label { min-width: 0; font-size: 10px; }
  .login-fields input { padding: 0 8px; font-size: 11px; }
  .landing-section { padding: 48px 0; }
}
/* QuellPass components retain their behavior and consume the template tokens. */
:root {
  --paper: hsl(var(--background)); --ink: hsl(var(--foreground)); --line: hsl(var(--border));
  --brand: hsl(var(--primary)); --brand-hover: hsl(157 42% 27%); --on-brand: hsl(var(--primary-foreground));
  --text-muted: hsl(153 12% 36%); --danger-text: hsl(5 62% 40%); --warning: hsl(29 71% 32%);
  --focus: hsl(157 42% 30%); --radius: 11px;
  --thumb: hsl(153 12% 57%); --track: hsl(var(--surface-soft)); --thumb-hover: hsl(153 18% 43%); --thumb-active: hsl(var(--primary));
  --z-skip: 100; --z-menu: 600;
  font-size: 16px; line-height: 1.55;
}
.dark { --brand-hover: hsl(151 39% 69%); --text-muted: hsl(152 11% 72%); --danger-text: hsl(5 65% 73%); --warning: hsl(34 75% 73%); --focus: hsl(151 39% 69%); --thumb: hsl(152 11% 51%); --thumb-hover: hsl(152 11% 66%); }
html { scrollbar-gutter: stable; scroll-padding-top: 20px; }
* { scrollbar-width: thin; scrollbar-color: var(--thumb) var(--track); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--track); }
*::-webkit-scrollbar-thumb { background: var(--thumb); border: 2px solid var(--track); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--thumb-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--thumb-active); }
/* Hidden is state, independent of component layout selectors. */
[hidden] { display: none !important; }
body { font-size: 14px; }
button, input, textarea, select { font: inherit; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, a, summary, select, input[type=checkbox], input[type=radio] { cursor: pointer; }
button { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 15px; background: hsl(var(--surface)); transition: background .15s, border-color .15s; }
button:hover { background: hsl(var(--surface-soft)); border-color: hsl(var(--primary) / .5); }
button:active { background: hsl(var(--mint)); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:focus { scroll-margin-block: 24px; }
.quiet { background: transparent; border-color: transparent; font-size: 13px; font-weight: 600; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 700; }
.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.danger { color: var(--danger-text); background: transparent; border-color: hsl(var(--danger) / .4); }
.danger:hover { color: var(--danger-text); background: hsl(var(--danger) / .1); border-color: var(--danger-text); }
.dialog-actions .danger { background: var(--danger-text); color: hsl(var(--surface)); border-color: var(--danger-text); }
#sidebar-home { flex: 0 0 250px; }
.sidebar { position: sticky; top: 0; min-height: 100vh; max-height: 100vh; overflow-y: auto; }
.brand { color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.sidebar-brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sidebar-brand-row .brand { padding-left: 10px; }
.workspace-switch { cursor: default; }
.workspace-icon { color: var(--warning); }
.nav-item { min-height: 44px; text-decoration: none; }
.nav-item svg { flex-shrink: 0; }
.nav-item[aria-current=page] { background: hsl(var(--mint)); color: var(--brand); }
.nav-divider { height: 1px; background: var(--line); margin: 19px 10px 18px; }
.nav-label { font-size: 11px; }
.workspace-copy small, .profile-copy span, .help-card p, .help-link { font-size: 12px; }
.help-card { margin-top: 32px; }
.help-card p { max-width: 170px; }
.help-link { position: relative; z-index: 1; }
.profile .avatar { background: hsl(var(--mint)); color: var(--brand); }
.topbar { gap: 16px; }
.breadcrumb { flex-wrap: wrap; }
.icon-button { min-height: 44px; width: 44px; padding: 9px; }
.theme-moon, .theme-sun { display: grid; place-items: center; }
.theme-sun, .dark .theme-moon { display: none; }
.dark .theme-sun { display: grid; }
#menu-close { display: none; }
.content { min-width: 0; }
.welcome-row { margin-bottom: 28px; }
.welcome-copy { font-size: 14px; }
.eyebrow { margin: 0 0 10px; }
h2 { font: 700 18px/1.35 var(--app-font-display); letter-spacing: -.35px; }
h3 { font: 700 17px/1.4 var(--app-font-display); }
p { margin-bottom: 16px; }
#connection { margin-bottom: 24px; }
.workspace-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 1.1fr); gap: 17px; align-items: start; }
.input-pane, .result-pane { padding: 24px; }
.result-pane { min-height: 570px; min-width: 0; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: -4px 0 22px; }
.tabs button { flex: 1; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 10px 10px 14px; font-weight: 700; }
.tabs button:hover { background: hsl(var(--surface-soft)); }
.tabs button[aria-selected=true] { color: var(--brand); border-color: var(--brand); }
label, legend { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
input:not([type=radio]):not([type=checkbox]), textarea, select { width: 100%; min-width: 0; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 12px; background: hsl(var(--surface)); color: var(--ink); }
input:not([type=radio]):not([type=checkbox]), select { min-height: 46px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
textarea { resize: none; min-height: 112px; max-height: 520px; overflow-y: auto; line-height: 1.6; }
.resize-none { resize: none; }
fieldset { padding: 0; border: 0; margin: 22px 0; }
fieldset legend { margin-bottom: 12px; }
.choice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 8px; cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { background: hsl(var(--mint)); border-color: var(--brand); }
.choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.choice input { accent-color: var(--brand); margin: 5px 0 0; flex: 0 0 16px; }
.choice strong { font-size: 13px; }
.choice small { display: block; color: var(--text-muted); font-weight: 400; margin-top: 3px; line-height: 1.5; }
.hint { font-size: 12px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 16px; overflow-wrap: anywhere; }
.privacy { border-top: 1px solid var(--line); padding-top: 14px; }
.error { color: var(--danger-text); font-size: 13px; margin: 8px 0; min-height: 20px; }
.error:empty { min-height: 12px; margin: 0; }
[aria-invalid=true] { border-color: var(--danger-text); }
.notice { padding: 12px 16px; border: 1px solid hsl(var(--accent) / .65); border-radius: var(--radius); font-size: 13px; color: var(--warning); background: hsl(var(--accent-soft)); overflow-wrap: anywhere; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; min-height: 44px; }
.section-heading h2 { margin: 0; font: 700 18px/1.35 var(--app-font-display); letter-spacing: -.35px; }
.research-form { margin: 0 0 16px; width: 100%; box-shadow: 0 12px 32px hsl(var(--shadow) / .06); }
.research-form textarea { resize: none; min-height: 132px; font: 500 17px/1.55 var(--app-font-sans); max-height: 420px; }
.research-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.composer-context { font-size: 12px; }
.search-field { text-align: right; }
.search-field textarea { text-align: left; }
.search-field .quiet { min-height: 36px; padding: 5px 8px; }
#submit { width: 100%; min-height: 48px; }
.empty { max-width: 355px; margin: 80px auto 45px; text-align: center; color: var(--text-muted); }
.empty h3 { color: var(--ink); font-size: 22px; }
.document-symbol { display: inline-grid; place-items: center; width: 50px; height: 60px; border: 1px solid var(--line); border-radius: 13px; background: hsl(var(--mint)); color: var(--brand); font-size: 35px; margin-bottom: 22px; transform: rotate(-5deg); }
.progress { border-left: 3px solid var(--brand); padding: 12px 16px; background: hsl(var(--mint)); margin-bottom: 20px; }
.progress p { margin: 0; }
.result-summary { font: 700 21px/1.45 var(--app-font-display); }
.finding { border-top: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.finding h3 { font-size: 15px; margin-bottom: 8px; }
.finding blockquote { margin: 12px 0; padding: 12px 16px; border-left: 2px solid var(--brand); background: hsl(var(--surface-soft)); white-space: pre-wrap; }
.status-label { display: inline-block; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.status-label.open { color: var(--warning); }
.status-label.contradicted { color: var(--danger-text); }
.status-label.not_factual { color: var(--text-muted); }
details { font-size: 13px; margin: 12px 0; }
summary { padding: 10px 0; font-weight: 600; }
summary:hover { color: var(--brand); }
details pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-height: 320px; overflow: auto; padding: 12px; background: hsl(var(--surface-soft)); }
details label { margin-top: 14px; }
.meta { color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.history, .settings-panel { margin-top: 0; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: hsl(var(--surface)); }
.job-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.job-row .job-open { flex: 1; min-width: 0; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
.job-row small { color: var(--text-muted); }
.catalog-options { background: hsl(var(--background)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.catalog-options fieldset { margin: 18px 0 12px; }
.catalog-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.catalog-profiles label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; line-height: 1.4; margin: 0; }
.catalog-profiles input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--brand); }
.catalog-result h3 { margin-bottom: 4px; }
.catalog-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.catalog-links p { flex-basis: 100%; margin: 0; }
.article-workspace > select { max-width: 700px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; }
.editor-toolbar select { width: auto; min-width: 150px; }
.editor-toolbar button { font-size: 13px; padding: 8px 12px; }
.editor-toolbar button[aria-pressed=true] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
#article-editor { min-height: 280px; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--surface)); }
#article-editor .ql-editor { min-height: 280px; max-height: 650px; overflow: auto; font: 16px/1.8 var(--app-font-sans); white-space: pre-wrap; overflow-wrap: anywhere; padding: 26px; }
#article-editor .ql-editor h1 { font-size: 30px; } #article-editor .ql-editor h2 { font-size: 25px; } #article-editor .ql-editor h3 { font-size: 21px; }
#article-editor .ql-editor blockquote { border-left: 3px solid var(--brand); padding-left: 16px; margin: 12px 0; }
#article-editor .ql-editor:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-source { display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.article-source input { width: auto; margin-top: 5px; flex-shrink: 0; }
.article-versions { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.article-versions select { width: auto; max-width: 100%; }
#article-conflict-text { max-height: 250px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
#download { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; border-radius: var(--radius); }
#download:hover { background: hsl(var(--mint)); }
.graph-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 16px 0; }
.graph-controls label { margin: 0; }
.graph-controls input, .graph-controls select { width: auto; min-width: 160px; flex: 1; }
.graph-zoom { display: flex; gap: 4px; }
.graph-zoom button { min-width: 44px; padding: 6px 10px; }
.graph-chart { cursor: grab; max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: hsl(var(--surface)); }
.graph-chart:active { cursor: grabbing; }
.graph-chart svg { display: block; max-width: none; font-family: var(--app-font-sans); }
.graph-column { fill: var(--text-muted); font-size: 13px; font-weight: 600; }
.graph-edge { stroke: var(--brand); stroke-width: 1.5; opacity: .65; }
.graph-node { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.graph-label { fill: var(--ink); font-size: 13px; }
.graph-hit { cursor: pointer; }
.graph-list, .graph-detail { overflow-wrap: anywhere; }
.graph-list button { text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.graph-list h3 { margin-top: 20px; font-size: 15px; }
.graph-list li { margin: 8px 0; }
.graph-detail { border-top: 1px solid var(--line); padding-top: 16px; }
.graph-detail-name { font-weight: 600; }
.graph-list .hint { margin: 4px 0 12px; }
.passkey-add-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.passkey-add-row > div { flex: 1; min-width: 180px; }
#passkey-list { overflow-wrap: anywhere; list-style: none; margin: 0; padding: 0; }
#passkey-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#passkey-list > li > span { min-width: 0; }
#passkey-list > li > button { flex-shrink: 0; }
#workspace-admin { margin-top: 22px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.article-workspace .dialog-actions { justify-content: flex-start; }
.dashboard-note { font-size: 11px; margin-top: 24px; }
.skip { position: absolute; left: 12px; top: -100px; padding: 10px; background: hsl(var(--surface)); z-index: var(--z-skip); }
.skip:focus { top: 10px; }
dialog { max-width: 480px; max-height: calc(100dvh - 32px); width: calc(100% - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: hsl(var(--surface)); color: var(--ink); }
dialog::backdrop { background: hsl(var(--shadow) / .55); }
dialog h2 { font-size: 22px; margin-bottom: 16px; }
.navigation-dialog { padding: 0; margin: 0; width: min(300px, calc(100% - 32px)); height: 100dvh; max-height: 100dvh; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.navigation-dialog .sidebar { width: 100%; position: static; transform: none; min-height: 100dvh; max-height: none; box-shadow: none; }
.navigation-dialog #menu-close { display: grid; }
.navigation-dialog .brand { margin-bottom: 30px; }
.login-page { background: radial-gradient(ellipse at 84% 17%, hsl(var(--accent-soft) / .82), transparent 32rem), hsl(var(--background)); }
.login-layout { min-height: calc(100dvh - 190px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: 60px; padding: 70px 0 90px; }
.login-layout .hero-copy h1 { font-size: clamp(40px, 5.3vw, 70px); }
.login-layout .hero-copy h1 em { white-space: normal; }
.login-layout .login-card { width: 100%; max-width: 400px; justify-self: end; padding: 28px; }
.login-card .workspace-label { margin-bottom: 22px; font-size: 12px; }
.login-card h2 { font-size: 24px; }
.login-intro { font-size: 14px; }
.login-submit { margin-top: 8px; min-height: 48px; font-size: 14px; }
.login-submit:hover { border-color: var(--ink); }
.login-setup-link { display: inline-flex; align-items: center; padding: 10px 0; font-size: 12px; }
#setup-form { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
#setup-form label { margin-top: 15px; }
#setup-form .primary { width: 100%; margin-top: 18px; }
.secret { display: flex; gap: 6px; }
.secret input { flex: 1; min-width: 0; }
.secret button { flex-shrink: 0; }
.session-lock { max-width: 460px; margin: 60px auto; padding: 24px; }
.session-lock > .brand { justify-content: center; margin-bottom: 35px; }
.session-lock .login-card { width: 100%; max-width: none; padding: 28px; }
.session-lock h1 { font-size: 26px; letter-spacing: -.8px; }
@media (max-width: 1200px) { .workspace-grid { grid-template-columns: 1fr; } .result-pane { min-height: 360px; } .empty { margin: 40px auto; } }
@media (max-width: 1100px) { #sidebar-home { flex-basis: 220px; } }
@media (max-width: 800px) { #sidebar-home { display: none; } .navigation-dialog .sidebar { display: flex; } .login-layout { grid-template-columns: 1fr; gap: 38px; padding: 45px 0; } .login-layout .login-card { justify-self: start; max-width: 500px; } .login-layout .hero-copy h1 { font-size: clamp(40px, 8vw, 62px); } }
@media (max-width: 600px) { .input-pane, .result-pane, .history, .settings-panel { padding: 18px; } .section-heading { flex-wrap: wrap; align-items: flex-start; } .section-heading h2 { font-size: 18px; margin: 0; } .job-row { flex-wrap: wrap; } .job-row .job-open { flex-basis: calc(100% - 72px); } .catalog-profiles { grid-template-columns: 1fr; } .article-versions { display: block; } .article-versions select { width: 100%; } #article-editor .ql-editor { padding: 18px; } .graph-controls input, .graph-controls select { min-width: 100%; } .graph-chart { max-height: 320px; } .dashboard-note { flex-direction: column; gap: 4px; } .topbar { gap: 8px; } .top-actions { gap: 4px; } .breadcrumb > span:first-child, .breadcrumb > span:nth-child(2) { display: none; } .login-layout .trust-row { font-size: 11px; } }
/* System colors take precedence for high-contrast accessibility. */
@media (forced-colors: active) { * { scrollbar-color: auto; } .nav-item[aria-current=page], .tabs button[aria-selected=true], .choice:has(input:checked) { outline: 2px solid Highlight; } }
