/* Memória. Graphite instrument, one champagne accent, type does the work. */
:root {
  --ink: #111315;
  --panel: #181B1E;
  --raise: #1F2327;
  --line: #2A2F34;
  --line-soft: #22262A;
  --text: #E8E6E1;
  --text-2: #A9ACAE;
  --text-3: #73787D;
  --accent: #D6C2A2;
  --accent-ink: #17140F;
  --accent-wash: rgba(214, 194, 162, 0.10);
  --alert: #D3907F;
  --ok: #9DB5A6;
  --c-nota: #CDBB9E;
  --c-decisao: #9DB5A6;
  --c-tarefa: #C99A8C;
  --c-aprendizado: #9EAAC0;
  --scrim: rgba(8, 9, 10, 0.66);
  --dock-bg: rgba(24, 27, 30, 0.86);
  --display: ui-serif, "New York", "Sitka Display", "Sitka Text", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
  --dock-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #F1F2F3;
    --panel: #FFFFFF;
    --raise: #F6F7F8;
    --line: #DCDFE2;
    --line-soft: #E8EAEC;
    --text: #16181A;
    --text-2: #4F5458;
    --text-3: #868B90;
    --accent: #8A6F45;
    --accent-ink: #FFFFFF;
    --accent-wash: rgba(138, 111, 69, 0.08);
    --alert: #A9523F;
    --ok: #4F7A63;
    --c-nota: #8A6F45;
    --c-decisao: #4F7A63;
    --c-tarefa: #A35E4C;
    --c-aprendizado: #55648A;
    --scrim: rgba(20, 22, 24, 0.32);
    --dock-bg: rgba(255, 255, 255, 0.88);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent-wash); }
textarea, input { caret-color: var(--accent); font: inherit; color: var(--text); }
textarea::placeholder, input::placeholder { color: var(--text-3); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.app {
  max-width: 660px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 18px) 18px calc(var(--dock-h) + var(--safe-b) + 44px);
}

/* Masthead: wordmark and ledger count */
.masthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 18px; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1;
  letter-spacing: -0.015em;
}
.ledger { display: block; margin-top: 8px; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: transparent; border: 0; padding: 4px 0; cursor: pointer; text-align: right;
  font-size: 12px; color: var(--text-3); line-height: 1.35;
}
.sync-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.sync-pill[data-state="ok"]::before { background: var(--ok); }
.sync-pill[data-state="offline"]::before { background: var(--text-3); }
.sync-pill[data-state="error"]::before, .sync-pill[data-state="conflict"]::before { background: var(--alert); }
.sync-pill[data-state="error"], .sync-pill[data-state="conflict"] { color: var(--alert); }

/* Search */
.topbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.search-wrap {
  position: relative; flex: 1; display: flex; align-items: center;
  border-bottom: 1px solid var(--line); min-height: 44px; padding: 0 4px 0 28px;
}
.search-wrap:focus-within { border-bottom-color: var(--accent); }
.search-icon { position: absolute; left: 2px; width: 16px; height: 16px; color: var(--text-3); }
#search-input {
  flex: 1; background: transparent; border: 0; outline: none; min-width: 0;
  font-size: 16px; padding: 10px 0; -webkit-appearance: none; appearance: none;
}
#search-input::-webkit-search-cancel-button { display: none; }
.search-clear { display: none; background: transparent; border: 0; padding: 8px; color: var(--text-3); cursor: pointer; }
.search-clear.show { display: flex; }
.search-clear svg { width: 14px; height: 14px; }
.round-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2);
}
.round-btn:hover { border-color: var(--text-3); color: var(--text); }
.round-btn svg { width: 17px; height: 17px; }

/* Capture: the next record in the ledger */
.capture {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px 12px; margin-bottom: 18px; scroll-margin-top: 24px;
}
.capture:focus-within { border-color: var(--text-3); }
.capture-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.serial { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.capture-date { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
#main-input {
  width: 100%; background: transparent; border: 0; outline: none; resize: none;
  font-family: var(--display); font-size: 19px; line-height: 1.5; min-height: 58px; max-height: 40vh; padding: 0; field-sizing: content;
}
.capture-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  min-height: 32px; padding: 5px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  font-size: 12.5px; white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip-count { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[data-active="true"] { color: var(--text); border-color: var(--text-2); background: var(--raise); }
.type-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.type-chip[data-type="nota"] { --tc: var(--c-nota); }
.type-chip[data-type="decisao"] { --tc: var(--c-decisao); }
.type-chip[data-type="tarefa"] { --tc: var(--c-tarefa); }
.type-chip[data-type="aprendizado"] { --tc: var(--c-aprendizado); }
.type-chip[data-active="true"] { color: var(--tc); border-color: var(--tc); background: transparent; }
.type-chip[data-active="true"]::before { opacity: 1; }
.type-chip[data-suggested="true"]::after { content: "auto"; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; opacity: .7; }
.save-btn {
  margin-left: auto; min-height: 34px; padding: 6px 18px; border-radius: 999px; cursor: not-allowed;
  background: transparent; border: 1px solid var(--line); color: var(--text-3); font-size: 13px; letter-spacing: .01em;
}
.save-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); cursor: pointer; }
.suggest-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.due-row { display: none; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.due-row.visible { display: flex; }
.due-label { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.due-input {
  flex: 1; min-width: 180px; min-height: 36px; padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--raise); border: 1px solid var(--line); font-size: 15px; outline: none;
}
.ghost-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; min-height: 32px;
}
.ghost-btn:hover { color: var(--text); border-color: var(--text-3); }

