/* Help center theme: Talos Automation brand (ink, paper, teal wire). --accent comes from Settings (hc_color),
   defaulting to wire-deep; fonts + brand tokens come from /brand/brand.css. */
:root {
  --accent: #0b7a67; --on-accent: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --accent-strong: color-mix(in srgb, var(--accent) 86%, black);
  --ink: #0a0f0e; --ink-soft: #101716; --paper: #fafaf8; --wire: #0fa98e; --wire-deep: #0b7a67; --wire-tint: #d9f2ec;
  --bg: #fafaf8; --surface: #fff; --text: #111816; --muted: #5c6663; --faint: #8a9490; --line: #e4e8e6; --line-strong: #cdd4d1;
  --ok: #0b6b5a; --ok-bg: #e3f4ef; --warn: #7a4d0d; --warn-bg: #fbf3e2; --err: #b0362c; --err-bg: #fbeceb; --info-bg: #e6f1f4;
  --radius: 2px; --radius-sm: 2px; --shadow: 0 1px 2px rgba(10, 15, 14, .04);
  --shadow-lg: 0 18px 50px -20px rgba(10, 15, 14, .35);
  --font: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
::selection { background: var(--wire); color: var(--paper); }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: 1.4rem; letter-spacing: -.025em; } h3, .h3 { font-size: 1.12rem; }
.h4 { font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--wire); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { transform: none; box-shadow: var(--shadow-lg); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .spacer { flex: 1; }
.req { color: var(--err); }

/* header / footer */
.site-header { background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-lockup { font-size: 1.15rem; flex: none; }
.brand-sep { width: 1px; height: 20px; background: var(--line-strong); flex: none; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--text); text-decoration: none; padding: 8px 12px; font-size: .84rem; font-weight: 500; white-space: nowrap; opacity: .8; transition: opacity .15s, color .15s; }
.nav-link:hover { opacity: 1; color: var(--wire-deep); }
.menu { position: relative; }
.menu-btn { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px; font-size: .9rem; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:hover { background: var(--bg); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--wire-tint); color: var(--wire-deep); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--wire); display: inline-grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .8rem; }
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 62%, transparent); margin-top: 72px; border-top: 1px solid var(--wire); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 28px 16px; font: 400 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.footer-brand, .footer-meta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.footer-brand .talos-lockup { font: 700 1.05rem var(--font); text-transform: none; letter-spacing: -.025em; color: var(--paper); }
.footer-brand .talos-lockup .talos-mono { color: var(--wire); }
.footer-link { color: var(--wire); text-decoration: none; } .footer-link:hover { color: var(--paper); }

/* hero + search */
.hero { position: relative; background-color: var(--ink); background-image: radial-gradient(rgba(250, 250, 248, .06) 1px, transparent 0); background-size: 24px 24px; color: var(--paper); border-bottom: 1px solid var(--wire); }
.hero-signal { font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .22em; color: var(--wire); margin: 0 0 16px; }
.hero-in { padding: 72px 16px 80px; text-align: left; }
.hero h1 { color: inherit; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.04em; line-height: 1; margin-bottom: .35em; max-width: 18ch; }
.hero-sub { color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 0 0 30px; max-width: 560px; font-size: 1.08rem; }
.hero .search { margin: 0; }
.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; padding: 6px 6px 6px 16px; color: var(--text); text-align: left; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire) 30%, transparent); border-color: var(--wire); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 8px 4px; color: var(--text); outline: none; }
.search-icon { color: var(--muted); display: flex; }
.search-lg { padding: 8px 8px 8px 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); border: 1px solid transparent; }
.search-lg .search-icon { color: var(--wire-deep); }
.search-lg input { font-size: 1.1rem; padding: 10px 4px; }
.search-btn { border-radius: 0 !important; }
.page-head .search { margin: 12px 0 0; max-width: 720px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 30; text-align: left; }
.suggest li { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft); }
.suggest .s-title { font-weight: 600; color: var(--text); }
.suggest .s-snip { font-size: .85rem; color: var(--muted); }
.suggest .s-all { font-size: .9rem; color: var(--accent-strong); }
em { font-style: normal; background: var(--wire-tint); padding: 0 1px; }
.prose em { font-style: italic; background: none; padding: 0; }

