@charset "UTF-8";
/* Visual reference: sibuzu/TestReview. Adapted for the local HFT strategy notebook. */
:root {
  --bg: #f7f8f4;
  --paper: #fff;
  --ink: #263b33;
  --muted: #7d8881;
  --line: #e5e9e1;
  --green: #365e49;
  --pale: #eaf0e5;
  --gap: 10px;
  --font: "DM Sans", "Noto Sans TC", "Segoe UI", "Microsoft JhengHei", sans-serif;
  --mono: Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.65 var(--font); }
button, input, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:hover, a:hover { filter: brightness(.96); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #aac59a; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
code { font: 12px/1.8 var(--mono); overflow-wrap: anywhere; }
.skip { position: fixed; left: 260px; top: -80px; padding: 10px; background: white; z-index: 99; }
.skip:focus { top: 8px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; background: #f0f2eb; border-right: 1px solid #e0e5d9; padding: 29px 20px; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbc8b0 transparent; }
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 17px; width: 100%; padding: 0 9px 27px; }
.brand-mark { font: italic 700 45px/1 Georgia, serif; letter-spacing: -4px; color: #416346; }
.brand-mark > span { color: #91a578; }
.brand > span:last-child { font-size: 17px; font-weight: 550; letter-spacing: 2px; }
.brand small { display: block; color: #8e9e80; font: 7px/2 var(--font); letter-spacing: 1px; }
.workspace-label { padding: 15px 12px 17px; font-size: 11px; color: #8a9589; display: flex; justify-content: space-between; letter-spacing: 1px; }
.workspace-label > span { background: #e4e9df; padding: 1px 7px; border-radius: 4px; letter-spacing: 0; font-size: 10px; }
.main-nav { display: grid; gap: 3px; }
.main-nav button { display: flex; align-items: center; width: 100%; padding: 10px 12px; border-radius: 7px; gap: 11px; color: #6e7a6e; text-align: left; font-size: 13px; }
.main-nav button.active { background: #e0e8d9; color: #34533e; font-weight: 600; }
.main-nav button > span { font-size: 17px; line-height: 1; width: 19px; text-align: center; }
.main-nav small { margin-left: auto; font-size: 10px; color: #8b9887; font-variant-numeric: tabular-nums; }
.favorite-sync { color: #819078; padding: 8px 12px 14px; font-size: 10px; text-align: left; }
.favorite-sync[data-sync="pending"] { color: #92723b; }
.favorite-sync[data-sync="synced"] { color: var(--green); }
.favorite-sync:disabled { cursor: default; }
.program-heading { margin: 27px 11px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #90998c; }
.sidebar-label { font-size: 11px; letter-spacing: 1px; overflow-wrap: anywhere; }
.program-heading button { font-size: 10px; color: #8f9b86; white-space: nowrap; padding: 0; }
.program-search { background: #f7f8f3; border: 1px solid #e0e5d9; border-radius: 6px; padding: 7px 10px; font-size: 11px; width: 100%; margin-bottom: 11px; }
.program-search::placeholder { color: #a0aa97; }
.program-list { display: grid; gap: 3px; margin-bottom: 28px; }
.program-list button { display: flex; align-items: center; width: 100%; padding: 9px 11px; border-radius: 7px; gap: 9px; color: #6e7a6e; text-align: left; font-size: 12px; }
.program-list button.active { background: #e0e8d9; color: #34533e; font-weight: 550; }
.program-icon { width: 24px; height: 24px; background: #e5e9e0; display: grid; place-items: center; border-radius: 6px; font-size: 10px; flex-shrink: 0; }
.program-list .count { margin-left: auto; font-size: 10px; color: #8b9887; }
.program-list .strategy-nav-link { line-height: 1.8; overflow-wrap: anywhere; align-items: flex-start; }
.program-list .strategy-nav-link.active { border-left: 3px solid #6d8b5e; padding-left: 8px; }
.sidebar-footer { border-top: 1px solid #dfe4d8; margin-top: auto; padding: 24px 4px 0; display: flex; gap: 10px; color: #788572; font-size: 11px; }
.sidebar-footer small { display: block; color: #9aa48f; font-size: 10px; margin-top: 4px; }
.small-icon { font-size: 18px; }
.workspace { margin-left: 242px; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); padding: 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f9faf6; }
.breadcrumb { display: flex; align-items: center; min-width: 0; flex: 1; gap: 12px; font-size: 11px; color: #929a8e; }
.breadcrumb span { color: #b9c0b2; flex-shrink: 0; }
.breadcrumb a { flex-shrink: 0; }
.breadcrumb strong { font-weight: 500; color: #536250; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; color: #899482; font-size: 10px; position: relative; padding-right: 65px; }
.topbar-right button { position: absolute; right: 0; top: 8px; font-size: 10px; color: #7a8d6c; padding: 0; }
.local-label { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #91a67b; display: inline-block; }
#generated-at { font-size: 10px; color: #8d9985; font-variant-numeric: tabular-nums; }
main { max-width: 1500px; margin: 0 auto; padding: 35px 44px 20px; min-height: calc(100vh - 76px); }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.list-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.list-heading h1 { font-size: 26px; font-weight: 550; line-height: 1.5; }
.result-count { color: #8d9e80; background: #ecf0e5; padding: 2px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.list-actions { display: flex; align-items: center; gap: 16px; }
.text-button { font-size: 11px; color: #8c9a7f; white-space: nowrap; padding: 0; }
.view-switch { display: flex; gap: 3px; border: 1px solid #e1e6da; padding: 3px; border-radius: 7px; background: #eff2e9; }
.view-switch button { color: #9ba68e; border-radius: 4px; padding: 2px 9px; font-size: 17px; line-height: 1.5; }
.view-switch button.active { background: white; box-shadow: 0 1px 3px #1f3d2410; color: #617457; }
.filters { display: flex; justify-content: space-between; gap: 12px; margin-bottom: var(--gap); flex-wrap: wrap; }
.search-wrap { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; max-width: 360px; min-width: 200px; flex: 1; }
.search-wrap svg { width: 15px; height: 15px; color: #99a18e; flex-shrink: 0; }
.search-wrap input { width: 100%; border: 0; background: transparent; outline: none; font-size: 12px; }
.search-wrap input::placeholder { color: #a3aa9a; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
select { border: 1px solid var(--line); border-radius: 7px; padding: 8px 20px 8px 10px; background: #fff; font-size: 11px; max-width: 190px; }
.reset-button { font-size: 11px; color: #9aa58f; padding: 4px; }
.active-filters { display: flex; gap: 7px; align-items: center; margin: 0 0 var(--gap); flex-wrap: wrap; }
.active-filters:empty { display: none; }
.filter-chip { font-size: 10px; padding: 3px 8px; background: #eaf0e3; color: #708365; border-radius: 4px; }
.filter-chip span { margin-left: 8px; }
.strategy-list { display: flex; flex-direction: column; gap: var(--gap); }
.strategy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap); }
.strategy-card { border: 1px solid #e3e8dd; border-radius: 10px; background: #fff; overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; min-width: 0; }
.strategy-card:hover { box-shadow: 0 7px 22px #3e533910; }
.card-main { padding: 20px; display: flex; flex: 1; flex-direction: column; cursor: pointer; outline-offset: -4px; }
.card-top { display: flex; align-items: center; gap: 7px; }
.program-tag { border-radius: 5px; font-size: 11px; padding: 3px 7px; display: inline-flex; align-items: center; background: #edf2e7; color: #75876b; overflow-wrap: anywhere; }
.program-tag[data-program="SuperBDS"] { background: #eef0f6; color: #7b89a5; }
.card-location { margin-top: 14px; font-size: 11px; color: #8e9a82; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.card-location span { color: #c0c8b7; }
.card-title { font-size: 16px; line-height: 1.6; font-weight: 550; margin: 6px 0 7px; color: #3d4d3a; overflow-wrap: anywhere; }
.card-description { font-size: 12px; line-height: 1.9; color: #7b876f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 20px; border-top: 1px solid #f0f2eb; font-size: 10px; color: #8a987d; }
.card-foot-actions { display: flex; align-items: center; gap: 13px; }
.card-foot-actions > button:last-child { color: #8b9e7b; font-size: 13px; padding: 0; }
.compare-toggle { font-size: 10px; padding: 2px 0; color: #9ba58f; white-space: nowrap; }
.compare-toggle.selected { color: #5a7b46; }
.favorite-toggle { font-size: 11px; color: #819078; padding: 3px 0; white-space: nowrap; }
.favorite-toggle.selected { color: #8e743b; }
.favorite-toggle:hover { color: var(--green); }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.status-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; }
.status-label:before { content: ""; width: 4px; height: 4px; background: #bda779; border-radius: 50%; }
.status-label.listed:before { background: #91aa7c; }
.card-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.analysis-status { font-size: 10px; border-radius: 4px; padding: 1px 6px; background: #f5f0e3; color: #ab956b; }
.analysis-status.complete { background: #edf3e7; color: #7b9468; }
.strategy-list .card-main { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 2px 16px; padding: 16px 20px; }
.strategy-list .card-top { grid-row: 1/4; align-self: center; }
.strategy-list .card-location, .strategy-list .card-title { margin: 0; }
.strategy-list .card-bottom { padding: 6px 20px; }
.empty { padding: 65px 20px; text-align: center; border: 1px dashed #d9e1cf; border-radius: 10px; background: #fff; }
.empty h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.empty p { color: #929d87; font-size: 12px; }
.empty button { margin-top: 14px; color: #6f875c; font-size: 12px; }
.page-footer { border-top: 1px solid var(--line); margin-top: 35px; padding: 24px 0 12px; color: #a6ae9b; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.footer-logo { font: italic 18px Georgia,serif; color: #9caa8b; }
.footer-right { margin-left: auto; font-size: 9px; }
.programs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gap); }
.program-card { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 23px; }
.eyebrow { font-size: 9px; letter-spacing: 2px; color: #8d9c77; font-weight: 600; margin-bottom: 12px; }
.program-card h3 { font-size: 18px; font-weight: 550; overflow-wrap: anywhere; }
.program-description { font-size: 12px; line-height: 1.9; color: #829175; margin: 14px 0 20px; }
.numbers { display: flex; gap: 25px; color: #92a084; font-size: 11px; }
.numbers strong { font-size: 24px; display: block; color: #657c54; font-weight: 500; }
.families { display: flex; gap: 5px; flex-wrap: wrap; margin: 18px 0; }
.family-badge, .category-pill { background: #edf2e7; color: #7b906a; border-radius: 4px; padding: 3px 7px; font-size: 10px; display: inline-block; }
.program-card > button { color: #718b60; font-size: 12px; padding: 0; }
.hint { color: #929e87; font-size: 12px; line-height: 1.9; margin-bottom: 16px; }
.data-table-wrap { overflow: auto; border: 1px solid #dbe4cf; border-radius: 7px; background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.9; text-align: left; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid #e4eadc; vertical-align: top; overflow-wrap: anywhere; }
.data-table th { color: #657b53; background: #eaf0e2; font-weight: 550; font-size: 11px; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table button { color: #718e5c; text-align: left; padding: 0; font-size: 12px; }
.data-table td > code { color: #849575; font-size: 11px; }
.index-name { font-weight: 500; color: #60774f; }
.secondary { display: block; font-size: 10px; color: #9da98f; margin-top: 4px; }
.options { margin-top: 9px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 600px; }
.options > span { font-size: 10px; color: #9ca88e; width: 100%; }
.options code { font-size: 10px; padding: 1px 6px; background: #f2f5ed; border: 1px solid #e6ebde; border-radius: 3px; color: #82956f; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0; font-size: 11px; color: #94a187; }
.pagination:empty { display: none; }
.pagination > div { display: flex; align-items: center; gap: 9px; }
.pagination button { border: 1px solid #dde4d3; border-radius: 6px; background: white; padding: 6px 11px; font-size: 11px; }
main.reading-strategy { padding-top: 18px; }
.reading-navigation { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; font-size: 11px; color: #8a9b7c; }
.reading-navigation button { padding: 0; color: #718969; font-size: 12px; }
.strategy-detail { outline: none; }
.detail-header { padding: 0; background: transparent; }
.detail-header .eyebrow { display: none; }
.detail-header h1 { font-size: 26px; font-weight: 550; line-height: 1.6; margin: 4px 0 9px; overflow-wrap: anywhere; }
.detail-header .detail-subject { display: flex; align-items: center; gap: 10px; }
.detail-header .compare-toggle { margin-left: auto; }
.detail-header > p { font-size: 16px; line-height: 2; color: #4f6549; margin: 22px 0 18px; max-width: 1000px; }
.detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #91a083; font-size: 11px; }
.detail-body { padding-top: 5px; }
.detail-toolbar { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); margin: 8px 0 26px; }
.detail-toolbar button { padding: 11px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: #9ba38f; font-size: 12px; }
.detail-toolbar button.active { color: #526d42; border-color: #6a8655; }
.detail-toolbar button span { font-size: 10px; background: #edf0e6; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.detail-filters { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.detail-filters input { flex: 1; min-width: 100px; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; font-size: 12px; }
.parameter-section { margin-bottom: 28px; }
.parameter-section h3 { display: flex; align-items: center; gap: 9px; font-weight: 550; font-size: 15px; margin-bottom: 12px; }
.parameter-section h3 small { margin-left: auto; font-size: 10px; color: #9aa58d; font-weight: 400; }
.section-summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; border-radius: 4px; }
.section-summary::-webkit-details-marker { display: none; }
.section-summary::marker { content: ""; }
.section-summary > h3, .section-summary > .logic-heading, .section-summary > .summary-title { flex: 1; min-width: 0; margin-bottom: 0; }
.collapse-chevron { width: 8px; height: 8px; margin: 0 5px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); color: #8d9f7d; flex-shrink: 0; }
.collapsible-section[open] > .section-summary .collapse-chevron { transform: rotate(45deg); }
.collapsible-section[open] > .section-body { margin-top: 14px; }
.collapsible-section > .section-summary h3 { margin-bottom: 0; }
.reading-notes > .section-summary .collapse-chevron { color: #ad996e; }
.category-square { width: 5px; height: 5px; background: #9ab087; }
.param-table td:first-child { width: 24%; min-width: 150px; }
.param-table td:nth-child(2) { width: 17%; min-width: 120px; }
.param-table td:nth-child(3) { min-width: 260px; }
.param-table strong { font-weight: 500; color: #5f784e; }
.logic-sections { display: grid; gap: 27px; }
.logic-section { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.logic-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.logic-heading > span { color: #a2b294; background: #eef2e7; padding: 7px 9px; font-size: 11px; border-radius: 5px; }
.logic-heading > div > span { font-size: 8px; letter-spacing: 1.5px; color: #a1ad96; }
.logic-heading h3 { font-size: 18px; font-weight: 550; margin: 1px 0 0; color: #526a43; }
.logic-section ol { margin: 0; padding-left: 24px; color: #687b5d; font-size: 14px; line-height: 2.05; }
.logic-section li { padding: 5px 0 5px 5px; }
.logic-section li::marker { color: #a0b08f; font-size: 11px; }
.trade-flow { display: flex; gap: 10px; margin-bottom: 25px; }
.trade-flow > div { background: #edf2e5; flex: 1; border-radius: 6px; padding: 14px; }
.trade-flow span { color: #a0b08f; font-size: 10px; }
.trade-flow p { font-size: 12px; color: #758965; margin-top: 6px; }
.extra-section { margin-top: 25px; }
.extra-section h3 { font-size: 17px; color: #5f764f; font-weight: 550; margin-bottom: 12px; }
.extra-section p { color: #738567; font-size: 14px; line-height: 2; margin-bottom: 10px; }
.example-block { background: #eef3e7; border: 1px solid #dfe7d5; border-radius: 8px; padding: 22px; margin-top: 27px; }
.example-block h3 { font-size: 16px; color: #627b50; font-weight: 550; margin: 0 0 13px; }
.example-block ol { padding-left: 22px; margin: 0; }
.example-block p, .example-block li { font-size: 13px; line-height: 2.05; color: #7a8c6b; }
.example-block li + li { margin-top: 7px; }
.reading-notes { background: #f8f3e9; border-left: 2px solid #d9c79a; border-radius: 0 6px 6px 0; padding: 18px 22px; margin-top: 25px; }
.reading-notes h3 { font-size: 15px; color: #9d8960; font-weight: 550; margin-bottom: 13px; }
.reading-notes ul { padding-left: 20px; margin: 0; font-size: 13px; line-height: 2; color: #9d8960; }
.reading-notes li + li { margin-top: 10px; }
.logic-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0 0; color: #9aa88d; font-size: 12px; }
.logic-next button { color: #7b965f; font-size: 12px; text-align: right; }
.notes { border-left: 2px solid #bdcfa9; padding: 15px 20px; color: #8e9c80; font-size: 13px; }
.compare-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.compare-intro .hint { margin: 0; }
.compare-intro button { font-size: 11px; color: #9ca68f; white-space: nowrap; }
.compare-table th:not(:first-child) { min-width: 240px; }
.compare-table th:first-child { min-width: 170px; }
.compare-table th strong { display: block; font-size: 16px; font-weight: 550; margin: 9px 0; }
.compare-table th button { font-size: 10px; color: #9da991; }
.compare-table .different { background: #fcf8ee; }
.compare-prose { white-space: pre-line; line-height: 2; max-width: 440px; }
.compare-note { font-size: 11px; color: #8a9b7a; margin-top: 7px; }
.comparison-group td { background: #edf2e5; color: #748b61; font-weight: 550; }
.muted { color: #9fa891; }
.about-dialog { padding: 30px; border: 1px solid #dde4d3; border-radius: 14px; width: 700px; max-width: calc(100vw - 30px); max-height: 90vh; color: var(--ink); background: #fafbf7; box-shadow: 0 25px 90px #1b302e30; }
dialog::backdrop { background: #26382c6b; backdrop-filter: blur(3px); }
.about-dialog .close { position: absolute; top: 18px; right: 18px; }
.icon-button { font-size: 22px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; line-height: 1; background: #fff; }
.about-dialog h2 { font-size: 22px; font-weight: 550; margin: 14px 30px 14px 0; }
.about-dialog > p, .about-dialog dd { font-size: 12px; line-height: 2; color: #8b997e; }
.about-dialog dt { margin: 22px 0 6px; font-size: 13px; font-weight: 550; }
.about-dialog dd { margin: 0; }
.toast { position: fixed; bottom: 30px; left: calc(50% + 120px); transform: translateX(-50%) translateY(20px); background: #344d35; color: white; padding: 12px 22px; border-radius: 8px; box-shadow: 0 5px 20px #223d2730; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 999; max-width: 90vw; }
.toast.visible { opacity: 1; transform: translateX(-50%); }
@media (min-width:1600px) { .strategy-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:1180px) {
  .sidebar { width: 210px; padding: 28px 15px; }
  .workspace { margin-left: 210px; }
  main { padding: 30px 28px 15px; }
  .topbar { padding: 0 28px; }
  .strategy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-wrap { max-width: none; }
  .filter-row { flex: 1; justify-content: flex-end; }
  .brand { gap: 12px; }
}
@media (max-width:760px) {
  .sidebar { position: relative; width: 100%; height: auto; border-right: 0; padding: 18px 20px 0; border-bottom: 1px solid #dce4d2; display: block; overflow: visible; }
  .brand { max-width: calc(100% - 120px); padding: 0 0 17px; gap: 12px; }
  .brand-mark { font-size: 33px; }
  .brand > span:last-child { font-size: 14px; letter-spacing: 1px; }
  .brand small { font-size: 6px; }
  .workspace-label, .sidebar-footer, .program-heading, .program-search { display: none; }
  .main-nav { position: absolute; top: 21px; right: 14px; display: flex; gap: 2px; }
  .main-nav button { font-size: 0; padding: 5px; gap: 0; width: auto; }
  .main-nav button > span { font-size: 19px; }
  .main-nav small { display: none; }
  .program-list { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 10px; margin: 0; scrollbar-width: thin; }
  .program-list button { width: auto; white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 6px 9px; gap: 6px; }
  .program-icon { width: 20px; height: 20px; }
  .program-list .count { margin-left: 2px; }
  .reading .program-heading { display: flex; margin: 0 0 7px; }
  .reading .program-list { max-height: 150px; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .reading .program-list button { width: 100%; white-space: normal; }
  .workspace { margin-left: 0; }
  .topbar { height: 60px; padding: 0 20px; gap: 8px; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .breadcrumb > a:first-child, .breadcrumb > span:nth-child(2) { display: none; }
  .topbar-right { padding-right: 0; }
  .topbar-right button { position: static; font-size: 9px; }
  .local-label { display: none; }
  #generated-at { font-size: 9px; }
  main { padding: 26px 20px 10px; }
  .list-heading { gap: 10px; margin-bottom: 16px; }
  .list-heading > div:first-child { gap: 6px; flex-wrap: wrap; }
  .list-heading h1 { font-size: 22px; }
  .list-actions { gap: 10px; }
  .result-count { font-size: 9px; }
  .text-button { font-size: 10px; }
  .view-switch button { padding: 2px 7px; }
  .filters { gap: 9px; }
  .search-wrap { flex-basis: 100%; padding: 10px 12px; }
  .search-wrap input { font-size: 11px; }
  .filter-row { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .filter-row select { max-width: none; width: 100%; min-width: 0; font-size: 11px; }
  .reset-button { justify-self: start; }
  .strategy-grid, .programs-grid { grid-template-columns: 1fr; }
  .card-main { padding: 17px; }
  .card-bottom { padding: 10px 17px; }
  .strategy-list .card-main { grid-template-columns: 90px minmax(0,1fr); padding: 13px 12px; gap: 2px 12px; }
  .strategy-list .card-bottom { padding: 7px 12px; }
  .card-location { font-size: 10px; }
  .program-tag { font-size: 10px; }
  .card-title { font-size: 15px; }
  .card-description { font-size: 11px; }
  .card-foot-actions { gap: 10px; }
  .card-bottom { flex-wrap: wrap; gap: 6px; }
  .detail-actions { gap: 10px; }
  .favorite-toggle { font-size: 10px; }
  .compare-toggle { font-size: 9px; }
  .footer-right { display: none; }
  .page-footer { font-size: 9px; }
  main.reading-strategy { padding-top: 14px; }
  .detail-header h1 { font-size: 22px; }
  .detail-header > p { font-size: 15px; margin-top: 20px; }
  .detail-badges { font-size: 10px; gap: 8px; }
  .detail-toolbar { gap: 20px; }
  .logic-section ol, .extra-section p { font-size: 13px; }
  .logic-heading h3 { font-size: 17px; }
  .reading-notes, .example-block { padding: 18px; }
  .reading-notes ul { font-size: 12px; }
  .logic-next { align-items: flex-start; font-size: 11px; }
  .logic-next button { font-size: 11px; }
  .pagination { flex-wrap: wrap; }
  .detail-filters { flex-wrap: wrap; gap: 8px; }
  .detail-filters input { flex-basis: 100%; }
  .detail-filters select { max-width: none; width: 100%; }
  .data-table th, .data-table td { padding: 10px 11px; }
  .about-dialog { padding: 22px; }
  .about-dialog h2 { font-size: 19px; }
  .toast { left: 50%; font-size: 11px; width: max-content; max-width: 90vw; }
}
@media (max-width:400px) {
  .brand { max-width: calc(100% - 145px); gap: 8px; }
  .brand-mark { font-size: 29px; }
  .brand > span:last-child { font-size: 12px; }
  .main-nav button { padding-inline: 4px; }
}
@media (prefers-reduced-motion:reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
