:root {
  --bg: #12100d;
  --panel: #1c1812;
  --panel-2: #241f18;
  --raised: #2a241c;
  --border: #3a3227;
  --border-soft: #2a241c;
  --text: #f3ede2;
  --text-dim: #b3a894;
  --text-faint: #786c58;
  --accent: #e2933c;
  --accent-soft: #3a2c1c;
  --accent-ask: #7fb2e0;
  --accent-create: #e08bc2;
  --accent-build: #e2933c;
  --accent-understand: #8fc9a8;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* The `hidden` attribute's default `display:none` loses to any author rule that sets
   `display` on the same element (equal specificity, author rule comes later) -- several
   elements here do (.wizard-actions, .blueprint-choices, .crumb, .profile-chip all set
   their own flex/grid). One !important rule here beats all of them reliably instead of
   hunting down every conflicting class individually. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(243,237,226,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,237,226,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ==== top bar: always-visible wayfinding ==== */
header.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--panel); position: sticky; top: 0; z-index: 10;
}
@media (max-width: 640px) {
  header.topbar { padding: 10px 14px; gap: 8px 10px; }
  .brand { flex: 1 1 100%; font-size: 13.5px; }
  .topbar-spacer { display: none; }
  .topbtn { font-size: 11px; padding: 6px 9px; }
  .profile-chip { font-size: 11px; padding: 5px 10px; }
}
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: 0.5px; color: var(--text); display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-understand); box-shadow: 0 0 8px var(--accent-understand); }
.brand { text-transform: uppercase; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.crumb .sep { color: var(--text-faint); }
.crumb .current { color: var(--text-dim); }
.topbar-spacer { flex: 1; }
.profile-chip {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.profile-chip .band-tag { color: var(--text-faint); }
.topbtn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-faint);
  padding: 8px 12px; cursor: pointer;
}
.topbtn:hover { color: var(--text); }
.topbtn.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

main { flex: 1; display: flex; flex-direction: column; }
.screen { padding: 28px 20px 60px; max-width: 980px; margin: 0 auto; width: 100%; }
.screen[hidden] { display: none; }

/* ==== onboarding ==== */
.onboard-wrap { max-width: 680px; margin: 60px auto; text-align: center; }
.onboard-wrap h1 { font-size: 26px; margin-bottom: 8px; }
.onboard-wrap .tagline { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.field-label { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 8px; }
.nickname-input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; padding: 12px 14px; border-radius: 8px; margin-bottom: 24px;
}
.nickname-input:focus { outline: none; border-color: var(--accent-ask); }
.band-choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 28px; }
@media (max-width: 560px) { .band-choices { grid-template-columns: 1fr; } }
.band-card {
  background: var(--panel-2); border: 2px solid var(--border); border-radius: 12px;
  padding: 18px 14px; cursor: pointer; text-align: left; transition: border-color 0.15s;
}
.band-card:hover { border-color: var(--text-faint); }
.band-card.selected { border-color: var(--accent-ask); background: rgba(77,159,255,0.08); }
.band-card .grade { font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
.band-card .label { font-size: 16px; font-weight: 600; margin: 4px 0 2px; }
.band-card .desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }
.primary-btn {
  background: var(--accent); color: #1a1208; border: none; font-weight: 700;
  font-size: 14px; padding: 13px 28px; border-radius: 6px; cursor: pointer; font-family: var(--sans);
}
.primary-btn:disabled { background: var(--panel-2); color: var(--text-faint); opacity: 1; cursor: not-allowed; border: 1px solid var(--border); }
.onboard-hint { font-size: 12px; color: var(--text-faint); margin-top: 10px; }
.primary-btn:not(:disabled):hover { filter: brightness(1.08); }

/* ==== mission board ==== */
.board-title { font-size: 22px; margin-bottom: 4px; }
.board-sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 28px; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .zones { grid-template-columns: 1fr; } }
.zone-card {
  border-radius: 14px; padding: 22px; cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  transition: transform 0.12s, border-color 0.12s;
}
.zone-card:hover { transform: translateY(-2px); }
.zone-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.zone-card[data-zone="ask"]::before { background: var(--accent-ask); }
.zone-card[data-zone="create"]::before { background: var(--accent-create); }
.zone-card[data-zone="build"]::before { background: var(--accent-build); }
.zone-card[data-zone="understand"]::before { background: var(--accent-understand); }
.zone-card[data-zone="ask"]:hover { border-color: var(--accent-ask); }
.zone-card[data-zone="create"]:hover { border-color: var(--accent-create); }
.zone-card[data-zone="build"]:hover { border-color: var(--accent-build); }
.zone-card[data-zone="understand"]:hover { border-color: var(--accent-understand); }
.zone-icon { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.zone-card[data-zone="ask"] .zone-icon { color: var(--accent-ask); }
.zone-card[data-zone="create"] .zone-icon { color: var(--accent-create); }
.zone-card[data-zone="build"] .zone-icon { color: var(--accent-build); }
.zone-card[data-zone="understand"] .zone-icon { color: var(--accent-understand); }
.zone-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.zone-desc { font-size: 13px; color: var(--text-dim); line-height: 1.45; margin-bottom: 14px; }
.zone-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }

