/* Searxly support portal — flat, x.ai-inspired, with a super-black dark default + a light theme.
   Colors flow through CSS variables; [data-theme="light"] on <html> swaps the palette. Class names
   match the JS so this stays a restyle. */

:root {
  /* ---- dark (default) ---- */
  --bg:        #000000;
  --bg-1:      #0a0a0b;
  --bg-2:      #0f0f11;
  --selected:  #141416;
  --line:      rgba(255,255,255,0.11);
  --line-2:    rgba(255,255,255,0.20);
  --line-3:    rgba(255,255,255,0.32);
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,0.64);
  --text-3:    rgba(255,255,255,0.42);
  --text-4:    rgba(255,255,255,0.28);
  --primary-bg: #ffffff;
  --primary-fg: #000000;
  --primary-hover: #e6e6e6;
  --hover:     rgba(255,255,255,0.06);
  --bubble-user-bg: #ffffff;
  --bubble-user-fg: #000000;
  --bubble-user-fg2: rgba(0,0,0,0.45);
  --bubble-admin-bg: #0a0a0b;
  --bubble-admin-line: rgba(255,255,255,0.11);
  --chevron-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --open:      #f5a623;
  --answered:  #35c46a;
  --closed:    rgba(255,255,255,0.42);
  --bad:       #ff5c5c;
  --planned:   #6b93ff;
  --up:        #35c46a;
  --down:      #ff5c5c;

  --r: 8px; --r-sm: 6px; --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:        #fbfbfc;
  --bg-1:      #ffffff;
  --bg-2:      #f1f1f3;
  --selected:  #eeeef0;
  --line:      rgba(0,0,0,0.10);
  --line-2:    rgba(0,0,0,0.18);
  --line-3:    rgba(0,0,0,0.30);
  --text:      #0a0a0b;
  --text-2:    rgba(0,0,0,0.60);
  --text-3:    rgba(0,0,0,0.44);
  --text-4:    rgba(0,0,0,0.34);
  --primary-bg: #0a0a0b;
  --primary-fg: #ffffff;
  --primary-hover: #26262a;
  --hover:     rgba(0,0,0,0.05);
  --bubble-user-bg: #0a0a0b;
  --bubble-user-fg: #ffffff;
  --bubble-user-fg2: rgba(255,255,255,0.55);
  --bubble-admin-bg: #ffffff;
  --bubble-admin-line: rgba(0,0,0,0.12);
  --chevron-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0b' stroke-opacity='0.55' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --open:      #b7770d;
  --answered:  #1a8f4a;
  --closed:    rgba(0,0,0,0.40);
  --bad:       #d64545;
  --planned:   #3b62d6;
  --up:        #1a8f4a;
  --down:      #d64545;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
  transition: background .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
::selection { background: rgba(127,127,127,0.28); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 44px 0; }
.section-sm { padding: 36px 0; }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.display { font-size: clamp(30px, 5vw, 50px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 600; }
.h2 { font-size: clamp(19px, 2.4vw, 24px); }
.lead { font-size: clamp(14px, 1.3vw, 16px); color: var(--text-2); }
.gradient-text { color: var(--text); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono  { font-family: var(--mono); }
.eyebrow, .wl-step {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.wl-step { margin-bottom: 16px; display: block; }

/* ---------- header ---------- */
.pnav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: background .2s; }
.pnav .wrap { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand .mark { width: 22px; height: 22px; }
.brand .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px; line-height: 1;
}
.brand small { display: none; }
.pnav .spacer { margin-left: auto; }
.pnav a.home, .pnav .navlink { font-size: 13px; color: var(--text-2); padding: 7px 10px; border-radius: var(--r-sm); }
.pnav a.home:hover, .pnav .navlink:hover { color: var(--text); background: var(--hover); }
.tbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--text-2); }
.tbtn:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }
.tbtn svg { width: 16px; height: 16px; }
.tbtn .ic-sun { display: inline; } .tbtn .ic-moon { display: none; }
:root[data-theme="light"] .tbtn .ic-sun { display: none; }
:root[data-theme="light"] .tbtn .ic-moon { display: inline; }

.pfoot { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0; color: var(--text-3); font-size: 12.5px; }
.pfoot .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.pfoot a { color: var(--text-2); } .pfoot a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 6px; }
.hero .wrap { max-width: 820px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--answered); }
.hero .display { margin: 18px 0 12px; max-width: 18ch; }
.hero .lead { max-width: 60ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); background: transparent; color: var(--text); transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--hover); border-color: var(--line-2); }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); background: transparent; }
.linklike { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: var(--text); }
.arrow { transition: transform .15s; } .btn:hover .arrow { transform: translateX(2px); }

