/* Longhouse: dashboard layer on top of brand.css (tokens, type, .btn, .mark). Same design system as yikesgaming.com. */
body.app { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- app shell: left rail on desktop, top bar on phones ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yikes); color: var(--yikes-ink); font-weight: 800; padding: 10px 14px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
body.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; border-right: 2px solid var(--line); background: var(--ground); overflow-y: auto; } /* impeccable-disable-line side-tab -- the rail's divider from the content (the reference's app shell), not an accent stripe on a card */
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.rail-brand .mark img { height: 38px; width: auto; }
.product { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--ink); margin: 0; letter-spacing: .01em; }
.spacer { flex: 1; }
.server-pick select { font: 800 var(--fs-sm) var(--body); background-color: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-radius: 14px; padding: 8px 12px; min-height: 44px; width: 100%; }
.tabs { display: grid; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; border-radius: 14px; border: 2px solid transparent; color: var(--muted); text-decoration: none;
  font: 800 .8125rem/1 var(--body); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
/* Where you are: the tab's icon sits in a raised yellow coin (the same coin as a finished step or a reached biome).
   No row fill, no outline, no stripe. Hover lifts the icon onto a dark socket. */
.tabs a img { width: 40px; height: 40px; padding: 6px; border-radius: 50%; flex: none; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)) grayscale(.35);
  transition: filter var(--ease), background-color var(--ease), box-shadow var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a:hover img { background: var(--surface-2); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] img { background: var(--yikes); box-shadow: 0 3px 0 var(--yikes-lip); filter: none; }
.tabs a:focus-visible { outline-offset: 0; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 2px solid var(--line); }
.me { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 800; color: var(--ink); padding: 0 4px; }
.me img { width: 32px; height: 32px; border-radius: 10px; }
.view { max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 28px 120px; outline: none; }
.view h2 { margin: 0 0 12px; font-size: 1.35rem; }
@media (max-width: 900px) {
  body.app { display: block; }
  .rail { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px 0; border-right: 0; border-bottom: 2px solid var(--line); overflow: visible; }
  .rail-brand .mark img { height: 32px; }
  .server-pick { flex: 1; max-width: 220px; }
  .rail-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; }
  .rail-foot .me span, .rail-foot .me { font-size: 0; gap: 0; }
  .tabs { order: 5; flex-basis: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .tabs a { min-height: 44px; padding: 0 12px; gap: 8px; }
  .tabs a img { width: 34px; height: 34px; padding: 5px; }
  .view { padding: 20px 16px 120px; }
}

/* ---------- building blocks ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 900px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }
.panel { background: var(--surface); border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: var(--radius-card); padding: 18px; min-width: 0; }
.panel h2, .panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; letter-spacing: .01em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.panel h2 .count, .panel h3 .count { color: var(--muted); font: 800 .95rem var(--body); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; align-content: start; }
.empty { color: var(--muted); font-size: var(--fs-sm); padding: 8px 0; }
.btn-quiet { appearance: none; background: var(--surface); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); color: var(--ink); border-radius: 12px; padding: 6px 12px; font: 800 .8125rem var(--body); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; min-height: 40px; transition: background-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-quiet:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-strong); }
.rank { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; font: 1rem/1 var(--display); color: var(--muted); align-self: center; }
.medal { border-radius: 50%; color: var(--yikes-ink); }
.medal.m1 { background: var(--yikes); box-shadow: 0 3px 0 var(--yikes-lip); } .medal.m2 { background: #CFCFC8; box-shadow: 0 3px 0 #8E8E86; } .medal.m3 { background: #D9894A; box-shadow: 0 3px 0 #9A5B2A; }
.players li { align-items: center; }
.btn.danger { background: #C43A3A; color: #fff; box-shadow: 0 var(--lip) 0 var(--danger-lip); } /* #C43A3A: white reads at 5.2:1 (design lock 2026-10-12); --danger-fill is 4.4:1 */
.btn.danger:hover { background: var(--danger-hover); }
.btn.danger:active { box-shadow: 0 0 0 var(--danger-lip); }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=time], select, textarea {
  font: 700 var(--fs-base) var(--body); color: var(--ink); background: var(--ground); border: 2px solid var(--line-strong);
  border-radius: 12px; padding: 8px 12px; min-height: 46px; width: 100%; min-width: 0; transition: border-color var(--ease);
}
textarea { min-height: 72px; resize: vertical; }
/* One chevron for every dropdown, inset like the text, instead of the browser's arrow jammed against the edge. */
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px !important; background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AFB3AA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select:hover, input:hover, textarea:hover { border-color: var(--line-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--yikes); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
/* brand.css .field is the website's server-card row (padded grid); Longhouse form labels reset it. */
label.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0; font-weight: 800; font-size: var(--fs-sm); }
label.field + label.field { border-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--ground); color: var(--muted); font: 800 .6875rem/1 var(--body); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.pill.off { color: var(--muted); }
.pill.bad { border-color: var(--danger-lip); color: var(--danger-ink); }
.pill.gold { border-color: var(--yikes); color: var(--yikes-ink); background: var(--yikes); }

