:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface2: #1b2130;
  --primary: #ff7a18;
  --head: #ffa04d;
  --text: #e8eef6;
  --text2: #9aa6b8;
  --faint: #6f7b8f;
  --border: #2a3344;
  --ok: #45c463;
  --warn: #ff6a3d;
  --line: #232a38;
  --epic: #a335ee;
  --chip: #121722;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

a { color: var(--head); }
button, input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
button {
  background: var(--primary);
  color: #1a0f06;
  border-color: var(--primary);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}
button.ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
  font-weight: 500;
}
button:disabled { opacity: 0.5; cursor: default; }
input, textarea, select { padding: 7px 9px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 18px 20px 56px; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--primary);
  color: #1a0f06;
  font-size: 12px;
  font-weight: 700;
}
h1 { font-size: 20px; color: var(--head); margin: 0; font-weight: 650; letter-spacing: 0.02em; }
.who { color: var(--text2); font-size: 13px; }
.bar-right { display: flex; gap: 8px; align-items: center; }
.bar-right select { width: auto; min-width: 140px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
.tabs button,
.seg button {
  background: transparent;
  color: var(--text2);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 14px;
  font-weight: 500;
}
.tabs button.on,
.seg button.on,
button.on {
  background: transparent;
  color: var(--head);
  border-color: transparent;
  border-bottom-color: var(--primary);
}
.seg { display: flex; gap: 2px; margin: 8px 0 12px; }
button.link {
  background: none;
  border: none;
  color: var(--head);
  padding: 0;
  text-align: left;
  font-weight: 500;
}

.muted { color: var(--text2); font-size: 13px; }
.err { color: var(--warn); margin: 8px 0; }
.ok { color: var(--ok); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--head);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.stat .k { display: block; color: var(--faint); font-size: 11px; }
.stat .v { display: block; color: var(--text); font-size: 14px; margin-top: 2px; }

.grid { display: grid; gap: 14px; }
@media (min-width: 860px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { width: auto; }
label { display: block; color: var(--text2); font-size: 12px; margin: 8px 0 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 500; }
tbody tr:hover { background: var(--chip); }
tr.group th {
  color: var(--head);
  padding-top: 12px;
  background: transparent;
  border-bottom-color: var(--border);
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text2);
  font-size: 11px;
  border: 1px solid var(--border);
}
.tag.ok { color: var(--ok); border-color: #245a34; }
.tag.warn { color: var(--warn); border-color: #5a2a1a; }
.tag.bank { color: #6cb4ff; border-color: #2a445a; }
.tag.de { color: #c9b6a0; }
.tag.wipe { color: var(--warn); border-color: #5a2a1a; }
.tag.tank { color: #6cb4ff; border-color: #2a445a; }
.tag.heal { color: var(--ok); border-color: #245a34; }

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--q, var(--epic));
  text-decoration: none;
  max-width: 280px;
}
.item-chip .item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-chip.compact { max-width: 160px; font-size: 12px; }
.item-chip img,
a[data-wowhead] img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  vertical-align: middle;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.slot-cell {
  display: block;
  margin: 0;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
}
.slot-cell.filled { border-color: #3d2a18; }
.slot-cell.week { border-color: var(--primary); }
.slot-lab { display: block; color: var(--faint); font-size: 11px; margin-bottom: 4px; }
.slot-cell input { margin-top: 6px; font-size: 12px; }
.weekly-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
}
.weekly-pick input {
  width: auto;
  margin: 0;
}
.weekly-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 8px 2px 0;
  white-space: nowrap;
}

.dots {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: inline-block;
}
.dot.on {
  background: var(--primary);
  border-color: var(--primary);
}
.dot.on.week {
  outline: 2px solid var(--head);
  outline-offset: 1px;
}
.board-row { cursor: pointer; }
.board-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  padding: 8px 0;
}
.board-detail .slot-lab { margin-bottom: 2px; }

details.import {
  margin: 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--chip);
}
details.import summary {
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
}

.night { padding: 8px 0; border-bottom: 1px solid var(--line); }
.night-home { list-style: none; padding-left: 0; }
.night-home li { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.night-home li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.signup-hero h2 { font-size: 20px; margin-bottom: 10px; }
.signup-meta {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.signup-meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  align-items: baseline;
}
.signup-meta dt {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}
.signup-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.night-form { margin-top: 12px; }
.night-signup { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.night-signup:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.night-signup h3 { margin: 0 0 6px; font-size: 14px; color: var(--head); }
.night-signup h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
}
.comp-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px 12px;
  margin: 4px 0 8px;
  align-items: end;
}
.comp-fields label { margin-top: 0; }
.signup-board {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.signup-col {
  background: var(--chip);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 72px;
}
.signup-col-main { min-height: 96px; }
.signup-col.in { border-left-color: var(--ok); }
.signup-col.out { border-left-color: var(--warn); }
.signup-col.maybe { border-left-color: var(--text2); }
.signup-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.signup-role-group { margin-top: 8px; }
.signup-role-group:first-child { margin-top: 0; }
.signup-role-group h5 {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--faint);
  font-weight: 600;
}
.signup-players {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signup-player {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}
.signup-player-name {
  font-weight: 650;
  line-height: 1.3;
}
.signup-player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.signup-player-note { margin-top: 2px; font-size: 12px; }
.signup-empty {
  margin: 0;
  color: var(--faint);
}
@media (max-width: 800px) {
  .comp-fields,
  .signup-side { grid-template-columns: 1fr; }
}
.plain { margin: 0; padding-left: 18px; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cal-nav h2 { margin: 0; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-hd {
  color: var(--faint);
  text-align: center;
  font-size: 12px;
  padding: 4px 0;
}
.cal-cell {
  min-height: 78px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
}
.cal-cell.out { opacity: 0.35; }
.cal-cell.has-raid {
  background: #2a1810;
  border-color: #7a3d14;
}
.cal-cell.on { outline: 1px solid var(--primary); }
.cal-cell.today .cal-num { color: var(--head); }
.cal-num { font-size: 14px; }
.cal-marks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}
.cal-mark {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--head);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

select.mark { width: auto; min-width: 110px; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login { max-width: 420px; width: 100%; margin: 0; }
.login .lead { margin: 8px 0 16px; }
.prose { white-space: pre-wrap; color: var(--text); line-height: 1.65; }
.memo-preview { color: var(--text2); white-space: pre-wrap; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tactic { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tactic:last-child { border-bottom: 0; margin-bottom: 0; }

.boss-picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.boss-picks button { padding: 6px 10px; }
.boss-picks button.on {
  background: var(--primary);
  color: #1a0f06;
  border-color: var(--primary);
}
.inst-picks { margin-bottom: 4px; }
.journal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.journal-card h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--head);
  font-weight: 600;
}
.journal-card h4 {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.journal-card ul { margin: 0; padding-left: 18px; color: var(--text2); }
.journal-card .wipe { color: var(--warn); }
.plan-block { margin-bottom: 8px; }
.plan-block:last-child { margin-bottom: 0; }
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.role-grid h3 { margin-top: 8px; }
.abilities { display: flex; flex-direction: column; gap: 8px; }
.ability {
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.ability.visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: start;
}
.ability-clip {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ability-clip .clip-frame { margin-top: 0; }
.ability p { margin: 4px 0 0; color: var(--text2); }
.ability-guides {
  margin-top: 8px;
  font-size: 12px;
}
.ability-guides a { color: var(--head); }
.ability-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.spell-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.spell-chip img,
.ability-head img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.diff-picks { margin: 0 0 10px; }
.pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pos-card {
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.pos-card h4 { margin-top: 0; }
.pos-card .muted { margin: 0 0 8px; }
.scene-frame {
  background: #0e1320;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.scene-frame svg {
  display: block;
  width: 100%;
  height: auto;
}
.scene-arena {
  fill: #161c2a;
  stroke: #2a3344;
  stroke-width: 0.8;
}
.scene-frame text {
  fill: #9aa6b8;
  font-size: 3.2px;
}
.clip-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--faint);
}
.clip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.clip-card {
  position: relative;
  margin: 0;
  background: #0e1320;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.clip-card.clip-video { grid-column: 1 / -1; }
.clip-zoom-hit {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0e1320;
  cursor: zoom-in;
}
.clip-zoom-hit img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center;
}
.clip-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.72);
  color: var(--head);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
.clip-card figcaption,
.clip-card .clip-caption {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.clip-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 12px;
}
.clip-item-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px;
}
.clip-item-bar .clip-caption { padding: 0; }
.clip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e1320;
}
.clip-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.clip-edit { margin-top: 10px; }
.clip-edit summary {
  cursor: pointer;
  color: var(--head);
  font-size: 13px;
}
.clip-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.clip-toolbar input { margin: 0; flex: 1; min-width: 0; }
.clip-file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.clip-file-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.clip-actions { margin-top: 8px; gap: 8px; }
.clip-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 28px;
  background: rgba(6, 8, 12, 0.9);
}
.clip-zoom[hidden] { display: none !important; }
.clip-zoom figure {
  margin: 0;
  max-width: min(1100px, 100%);
}
.clip-zoom img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.clip-zoom figcaption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.clip-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
body.clip-zoom-on { overflow: hidden; }

@media (max-width: 800px) {
  .role-grid { grid-template-columns: 1fr; }
  .ability.visual { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: 1fr; }
  .clip-list { grid-template-columns: 1fr 1fr; }
  .clip-toolbar { flex-wrap: wrap; }
  .clip-file-btn { width: 100%; }
}

.phone-only { display: none; }
.bar-tools { display: none; }
.dock, .sheet { display: none; }
.btn-wide { width: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}
.m-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rsvp-seg { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .wrap {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom));
  }
  .desk-only { display: none !important; }
  .phone-only { display: block; }
  .bar {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .who { width: 100%; font-size: 12px; }
  h1 { font-size: 18px; }
  .tabs { display: none; }
  .bar-right { display: none; }
  .bar-tools {
    display: block;
    margin: 0 0 12px;
  }
  .bar-tools select {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  input, textarea, select { font-size: 16px; }
  textarea { min-height: 140px; }
  button { min-height: 44px; padding: 10px 14px; }
  .clip-zoom-hit { min-height: 0; padding: 0; }
  .clip-del { min-height: 32px; padding: 4px 8px; }
  .jumps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .jumps button { width: 100%; }
  .dots { flex-wrap: wrap; }
  .item-chip { max-width: 100%; }
  .cal { gap: 3px; }
  .cal-hd { font-size: 11px; padding: 2px 0; }
  .cal-cell {
    min-height: 48px;
    padding: 4px 2px;
    align-items: center;
  }
  .cal-num { font-size: 13px; }
  .cal-mark { font-size: 9px; }
  .rsvp-seg {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }
  .rsvp-seg button { width: 100%; }
  .boss-picks {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .boss-picks button { flex: 0 0 auto; }
  .login-page {
    min-height: 100dvh;
    align-items: flex-end;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .login input { min-height: 48px; }
  .btn-wide { width: 100%; min-height: 48px; }
  .dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #10141c;
    border-top: 1px solid var(--line);
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .dock button {
    background: transparent;
    color: var(--text2);
    border: 0;
    border-radius: 8px;
    min-height: 48px;
    font-size: 13px;
    font-weight: 600;
  }
  .dock button.on {
    color: var(--head);
    background: #1c1610;
  }
  .sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
  }
  .sheet[hidden] { display: none !important; }
  .sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  .sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 80vh;
    overflow: auto;
  }
  .sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sheet-grid button { width: 100%; }
  table.stack-phone thead { display: none; }
  table.stack-phone,
  table.stack-phone tbody,
  table.stack-phone tr,
  table.stack-phone td,
  table.stack-phone th {
    display: block;
    width: 100%;
  }
  table.stack-phone tr {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  table.stack-phone td,
  table.stack-phone th {
    border: 0;
    padding: 3px 0;
  }
  table.stack-phone tr.group {
    background: transparent;
    border: 0;
    padding: 8px 2px 2px;
  }
  table.stack-phone tr.group th {
    padding-top: 4px;
  }
  table.stack-phone td[data-th] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }
  table.stack-phone td[data-th]::before {
    content: attr(data-th);
    color: var(--faint);
    flex: 0 0 auto;
    font-size: 12px;
  }
}