/* ---------- cards + form ---------- */
.card, .wl-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

.field { width: 100%; height: 44px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); padding: 0 14px; font-size: 14px; transition: border-color .15s; }
.field:focus { outline: none; border-color: var(--line-3); }
.field::placeholder { color: var(--text-4); }
.field:disabled { opacity: .5; }
textarea.field { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
select.field { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: var(--chevron-img);
  background-repeat: no-repeat; background-position: right 14px center; }
.f-row { margin-bottom: 14px; }
.f-label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.f-req { color: var(--text-3); }
.ccount { font-family: var(--mono); font-size: 10.5px; color: var(--text-4); text-align: right; margin-top: 6px; letter-spacing: .04em; }
.ccount.warn { color: var(--open); }
#f-code { letter-spacing: .32em; font-family: var(--mono); font-size: 17px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wl-btn { width: 100%; height: 44px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wl-btn.primary { background: var(--primary-bg); color: var(--primary-fg); } .wl-btn.primary:hover { background: var(--primary-hover); }
.wl-btn:disabled { opacity: .45; cursor: not-allowed; }
.wl-status { display: none; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; }
.wl-good { color: var(--answered); } .wl-warn { color: var(--open); } .wl-bad { color: var(--bad); }
.hint { font-size: 12px; color: var(--text-2); margin: 2px 0 14px; line-height: 1.5; }
.note { font-size: 12px; color: var(--text-3); margin-top: 14px; line-height: 1.5; }
.note a, .hint a { color: var(--text-2); text-decoration: underline; }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--text-2); background: transparent; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--open); } .badge.answered { color: var(--answered); } .badge.closed { color: var(--closed); }

/* ---------- ticket thread ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 20px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg .who { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.msg.user { align-self: flex-end; background: var(--bubble-user-bg); color: var(--bubble-user-fg); }
.msg.user .who { color: var(--bubble-user-fg2); }
.msg.admin { align-self: flex-start; background: var(--bubble-admin-bg); border: 1px solid var(--bubble-admin-line); }
.msg time { display: block; margin-top: 6px; font-size: 10.5px; font-family: var(--mono); opacity: .5; }
.msg .att { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; text-decoration: underline; }

/* ---------- admin dashboard ---------- */
.admin-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { height: 28px; padding: 0 11px; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--line);
  color: var(--text-2); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { border-color: var(--line-2); color: var(--text); }
.tab.on { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.tab .ct { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.searchbar { margin-bottom: 12px; }
.tlist { display: flex; flex-direction: column; gap: 7px; max-height: 74vh; overflow: auto; }
.trow { text-align: left; width: 100%; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; display: block; transition: border-color .15s, background .15s; }
.trow:hover { border-color: var(--line-2); }
.trow.on { border-color: var(--line-3); background: var(--selected); }
.trow .top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.trow .ref { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.trow .subj { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .meta { font-size: 11.5px; color: var(--text-3); }
.trow .dotnew { width: 6px; height: 6px; border-radius: 50%; background: var(--open); margin-left: auto; }
.detail { min-height: 62vh; }
.detail .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.detail .head .ref { font-family: var(--mono); color: var(--text-2); font-size: 14px; }
.detail .sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 18px; }
.detail .sub a { color: var(--text-2); text-decoration: underline; }
.detail .actions { display: flex; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.reply-box { margin-top: 14px; }
.canned { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font-size: 11.5px; color: var(--text-2); border: 1px solid var(--line); background: transparent;
  border-radius: var(--r-pill, 999px); padding: 5px 11px; border-radius: 999px; }
.chip:hover { border-color: var(--line-2); color: var(--text); background: var(--hover); }
.empty { color: var(--text-3); text-align: center; padding: 72px 20px; font-size: 13.5px; }
.autonote { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }

@media (max-width: 860px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .tlist { max-height: none; }
  .intake-grid { grid-template-columns: 1fr !important; }
}

/* ---------- intake two-column ---------- */
.intake-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: start; }
.aside .card + .card { margin-top: 14px; }
.chan { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--line); }
.chan:first-of-type { border-top: 0; }
.chan a { color: var(--text); } .chan .k { color: var(--text-3); min-width: 74px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* attachments */
.attach-btn { font-size: 12.5px; color: var(--text-2); border: 1px dashed var(--line-2); background: transparent; border-radius: var(--r-sm); padding: 7px 12px; margin-top: 10px; }
.attach-btn:hover { color: var(--text); border-color: var(--line-3); }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.attach-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 7px 4px 10px; }
.attach-x { background: none; border: 0; color: var(--text-3); font-size: 11px; line-height: 1; padding: 0 1px; }
.attach-x:hover { color: var(--bad); }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.att-img { display: block; border-radius: 8px; overflow: hidden; border: 1px solid rgba(128,128,128,0.32); line-height: 0; }
.att-img img { display: block; max-width: 150px; max-height: 120px; object-fit: cover; }
.att-file { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: inherit; text-decoration: none;
  border: 1px solid rgba(128,128,128,0.32); border-radius: var(--r-sm); padding: 6px 11px; }
.att-file:hover { border-color: rgba(128,128,128,0.5); }
.att-file::before { content: "📄"; }

/* stats bar */
.statbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { flex: 1; min-width: 112px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; }
.stat .n { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.stat.alert .n { color: var(--open); }

/* priority + tags */
.prio-sel { height: 32px; }
.prio-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.prio-low { background: var(--text-4); } .prio-normal { background: var(--text-3); }
.prio-high { background: var(--open); } .prio-urgent { background: var(--bad); }
.trow .prio-dot { margin: 1px 5px 0 0; }
.tagrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 2px; }
.tag-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 6px; }
.tag-chip .tx { background: none; border: 0; color: var(--text-4); padding: 0; font-size: 10px; }
.tag-chip .tx:hover { color: var(--bad); }
.tag-add { font-size: 11.5px; color: var(--text-3); border: 1px dashed var(--line-2); background: transparent; border-radius: 999px; padding: 3px 10px; }
.tag-add:hover { color: var(--text); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px);
  background: var(--primary-bg); color: var(--primary-fg); font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: var(--r-sm);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); color: #fff; }

