/* 牵线 v1.5.0 · 暖纸朱砂极简（Group Wall · Agent-First Editorial Minimalism） */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
}
[hidden], .hidden, dialog:not([open]) { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout shell ---------- */

.wrap, .topbar, .foot {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap {
  flex: 1;
  margin-block: 32px 48px;
}
.wrap.narrow > *:not(dialog) {
  max-width: 680px;
  margin-inline: auto;
}
.wrap.editorial > *:not(dialog) {
  max-width: 760px;
  margin-inline: auto;
}

/* ---------- typography ---------- */

h1, h2, h3, p { margin: 0 0 8px; }
h1 {
  font: 700 32px/40px var(--sans);
  letter-spacing: -0.025em;
  color: var(--text);
}
h2, .profile-line {
  font: 600 22px/30px var(--sans);
  letter-spacing: -0.015em;
}
h3, .ntitle, .mb-link {
  font: 600 18px/26px var(--sans);
  letter-spacing: -0.01em;
}
.small, .kicker, .onebox-note, .foot, .ndetail, .menu-label, .aside-link, .mb-kind, .mb-stats, small {
  font-size: 14px;
  line-height: 20px;
}
.muted, .ter, .small, .kicker, .onebox-note, .foot, .ndetail, .menu-label, .aside-link, .mb-kind, .mb-stats, small {
  color: var(--muted);
}
.kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.lead {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
}
.mono, .sentence, .handle { font-family: var(--mono); }
code, pre { font-family: var(--mono); font-size: 14px; }

/* ---------- links & buttons (no bare `button` pill pollution) ---------- */

button, input, textarea, select { font: inherit; color: inherit; max-width: 100%; }
button, summary { cursor: pointer; }
button { background: transparent; border: 0; padding: 0; }

a, summary, .btn-text, .menu button {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover, summary:hover, .btn-text:hover, .menu button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px 20px;
  font: 600 15px/20px var(--sans);
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(192, 57, 43, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.28);
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary.is-copied {
  background: var(--ok-fg);
  border-color: var(--ok-fg);
  box-shadow: 0 1px 2px rgba(30, 107, 58, 0.25);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--muted);
  text-decoration: none;
}
.btn-secondary.soft {
  background: var(--surface-2);
  border-color: transparent;
}
.btn-secondary.soft:hover:not(:disabled) {
  border-color: var(--line-strong);
}
.btn-secondary.sm {
  padding: 6px 14px;
  font-size: 13px;
  line-height: 18px;
}
.btn-secondary.danger {
  color: var(--danger-fg);
  border-color: rgba(180, 35, 24, 0.28);
}
.btn-secondary.danger:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: var(--danger-fg);
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}
.btn-text:hover { color: var(--text); }
button:disabled { cursor: default; opacity: 0.55; }
.block { width: 100%; }

/* ---------- header & footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  height: 56px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.grow { flex: 1; }
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline: auto;
}
.nav-link[aria-current="page"] {
  color: var(--text);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.hdr-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-2);
}
.hdr-lang-btn svg { flex: none; }
.hdr-caret {
  font-size: 11px;
  color: var(--muted);
}
.hdr-theme-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  flex: none;
  color: var(--text-2);
}
.hdr-theme-btn:hover:not(:disabled) {
  color: var(--text);
}
.hdr-login {
  padding: 6px 16px;
  font-size: 14px;
  line-height: 20px;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}
.brandmark:hover { text-decoration: none; opacity: 0.88; }
.stamp {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 7px;
  font: 700 16px/1 var(--sans);
  box-shadow: 0 1px 3px rgba(192, 57, 43, 0.28);
}
.menu-wrap, .bubble, .mboard { position: relative; }
.nametag {
  position: relative;
  max-width: min(32vw, 200px);
  padding: 4px 10px 4px 4px;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-2);
}
.nametag:hover:not(:disabled) {
  color: var(--text);
}
#hdr-lang-menu {
  width: 168px;
}
.menu-check {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.nt-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.nt-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-n, .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font: 700 11px/1 var(--sans);
}
.menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: min(240px, 82vw);
  max-height: 80vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.menu-who {
  padding: 8px 10px 6px;
  font-size: 14px;
  color: var(--text);
}
.menu a, .menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: start;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
}
.menu a:hover, .menu button:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.menu-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.menu-label {
  padding: 6px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.menu-sep {
  border-top: 1px solid var(--line);
  margin: 6px 4px;
}

.foot {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}
.foot a, .foot button {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.foot a:hover, .foot button:hover { color: var(--text); }
.foot-lang {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.lang-on { color: var(--text); font-weight: 600; }

/* ---------- flexbox utilities ---------- */

.row, .room-links, .owner-mark, .nhead, .sheet-head, .m-actions, .contact-row, .filters, .mb-plaque, .mb-foot, .inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- surfaces & cards ---------- */

.panel, .letter, .room-head, .note, .mboard, .room-aside-panel, .bb-sheet, .sheet, .empty, .ticket, .strip-item, .item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.letter, .room-aside-panel, .bb-sheet, .panel, .empty, .ticket, .strip-item, .item-card {
  margin-block: 16px;
}
.section, .banner, .section-title, details.fold, #no-agent {
  margin-block: 24px;
}
.banner { margin-top: 0; margin-bottom: 20px; }
.section-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}
.sheet-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- status banners & notices ---------- */