/* switch: green track + check when on (status colour plus a written On/Off via .state), grey when off */
:root { --on: var(--good-fill); --on-lip: var(--good-lip); --on-text: var(--good-ink); --off: #2A2A27; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 54px; height: 32px; border-radius: 11px; background: var(--off); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); position: relative; flex: none; transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease); }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 8px; background: var(--muted); display: grid; place-items: center; transition: transform var(--ease), background-color var(--ease); }
.switch .thumb::after { content: ""; width: 9px; height: 5px; border: solid transparent; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.switch input:checked + .track { background: var(--on); border-color: var(--on-lip); box-shadow: 0 3px 0 var(--on-lip); }
.switch input:checked + .track .thumb { transform: translateX(22px); background: #fff; }
.switch input:checked + .track .thumb::after { border-color: var(--on); }
.switch:hover .track { border-color: var(--line-hover); }
.switch input:checked:hover + .track { border-color: var(--on-lip); }
.switch input:focus-visible + .track { outline: 3px solid var(--yikes); outline-offset: 2px; }
.switch .state { min-width: 2.2em; font-weight: 800; font-size: var(--fs-sm); color: var(--muted); }
.switch .state::before { content: "Off"; }
.switch input:checked ~ .state { color: var(--on-text); }
.switch input:checked ~ .state::before { content: "On"; }
.switch .lbl { font-size: var(--fs-sm); font-weight: 800; }
.switch input:disabled ~ * { opacity: .45; cursor: not-allowed; }

/* segmented control: the picked option is a lit key (solid near-white, dark text, its own lip) */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--ground); border: 2px solid var(--line); border-radius: 16px; }
.seg button, .seg label > span { appearance: none; border: 0; background: none; color: var(--muted); font: 800 .8125rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; min-height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background-color var(--ease), color var(--ease), box-shadow var(--ease); }
.seg button:hover, .seg label > span:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: var(--ground); box-shadow: 0 3px 0 var(--lit-lip); }
.seg button[aria-pressed="true"] .n, .seg input:checked + span .n { color: var(--lit-sub); }
.seg label { display: flex; flex: 1; position: relative; }
.seg label > span { flex: 1; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:focus-visible + span, .seg button:focus-visible { outline: 3px solid var(--yikes); outline-offset: 1px; }
.seg .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.seg .ti { width: 18px; height: 18px; }
.seg-wide { display: flex; }

/* ---------- overview ---------- */
.status-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: var(--radius-card); background: var(--surface); border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); margin-bottom: 16px; }
.state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: .01em; }
.state .dot { width: 12px; height: 12px; }
.state.down .dot { background: var(--danger); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--fs-sm); }
.meta b { color: var(--ink); font-weight: 600; }
.players li, .events li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.players li:last-child, .events li:last-child { border-bottom: 0; }
.players, .events { list-style: none; margin: 0; padding: 0; }
.players .name { font-weight: 600; }
.events li { align-items: center; }
.events .ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--muted); }
.events .ico .vi { width: 28px; height: 28px; }
.ti { width: 20px; height: 20px; }
.ti.ok { color: var(--online); } .ti.bad { color: var(--danger); }
.vi { image-rendering: auto; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.events .text { flex: 1; min-width: 0; }
.events time { color: var(--muted); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.boss .muted { line-height: 18px; }
.boss { border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: 14px; padding: 8px 10px; font-size: var(--fs-sm); display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.boss .vi { grid-row: span 2; width: 40px; height: 40px; }
.boss:not(.down) .vi { filter: grayscale(1) drop-shadow(0 1px 1px rgb(0 0 0 / .6)); opacity: .75; }
.boss b { font-size: .95rem; line-height: 1.2; }
.pill .vi { width: 22px; height: 22px; margin-left: -6px; }
.pill.off .vi { filter: grayscale(1); opacity: .85; }
.boss.down { border-color: var(--yikes); background: var(--yikes); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- mod settings ---------- */
.mods { display: block; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
/* Overview: both columns end level. Recent events takes whatever height the action column leaves and scrolls inside,
   so neither side trails off into empty space. */
.col.fill-col { display: flex; flex-direction: column; }
.panel.fill { flex: 1 1 auto; display: flex; flex-direction: column; }
.online-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.online-strip h2 { margin: 0; }
.online-strip .empty-state { padding: 0; gap: 12px; }
.online-strip .empty-state img { width: 44px; height: 44px; }
.online-strip.has-players { display: block; padding-block: 18px; }
.online-strip.has-players h2 { margin-bottom: 12px; }
.online-strip .players { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.online-strip .players li, .online-strip .players li:last-child { border: 0; border-radius: 14px; background: var(--ground); padding: 8px 12px; }
.feed-scroll { flex: 1 1 auto; min-height: 140px; contain: size; overflow-y: auto; overscroll-behavior: contain; margin-inline: -6px; padding-inline: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; border-radius: 8px; }
.feed-scroll.more { mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.panel .feed-scroll .day-head { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 0 6px; background: var(--surface); }
.panel .feed-scroll .day-head:first-child { padding-top: 0; }
@media (max-width: 900px) { .feed-scroll { contain: none; max-height: 420px; } }
@media (max-width: 800px) { .mods { grid-template-columns: 1fr; } .filelist { position: static; } }
/* Settings files: a row of tactile keys; the open file is the lit key */
.filelist { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filelist button { appearance: none; text-align: left; background: var(--surface); border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: 14px; padding: 9px 16px; cursor: pointer; color: var(--ink); font: 800 var(--fs-sm) var(--body); display: grid; gap: 1px; min-height: 52px; transition: background-color var(--ease), border-color var(--ease); }
.filelist button:hover { background: var(--surface-2); }
.filelist button span { font-weight: 700; color: var(--muted); font-size: .75rem; }
.filelist button[aria-current="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); border-bottom-color: var(--lit-lip); }
.filelist button[aria-current="true"] span { color: var(--lit-sub); }
.ms-head h2 { margin: 0 0 2px; font-size: var(--fs-xl); line-height: 32px; }
.ms-head .hint { font-size: var(--fs-sm); }
.ms-head .hint b { color: var(--ink); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; }
.search { position: relative; flex: 1 1 240px; max-width: 380px; display: block; }
.search .ti { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; min-height: 46px; }
.mgroup { margin-top: 22px; }
.mgroup > h3 { font-size: var(--fs-sm); line-height: 20px; color: var(--muted); margin: 0 0 8px; font-weight: 700; display: flex; gap: 8px; }
.mgroup > h3 .count { font-weight: 600; opacity: .7; }
.module-wrap { position: relative; margin-bottom: 8px; }
.module-wrap > .m-switch { position: absolute; top: 12px; right: 50px; z-index: 1; }
details.module { background: var(--surface); border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: 16px; overflow: hidden; }
.m-slot { width: 104px; } .m-slot.empty { width: 0; }
details.module > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; min-height: 68px; transition: background-color var(--ease); }
details.module > summary:hover { background: var(--surface-2); }
details.module > summary::-webkit-details-marker { display: none; }
details.module > summary:focus-visible { outline: 3px solid var(--yikes); outline-offset: -3px; }
details.module[open] > summary { border-bottom: 1px solid var(--line); }
.m-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.m-icon .vi { width: 34px; height: 34px; }
.m-icon .ti { width: 24px; height: 24px; }
.m-text { min-width: 0; display: grid; gap: 2px; }
.m-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.m-sum { color: var(--muted); font-size: var(--fs-sm); line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.module.on .m-sum { color: var(--ink-2); }
details.module.off .m-icon .vi { filter: grayscale(1); opacity: .55; }
details.module.off .m-icon .ti { opacity: .55; }
details.module.off .m-name { color: var(--muted); }
details.module .chev { color: var(--muted); transition: transform var(--ease); }
details.module[open] .chev { transform: rotate(180deg); }
.m-note { margin: 0; padding: 10px 16px; color: var(--muted); font-size: var(--fs-sm); line-height: 20px; background: var(--ground-2); border-bottom: 1px solid var(--line); max-width: none; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) 128px; gap: 8px 20px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.settings .setting:last-child { border-bottom: 0; }
/* changed from vanilla: the Vanilla value + Reset on the right says it; the row gets a faint warm tint, never a side stripe */
.s-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-desc { color: var(--muted); font-size: var(--fs-sm); line-height: 20px; margin-top: 2px; max-width: 72ch; }
.more summary { display: inline-block; cursor: pointer; color: var(--ink); font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--yikes-lip); text-underline-offset: 3px; margin-top: 2px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { display: none; }
.tag { font-size: .72rem; line-height: 18px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--yikes); color: var(--yikes-ink); }
.s-ctl { min-width: 0; }
.s-vanilla { font-size: var(--fs-sm); line-height: 20px; color: var(--muted); display: grid; gap: 2px; justify-items: start; }
.s-vanilla b { color: var(--ink); font-variant-numeric: tabular-nums; }
.s-vanilla .same { opacity: .75; }
.numctl { display: flex; align-items: center; gap: 12px; }
.num { position: relative; flex: none; width: 104px; }
.num input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.num.has-unit input { padding-right: 34px; }
.num .unit { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-weight: 600; }
.slider { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; cursor: pointer; margin: 0;
  background: linear-gradient(to right, #353531 0 var(--a, 0%), var(--yikes) var(--a, 0%) var(--b, 0%), #353531 var(--b, 0%) 100%); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-hover); }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-hover); }
.keycap { font-family: var(--mono); font-weight: 600; max-width: 170px; border-bottom-width: 3px !important; }
.showmore { display: block; width: 100%; min-height: 46px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 600 var(--fs-sm) var(--body); cursor: pointer; transition: background-color var(--ease); }
.showmore:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .setting { grid-template-columns: 1fr; }
  .s-vanilla { grid-auto-flow: column; justify-content: start; gap: 12px; }
  details.module > summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
  details.module > summary .chev { display: none; }
  .module-wrap > .m-switch { right: 14px; }
  .m-icon { width: 40px; height: 40px; }
  .m-sum { white-space: normal; }
}
.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yikes-lip); text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; }
.savebar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-hover); padding: 10px 12px 10px 18px; border-radius: 16px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .8); max-width: calc(100% - 32px); }

/* ---------- Discord feed ---------- */
.feed-banner { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.feed-banner .fb-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--online); color: #04220F; }
.feed-banner.paused .fb-ico { background: var(--off); color: var(--muted); }
.feed-banner .ti { width: 26px; height: 26px; }
.fb-text { display: grid; gap: 2px; min-width: 0; }
.fb-text b { font-size: 1.05rem; }
.fgroup h2 { line-height: 20px; font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 8px; font-weight: 700; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.feed-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: 16px; background: var(--surface); transition: border-color var(--ease), background-color var(--ease); }
.feed-card:hover { border-color: var(--line-hover); }
.feed-card .switch { position: static; }
.feed-card .switch::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.fc-ico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.fc-ico .vi { width: 34px; height: 34px; }
.fc-ico .ti { width: 24px; height: 24px; }
.fc-text { min-width: 0; display: grid; gap: 4px; }
.fc-text > b { line-height: 1.25; }
.fc-sample { font-size: var(--fs-sm); line-height: 20px; color: var(--muted); background: var(--ground); border-radius: 8px; padding: 4px 10px; justify-self: start; }
.fc-sample b { color: var(--ink); }
.feed-card.off { background: var(--ground); }
.feed-card.off .fc-sample { background: var(--surface); }
.feed-card.off .fc-ico { filter: grayscale(1); opacity: .5; }
.feed-card.off .fc-text > b { color: var(--muted); }
.feed-card.off .fc-sample { color: var(--muted); }

.feed-banner .row { justify-content: flex-end; }
@media (max-width: 760px) { .feed-banner { grid-template-columns: 48px minmax(0, 1fr); } .feed-banner .row { grid-column: 1 / -1; justify-content: flex-start; } }
.join-card h2 .vi { width: 24px; height: 24px; }

/* ---------- schedule ---------- */
.sched-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sched { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); border-radius: 16px; background: var(--ground); }
.sched.paused .when, .sched.paused .what { opacity: .55; }
.when b { display: block; font-size: 1.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.when span { font-size: .78rem; color: var(--muted); }
.what { display: grid; gap: 4px; min-width: 0; }
.what .title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.what .title .ti { color: var(--muted); flex: none; }
.days { display: flex; gap: 4px; }
.days span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); }
.days span.on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.dayset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.dayset legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; padding: 0; }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day span { display: inline-grid; place-items: center; min-width: 50px; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); background: var(--ground); font-weight: 700; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.day span:hover { border-color: var(--line-hover); color: var(--ink); }
.day input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.day input:focus-visible + span { outline: 3px solid var(--yikes); outline-offset: 2px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .sched { grid-template-columns: 76px minmax(0, 1fr); } }

/* ---------- logs ---------- */
.logbox { font-family: var(--mono); font-size: .78rem; line-height: 1.5; background: #0D1112; color: #CFE3DF; border-radius: 12px; padding: 14px; height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.logbox .ev { color: #8FDAD2; }
.logbox .err { color: #F08A8A; }

/* ---------- toast ---------- */
/* Toast: a tactile notice with an icon, not a black pill */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none; z-index: 40; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 16px; background: var(--surface-2); color: var(--ink); border: 2px solid var(--line-strong);
  box-shadow: 0 var(--lip) 0 var(--line-strong), 0 18px 40px -16px rgb(0 0 0 / .8); font-weight: 800; font-size: var(--fs-sm); transition: opacity var(--ease), transform var(--ease); }
.toast .icon { width: 22px; height: 22px; color: var(--on-text); flex: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { border-color: var(--danger-lip); box-shadow: 0 var(--lip) 0 var(--danger-lip), 0 18px 40px -16px rgb(0 0 0 / .8); }
.toast.bad .icon { color: var(--danger-ink); }

/* ---------- login ---------- */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { max-width: 420px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; display: grid; gap: 12px; }
.login-card h1 { font-size: 3rem; }
.login-note { background: var(--note-bg); color: var(--ink); padding: 10px 12px; border-radius: 10px; margin: 0; }
.btn-discord { background: #5865F2; color: #fff; text-decoration: none; justify-self: start; }
.btn-discord[aria-disabled="true"] { opacity: .5; }

/* ---------- loading placeholders (content-shaped, not a spinner) ---------- */
.skel { display: grid; gap: 12px; }
.skel > div { height: 64px; border-radius: 16px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.skel > div:first-child { height: 96px; }
@keyframes skel { to { background-position: -200% 0; } }
.btn-quiet.danger { background: #C43A3A; border-color: var(--danger-lip); box-shadow: 0 3px 0 var(--danger-lip); color: #fff; }
.filelist button.danger { background: var(--danger); border-color: var(--danger); color: #2A0606; }

/* ---------- phones ---------- */
@media (max-width: 900px) { body.single-server .server-pick { display: none; } }
@media (max-width: 800px) {
  .filelist { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filelist button { flex: none; border-color: var(--line); }
  .filelist button span { display: none; }
}

/* Schedule rows: switch and Delete stack in their own column so they never overlap the text in narrower panels */
.sched { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-rows: auto auto; }
.sched .when, .sched .what { grid-row: span 2; }
.sched > .switch { grid-column: 3; grid-row: 1; justify-self: end; }
.sched > [data-del] { grid-column: 3; grid-row: 2; justify-self: end; }
.days { flex-wrap: wrap; }
/* ---------- empty states with guild emoji ---------- */
.empty-state { display: flex; align-items: center; gap: 16px; padding: 14px 4px; }
.empty-state img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 10px 14px rgb(0 0 0 / .45)); }
.empty-state b { display: block; font-size: 1.05rem; }
.empty-state p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 20px; }

/* ---------- overview banner: the server's identity, status in words, game-style counters ---------- */
.banner { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "badge id counters" "badge versions counters"; column-gap: 16px; row-gap: 6px; align-items: center;
  padding: 16px 20px; margin-bottom: 16px; border-radius: var(--radius-card); background: var(--surface); border: 2px solid var(--line); border-bottom-width: calc(var(--lip) + 2px); }
.banner-badge { grid-area: badge; width: 64px; height: 64px; border-radius: 16px; }
.banner-id { grid-area: id; min-width: 0; }
.banner-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-title h2 { margin: 0; font-size: 1.7rem; line-height: 1.05; }
.banner .addr { color: var(--muted); font-size: .85rem; }
.versions { grid-area: versions; display: flex; gap: 6px; flex-wrap: wrap; }
/* Server status: the same squared badge as the version tags beside it, outlined and lettered in the status colour
   (no fill: a filled pill read as a button). */
.status-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 7px; border: 2px solid var(--online);
  background: var(--ground); color: var(--online); font: 800 .6875rem/1 var(--body); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status-badge .dot { width: 7px; height: 7px; background: var(--online); }
.status-badge.down { border-color: var(--danger); color: var(--danger); }
.status-badge.down .dot { background: var(--danger); }
.status-badge.busy { border-color: var(--yikes); color: var(--yikes); }
.status-badge.busy .dot { background: var(--yikes); }
.counters { grid-area: counters; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.counter { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--ground); border: 2px solid var(--line); }
.counter .vi { width: 30px; height: 30px; }
.counter > span { display: grid; line-height: 1.1; font-size: .72rem; font-weight: 800; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.counter b { font: 1.25rem/1.05 var(--display); color: var(--ink); letter-spacing: .01em; text-transform: none; }
@media (max-width: 1000px) { .banner { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "badge id" "versions versions" "counters counters"; } .banner-badge { width: 56px; height: 56px; } .counters { justify-content: flex-start; } }

/* players, admins: initials avatars; biome with its drop */
.avatar { --c: var(--yikes); width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 .9rem/1 var(--body); color: #0B0B0A;
  background: var(--c); box-shadow: 0 2px 0 rgb(0 0 0 / .45); }
.players li { gap: 12px; }
.biome { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.biome .vi { width: 20px; height: 20px; }
.events li .avatar, .events li > .avatar { align-self: center; }

/* Hall of Fame rows: same leaderboard as the website */
.board { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.lb-row { display: grid; grid-template-columns: 32px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.lb-row:nth-child(-n+3) { background: var(--ground); }
.lb-row + .lb-row { margin-top: 4px; }
.lb-who b { display: block; font-weight: 800; }
.lb-who span { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 20px; }
.lb-stats { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.lb-stats b { color: var(--ink); font-size: 1rem; }
.lb-stats .vi { width: 20px; height: 20px; display: inline-block; vertical-align: -5px; margin-right: 4px; }
@media (max-width: 560px) { .lb-row { grid-template-columns: 32px 34px minmax(0, 1fr); } .lb-stats { grid-column: 3; } }

/* events grouped by day */
.day-head, .panel h3.day-head { font: 800 .75rem/1 var(--body); display: block; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.day-head:first-of-type { margin-top: 2px; }

/* announcement preview: how the message lands on screen in game */
.ingame { position: relative; display: grid; min-height: 92px; padding: 12px 14px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 40%, #262621 0%, #0C0C0B 70%); border: 2px solid var(--line); overflow: hidden; }
.ingame::before { content: "In game"; position: absolute; right: 10px; bottom: 8px; font: 800 .625rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--line-hover); }
.ingame span { color: #FFF3D6; font-weight: 800; text-shadow: 0 1px 0 #000, 0 0 2px #000, 0 0 10px rgb(0 0 0 / .8); overflow-wrap: anywhere; }
.ingame.center { place-items: center; text-align: center; } .ingame.center span { font-size: 1.15rem; }
.ingame.topleft { place-items: start; } .ingame.topleft span { font-size: .8125rem; }
.events li .btn { margin-left: auto; }

/* ---------- quick search (Ctrl+K): a tactile dialog, results styled like the rail's selected state ---------- */
.rail-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  color: var(--muted); font: 800 var(--fs-sm) var(--body); cursor: pointer; text-align: left; transition: border-color var(--ease), color var(--ease); }
.rail-search:hover { border-color: var(--line-strong); color: var(--ink); }
.rail-search .ti { width: 18px; height: 18px; flex: none; }
.rail-search .label { flex: 1; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; border: 2px solid var(--line-strong); border-bottom-width: 3px;
  background: var(--ground); color: var(--muted); font: 800 .6875rem/1 var(--body); letter-spacing: .04em; }
@media (max-width: 900px) { .rail-search { width: 44px; padding: 0; justify-content: center; } .rail-search kbd { display: none; } .rail-search .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.cp { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 10vh auto auto; padding: 0; display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-bottom-width: calc(var(--lip) + 2px); border-radius: 20px; }
.cp[open] { display: flex; }
.cp::backdrop { background: rgb(0 0 0 / .66); }
.cp-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--line); }
.cp-box .ti { width: 22px; height: 22px; color: var(--muted); flex: none; }
.cp-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 800 1.125rem var(--body); padding: 6px 0; outline: none; }
.cp-box input::placeholder { color: var(--muted); font-weight: 600; }
.cp-list { overflow-y: auto; padding: 6px 10px 10px; overscroll-behavior: contain; }
.cp-group { font: 800 .75rem/1 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.cp-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; }
.cp-opt[aria-selected="true"] { background: var(--surface-2); }
.cp-go { margin-left: auto; visibility: hidden; }
.cp-opt[aria-selected="true"] .cp-go { visibility: visible; }
.cp-ico { width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: var(--muted); }
.cp-ico img, .cp-ico .vi { width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.cp-ico .ti { width: 22px; height: 22px; }
.cp-txt { display: grid; min-width: 0; }
.cp-txt b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-txt span { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-list .empty-state, .cp-loading { padding: 18px 10px; }
.cp-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px; border-top: 2px solid var(--line); color: var(--muted); font-size: .8125rem; font-weight: 700; }
.cp-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .cp { margin-top: 12px; max-height: calc(100vh - 24px); } .cp-foot { display: none; } }

/* where quick search landed: a short yellow ring that fades */
@keyframes found { from { box-shadow: 0 0 0 3px var(--yikes); } to { box-shadow: 0 0 0 3px transparent; } }
.found { animation: found 1.6s ease-out; border-radius: 14px; }

/* saved settings waiting for a restart */
.pending-note { display: flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
.pending-note .ti { width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 50%; background: var(--yikes); color: var(--yikes-ink); box-shadow: 0 2px 0 var(--yikes-lip); }
.pending-note b { color: var(--ink); }
.pending-note a { color: var(--yikes); font-weight: 800; }
.ms-head + .pending-note { margin: -4px 0 14px; }
button.badge { cursor: pointer; font-family: var(--body); }

/* Hall of Fame footer: when the recap posts, with the manual button on its own row */
.hof-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); }
.hof-foot .hint { margin: 0; }

/* No sideways jump when a tab is long enough to scroll and the next one isn't */
html { scrollbar-gutter: stable; }
/* While the next tab loads, the current one stays put, dimmed, instead of turning into a placeholder */
.view[aria-busy="true"] { opacity: .5; pointer-events: none; transition: opacity 160ms ease; }

/* Chat bridge panel (Discord feed tab) */
.chat-bridge { margin-top: 16px; display: grid; gap: 12px; }
.chat-bridge .hint { margin: 0; }
.cb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.chat-bridge textarea { min-height: 76px; font-family: var(--mono); font-size: .875rem; }

/* Phones: one-row top bar (mark, search, avatar, sign out) and the three counters side by side */
@media (max-width: 480px) {
  .rail .product { display: none; }
  .rail-foot .btn { min-height: 38px; padding: 0 12px; font-size: .6875rem; box-shadow: 0 3px 0 var(--line-strong); }
  .counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .counter { padding: 8px 8px; gap: 6px; min-width: 0; }
  .counter .vi { width: 22px; height: 22px; }
  .counter b { font-size: .95rem; white-space: nowrap; }
  .counter span { font-size: .625rem; min-width: 0; }
}

.chat-bridge .cb-h { margin: 6px 0 0; font: 400 1.05rem var(--display); }

/* Online player cards: avatar beside two lines, name on top, then where they are and how long */
.online-strip .players li.pc { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; }
.online-strip .players li.pc-more { display: flex; }
.pc-text { display: grid; gap: 3px; min-width: 0; }
.pc-text .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.pc-meta .biome { font-size: inherit; gap: 5px; }
.pc-meta .biome .vi { width: 18px; height: 18px; }

/* ---------- recruiting: the LFG-to-guild board, the ad bump list and the daily reminder ---------- */
.rec-today { display: grid; gap: 14px; }
.rec-counters { display: flex; gap: 10px; flex-wrap: wrap; }
.rec-counters .counter { cursor: pointer; transition: border-color var(--ease); } .rec-counters .counter:hover { border-color: var(--line-strong); }
.rec-counters .counter.hot { border-color: var(--yikes); }
.rec-due { list-style: none; margin: 0; padding: 0; }
.rec-due li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 2px solid var(--line); }
.rec-due li:last-child { border-bottom: 0; }
.rec-due .who b { display: block; } .rec-due .who span { color: var(--muted); font-size: var(--fs-sm); line-height: 20px; }
.rec-due .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rec-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.rec-filters .seg { flex-wrap: wrap; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-row { border-bottom: 2px solid var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-row > details > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; cursor: pointer; list-style: none; border-radius: 12px; min-height: 56px; }
.rec-row > details > summary::-webkit-details-marker { display: none; }
.rec-row > details > summary:hover { background: var(--ground); }
.rec-row > details > summary:focus-visible { outline: 3px solid var(--yikes); outline-offset: -3px; }
.rec-row .who { min-width: 0; }
.rec-row .who b { display: block; font-weight: 800; overflow-wrap: anywhere; }
.rec-row .who span { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 20px; overflow-wrap: anywhere; }
.rec-row .who .mono { font-size: .8rem; }
.rec-row .state { display: grid; justify-items: end; gap: 4px; text-align: right; }
.rec-row .state time { color: var(--muted); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-row .needs { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 800; }
.rec-body { display: grid; gap: 14px; padding: 4px 4px 16px 50px; }
.rec-body .quote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--line-strong); background: var(--ground); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
.rec-body .dm textarea { min-height: 150px; font-weight: 600; font-size: var(--fs-sm); line-height: 20px; }
.rec-stages { display: flex; gap: 6px; flex-wrap: wrap; }
.row.rc-traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rec-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.rec-hist b { color: var(--ink); font-weight: 700; }
.rec-hist time { font-variant-numeric: tabular-nums; }
.badge.stage-joined { border-color: var(--yikes); background: var(--yikes); color: var(--yikes-ink); }
.badge.stage-applied, .badge.stage-in_discord { border-color: var(--ink); background: var(--ink); color: var(--yikes-ink); }
.badge.stage-passed, .badge.stage-quiet { color: var(--muted); border-style: dashed; }
.rec-places li { display: grid; gap: 8px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.rec-places li > .row { justify-content: flex-start; }
.rec-places li:last-child { border-bottom: 0; }
.rec-places .who b { display: block; } .rec-places .who span { color: var(--muted); font-size: var(--fs-sm); line-height: 20px; }
.rec-places .who a { font-size: var(--fs-sm); }
.rec-status { display: grid; gap: 6px; font-size: var(--fs-sm); }
.rec-status li { display: flex; gap: 8px; align-items: baseline; }
.rec-status .word { font-weight: 800; min-width: 46px; }
.rec-status .ok { color: var(--online); } .rec-status .bad { color: var(--danger); }
.rec-new li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px solid var(--line); }
.rec-new li:last-child { border-bottom: 0; }
.rec-new .who b { display: block; } .rec-new .who span { color: var(--muted); font-size: var(--fs-sm); }
.rec-days { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .rec-row > details > summary { grid-template-columns: 34px minmax(0, 1fr); }
  .rec-row .state { grid-column: 2; justify-items: start; text-align: left; }
  .rec-body { padding-left: 4px; }
  .rec-due li { grid-template-columns: minmax(0, 1fr); }
  .rec-due .acts { justify-content: flex-start; }
}
.rec-counters .counter { appearance: none; font: inherit; color: inherit; text-align: left; }
.rec-counters .counter:focus-visible { outline: 3px solid var(--yikes); outline-offset: 2px; }
.rec-activity summary { font-size: var(--fs-sm); }
.rec-activity .rec-hist li { overflow-wrap: anywhere; }