/* ---------- header: nav links + account chip ---------- */
.pnav-nav { display: flex; align-items: center; gap: 2px; }
.pnav-nav a { font-size: 13px; color: var(--text-2); padding: 7px 10px; border-radius: var(--r-sm); }
.pnav-nav a:hover { color: var(--text); background: var(--hover); }
.pnav-nav a.on { color: var(--text); }
.nav-account { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; max-width: 190px; }
.nav-account:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }
.nav-account .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account .av { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--text); flex: 0 0 auto; }
@media (max-width: 620px) { .pnav-nav a[data-sec="support"] { display: none; } .nav-account { max-width: 130px; } }

/* ---------- governance ---------- */
.gov-rules { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.rule { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: var(--bg-1); }
.rule b { color: var(--text); font-weight: 600; }
.rule .ri { color: var(--text-3); }

.gov-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 16px; }
.gov-bar .spacer { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { height: 30px; padding: 0 13px; background: transparent; border: 0; border-left: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--primary-bg); color: var(--primary-fg); }
.seg button:hover:not(.on) { color: var(--text); background: var(--hover); }

.gov-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg-1); padding: 13px 16px; margin-bottom: 16px; font-size: 13.5px; color: var(--text-2); }
.gov-banner .spacer { margin-left: auto; }
.vote-quota { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.vote-quota b { color: var(--text); }
.holder-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .11em; text-transform: uppercase; color: var(--answered); border: 1px solid var(--answered);
  border-radius: 999px; padding: 3px 9px; }
.holder-badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.gov-list { display: flex; flex-direction: column; gap: 10px; }
.gov-empty { text-align: center; color: var(--text-3); font-size: 14px; padding: 46px 0; }
.sg { display: grid; grid-template-columns: 46px 1fr; gap: 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-1); padding: 16px; }
.sg-vote { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vbtn { width: 36px; height: 27px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--text-3); }
.vbtn:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); background: var(--hover); }
.vbtn svg { width: 13px; height: 13px; }
.vbtn.up.on { color: var(--up); border-color: var(--up); }
.vbtn.down.on { color: var(--down); border-color: var(--down); }
.vbtn:disabled { opacity: .4; cursor: not-allowed; }
.sg-score { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sg-main { min-width: 0; }
.sg-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 5px; }
.sg-body { font-size: 13.5px; color: var(--text-2); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.sg-tally { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.sg-admin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.badge.planned { color: var(--planned); }
.badge.in_progress { color: var(--open); }
.badge.done { color: var(--answered); }
.badge.declined { color: var(--closed); }

/* ---------- account / settings ---------- */
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.acct-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 19px; color: var(--text); flex: 0 0 auto; }
.acct-id { min-width: 0; }
.acct-id .nm { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.acct-id .em { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.acct-sec { margin-top: 22px; }
.acct-sec > h3 { font-size: 11px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 13px; font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wallet-addr { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.holdings { font-size: 13px; color: var(--text-2); margin-top: 7px; }
.holdings b { color: var(--text); font-variant-numeric: tabular-nums; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subtle { font-size: 12px; color: var(--text-3); line-height: 1.55; margin-top: 10px; }