.ok-banner {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok-fg);
  font-size: 14px;
  line-height: 20px;
}
.ok-banner .credits { margin-top: 4px; color: var(--text-2); }
.warn {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-fg);
  font-size: 14px;
  line-height: 20px;
}
.form-err {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger-fg);
  font-size: 14px;
  line-height: 20px;
  margin-block: 8px;
}
.slip {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 8px 0;
}
.empty {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
}
.empty-line {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---------- signature: Agent Handoff Card ---------- */

.home-hero {
  text-align: left;
  padding: 12px 0 8px;
}
.home-hero h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.22;
  margin-bottom: 12px;
}
.home-hero .hero-sub {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 24px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.room-head .agent-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.agent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.agent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.agent-compat {
  font-size: 12px;
  color: var(--muted);
}
.agent-block {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.sentence {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.agent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
}
.agent-copy-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.agent-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok-fg);
  font-size: 14px;
  line-height: 20px;
}
.agent-status:empty { display: none; }
.agent-secondary-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

/* ---------- 3-step guide cards ---------- */

.guide-steps {
  counter-reset: steps;
  padding: 0;
  list-style: none;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guide-steps li {
  counter-increment: steps;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.guide-steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- public group walls list on home ---------- */

#public-rooms { margin-block: 24px 28px; }
.public-walls-head { margin-bottom: 12px; }
.public-walls-head .section-title { margin: 0 0 4px; }
.section-lead {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
#posters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.poster-row {
  position: relative;
  padding: 14px 18px;
  transition: background-color 0.15s ease;
}
.poster-row + .poster-row { border-top: 1px solid var(--line); }
.poster-row:hover { background: var(--surface-hover); }
.poster-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}
.poster-link:hover { text-decoration: none; }
.poster-link b { font-size: 15px; font-weight: 600; color: var(--text); }
.poster-link small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.poster-join {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.poster-row:hover .poster-join {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.home-footnote {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 20px;
  color: var(--text-2);
}
.home-footnote strong { color: var(--text); }
.home-footnote a, #no-agent a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.home-footnote a:hover, #no-agent a:hover {
  text-decoration-color: var(--text);
}

/* ---------- room page hero & stats ---------- */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb .btn-text {
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.breadcrumb .btn-text:hover {
  color: var(--text);
}
.breadcrumb .bc-sep {
  opacity: 0.6;
}

.room-head {
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.room-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.room-head h1 {
  font-size: clamp(24px, 4.5vw, 30px);
  line-height: 1.25;
  margin-bottom: 6px;
}
.owner-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}
.owner-avatar, .profile-initial, .avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.owner-badge, .seal, .owner-card-badge {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 1px 6px;
  font: 600 11px/16px var(--sans);
}
.seal {
  float: right;
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.room-head-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
}
.head-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline: 8px;
}
.head-stat + .head-stat { border-left: 1px solid var(--line); }
.head-stat b { font: 700 16px/22px var(--sans); color: var(--text); }
.head-stat span { font: 500 12px/16px var(--sans); color: var(--muted); }

#onebox {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.onebox-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.onebox-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- wall & resource cards ---------- */

#wall-section { margin-block: 28px 24px; }
.wall-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wall-bar h2 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  margin: 0;
}
.wall, .boards, .comms-grid, .grid2, .bb-grid, .admin-cards {
  display: grid;
  gap: 12px;
}
.boards, .comms-grid, .grid2, .admin-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.bb-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.note {
  position: relative;
  display: flow-root;
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.wall-card .note:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.nhead {
  align-items: flex-start;
  gap: 8px;
}
.ntitle.btn-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  flex: 1;
  text-align: start;
  font: 600 17px/24px var(--sans);
  color: var(--text);
}
.ntitle.btn-text:hover { text-decoration: none; color: var(--accent); }
.ntitle::after, .mb-link::after, .poster-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-photo {
  float: right;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 12px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
}
.ndetail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 21px;
}
.ntags {
  clear: both;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ntags:empty { display: none; }
.nfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.nfoot-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.nfoot-sub { color: var(--muted); }
.nfoot-cta {
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex: none;
}
.nfoot .who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 500;
}
.nfoot .avatar { width: 20px; height: 20px; font-size: 11px; }
.tear-cta {
  gap: 6px;
}
.tear-cta:not(.soft):hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.tear-cta.is-accepted {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: var(--ok-line);
}
.tear-cta.is-pending {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-color: var(--warn-line);
}