.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 10px; padding: 2px 18px 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* Search insight */
.jarvis-panel:empty { display: none; }
.jarvis-panel { border-left: 2px solid var(--accent); padding: 4px 0 4px 12px; margin: 4px 0 18px; }
.jarvis-title { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 6px; }
.jarvis-line { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.inference-note { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* Ledger list */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.section-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--text-2); }
.section-rule { flex: 1; height: 1px; background: var(--line-soft); transform: translateY(-4px); }
.section-count { font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.entries { display: flex; flex-direction: column; gap: 8px; }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 13px 14px 8px 16px; cursor: pointer; transition: border-color .15s;
}
.card:hover { border-color: var(--line); }
.card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--tc, var(--c-nota));
}
.card.t-nota { --tc: var(--c-nota); } .card.t-decisao { --tc: var(--c-decisao); }
.card.t-tarefa { --tc: var(--c-tarefa); } .card.t-aprendizado { --tc: var(--c-aprendizado); }
.card.new { animation: settle .3s ease-out; }
.card.done { opacity: .5; }
.card.done .card-text { text-decoration: line-through; text-decoration-color: var(--text-3); }
@keyframes settle { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.card-top .serial { color: var(--text-3); }
.meta-type { color: var(--tc, var(--text-3)); }
.meta-type.nota { --tc: var(--c-nota); } .meta-type.decisao { --tc: var(--c-decisao); }
.meta-type.tarefa { --tc: var(--c-tarefa); } .meta-type.aprendizado { --tc: var(--c-aprendizado); }
.meta-time { margin-left: auto; }
.local-flag { color: var(--accent); }
.card-text {
  margin: 0; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; min-height: 32px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; min-height: 24px;
  font-size: 12px; color: var(--text-2); border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.tag:hover { color: var(--text); border-color: var(--text-3); }
.tag.inferido { border-style: dashed; }
.tag.static { cursor: default; }
.card-actions { margin-left: auto; display: flex; align-items: center; gap: 0; }
.icon-btn {
  background: transparent; border: 0; color: var(--text-3); cursor: pointer;
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--text); background: var(--raise); }
.icon-btn.danger:hover { color: var(--alert); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-count { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-right: 6px; }
.icon-count svg { width: 13px; height: 13px; }
.check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--c-tarefa); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0;
}
.check svg { width: 11px; height: 11px; color: var(--ink); stroke-width: 2.6; display: none; }
.check.done { background: var(--c-tarefa); }
.check.done svg { display: block; }
.due-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; min-height: 24px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.card.overdue .due-pill { color: var(--alert); border-color: var(--alert); }
.due-pill svg { width: 12px; height: 12px; }

.empty { padding: 48px 8px; color: var(--text-2); font-family: var(--display); font-size: 17px; line-height: 1.55; max-width: 420px; }
.empty p { margin: 0; }

/* Views */
.view-title { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 4px 0 6px; }
.view-note { font-size: 13px; color: var(--text-3); margin: 0 0 20px; line-height: 1.5; max-width: 480px; }
.topic-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-block { border-top: 1px solid var(--line); padding: 14px 0 6px; margin-bottom: 8px; }
.brief-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.brief-title { font-family: var(--display); font-size: 17px; color: var(--text); }
.brief-title.alert { color: var(--alert); }
.brief-count { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.brief-item {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; padding: 9px 0; color: var(--text); font-size: 14.5px; line-height: 1.45;
}
.brief-item:hover { color: var(--accent); }
.brief-when { flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--text-3); min-width: 92px; font-variant-numeric: tabular-nums; }
.brief-empty { font-size: 13px; color: var(--text-3); padding: 6px 0; }