/* ==== mission list ==== */
.back-link { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.back-link:hover { color: var(--text); }
.mission-list { display: flex; flex-direction: column; gap: 10px; }
.mission-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.mission-card:hover { border-color: var(--text-faint); }
.mission-card .m-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.mission-card .m-hook { color: var(--text-dim); font-size: 13px; line-height: 1.4; }
.mission-card .m-check { font-family: var(--mono); font-size: 16px; color: var(--text-faint); flex-shrink: 0; }
.mission-card.done .m-check { color: var(--accent-understand); }
.mission-card.done { opacity: 0.72; }

/* ==== mission detail ==== */
.starter-task-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; text-align: left; }
.starter-task-card {
  background: var(--panel-2); border: 2px solid var(--border); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; transition: border-color 0.15s;
}
.starter-task-card:hover { border-color: var(--text-faint); }
.starter-task-card.open { border-color: var(--accent-ask); background: rgba(77,159,255,0.06); }
.starter-task-card .st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.starter-task-card .st-title { font-size: 15.5px; font-weight: 600; }
.starter-task-card .st-tool { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-ask); }
.starter-task-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.idea-steps { margin: 0 0 14px 20px; padding: 0; }
.idea-steps li { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 4px; }
.prompt-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.5;
  color: var(--text); margin-bottom: 10px; white-space: pre-wrap;
}
.starter-task-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.starter-task-actions a, .starter-task-actions button {
  font-size: 12.5px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; font-family: var(--sans);
}
.starter-task-actions a { border-color: var(--accent-ask); color: var(--accent-ask); }
.starter-spark { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.starter-spark b { color: var(--accent-understand); }
.st-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tier-badge { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 10px; }
.tier-badge.tier-beginner { background: rgba(77,214,140,0.15); color: var(--accent-understand); }
.tier-badge.tier-intermediate { background: rgba(255,169,77,0.15); color: var(--accent-build); }
.tier-badge.tier-advanced { background: rgba(217,102,224,0.15); color: var(--accent-create); }

/* ---- Project Ideas library ---- */
.idea-cat-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.idea-cat-label:first-child { margin-top: 0; }
.idea-cat-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.idea-cat-label.cat-ask { color: var(--accent-ask); }
.idea-cat-label.cat-create { color: var(--accent-create); }
.idea-cat-label.cat-build { color: var(--accent-build); }
.idea-tool-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 4px; }
.idea-tool-chip {
  font-family: var(--sans); text-align: left; padding: 14px 16px; border-radius: 4px;
  border: 1px solid var(--border-soft); background: var(--panel); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
}
.idea-tool-chip:hover { border-color: var(--text-faint); }
.idea-tool-chip.selected { border-color: var(--accent); background: var(--accent-soft); }
.idea-tool-chip .itc-name { font-weight: 600; font-size: 14px; }
.idea-tool-chip .itc-teaser { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.idea-spark-tip { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 22px 0 14px; padding: 10px 14px; background: var(--panel-2); border-radius: 4px; }
.idea-spark-tip b { color: var(--text); }
.tier-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tier-filter-btn {
  font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 16px;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer;
}
.tier-filter-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---- hero spark + quick picks (the actual homepage) ---- */
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-eyebrow .he-label { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.hero-eyebrow .he-rule { flex-grow: 1; height: 1px; background: var(--border-soft); }
.hero-eyebrow .he-note { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.hero-card {
  position: relative; border: 1px solid var(--border); border-radius: 4px;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  padding: 32px 34px; overflow: hidden; margin-bottom: 20px;
}
.hero-card::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--accent); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.hero-title { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 27px; line-height: 1.3; max-width: 600px; letter-spacing: -0.2px; }
.hero-badges { display: flex; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.hero-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px; padding: 4px 9px; border-radius: 3px; border: 1px solid currentColor; text-transform: uppercase; }
.hero-sub { margin: 12px 0 0; font-size: 14.5px; color: var(--text-dim); max-width: 580px; line-height: 1.55; }
.hero-tool-line { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; }
.hero-tool-line .htl-label { color: var(--text-faint); }
.hero-tool-line .htl-tool { color: var(--text); font-weight: 600; }
.hero-prompt-box {
  margin-top: 10px; background: #0c0a08; border: 1px solid var(--border); border-radius: 4px;
  padding: 15px 17px; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; color: #f0e6d2;
}
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .primary-btn { padding: 11px 22px; font-size: 13.5px; }
.hero-actions .hero-open { font-family: var(--sans); font-weight: 600; font-size: 13.5px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 10px 20px; text-decoration: none; }
.hero-shuffle { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-dim); background: transparent; border: 1px dashed var(--border); border-radius: 20px; padding: 8px 14px; cursor: pointer; }
.hero-shuffle:hover { border-color: var(--text-faint); color: var(--text); }
.quick-picks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 32px; }
@media (max-width: 780px) { .quick-picks { grid-template-columns: 1fr; } }
.quick-pick { border: 1px solid var(--border-soft); border-radius: 4px; padding: 16px 18px; background: var(--panel); cursor: pointer; }
.quick-pick:hover { border-color: var(--text-faint); }
.quick-pick .qp-tool { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; margin-bottom: 7px; text-transform: uppercase; }
.quick-pick .qp-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.quick-pick .qp-link { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }
.browse-heading { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; }
.browse-heading h2 { margin: 0; font-size: 19px; font-weight: 700; }
.browse-heading .bh-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.browse-sub { margin: 0 0 20px; color: var(--text-dim); font-size: 13.5px; }
.mission-detail-head { margin-bottom: 22px; }
.zone-pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.zone-pill.ask { background: rgba(77,159,255,0.15); color: var(--accent-ask); }
.zone-pill.create { background: rgba(217,102,224,0.15); color: var(--accent-create); }
.zone-pill.build { background: rgba(255,169,77,0.15); color: var(--accent-build); }
.zone-pill.understand { background: rgba(77,214,140,0.15); color: var(--accent-understand); }
.mission-detail-head h2 { font-size: 22px; margin-bottom: 8px; }
.mission-detail-head .hook { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 12px; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.steps-list .step-num {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip {
  display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; text-decoration: none; color: var(--text); font-size: 13.5px;
}
.tool-chip:hover { border-color: var(--text-faint); }
.tool-chip .tname { font-weight: 600; }
.tool-chip .tnote { color: var(--text-faint); font-size: 11.5px; }
.reflection-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.reflection-list li { font-size: 14px; color: var(--text-dim); padding-left: 18px; position: relative; line-height: 1.5; }
.reflection-list li::before { content: "?"; position: absolute; left: 0; font-family: var(--mono); color: var(--text-faint); }
.complete-btn {
  margin-top: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 8px; cursor: pointer;
}
.complete-btn:hover { border-color: var(--accent-understand); }
.complete-btn.done { background: rgba(77,214,140,0.12); border-color: var(--accent-understand); color: var(--accent-understand); }

/* ==== understand widgets ==== */
.flip-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; margin-bottom: 14px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.flip-card .claim { font-size: 15px; line-height: 1.5; }
.flip-card .answer { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; }
.flip-card .explain { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.flip-card .tap-hint { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.explainer-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); margin-bottom: 14px; }
.scenario { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.scenario .situation { font-size: 14px; margin-bottom: 8px; }
.scenario .reveal-btn { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.scenario .take { font-size: 13px; color: var(--accent-understand); margin-top: 8px; display: none; line-height: 1.5; }
.scenario.revealed .take { display: block; }
.scenario.revealed .reveal-btn { display: none; }

/* ==== build wizard ==== */
.blueprint-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 700px) { .blueprint-choices { grid-template-columns: 1fr; } }
.blueprint-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; cursor: pointer; text-align: left; }
.blueprint-card:hover { border-color: var(--accent-build); }
.blueprint-card .bp-icon { font-size: 22px; margin-bottom: 8px; }
.blueprint-card .bp-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.blueprint-card .bp-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }
.wizard-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.wizard-field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-faint); margin-bottom: 6px; }
.wizard-field input, .wizard-field textarea, .wizard-field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; padding: 10px 12px; border-radius: 8px; font-family: var(--sans); resize: vertical;
}
.wizard-field input:focus, .wizard-field textarea:focus { outline: none; border-color: var(--accent-build); }
.choice-block { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--panel); }
.choice-block + .choice-block { margin-top: 10px; }
.wizard-actions { display: flex; gap: 10px; margin-top: 8px; }
.ghost-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; padding: 10px 18px; border-radius: 8px; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--text-faint); color: var(--text); }
.build-preview-frame {
  width: 100%; height: 480px; border: 1px solid var(--border); border-radius: 10px; background: #fff; margin-top: 18px;
}

/* ==== logbook ==== */
.logbook-section { margin-bottom: 28px; }
.logbook-empty { color: var(--text-faint); font-size: 13.5px; font-family: var(--mono); }
.logbook-item { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; cursor: pointer; }
.logbook-item:hover { border-color: var(--text-faint); }
.logbook-item .li-title { font-size: 13.5px; font-weight: 600; }
.logbook-item .li-meta { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ==== tools directory modal ==== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-box h3 { font-size: 17px; margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; color: var(--text-faint); font-size: 18px; cursor: pointer; }
.tool-full-card { border-bottom: 1px solid var(--border); padding: 14px 0; }
.tool-full-card:last-child { border-bottom: none; }
.tool-full-card .tf-name { font-weight: 700; font-size: 14.5px; }
.tool-full-card .tf-maker { color: var(--text-faint); font-size: 11.5px; font-family: var(--mono); }
.tool-full-card .tf-good { font-size: 13px; color: var(--text-dim); margin: 6px 0; line-height: 1.4; }
.tool-full-card .tf-note { font-size: 12px; color: var(--text-faint); line-height: 1.4; }
.tool-full-card a { color: var(--accent-ask); font-size: 12.5px; }