/* layout bits */
.page { padding-top: 28px; }
.home .page { padding-top: 40px; }
.section { margin: 0 0 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head > a { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.page-head { margin-bottom: 28px; }
.page-head .lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.row-between { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack-lg { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.narrow { max-width: 720px; margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-sections { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-topics { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 24px; min-width: 0; transition: border-color .15s; }
.cat-card h3 a, .card h2 a { color: var(--text); text-decoration: none; }
.cat-card h3 a:hover, .card h2 a:hover { color: var(--accent-strong); text-decoration: underline; }
.cat-card { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.cat-card:hover { border-top-color: var(--wire); }
.card-foot { margin: auto 0 0; padding-top: 12px; font-size: .85rem; }
.topic-card { color: var(--text); text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--wire-deep); color: var(--text); }
.topic-card h3 { margin-bottom: .3em; }
.link-list, .article-list, .side-list, .activity, .filter-list, .tree, .sub-list, .attachments, .cc-list, .upload-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.count { font: 400 .72rem var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 0 7px; align-self: center; }
.more { display: inline-block; margin-top: 10px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.article-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 0; }
.article-list svg { flex: none; margin-top: 4px; color: var(--wire-deep); }
.article-list.big li { padding: 14px 4px; font-size: 1.05rem; }
.two-col { columns: 2 320px; column-gap: 32px; } .two-col li { break-inside: avoid; }
.activity li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.side-list li:last-child { border-bottom: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--ink); color: var(--paper); border-top: 2px solid var(--wire); padding: 34px 36px; }
.cta .btn-primary { background: var(--wire); color: var(--ink); } .cta .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta h2 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: -.03em; } .cta p { margin: 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.empty-state { text-align: center; padding: 56px 16px; } .empty-state.small { padding: 28px 16px; }

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent-strong); text-decoration: underline; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 18px; border-radius: 0; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.3; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 6px 11px; font-size: .85rem; } .btn-lg { padding: 12px 22px; font-size: 1.02rem; } .btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.danger { color: var(--err) !important; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: .88rem; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--accent-strong); border-color: var(--accent); }
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend, .label { font-weight: 600; font-size: .93rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input:not([type]), select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-width: 0; }
.search input { border: 0; padding: 8px 4px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wire-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire) 22%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.hint { margin: 0; font-size: .84rem; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: .95rem; cursor: pointer; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.field-check label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form-error { color: var(--err); background: var(--err-bg); padding: 10px 12px; border-radius: var(--radius-sm); margin: 0; font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.toolbar label.grow { flex: 1 1 220px; }
.toolbar select { width: auto; }

/* notices, badges */
.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; border: 1px solid transparent; }
.notice-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, white); }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, white); }
.notice-info { background: var(--info-bg); color: #1f5a74; } .notice-error { background: var(--err-bg); color: var(--err); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 400 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 0; background: var(--warn-bg); color: var(--warn); vertical-align: middle; text-transform: none; letter-spacing: .01em; }
.badge svg { width: 12px; height: 12px; }
.badge-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-agent { background: var(--accent-soft); color: var(--accent-strong); }
.badge-official { background: var(--ok-bg); color: var(--ok); }
.badge-planned { background: #e6f1f4; color: #1f5a74; } .badge-not_planned { background: #f0f2f1; color: #46504d; }
.badge-completed { background: var(--ok-bg); color: var(--ok); } .badge-answered { background: var(--wire-tint); color: var(--wire-deep); }
.status { display: inline-block; font: 400 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 0; white-space: nowrap; vertical-align: middle; }
.status-open { background: #fbeceb; color: #b0362c; } .status-pending { background: #e6f1f4; color: #1f5a74; } .status-solved { background: #f0f2f1; color: #46504d; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); margin: 0 6px 6px 0; text-decoration: none; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border-left: 3px solid var(--wire); padding: 10px 18px; border-radius: 0; box-shadow: var(--shadow-lg); z-index: 200; font-size: .92rem; max-width: calc(100% - 32px); }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article, .post { max-width: 760px; min-width: 0; }
.article-head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.prose { font-size: 1.04rem; line-height: 1.72; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; } .prose h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 2px solid var(--wire); background: var(--accent-soft); }
.prose code { font-family: var(--mono); font-size: .86em; background: #eef1f0; padding: .1em .35em; }
.prose pre { background: var(--ink); color: #e4e8e6; border-left: 2px solid var(--wire); padding: 16px; border-radius: var(--radius-sm); overflow: auto; } .prose pre code { background: none; color: inherit; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; } .prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--radius-sm); }
.prose > :last-child { margin-bottom: 0; }
.labels { margin: 22px 0 0; }
.vote-box { text-align: center; padding: 26px 16px; margin: 36px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vote-btns { display: flex; justify-content: center; gap: 10px; margin: 6px 0 10px; } .vote-btns .btn { min-width: 88px; }
.more-q { text-align: center; color: var(--muted); }
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side-cta { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 20px; }

/* comments */
.comments { margin-top: 40px; }
.sort-links { font-size: .9rem; color: var(--muted); display: flex; gap: 10px; }
.sort-links a.on { font-weight: 700; color: var(--text); text-decoration: none; }
.comment-list { list-style: none; padding: 0; margin: 0 0 22px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment.official { background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 25%, white); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-body { font-size: 1rem; }
.comment-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.vote-inline { display: inline-flex; align-items: center; gap: 6px; }
.vote-inline .icon-btn { width: 28px; height: 28px; }
.vote-sum { font-weight: 700; min-width: 1.5em; text-align: center; }

/* search */
.search-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.filters .h4 { margin-top: 18px; }
.filter-list a { display: block; padding: 5px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-size: .95rem; }
.filter-list a:hover { background: var(--surface); } .filter-list a.on { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.result > svg { flex: none; margin-top: 4px; color: var(--muted); }
.result h3 { margin: 0 0 4px; font-size: 1.08rem; } .snippet { margin: 0 0 4px; color: #2a3431; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 26px 0 0; font-size: .95rem; }

/* community */
.post-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-votes { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.2; }
.post-votes strong { font-size: 1.15rem; }
.post-main { flex: 1; min-width: 0; } .post-main h3 { margin: 0 0 2px; font-size: 1.04rem; } .post-main p { margin: 0; }
.post-comments { display: flex; gap: 4px; align-items: center; }
.post-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.vote-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.vote-stack .vote-sum { font-size: 1.2rem; }
.post-title { min-width: 0; flex: 1; } .post-title .actions { margin-top: 10px; }
.mod-panel { margin: 28px 0 0; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); }
.mod-panel summary { cursor: pointer; font-weight: 700; }
.mod-panel form { margin-top: 14px; max-width: 420px; }
.mod-panel select { width: auto; margin-left: 8px; }
.similar { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 14px; }

/* requests */
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.deflect-panel { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.deflect-panel p { margin: 0 0 6px; }
.upload-list li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a.on { color: var(--text); border-bottom-color: var(--wire-deep); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .68rem; text-transform: uppercase; color: var(--muted); background: #f6f7f5; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-weight: 400; letter-spacing: .12em; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.submitted { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; }
.conversation { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.msg-agent { border-left: 2px solid var(--wire-deep); }
.attachments li { display: flex; gap: 6px; align-items: center; padding: 3px 0; font-size: .92rem; }
.reply textarea { min-height: 120px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .93rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.details dt { color: var(--muted); } .details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cc-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: .92rem; overflow-wrap: anywhere; }
.cc-add input { flex: 1; min-width: 0; }
.cc-add { flex-wrap: nowrap; }
.csat { border-color: color-mix(in srgb, var(--accent) 35%, white); }
.rate { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.rate-opt { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; background: var(--surface); }
.rate-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rating-good { color: var(--ok); } .rating-bad { color: var(--err); }
.closed-box p { margin: 0; }
.modal { border: 0; border-top: 2px solid var(--wire); border-radius: 0; padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(10, 15, 14, .55); }
.modal-in { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.modal h2 { font-size: 1.2rem; margin: 0; }
.deflect-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.deflect-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.deflect-list a { font-weight: 700; } .deflect-list p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

/* auth */
.auth { display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; border-top: 2px solid var(--wire); }
.auth-card h1 { font-size: 1.5rem; }
.agent-choice { display: flex; flex-direction: column; gap: 10px; }
.sub-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-list li a { flex: 1; min-width: 0; }

/* manage */
.tree > li { padding: 6px 0; } .tree ul { list-style: none; padding-left: 18px; margin: 4px 0; } .tree ul li { padding: 3px 0; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.title-input { font-size: 1.5rem !important; font-weight: 700; padding: 12px 14px !important; }
.toolbar-ed { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 0; background: #f6f7f5; position: sticky; top: 64px; z-index: 5; }
.tool { font: inherit; font-size: .85rem; font-weight: 700; min-width: 34px; padding: 5px 9px; border: 1px solid transparent; border-radius: 0; background: none; cursor: pointer; color: var(--text); }
.tool:hover, .tool[aria-pressed="true"] { background: var(--surface); border-color: var(--line-strong); }
.editor-body { min-height: 420px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 18px 22px; }
.editor-body:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.editor-source { font-family: var(--mono); font-size: .88rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; min-height: 420px; }
.editor-side { position: sticky; top: 88px; }
.form-actions { padding-top: 6px; }

/* responsive */
@media (max-width: 960px) {
  .article-layout, .request-layout, .editor-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar, .editor-side { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .filters { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .filters .h4 { width: 100%; margin: 6px 0 0; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .header-in { gap: 8px; min-height: 56px; }
  .brand-name { max-width: 30vw; }
}
@media (max-width: 480px) {
  .brand-name, .brand-sep { display: none; }
  .hero h1 { font-size: 2rem; }
  .brand { flex: none; }
  .nav { gap: 0; }
  .nav-link { padding: 8px 6px; font-size: .8rem; }
  .menu-name { display: none; }
  .hero-in { padding: 40px 16px 48px; }
  .search-btn { display: none; }
  .search-lg { padding: 6px 6px 6px 16px; }
  .card { padding: 18px; }
  .cta { padding: 22px; }
  .post-row { gap: 10px; padding: 14px; align-items: flex-start; }
  .post-comments { display: none; }
  .table thead { display: none; }
  .table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
  .table td:first-child { display: block; font-weight: 700; padding-bottom: 6px; }
  .table td:first-child::before { display: none; }
  .post-header { gap: 12px; }
  .auth-card { padding: 22px; }
  .modal-in { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
