:root {
  color-scheme: light;
  --ink: 222 31% 20%;
  --muted: 218 12% 48%;
  --paper: 42 32% 97%;
  --surface: 45 38% 99%;
  --line: 38 20% 88%;
  --accent: 160 34% 34%;
  --accent-soft: 157 31% 92%;
  --gold: 37 71% 51%;
  --danger: 4 54% 48%;
  --shadow: 222 25% 35%;
  --font-display: 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.dark { color-scheme: light; }

/* List controls keep the owner's existing paper, ink and green visual language. */
.browse-filters { display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0; }
.browse-filters .field { flex:1 1 145px; }
.browse-filters .field.wide { flex-basis:220px; }
.browse-filters .field label { font-size:12px; }
.browse-filters .filter-actions { display:flex;flex-wrap:wrap;gap:8px;align-items:center; }
.browse-filters fieldset { display:contents; }
.browse-filters .input,.browse-filters .select { min-width:0; }
.browse-pager { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 24px;padding:13px 0;border-top:1px solid hsl(var(--line)); }
.browse-pager label { display:flex;align-items:center;gap:8px;font-size:12px; }
.browse-pager .select { width:auto;min-width:72px; }
.browse-pager .browse-range { color:hsl(var(--muted));font-size:12px; }
.browse-pager .browse-buttons { display:flex;gap:8px;flex-wrap:wrap; }
.address-diagnostic dt { font-weight:600; margin-top:16px; }
.address-diagnostic dd { margin:6px 0 0; }
.address-diagnostic pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.browse-feedback { margin:12px 0; }
.browse-feedback .button { margin:10px 8px 0 0; }
.browse-filters .field-hint { font-size:12px; }
@media (max-width:767px) {
  .browse-filters { display:grid;grid-template-columns:minmax(0,1fr); }
  .browse-filters fieldset { display:contents; }
  .browse-pager { align-items:start; }
  .browse-pager .browse-range { flex-basis:100%;order:-1; }
  .browse-pager .button,.browse-filters .button { min-height:42px; }
}

* { box-sizing: border-box; }
svg { display:inline-block;width:1.05em;height:1.05em;flex:none;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
html { min-height: 100%; background: hsl(var(--paper)); scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: hsl(var(--paper)); color: hsl(var(--ink)); font: 15px/1.5 var(--font-body); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid hsl(var(--gold) / .62); outline-offset: 2px; }
a { color: inherit; }
.shell { min-height: 100dvh; }
.app-frame { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display:flex; flex-direction:column; padding: 25px 17px 19px; background: hsl(40 35% 94%); border-right: 1px solid hsl(var(--line)); z-index: 5; }
.brand { display:flex; align-items:center; gap:11px; padding: 0 10px 27px; text-decoration:none; }
.brand-mark { width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:hsl(var(--accent));color:white;font:800 19px var(--font-display); letter-spacing:-2px; }
.brand-name { font:800 18px var(--font-display); letter-spacing:-.7px; }
.brand-caption { color:hsl(var(--muted));font-size:11px;letter-spacing:.04em; }
.nav-label { color:hsl(var(--muted));font-size:10px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;padding:12px 11px 7px; }
.nav-list { display:grid; gap:3px; }
.nav-link { display:flex;align-items:center;gap:12px;padding:10px 11px;border-radius:9px;color:hsl(var(--muted));text-decoration:none;font-size:13px;font-weight:600; transition:background .18s,color .18s,transform .18s; }
.nav-link:hover { background:hsl(var(--surface));color:hsl(var(--ink));transform:translateX(2px); }
.nav-link.active { background:hsl(var(--accent-soft));color:hsl(var(--accent)); }
.nav-icon { width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center; }
.nav-icon svg { width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.collection-nav { margin-top:19px; }
.collection-nav .nav-link { padding-top:8px;padding-bottom:8px; }
.collection-dot { width:7px;height:7px;border-radius:50%;background:hsl(var(--gold)); margin-left:4px; }
.sidebar-bottom { margin-top:auto; }
.base-status { padding:14px 13px; border:1px solid hsl(var(--line));border-radius:12px;background:hsl(42 36% 97%); }
.status-head { display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700; }
.status-light { width:7px;height:7px;border-radius:50%;background:hsl(var(--accent));box-shadow:0 0 0 3px hsl(var(--accent) / .12); }
.status-copy { margin:6px 0 0 15px;color:hsl(var(--muted));font-size:11px; }
.sidebar-account { display:flex;align-items:center;gap:10px;width:100%;margin-top:12px;padding:9px 10px;border:0;background:transparent;text-align:left;border-radius:10px;cursor:pointer; }
.sidebar-account:hover { background:hsl(var(--surface)); }
.avatar { width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:hsl(157 31% 84%);color:hsl(var(--accent));font-size:11px;font-weight:800; }
.account-name { font-size:12px;font-weight:700; }
.account-meta { color:hsl(var(--muted));font-size:10px; }
.main { min-width:0; padding: 0 clamp(22px,5vw,72px) 68px; }
.topbar { height:77px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid hsl(var(--line)); }
.crumb { display:flex;align-items:center;gap:9px;color:hsl(var(--muted));font-size:12px; }
.crumb strong { color:hsl(var(--ink));font-weight:700; }
.top-actions { display:flex;align-items:center;gap:9px; }
.quiet-link { display:flex;align-items:center;gap:7px;border:0;background:none;color:hsl(var(--muted));cursor:pointer;font-size:12px;padding:8px; }
.quiet-link:hover { color:hsl(var(--accent)); }
.content { max-width:1120px;margin:0 auto; }
.page-head { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:36px 0 25px; }
.eyebrow { color:hsl(var(--accent));font:500 10px var(--font-mono);letter-spacing:.1em;text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1 { font:700 clamp(28px,3.3vw,40px)/1.12 var(--font-display);letter-spacing:-1.7px;margin:8px 0 7px; }
h2 { font:700 19px/1.2 var(--font-display);letter-spacing:-.5px;margin:0; }
h3 { font:700 15px var(--font-display);letter-spacing:-.2px;margin:0; }
.lede { color:hsl(var(--muted));margin:0;font-size:14px; }
.button { min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid transparent;border-radius:9px;background:hsl(var(--accent));color:white;font-weight:700;font-size:12px;text-decoration:none;cursor:pointer;transition:transform .18s,background .18s,box-shadow .18s; }
.button:hover { background:hsl(160 37% 27%);transform:translateY(-1px);box-shadow:0 6px 15px hsl(var(--accent)/.16); }
.button.secondary { color:hsl(var(--ink));background:hsl(var(--surface));border-color:hsl(var(--line)); }
.button.secondary:hover { background:hsl(42 30% 97%);box-shadow:none; }
.button.ghost { background:transparent;color:hsl(var(--accent));border-color:hsl(var(--line)); }
.button.danger { background:hsl(var(--danger)); }
.button.small { min-height:33px;padding:0 11px;font-size:11px; }
.button:disabled { opacity:.5;cursor:not-allowed;transform:none;box-shadow:none; }
.icon-button { border:1px solid hsl(var(--line));background:hsl(var(--surface));width:36px;height:36px;border-radius:9px;display:grid;place-items:center;cursor:pointer; }
.icon-button:hover { background:hsl(var(--accent-soft));color:hsl(var(--accent)); }
.panel { background:hsl(var(--surface));border:1px solid hsl(var(--line));border-radius:14px; }
.search-hero { position:relative;display:flex;align-items:center;gap:14px;padding:19px 21px;border:1px solid hsl(160 27% 77%);border-radius:14px;background:linear-gradient(115deg,hsl(157 31% 92%),hsl(42 46% 98%) 75%);box-shadow:0 10px 28px hsl(var(--shadow)/.04); }
.search-symbol { color:hsl(var(--accent));font-size:20px; }
.search-hero input { flex:1;min-width:0;background:transparent;border:0;outline:none;font:500 15px var(--font-body);color:hsl(var(--ink)); }
.search-hero input::placeholder { color:hsl(var(--muted)); }
.keycap { color:hsl(var(--muted));border:1px solid hsl(var(--line));border-radius:5px;padding:2px 6px;font:10px var(--font-mono);background:hsl(var(--surface)/.7); }
.section-head { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:31px 0 14px; }
.section-title { display:flex;align-items:baseline;gap:10px; }
.section-count { color:hsl(var(--muted));font:11px var(--font-mono); }
.collection-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.collection-card { position:relative;min-height:164px;padding:18px 18px 16px;text-decoration:none;overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s; }
.collection-card::after { content:"";position:absolute;right:-27px;top:-39px;width:100px;height:100px;border-radius:50%;border:1px solid hsl(var(--accent)/.10);box-shadow:0 0 0 16px hsl(var(--accent)/.025),0 0 0 32px hsl(var(--accent)/.02);pointer-events:none; }
.collection-card:hover { transform:translateY(-3px);border-color:hsl(160 27% 70%);box-shadow:0 12px 28px hsl(var(--shadow)/.08); }
.collection-top { display:flex;justify-content:space-between;align-items:flex-start; }
.collection-name { font:700 17px var(--font-display); }
.collection-arrow { color:hsl(var(--accent));font-size:18px; }
.collection-purpose { color:hsl(var(--muted));font-size:12px;margin:4px 0 22px;max-width:270px; }
.collection-foot { display:flex;justify-content:space-between;align-items:center;border-top:1px solid hsl(var(--line));padding-top:11px;font-size:11px; }
.record-count { font-weight:700; }
.last-change { color:hsl(var(--muted));text-align:right;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.activity-layout { display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,.7fr);gap:15px;margin-top:4px; }
.activity-panel { padding:5px 20px; }
.activity-row { display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid hsl(var(--line)); }
.activity-row:last-child { border-bottom:0; }
.activity-mark { width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:hsl(39 55% 93%);color:hsl(37 66% 39%);font-size:11px; }
.activity-main { min-width:0;font-size:12px; }
.activity-main strong { font-weight:700; }
.activity-sub { color:hsl(var(--muted));font-size:10px;margin-top:2px; }
.activity-time { color:hsl(var(--muted));font:10px var(--font-mono);white-space:nowrap; }
.insight-panel { padding:19px; background:hsl(222 29% 24%);color:hsl(42 35% 95%);border:0; }
.insight-panel .eyebrow { color:hsl(157 43% 68%); }
.insight-panel h3 { margin:10px 0 13px;font-size:18px; }
.insight-stat { display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid hsl(0 0% 100%/.12);font-size:11px;color:hsl(0 0% 100%/.69); }
.insight-stat strong { color:hsl(42 35% 95%);font:500 11px var(--font-mono); }
.main-search { max-width:520px; }
.search-results { display:grid;gap:10px;margin-top:17px; }
.result-card { padding:17px 19px; }
.result-top { display:flex;align-items:flex-start;justify-content:space-between;gap:15px; }
.result-title { font:700 16px var(--font-display);text-decoration:none; }
.result-title:hover { color:hsl(var(--accent)); }
.result-collection { color:hsl(var(--muted));font-size:11px;margin:3px 0 10px; }
.result-snippet { color:hsl(var(--ink));font-size:13px;margin:0 0 11px; }
.result-foot { display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:hsl(var(--muted));font-size:10px; }
.pill { display:inline-flex;align-items:center;border-radius:99px;padding:4px 8px;background:hsl(var(--accent-soft));color:hsl(var(--accent));font-size:10px;font-weight:700; }
.pill.possible { background:hsl(39 55% 92%);color:hsl(35 72% 38%); }
.list-tools { display:flex;align-items:center;gap:9px;flex-wrap:wrap; }
.input,.select,.textarea { width:100%;min-height:40px;border:1px solid hsl(var(--line));border-radius:8px;background:hsl(var(--surface));padding:9px 11px;color:hsl(var(--ink));font-size:13px; }
.textarea { min-height:94px;resize:vertical; }
.input::placeholder,.textarea::placeholder { color:hsl(var(--muted)); }
.compact { width:auto;min-width:145px; }
.filter-search { position:relative;min-width:200px; }
.filter-search .input { padding-left:32px; }
.filter-search:before { content:"⌕";position:absolute;left:11px;top:7px;color:hsl(var(--muted));font-size:18px; }
.records-list { display:grid;gap:8px; }
.record-row { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:15px 18px;text-decoration:none;transition:background .16s,border-color .16s; }
.record-row:hover { background:hsl(157 30% 97%);border-color:hsl(160 27% 76%); }
.record-row-title { display:block;font-weight:700;font-size:13px; }
.record-row-detail { color:hsl(var(--muted));font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.record-row-date { color:hsl(var(--muted));font:10px var(--font-mono);white-space:nowrap; }
.empty-state { text-align:center;padding:50px 20px; }
.empty-mark { width:44px;height:44px;margin:0 auto 15px;border-radius:14px;display:grid;place-items:center;background:hsl(var(--accent-soft));color:hsl(var(--accent));font-size:19px; }
.empty-state p { color:hsl(var(--muted));font-size:13px;margin:7px 0 18px; }
.form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
.field { display:grid;gap:6px;min-width:0; }
.field.full { grid-column:1/-1; }
.field label { font-size:11px;font-weight:700;color:hsl(var(--ink)); }
.field-hint { color:hsl(var(--muted));font-size:10px; }
.tag-control { display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px;border:1px solid hsl(var(--line));border-radius:8px;background:hsl(42 33% 98%); }
.tag-control .tag-entry { flex:1;min-width:110px;border:0;background:transparent;min-height:30px;padding:4px 6px;outline:none; }
.tag-chips { display:flex;flex-wrap:wrap;gap:5px; }
.tag-chip { display:inline-flex;align-items:center;gap:5px;padding:4px 7px 4px 9px;border-radius:99px;background:hsl(var(--accent-soft));color:hsl(var(--accent));font-size:10px;font-weight:700; }
.tag-chip button { display:grid;place-items:center;width:14px;height:14px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer; }
.tag-chip svg { width:11px;height:11px; }
.web-link-preview { display:inline-flex;align-items:center;gap:5px;margin-top:7px;color:hsl(var(--accent));font-size:11px;font-weight:700;text-decoration:none; }
.web-link-preview:hover { text-decoration:underline; }
.web-link-preview svg { width:14px;height:14px; }
.switch-row { display:flex;align-items:center;gap:10px;min-height:40px; }
.switch-row input { width:18px;height:18px;accent-color:hsl(var(--accent)); }
.dialog-backdrop { position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:18px;background:hsl(222 31% 20%/.42);backdrop-filter:blur(3px); }
.dialog { width:min(620px,100%);max-height:min(88dvh,850px);overflow:auto;padding:24px;background:hsl(var(--paper));border:1px solid hsl(var(--line));border-radius:16px;box-shadow:0 24px 75px hsl(var(--shadow)/.23);animation:dialog-in .18s ease-out; }
.collection-editor-field { border:1px solid hsl(var(--line));border-radius:10px;padding:14px;margin:12px 0;background:hsl(var(--paper)); }
.collection-editor-field .list-tools { margin-top:10px;flex-wrap:wrap; }
.collection-editor-options { display:grid;gap:8px;margin-top:12px; }
.collection-editor-option { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px; }
.collection-editor-option label { overflow-wrap:anywhere;font-size:12px; }
.collection-editor-check { display:flex;align-items:center;gap:7px;font-size:12px; }
.collection-editor-help { padding:12px 14px;background:hsl(var(--accent-soft));border:1px solid hsl(var(--line));border-radius:10px;margin-bottom:18px; }
.collection-editor-help p { font-size:12px;margin:6px 0; }
.collection-impact { overflow-wrap:anywhere; }
.collection-impact li { margin:6px 0; }
.collection-loading { min-height:70px;border-radius:8px;background:hsl(var(--line)/.45); }
.dialog-head { display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:19px; }
.dialog-head p { color:hsl(var(--muted));font-size:12px;margin:5px 0 0; }
.dialog-actions { display:flex;justify-content:flex-end;gap:8px;margin-top:20px; }
.template-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.template-choice { display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid hsl(var(--line));border-radius:10px;background:hsl(var(--surface));text-align:left;cursor:pointer; }
.template-choice:hover { border-color:hsl(var(--accent));background:hsl(var(--accent-soft)); }
.template-choice strong { font-size:12px; }
.template-choice span { color:hsl(var(--muted));font-size:10px; }
.divider-label { display:flex;align-items:center;gap:10px;color:hsl(var(--muted));font-size:10px;margin:18px 0; }
.divider-label:before,.divider-label:after { content:"";height:1px;background:hsl(var(--line));flex:1; }
.field-builder { display:grid;gap:8px;margin-top:12px; }
.builder-row { display:grid;grid-template-columns:1.2fr 1fr auto;gap:8px; }
.builder-extra { grid-column:1/-1; }
.link-picker { position:relative; }
.link-option { display:block;width:100%;padding:9px 11px;border:0;border-bottom:1px solid hsl(var(--line));background:hsl(var(--surface));text-align:left;font-size:12px;cursor:pointer; }
.link-option:last-child { border-bottom:0; }
.link-option:hover { background:hsl(var(--accent-soft));color:hsl(var(--accent)); }
.record-layout { display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start; }
.record-meta { display:flex;gap:8px;align-items:center;color:hsl(var(--muted));font-size:11px;margin:12px 0 22px; }
.record-fields { padding:21px; }
.record-fields-title { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.record-field-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px; }
.record-field { border-bottom:1px solid hsl(var(--line));padding-bottom:12px;min-width:0; }
.record-field label { display:block;color:hsl(var(--muted));font-size:10px;margin-bottom:5px; }
.record-field .input,.record-field .textarea,.record-field .select { background:hsl(42 33% 98%); }
.record-side { display:grid;gap:13px; }
.side-panel { padding:17px; }
.side-panel h3 { margin-bottom:13px; }
.side-list { display:grid;gap:10px; }
.side-item { color:hsl(var(--muted));font-size:11px; }
.side-item a { display:block;color:hsl(var(--ink));font-weight:700;text-decoration:none; }
.side-item a:hover { color:hsl(var(--accent)); }
.side-item small { display:block;margin-top:2px; }
.note-row { padding:12px 0;border-bottom:1px solid hsl(var(--line));font-size:12px; }
.note-row:last-child { border-bottom:0; }
.note-text { margin:0 0 7px; }
.note-meta { color:hsl(var(--muted));font-size:10px;display:flex;justify-content:space-between;gap:8px; }
.history-item { display:grid;grid-template-columns:1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid hsl(var(--line));font-size:12px; }
.history-item:last-child { border-bottom:0; }
.history-detail { color:hsl(var(--muted));font-size:10px;margin-top:3px; }
.tab-row { display:flex;gap:5px;border-bottom:1px solid hsl(var(--line));margin-bottom:18px; }
.tab { padding:10px 13px;border:0;background:none;border-bottom:2px solid transparent;color:hsl(var(--muted));font-weight:700;font-size:12px;cursor:pointer; }
.tab.active { color:hsl(var(--accent));border-color:hsl(var(--accent)); }
.memory-list { display:grid;gap:10px; }
.memory-card { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;padding:16px 18px; }
.memory-card p { font-size:13px;margin:0 0 8px; }
.memory-meta { display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:hsl(var(--muted));font-size:10px; }
.memory-connection { display:inline-flex;gap:5px;align-items:center;max-width:100%; }
.memory-connection svg { width:13px;height:13px;flex-shrink:0; }
.memory-connection span { overflow-wrap:anywhere;min-width:0; }
.memory-actions { display:flex;align-items:flex-start;gap:5px; }
.text-button { border:0;background:transparent;color:hsl(var(--muted));font-size:11px;font-weight:700;cursor:pointer;padding:6px; }
.text-button:hover { color:hsl(var(--accent)); }
.text-button.danger-text:hover { color:hsl(var(--danger)); }
.connection-form { max-width:620px;padding:20px; }
.connect-address { display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px dashed hsl(160 25% 67%);border-radius:9px;background:hsl(var(--accent-soft)); }
.connect-app { margin-bottom:15px; }
.connect-app h2 { margin-bottom:12px; }
.connect-app .connect-address { flex-wrap:wrap; }
.connect-app .connect-address > div { min-width:0;flex:1 1 210px; }
.connect-app .connect-address button { flex:none; }
.connect-app .notice { margin-top:12px;overflow-wrap:anywhere; }
.connection-meta { overflow-wrap:anywhere; }
.mono { font:12px var(--font-mono);overflow-wrap:anywhere; }
.instruction { padding:17px 19px;margin-top:14px; }
.instruction ol { margin:10px 0 0;padding-left:20px;color:hsl(var(--muted));font-size:12px; }
.instruction li { margin:6px 0; }
.connection-list { display:grid;gap:9px;margin-top:20px; }
.connection-card { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:16px 18px; }
.connection-name { font-size:13px;font-weight:700; }
.connection-meta { display:flex;gap:7px;flex-wrap:wrap;margin-top:6px;color:hsl(var(--muted));font-size:10px; }
.key-reveal { padding:15px;border:1px solid hsl(37 65% 70%);border-radius:10px;background:hsl(40 77% 96%);margin-top:15px; }
.key-reveal strong { display:block;font-size:11px;margin-bottom:8px; }
.key-row { display:flex;align-items:center;gap:8px; }
.key-row code { flex:1;min-width:0;overflow-wrap:anywhere;font:12px var(--font-mono); }
.warning { color:hsl(35 66% 38%);font-size:10px;margin:8px 0 0; }
.trash-group { margin-bottom:28px; }
.trash-note { padding:12px 15px;background:hsl(39 56% 92%);color:hsl(34 62% 35%);border-radius:9px;font-size:11px;margin-bottom:18px; }
.trash-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;padding:13px 16px;border-bottom:1px solid hsl(var(--line)); }
.trash-row:first-child { border-top:1px solid hsl(var(--line)); }
.trash-title { font-size:12px;font-weight:700; }
.trash-meta { color:hsl(var(--muted));font-size:10px;margin-top:3px; }
.toast-region { position:fixed;right:20px;bottom:20px;z-index:50;display:grid;gap:8px;width:min(390px,calc(100% - 40px)); }
.toast { padding:13px 16px;background:hsl(222 29% 24%);color:white;border-radius:10px;box-shadow:0 8px 27px hsl(var(--shadow)/.22);font-size:12px;animation:toast-in .2s ease-out; }
.toast.error { background:hsl(var(--danger)); }
.skeleton { min-height:82px;position:relative;overflow:hidden;background:hsl(40 20% 92%);border-radius:12px; }
.skeleton:after { content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,hsl(0 0% 100%/.55) 48%,transparent 75%);transform:translateX(-100%);animation:shimmer 1.6s infinite; }
.error-box { padding:18px;border:1px solid hsl(4 40% 75%);border-radius:11px;background:hsl(4 50% 97%);color:hsl(var(--danger));font-size:12px; }
.visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.login-wrap { min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);background:hsl(42 32% 97%); }
.login-story { position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(35px,7vw,95px);background:hsl(222 29% 24%);color:hsl(42 35% 95%); }
.login-story:after { content:"";position:absolute;right:-14vw;bottom:-26vw;width:55vw;height:55vw;border:1px solid hsl(157 43% 68%/.24);border-radius:50%;box-shadow:0 0 0 32px hsl(157 43% 68%/.035),0 0 0 88px hsl(157 43% 68%/.035),0 0 0 150px hsl(157 43% 68%/.025); }
.login-story .brand { padding:0;position:relative;z-index:1; }
.login-story .brand-mark { background:hsl(157 43% 68%);color:hsl(222 29% 24%); }
.login-story .brand-caption { color:hsl(0 0% 100%/.55); }
.login-copy { max-width:520px;position:relative;z-index:1;margin: auto 0; }
.login-copy .eyebrow { color:hsl(157 43% 68%); }
.login-copy h1 { font-size:clamp(42px,6.3vw,78px);letter-spacing:-4px;line-height:1.02;margin:19px 0; }
.login-copy p { color:hsl(0 0% 100%/.63);max-width:380px;font-size:15px; }
.login-foot { position:relative;z-index:1;color:hsl(0 0% 100%/.43);font-size:10px;letter-spacing:.04em; }
.login-form-side { display:grid;place-items:center;padding:35px; }
.login-form { width:min(390px,100%); }
.login-form h2 { font-size:24px;margin:0 0 6px; }
.login-form > p { color:hsl(var(--muted));font-size:13px;margin-bottom:27px; }
.login-form .field { margin-bottom:14px; }
.login-form .input { min-height:47px; }
.login-form .button { width:100%;min-height:45px;margin-top:6px; }
.login-help { color:hsl(var(--muted));font-size:10px;margin-top:14px;text-align:center; }
.mobile-header { display:none; }
.notice { padding:12px 15px;border-left:3px solid hsl(var(--gold));background:hsl(39 56% 93%);color:hsl(35 52% 34%);font-size:11px;border-radius:0 7px 7px 0; }
.muted { color:hsl(var(--muted)); }
.mt-16 { margin-top:16px; }
.hidden { display:none!important; }
.help-nav { margin-top:12px; }
.help-panel { margin:-8px 0 22px;border:1px solid hsl(160 24% 79%);border-radius:11px;background:hsl(157 31% 96%); }
.help-panel summary { display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:10px 14px;color:hsl(var(--accent));font-size:12px;font-weight:700;cursor:pointer;list-style:none; }
.help-panel summary::-webkit-details-marker { display:none; }
.help-panel summary::marker { content:""; }
.help-panel summary::after { content:"+";font:16px var(--font-mono); }
.help-panel[open] summary::after { content:"−"; }
.help-panel-body { padding:0 16px 14px; }
.help-panel-body ul { margin:0;padding-left:19px;display:grid;gap:7px;color:hsl(var(--muted));font-size:12px;line-height:1.55; }
.search-hint,.search-guidance { margin:8px 2px 0;color:hsl(var(--muted));font-size:11px; }
.search-guidance { margin:0 0 12px;font-size:12px; }
.getting-started { margin:19px 0;padding:16px 18px; }
.getting-started-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px; }
.getting-started-head h2 { margin-top:3px; }
.getting-started ol { list-style:none;margin:0;padding:0;display:grid;gap:2px; }
.setup-step { display:flex;align-items:center;gap:10px;width:100%;min-height:43px;padding:7px 9px;border:0;border-radius:8px;background:transparent;text-align:left;text-decoration:none;font-size:13px;font-weight:600;cursor:pointer; }
.setup-step:hover { background:hsl(var(--accent-soft)); }
.setup-step.complete { color:hsl(var(--muted)); }
.setup-step-mark { width:25px;height:25px;flex:none;display:grid;place-items:center;border:1px solid hsl(var(--line));border-radius:50%;color:hsl(var(--muted));font-size:11px; }
.setup-step-mark.complete { border-color:hsl(var(--accent));background:hsl(var(--accent));color:white;font-weight:800; }
.connect-steps { padding:17px 19px;margin:0 0 15px; }
.connect-steps h2 { margin-bottom:9px; }
.connect-steps ol { margin:0;padding-left:23px;color:hsl(var(--muted));font-size:12px; }
.connect-steps li { padding:4px 0 4px 3px; }
.help-sections { display:grid;gap:12px;margin:0 0 28px; }
.help-section { padding:19px 21px; }
.help-section h2 { margin-bottom:10px; }
.help-section p,.help-section li,.help-section dd { color:hsl(var(--muted));font-size:13px;line-height:1.65; }
.help-section p { margin:0; }
.help-section ul,.help-section ol { margin:0;padding-left:22px; }
.help-section li+li { margin-top:5px; }
.help-section a { color:hsl(var(--accent));font-weight:700; }
.help-section dl { display:grid;gap:8px;margin:0; }
.help-section dl>div { display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px; }
.help-section dt { font-size:12px;font-weight:700; }
.help-section dd { margin:0; }
.dialog-help { margin:-7px 0 12px;color:hsl(var(--muted));font-size:12px;line-height:1.55; }
.builder-type { display:grid;gap:5px;min-width:0; }
.field-type-help { line-height:1.4; }
.field-type-help,.link-field-help,.note-help,.account-export-help { font-size:12px;line-height:1.5; }
.record-edit-hint { margin:-8px 0 16px;line-height:1.5; }
.storage-meter { margin-top:17px;padding-top:15px;border-top:1px solid hsl(var(--line)); }
.storage-meter-head { display:flex;justify-content:space-between;gap:10px;font-size:11px; }
.storage-meter-head strong { font-size:11px; }
.storage-track { height:7px;margin:9px 0 6px;overflow:hidden;border-radius:99px;background:hsl(var(--line)); }
.storage-track span { display:block;height:100%;border-radius:inherit;background:hsl(var(--accent)); }
.storage-plan { color:hsl(var(--muted));font-size:10px; }
.file-match-names { margin:7px 0 0;color:hsl(var(--muted));font-size:11px;line-height:1.5; }
.file-section { margin-top:16px; }
.file-help-line { margin:4px 0;color:hsl(var(--muted));font-size:11px;line-height:1.5; }
.file-dropzone { width:100%;display:flex;align-items:center;gap:12px;margin:13px 0 5px;padding:13px;border:1px dashed hsl(var(--line));border-radius:12px;background:hsl(42 35% 98%);color:hsl(var(--ink));text-align:left;cursor:pointer; }
.file-dropzone:hover,.file-dropzone.drag-over,.file-dropzone:focus-visible { border-color:hsl(var(--accent));background:hsl(var(--accent) / .06);outline:none; }
.file-dropzone.uploading { opacity:.72; }
.file-drop-icon { width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:9px;background:hsl(var(--accent) / .1);color:hsl(var(--accent)); }
.file-drop-icon svg { width:17px;height:17px; }
.file-dropzone strong,.file-dropzone small { display:block; }
.file-dropzone strong { font-size:11px; }
.file-dropzone small { margin-top:3px;color:hsl(var(--muted));font-size:10px; }
.file-upload-status { min-height:18px;display:flex;align-items:center;gap:9px;margin:5px 0;font-size:11px;color:hsl(var(--muted)); }
.file-upload-status progress { width:92px;height:8px;accent-color:hsl(var(--accent)); }
.file-list { display:grid;gap:9px;margin-top:10px; }
.files-storage { padding:16px 20px;margin-bottom:20px; }
.files-storage .storage-meter { margin:0;padding:0;border:0; }
.files-tools { display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0 12px; }
.files-tools .tab-row { margin:0; }
.files-tools form { display:flex;gap:7px;flex:1;min-width:210px; }
.files-browser .file-card { padding:18px;background:hsl(var(--surface)); }
.file-membership { margin:0;color:hsl(var(--muted));font-size:12px; }
.file-membership a { color:hsl(var(--accent));font-weight:700; }
.belongs-control { display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;color:hsl(var(--muted));font-size:12px; }
.belongs-control strong { color:hsl(var(--ink));font-weight:600;overflow-wrap:anywhere; }
.belongs-picker { padding:14px;margin:10px 0;border:1px solid hsl(var(--line));border-radius:10px; }
.belongs-picker .field { margin:12px 0; }
.record-counts { display:inline-flex;gap:12px;margin-top:6px;color:hsl(var(--muted));font-size:11px; }
.record-counts span { display:inline-flex;align-items:center;gap:4px; }
.collection-sections { margin-top:30px; }
.collection-sections .help-panel { margin:12px 0; }
.belongs-picker button { min-height:36px; }
.file-card.file-highlight { border:2px solid hsl(var(--accent));background:hsl(var(--accent-soft));scroll-margin:24px; }
.file-picker-results { display:grid;gap:8px;margin-top:14px; }
.file-picker-choice { display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px;border:1px solid hsl(var(--line));border-radius:9px; }
.file-picker-choice strong { display:block;overflow-wrap:anywhere;font-size:12px; }
.file-picker-choice small { color:hsl(var(--muted));font-size:11px; }
@media (max-width:760px) {
  .files-tools { align-items:stretch; }
  .files-tools .tab-row,.files-tools form { width:100%; }
  .files-tools form .input { min-width:0;flex:1; }
  .mobile-nav { grid-template-columns:repeat(7,minmax(0,1fr))!important; }
  .file-actions .text-button { min-height:36px; }
}
.file-card { display:grid;gap:9px;padding:11px;border:1px solid hsl(var(--line));border-radius:12px;background:white; }
.file-main { display:flex;align-items:center;gap:10px;min-width:0; }
.file-preview,.file-placeholder { width:48px;height:48px;flex:none;object-fit:cover;border-radius:8px;background:hsl(42 28% 96%); }
.file-placeholder { display:grid;place-items:center;color:hsl(var(--muted)); }
.file-placeholder svg { width:18px;height:18px; }
.file-details { display:grid;gap:3px;min-width:0; }
.file-name { overflow-wrap:anywhere;font-size:11px; }
.file-meta { color:hsl(var(--muted));font-size:10px;line-height:1.45; }
.file-caption-label { margin-bottom:-6px;font-size:10px;font-weight:700; }
.file-caption-edit { display:flex;gap:7px; }
.file-caption-edit .input { min-width:0;min-height:34px;font-size:11px; }
.file-caption-edit .button { flex:none; }
.file-actions { display:flex;align-items:center;gap:14px;flex-wrap:wrap; }
.file-actions .text-button { padding:2px 0;font-size:11px; }
.no-files { margin:3px 0;font-size:11px; }
.trash-row { align-items:flex-start; }
.trash-row .list-tools { flex-wrap:wrap; }
@keyframes shimmer { to { transform:translateX(100%); } }
@keyframes toast-in { from { opacity:0;transform:translateY(8px); } to { opacity:1;transform:translateY(0); } }
@keyframes dialog-in { from { opacity:0;transform:translateY(8px) scale(.99); } to { opacity:1;transform:translateY(0) scale(1); } }
@media (max-width: 980px) {
  .app-frame { grid-template-columns:215px minmax(0,1fr); }
  .main { padding-left:28px;padding-right:28px; }
  .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .record-layout { grid-template-columns:minmax(0,1fr) 230px; }
}
@media (max-width: 760px) {
  .app-frame { display:block;padding-bottom:62px; }
  .sidebar { display:none; }
  .main { padding:0 18px 42px; }
  .topbar { height:60px; }
  .mobile-header { display:flex;align-items:center;gap:9px;font:800 15px var(--font-display); }
  .mobile-header .brand-mark { width:28px;height:28px;font-size:16px; }
  .crumb { display:none; }
  .page-head { padding:28px 0 20px;align-items:flex-start; }
  .page-head .button { flex:none; }
  h1 { font-size:31px;letter-spacing:-1.2px; }
  .lede { font-size:12px; }
  .mobile-nav { position:fixed;inset:auto 0 0;z-index:10;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:hsl(42 35% 97%/.96);backdrop-filter:blur(14px);border-top:1px solid hsl(var(--line)); }
  .mobile-nav .nav-link { display:flex;flex-direction:column;gap:3px;padding:5px 2px;border-radius:8px;font-size:8px; }
  .mobile-nav .nav-icon,.mobile-nav .nav-icon svg { width:18px;height:18px; }
  .collection-grid { grid-template-columns:1fr; }
  .collection-card { min-height:144px; }
  .activity-layout { grid-template-columns:1fr; }
  .activity-panel { padding:5px 14px; }
  .insight-panel { order:-1; }
  .search-hero { padding:14px;gap:9px; }
  .search-hero input { font-size:13px; }
  .keycap { display:none; }
  .record-layout { grid-template-columns:1fr; }
  .record-side { grid-template-columns:1fr; }
  .record-field-list { grid-template-columns:1fr; }
  .list-tools { width:100%; }
  .filter-search { flex:1;min-width:150px; }
  .compact { flex:1;min-width:120px; }
  .template-grid { grid-template-columns:1fr; }
  .getting-started { padding:14px; }
  .help-section { padding:16px; }
  .help-section dl>div { grid-template-columns:100px minmax(0,1fr);gap:9px; }
  .connect-steps { padding:15px; }
  .trash-row { grid-template-columns:minmax(0,1fr);gap:8px;padding:13px 12px; }
  .trash-row .list-tools { justify-content:flex-start; }
  .file-caption-edit { align-items:stretch; }
  .file-caption-edit .button { min-height:36px; }
  .file-actions { gap:10px; }
  .login-wrap { display:block; }
  .login-story { min-height:36dvh;padding:25px 24px 30px; }
  .login-story .login-copy { margin:38px 0 6px; }
  .login-copy h1 { font-size:43px;letter-spacing:-2px; }
  .login-copy p { font-size:13px;margin-bottom:0; }
  .login-foot { display:none; }
  .login-form-side { padding:35px 24px; }
  .login-form h2 { font-size:22px; }
  .connect-address { align-items:flex-start;flex-direction:column; }
}
@media (max-width: 420px) {
  .main { padding-left:14px;padding-right:14px; }
  .page-head { gap:9px; }
  .page-head .button { padding:0 10px;min-height:36px;font-size:11px; }
  .top-actions .quiet-link { font-size:0; }
  .top-actions .quiet-link svg { width:17px;height:17px; }
  .memory-card { grid-template-columns:1fr; }
  .memory-actions { justify-content:flex-end; }
  .builder-row { grid-template-columns:1fr 1fr; }
  .builder-row .icon-button { grid-column:2;justify-self:end; }
  .storage-meter-head { flex-direction:column;gap:3px; }
  .file-card { padding:10px; }
  .file-caption-edit { flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
}
