/* priorwork.fyi v2 — FutureWork.fyi (amber accent) */
.amber-text { background: linear-gradient(100deg, #fde68a, #fbbf24 45%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.fw-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 44px); isolation: isolate; }
.fw-sky { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.fw-sky svg { width: 100%; height: 100%; }
.star { animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { opacity: 0.3; transform: scale(0.7); } }
.fw-hero-inner { text-align: center; }
.fw-hero .eyebrow { color: #fcd34d; }
.fw-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; margin: 18px auto 18px; max-width: 14ch; }
.fw-lede { max-width: 680px; margin: 0 auto; color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.16rem); }

.fw-main { max-width: 980px; padding-bottom: 40px; }
.loading { text-align: center; padding: 70px 20px; color: var(--muted); }
.loading .spinner { display: block; width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%; border: 2.5px solid rgba(251, 191, 36, 0.2); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 14px 18px; border-radius: 14px; background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.35); color: #fecdd3; }

/* funnel stats */
.run-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-bottom: 14px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.run-bar span { padding: 16px 18px; background: rgba(9, 14, 28, 0.92); color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.run-bar b { display: block; font: 600 1.55rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.run-bar span:first-child b { background: linear-gradient(100deg, #fde68a, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.run-bar span:last-child b { display: inline; font-size: inherit; font-family: var(--font); font-weight: 600; letter-spacing: 0; margin: 0; color: var(--text-2); }

.caveat { margin-bottom: 18px; border-radius: 14px; background: rgba(251, 191, 36, 0.05); border: 1px solid rgba(251, 191, 36, 0.22); color: #fde68a; font-size: 0.88rem; }
.caveat summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.caveat summary::-webkit-details-marker { display: none; }
.caveat summary b { color: #fde68a; }
.caveat summary span:first-of-type { color: rgba(253, 230, 138, 0.85); }
.caveat .more-l { margin-left: auto; font-weight: 600; font-size: 0.8rem; color: #fcd34d; }
.caveat[open] .more-l { visibility: hidden; }
.caveat p { padding: 0 14px 14px 40px; color: rgba(253, 230, 138, 0.8); line-height: 1.65; }

/* control bar */
.controls { position: sticky; top: var(--nav-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin: 0 -12px 16px;
  border-radius: 18px; background: rgba(6, 9, 19, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.search-wrap { position: relative; flex: 1 1 280px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; background: rgba(6, 10, 22, 0.7); border: 1px solid var(--line-2); color: var(--text); font: 400 0.95rem/1 var(--font); }
.search:focus { outline: none; border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12); }
.search::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 0.8rem/1 var(--font); padding: 9px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line-2); transition: all 0.15s; }
.chip:hover { color: var(--text); }
.chip.on { color: #fde68a; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.4); }
.chip .n { font: 500 0.74rem/1 var(--mono); opacity: 0.75; }
.dropdown { position: relative; }
.dd-toggle { height: 44px; padding: 0 14px; border-radius: 12px; font: 600 0.86rem/1 var(--font); color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; }
.dd-toggle:hover, .dd-toggle.active { color: var(--text); border-color: rgba(251, 191, 36, 0.5); }
.dd-toggle.active { background: rgba(251, 191, 36, 0.1); color: #fde68a; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 320px; max-width: calc(100vw - 32px); padding: 10px; border-radius: 16px; background: #0e1526; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.8); }
.dd-panel[hidden] { display: none; }
.dd-search { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; margin-bottom: 8px; background: rgba(6, 10, 22, 0.7); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 0.88rem; }
#dd-opts { max-height: 300px; overflow-y: auto; }
.dd-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 0.86rem; color: var(--text-2); cursor: pointer; }
.dd-opt:hover { background: var(--surface-2); color: var(--text); }
.dd-opt input { accent-color: var(--amber); }
.dd-opt .c { margin-left: auto; font: 500 0.74rem/1 var(--mono); color: var(--faint); }
.dd-sep { height: 1px; background: var(--line); margin: 6px 0; }
.dd-none { padding: 10px; color: var(--faint); font-size: 0.84rem; }
.dd-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dd-actions button { font: 600 0.82rem/1 var(--font); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.dd-actions button:last-child { background: linear-gradient(100deg, #fbbf24, #f59e0b); color: #1a1203; border: 0; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.tab { font: 600 0.88rem/1 var(--font); color: var(--muted); padding: 10px 16px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; }
.tab.on { color: var(--text); background: var(--surface-2); }
.tab .n { margin-left: 6px; font: 500 0.78rem/1 var(--mono); color: var(--faint); }
.panel[hidden] { display: none; }
.result-count { color: var(--muted); font-size: 0.84rem; margin: 4px 2px 12px; }

/* topic card */
.topic { position: relative; margin-bottom: 14px; padding: 22px 24px 18px; border-radius: 22px; background: rgba(13, 19, 36, 0.8); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.topic:hover { border-color: rgba(251, 191, 36, 0.28); box-shadow: 0 24px 50px -30px rgba(251, 191, 36, 0.35); }
.topic.direction { background: radial-gradient(120% 120% at 100% 0%, rgba(251, 191, 36, 0.08), transparent 55%), rgba(13, 19, 36, 0.85); border-color: rgba(251, 191, 36, 0.25); }
.dir-tag { display: inline-block; font: 700 0.66rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #1a1203; background: linear-gradient(100deg, #fde68a, #fbbf24); padding: 5px 9px; border-radius: 999px; margin-bottom: 10px; }
.region { font: 600 0.7rem/1.5 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: #c4b5fd; }
.topic h2 { font: 600 clamp(1.12rem, 2vw, 1.32rem)/1.3 var(--display); letter-spacing: -0.015em; margin: 8px 0 12px; color: var(--text); }
.match-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font: 600 0.7rem/1 var(--font); padding: 4px 8px; border-radius: 999px; color: #a7f3d0; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.topic .badge { display: inline-flex; align-items: center; gap: 5px; font: 600 0.76rem/1 var(--font); letter-spacing: 0; text-transform: none; padding: 6px 10px; border-radius: 999px; cursor: help;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.15s; }
.topic .badge:hover, .topic .badge.open { border-color: rgba(160, 180, 255, 0.45); color: var(--text); }
.topic .badge-static { cursor: default; }
.topic .badge.stab-strong { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.topic .badge.stab-possible { color: #bfdbfe; background: rgba(91, 157, 255, 0.1); border-color: rgba(91, 157, 255, 0.35); }
.topic .badge.stab-weak { color: #fecdd3; background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.3); }
.topic .badge.prov-generalisation, .topic .badge.prov-unclassified { color: #fde68a; background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.3); }
.vpill { display: inline-flex; align-items: center; gap: 6px; font: 700 0.76rem/1 var(--font); padding: 6px 10px; border-radius: 999px; }
.vpill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.vpill.v-open { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); }
.vpill.v-partial { color: #fcd34d; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); }
.vpill.v-already { color: #fda4af; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); }
.badge-tip { display: none; margin: 10px 0 2px; padding: 11px 14px; border-radius: 12px; background: rgba(6, 9, 19, 0.7); border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.86rem; line-height: 1.6; }
.badge-tip.show { display: block; }
.prov-note { margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; background: rgba(148, 170, 255, 0.05); border: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.prov-note b { color: var(--text-2); }

.topic h3 { font: 700 0.7rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #fcd34d; margin: 18px 0 8px; }
.topic > h3:first-of-type { margin-top: 16px; }
.body, .approaches, .risk { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }
.topic > .body:not(.impact) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic:has(.more[open]) > .body:not(.impact) { -webkit-line-clamp: unset; display: block; }
.approaches { padding: 12px 14px; border-radius: 12px; background: rgba(52, 211, 153, 0.05); border: 1px solid rgba(52, 211, 153, 0.2); }
.risk { padding: 12px 14px; border-radius: 12px; background: rgba(251, 113, 133, 0.05); border: 1px solid rgba(251, 113, 133, 0.2); }

.more { margin-top: 14px; border-top: 1px solid var(--line); }
.more > summary { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none;
  font: 600 0.84rem/1 var(--font); color: #fcd34d; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: rgba(251, 191, 36, 0.14); }
.more > summary svg { transition: transform 0.2s; }
.more[open] > summary svg { transform: rotate(180deg); }
.more .more-close { display: none; }
.more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.more-body { padding-top: 4px; }

.source-list { display: grid; gap: 8px; }
.source { padding: 12px 14px; border-radius: 12px; background: rgba(6, 9, 19, 0.5); border: 1px solid var(--line); }
.source-h { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.source-v { margin-left: 6px; font: 500 0.74rem/1 var(--mono); color: var(--faint); white-space: nowrap; }
.source-s { margin-top: 6px; padding-left: 12px; border-left: 2px solid rgba(251, 191, 36, 0.35); color: var(--text-2); font-size: 0.88rem; line-height: 1.6; font-style: italic; }
.source-list a, .topic table a { color: var(--text); }
.source-list a:hover, .topic table a:hover { color: #fde68a; }
.part { margin-bottom: 10px; }
.part-h { font: 600 0.78rem/1.4 var(--font); color: #c4b5fd; margin: 8px 0; }

.verdict { margin-top: 16px; padding: 13px 15px; border-radius: 14px; font-size: 0.9rem; line-height: 1.6; color: var(--text-2); border: 1px solid var(--line-2); background: var(--surface); }
.verdict b { display: block; margin-bottom: 4px; color: var(--text); }
.verdict.v-open { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); } .verdict.v-open b { color: #6ee7b7; }
.verdict.v-partial { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.05); } .verdict.v-partial b { color: #fcd34d; }
.verdict.v-already { border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.05); } .verdict.v-already b { color: #fda4af; }

.topic details:not(.more):not(.kid) { margin-top: 14px; }
.topic details:not(.more):not(.kid) > summary { cursor: pointer; font: 600 0.84rem/1.4 var(--font); color: var(--text-2); padding: 6px 0; }
.topic details:not(.more):not(.kid) > summary:hover { color: var(--text); }
.prov { color: var(--muted); font-size: 0.84rem; margin: 6px 0 8px; }
.topic table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.topic td { padding: 8px 6px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
td.num, td.sim { font: 500 0.78rem/1.5 var(--mono); color: var(--faint); white-space: nowrap; }
td.venue { white-space: nowrap; color: var(--muted); font-size: 0.8rem; }

/* directions: nested projects */
.kids { margin-top: 18px; }
.kids-lede { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.kid { margin-bottom: 8px; border-radius: 14px; background: rgba(6, 9, 19, 0.45); border: 1px solid var(--line); }
.kid > summary { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; cursor: pointer; list-style: none; }
.kid > summary::-webkit-details-marker { display: none; }
.kid > summary::before { content: "+"; font: 600 1rem/1 var(--mono); color: #fcd34d; width: 12px; flex-shrink: 0; }
.kid[open] > summary::before { content: "–"; }
.kid > summary:hover { background: var(--surface); border-radius: 14px; }
.k-title { flex: 1; font-weight: 600; color: var(--text); font-size: 0.94rem; }
.k-meta { color: var(--faint); font-size: 0.78rem; white-space: nowrap; }
.k-body { padding: 0 16px 14px 40px; color: var(--text-2); font-size: 0.9rem; line-height: 1.65; }
.k-body h5 { font: 700 0.66rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #fcd34d; margin: 14px 0 6px; }

/* rating */
.rate { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.84rem; }
.rate span:first-child { margin-right: auto; }
.rate button { font-size: 0.95rem; line-height: 1; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; filter: grayscale(0.5); transition: all 0.15s; }
.rate button:hover { filter: none; background: var(--surface-2); }
.rate button.picked-up { filter: none; background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.6); }
.rate button.picked-down { filter: none; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.6); }
.rate .thanks { color: #6ee7b7; }

#content .section-head { text-align: left; margin: 26px 0 12px; max-width: none; }
#content .section-head h2 { font-size: 1.3rem; margin: 0; }
#content .section-head .sub2 { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.seo-list h2 { font-size: 1.4rem; margin: 20px 0 10px; }
.seo-list h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.seo-list p, .seo-list li { color: var(--text-2); }

@media (max-width: 640px) {
  .controls { position: static; margin: 0 0 14px; padding: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .dropdown { flex: 0 0 auto; }
  .topic { padding: 18px 16px 14px; border-radius: 18px; }
  .run-bar { grid-template-columns: 1fr 1fr; }
  .run-bar span:last-child { grid-column: 1 / -1; }
  .k-body { padding-left: 16px; }
  .topic table td.sim, .topic table td.num { display: none; }
}

/* round 2 */
.run-bar span b:not(:first-child) { display: inline; font: 600 0.9rem/1 var(--font); letter-spacing: 0; color: var(--text-2); background: none; -webkit-text-fill-color: currentColor; margin: 0; }
.more { border-top: 0; }
.topic > .more:not([open]) + .rate { width: fit-content; height: 36px; margin: -36px 0 0 auto; padding: 0; border-top: 0; align-items: center; }

/* round 3 */
.run-bar { grid-template-columns: repeat(3, 1fr); }
.run-bar span:last-child b { display: block; font: 600 1.55rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.caveat summary svg { flex-shrink: 0; width: 16px; height: 16px; }
.caveat p + p { margin-top: -6px; }
.rate button { display: inline-grid; place-items: center; color: var(--text-2); filter: none; }
.rate button:hover { color: var(--text); }
.rate button.picked-up { color: #6ee7b7; }
.rate button.picked-down { color: #fda4af; }
.topic:not(:has(.more[open])) .badge.recent { display: none; }
@media (max-width: 640px) {
  .topic > .more:not([open]) + .rate { width: auto; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
  .run-bar { grid-template-columns: 1fr; }
  .run-bar span:last-child { grid-column: auto; }
  .run-bar span { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
  .run-bar b, .run-bar span:last-child b { display: inline; font-size: 1.25rem; margin: 0; }
}

/* round 4 */
.run-bar em { display: block; font-style: normal; color: var(--faint); font-size: 0.78rem; margin-top: 2px; }
.topic:not(:has(.more[open])) .badges .badge:not(.badge-static):not(.dropped) { display: none; }
.topic h2 { text-wrap: pretty; max-width: 62ch; }
.topic sup, .topic sub { font-size: 0.72em; }
@media (max-width: 640px) {
  .region { letter-spacing: 0.04em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .run-bar em { display: none; }
}

/* round 5 */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head .result-count { margin: 0; }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.84rem; }
.sort select { height: 36px; padding: 0 30px 0 12px; border-radius: 10px; background: rgba(6, 10, 22, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592ad' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
  border: 1px solid var(--line-2); color: var(--text); font: 600 0.84rem/1 var(--font); -webkit-appearance: none; appearance: none; cursor: pointer; }
/* status owns amber; the disclosure is a neutral action */
.more > summary { color: var(--text-2); background: var(--surface); border-color: var(--line-2); }
.more > summary:hover { color: var(--text); background: var(--surface-2); }
/* "no prior art" problems carry more weight in the list */
.topic:has(.vpill.v-open) { border-color: rgba(52, 211, 153, 0.22); }
.topic:has(.vpill.v-open)::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
/* keep the constellation out of the reading area */
.fw-hero-inner { position: relative; }
.fw-hero-inner::before { content: ""; position: absolute; inset: -30px -10% -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 9, 19, 0.9), rgba(6, 9, 19, 0.6) 60%, transparent); }
@media (max-width: 640px) {
  .caveat summary { flex-wrap: wrap; align-items: flex-start; }
  .caveat summary span:first-of-type { flex: 1 1 0; min-width: 0; }
  .caveat .more-l { flex-basis: 100%; margin-left: 26px; }
  .list-head { align-items: flex-start; }
}

/* round 6 */
.controls { margin: 0 0 16px; }
.topic:has(.vpill)::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rule, transparent); }
.topic:has(.vpill.v-open) { --rule: var(--green); }
.topic:has(.vpill.v-partial) { --rule: var(--amber); border-color: rgba(251, 191, 36, 0.16); }
.topic:has(.vpill.v-already) { --rule: var(--rose); }
.topic .badge-static { color: var(--text); background: rgba(148, 170, 255, 0.1); border-color: rgba(160, 180, 255, 0.3); font-weight: 700; }
.more { margin-top: 6px; }
.more > summary { margin-top: 8px; }
.fw-hero-inner::before { inset: -40px -14% -50px; background: radial-gradient(closest-side, rgba(6, 9, 19, 0.96), rgba(6, 9, 19, 0.82) 65%, transparent); }
@media (max-width: 640px) {
  .chips { flex-wrap: wrap; overflow: visible; -webkit-mask: none; mask: none; }
}

/* round 7 */
.topic .badge.dropped { color: #fcd34d; background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.3); border-style: dashed; }
.prov-note { margin: 14px 0 0; }
.prov-quote { margin-top: 8px; padding-left: 12px; border-left: 2px solid rgba(251, 191, 36, 0.35); font-style: italic; }
.more-areas { color: var(--muted); cursor: help; letter-spacing: 0; }
@media (max-width: 640px) {
  .list-head { flex-wrap: nowrap; align-items: center; }
  .list-head .result-count { flex: 1; min-width: 0; }
  .sort { font-size: 0; gap: 0; }
  .sort select { font-size: 0.8rem; }
}

/* round 8 */
.more > summary { height: 36px; box-sizing: border-box; padding: 0 12px; }
.topic:not(:has(.more[open])) > h3:first-of-type { display: none; }
.topic:not(:has(.more[open])) > .badges { margin-bottom: 10px; }
.evid { gap: 8px; }
.evid .dots { display: inline-flex; gap: 2px; align-items: center; }
.evid .dots i { width: 4px; height: 10px; border-radius: 1.5px; background: linear-gradient(#fde68a, #fbbf24); opacity: 0.9; }
.evid .dots i.more { width: 8px; background: none; border: 1px solid #fbbf24; border-left: 0; border-radius: 0 3px 3px 0; height: 8px; }
#topics.tiered .vpill { display: none; }
.tier-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 26px 2px 12px; font-size: 0.95rem; }
.tier-head:first-child { margin-top: 4px; }
.tier-head b { font: 600 1.05rem/1.2 var(--display); color: var(--text); }
.tier-dot { width: 9px; height: 9px; border-radius: 50%; align-self: center; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tier-head.v-open { color: #6ee7b7; } .tier-head.v-partial { color: #fcd34d; } .tier-head.v-already { color: #fda4af; }
.tier-n { font: 500 0.82rem/1 var(--mono); color: var(--muted); }
.tier-sub { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 640px) {
  .wide-l { display: none; }
  .topic > .more:not([open]) + .rate { width: fit-content; height: 36px; margin: -36px 0 0 auto; padding: 0; border-top: 0; }
  .topic > .more:not([open]) + .rate span:first-child { display: none; }
  .caveat summary { flex-wrap: nowrap; align-items: center; }
  .caveat .more-l { flex-basis: auto; margin-left: auto; }
  .tier-sub { flex-basis: 100%; padding-left: 19px; }
}

/* round 9 */
.topic .badge.dropped { color: var(--text-2); background: transparent; border-color: var(--line-2); border-style: dashed; }
.sub-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 22px 2px 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.sub-head b { font: 600 0.98rem/1.2 var(--display); color: var(--text-2); }
@media (min-width: 641px) { .topic > .body:not(.impact) { -webkit-line-clamp: 2; } }
.dir-strip:empty { display: none; }
.dir-strip { margin: 4px 0 22px; }
.strip-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 2px 10px; }
.strip-h b { font: 600 1.05rem/1.2 var(--display); color: #fde68a; }
.strip-h span { color: var(--muted); font-size: 0.86rem; }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dir-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px 16px; border-radius: 16px; cursor: pointer;
  background: radial-gradient(120% 120% at 100% 0%, rgba(251, 191, 36, 0.1), transparent 60%), rgba(13, 19, 36, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.22); color: var(--text); font: inherit; transition: border-color 0.2s, transform 0.2s; }
.dir-card:hover { border-color: rgba(251, 191, 36, 0.5); transform: translateY(-2px); }
.dc-k { font: 600 0.68rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: #fcd34d; }
.dc-t { font: 600 0.92rem/1.35 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .strip-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .controls { flex-wrap: wrap; }
  .controls .chips { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 82%, transparent); mask: linear-gradient(90deg, #000 82%, transparent); }
  .strip-row { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
  .strip-row::-webkit-scrollbar { display: none; }
  .dir-card { flex: 0 0 72%; scroll-snap-align: start; }
}

/* round 10 */
.evid .dots i.more { width: auto; height: auto; border: 0; background: none; color: #fbbf24; font: 700 0.8rem/1 var(--font); font-style: normal; margin-left: 1px; }
.evid .dots i.more::before { content: "+"; }
.dc-t { -webkit-line-clamp: 4; }
@media (max-width: 640px) {
  .run-bar em { display: inline; margin-left: 4px; }
  .topic > .more:not([open]) + .rate span:first-child { display: inline; font-size: 0; }
  .topic > .more:not([open]) + .rate span:first-child::before { content: "Pursue?"; font-size: 0.8rem; }
  .topic > .more:not([open]) + .rate span.thanks::before { content: "Noted"; }
}
