:root {
  --canvas:#f3f4f9; --paper:#fff; --ink:#20243b; --muted:#62687f; --line:#e4e6ef;
  --primary:#5344c8; --primary-dark:#4436af; --violet-soft:#eeebff; --navy:#252345;
  --income:#167050; --expense:#a93e4b; --radius:17px;
  font-family:Inter,"Segoe UI","Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;
  color:var(--ink); background:var(--canvas); font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid #786aee; outline-offset:3px;
}
a { color:inherit; text-decoration:none; }
p,h1,h2,h3,ul,dl { margin:0; }
svg { vertical-align:middle; flex:none; }
::selection { background:#d9d1ff; color:#20194c; }
.shell { display:grid; grid-template-columns:226px minmax(0,1fr); min-height:100svh; }
.sidebar {
  position:sticky; align-self:start; top:0; height:100svh; min-height:525px; display:flex; flex-direction:column;
  padding:24px 16px 15px; background:var(--paper); border-right:1px solid var(--line);
}
.brand { display:flex; align-items:center; gap:11px; margin:0 6px 34px; font-size:19px; letter-spacing:-.04em; white-space:nowrap; }
.brand-mark { display:grid; place-items:center; width:41px; height:41px; border-radius:13px; color:#fff;
  background:linear-gradient(145deg,#8174ed,#5544cd 78%); box-shadow:0 5px 12px #5746d235; }
.space-picker { display:flex; position:relative; align-items:center; gap:10px; min-height:57px; padding:9px; border:1px solid var(--line);
  border-radius:13px; background:#fbfbfe; margin-bottom:20px; }
.space-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:#efedfc; color:var(--primary); }
.space-copy { display:grid; min-width:0; gap:3px; flex:1; }
.space-copy strong,.sync-card small { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.space-copy small,.sync-card small { font-size:11px; color:var(--muted); }
.space-picker select { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.space-picker:focus-within { outline:2px solid #786aee; outline-offset:2px; }
.navigation { display:flex; flex-direction:column; gap:3px; }
.navigation a,.recycle,.logout { display:flex; align-items:center; gap:12px; min-height:43px; padding:9px 12px;
  border-radius:9px; font-size:14px; font-weight:550; color:#52586f; white-space:nowrap; }
.navigation a:hover,.recycle:hover,.logout:hover { background:#f6f6fb; color:var(--ink); }
.navigation a[aria-current],.recycle[aria-current] { background:var(--violet-soft); color:var(--primary-dark); font-weight:700; }
.sidebar-bottom { display:grid; gap:5px; margin-top:auto; }
.sync-card { display:flex; align-items:center; gap:9px; min-width:0; margin-top:9px; border-top:1px solid var(--line); padding:14px 3px 6px; }
.sync-card > div { flex:1; min-width:0; display:grid; gap:3px; }
.sync-card strong { font-size:12px; }
.sync-dot { width:7px; height:7px; margin-left:5px; border-radius:50%; background:#43a77a; box-shadow:0 0 0 3px #e7f5ed; }
.sync-dot.sync-error { background:#bc6960; box-shadow:0 0 0 3px #f9ece9; }
.sync-card .icon-button { width:29px; height:29px; }
.logout { border:0; background:transparent; min-height:37px; }
.workspace { min-width:0; }
.topbar { height:66px; padding:0 clamp(22px,3vw,44px); background:#ffffffd9; border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:18px; }
.breadcrumb,.top-actions { display:flex; align-items:center; gap:11px; }
.breadcrumb { font-size:13px; color:var(--muted); white-space:nowrap; }
.breadcrumb strong { color:var(--ink); }
.top-actions { min-width:0; }
.searchbar { display:flex; align-items:center; gap:9px; width:clamp(150px,22vw,300px); min-width:0; padding:6px 9px;
  border:1px solid var(--line); border-radius:9px; background:#f8f8fc; color:var(--muted); }
.searchbar input { width:100%; min-width:0; border:0; outline:0; background:transparent; padding:2px 0; font-size:13px; }
.searchbar:focus-within { outline:2px solid #786aee; outline-offset:2px; }
.searchbar input:focus-visible { outline:none; }
kbd { border:1px solid #e3e3ef; border-radius:5px; padding:1px 4px; font:11px/1.45 "Segoe UI",sans-serif; white-space:nowrap; }
.account-avatar { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:50%;
  background:var(--violet-soft); color:var(--primary-dark); font-size:13px; font-weight:700; }
.page { max-width:1550px; margin:0 auto; padding:30px clamp(22px,3vw,44px) 42px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:23px; }
.page-heading h1 { font-size:clamp(29px,3.2vw,41px); letter-spacing:-.075em; line-height:1.15; font-weight:740; }
.page-heading p { margin-top:8px; font-size:13px; color:var(--muted); }
.page-actions { display:flex; align-items:center; gap:8px; flex:none; }
.button,.icon-button,.small-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap;
  border:1px solid transparent; border-radius:9px; padding:8px 12px; min-height:35px; font-size:13px; font-weight:620; }
.button.primary { background:var(--primary); color:white; box-shadow:0 2px 5px #5746d233; }
.button.primary:hover { background:var(--primary-dark); }
.button.secondary { color:#3d4260; background:var(--paper); border-color:var(--line); }
.button.secondary:hover,.icon-button:hover,.small-action:hover,.button.ghost:hover { background:#f3f1fb; border-color:#e7e1f9; }
.button.ghost,.icon-button,.small-action { background:transparent; color:var(--muted); }
.button.filter-chip { background:var(--violet-soft); color:var(--primary-dark); }
.button.danger { background:#fdecef; color:#9e3546; }
.icon-button { width:34px; height:34px; min-height:0; padding:0; }
.work-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(228px,285px); gap:18px; align-items:start; }
.work-main { display:grid; gap:16px; min-width:0; }
.week-strip { position:relative; overflow:hidden; isolation:isolate; border-radius:var(--radius); padding:17px 19px 15px; color:#f8f6ff;
  background:linear-gradient(110deg,#262444,#363263); box-shadow:0 7px 13px #25224120; }
.week-strip::before { content:""; position:absolute; width:410px; height:410px; top:-208px; right:-123px; z-index:-1; border-radius:50%;
  background:repeating-radial-gradient(circle at center,transparent 0 22px,#d7c7ff1b 23px 24px);
  mask-image:linear-gradient(130deg,transparent 15%,#000); }
.week-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:15px; }
.week-heading small { font-size:10px; color:#c7c0ed; letter-spacing:.1em; }
.week-heading > div:first-child > div { font-size:17px; margin-top:3px; font-weight:650; white-space:nowrap; }
.week-heading > div:first-child span { color:#b7a9f0; padding:0 2px; }
.week-controls { display:flex; gap:5px; align-items:center; }
.week-controls button { border:1px solid #ffffff35; border-radius:8px; padding:4px 8px; min-height:28px;
  background:#ffffff0b; color:#f8f6ff; font-size:11px; }
.week-controls .icon-button { width:28px; height:28px; padding:0; }
.week-controls button:hover { background:#ffffff25; }
.week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.week-day { display:grid; place-items:center; gap:3px; background:#ffffff08; color:#eae5ff; min-width:0; padding:6px 2px 5px;
  border:1px solid #ffffff20; border-radius:9px; font-variant-numeric:tabular-nums; }
.week-day:hover { background:#ffffff20; }
.week-day span { font-size:10px; }
.week-day strong { font-size:19px; }
.week-day.day-today { box-shadow:inset 0 0 0 1px #b9aafe; color:white; }
.week-day[aria-pressed="true"] { background:#dcd3ff; color:#262042; border-color:#dcd3ff; }
.week-day i { width:4px; height:4px; border-radius:50%; }
.week-day .has-tasks { background:currentColor; }
.content-card,.inspector { min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 3px 13px #28264d07; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:16px 19px 10px; }
.section-head h2 { font-size:16px; letter-spacing:-.025em; }
.section-head .button { min-height:29px; padding:4px 8px; }
.list-toolbar { display:flex; gap:4px; padding:0 19px 8px; border-bottom:1px solid var(--line); }
.filter-tab,.segment button { display:inline-flex; align-items:center; gap:5px; background:transparent; color:var(--muted);
  font-weight:620; border:1px solid transparent; border-radius:8px; padding:5px 9px; white-space:nowrap; font-size:12px; }
.filter-tab span { color:inherit; opacity:.8; font-size:11px; font-variant-numeric:tabular-nums; }
.filter-tab:hover,.segment button:hover { background:#f6f4ff; }
.filter-tab[aria-pressed="true"],.segment button[aria-pressed="true"] { background:var(--violet-soft); color:var(--primary-dark); }
.task-list { list-style:none; padding:0 10px 9px; }
.task-row { display:grid; grid-template-columns:27px minmax(0,1fr) 28px; align-items:center; gap:8px;
  min-height:46px; padding:5px 7px; border-bottom:1px solid #eeeff4; border-radius:7px; }
.task-row:last-child { border-bottom-color:transparent; }
.task-row:hover,.task-row.selected { background:#f7f5ff; }
.task-check { display:grid; place-items:center; width:20px; height:20px; justify-self:center; border-radius:6px;
  border:1px solid #c9cce0; background:var(--paper); color:var(--primary); padding:0; }
.task-check:hover { border-color:#7764e1; color:var(--primary-dark); }
.completed .task-check { border-color:#c2b6f7; background:#e9e3ff; }
.completed .task-name { color:#67697e; text-decoration:line-through; }
.row-main { display:grid; grid-template-columns:minmax(0,1fr) 122px 89px; align-items:center; gap:7px; width:100%; padding:3px 0;
  border:0; text-align:left; background:transparent; }
.task-name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:610; font-size:14px; }
.task-date,.priority { display:inline-flex; gap:5px; align-items:center; font-size:11px; white-space:nowrap; color:var(--muted); }
.priority i { width:6px; height:6px; border-radius:50%; background:#a1a4b7; }
.priority-2 { color:#5750a3; }.priority-2 i { background:#7966dc; }
.priority-3,.priority-4 { color:#a3444a; }.priority-3 i,.priority-4 i { background:#cc6971; }
.row-open { width:28px; height:28px; }
.inspector { padding:17px 17px 16px; position:sticky; top:15px; min-height:200px; self-align:start; }
.inspector-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.inspector .eyebrow { font-weight:650; color:#747892; font-size:12px; }
.inspector h2,.note-head h2 { font-size:20px; font-weight:710; letter-spacing:-.045em; overflow-wrap:anywhere; }
.status-pill,.type-tag { display:inline-block; padding:3px 6px; border-radius:6px; background:#efeff6; color:#555970;
  font-size:11px; font-weight:650; white-space:nowrap; }
.status-pill { margin-top:10px; color:#4c3fac; background:#f0ebff; }
.status-pill.is-done { background:#e5f4ed; color:var(--income); }
.detail-meta { display:grid; gap:9px; padding:15px 0; margin:3px 0; border-bottom:1px solid var(--line); }
.detail-meta > div { display:grid; grid-template-columns:60px 1fr; gap:8px; font-size:12px; }
.detail-meta dt { color:var(--muted); }
.detail-meta dd { margin:0; overflow-wrap:anywhere; }
.detail-section { margin-top:14px; }
.detail-section h3 { color:var(--muted); font-size:12px; margin-bottom:7px; }
.detail-section p,.compact-list { font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.compact-list { padding-left:16px; }
.inspector-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.inspector-actions .button { padding-left:8px; padding-right:8px; }
.empty { min-height:140px; padding:22px 12px; display:grid; align-content:center; justify-items:center; gap:8px; text-align:center; }
.empty strong { font-size:14px; }.empty p { font-size:12px; color:var(--muted); }.empty .button { margin-top:4px; }
.empty-icon { display:grid; place-items:center; background:#f0edfc; border-radius:12px; width:42px; height:42px; color:#7363bf; }
.placeholder-inspector .empty { min-height:179px; }
.segment { display:inline-flex; gap:3px; width:max-content; max-width:100%; background:white; border:1px solid var(--line); border-radius:10px; padding:3px; }
.segment button { padding:7px 14px; }
.archive-months { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--muted); }
.archive-months details { border:1px solid var(--line); border-radius:10px; background:var(--paper); padding:8px 10px; }
.archive-months details > div { display:flex; flex-wrap:wrap; gap:6px; padding-top:7px; }
.archive-months button { border:0; color:var(--muted); background:#f4f4fa; padding:5px 8px; border-radius:5px; }
.archive-months button[aria-pressed="true"] { background:var(--violet-soft); color:var(--primary-dark); }
.bill-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.metric { display:flex; align-items:center; min-width:0; gap:11px; padding:14px; border:1px solid var(--line);
  background:var(--paper); border-radius:13px; }
.currency-symbol { display:grid; flex:none; place-items:center; width:36px; height:36px; border-radius:10px; font-weight:700;
  background:#fbebee; color:var(--expense); }.currency-symbol.income { background:#e7f4ee; color:var(--income); }
.metric > div { min-width:0; }.metric small { display:block; color:var(--muted); margin-bottom:4px; }
.metric strong { display:block; font-variant-numeric:tabular-nums; font-size:clamp(14px,2.1vw,25px); overflow-wrap:anywhere; letter-spacing:-.035em; }
.ledger-grid:not(.has-selection) { grid-template-columns:1fr; }
.table-scroll { overflow-x:auto; }
.ledger-table,.markdown table { border-collapse:collapse; width:100%; font-size:13px; text-align:left; }
.ledger-table th,.ledger-table td,.markdown td,.markdown th { padding:8px 13px; border-bottom:1px solid #eeeff4; }
.ledger-table thead th,.markdown thead th { background:#f9f9fd; color:var(--muted); font-size:12px; white-space:nowrap; }
.ledger-table tbody tr:last-child td,.ledger-table tbody tr:last-child th { border-bottom:0; }
.ledger-table tr.selected { background:#f5f2ff; }
.ledger-table td:first-child { white-space:nowrap; }.ledger-card { overflow:hidden; }
.ledger-table td:nth-child(3),.stats-table td { font-variant-numeric:tabular-nums; white-space:nowrap; }
.stats-table th:nth-child(n+2),.stats-table td { text-align:right; }
.amount-link,.text-button,.link { background:transparent; border:0; text-align:inherit; padding:2px 3px; border-radius:5px; font-weight:620; }
.text-button:hover,.link:hover,.amount-link:hover { text-decoration:underline; }
.amount-link[aria-pressed="true"] { background:#ede7ff; color:#4837a7; }
.expense { color:var(--expense); }.income { color:var(--income); }
.type-tag.expense { background:#faedf0; }.type-tag.income { background:#e5f4ec; }
.bill-detail-amount { display:block; font-size:23px; margin-top:7px; }
.note-segments { margin-bottom:13px; }
.notes-grid { display:grid; grid-template-columns:minmax(188px,280px) minmax(0,1fr); gap:15px; align-items:start; }
.notes-list { padding:5px; max-height:70vh; overflow:auto; }
.note-tile { width:100%; text-align:left; display:flex; align-items:center; gap:9px; padding:8px; min-height:44px; border:0; border-radius:9px; background:transparent; }
.note-tile:hover,.note-tile.selected,.ai-thread:hover,.ai-thread.selected { background:#f0edff; color:var(--primary-dark); }
.note-symbol { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:9px; color:#6b5cd0; background:#f1edff; }
.note-tile > span:nth-child(2) { flex:1; min-width:0; }
.note-tile strong,.ai-thread span { display:block; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; font-size:13px; }
.note-tile small,.note-head small { font-size:11px; color:var(--muted); }
.note-year,.note-month { padding:5px 6px; }
.note-year summary,.note-month summary { cursor:pointer; color:var(--muted); font-size:12px; padding:4px; }
.note-month { border-left:1px solid var(--line); margin-left:8px; }
.note-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:16px 18px; border-bottom:1px solid var(--line); }
.inline-actions { display:flex; gap:4px; flex:none; }
.messages,.document-body,.ai-turns { padding:16px 18px; overflow:auto; min-height:215px; max-height:52vh; }
.note-entry { position:relative; margin-bottom:13px; }
.note-entry time { color:var(--muted); font-size:11px; display:block; margin-bottom:5px; }
.note-entry p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.7; }
.messages .note-text p { width:fit-content; max-width:93%; background:#f2effe; padding:7px 10px; border-radius:4px 11px 11px; }
.entry-remove { position:absolute; right:0; top:0; opacity:.58; }
.entry-remove:hover,.entry-remove:focus-visible { opacity:1; }
.files { display:flex; flex-wrap:wrap; gap:5px; }.file-chip { text-align:left; display:inline-flex; align-items:center; gap:5px;
  max-width:100%; overflow-wrap:anywhere; padding:6px 8px; background:#f6f4fc; color:#564c8d; border:1px solid var(--line); border-radius:7px; font-size:12px; }
[data-preview] img,.media-display img { display:block; max-width:100%; max-height:390px; object-fit:contain; border-radius:9px; }
audio { display:block; max-width:100%; }
.composer { padding:11px 12px; border-top:1px solid var(--line); }
.composer textarea { display:block; padding:8px; width:100%; border:1px solid #e0e0ed; border-radius:9px; resize:vertical; background:#fbfbfe; font-size:14px; }
.composer-tools { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:6px; }
.small-action { position:relative; min-height:32px; padding:5px 7px; cursor:pointer; }
.small-action input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.small-action:focus-within { outline:2px solid #786aee; outline-offset:2px; }
.push-right { margin-left:auto; }.attached { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.ai-grid { display:grid; grid-template-columns:minmax(155px,230px) minmax(0,1fr); gap:15px; align-items:start; }
.ai-sidebar { padding:0 7px 8px; max-height:67vh; overflow:auto; }.ai-sidebar p { padding:8px 13px; color:var(--muted); font-size:12px; }
.ai-thread { display:flex; gap:7px; width:100%; align-items:center; padding:8px 9px; border:0; border-radius:7px; background:transparent; text-align:left; }
.ai-turns { min-height:290px; max-height:55vh; }
.ai-turn { display:grid; gap:13px; margin-bottom:19px; }.ai-turn:last-child { margin-bottom:1px; }
.ai-user { padding:9px 13px; background:#f0edfb; border-radius:10px; justify-self:end; max-width:86%; }
.ai-user strong,.ai-answer > strong { display:flex; gap:7px; align-items:center; color:#5646ab; font-size:12px; margin-bottom:5px; }
.ai-user p,.markdown { font-size:14px; overflow-wrap:anywhere; line-height:1.68; }
.ai-user p { white-space:pre-wrap; }
.markdown > * + * { margin-top:8px; }.markdown ol,.markdown ul { padding-left:22px; }
.markdown pre { margin:6px 0; padding:10px 12px; overflow:auto; border:1px solid var(--line); background:#f7f7fc; border-radius:8px; }
.markdown code { font-family:"Cascadia Code","Consolas",monospace; font-size:.92em; color:#5545a2; }
.markdown td,.markdown th { border:1px solid var(--line); }
.link { color:var(--primary); }
.trash-card { max-width:830px; }.trash-card > div:not(.empty) { display:flex; align-items:center; justify-content:space-between;
  padding:10px 13px; border-bottom:1px solid var(--line); gap:12px; font-size:14px; }
.trash-card > div:last-child { border-bottom:0; }.trash-card span { display:inline-flex; gap:8px; align-items:center; }
.signin { display:grid; grid-template-columns:1fr 1fr; min-height:100svh; }
.signin-brand { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:36px; padding:42px clamp(24px,7vw,110px);
  color:white; background:radial-gradient(ellipse at 91% 14%,#7366c070,transparent 55%),linear-gradient(150deg,#22213f,#373363); }
.signin-heading .brand-mark { width:51px; height:51px; margin-bottom:23px; }
.signin-heading h1 { font-size:clamp(42px,6vw,78px); letter-spacing:-.09em; line-height:1.12; white-space:nowrap; }
.signin-heading p { margin-top:13px; color:#dcd6f5; font-size:15px; line-height:1.65; }
.signin-modules { display:flex; flex-wrap:wrap; gap:8px; }
.signin-modules span { display:flex; align-items:center; gap:6px; border:1px solid #ffffff35; padding:6px 8px;
  border-radius:7px; color:#eeebff; font-size:12px; }
.signin-content { display:grid; place-items:center; padding:20px; }
.login-card { width:min(390px,100%); padding:26px 22px; border:1px solid var(--line); border-radius:22px;
  background:var(--paper); box-shadow:0 16px 50px #2b254b12; text-align:center; }
.login-card h2 { font-size:24px; letter-spacing:-.045em; }.login-card p { font-size:13px; line-height:1.65; color:var(--muted); margin-top:9px; }
.qr-box { display:grid; place-items:center; width:min(220px,100%); aspect-ratio:1; margin:15px auto 9px; border:1px solid var(--line); padding:6px; border-radius:12px; }
#qr { width:100%; height:auto; image-rendering:pixelated; }
.qr-placeholder { display:grid; gap:7px; justify-items:center; color:#736a9d; font-size:12px; }
.confirm-code { font-size:12px; color:var(--muted); }.confirm-code strong { color:var(--primary-dark); margin-left:4px; letter-spacing:.14em; }
.login-status { margin:9px 0 13px; font-size:12px; color:var(--muted); }
#dialog { padding:0; width:min(620px,calc(100vw - 26px)); max-height:calc(100svh - 26px); border:1px solid var(--line);
  border-radius:17px; background:var(--paper); color:var(--ink); box-shadow:0 25px 96px #24214148; }
#dialog::backdrop { background:#23213e65; backdrop-filter:blur(2px); }
.dialog-head { display:flex; gap:10px; justify-content:space-between; align-items:center; position:sticky; z-index:1; top:0;
  padding:13px 17px; background:#fff; border-bottom:1px solid var(--line); }.dialog-head h2 { font-size:19px; }
.dialog-body { padding:15px 17px; }.dialog-body > p { font-size:14px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.field { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:12px; font-weight:640; color:#565974; }
.field.span { grid-column:1/-1; }.field input,.field select,.field textarea { width:100%; min-width:0; min-height:34px; padding:7px 8px;
  border:1px solid #dbdeeb; background:#fbfbfe; border-radius:8px; color:var(--ink); font-size:14px; font-weight:400; }
.field textarea { resize:vertical; }.field input[type="file"] { font-size:12px; }.field small,.field-note { font-size:11px; color:var(--muted); }
.field-check { display:flex; align-items:center; gap:7px; min-height:29px; font-size:13px; }
input[type="checkbox"] { accent-color:var(--primary); }.form-grid details { grid-column:1/-1; border-top:1px solid var(--line); padding-top:8px; }
.form-grid summary { cursor:pointer; font-size:13px; color:var(--primary-dark); font-weight:650; margin-bottom:8px; }
.form-grid details .field { margin-bottom:8px; }
.modal-actions { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:7px; padding:10px 17px;
  background:#fff; border-top:1px solid var(--line); }.modal-actions button { min-width:73px; }
.error-text { color:#a03043; font-size:12px; padding:0 17px 9px; }
.versions { display:grid; gap:7px; }.version-row { display:flex; overflow-wrap:anywhere; justify-content:space-between; align-items:center; gap:10px;
  padding:7px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.version-row small { color:var(--muted); }.media-display { min-height:50px; display:grid; place-items:center; }
#toast { position:fixed; right:20px; bottom:20px; z-index:5; padding:10px 13px; border-radius:9px; color:#fff; background:#30295b;
  box-shadow:0 8px 20px #2b254b2a; font-size:13px; max-width:min(420px,calc(100vw - 40px)); }
#toast:empty { display:none; }

@media (max-width:1160px) {
  .shell { grid-template-columns:190px minmax(0,1fr); }.sidebar { padding-inline:12px; }
  .work-grid { grid-template-columns:minmax(0,1fr) minmax(205px,249px); gap:12px; }.page { padding-inline:22px; }
  .row-main { grid-template-columns:minmax(0,1fr) 97px 74px; }.priority,.task-date { gap:3px; }
}
@media (max-width:940px) {
  .work-grid { grid-template-columns:1fr; }.inspector { position:static; }.placeholder-inspector { display:none; }
  .work-grid.has-selection .inspector { grid-row:1; }
  .shell { grid-template-columns:156px minmax(0,1fr); }.brand { margin-inline:1px; font-size:16px; }.brand-mark { width:34px; height:34px; }
  .sidebar { padding-inline:9px; }.space-copy strong { font-size:12px; }.space-mark { width:27px; height:27px; }
  .space-picker { gap:6px; }.navigation a,.recycle,.logout { gap:7px; padding-left:9px; }
}
@media (max-width:650px) {
  .shell { display:block; }.sidebar { position:sticky; z-index:2; height:auto; min-height:0; padding:8px 11px 5px;
    display:grid; grid-template-columns:1fr minmax(115px,38%); gap:8px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { margin:0; }.space-picker { min-height:34px; margin:0; padding:4px; }.space-mark,.space-copy small { display:none; }
  .navigation { grid-column:1/-1; display:grid; grid-template-columns:repeat(5,1fr); gap:2px; }
  .navigation a { justify-content:center; gap:4px; padding:5px 2px; min-height:30px; font-size:11px; }.navigation a svg { width:14px; height:14px; }
  .sidebar-bottom { grid-column:1/-1; display:flex; align-items:center; justify-content:flex-end; margin:0; gap:8px; }
  .sidebar-bottom .sync-card { border:0; margin:0; padding:0; }.sidebar-bottom .sync-card small,.sync-dot { display:none; }
  .recycle,.logout { min-height:25px; padding:1px 5px; font-size:11px; }.sidebar-bottom svg { width:14px; height:14px; }
  .topbar { height:46px; padding:0 12px; gap:6px; }.top-actions { gap:6px; }.searchbar { width:min(205px,43vw); padding:4px 6px; }
  .breadcrumb { gap:4px; }.path-home,.breadcrumb > svg,kbd { display:none; }.account-avatar { width:25px; height:25px; font-size:11px; }
  .page { padding:17px 11px 27px; }.page-heading { margin-bottom:14px; }.page-heading h1 { font-size:28px; }.page-heading p { margin-top:4px; }
  .page-actions .button { padding:6px 8px; min-height:32px; }.week-strip { padding:12px 10px; }.week-grid { gap:4px; }
  .week-day { border-radius:6px; }.week-day strong { font-size:16px; }.week-heading { margin-bottom:10px; }
  .section-head { padding:13px 10px 8px; }.list-toolbar { padding-inline:10px; }
  .task-list { padding-inline:4px; }.task-row { gap:3px; min-height:44px; padding-inline:3px; }
  .row-main { grid-template-columns:minmax(0,1fr) 77px; }.priority { display:none; }.task-name { font-size:13px; }.task-date { font-size:10px; }
  .task-date svg { width:11px; height:11px; }.inspector { padding:13px; scroll-margin-top:125px; }
  .notes-grid,.ai-grid { grid-template-columns:1fr; gap:9px; }.notes-list,.ai-sidebar { max-height:193px; }.note-content { scroll-margin-top:125px; }
  .metric { gap:6px; padding:9px; }.currency-symbol { width:25px; height:25px; font-size:12px; }.ledger-table th,.ledger-table td { padding-inline:8px; }
  .signin { grid-template-columns:1fr; }.signin-brand { padding:22px 18px; gap:9px; }.signin-heading .brand-mark { display:none; }
  .signin-heading h1 { font-size:32px; }.signin-heading p { font-size:13px; margin-top:6px; }.signin-modules span { font-size:10px; padding:4px; }
  .signin-content { padding:12px; }.login-card { padding:17px 12px; }
}
@media (prefers-reduced-motion:no-preference) {
  .button,.navigation a,.task-row,.week-day { transition:background-color .14s,border-color .14s; }
}
