:root {
  color-scheme: light;
  --ink: #20322f;
  --muted: #53635f;
  --quiet: #6c7874;
  --forest: #173d39;
  --forest-light: #285650;
  --canvas: #f6f6f2;
  --paper: #fffefa;
  --line: #d9ded8;
  --line-soft: #e8ece6;
  --accent: #cfebd8;
  --focus: #1b7365;
  --a: #19735b;
  --b: #836221;
  --c: #765c86;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.5; }
::selection { background: #cae6d9; color: #143b34; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: #155e51; text-underline-offset: 3px; }
a:hover { color: #0d443b; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input::placeholder { color: #667670; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; background: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: 254px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: #f4f9f3; min-height: 100vh; padding: 27px 16px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 27px; border-bottom: 1px solid #41645d; }
.brand strong { font-family: Georgia, Cambria, serif; font-size: 23px; letter-spacing: -.025em; font-weight: 600; display: block; line-height: 1.15; }
.brand small { display: block; font-size: 11px; color: #cce0d6; margin-top: 4px; line-height: 1.3; }
.brand-mark { width: 31px; height: 31px; position: relative; display: block; flex: none; }
.brand-mark span { position: absolute; width: 9px; height: 22px; background: #b9d5b9; border-radius: 10px 10px 2px 2px; transform: rotate(36deg); top: 4px; }
.brand-mark span:nth-child(1) { left: 2px; height: 15px; top: 11px; }
.brand-mark span:nth-child(2) { left: 12px; }
.brand-mark span:nth-child(3) { left: 23px; height: 16px; top: 10px; }
.main-nav { display: grid; gap: 5px; margin-top: 29px; }
.nav-item { border: 0; background: transparent; color: #dce9e1; text-align: left; border-radius: 8px; padding: 11px 12px; font-weight: 600; font-size: 13px; transition: background .18s ease-out, color .18s ease-out; }
.nav-item:hover { background: #28534d; color: white; }
.nav-item.active { background: #e7f2e8; color: #173d39; }
.sidebar-bottom { margin-top: auto; padding: 17px 11px 0; border-top: 1px solid #41645d; color: #d5e5d9; font-size: 12px; }
.sidebar-bottom p { margin: 0 0 16px; line-height: 1.5; }
.sidebar-bottom strong { color: #f1f8ef; }
.sidebar-bottom span { color: #b7d2c7; font-size: 11px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; padding: 0 clamp(22px,3.2vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.topbar-title { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 650; white-space: nowrap; }
.eyeline { display: none; }
.topbar-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #368064; display: inline-block; }
main { flex: 1; width: 100%; max-width: 1700px; margin-inline: auto; padding: 32px clamp(22px,3.2vw,48px) 70px; }
.view[hidden] { display: none !important; }
.page-intro { max-width: 820px; }
.page-intro h1 { font-family: Georgia, Cambria, serif; font-size: clamp(30px,2.75vw,43px); font-weight: 500; letter-spacing: -.025em; line-height: 1.13; margin: 0 0 12px; color: #1b3934; text-wrap: balance; }
.page-intro p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 15px; line-height: 1.62; }
.page-intro.compact { margin-bottom: 31px; }
.intro-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px 19px; color: var(--muted); font-size: 12px; }
.intro-meta span + span { position: relative; }
.intro-meta span + span::before { content: ""; display: inline-block; vertical-align: middle; width: 3px; height: 3px; border-radius: 50%; background: #97aaa0; margin-right: 19px; }
.intro-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 9px 25px; flex-wrap: wrap; align-items: center; margin: 27px 0 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend strong { color: var(--ink); }
.level-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.level-a { background: var(--a); }.level-b { background: var(--b); }.level-c { background: var(--c); }
.explorer-layout, .pilots-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(325px, 42%); gap: 22px; align-items: start; }
.catalog-panel { min-width: 0; }
.controls { display: grid; gap: 10px; }
.search-field { display: flex; align-items: center; gap: 10px; width: 100%; height: 45px; padding: 0 13px; border: 1px solid #bfc9c1; background: var(--paper); border-radius: 9px; color: var(--muted); transition: border-color .18s ease-out, box-shadow .18s ease-out; }
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px #d7eae0; }
.search-field svg { width: 17px; height: 17px; flex: none; }
.search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); width: 100%; font-size: 13px; caret-color: var(--focus); }
.filter-row { display: flex; gap: 8px; }
.select-wrap { position: relative; min-width: 0; flex: 1; }
.select-wrap::after { content: ""; position: absolute; right: 13px; top: 14px; width: 6px; height: 6px; border-bottom: 1.5px solid #3e554e; border-right: 1.5px solid #3e554e; transform: rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; width: 100%; height: 38px; padding: 0 29px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf9; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.level-select { flex: 0 0 147px; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcf9; font-size: 12px; }
.filter-button:hover, .filter-button[aria-pressed="true"] { background: #e4f1e7; border-color: #a9c9b6; }
.filter-button svg { width: 14px; height: 14px; }
.filter-button[aria-pressed="true"] svg { fill: #28705a; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 24px 1px 9px; }
.result-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.result-heading span { color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.task-list { border-top: 1px solid var(--line); }
.task-row { border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0,1fr) 36px; align-items: stretch; transition: background .16s ease-out; }
.task-row:hover { background: #edf3ed; }
.task-row.selected { background: #e5f1e7; box-shadow: inset 2px 0 #2e7560; }
.task-select { min-width: 0; display: grid; grid-template-columns: 25px minmax(0,1fr); column-gap: 10px; text-align: left; border: 0; background: none; color: inherit; padding: 13px 5px 13px 11px; }
.task-level { align-self: start; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 750; border-radius: 6px; line-height: 1; }
.task-level.a, .level-pill.a { background: #dcefe4; color: #185d49; }.task-level.b, .level-pill.b { background: #f3eacd; color: #6b5014; }.task-level.c, .level-pill.c { background: #efe5f1; color: #674e78; }
.task-copy { min-width: 0; }
.task-copy strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.38; }
.task-copy small { display: block; margin-top: 4px; color: var(--quiet); font-size: 11px; }
.favorite-btn { align-self: start; margin-top: 12px; width: 28px; height: 28px; border: 0; background: transparent; border-radius: 6px; color: #61716a; display: grid; place-items: center; }
.favorite-btn:hover { background: #d5e5d9; }.favorite-btn.is-favorite { color: #987334; }
.favorite-btn svg { width: 16px; height: 16px; }.favorite-btn.is-favorite svg { fill: #e9d18b; }
.loading-message, .empty-results { color: var(--muted); padding: 27px 12px; margin: 0; font-size: 13px; }
.empty-results button { border: 0; background: none; color: #155e51; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-weight: 600; }
.detail-panel { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; scrollbar-color: #b8c7bb transparent; scrollbar-width: thin; background: var(--paper); border: 1px solid #ccd5cc; border-radius: 14px; box-shadow: 0 12px 28px -25px #173d39; min-height: 315px; }
.detail-inner { padding: 25px clamp(18px,2vw,29px) 29px; animation: detail-enter .22s cubic-bezier(.2,.75,.25,1) both; }
@keyframes detail-enter { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.detail-empty { padding: 34px 29px; color: var(--muted); }
.detail-empty-line { display: block; width: 39px; height: 4px; background: #bad8c2; border-radius: 5px; margin-bottom: 25px; }
.detail-empty h2 { font-family: Georgia, Cambria, serif; font-size: 22px; color: var(--ink); margin: 0 0 6px; font-weight: 500; }
.detail-empty p { margin: 0; font-size: 13px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-top small { color: var(--quiet); font-size: 11px; line-height: 1.35; }
.detail-title { margin: 17px 0 11px; font-family: Georgia, Cambria, serif; font-size: clamp(22px,1.9vw,28px); font-weight: 500; letter-spacing: -.025em; line-height: 1.21; color: #173d39; text-wrap: balance; }
.detail-domain { margin: 0 0 21px; color: var(--muted); font-size: 12px; }
.detail-rule { border-top: 1px solid var(--line-soft); padding-top: 19px; margin-top: 19px; }
.detail-rule h3, .prompt-section h3 { font-size: 12px; letter-spacing: .005em; color: var(--ink); margin: 0 0 8px; }
.detail-rule p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.58; }
.detail-rule p + p { margin-top: 8px; }
.prompt-section { border-top: 1px solid var(--line-soft); margin-top: 21px; padding-top: 20px; }
.prompt-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 11px; }
.prompt-head h3 { margin: 0; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; background: var(--forest); color: #fff; border: 1px solid var(--forest); border-radius: 7px; font-size: 11px; font-weight: 650; line-height: 1; transition: background .18s ease-out; }
.copy-btn:hover { background: var(--forest-light); }
.prompt-text { margin: 0; padding: 16px 17px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f0f4ef; border-radius: 9px; font-family: inherit; font-size: 12px; line-height: 1.58; color: #243d36; max-height: 285px; overflow: auto; scrollbar-color: #b8c7bb transparent; scrollbar-width: thin; }
.prompt-note { margin: 12px 0 0; font-size: 11px; line-height: 1.45; color: var(--quiet); }
.pilot-list { border-top: 1px solid var(--line); }
.pilot-row { display: grid; grid-template-columns: 32px minmax(0,1fr) 25px; gap: 13px; padding: 17px 8px 18px 5px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .16s ease-out; }
.pilot-row:hover, .pilot-row.selected { background: #eaf2ea; }
.pilot-row.selected { box-shadow: inset 2px 0 #2e7560; }
.pilot-number { color: #4d806b; font-family: Georgia, Cambria, serif; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pilot-copy strong { font-size: 14px; line-height: 1.35; display: block; }
.pilot-copy small { color: var(--quiet); display: block; font-size: 12px; margin-top: 5px; line-height: 1.45; }
.pilot-arrow { width: 15px; height: 15px; align-self: center; border-top: 1.5px solid #547063; border-right: 1.5px solid #547063; transform: rotate(45deg); }
.prose-view { max-width: 1170px; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 31%); gap: 56px; align-items: start; }
.prose-main { max-width: 73ch; }
.prose-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 23px; }
.prose-section:first-child { margin-top: 0; }
.prose-section h2, .note-box h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.01em; color: #1c3832; }
.prose-section p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.level-explain { display: grid; gap: 0; }
.level-explain > div { padding: 13px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 27px minmax(0,1fr); column-gap: 12px; }
.level-explain > div:last-child { border-bottom: 0; }
.level-explain strong { font-size: 13px; padding-top: 2px; }
.level-explain p { grid-column: 2; margin: 4px 0 0; font-size: 13px; }
.level-pill { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 750; }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.step-list li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #aac5b5; border-radius: 50%; font-size: 12px; font-weight: 700; color: #275c4f; }
.step-list strong { font-size: 13px; }.step-list span { font-size: 13px; color: var(--muted); line-height: 1.58; }
.plain-list { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plain-list li { padding: 3px 0; }
.plain-list li::marker { color: #5f9a78; }
.note-column { display: grid; gap: 15px; position: sticky; top: 20px; }
.note-box { background: #e7f0e8; border-radius: 12px; padding: 23px 22px; }
.note-box.subtle { background: #e9ece8; }
.note-box h2 { font-size: 15px; margin-bottom: 9px; }
.note-box p { color: #35554a; margin: 0 0 12px; font-size: 12px; line-height: 1.62; }
.note-box p:last-child { margin-bottom: 0; }
.sources-content { max-width: 74ch; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { border-bottom: 1px solid var(--line-soft); padding: 9px 0; font-size: 13px; }
.source-list a { font-weight: 600; }
.source-list a::after { content: " ↗"; font-size: 12px; }
.source-end { color: var(--quiet); font-size: 12px; margin-top: 32px; }
.footer { min-height: 51px; padding: 15px clamp(22px,3.2vw,48px); border-top: 1px solid var(--line); color: var(--quiet); display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 21px; padding: 11px 15px; border-radius: 8px; background: var(--forest); color: white; font-size: 12px; box-shadow: 0 10px 23px -15px #142f29; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease-out, transform .18s ease-out; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1180px) { .app-shell { grid-template-columns: 220px minmax(0,1fr); } .explorer-layout, .pilots-layout { grid-template-columns: minmax(0,1fr) minmax(300px,44%); gap: 15px; } .filter-row { flex-wrap: wrap; }.select-wrap { flex-basis: calc(50% - 4px); }.level-select { flex: 1 1 calc(50% - 4px); }.filter-button { flex: 1 1 100%; } }
@media (max-width: 880px) { .app-shell { display: block; }.sidebar { height: auto; min-height: 0; position: static; padding: 12px 18px 0; }.brand { padding: 0 0 13px; border-bottom: 0; }.brand strong { font-size: 20px; }.brand small { font-size: 10px; }.main-nav { margin: 0 -18px; padding: 0 18px; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #41645d; }.main-nav::-webkit-scrollbar { display: none; }.nav-item { white-space: nowrap; padding: 11px 13px; border-radius: 7px 7px 0 0; }.sidebar-bottom { display: none; }.topbar { height: 43px; padding: 0 20px; }.eyeline { display: inline; color: var(--quiet); }.eyeline::after { content: "/"; margin-left: 9px; color: #9aaba1; }.topbar-status { display: none; } main { padding: 25px 20px 60px; }.detail-panel { top: 12px; }.footer { padding-inline: 20px; } }
@media (max-width: 680px) { .page-intro h1 { font-size: 31px; }.page-intro p { font-size: 14px; }.intro-meta { gap: 6px 12px; }.intro-meta span + span::before { margin-right: 12px; }.explorer-layout, .pilots-layout, .prose-grid { display: block; }.detail-panel { position: static; max-height: none; margin-top: 21px; }.detail-inner { padding: 22px 19px; }.pilot-list { margin-bottom: 18px; }.note-column { position: static; margin-top: 27px; }.legend { gap: 8px 16px; }.legend span { white-space: normal; }.footer { display: block; }.footer span { display: block; }.footer span + span { margin-top: 4px; } }
@media (max-width: 440px) { .sidebar { padding-inline: 14px; }.main-nav { margin-inline: -14px; padding-inline: 14px; }.nav-item { font-size: 12px; }.topbar, main, .footer { padding-inline: 16px; }.filter-row { display: grid; grid-template-columns: 1fr 1fr; }.select-wrap, .level-select { width: 100%; }.filter-button { grid-column: span 2; }.task-select { padding-left: 3px; }.pilot-row { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
