/* Settings › Appearance (themes.js, docs/THEMES.md). Flat: hairlines between rows, no boxes. */
.th-mine { padding: 4px 0 8px; }
.th-row { display: flex; gap: 16px; align-items: center; padding: 10px 0; border-bottom: var(--hair); flex-wrap: wrap; }
.th-k { color: var(--text-3); font-size: 12.5px; min-width: 120px; }
.th-v { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.th-opt { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); cursor: pointer; }
.th-opt input { accent-color: var(--canopy); margin: 0; }
.th-v select, .th-form select, .th-form input:not([type=checkbox]):not([type=color]), .th-w input {
  background: var(--ink-2); border: 1px solid var(--control); border-radius: var(--radius-s); color: var(--text); padding: 7px 9px; font: 13.5px var(--sans); }
.th-v input[type=color], .th-form input[type=color] { width: 44px; height: 32px; padding: 0 2px; border: 1px solid var(--control); border-radius: var(--radius-s); background: var(--ink-2); }
.th-foot { margin: 12px 0 0; }
.th-foot a { color: var(--sky); }
.th-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
/* "Previewing … version N": a band of its own above the frame, which is made shorter by its height, so the bar never
   covers a header's buttons (the Tasks header's search and New task were under it before, tt-fix-areas). */
:root { --pv-h: 40px; }
.th-previewbar { position: fixed; left: 0; right: 0; top: 0; height: var(--pv-h); z-index: var(--z-preview); display: flex; gap: 12px; align-items: center; justify-content: center;
  background: var(--chrome-bg); color: var(--chrome-fg); border-bottom: 2px solid var(--warn); padding: 0 12px; font-size: 13px; }
.th-previewbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-previewbar .btn { flex: none; }
:root.th-previewing body { padding-top: var(--pv-h); }
:root.th-previewing .shell { height: calc(100vh - var(--pv-h)); height: calc(100dvh - var(--pv-h)); }
@media (max-width: 780px) { :root { --pv-h: 44px; } .th-previewbar { padding: 0 10px; font-size: 12px; gap: 8px; justify-content: space-between; } .th-previewbar span { white-space: normal; line-height: 1.25; } }

.th-co .th-sec { border-top: var(--hair); padding: 18px 0 8px; }
.th-co .th-sec > h2 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.th-co .th-sec > p { margin: 0 0 12px; }
.th-now { display: flex; flex-direction: column; gap: 6px; padding: 0 0 16px; }
.th-rb { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.th-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px 28px; }
.th-preset { display: flex; flex-direction: column; gap: 8px; }
.th-pmeta { display: flex; flex-direction: column; gap: 4px; }
.th-pmeta .btn { align-self: flex-start; margin-top: 4px; }
.th-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.th-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0; }
.th-ba h3 { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin: 0 0 6px; }
@media (max-width: 780px) { .th-ba { grid-template-columns: 1fr; } }

/* The mini console, the frame as drawn now (CONSOLE-REDESIGN §3): a sidebar of icons and the header with the breadcrumb
   are one frame; the content sits inset on its own surface with its radius, open on Tasks › For you. Its custom
   properties come from the version's validated values, on this element only. */
.th-mini { margin: 0; min-width: 0; }
.th-mini figcaption { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.th-m-frame { display: grid; grid-template-columns: 24px minmax(0, 1fr); background: var(--chrome-bg); border: 1px solid var(--line-2); height: 148px; overflow: hidden; font-size: 10px; line-height: 1.35; }
.th-m-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 5px 0; }
.th-m-sq { width: 14px; height: 14px; border-radius: 3px; background: var(--canopy); color: var(--canopy-ink); font: 700 6.5px/14px var(--sans); text-align: center; letter-spacing: 0; }
.th-m-plus { width: 16px; height: 12px; border-radius: 3px; background: var(--canopy-fill); position: relative; margin-bottom: 3px; }
.th-m-plus::before, .th-m-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--on-fill); transform: translate(-50%, -50%); }
.th-m-plus::before { width: 6px; height: 1.5px; } .th-m-plus::after { width: 1.5px; height: 6px; }
.th-m-side i { width: 12px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--chrome-fg-2); }
.th-m-side i.on { background: var(--chrome-active); box-shadow: inset 0 0 0 1.5px var(--chrome-fg); }
.th-m-main { display: flex; flex-direction: column; min-width: 0; }
.th-m-crumb { height: 22px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px; color: var(--chrome-fg-2); white-space: nowrap; overflow: hidden; }
.th-m-crumb b { color: var(--chrome-fg); font-weight: 600; }
.th-m-page { flex: 1; min-height: 0; background: var(--content-bg); color: var(--text); margin: 0 5px 5px 0; border: 1px solid var(--chrome-line); border-radius: var(--content-radius);
  padding: 0 8px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.th-m-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 0 -8px; padding: 0 8px; color: var(--text-3); }
.th-m-tabs span { padding: 4px 0 3px; border-bottom: 1.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.th-m-tabs span.on { color: var(--text); border-bottom-color: var(--canopy); font-weight: 600; }
.th-m-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-m-cap { color: var(--text-3); font-size: 9px; letter-spacing: .04em; }
.th-m-row { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; color: var(--text-2); }
.th-m-row i { width: 7px; height: 7px; display: inline-block; }
.th-m-row i.ok { background: var(--ok); border-radius: 50%; }
.th-m-row i.warn { background: var(--warn); transform: rotate(45deg) scale(.85); }
.th-m-row i.bad { background: var(--bad); }
.th-m-row i.info { box-shadow: inset 0 0 0 2px var(--info); border-radius: 50%; }
.th-m-btn { border: 1px solid var(--control); border-radius: var(--radius-s); padding: 1px 6px; color: var(--text); }
.th-m-btn.primary { background: var(--canopy-fill); border-color: var(--canopy-fill); color: var(--on-fill); }
.th-m-link { color: var(--sky); }

.th-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 4px 0 12px; }
.th-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.th-form label.th-opt { flex-direction: row; color: var(--text-2); }
.th-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 24px; }
.th-w { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: var(--hair); min-width: 0; }
.th-w span { font: 12px var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.th-w small { display: block; font: 11.5px var(--sans); color: var(--text-3); }
.th-locked { margin: 10px 0; color: var(--text-2); font-size: 12.5px; }
.th-locked div { padding: 4px 0; border-bottom: var(--hair); overflow-wrap: anywhere; }
.th-vt { width: 100%; table-layout: auto; }
.th-vt td, .th-vt th { white-space: nowrap; text-align: left; vertical-align: middle; }
.th-vt th:last-child, .th-vt td:last-child { width: 1%; text-align: right; }
.th-vt tr.th-detail td { white-space: normal; }
.th-st.refused { color: var(--bad-2); } .th-st.eligible, .th-st.applied { color: var(--ok); } .th-st.waiting-render { color: var(--warn); }
.th-checks { list-style: none; margin: 8px 0; padding: 0; }
.th-checks li { padding: 8px 0; border-bottom: var(--hair); overflow-wrap: anywhere; }
.th-pass { color: var(--ok); font-weight: 600; } .th-fail { color: var(--bad-2); font-weight: 600; } .th-wait { color: var(--warn); font-weight: 600; }
.th-why { color: var(--text-2); font-size: 12.5px; margin: 3px 0 0 14px; }
.th-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 0; }
@media (max-width: 780px) { .th-vt { display: block; overflow-x: auto; } .th-k { min-width: 0; width: 100%; } }
.th-co .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
