/* ── TOKENS (nib DS v2) ─────────────────────────────── */ :root { color-scheme: dark; --bg: #0c0b09; --surf: #111009; --raised: #1a1715; --border: #252118; --soft: #1e1b16; --text: #e8dfc8; --muted: #8c8070; --dim: #504840; --accent: #c8942a; --a-bg: rgba(200,148,42,.09); --a-str: rgba(200,148,42,.22); --todo: #d4a84b; --note: #6ab8b0; --event: #6898c8; --remind: #c8784a; --ok: #7aab72; --danger: #b85858; --lineage: #9878bc; --sans: 'Satoshi', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; --r1: 2px; --r2: 4px; --r3: 8px; --t-fast: 80ms ease; --t-base: 200ms ease; } [data-theme="paper"] { color-scheme: light; --bg: #f4efe4; --surf: #faf7f0; --raised: #ece7db; --border: #d4cdc0; --soft: #e6e0d4; --text: #1c1810; --muted: #6a5e50; --dim: #a09080; --accent: #8a6018; --a-bg: rgba(138,96,24,.08); --a-str: rgba(138,96,24,.18); --todo: #7a5c00; --note: #1a7070; --event: #245890; --remind: #984020; --ok: #2a6828; --danger: #882030; --lineage: #5830a0; } [data-theme="tinycard"] { color-scheme: dark; --bg: #0f1117; --surf: #161922; --raised: #1e2130; --border: #2a2e3d; --soft: #222639; --text: #e1e4ed; --muted: #8b90a0; --dim: #555a6a; --accent: #ad8ee6; --a-bg: rgba(173,142,230,.09); --a-str: rgba(173,142,230,.22); --todo: #fbbf24; --note: #22d3ee; --event: #22d3ee; --remind: #e8845a; --ok: #4ade80; --danger: #ef4444; --lineage: #a78bfa; --sans: 'Satoshi', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; } [data-theme="catppuccin"] { color-scheme: dark; --bg: #1e1e2e; --surf: #181825; --raised: #313244; --border: #45475a; --soft: #252536; --text: #cdd6f4; --muted: #a6adc8; --dim: #6c7086; --accent: #cba6f7; --a-bg: rgba(203,166,247,.09); --a-str: rgba(203,166,247,.22); --todo: #f9e2af; --note: #94e2d5; --event: #89b4fa; --remind: #fab387; --ok: #a6e3a1; --danger: #f38ba8; --lineage: #f5c2e7; } [data-theme="nord"] { color-scheme: dark; --bg: #2e3440; --surf: #3b4252; --raised: #434c5e; --border: #4c566a; --soft: #363d4a; --text: #eceff4; --muted: #d8dee9; --dim: #4c566a; --accent: #88c0d0; --a-bg: rgba(136,192,208,.09); --a-str: rgba(136,192,208,.22); --todo: #ebcb8b; --note: #8fbcbb; --event: #81a1c1; --remind: #d08770; --ok: #a3be8c; --danger: #bf616a; --lineage: #b48ead; } [data-theme="dracula"] { color-scheme: dark; --bg: #282a36; --surf: #21222c; --raised: #44475a; --border: #6272a4; --soft: #343746; --text: #f8f8f2; --muted: #bfbfbf; --dim: #6272a4; --accent: #bd93f9; --a-bg: rgba(189,147,249,.09); --a-str: rgba(189,147,249,.22); --todo: #f1fa8c; --note: #8be9fd; --event: #8be9fd; --remind: #ffb86c; --ok: #50fa7b; --danger: #ff5555; --lineage: #ff79c6; } [data-theme="gruvbox"] { color-scheme: dark; --bg: #282828; --surf: #1d2021; --raised: #3c3836; --border: #504945; --soft: #32302f; --text: #ebdbb2; --muted: #a89984; --dim: #665c54; --accent: #fabd2f; --a-bg: rgba(250,189,47,.09); --a-str: rgba(250,189,47,.22); --todo: #fabd2f; --note: #8ec07c; --event: #83a598; --remind: #fe8019; --ok: #b8bb26; --danger: #fb4934; --lineage: #d3869b; } [data-theme="rosepine"] { color-scheme: dark; --bg: #191724; --surf: #1f1d2e; --raised: #26233a; --border: #403d52; --soft: #211f30; --text: #e0def4; --muted: #908caa; --dim: #6e6a86; --accent: #c4a7e7; --a-bg: rgba(196,167,231,.09); --a-str: rgba(196,167,231,.22); --todo: #f6c177; --note: #9ccfd8; --event: #31748f; --remind: #ea9a97; --ok: #a6da95; --danger: #eb6f92; --lineage: #c4a7e7; } [data-theme="tokyonight"] { color-scheme: dark; --bg: #1a1b26; --surf: #16161e; --raised: #292e42; --border: #3b4261; --soft: #1f2335; --text: #c0caf5; --muted: #a9b1d6; --dim: #565f89; --accent: #7aa2f7; --a-bg: rgba(122,162,247,.09); --a-str: rgba(122,162,247,.22); --todo: #e0af68; --note: #7dcfff; --event: #7aa2f7; --remind: #ff9e64; --ok: #9ece6a; --danger: #f7768e; --lineage: #bb9af7; } [data-theme="solarized"] { color-scheme: dark; --bg: #002b36; --surf: #073642; --raised: #094552; --border: #586e75; --soft: #05303b; --text: #839496; --muted: #657b83; --dim: #586e75; --accent: #268bd2; --a-bg: rgba(38,139,210,.09); --a-str: rgba(38,139,210,.22); --todo: #b58900; --note: #2aa198; --event: #268bd2; --remind: #cb4b16; --ok: #859900; --danger: #dc322f; --lineage: #6c71c4; } [data-theme="catppuccin-latte"] { color-scheme: light; --bg: #eff1f5; --surf: #e6e9ef; --raised: #dce0e8; --border: #ccd0da; --soft: #e4e7ed; --text: #4c4f69; --muted: #6c6f85; --dim: #9ca0b0; --accent: #8839ef; --a-bg: rgba(136,57,239,.08); --a-str: rgba(136,57,239,.18); --todo: #df8e1d; --note: #179299; --event: #1e66f5; --remind: #fe640b; --ok: #40a02b; --danger: #d20f39; --lineage: #ea76cb; } [data-theme="rosepine-dawn"] { color-scheme: light; --bg: #faf4ed; --surf: #fffaf3; --raised: #f2e9e1; --border: #dfdad9; --soft: #f4ede8; --text: #575279; --muted: #797593; --dim: #9893a5; --accent: #907aa9; --a-bg: rgba(144,122,169,.08); --a-str: rgba(144,122,169,.18); --todo: #ea9d34; --note: #56949f; --event: #286983; --remind: #d7827e; --ok: #56949f; --danger: #b4637a; --lineage: #907aa9; } [data-theme="solarized-light"] { color-scheme: light; --bg: #fdf6e3; --surf: #eee8d5; --raised: #e4ddc8; --border: #d3cbb7; --soft: #f5eedb; --text: #657b83; --muted: #586e75; --dim: #93a1a1; --accent: #268bd2; --a-bg: rgba(38,139,210,.08); --a-str: rgba(38,139,210,.18); --todo: #b58900; --note: #2aa198; --event: #268bd2; --remind: #cb4b16; --ok: #859900; --danger: #dc322f; --lineage: #6c71c4; } /* ── RESET ──────────────────────────────────────────── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; overflow: hidden; } ::-webkit-scrollbar { width: 3px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; } button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; } input, textarea, select { font: inherit; color: inherit; } body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; } #app { display: grid; grid-template-rows: 36px 1fr; height: 100vh; background: var(--bg); } /* ── HEADER ─────────────────────────────────────────── */ header { background: var(--surf); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 18px; } .header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .logo { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; } nav { display: flex; gap: 2px; } .nav-btn { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--dim); padding: 3px 8px; border-radius: var(--r1); transition: color var(--t-fast), background var(--t-fast); } .nav-btn:hover { color: var(--muted); } .nav-btn.active { color: var(--accent); background: var(--a-bg); } .header-search { flex: 1; max-width: 400px; margin: 0 auto; } #search-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; transition: border-color var(--t-fast); } #search-input:hover { border-color: var(--muted); } #search-input:focus { border-color: var(--accent); } #search-input::placeholder { color: var(--dim); } .theme-toggle { margin-left: auto; border: 1px solid var(--border); border-radius: var(--r1); color: var(--dim); font-family: var(--mono); font-size: 12px; padding: 2px 8px; transition: color var(--t-fast), border-color var(--t-fast); } .theme-toggle:hover { color: var(--accent); border-color: var(--accent); } /* ── MAIN LAYOUT ────────────────────────────────────── */ main { display: grid; grid-template-columns: var(--rail-w, 192px) 4px 1fr 4px var(--peek-w, 400px); overflow: hidden; } main.resizing { transition: none; } main:not(.resizing) { transition: grid-template-columns var(--t-base); } main.hide-rail { grid-template-columns: 0px 0px 1fr 4px var(--peek-w, 400px); } main.hide-peek { grid-template-columns: var(--rail-w, 192px) 4px 1fr 0px 0px; } main.hide-rail.hide-peek { grid-template-columns: 0px 0px 1fr 0px 0px; } main.hide-rail #tag-rail { overflow: hidden; border-right: none; min-width: 0; } main.hide-peek #detail-pane { overflow: hidden; border-left: none; min-width: 0; } main.hide-rail .resize-handle[data-panel="rail"] { visibility: hidden; } main.hide-peek .resize-handle[data-panel="peek"] { visibility: hidden; } main.focus-peek { grid-template-columns: 0px 0px 0px 0px 1fr; } main.focus-peek #tag-rail { overflow: hidden; border-right: none; min-width: 0; } main.focus-peek #entity-panel { overflow: hidden; min-width: 0; } main.focus-peek .resize-handle { visibility: hidden; } .resize-handle { cursor: col-resize; background: transparent; transition: background var(--t-fast); z-index: 10; } .resize-handle:hover, .resize-handle.active { background: var(--accent); opacity: .4; } /* ── TAG RAIL ───────────────────────────────────────── */ #tag-rail { background: var(--surf); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .rail-head { display: flex; align-items: baseline; gap: 5px; padding: .85rem 1rem .75rem; border-bottom: 1px solid var(--border); } .rail-brand { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); } .rail-scroll { flex: 1; overflow-y: auto; padding: 6px 0; } .rail-sec { padding: 4px 0 10px; } .rail-lbl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); padding: 4px 16px 6px; } .rail-item { display: grid; grid-template-columns: 8px 8px 1fr auto; align-items: center; gap: 5px; width: 100%; padding: 4px 16px; text-align: left; font-family: var(--mono); font-size: 11px; color: var(--muted); transition: color var(--t-fast), background var(--t-fast); border-left: 2px solid transparent; } .rail-item:hover { color: var(--text); background: var(--raised); } .rail-item.on { color: var(--accent); background: var(--a-bg); border-left-color: var(--accent); } .rail-arrow { font-size: 9px; color: var(--accent); width: 8px; } .rail-item:not(.on) .rail-arrow { color: transparent; } .rail-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .4; flex-shrink: 0; } .rail-item.on .rail-dot { background: var(--accent); opacity: 1; } .rail-name { font-weight: 500; } .rail-count { font-size: 9px; color: var(--dim); font-variant-numeric: tabular-nums; } .rail-item.on .rail-count { color: var(--accent); opacity: .7; } .rail-hint { grid-column: 2 / 5; font-size: 9px; color: var(--dim); font-family: var(--mono); margin-top: 1px; } .rail-item:not(.on) .rail-hint { display: none; } /* ── CENTER PANEL ───────────────────────────────────── */ #entity-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); } #month-nav { display: flex; align-items: center; gap: 8px; padding: 5px 18px; border-bottom: 1px solid var(--soft); background: var(--surf); flex-shrink: 0; } #month-nav:empty { display: none; } .month-nav-btn { font-family: var(--mono); font-size: 10px; color: var(--dim); padding: 2px 6px; border-radius: var(--r1); transition: color var(--t-fast), background var(--t-fast); } .month-nav-btn:hover { color: var(--text); background: var(--raised); } .month-nav-label { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: 1; text-align: center; } /* ── ENTITY LIST ────────────────────────────────────── */ #entity-list { flex: 1; overflow-y: auto; padding: 4px 0 8px; } .date-header { display: flex; align-items: center; gap: 8px; padding: 10px 20px 5px; font-family: var(--mono); font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .2em; } .date-header::after { content: ''; flex: 1; height: 1px; background: var(--soft); } .entity-item { cursor: pointer; border-left: 2px solid transparent; transition: background var(--t-fast), border-left-color var(--t-fast); } .entity-head { display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 20px; min-height: 32px; } .entity-item:hover { background: var(--surf); } .entity-item.selected { background: var(--surf); border-left-color: var(--accent); } .entity-exp { display: none; } .entity-exp-clip { overflow: hidden; } .exp-inner { padding: .6rem 1rem .7rem calc(20px + 14px + 8px); border-top: 1px solid var(--border); } .exp-body { font-family: var(--mono); font-size: 11px; color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .entity-item.exp-full .exp-body, .card-row.exp-full .exp-body { -webkit-line-clamp: unset; overflow: visible; } .exp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .5rem; } .exp-acts { display: flex; flex-wrap: wrap; gap: 4px; } .exp-toolbar { display: none; justify-content: space-between; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); } .entity-item.is-card { background: var(--surf); margin: 2px 10px; border-radius: var(--r2); border: 1px solid var(--border); border-left-width: 1px; } .entity-item.is-card .entity-head { padding: 7px 12px; } .entity-item.is-card:hover { border-color: var(--muted); } .entity-item.is-card.selected { border-color: var(--accent); background: var(--a-bg); } .entity-glyph { font-family: var(--mono); font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; } .glyph-note { color: var(--muted); } .glyph-todo { color: var(--todo); } .glyph-event { color: var(--event); } .glyph-reminder { color: var(--remind); } .glyph-snippet { color: var(--accent); } .glyph-template { color: var(--lineage); } .glyph-checklist { color: var(--remind); } .glyph-decision { color: var(--note); } .glyph-link { color: var(--event); } .glyph-note { color: var(--note); } .entity-content { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; } .entity-title { font-family: var(--sans); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 60px; } .entity-desc { font-family: var(--mono); font-size: 10px; color: var(--dim); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 8px; flex-shrink: 1; min-width: 0; } .entity-preview { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 8px; flex: 1; min-width: 0; } .entity-body { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .entity-time { font-family: var(--mono); font-size: 10px; color: var(--dim); flex-shrink: 0; } .entity-tags { display: flex; gap: 4px; flex-shrink: 0; } .entity-tag { font-family: var(--mono); font-size: 9px; color: var(--muted); border: 1px solid var(--border); padding: 1px 5px; border-radius: var(--r1); } .entity-meta { font-family: var(--mono); font-size: 10px; color: var(--dim); flex-shrink: 0; display: flex; gap: 8px; } .card-badge { font-family: var(--mono); font-size: 9px; color: var(--accent); border: 1px solid rgba(200,148,42,.4); background: var(--a-bg); padding: 1px 5px; border-radius: var(--r1); } .use-badge { color: var(--todo); font-size: 9px; } /* ── CARDS SUB-HEADER ──────────────────────────────── */ .cards-hdr { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--soft); background: var(--surf); flex-shrink: 0; } .cards-scope { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text); } .cards-count { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-left: auto; } .cards-sort { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 3px 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); outline: none; } /* ── CARD ROWS ──────────────────────────────────────── */ .card-row { margin: 2px 10px; background: var(--surf); border: 1px solid var(--border); border-radius: var(--r2); cursor: pointer; position: relative; transition: border-color var(--t-fast), background var(--t-fast); } .card-head { display: flex; align-items: center; gap: 7px; padding: 9px 12px 9px 14px; min-height: 40px; } .card-row:hover { border-color: var(--muted); } .card-row.selected { border-color: var(--accent); background: var(--a-bg); } .card-row.pinned { border-left: 2px solid var(--accent); } @keyframes card-flash { 0%,100%{} 50%{ background: var(--a-str); } } .card-row.flashing { animation: card-flash .3s ease; } .card-row-title { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text); flex-shrink: 0; max-width: 145px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card-row-dash { color: var(--dim); font-family: var(--mono); font-size: 10px; flex-shrink: 0; } .card-row-preview { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card-row-preview .slot { color: var(--lineage); } .card-row-preview .link { color: var(--event); } .card-row-preview .choice { color: var(--text); } .card-row-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; } .card-row-pin { color: var(--accent); font-size: 10px; } .card-row-use { font-family: var(--mono); font-size: 9px; color: var(--todo); } /* progress bar in card row */ .card-row-prog { display: inline-block; width: 36px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; vertical-align: middle; } .card-row-prog span { display: block; height: 100%; background: var(--ok); border-radius: 2px; } /* ── SECTION LABELS ─────────────────────────────────── */ .list-sec-lbl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); padding: 8px 14px 4px; } /* ── AFFORDANCE BADGES ──────────────────────────────── */ .aff { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; padding: 1px 6px; border-radius: var(--r1); border: 1px solid; flex-shrink: 0; } .aff.clickable { cursor: pointer; transition: opacity var(--t-fast); } .aff.clickable:hover { opacity: .7; } .aff-code { color: var(--accent); border-color: rgba(200,148,42,.38); background: var(--a-bg); } .aff-fill { color: var(--lineage); border-color: rgba(152,120,188,.38); background: rgba(152,120,188,.06); } .aff-steps { color: var(--ok); border-color: rgba(122,171,114,.38); background: rgba(122,171,114,.06); } .aff-decide { color: var(--note); border-color: rgba(106,184,176,.38); background: rgba(106,184,176,.06); } .aff-link { color: var(--event); border-color: rgba(104,152,200,.38); background: rgba(104,152,200,.06); } /* ── TAG PILLS ──────────────────────────────────────── */ .tag-pill { font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid rgba(200,148,42,.35); background: var(--a-bg); padding: 2px 7px; border-radius: var(--r1); flex-shrink: 0; } /* ── CAPTURE BAR ────────────────────────────────────── */ #capture-bar { border-top: 1px solid var(--border); background: var(--surf); flex-shrink: 0; padding: 4px 0; transition: border-top-color var(--t-base), box-shadow var(--t-base); } #capture-bar:focus-within { box-shadow: 0 -2px 12px rgba(200,148,42,.08); } /* ── Capture preview ── */ .cap-preview { display: none; flex-wrap: wrap; gap: 5px; padding: 8px 18px 0; } .cap-preview.visible { display: flex; } .cap-pill { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: var(--r2); border: 1px solid var(--border); color: var(--muted); background: var(--bg); letter-spacing: .02em; } .cap-pill-glyph { color: var(--accent); border-color: rgba(200,148,42,.25); } .cap-pill-title { color: var(--text); } .cap-pill-desc { color: var(--muted); font-style: italic; } .cap-pill-tag { color: var(--lineage); border-color: rgba(98,134,100,.3); } .cap-pill-time { color: var(--event); border-color: rgba(104,152,200,.3); } .cap-pill-pin { color: var(--remind); border-color: rgba(200,120,74,.3); } .cap-pill-card { color: var(--accent); border-color: rgba(200,148,42,.25); } .cap-pill-query { color: var(--event); border-color: rgba(104,152,200,.3); } #capture-bar:focus-within { border-top-color: var(--accent); } .cap-row { display: flex; align-items: flex-end; padding: 0 18px; } .cap-prompt { font-family: var(--mono); font-size: 16px; color: var(--accent); opacity: .4; padding-bottom: 10px; flex-shrink: 0; transition: opacity var(--t-base); } #capture-bar:focus-within .cap-prompt { opacity: 1; } #capture-input { flex: 1; background: transparent; border: none; outline: none; padding: 10px 10px; font-family: var(--mono); font-size: 13px; color: var(--text); line-height: 1.5; resize: none; } #capture-input::placeholder { color: var(--dim); } .cap-hint { font-family: var(--mono); font-size: 9px; color: var(--dim); padding-bottom: 8px; white-space: nowrap; letter-spacing: .04em; } /* ── PEEK PANE ──────────────────────────────────────── */ #detail-pane { background: var(--surf); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .peek-mobile-btn { font-family: var(--mono); font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 4px; width: 28px; height: 28px; cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); } .peek-mobile-btn:hover { color: var(--accent); border-color: var(--accent); } .peek-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; } .detail-empty { color: var(--dim); font-size: 12px; text-align: center; margin-top: 40px; font-family: var(--mono); } /* peek idle */ .peek-idle { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; overflow-y: auto; } .peek-idle-eyebrow { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 6px; } .peek-idle-title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; } .peek-idle-sub { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; } .peek-shortcuts { display: flex; flex-direction: column; gap: 10px; } .peek-sc-sec { margin-bottom: 2px; } .peek-sc-lbl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 5px; } .peek-sc-row { display: flex; align-items: center; gap: 5px; padding: 2px 0; font-family: var(--mono); font-size: 11px; color: var(--muted); } .peek-sc-row span { color: var(--dim); margin-left: 2px; } .peek-sc-code { font-family: var(--mono); font-size: 10px; color: var(--accent); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 4px 8px; margin-bottom: 5px; } .peek-sc-hint { font-family: var(--mono); font-size: 9px; color: var(--dim); padding-bottom: 3px; } kbd { background: var(--raised); border: 1px solid var(--border); border-radius: 2px; padding: 1px 4px; font-size: 9px; font-family: var(--mono); color: var(--muted); display: inline-block; line-height: 1.4; } /* peek eyebrow */ .peek-brow { padding: 14px 20px 0; display: flex; align-items: center; gap: 7px; flex-shrink: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .peek-brow-g { font-size: 13px; margin-right: 1px; flex-shrink: 0; } .peek-brow-kind { color: var(--muted); } .peek-brow-sep { color: var(--dim); opacity: .4; } .peek-brow-id { color: var(--dim); } .peek-brow-ts { margin-left: auto; color: var(--dim); letter-spacing: 0; text-transform: none; white-space: nowrap; } /* peek title / desc / body */ .peek-title { padding: 9px 20px 4px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; flex-shrink: 0; } .peek-desc { padding: 0 20px 10px; font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; flex-shrink: 0; } .peek-body { padding: 10px 20px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.72; color: var(--text); white-space: pre-wrap; word-break: break-word; flex-shrink: 0; cursor: text; border-radius: var(--r2); transition: background var(--t-fast); } .peek-body:hover { background: var(--raised); } .peek-body.md, .exp-body.md { font-family: var(--sans); font-size: 13px; line-height: 1.65; white-space: normal; } .peek-body.md h1, .peek-body.md h2, .peek-body.md h3, .peek-body.md h4, .peek-body.md h5, .peek-body.md h6, .exp-body.md h1, .exp-body.md h2, .exp-body.md h3, .exp-body.md h4, .exp-body.md h5, .exp-body.md h6 { font-weight: 600; color: var(--text); margin: 14px 0 6px; line-height: 1.3; } .peek-body.md h1, .exp-body.md h1 { font-size: 17px; } .peek-body.md h2, .exp-body.md h2 { font-size: 15px; } .peek-body.md h3, .exp-body.md h3 { font-size: 14px; } .peek-body.md p, .exp-body.md p { margin: 0 0 10px; } .peek-body.md p:last-child, .exp-body.md p:last-child { margin-bottom: 0; } .peek-body.md ul, .peek-body.md ol, .exp-body.md ul, .exp-body.md ol { padding-left: 20px; margin: 0 0 10px; } .peek-body.md li, .exp-body.md li { margin-bottom: 3px; } .peek-body.md blockquote, .exp-body.md blockquote { border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); margin: 0 0 10px; } .peek-body.md code, .exp-body.md code { font-family: var(--mono); font-size: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r1); padding: 1px 5px; } .peek-body.md pre, .exp-body.md pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 10px 12px; overflow-x: auto; margin: 0 0 10px; } .peek-body.md pre code, .exp-body.md pre code { background: none; border: none; padding: 0; font-size: 11px; line-height: 1.6; } .peek-body.md a, .exp-body.md a { color: var(--event); text-decoration: none; border-bottom: 1px solid rgba(104,152,200,.3); } .peek-body.md a:hover, .exp-body.md a:hover { border-bottom-color: var(--event); } .peek-body.md strong, .exp-body.md strong { font-weight: 600; } .peek-body.md em, .exp-body.md em { font-style: italic; color: var(--muted); } .peek-body.md hr, .exp-body.md hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; } .peek-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 0 20px 12px; flex-shrink: 0; } .peek-pin { color: var(--accent); font-size: 11px; } /* peek sections */ .peek-sec { border-top: 1px solid var(--soft); flex-shrink: 0; } .peek-sec-lbl { padding: 8px 20px 5px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); display: flex; align-items: center; gap: 6px; } .peek-sec-lang { color: var(--accent); letter-spacing: 0; text-transform: none; font-size: 9px; } .peek-sec-status { color: var(--ok); letter-spacing: 0; text-transform: none; font-size: 9px; border: 1px solid rgba(122,171,114,.4); background: rgba(122,171,114,.06); padding: 0 6px; border-radius: var(--r1); } .peek-sec-run { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--ok); border: 1px solid rgba(122,171,114,.4); padding: 1px 8px; border-radius: var(--r1); transition: background var(--t-fast); } .peek-sec-run:hover { background: rgba(122,171,114,.1); } .peek-sec-inner { padding: 0 20px 14px; } .tag-pills { display: flex; flex-wrap: wrap; gap: 5px; } /* peek context */ .peek-ctx { display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--muted); } .peek-ctx-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-right: 5px; } .peek-ctx-promoted { color: var(--ok); } /* peek card container */ .peek-card { margin: 12px; border: 1px solid var(--border); border-radius: var(--r3); overflow: hidden; flex-shrink: 0; } .peek-card-head { background: var(--bg); border-bottom: 1px solid var(--soft); padding-bottom: 0; } .peek-card .peek-sec { border-top-color: var(--border); } .peek-card .peek-sec-inner { padding: 0 16px 14px; } .peek-card .peek-sec-lbl { padding: 8px 16px 5px; } /* peek code block */ .peek-code { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 10px 12px; overflow-x: auto; } .peek-code pre { font-family: var(--mono); font-size: 11px; line-height: 1.65; color: var(--text); white-space: pre-wrap; word-break: break-word; } /* peek steps */ .peek-steps { display: flex; flex-direction: column; gap: 3px; } .peek-step { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-family: var(--mono); font-size: 11px; line-height: 1.45; } .peek-step-mark { flex-shrink: 0; margin-top: 1px; } .peek-step-text { color: var(--text); } /* peek decision */ .peek-decision { padding: 0; } .peek-dec-choice { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; } .peek-dec-choice::before { content: '▸ '; color: var(--accent); } .peek-dec-why { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; } .peek-dec-key { color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); margin-right: 5px; } .peek-dec-rejected { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .peek-dec-rej { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--border); padding: 1px 6px; border-radius: var(--r1); text-decoration: line-through; opacity: .6; } /* peek link */ .peek-link-url { display: flex; align-items: flex-start; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--event); border: 1px solid var(--soft); padding: 8px 10px; border-radius: var(--r2); background: var(--bg); word-break: break-all; line-height: 1.5; } /* peek actions */ .peek-acts { display: flex; gap: 5px; flex-wrap: wrap; padding: 12px 20px 18px; border-top: 1px solid var(--soft); flex-shrink: 0; } /* peek mode pills */ .peek-run-pill { font-family: var(--mono); font-size: 9px; color: var(--ok); border: 1px solid rgba(122,171,114,.4); background: rgba(122,171,114,.06); padding: 1px 7px; border-radius: var(--r1); } .peek-fill-pill { font-family: var(--mono); font-size: 9px; color: var(--lineage); border: 1px solid rgba(152,120,188,.4); background: rgba(152,120,188,.06); padding: 1px 7px; border-radius: var(--r1); } .peek-edit-pill { font-family: var(--mono); font-size: 9px; color: var(--todo); border: 1px solid rgba(212,168,75,.4); background: rgba(212,168,75,.06); padding: 1px 7px; border-radius: var(--r1); } /* run mode */ .peek-run-prog-wrap { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; flex-shrink: 0; } .peek-run-prog-track { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; } .peek-run-prog { height: 100%; background: var(--ok); border-radius: 2px; transition: width var(--t-base); } .peek-run-pct { font-family: var(--mono); font-size: 10px; color: var(--ok); min-width: 28px; } .peek-run-steps { flex-shrink: 0; } .peek-run-step { display: flex; align-items: flex-start; gap: 10px; padding: 7px 20px; cursor: pointer; border-left: 2px solid transparent; transition: background var(--t-fast), border-left-color var(--t-fast); } .peek-run-step:hover { background: var(--raised); } .peek-run-step.done .peek-run-text { text-decoration: line-through; color: var(--dim); } .peek-run-mark { font-family: var(--mono); font-size: 12px; flex-shrink: 0; margin-top: 1px; } .peek-run-text { font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--text); } /* fill mode */ .peek-fill-canvas { padding: 14px 20px; flex-shrink: 0; } .peek-fill-canvas code { font-family: var(--mono); font-size: 12px; line-height: 2; color: var(--text); white-space: pre-wrap; word-break: break-word; } .fill-slot { display: inline-block; border-bottom: 1.5px solid var(--lineage); } .fill-slot.active { border-color: var(--accent); border-bottom-width: 2px; } .fill-slot.filled { border-color: var(--ok); } .fill-slot input { background: transparent; border: none; outline: none; color: var(--lineage); font-family: var(--mono); font-size: 12px; padding: 0 2px; min-width: 30px; line-height: 2; } .fill-slot.active input { color: var(--text); } .fill-slot.filled input { color: var(--ok); } /* edit mode */ .peek-edit-fields { padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; } .peek-edit-field { display: flex; flex-direction: column; gap: 4px; } .peek-edit-lbl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); } .peek-edit-in { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 6px 9px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; transition: border-color var(--t-fast); } .peek-edit-in:focus { border-color: var(--accent); } .peek-edit-ta { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); padding: 6px 9px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; resize: vertical; min-height: 100px; line-height: 1.55; transition: border-color var(--t-fast); } .peek-edit-ta:focus { border-color: var(--accent); } /* hints bar */ .peek-hints { display: flex; gap: 12px; padding: 10px 20px; font-family: var(--mono); font-size: 9px; color: var(--dim); border-top: 1px solid var(--soft); flex-shrink: 0; } .peek-hints span { display: flex; align-items: center; gap: 3px; } /* legacy detail support (inline edit) */ .detail-field-edit { display: block; width: 100%; font-family: var(--sans); font-size: 14px; margin-bottom: 12px; padding: 4px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--accent); border-radius: var(--r2); outline: none; } .detail-body-edit { display: block; width: 100%; min-height: 80px; font-family: var(--mono); font-size: 13px; line-height: 1.72; margin-bottom: 16px; padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--accent); border-radius: var(--r2); outline: none; resize: vertical; white-space: pre-wrap; word-break: break-word; } .detail-tags { display: flex; gap: 5px; flex-wrap: wrap; } .detail-tag { font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid rgba(200,148,42,.35); background: var(--a-bg); padding: 2px 7px; border-radius: var(--r1); } .action-btn { font-family: var(--sans); font-size: 11px; font-weight: 500; border: 1px solid var(--border); color: var(--muted); padding: 4px 11px; border-radius: var(--r1); display: inline-flex; align-items: center; gap: 5px; transition: color var(--t-fast), border-color var(--t-fast); } .action-btn:hover { color: var(--accent); border-color: var(--accent); } .action-btn.primary { color: var(--accent); border-color: var(--accent); background: var(--a-bg); } .action-btn.dim { opacity: .45; } .action-btn.danger { color: var(--danger); border-color: rgba(184,88,88,.4); } .action-btn.danger:hover { border-color: var(--danger); } .action-btn kbd { font-size: 9px; background: rgba(0,0,0,.2); border: 1px solid rgba(0,0,0,.3); border-radius: 2px; padding: 0 3px; opacity: .65; } /* ── TEMPLATE SLOTS ─────────────────────────────────── */ .slot-form { margin: 16px 0; } .slot-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .slot-label { font-family: var(--mono); font-size: 11px; color: var(--lineage); min-width: 80px; } .slot-input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 4px 8px; border-radius: var(--r2); font-family: var(--mono); font-size: 11px; outline: none; transition: border-color var(--t-fast); } .slot-input:focus { border-color: var(--lineage); } /* ── CHECKLIST ──────────────────────────────────────── */ .checklist-step { display: flex; align-items: center; gap: 8px; padding: 4px 0; } .checklist-step input[type="checkbox"] { accent-color: var(--ok); } .checklist-step.done span { text-decoration: line-through; color: var(--muted); } /* ── DECISION CARD ──────────────────────────────────── */ .decision-field { margin-bottom: 12px; } .decision-label { font-family: var(--mono); font-size: 10px; color: var(--note); text-transform: uppercase; letter-spacing: .1em; } .decision-value { font-size: 13px; color: var(--text); } /* ── MODAL ──────────────────────────────────────────── */ .modal { display: none; } .modal.visible { display: flex; } .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; } .modal-content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--surf); border: 1px solid var(--border); border-radius: var(--r3); padding: 22px; z-index: 101; min-width: 380px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,.5); } .modal-content h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 4px; } .modal-sub { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .type-picker { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .type-col { display: flex; flex-direction: column; gap: 4px; } .type-col-lbl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); padding: 0 4px 4px; } .type-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r2); text-align: left; font-size: 12px; font-family: var(--mono); color: var(--text); transition: border-color var(--t-fast), background var(--t-fast); } .type-btn:hover { border-color: var(--accent); background: var(--raised); } .type-btn.suggested { border-color: var(--accent); background: var(--a-bg); } .type-glyph { font-size: 13px; flex-shrink: 0; } .type-name { font-family: var(--mono); font-size: 11px; color: var(--text); } .type-hint { font-family: var(--sans); font-size: 11px; color: var(--muted); } .modal-close { display: block; width: 100%; margin-top: 12px; padding: 5px; color: var(--dim); font-size: 9px; font-family: var(--mono); text-align: center; transition: color var(--t-fast); } .modal-close:hover { color: var(--muted); } /* ── LOAD MORE ──────────────────────────────────────── */ .load-more-wrap { padding: 12px 20px; text-align: center; } .load-more-btn { background: none; border: 1px solid var(--border); color: var(--dim); padding: 4px 20px; border-radius: var(--r1); font-family: var(--mono); font-size: 11px; transition: color var(--t-fast), border-color var(--t-fast); } .load-more-btn:hover { border-color: var(--accent); color: var(--accent); } /* ── ABSORB MODAL ───────────────────────────────────── */ .absorb-list { max-height: 300px; overflow-y: auto; } .absorb-source-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r2); transition: background var(--t-fast); } .absorb-source-item:hover { background: var(--raised); } .absorb-source-item .entity-body { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── TOAST ──────────────────────────────────────────── */ .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--border); border-radius: var(--r2); padding: 6px 16px; font-family: var(--mono); font-size: 11px; color: var(--text); z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,.4); animation: toast-in .16s ease-out; } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } } /* ── RESPONSIVE ─────────────────────────────────────── */ @media (max-width: 900px) { main, main.hide-rail, main.hide-peek, main.hide-rail.hide-peek, main.focus-peek { grid-template-columns: 1fr !important; transition: none !important; } #tag-rail { display: none !important; } .resize-handle { display: none !important; } #entity-panel { overflow: auto; } #capture-bar { position: sticky; bottom: 0; z-index: 10; } #detail-pane { position: fixed; inset: 0; top: auto; height: 50vh; background: var(--surf); border-top: 1px solid var(--border); border-left: none; transform: translateY(100%); transition: transform var(--t-base); z-index: 50; } #detail-pane { display: none !important; } .entity-exp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; } .entity-item.selected .entity-exp, .card-row.selected .entity-exp { grid-template-rows: 1fr; } .entity-item.selected .exp-toolbar, .card-row.selected .exp-toolbar { display: flex; } .entity-item.exp-full, .entity-item.is-card.exp-full, .card-row.exp-full { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; border: none; margin: 0; border-radius: 0; } .entity-item.exp-full .entity-exp, .card-row.exp-full .entity-exp { grid-template-rows: 1fr; } .entity-item.exp-full .exp-inner, .card-row.exp-full .exp-inner { padding-top: 1rem; padding-bottom: 2rem; } main.focus-peek #entity-panel { display: block; overflow: auto; min-width: 0; } }