@charset "UTF-8";
:root {
  color-scheme: dark;
  --page: #0d0f14;
  --sidebar: #101218;
  --surface: #151820;
  --raised: #1b1f29;
  --hover: #1a1e27;
  --ink: #edf0f7;
  --body: #c0c7d5;
  --muted: #969fb0;
  --line: #2a2e3a;
  --line-strong: #454d60;
  --accent: #a5b9ff;
  --accent-wash: #242d49;
  --green: #83d9bb;
  --amber: #e6c384;
  --red: #f19a9f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--body); font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #d0daff; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .4; }
input, select, textarea { color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-width: 0; }
input::placeholder, textarea::placeholder { color: #7f8899; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
h1, h2, h3 { font-weight: 600; line-height: 1.45; }
h1 { font-size: 28px; letter-spacing: -.6px; }
h2 { font-size: 19px; }
h3 { font-size: 14px; }
p, dd { overflow-wrap: anywhere; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; stroke-width: 1.6; flex-shrink: 0; vertical-align: middle; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.mono, code, pre { font-family: "Cascadia Code", Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 120; padding: 12px 18px; background: var(--accent); color: #11182d; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); padding: 8px 14px; color: var(--ink); font-weight: 500; line-height: 1.4; transition: background .16s, border-color .16s; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #252b37; border-color: #69748a; color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #111a33; }
.button.primary:hover:not(:disabled) { background: #bfd0ff; color: #111a33; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover { color: var(--ink); }
.button.small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button.danger { color: var(--red); border-color: #704047; background: #321f25; }
.button.full { width: 100%; }
.icon-button { width: 36px; height: 36px; padding: 8px; background: transparent; border-color: transparent; }
.button-row, .controls, .heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.6; }
.badge.teal { background: #172c27; border-color: #2b4c40; color: var(--green); }
.badge.amber { background: #2c261c; border-color: #4e412c; color: var(--amber); }
.badge.red { background: #302026; border-color: #59343e; color: var(--red); }
.badge.blue { background: #202a40; border-color: #344564; color: #a6c3f8; }
.count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.app-shell { padding-left: 212px; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 212px; padding: 29px 16px 23px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 0 9px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #3a4561; color: #b5c6ff; border-radius: 10px; background: #21283b; }
.brand-mark .icon { width: 19px; height: 19px; }
.brand-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.brand-subtitle { margin-top: 2px; font-size: 9px; color: var(--muted); letter-spacing: 1.5px; }
.nav-label { font-size: 10px; color: #798397; letter-spacing: 1px; padding: 0 13px; margin: 47px 0 12px; }
.nav-list { display: flex; flex-direction: column; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 10px 13px; color: var(--muted); border-radius: 8px; font-size: 13px; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.active { background: var(--accent-wash); color: #d0daff; }
.nav-count { margin-left: auto; color: #bbc8ef; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 30px 9px 0; }
.workspace-card { border-top: 1px solid var(--line); padding-top: 18px; }
.dot-label { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7f899b; flex-shrink: 0; }
.status-dot.good { background: var(--accent); }
.workspace-card p { color: #798397; font-size: 10px; margin: 5px 0 0 14px; }
.sidebar-footer { font-size: 10px; color: #798397; margin-top: 22px; }
.topbar { height: 72px; padding: 0 44px; border-bottom: 1px solid #20242e; display: flex; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: #7f899b; font-size: 12px; }
.breadcrumb strong { font-weight: 500; color: var(--body); }
.topbar-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.account { position: relative; margin-left: 7px; }
.account>summary { display: flex; align-items: center; gap: 7px; }
.account .icon { width: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #283044; color: #bfcefc; font-size: 11px; flex-shrink: 0; }
.account-popover { position: absolute; z-index: 20; top: 44px; right: 0; width: 220px; padding: 18px; border: 1px solid var(--line-strong); background: var(--raised); box-shadow: 0 12px 32px #0006; border-radius: 12px; }
.account-popover p { font-size: 11px; margin: 8px 0 12px; color: var(--muted); }
.main-content { width: 100%; max-width: 1200px; padding: 34px 44px 22px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 13px; margin-top: 6px; }
.overview-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.overview-strip>div { display: flex; gap: 9px; align-items: center; }
.strip-divider { width: 1px; height: 11px; background: var(--line-strong); margin: 0 3px; }
.project-list { display: flex; flex-direction: column; gap: 13px; }
.project-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.project-row:hover { border-color: #414a5d; }
.project-row[open] { border-color: #55668f; }
.project-row-heading { padding: 19px 23px 17px; transition: background .16s; }
.project-row-heading:hover { background: var(--hover); }
.project-row-heading:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.project-row-top { display: flex; align-items: center; gap: 13px; }
.project-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.project-website { white-space: nowrap; }
.project-website .icon { width: 13px; height: 13px; }
.project-number { font: 11px "Cascadia Code", Consolas, monospace; color: #7e899f; letter-spacing: 1px; }
.project-icon { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #aabff9; background: #222b40; flex-shrink: 0; }
.project-icon.blue { color: #90c3e6; background: #1c2d3b; }
.project-icon.sand { color: #d7bb91; background: #302a21; }
.project-icon.slate { color: #b4adc9; background: #292736; }
.project-identity { min-width: 0; flex: 1; }
.project-identity h2 { font-size: 16px; font-weight: 600; }
.project-category { color: #929db0; font-size: 9px; letter-spacing: 1.25px; }
.project-row-actions>.badge { max-width: 230px; }
.expand-icon { color: var(--muted); display: inline-flex; margin-left: 4px; }
.expand-icon .icon { width: 16px; transition: transform .16s; }
.project-row[open]>.project-row-heading .expand-icon .icon { transform: rotate(90deg); color: var(--accent); }
.row-summary { margin: 13px 0 12px 71px; font-size: 12px; color: #b1bacb; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 13px; margin-left: 71px; font-size: 10px; }
.row-next { min-width: 0; flex: 1; display: flex; gap: 9px; align-items: baseline; }
.row-next>.muted { flex-shrink: 0; color: #939eb1; }
.row-next>span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--body); }
.row-meta>.badge { flex-shrink: 0; font-size: 10px; padding: 1px 6px; }
.row-source { color: var(--muted); flex-shrink: 0; font-size: 10px; }
.project-expanded { border-top: 1px solid var(--line); padding: 23px; background: #12151c; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.detail-label { color: var(--muted); font-size: 11px; margin-right: auto; }
.detail-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.detail-status { padding: 15px; min-width: 0; border-left: 1px solid var(--line); }
.detail-status:first-child { border-left: 0; }
.detail-status-label { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.detail-status p { font-size: 12px; color: var(--body); line-height: 1.8; white-space: pre-wrap; }
.detail-copy { margin: 24px 0; font-size: 13px; line-height: 1.9; }
.detail-copy>h3 { margin-bottom: 8px; }
.detail-copy p, .next-grid p { white-space: pre-wrap; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.next-grid h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 7px; }
.next-grid h3 .icon { width: 14px; color: var(--accent); }
.next-grid p { font-size: 12px; }
.detail-disclosure { border-top: 1px solid var(--line); }
.detail-disclosure>summary { display: flex; align-items: center; gap: 9px; min-height: 50px; color: var(--body); font-size: 12px; font-weight: 500; }
.detail-disclosure>summary>.icon, .weekly-context>summary>.icon { width: 13px; color: var(--muted); }
.detail-disclosure[open]>summary>.icon, .weekly-context[open]>summary>.icon { transform: rotate(90deg); }
.detail-disclosure .count { margin-left: 3px; }
.disclosure-content { padding-bottom: 18px; }
.section-action { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.detail-provenance { border-top: 1px solid var(--line); padding-top: 16px; font-size: 10px; color: var(--muted); }
.empty-inline { color: var(--muted); font-size: 12px; padding: 12px 0; }
.source-footnote { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--muted); margin-top: 20px; line-height: 1.8; }
.source-footnote .icon { width: 13px; height: 17px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #232733; color: #828da2; margin-top: 28px; padding-top: 16px; font-size: 9px; letter-spacing: .8px; }
.stack, .instances-list { display: flex; flex-direction: column; gap: 12px; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 18px 0; }
.section-heading h2 { font-size: 15px; }
.section-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.panel, .note-card, .instance-card { background: var(--surface); border: 1px solid var(--line); padding: 19px; border-radius: 10px; }
.note-meta, .note-actions, .instance-card-top, .instance-footer, .record-meta { display: flex; align-items: center; gap: 9px; justify-content: space-between; flex-wrap: wrap; }
.note-meta, .note-actions { font-size: 10px; color: var(--muted); }
.note-author { display: flex; align-items: center; gap: 9px; }
.note-author time { display: block; font-size: 10px; color: var(--muted); }
.note-text { white-space: pre-wrap; line-height: 1.9; margin: 15px 0; font-size: 13px; }
.note-actions .version { margin-right: auto; }
.note-actions .button { font-size: 11px; }
.history-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.history-item:last-child { border: 0; }
.history-item p { margin: 8px 0; font-size: 12px; white-space: pre-wrap; }
.history-item h3 { font-size: 12px; }
.history-item time, .history-item .muted { color: var(--muted); font-size: 10px; }
.timeline { padding-left: 16px; }
.timeline-item { position: relative; padding: 0 0 23px 22px; border-left: 1px solid #3a4253; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-marker { position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #8195c7; }
.timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 10px; color: var(--muted); }
.timeline-meta strong { font-size: 10px; font-weight: 400; color: var(--muted); }
.timeline-content h3 { font-size: 13px; margin: 7px 0; }
.timeline-content p { white-space: pre-wrap; font-size: 12px; margin: 8px 0; }
.timeline-content details>summary { font-size: 11px; color: var(--accent); }
.instance-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.instance-name h3 { font-size: 13px; }
.instance-subtitle { color: var(--muted); font-size: 10px; margin-top: 3px; }
.instance-url { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; overflow-wrap: anywhere; word-break: break-word; margin: 11px 0 17px; }
.instance-url .icon { width: 13px; }
.instance-data { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
.instance-data-item>span { font-size: 10px; color: var(--muted); display: block; }
.instance-data-item>strong { font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.instance-note { margin-top: 13px; font-size: 11px; color: var(--muted); white-space: pre-wrap; }
.instance-footer { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.card-time { font-size: 10px; color: var(--muted); }
.notice-box { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; border: 1px solid #38425b; background: #1b2334; color: #b8c8eb; padding: 13px 15px; border-radius: 8px; margin-bottom: 15px; }
.notice-box .icon { margin-top: 2px; width: 16px; }
.notice-box.neutral { background: var(--raised); border-color: var(--line); color: var(--body); }
.notice-box p { margin: 0; }
.notice-list { padding-left: 17px; }
.check-history-entry { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.check-history-entry .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.check-history-entry p { margin-top: 8px; }
.check-history-entry time { color: var(--muted); font-size: 11px; }
.week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: 24px 0; }
.week-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.week-controls input { padding: 7px 10px; font-size: 12px; max-width: 165px; }
.weekly-intro { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 26px 0; padding: 24px; background: #1a2030; border: 1px solid #35405a; border-radius: var(--radius); }
.eyebrow { color: #9bafdf; font-size: 9px; letter-spacing: 2px; font-weight: 500; }
.weekly-intro h2 { font-size: 23px; margin-top: 8px; letter-spacing: -.5px; }
.weekly-intro p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.weekly-projects { display: flex; flex-direction: column; gap: 16px; }
.weekly-project { border: 1px solid var(--line); background: var(--surface); padding: 22px 24px; border-radius: var(--radius); }
.weekly-project>header { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.weekly-project>header h2 { flex: 1; font-size: 16px; }
.weekly-project>header a { color: var(--ink); }
.weekly-project>header a:hover { color: var(--accent); }
.weekly-event { padding: 15px 0; border-top: 1px solid var(--line); }
.record-meta { justify-content: flex-start; font-size: 10px; color: var(--muted); margin-bottom: 9px; }
.weekly-event h3 { font-size: 13px; margin-bottom: 8px; }
.weekly-event p { white-space: pre-wrap; font-size: 12px; }
.record-source { display: block; color: var(--muted); margin-top: 8px; font-size: 10px; overflow-wrap: anywhere; }
.weekly-context { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.weekly-context>summary { display: flex; gap: 9px; align-items: center; font-size: 12px; }
.weekly-context>summary .small { margin-left: auto; font-size: 10px; }
.weekly-context .next-grid { margin-top: 15px; margin-bottom: 7px; }
.definition-list { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 12px 24px; font-size: 12px; margin: 16px 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; color: var(--body); }
.tool-section+.tool-section { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 23px; }
.tool-section>p { font-size: 12px; margin: 9px 0 15px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { border-collapse: collapse; width: 100%; font-size: 11px; min-width: 600px; }
.audit-table th, .audit-table td { padding: 11px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table th { color: var(--muted); font-weight: 400; }
.audit-details pre { white-space: pre-wrap; max-width: 360px; overflow-wrap: anywhere; }
.audit-details summary { color: var(--accent); }
.dialog { width: min(650px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--body); box-shadow: 0 24px 80px #0009; }
.dialog.wide { width: min(870px,calc(100% - 32px)); }
.dialog::backdrop { background: #05070cbd; backdrop-filter: blur(4px); }
.dialog-header { padding: 23px 26px 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; }
.dialog-header p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.dialog-body { padding: 24px 26px; max-height: calc(100dvh - 245px); overflow-y: auto; }
.dialog-footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 9px; background: #12151d; }
.save-note { color: var(--muted); font-size: 10px; margin-right: auto; max-width: 55%; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label { color: var(--body); font-size: 12px; }
.form-field .required { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea { width: 100%; }
.form-field input[type=checkbox] { width: auto; }
.field-hint, .form-hint { color: var(--muted); font-size: 11px; }
.span-full { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; margin-top: 15px; }
.checkbox-field input { margin-top: 5px; accent-color: var(--accent); }
.checkbox-field p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.error-box { border: 1px solid #68404a; background: #302127; color: #ffc0c2; padding: 12px; border-radius: 8px; font-size: 12px; margin-bottom: 15px; }
.import-code, .copy-area { font-family: Consolas,monospace; font-size: 12px; width: 100%; }
.import-preview { background: var(--raised); border: 1px solid var(--line); padding: 13px; margin-top: 15px; border-radius: 8px; font-size: 12px; }
.import-preview ul { padding-left: 20px; }
.empty-state, .page-error { text-align: center; padding: 32px; color: var(--muted); }
.empty-state .icon { color: #7c8caa; margin-bottom: 10px; }
.empty-state h3, .page-error h2 { margin-bottom: 9px; }
.empty-state p, .page-error p { font-size: 12px; margin-bottom: 14px; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--muted); font-size: 12px; }
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid #67779855; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.notifications { position: fixed; z-index: 100; bottom: 22px; left: 50%; transform: translateX(-50%); width: min(520px,calc(100% - 30px)); pointer-events: none; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; gap: 10px; align-items: center; max-width: 100%; padding: 13px 16px; background: #242e40; color: #dfE8fc; border: 1px solid #4a5c7d; box-shadow: 0 8px 30px #0007; border-radius: 10px; pointer-events: auto; font-size: 12px; }
.toast.error { background: #36242c; border-color: #74444f; color: #ffc0c2; }
.toast button { border: 0; background: transparent; margin-left: 8px; display: flex; padding: 3px; }
.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; }
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-story { display: flex; flex-direction: column; background: #121722; border-right: 1px solid #2a3243; padding: 48px 58px; }
.login-story .brand { padding: 0; }
.login-intro { margin: auto 0; padding: 65px 0; }
.login-intro h1 { font-size: clamp(30px,3.3vw,48px); line-height: 1.5; letter-spacing: -1px; margin: 15px 0 20px; }
.login-intro>p { color: #a9b3c7; max-width: 370px; line-height: 1.9; }
.login-features { display: flex; flex-direction: column; gap: 17px; margin-top: 35px; color: #a5b2ce; font-size: 12px; }
.login-feature, .login-bottom { display: flex; align-items: center; gap: 12px; }
.login-bottom { color: #8995ae; font-size: 11px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 50px; }
.login-form-card { width: 100%; max-width: 350px; }
.login-form-card h2 { font-size: 27px; margin: 10px 0; }
.login-form-card>p { color: var(--muted); font-size: 12px; margin-bottom: 30px; }
.login-form-card .form-field { margin-bottom: 19px; }
.login-form-card .form-field input { padding: 12px; }
.login-form-card .button.full { margin-top: 8px; min-height: 44px; }
.login-note { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.login-note code { color: #b8c7eb; }
.overflow-safe { overflow-wrap: anywhere; }
.mt-14 { margin-top: 14px; } .mt-15 { margin-top: 15px; } .mt-17 { margin-top: 17px; }
.mt-18 { margin-top: 18px; } .mt-24 { margin-top: 24px; } .mb-0 { margin-bottom: 0!important; } .mb-17 { margin-bottom: 17px; } .ml-8 { margin-left: 8px; }
.mobile-menu, .sidebar-scrim { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width:1600px) { .main-content { padding-top: 45px; } .project-row-heading { padding: 23px 26px; } }
@media (max-width:1050px) {
  .app-shell { padding-left: 180px; } .sidebar { width: 180px; padding-left: 12px; padding-right: 12px; }
  .brand { padding: 0 5px; gap: 7px; } .brand-title { font-size: 13px; } .brand-subtitle { font-size: 8px; }
  .main-content { padding: 28px; } .topbar { padding: 0 28px; }
  .row-source { display: none; } .project-row-actions>.badge { max-width: 185px; font-size: 10px; }
  .detail-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-status:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .detail-status:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width:720px) {
  body { font-size: 14px; } .app-shell { padding-left: 0; }
  .sidebar { width: 225px; transform: translateX(-100%); visibility: hidden; transition: transform .18s; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar-scrim.show { display: block; position: fixed; inset: 0; z-index: 25; background: #0009; border: 0; }
  .mobile-menu { display: inline-flex; flex-shrink: 0; }
  .topbar { height: 62px; padding: 0 14px; gap: 4px; } .breadcrumb { gap: 6px; font-size: 11px; }
  .breadcrumb-root { display: none; } .breadcrumb>span { display: none; }
  .topbar-actions { gap: 2px; } .topbar-actions>.button { font-size: 11px; padding: 7px; gap: 4px; }
  .topbar-actions>.button .icon { width: 14px; } .account { margin-left: 4px; } .account>summary>.icon { display: none; }
  .main-content { padding: 24px 15px; } h1 { font-size: 25px; } .lead { font-size: 12px; }
  .overview-strip { flex-wrap: wrap; font-size: 10px; margin-bottom: 16px; gap: 4px; }
  .overview-strip>span { margin-left: 14px; }
  .project-list { gap: 13px; } .project-row-heading { padding: 17px 15px; }
  .project-row-top { display: grid; grid-template-columns: 32px minmax(0,1fr) 14px; gap: 6px 10px; }
  .project-row-top>.project-number { display: none; } .project-row-top>.project-icon { width: 32px; height: 32px; grid-row: 1/3; align-self: start; }
  .project-identity { grid-column: 2; grid-row: 1; } .project-identity h2 { font-size: 14px; } .project-category { font-size: 8px; letter-spacing: .8px; }
  .project-row-actions { grid-column: 2; grid-row: 2; justify-self: start; }
  .project-row-actions>.badge { max-width: 100%; font-size: 10px; }
  .project-website.button.small { padding: 5px 8px; font-size: 11px; }
  .expand-icon { grid-column: 3; grid-row: 1/3; margin: 0; }
  .row-summary { margin: 13px 0; font-size: 12px; -webkit-line-clamp: 2; }
  .row-meta { margin: 0; flex-wrap: wrap; gap: 7px; }
  .row-next { flex-basis: 100%; font-size: 11px; }
  .row-next>span:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-meta>.badge { margin-top: 3px; } .row-source { display: inline; margin-left: auto; font-size: 9px; }
  .project-expanded { padding: 17px 14px; }
  .detail-label { flex-basis: 100%; margin-bottom: 5px; }
  .detail-actions { gap: 5px; } .detail-actions .button { font-size: 11px; padding: 7px 9px; }
  .detail-status { padding: 12px; } .detail-status p { font-size: 11px; }
  .detail-copy { font-size: 12px; } .next-grid { grid-template-columns: 1fr; gap: 17px; }
  .note-meta { align-items: flex-start; } .note-card, .instance-card { padding: 14px; }
  .note-text { font-size: 13px; } .instance-url { font-size: 11px; } .instance-data { gap: 10px; }
  .instance-card-top>.badge { margin-top: 5px; }
  .instance-footer .controls { gap: 4px; } .instance-footer .button { font-size: 10px; padding: 7px; }
  .week-toolbar { margin: 18px 0; } .week-controls { width: 100%; gap: 4px; }
  .week-controls .button { padding: 7px 8px; font-size: 11px; } .week-controls input { max-width: 137px; padding: 7px; font-size: 12px; }
  .weekly-intro { padding: 18px; align-items: flex-start; flex-direction: column; margin: 20px 0; }
  .weekly-intro h2 { font-size: 20px; } .weekly-intro .button { align-self: flex-end; font-size: 12px; }
  .weekly-project { padding: 18px 16px; } .weekly-project>header { flex-wrap: wrap; gap: 8px; }
  .weekly-project>header h2 { font-size: 14px; } .weekly-project>header>.badge { margin-left: 25px; font-size: 10px; }
  .weekly-context>summary { flex-wrap: wrap; }
  .dialog, .dialog.wide { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dialog-header { padding: 19px; } .dialog-header p { font-size: 11px; }
  .dialog-body { padding: 19px; max-height: calc(100dvh - 220px); } .dialog-footer { padding: 14px 19px; }
  .dialog-footer .save-note { display: none; } .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; }
  .source-footnote { font-size: 10px; } .page-footer { font-size: 8px; margin-top: 23px; }
  .login-layout { display: flex; flex-direction: column; }
  .login-story { padding: 25px; border: 0; border-bottom: 1px solid var(--line); }
  .login-intro { margin: 30px 0 0; padding: 0; } .login-intro h1 { font-size: 29px; margin: 10px 0; }
  .login-intro .eyebrow { font-size: 8px; } .login-intro>p { font-size: 12px; }
  .login-features, .login-bottom { display: none; } .login-form-side { padding: 32px 25px; }
}
@media (max-width:380px) { .week-controls .button { padding: 7px 6px; } .week-controls input { max-width: 125px; } .row-source { display: none; } }
@media (pointer:coarse) { .button, .icon-button { min-height: 44px; } .icon-button { min-width: 44px; } .detail-disclosure>summary { min-height: 48px; } .nav-link { min-height: 46px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto!important; animation: none!important; transition: none!important; } }
@media print { :root { color-scheme: light; --page: #fff; --surface: #fff; --ink: #111; --body: #222; --muted: #555; --line: #bbb; } .sidebar,.topbar,.button,.page-footer,.notifications { display:none!important; } .app-shell { padding:0; } .main-content { max-width:none; padding:10px; } .weekly-project { break-inside:avoid; } .project-expanded { background:#fff; } }

/* One viewport-wide atmosphere: transparent chrome reveals the shared canvas.
   Keep readable surfaces above it, never place decorative layers over controls. */
body {
  background-color: #0b0d14;
  background-image:
    radial-gradient(ellipse 76% 62% at 10% 12%, rgba(88,67,159,.18), transparent 72%),
    radial-gradient(ellipse 68% 54% at 77% -8%, rgba(92,81,170,.23), transparent 72%),
    radial-gradient(ellipse 56% 68% at 100% 76%, rgba(49,77,153,.16), transparent 70%);
  background-attachment: fixed;
}
.app-shell { position: relative; isolation: isolate; overflow-x: clip; }
.sidebar { background: rgba(14,16,25,.28); border-color: rgba(149,160,213,.14); }
.login-story { background: rgba(18,23,34,.22); border-color: rgba(149,160,213,.14); }
.login-form-side { background: transparent; }
.brand-mark { background: linear-gradient(145deg,#34316a,#1e2c4b); color: #d5d7ff; border-color: #575194; box-shadow: 0 0 24px #7770ec26; }
.nav-link { border-radius: 999px; transition: background .25s ease, color .25s ease, transform .25s ease; }
.nav-link.active { background: #303052; color: #eeedff; }
/* The topbar must own a higher stacking context than main: a popover's
   own z-index cannot escape a lower backdrop-filter/positioned ancestor. */
.topbar { position: relative; z-index: 20; background: rgba(16,18,28,.24); border-color: rgba(149,160,213,.12); }
.main-content { position: relative; z-index: 0; }
.account-popover { background: #1b1f29; }
.page-heading { margin-bottom: 22px; }
.page-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  margin-bottom: 14px; background: rgba(24,27,41,.84); border: 1px solid rgba(154,161,215,.14);
  border-radius: 999px; color: #c6c7e7; font: 10px "Cascadia Code", Consolas, monospace; letter-spacing: 1.1px;
}
.kicker-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a7a3ff; box-shadow: 0 0 12px #9990ff; }
.page-heading h1 { font-size: clamp(32px,3.2vw,46px); letter-spacing: -1.2px; line-height: 1.25; }
.page-heading .lead { font-size: 13px; margin-top: 9px; }
.overview-strip { padding: 4px 0; }
.project-list { gap: 12px; }
.project-row {
  background: rgba(21,24,37,.82); border-color: rgba(157,168,215,.16);
  box-shadow: 0 10px 28px rgba(1,2,9,.16); transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
  animation: project-enter .45s cubic-bezier(.22,1,.36,1) backwards;
}
.project-row:nth-child(2) { animation-delay: .055s; }
.project-row:nth-child(3) { animation-delay: .11s; }
.project-row:nth-child(4) { animation-delay: .165s; }
.project-row[open] { border-color: rgba(165,164,255,.52); box-shadow: 0 12px 36px rgba(30,24,79,.26); }
.project-row-heading { transition: background .3s ease; }
.project-row-heading:hover { background: rgba(93,89,166,.08); }
.project-icon { background: #292b4e; color: #c1bdff; }
.project-row[open]>.project-row-heading .expand-icon .icon { color: #c6c3ff; }
.project-expanded { background: rgba(16,19,29,.88); }
.project-row[open]>.project-expanded { animation: detail-enter .32s cubic-bezier(.22,1,.36,1) both; }
.weekly-intro { background: linear-gradient(110deg,rgba(42,39,75,.80),rgba(25,35,59,.78)); border-color: #4a486b; }
.weekly-project { background: rgba(21,24,37,.82); border-color: rgba(157,168,215,.16); }
.main-content > .page-heading { animation: heading-enter .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes heading-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes project-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes detail-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (hover:hover) { .project-row:not([open]):hover { transform: translateY(-2px); border-color: rgba(171,166,255,.40); box-shadow: 0 14px 38px rgba(40,35,90,.25); } }
@media (max-width:720px) {
  /* The open drawer overlays page text; stronger glass keeps navigation legible. */
  .sidebar { background: rgba(14,16,25,.82); backdrop-filter: blur(12px); }
  .page-heading h1 { font-size: 31px; }
  .page-kicker { margin-bottom: 11px; }
  .project-row { animation-delay: 0s !important; }
}
@media (prefers-reduced-motion:reduce) {
  .main-content > .page-heading, .project-row, .project-row[open]>.project-expanded { animation: none !important; }
}
@media print {
  body { background: #fff !important; }
  .project-row, .project-expanded, .weekly-project, .weekly-intro, .login-story { background: #fff !important; border-color: #bbb; box-shadow: none; }
}

/* Pointer and ambient layers stay behind content and never receive input. */
#ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
.filing-footer { position: relative; z-index: 1; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); text-align: center; font-size: 12px; }
.filing-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 8px; color: var(--muted); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.filing-footer a:hover { color: var(--ink); }
.project-row-heading { position: relative; isolation: isolate; overflow: hidden; }
.project-row-heading::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(260px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(146, 137, 255, .20), rgba(104, 120, 245, .05) 52%, transparent 75%);
  transition: opacity .32s ease;
}
.project-row-heading.pointer-lit::before { opacity: 1; }
.project-row-heading:focus-visible::before { opacity: .65; }
.weekly-intro { animation: heading-enter .48s cubic-bezier(.22,1,.36,1) backwards; }
.weekly-project { animation: project-enter .42s cubic-bezier(.22,1,.36,1) backwards; }
.weekly-project:nth-child(2) { animation-delay: .045s; }
.weekly-project:nth-child(3) { animation-delay: .09s; }
.weekly-project:nth-child(4) { animation-delay: .135s; }
::view-transition { pointer-events: none; }
::view-transition-old(root) { animation: route-exit .17s ease-in both; }
::view-transition-new(root) { animation: route-enter .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes route-exit { to { opacity: 0; transform: translateY(-5px); } }
@keyframes route-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) {
  #ambient-canvas { display: none; }
  .project-row-heading::before { display: none; }
  .weekly-intro, .weekly-project { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media print { #ambient-canvas { display: none; } .project-row-heading::before { display: none; } }

/* Git activity stays inside each project; no extra navigation or external assets. */
.github-panel { display: grid; gap: 16px; min-width: 0; }
.git-state { display: grid; gap: 9px; }
.git-card-top, .git-sync-actions, .git-section-heading, .git-times { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.git-card-top time, .git-times { color: var(--muted); font-size: 11px; }
.git-card-top>.button { margin-left: auto; }
.git-repository { font-size: 12px; overflow-wrap: anywhere; }
.git-section { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.git-section-heading { justify-content: space-between; margin-bottom: 11px; }
.git-section-heading h3 { font-size: 13px; }
.git-summary-list { display: grid; gap: 10px; }
.git-summary-card { padding: 14px; border: 1px solid #353650; border-radius: 10px; background: rgba(45, 41, 74, .22); min-width: 0; }
.git-summary-copy { margin-top: 12px; }
.git-summary-copy>summary, .git-evidence>summary { display: flex; align-items: center; gap: 6px; color: var(--body); font-size: 12px; }
.git-summary-copy>summary .icon, .git-evidence>summary .icon { width: 14px; height: 14px; }
.git-summary-copy[open]>summary .icon, .git-evidence[open]>summary .icon { transform: rotate(90deg); }
.git-text { white-space: pre-wrap; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; margin-top: 10px; }
.git-evidence { margin-top: 12px; min-width: 0; }
.git-evidence ul { padding-left: 18px; margin: 12px 0 3px; }
.git-evidence li { padding: 5px 0; font-size: 12px; overflow-wrap: anywhere; }
.git-evidence li>* { margin-right: 10px; }
.git-evidence li>.small { display: block; margin-top: 3px; }
.git-evidence .icon, .git-activity-item .mono .icon { width: 12px; height: 12px; margin-left: 4px; }
.git-activity-list { margin-top: 8px; }
.git-activity-item { border-bottom: 1px solid var(--line); padding: 15px 0; min-width: 0; }
.git-activity-item:last-child { border-bottom: 0; }
.git-activity-item h4 { margin: 8px 0; color: var(--ink); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.git-activity-item .mono { font-size: 11px; }
.git-commit-body { font-size: 12px; color: var(--muted); margin: 8px 0; }
.git-last-error { color: var(--amber); font-size: 12px; overflow-wrap: anywhere; }
.git-weekly-update { margin-top: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.git-weekly-update>.small { margin-top: 6px; }
@media (max-width:720px) {
  .git-card-top { gap: 8px; }
  .git-card-top>.button { margin-left: 0; }
  .git-summary-card { padding: 12px; }
  .git-times { display: grid; gap: 4px; }
  .git-sync-actions { align-items: flex-start; flex-direction: column; }
  .git-section-heading { align-items: flex-start; }
}
@media print { .git-summary-card { background: #fff; border-color: #bbb; } }
.git-summary-source { margin-top: 8px; }
.git-queue-note { margin-bottom: 12px; }

/* Manual lifecycle is independent of health and retained evidence. */
.lifecycle-control { gap: 6px; min-height: 34px; flex-shrink: 0; cursor: pointer; font: inherit; font-size: 11px; }
.lifecycle-control .icon { width: 12px; height: 12px; }
.lifecycle-control:hover { filter: brightness(1.18); }
.badge.violet { color: #d1baff; background: #342844; border-color: #604480; }
.lifecycle-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; }
.lifecycle-count { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.lifecycle-counts > .muted { margin-left: auto; }
.legacy-stage { padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 9px; margin-bottom: 16px; }
.legacy-stage p { margin: 4px 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width:720px) {
  .lifecycle-counts { gap: 8px 14px; }
  .lifecycle-counts > .muted { flex-basis: 100%; margin-left: 0; font-size: 10px; }
  .project-row-actions > .lifecycle-control { min-height: 36px; padding: 5px 9px; }
}
@media (pointer:coarse) { .lifecycle-control { min-height: 44px; } }