.badge-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font: 600 12px/18px var(--sans);
  flex: none;
}
.badge-type.offer { background: var(--offer-bg); color: var(--offer-fg); }
.badge-type.need { background: var(--need-bg); color: var(--need-fg); }

.tag, .badge, .stamp-mark {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font: 500 12px/18px var(--sans);
}
.tag {
  background: var(--surface-2);
  color: var(--text-2);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
}
.badge.need { background: var(--accent-soft); color: var(--accent); }
.stamp-mark {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
}
.stamp-mark.pending { background: var(--warn-bg); color: var(--warn-fg); }
.stamp-mark.accepted { background: var(--ok-bg); color: var(--ok-fg); }
.stamp-mark.rejected { background: var(--danger-bg); color: var(--danger-fg); }

mark {
  color: inherit;
  background: var(--mark-bg);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* preview cutoff invitation card */
.preview-gate {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.preview-gate-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.preview-gate-text span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- collapsed web tools drawer on room page ---------- */

.tools-drawer {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.tools-drawer > summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tools-drawer > summary::-webkit-details-marker { display: none; }
.tools-drawer > summary::after {
  content: '▾';
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.tools-drawer[open] > summary::after { transform: rotate(180deg); }
.tools-drawer > summary:hover {
  text-decoration: none;
  background: var(--surface-hover);
  color: var(--text);
}
.tools-drawer-body {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--line);
}
.tools-drawer-body > section,
.tools-drawer-body > details {
  margin-block: 16px;
}
.tools-drawer-body .panel,
.tools-drawer-body .room-aside-panel,
.tools-drawer-body .letter {
  box-shadow: none;
  background: var(--surface-2);
  border-color: var(--line);
  padding: 16px 18px;
}
.sub-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.alliance-items, .member-list {
  display: grid;
  gap: 8px;
}
.alliance-room, .member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}
a.alliance-room:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.alliance-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.alliance-empty {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
}
.alliance-empty b {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  margin-bottom: 4px;
}
.alliance-empty p { margin: 0; }
.alliance-request {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.alliance-req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.alliance-reason {
  margin: 6px 0 4px;
  font-size: 13.5px;
  color: var(--text-2);
}
.alliance-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.member-alias {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* generic <details class="fold"> */
details.fold {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 16px;
}
details.fold summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
details.fold .body { margin-top: 14px; }
details.letter summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.steps-ol {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-2);
}
.steps-ol li { margin-bottom: 6px; }

/* ---------- personal public namecard ---------- */

.profile-sheet {
  text-align: center;
  padding: 36px 28px 32px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.profile-initial {
  width: 60px;
  height: 60px;
  font-size: 24px;
  margin: 0 auto 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.profile-sheet h1 {
  font-size: 26px;
  line-height: 34px;
  margin-bottom: 6px;
}
.profile-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.profile-line {
  font-size: 19px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 24px;
}
.profile-agent-box {
  text-align: left;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

/* ---------- segmented tabs & comms nav ---------- */

.comms-nav, .tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.comms-nav a, .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.comms-nav a:hover, .tab:hover {
  color: var(--text);
  text-decoration: none;
}
.comms-nav a[aria-current="page"], .tab.on, .tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab-n:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- letter confirmation slip & mailbox ---------- */

.confirm-slip {
  max-width: 580px;
  margin: 16px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.confirm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  margin: 16px 0;
  font-size: 14px;
}
.letter-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
  margin: 12px 0;
}
.qa-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.qa-item {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
}
.qa-item dt { font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.qa-item dd { margin: 0; color: var(--text); }
.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
}
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
}
.proof-chip b { color: var(--text); }

.item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.item-card-summary {
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 10px;
}
.brief-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-2);
}
.brief-pill b { color: var(--text); font-weight: 700; }
.clean-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.clean-list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- inbox strips & 1-to-1 chat ---------- */

.inbox-group { margin-bottom: 24px; }
.group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 10px;
}
.strip-item.unread { border-left: 3px solid var(--accent); }
.strip-item .who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.strip-item .msg {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  margin: 8px 0;
  font-size: 14px;
  line-height: 21px;
}
.strip-item .state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.new-dot {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.status-pill { margin-left: auto; }
.ok-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--ok-fg);
  margin: 10px 0 6px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 8px;
}
.contact-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}
.ct-label { font-size: 13px; color: var(--muted); min-width: 56px; }
.ct-value { font-size: 14px; color: var(--text); flex: 1; }