/* Conflicts */
.conflict-panel { border: 1px solid var(--alert); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.conflict-title { font-family: var(--display); font-size: 17px; color: var(--alert); margin-bottom: 4px; }
.conflict-hint { font-size: 13px; color: var(--text-2); margin: 0 0 10px; line-height: 1.5; }
.conflict { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.conflict:first-of-type { border-top: 0; }
.conflict-row { display: flex; gap: 12px; margin-bottom: 6px; }
.conflict-label { flex-shrink: 0; width: 84px; font-family: var(--mono); font-size: 11px; color: var(--text-3); padding-top: 2px; }
.conflict-value { font-size: 14px; line-height: 1.5; word-break: break-word; }
.conflict-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.conflict-btn { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; min-height: 34px; }
.conflict-btn.keep { border-color: var(--accent); color: var(--accent); }

/* Dock */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 14px); z-index: 20;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--dock-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.dock-btn {
  width: 48px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.dock-btn:hover { color: var(--text); }
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn[data-active="true"] { color: var(--text); background: var(--raise); }
.dock-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.dock-btn.mic { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.dock-btn.mic.listening { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); animation: breathe 1.6s ease-in-out infinite; }
.dock-btn.mic.processing { opacity: .6; cursor: wait; }
.dock-btn.new { background: var(--accent); color: var(--accent-ink); margin-left: 4px; }
@keyframes breathe { 0%, 100% { background: transparent; } 50% { background: var(--accent-wash); } }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet-panel {
  position: relative; width: 100%; max-width: 660px; max-height: calc(100dvh - var(--safe-t) - 20px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--ink); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0; padding: 10px 18px calc(var(--safe-b) + 28px);
  animation: rise .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet-panel.small { max-width: 480px; }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 20px; border-bottom: 1px solid var(--line); max-height: 86vh; }
  .sheet-grip { display: none; }
}
.sheet-grip { width: 36px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sheet-head .meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.sheet-title { font-family: var(--display); font-size: 22px; margin: 0; font-weight: 400; flex: 1; }

.tldr { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin: 0 0 16px; font-family: var(--display); font-size: 17px; line-height: 1.45; color: var(--text); }
.tldr-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.detail-card { padding: 0 0 4px; margin-bottom: 18px; }
.detail-text { margin: 0; font-size: 16.5px; line-height: 1.62; white-space: pre-wrap; word-wrap: break-word; }
.detail-text.editing { display: none; }
.detail-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 14px; font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; gap: 2px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.text-editor {
  width: 100%; min-height: 110px; background: var(--panel); border: 1px solid var(--text-3); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 16px; line-height: 1.55; outline: none; resize: vertical;
}
.editor-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.primary-btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; min-height: 34px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.block { border-top: 1px solid var(--line); padding: 14px 0 6px; margin-bottom: 6px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.block-title { font-family: var(--display); font-size: 17px; color: var(--text); }
.block-sub { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 220px; scroll-snap-align: start; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 11px 12px; color: var(--text);
}
.mini:hover { border-color: var(--line); }
.mini-text { font-size: 13px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.mini-why { font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-top: 8px; }
.block-empty { font-size: 13px; color: var(--text-3); padding-bottom: 6px; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }
.comment-text.editing { display: none; }
.comment-meta { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }
.link-btn { background: transparent; border: 0; color: var(--text-3); cursor: pointer; font: inherit; padding: 4px 6px; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--alert); }
.composer { margin-top: 10px; }
.inference-foot { font-size: 12px; color: var(--text-3); line-height: 1.55; margin: 14px 0 0; max-width: 520px; }

.menu-item {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-top: 1px solid var(--line-soft); padding: 14px 2px; font-size: 15px; color: var(--text);
}
.menu-item:first-of-type { border-top: 0; }
.menu-item svg { width: 18px; height: 18px; color: var(--text-3); margin-top: 1px; flex-shrink: 0; }
.menu-item small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.status-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; margin: 0 0 16px; }
.status-grid dt { color: var(--text-3); }
.status-grid dd { margin: 0; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; word-break: break-word; }
.trash-item { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.trash-item:first-of-type { border-top: 0; }
.trash-text { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.trash-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-3); gap: 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--safe-b) + var(--dock-h) + 28px);
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 36px);
  background: var(--text); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px;
}
.toast-action { background: transparent; border: 0; color: inherit; font-weight: 600; cursor: pointer; padding: 4px 2px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .card.new, .sheet-panel, .dock-btn.mic.listening { animation: none; }
}
@media (min-width: 760px) {
  .app { padding-top: calc(var(--safe-t) + 40px); }
  h1 { font-size: 40px; }
}

/* Login */
.login { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px 18px calc(var(--safe-b) + 24px); background: var(--ink); }
.login-card { width: 100%; max-width: 360px; }
.login-title { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 8px; letter-spacing: -0.015em; }
.login-note { font-size: 13.5px; color: var(--text-3); line-height: 1.5; margin: 0 0 26px; }
.login-field { display: block; margin-bottom: 14px; }
.login-field span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.login-field input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--line); font-size: 16px; outline: none;
}
.login-field input:focus { border-color: var(--accent); }
.login-error { font-size: 13px; color: var(--alert); margin: 4px 0 12px; line-height: 1.45; }
.login-submit { width: 100%; min-height: 46px; font-size: 15px; margin-top: 8px; }
.login-submit:disabled { opacity: .6; cursor: wait; }