:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --paper: #fffefa;
  --ink: #262121;
  --muted: #6d6463;
  --rule: #e9e2dc;
  --red: #a73547;
  --red-dark: #88283b;
  --red-soft: #f5e5e6;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button[disabled] { opacity: .53; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.graph-node:focus-visible { outline: 3px solid #ce7180; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
h1,h2,h3,p { margin: 0; }
small { font-size: .85rem; }
.boot { display: flex; min-height: 100dvh; justify-content: center; align-items: center; gap: 10px; font-weight: 650; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.17rem; font-weight: 760; line-height: 1.06; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); letter-spacing: .055em; font-size: .7rem; font-weight: 650; }
.brand-logo {
  height: 39px; width: 39px; flex: 0 0 39px; border-radius: 12px; display: grid; place-items: center;
  font: italic 760 27px/1 Georgia, serif; background: var(--red); color: #fff4e6; box-shadow: inset 0 0 0 1px #9b2f42;
}
.workspace { min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { min-height: 100dvh; background: #fcfaf7; border-right: 1px solid var(--rule); position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; padding: 27px 15px 16px; }
.brand-link { display: block; margin: 0 10px 32px; }
.nav-group + .nav-group { margin-top: 26px; }
.nav-label { display: block; margin: 0 11px 9px; font-size: .69rem; letter-spacing: .095em; font-weight: 760; color: #796d69; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #665b5a; font-weight: 560; }
.nav-link:hover, .profile:hover { background: #f0ebe5; }
.nav-link.active { background: var(--red-soft); color: #962c40; font-weight: 700; }
.profile { width: 100%; border: 0; margin-top: auto; text-align: left; display: flex; background: transparent; align-items: center; gap: 10px; padding: 11px 8px; border-radius: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #efe3d5; color: #6c4934; font-weight: 760; flex: 0 0 34px; font-size: .8rem; }
.profile-text { flex: 1 1 auto; min-width: 0; }
.profile-text strong, .profile-text small { display: block; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.profile-text small { color: var(--muted); margin-top: 3px; }
.profile > svg { color: #776a66; width: 16px; }
.surface { min-width: 0; }
.topbar { background: #fdfbf8; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between;
  align-items: center; padding: 0 35px; height: 68px; gap: 14px; position: sticky; top: 0; z-index: 10; }
.crumb, .top-actions, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumb { color: #716561; font-size: .9rem; gap: 12px; }
.crumb strong { color: #392c2e; font-weight: 680; }
.crumb .slash { color: #b5a8a2; }
.crumb > a, .top-actions .mobile-more, .mobile-nav { display: none; }
.demo-chip { color: #754833; background: #f7eee0; padding: 6px 10px; border: 1px solid #e9dbca; border-radius: 30px; font-size: .75rem; display: flex; align-items: center; gap: 6px; }
.demo-chip i, .status i { width: 7px; height: 7px; border-radius: 50%; background: #b48043; display: inline-block; }
.screen { max-width: 1510px; margin: 0 auto; padding: 34px 35px 48px; }
.loading { color: var(--muted); padding: 48px 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.page-head h1 { font-weight: 790; font-size: clamp(2.1rem,4vw,3.05rem); line-height: 1.03; letter-spacing: -.06em; color: #221c1e; margin-bottom: 8px; }
.page-head p { color: var(--muted); line-height: 1.55; }
.button, .icon-button {
  border: 1px solid #e8dfd8; background: var(--paper); border-radius: 10px; padding: 9px 13px; font-weight: 650;
  min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.25; text-align: center;
}
.button svg { width: 17px; height: 17px; }
.button:hover, .icon-button:hover { border-color: #ceb7af; background: #f9f2eb; }
.primary { border-color: var(--red); background: var(--red); color: #fffdfa; }
.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.quiet { background: transparent; }
.icon-button { width: 38px; height: 38px; min-height: 38px; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; min-height: 80px; display: flex; padding: 14px; align-items: center; gap: 12px; }
.stat:hover, .note-card:hover { border-color: #d8bbb2; }
.stat-icon, .empty-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; }
.stat-icon.rose { background:#f7e5e6; color:#a83548; }
.stat-icon.sand { background:#f7ecdf; color:#946331; }
.stat-icon.lilac { background:#eee8f7; color:#654680; }
.stat-icon.green { background:#e7efe6; color:#486844; }
.stat div > span { display: block; color: var(--muted); font-size: .8rem; }
.stat strong { display: block; margin-top: 4px; font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 17px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.27rem; font-weight: 740; letter-spacing: -.022em; }
.section-head a { flex: 0 0 auto; color: #8c3945; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.section-head a svg { width: 15px; }
.dashboard-grid > .card, .settings-card { padding: 19px; }
.task-card { min-height: 100%; }
.card-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.task-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid #f0e9e3; }
.task-row:first-child { border-top: 0; }
.task-actions { display: grid; justify-items: end; gap: 5px; }
.task-actions .button { min-height: 32px; padding: 4px 8px; font-size: .78rem; }
.task-check { height: 22px; width: 22px; display: grid; place-items: center; color: #fff; flex: 0 0 22px; border: 1.5px solid #c8b8ac; border-radius: 7px; background: transparent; padding: 0; margin-top: 1px; }
.task-check:hover { border-color: var(--red); }
.task-check svg { width: 15px; height: 15px; }
.task-row.done .task-check { background: #557a57; border-color: #557a57; }
.task-row.done .task-label > strong { text-decoration: line-through; color: var(--muted); }
.task-label { min-width: 0; flex: 1; }
.task-label strong,.mail-contents strong { display: block; font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere; }
.task-label small { color: var(--muted); display: block; margin: 4px 0; line-height: 1.35; }
.task-label small svg { width: 13px; height: 13px; }
.task-detail { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.badge { padding: 4px 7px; font-size: .72rem; font-weight: 620; color: #665655; background: #f4ede7;
  border-radius: 20px; align-items: center; gap: 5px; display: inline-flex; white-space: nowrap; line-height: 1.3; }
.badge svg { width: 13px; height: 13px; }
.badge.plain { border: 1px solid #eee4df; background: transparent; }
.priority-high { background: #f9e5e7; color: #a33143; }
.priority-normal { background: #f6ecdc; color: #806130; }
.priority-low { background: #e6efe4; color: #4b6147; }
.graph-card {
  position: relative; border: 1px solid #463444; border-radius: var(--radius); overflow: hidden; color: #fff1ed;
  background-color: #271e2d; background-image: radial-gradient(ellipse at 54% 55%,#463142 0%,transparent 65%), radial-gradient(circle at 81% 4%,#562b3c 0%,transparent 48%);
  min-height: 365px; min-width: 0; padding: 17px 19px 16px; display: flex; flex-direction: column;
}
.graph-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.graph-kicker { display: flex; align-items: center; gap: 8px; color: #edafbc; font-size: .72rem; letter-spacing: .1em; font-weight: 760; }
.graph-kicker svg { width: 16px; height: 16px; }
.graph-link { border: 1px solid #755468; border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: #f8d9e4; }
.graph-link:hover { background: #70465f; }
.graph-link svg { height: 17px; width: 17px; }
.graph-title { margin-top: 1px; }
.graph-title h2 { letter-spacing: -.035em; font-size: 1.72rem; line-height: 1.14; font-weight: 730; }
.graph-title p { color: #dac7d0; line-height: 1.4; margin-top: 6px; font-size: .84rem; }
.graph-wrap { position: relative; flex: 1; min-height: 0; margin: 6px 0 3px; }
.graph { width: 100%; height: auto; display: block; max-height: 268px; overflow: visible;
  background-image: radial-gradient(#c8a9bd3a 1px,transparent 1px); background-size: 20px 20px; }
.graph-lines { stroke: #bb879c; opacity: .54; stroke-width: 1.3; }
.graph-node { --node: #dec1c8; cursor: pointer; }
.node-person,.kind-person { --node: #f2a1ac; color: #922c41; }
.node-decision,.kind-decision { --node: #ffbd86; color: #875127; }
.node-branch,.kind-branch { --node: #a4c6e6; color: #3b6092; }
.node-process,.kind-process { --node: #c8a8ef; color: #654683; }
.node-note,.kind-note { --node: #b8d5b6; color: #48694a; }
.graph-node .halo { fill: var(--node); opacity: .16; }
.graph-node .node-dot { fill: var(--node); opacity: .95; }
.graph-node .node-core { fill: #fff6f1; }
.graph-node:hover .halo, .graph-node:focus-visible .halo { opacity: .42; }
.graph-node text { fill: #f6e6e9; font-size: 15px; font-weight: 630; paint-order: stroke fill; stroke: #322639; stroke-width: 4px; stroke-linejoin: round; }
.graph-node.root-node text { font-size: 16px; font-weight: 760; }
.graph-wide .graph { max-height: 480px; }
.graph-wide { padding: 22px; }
.graph-count, .graph-limit { font-size: .76rem; color: #dac0cc; }
.graph-limit { position: absolute; right: 0; bottom: 0; }
.legend { display: flex; gap: 7px 16px; flex-wrap: wrap; margin-top: auto; }
.kind { display: inline-flex; gap: 6px; align-items: center; font-size: .77rem; font-weight: 650; }
.kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--node); border: 1px solid currentColor; }
.legend .kind { color: #e5d4dd; font-size: .73rem; }
.legend .kind i { border: 0; }
.graph-empty { padding: 17px 0; }
.graph-empty .empty, .graph-empty .empty p { color: #e6d5df; }
.empty { padding: 22px 12px; display: flex; flex-direction: column; align-items: flex-start; color: #473b39; }
.empty strong { line-height: 1.36; font-weight: 690; }
.empty p { margin-top: 6px; color: var(--muted); max-width: 38ch; line-height: 1.5; font-size: .87rem; }
.empty-icon { background: #f5ece8; color: #a2716a; margin-bottom: 11px; }
.mail-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 0; border: 0; border-top: 1px solid #f0e9e3; background: transparent; }
.mail-row:hover .mail-contents strong { color: var(--red); }
.mail-row > svg { width: 16px; color: #956c69; margin-left: 3px; }
.mail-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #ded5cf; }
.mail-dot.unread { background: #bb4356; }
.mail-contents { flex: 1 1 auto; min-width: 0; }
.mail-contents > span,.mail-contents small { display: block; margin-top: 3px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.mail-contents > span { font-size: .81rem; }
.mail-contents small { font-size: .77rem; }
.mail-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; font-size: .75rem; white-space: nowrap; color: var(--muted); }
.list-card { padding: 5px 19px; }
.event-row { display: flex; align-items: center; gap: 12px; min-height: 64px; border-top: 1px solid #f0e9e3; padding: 9px 0; }
.event-row:first-child { border-top: 0; }
.event-row > strong { flex: 1; overflow-wrap: anywhere; }
.event-date { min-width: 67px; color: #813848; background: #f8e9e8; border-radius: 9px; text-align: center; padding: 6px; font-weight: 670; }
.event-date small { display: block; color: #855161; font-size: .72rem; }
.tabs { display: flex; gap: 4px; padding: 3px; background: #eee8e1; width: max-content; max-width: 100%; flex-wrap: wrap; border-radius: 11px; margin-bottom: 16px; }
.tabs .button { background: transparent; border-color: transparent; min-height: 32px; padding: 6px 10px; color: #655550; border-radius: 8px; font-size: .85rem; }
.tabs .selected { background: var(--paper); border-color: #e6ddd4; color: #892d3e; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .tabs { margin: 0; }
.search { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 0 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 9px; color: var(--muted); }
.search > input { border: 0; background: transparent; padding: 8px 1px; min-width: 0; }
.search:focus-within { outline: 2px solid #ce7180; }
.search input:focus-visible { outline: 0; }
.note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.note-card { min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 15px; text-align: left; padding: 15px; min-height: 164px; display: flex; flex-direction: column; }
.note-meta { display: flex; gap: 10px; justify-content: space-between; align-items: center; width: 100%; }
.note-card h3 { font-size: 1.16rem; margin: 10px 0 5px; overflow-wrap: anywhere; line-height: 1.18; }
.note-card p { color: var(--muted); font-size: .85rem; line-height: 1.48; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.note-footer { color: var(--muted); margin-top: auto; padding-top: 13px; width: 100%; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .77rem; }
.note-footer svg { width: 16px; color: #a23e4b; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.setting-row { padding: 12px 0; border-top: 1px solid #f0e9e3; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.setting-row > div { min-width: 0; overflow-wrap: anywhere; }
.setting-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.setting-row .button { flex-shrink: 0; font-size: .81rem; }
.status-ok { background: #e9f0e4; color: #41613a; }
.status-ok i { background: #578456; }
.integration-row { flex-wrap: wrap; }
.integration-row > div:first-child { flex: 1; }
.setting-row code, .system-details code { font-size: .8rem; }
.system-details { color: var(--muted); border-top: 1px solid #f0e9e3; margin-top: 2px; padding-top: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; font-size: .78rem; }
.member { display: flex; align-items: center; gap: 9px; }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.inline-form > label:first-child { flex: 1; }
.inline-form input { min-width: 120px; }
.toggle { display: block; flex: 0 0 42px; position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; margin: 0; }
.toggle span { height: 24px; border-radius: 12px; background: #d4c9c1; display: block; cursor: pointer; }
.toggle span::after { content: ""; display: block; width: 18px; height: 18px; transform: translate(3px,3px); background: white; border-radius: 50%; transition: transform .15s ease; }
.toggle input:checked + span { background: var(--red); }
.toggle input:checked + span::after { transform: translate(21px,3px); }
.toggle input:focus-visible + span { outline: 3px solid #ce7180; outline-offset: 3px; }
.subtle,.muted,.hint { color: var(--muted); }
.subtle,.hint { font-size: .9rem; line-height: 1.55; margin: 10px 0; }
.hint { background: #f2ebe3; border-radius: 10px; padding: 10px 12px; }
.small { font-size: .83rem; line-height: 1.4; }
.auth-body { min-height: 100dvh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 78% 20%,#efd5d7 0%,transparent 45%), radial-gradient(ellipse at 15% 85%,#efe2cf 0%,transparent 54%),var(--bg); }
.auth-card { width: min(100%,420px); padding: 28px; border-radius: 20px; background: var(--paper); border: 1px solid #e4d8d0; box-shadow: 0 18px 65px #53304512; }
.auth-card .brand { margin-bottom: 31px; }
.auth-card h1 { letter-spacing: -.045em; font-size: 2.24rem; line-height: 1.1; margin: 7px 0 8px; }
.auth-card > p, .auth-card form { margin-top: 13px; }
.auth-card > p { color: var(--muted); line-height: 1.55; }
.auth-card form > .button { width: 100%; }
.auth-card form > label, dialog form > label { margin-bottom: 12px; }
label { display: block; font-weight: 650; font-size: .85rem; }
input:not([type=checkbox]), select, textarea {
  width: 100%; border: 1px solid #dfd4ca; border-radius: 8px; min-height: 39px; padding: 8px 10px; display: block; background: #fffefa;
}
label input:not([type=checkbox]), label select, label textarea { margin-top: 5px; }
select { max-width: 100%; }
.setting-row select { max-width: 140px; }
.obsidian-install { margin: 14px 0; color: var(--muted); font-size: .88rem; }
.obsidian-install summary { cursor: pointer; }
.obsidian-install ol { padding-inline-start: 20px; line-height: 1.55; }
.obsidian-install code { overflow-wrap: anywhere; }
textarea { resize: vertical; min-height: 72px; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-bottom: 12px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
input[type=checkbox] { accent-color: var(--red); }
.form-error { min-height: 1em; color: #a02d43; margin: 6px 0 9px; font-size: .85rem; }
.eyebrow { font-size: .72rem; font-weight: 780; letter-spacing: .1em; color: #a0394a; }
.eyebrow svg { width: 15px; height: 15px; margin-right: 3px; }
dialog { border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); color: var(--ink); width: min(590px,calc(100vw - 26px)); max-height: min(86dvh,760px); padding: 0; box-shadow: 0 24px 80px #1f132745; }
dialog::backdrop { background: #30213369; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 21px 12px; border-bottom: 1px solid var(--rule); }
.dialog-heading h2 { font-size: 1.52rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-content { padding: 17px 21px 21px; }
.dialog-content h3 { font-size: 1rem; margin: 12px 0 8px; }
.dialog-content p + .actions, .dialog-content .prose-text + .actions { margin-top: 14px; }
.task-matches:not(:empty) { background: #f8f1e9; border: 1px solid #eaded2; border-radius: 11px; padding: 12px; margin-top: 12px; }
.task-match { padding: 9px 0; border-top: 1px solid #eaded2; overflow-wrap: anywhere; }
.task-match small { display: block; margin-top: 3px; color: var(--muted); }
.task-match .actions { margin-top: 6px; }
.prose-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.59; margin: 12px 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tags .button { min-height: 31px; font-size: .78rem; padding: 5px 8px; }
.attachments .badge { white-space: normal; overflow-wrap: anywhere; }
.mail-header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.analysis { margin: 12px 0; padding: 12px; border: 1px solid #ead9e1; border-radius: 11px; background: #f8f0f4; }
.analysis p, .analysis details { margin-top: 7px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: #322535; color: #fff5ef; padding: 12px 16px; border: 1px solid #66495a; border-radius: 10px; max-width: min(420px,calc(100vw - 36px)); box-shadow: 0 6px 30px #46314338; }
.toast[data-style=error] { background: #8d2a3e; border-color: #7a2335; }
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 195px minmax(0,1fr); }
  .screen { padding: 25px 23px 38px; }
  .topbar { padding: 0 23px; }
  .stat { gap: 8px; padding: 10px; }
  .stat-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .settings-grid { grid-template-columns: minmax(0,1fr); }
  .note-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 870px) {
  .workspace { grid-template-columns: 165px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand-link { margin-left: 5px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 650px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 0 12px; height: 58px; }
  .crumb > a { display: inline-flex; }
  .crumb > a .brand { gap: 7px; font-size: 1rem; }
  .crumb > a .brand-logo { height: 30px; width: 30px; flex-basis: 30px; font-size: 20px; border-radius: 9px; }
  .crumb > a .brand small { font-size: .58rem; margin-top: 3px; }
  .crumb > strong,.crumb > span { display: none; }
  .top-actions { gap: 6px; flex-wrap: nowrap; }
  .top-actions .button { padding: 0; min-height: 37px; width: 37px; }
  .top-actions .button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top-actions .mobile-more { display: inline-flex; }
  .mobile-nav { display: flex; justify-content: space-between; position: fixed; bottom: 0; width: 100%; z-index: 10; background: #fcfaf7; border-top: 1px solid var(--rule); padding: 5px 6px max(5px,env(safe-area-inset-bottom)); }
  .mobile-nav .nav-link { flex: 1; padding: 5px 0; flex-direction: column; gap: 4px; font-size: .67rem; }
  .mobile-nav .nav-link svg { width: 17px; height: 17px; }
  .screen { padding: 19px 12px 80px; }
  .page-head { margin-bottom: 15px; }
  .page-head p { font-size: .87rem; }
  .page-head h1 { margin-bottom: 6px; }
  .stats { gap: 7px; margin-bottom: 13px; }
  .stat { min-height: 64px; }
  .stat div > span { font-size: .72rem; }
  .stat strong { font-size: 1.39rem; }
  .graph-card { padding: 13px 12px; min-height: 305px; }
  .graph-title h2 { font-size: 1.48rem; }
  .graph-node text { font-size: 15px; }
  .graph-node.root-node text { font-size: 16px; }
  .graph-wrap { display: flex; align-items: center; }
  .dashboard-grid, .settings-grid { gap: 12px; }
  .dashboard-grid > .card,.settings-card { padding: 14px; }
  .note-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .note-card { min-height: 132px; }
  .search { flex: 1; }
  .toast { bottom: 73px; right: 10px; }
  input,textarea,select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