.chat-list { display: grid; gap: 10px; }
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.chat-open {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}
.chat-open b { font-size: 15px; color: var(--text); }
.chat-preview {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-open time { font-size: 12px; color: var(--muted); }
.chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
  padding: 4px 2px 12px;
}
.chat-message {
  max-width: min(82%, 480px);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  justify-self: start;
}
.chat-message.mine {
  justify-self: end;
  background: var(--accent-soft);
  border-color: var(--accent-line);
  border-radius: 12px 12px 4px 12px;
}
.chat-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 21px;
}
.chat-message time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.chat-compose {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.chat-compose button { justify-self: end; }

/* ---------- tear-off contact bar inside card detail modal ---------- */

.perf {
  border-top: 1px dashed var(--line-strong);
  margin: 18px 0 14px;
}
.tear-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.tear-bar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}
.stub-teeth {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stub-tooth {
  width: 6px;
  height: 14px;
  border-radius: 2px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.stub-tooth.is-torn {
  opacity: 0.45;
  height: 8px;
  border-style: dotted;
}
.tear-bar-cta {
  margin-left: auto;
  flex: none;
}
.tear-form {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-top: 12px;
}
.tear-form h3 {
  margin-bottom: 10px;
}
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.report-box { margin-top: 8px; }
#report-form {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-2);
}

/* ---------- forms, inputs, checkboxes, copy boxes ---------- */

.field, .copyfield, .share-checks {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span, .field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
input:not([type=checkbox]):not([type=radio]), textarea, select, .copybox {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; }
input, select, textarea { accent-color: var(--accent); }
.copybox {
  background: var(--surface-2);
  border-color: var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 20px;
}
.copybox.big {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
.copyfield button { justify-self: start; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
  cursor: pointer;
}
.check input { margin-top: 3px; flex: none; }
.checks { display: grid; gap: 8px; }
.contact-row > :not(button) { flex: 1 1 110px; }
.ct-fixed {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  min-width: 52px;
}
.standing-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: 8px;
}
.standing-detail { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- mini boards (/me & /admin) ---------- */

.mboard {
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mboard:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.mboard.board--managed { border-top: 3px solid var(--accent); }
.mboard.board--joined { border-top: 3px solid var(--muted); }
.mb-plaque { justify-content: space-between; margin-bottom: 10px; }
.mb-kind {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
}
.mb-notes { display: grid; gap: 6px; padding-block: 6px 10px; }
.mb-note {
  font-size: 13.5px;
  line-height: 20px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-note .mk {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.mb-empty { font-size: 13px; color: var(--muted); }
.mb-foot {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mb-alert {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- /me header & /admin stats ---------- */

.me-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.me-hero-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.me-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex: none;
}
.me-hero h1 { font-size: 24px; line-height: 30px; margin-bottom: 2px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.stat {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat b { font-size: 22px; line-height: 28px; color: var(--text); }
.stat span { font-size: 12px; color: var(--muted); }
.wide { grid-column: 1 / -1; }
.draft {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 10px;
}
.draft .sum {
  white-space: pre-wrap;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 6px 0 10px;
}
.note .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.note.dim { opacity: 0.65; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- faq & help ---------- */

.faq-item { padding-block: 14px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { font: 600 16px/24px var(--sans); margin: 0 0 6px; }
.faq-item p { font: 14px/22px var(--sans); margin: 0; color: var(--text-2); }

/* ---------- modal dialog ---------- */

.facts {
  clear: both;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 14px 0 0;
  font-size: 14px;
}
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--text); }
.sheet {
  width: min(584px, calc(100% - 32px));
  max-height: 88dvh;
  padding: 0;
  border-radius: 16px;
  overflow: auto;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.sheet-body { padding: 20px 22px 24px; }
.xbtn { margin-left: auto; font-size: 14px; }
dialog::backdrop {
  background: rgba(15, 14, 13, 0.52);
  backdrop-filter: blur(4px);
}
.dtitle { font-size: 20px; line-height: 28px; margin-bottom: 10px; }
.ddetail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- mobile responsive ---------- */

@media (max-width: 640px) {
  .wrap, .topbar, .foot { padding-inline: 16px; }
  .wrap { margin-block: 20px 36px; }
  .topbar { gap: 8px; }
  .brandmark { gap: 6px; font-size: 16px; }
  .stamp { width: 26px; height: 26px; font-size: 15px; }
  .topbar-nav { gap: 12px; }
  .topbar-nav .nav-link { font-size: 13px; }
  .topbar-actions { gap: 8px; }
  .hdr-lang-btn { gap: 4px; font-size: 13px; }
  .hdr-caret { display: none; }
  .hdr-theme-btn { width: 32px; height: 32px; }
  .hdr-login { padding: 5px 12px; font-size: 13px; }
  .nametag { padding: 3px; }
  .nametag .nt-name { display: none; }
  .nametag .badge-n { position: absolute; top: -4px; right: -4px; }
  .guide-steps { grid-template-columns: 1fr; }
  .agent-card, .room-head, .panel, .letter, .confirm-slip { padding: 18px 16px; }
  .agent-actions { flex-direction: column; align-items: stretch; }
  .agent-secondary-links { margin-left: 0; justify-content: center; }
  .agent-compat { display: none; }
  .room-head-stats { padding: 10px; }
  .head-stat { padding-inline: 6px; }
  .foot-lang { margin-left: 0; width: 100%; }
  .nt-hi { display: none; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { border-bottom: 0; padding: 4px 0; }
  td::before { content: attr(data-label) ' · '; color: var(--muted); font-size: 12px; }
}
