:root {
  --void: #08050f;
  --deep: #0f0a1c;
  --panel: #150e26;
  --line: #2a1f45;
  --ink: #ece6fb;
  --ink2: #b8acd8;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-ink: #12082a;
  --glow: rgba(139, 92, 246, 0.35);
  --warn: #f19a8a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.65 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--void);
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(236, 230, 251, 0.55), transparent),
    radial-gradient(1px 1px at 170px 140px, rgba(167, 139, 250, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 260px 30px, rgba(236, 230, 251, 0.4), transparent),
    radial-gradient(1px 1px at 110px 230px, rgba(236, 230, 251, 0.35), transparent),
    radial-gradient(1100px 620px at 78% -8%, rgba(124, 58, 237, 0.30), transparent 62%),
    radial-gradient(900px 560px at 4% 108%, rgba(76, 29, 149, 0.38), transparent 62%);
  background-size: 300px 280px, 300px 280px, 300px 280px, 300px 280px, auto, auto;
  background-attachment: scroll, scroll, scroll, scroll, fixed, fixed;
}
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); }
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header (only shown inside a tool) */
#top {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 20px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
#top[hidden] { display: none; }
.mark { font: 400 1.7rem/1 "Instrument Serif", Georgia, serif; text-decoration: none; color: var(--ink); }
.mark:hover { color: var(--accent); }
#nav { display: flex; gap: 6px; flex-wrap: wrap; }
#nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 500; }
#nav a:hover { color: var(--ink); background: var(--panel); }
#nav a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

main { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 12vh, 140px) clamp(16px, 4vw, 56px) 96px; }

/* Home */
.hero h1 {
  font-size: clamp(3.6rem, 13vw, 9rem);
  text-shadow: 0 0 70px var(--glow);
}
.hero p { margin: 20px 0 0; max-width: 46ch; font-size: 1.25rem; line-height: 1.5; color: var(--ink2); }
.void-note {
  margin-top: 56px; padding: 22px 24px; max-width: 520px;
  border: 1px dashed var(--line); border-radius: 6px;
  color: var(--ink2); background: rgba(21, 14, 38, 0.6);
}
.void-note b { color: var(--ink); font-weight: 700; }

/* Tool list (used once tools exist) */
.tool-list { display: flex; flex-direction: column; margin-top: 48px; border-top: 1px solid var(--line); }
.tool-row {
  display: grid; grid-template-columns: minmax(150px, 240px) 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.tool-row:hover { background: var(--panel); }
.tool-name { font: 400 2rem/1.1 "Instrument Serif", Georgia, serif; }
.tool-blurb { color: var(--ink2); }
.tool-go { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* Tool pages */
.crumb { display: inline-block; margin-bottom: 16px; font-size: 0.9rem; color: var(--ink2); text-decoration: none; }
.crumb:hover { color: var(--accent); }
.page-head { margin-bottom: 32px; display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.ph-main { flex: 1 1 auto; min-width: 0; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-head p { margin: 12px 0 0; max-width: 60ch; color: var(--ink2); }

/* Form pieces for future tools */
label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink2); margin: 16px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--deep); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--glow); }
.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 10px 18px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.note { margin: 12px 0 0; color: var(--ink2); }
.note.warn { color: var(--warn); }

@media (max-width: 640px) {
  .tool-row { grid-template-columns: 1fr; gap: 4px; }
  .tool-go { display: none; }
}

/* Boss damage calculator */
:root { --good: #86e0ae; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel { padding: 4px 0 8px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; align-items: end; }
.fields [hidden] { display: none; }
.panel .note { max-width: 78ch; font-size: 0.95rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.roster-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.roster-head h2 { font-size: 2rem; }
.roster-head .row { margin: 0; display: flex; gap: 8px; }
.btn.small { padding: 6px 12px; font-size: 0.88rem; }
.m-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(110px, 170px) 52px 32px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.m-name { margin: 0; font-size: 1rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.m-share { text-align: right; color: var(--ink2); font-size: 0.85rem; }
.m-del { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--ink2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.m-del:hover { color: var(--ink); background: var(--panel); }
input[aria-invalid="true"] { border-color: var(--warn); }
.add-row { display: flex; gap: 10px; margin-top: 16px; }
.result-card { position: sticky; top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(21, 14, 38, 0.72); box-shadow: 0 0 60px -20px var(--glow); }
.verdict { margin: 0; font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 "Instrument Serif", Georgia, serif; }
.verdict.won { color: var(--good); }
.verdict.short { color: var(--ink); }
.bar { height: 10px; margin-top: 18px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.bar-label { margin: 8px 0 20px; font-size: 0.85rem; color: var(--ink2); }
.figures { margin: 0; border-top: 1px solid var(--line); }
.figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.figures dt { color: var(--ink2); }
.figures dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.figures .nw { white-space: nowrap; }
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .col-result { order: -1; }
  .result-card { position: static; }
}
@media (max-width: 480px) {
  .m-row { grid-template-columns: 20px minmax(0, 1fr) 110px 44px 30px; gap: 6px; }
}

.m-row input.m-on { width: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--accent-strong); cursor: pointer; }
.m-row.off .m-name, .m-row.off .m-dmg { opacity: 0.4; }
.verdict.ticks { color: var(--accent); }
.sub { margin: 10px 0 20px; color: var(--ink2); }
.mini-h { margin: 28px 0 8px; font-size: 1.7rem; }

.live { margin: 14px 0 0; font-size: 0.9rem; color: var(--ink2); }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--good); vertical-align: 1px; }
.live.off::before { background: var(--warn); }
.live.local::before { background: var(--ink2); }

/* Screenshot import */
.import-sec { margin-bottom: 40px; }
.import { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(21, 14, 38, 0.5); }
.import.over { border-color: var(--accent); background: rgba(139, 92, 246, 0.14); }
.import-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.import-text b { font: 400 1.5rem/1.1 "Instrument Serif", Georgia, serif; }
.import-text span { color: var(--ink2); font-size: 0.95rem; }
.import .btn:disabled { opacity: 0.55; cursor: progress; }
.review { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(21, 14, 38, 0.72); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review-head h3 { font-size: 1.8rem; }
.rv-wrap { overflow-x: auto; }
.rv { width: 100%; border-collapse: collapse; }
.rv th { text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--ink2); padding: 8px 8px 8px 0; white-space: nowrap; }
.rv td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.rv input { padding: 7px 9px; font-size: 0.95rem; }
.rv input.rv-on { width: 18px; height: 18px; padding: 0; accent-color: var(--accent-strong); }
.rv .rv-name { min-width: 130px; }
.rv .rv-act { min-width: 66px; width: 76px; }
.rv .rv-con { min-width: 120px; }
.rv-tick { white-space: nowrap; font-size: 0.9rem; }
.rv-status { font-size: 0.85rem; color: var(--ink2); white-space: nowrap; }
.rv-status.bad { color: var(--warn); font-weight: 700; }
.rv-status.new { color: var(--accent); }
.btn.armed { border-color: var(--warn); color: var(--warn); }

/* In Search Of board */
.iso-form .iso-fields { display: flex; gap: 0 16px; flex-wrap: wrap; align-items: end; }
.iso-fields > div { flex: 1 1 160px; min-width: 0; }
.iso-fields .iso-item { flex: 2 1 240px; }
.iso-fields .iso-qty { flex: 0 1 120px; }
.iso-fields .iso-note { flex: 1 1 320px; }
.iso-fields .iso-go { flex: 0 0 auto; }
.iso-go .btn { min-width: 110px; }
.iso-h2 { font-size: 2rem; margin: 40px 0 8px; }
.roster-head input[type="search"] { width: 200px; }
.iso-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.iso-main { flex: 1 1 260px; min-width: 0; }
.iso-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.iso-line .iso-name { font: 400 1.5rem/1.15 "Instrument Serif", Georgia, serif; overflow-wrap: anywhere; }
.iso-q { color: var(--accent); }
.iso-notetext { margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; }
.iso-by { margin-top: 2px; font-size: 0.85rem; }
.iso-acts { display: flex; gap: 8px; }
.iso-fields .iso-cat { flex: 1 1 170px; }
.iso-cat-h { margin: 22px 0 0; padding-bottom: 6px; font: 400 1.4rem/1.1 "Instrument Serif", Georgia, serif; color: var(--accent); border-bottom: 1px solid var(--line); }
.iso-cat-h .muted { font: 500 0.85rem Figtree, sans-serif; margin-left: 6px; }
.iso-cat-h + .iso-row { border-top: 0; }
[hidden] { display: none !important; }
.iso-fields input, .iso-fields select { height: 46px; }
.iso-fields .iso-price { flex: 1 1 260px; }
.iso-pay { margin-top: 2px; color: var(--good); overflow-wrap: anywhere; }
.iso-pay .muted { color: var(--ink2); margin-right: 4px; }
.iso-fields .iso-pay-type { flex: 0 1 200px; }
.iso-fields .iso-pay-item { flex: 1 1 180px; }
.iso-fields .iso-pay-amt { flex: 0 1 150px; }
.iso-pay b { font-weight: 700; }
.iso-acts { align-items: center; flex-wrap: wrap; }
.iso-by-in { width: 170px; padding: 6px 10px; font-size: 0.9rem; }
.iso-filled { margin-top: 2px; color: var(--good); }
.iso-filled b { font-weight: 700; }
.iso-cmd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.iso-cmd code { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--deep); color: var(--ink); font-size: 0.9rem; overflow-wrap: anywhere; }

/* Phones and touch screens */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select, input, label { touch-action: manipulation; }
body { -webkit-tap-highlight-color: rgba(139, 92, 246, 0.25); }
@supports (padding: max(0px)) {
  #top { padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)); }
  main { padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)); padding-bottom: max(96px, calc(48px + env(safe-area-inset-bottom))); }
}
@media (pointer: coarse) {
  .btn, .btn.small { min-height: 44px; }
  select, input:not([type="checkbox"]), textarea { min-height: 44px; }
  .m-del { width: 44px; height: 44px; font-size: 1.5rem; }
  .m-row input.m-on { width: 26px; height: 26px; }
  .rv input.rv-on { width: 24px; height: 24px; }
  .crumb { padding: 10px 12px 10px 0; margin-bottom: 4px; font-size: 1rem; }
  #nav a { padding: 11px 16px; }
  .mark { display: inline-block; padding: 6px 0; }
}
@media (max-width: 640px) {
  #top { gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: space-between; }
  #nav { flex: 1 1 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * clamp(16px, 4vw, 56px)); padding: 0 clamp(16px, 4vw, 56px) 4px; scrollbar-width: none; }
  #nav::-webkit-scrollbar { display: none; }
  #nav a { flex: 0 0 auto; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
  main { padding-top: 28px; }
  .page-head { margin-bottom: 22px; }
  .roster-head h2 { font-size: 1.7rem; }
  .roster-head input[type="search"] { width: 100%; }
  .iso-h2 { margin-top: 32px; }
  /* Post button and request rows */
  .iso-fields .iso-go { flex: 1 1 100%; margin-top: 12px; }
  .iso-go .btn { width: 100%; }
  .iso-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .iso-main { flex: 0 0 auto; }
  .iso-fields .iso-pay-type, .iso-fields .iso-qty { flex: 1 1 100%; }
  .iso-acts { width: 100%; }
  .iso-acts .btn { flex: 1 1 auto; }
  .iso-by-in { flex: 1 1 140px; width: auto; font-size: 1rem; }
  .iso-cmd code { flex: 1 1 200px; }
  .iso-cmd .btn { flex: 0 0 auto; }
  .import { padding: 16px; }
  .import .btn { width: 100%; }
  .review { padding: 16px; }
}
@media (max-width: 480px) {
  .m-row { grid-template-columns: 26px minmax(0, 1fr) 100px 38px 40px; gap: 4px 6px; }
  .m-share { font-size: 0.8rem; }
  .result-card { padding: 18px; }
  .figures div { padding: 9px 0; }
  .hero p { font-size: 1.1rem; }
  .void-note { margin-top: 36px; }
}

/* Passcode gate */
.iso-gate { max-width: 420px; }
.iso-gate-t { font: 400 1.7rem/1.1 "Instrument Serif", Georgia, serif; }
.iso-gate input { height: 46px; }
.iso-gate-go { margin-top: 14px; }
.iso-gate-go .btn { min-width: 110px; }
@media (max-width: 640px) { .iso-gate-go .btn { width: 100%; } }

/* Brand: "The Banished" flows like the void, "Tools" is bold orange */
.brand-void {
  background: linear-gradient(100deg, #4c1d95 0%, #c4b5fd 22%, #2e1065 44%, #8b5cf6 62%, #ddd6fe 78%, #4c1d95 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.65)) drop-shadow(0 0 2px rgba(196, 181, 253, 0.35));
  animation: voidflow 11s ease-in-out infinite alternate;
}
.brand-tools {
  font: 700 0.62em/1 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  color: #ff8a1f;
  text-shadow: 0 0 22px rgba(255, 138, 31, 0.35);
  margin-left: 0.08em;
}
.hero .brand-tools { font-size: 0.5em; vertical-align: 0.28em; }
.mark:hover .brand-tools { color: #ffa24d; }
@keyframes voidflow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .brand-void { animation: none; background-position: 30% 50%; } }
.hero h1 { font-size: clamp(3.4rem, 11.5vw, 7.5rem); text-wrap: wrap; }

/* Tool notes: passcode line and last updated */
.tool-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.85rem; }
.tool-updated { color: var(--ink2); }
.tool-lock, .tool-local { color: #ffb066; font-weight: 700; }
.tool-lock::before, .tool-local::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #ff8a1f; vertical-align: 1px; }
.page-head .tool-meta { margin-top: 14px; }

/* Discord button and notification note */
.discord-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; box-shadow: 0 0 24px -6px rgba(88, 101, 242, 0.7); }
.discord-btn:hover { background: #6d79f5; color: #fff; }
#top .discord-btn { margin-left: auto; order: 1; }
#top #nav { flex: 1 1 100%; order: 2; }
@media (max-width: 640px) { #top .discord-btn { order: 1; } }
.home-bar { display: flex; justify-content: flex-end; margin: -28px 0 20px; }
.tool-notify { color: #a5b0ff; font-weight: 700; }
.tool-notify::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #5865f2; vertical-align: 1px; }
@media (pointer: coarse) { .discord-btn { min-height: 44px; } }

/* Screenshot import: what will be added to the member list */
.rv-list { margin-top: 12px; display: grid; gap: 0; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rv-name { overflow-wrap: anywhere; }
.rv-val { color: var(--ink2); text-align: right; }
.rv-status { text-align: right; font-size: 0.8rem; font-weight: 700; }
.rv-status.new { color: var(--accent); }
.rv-status.upd { color: #ffb066; }

/* "How to use this" link beside a tool's heading */
.help-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.help-link span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 0.8rem; }
.help-link:hover { border-color: var(--accent); }
@media (max-width: 700px) { .page-head { flex-direction: column; gap: 4px; } .help-link { margin-top: 14px; padding: 10px 16px 10px 10px; min-height: 44px; } }

/* How to use page */
.howto { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.howto-side { position: sticky; top: 24px; display: grid; gap: 2px; }
.howto-side b { margin-bottom: 8px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.howto-side a { padding: 7px 0 7px 12px; border-left: 2px solid var(--line); color: var(--ink2); font-size: 0.95rem; text-decoration: none; }
.howto-side a:hover, .howto-side a.here { color: var(--ink); border-left-color: var(--accent); }
.howto-body { min-width: 0; max-width: 70ch; }
.howto-body section { scroll-margin-top: 24px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.howto-body section:last-child { border-bottom: 0; }
.howto-body h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.howto-body h3 { font-size: 1.4rem; margin: 26px 0 6px; color: var(--accent); }
.howto-body p, .howto-body li { color: var(--ink2); line-height: 1.6; }
.howto-body p { margin: 10px 0 0; }
.howto-body ol, .howto-body ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.howto-body li b, .howto-body p b { color: var(--ink); }
.howto-body code { padding: 1px 6px; border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 0.9em; }
.howto-body .tip { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #ff8a1f; background: rgba(255, 138, 31, 0.08); color: var(--ink); border-radius: 0 6px 6px 0; }
.howto-body table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.95rem; }
.howto-body th, .howto-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink2); }
.howto-body th { color: var(--ink); }
.howto-body td:last-child { font-family: "Figtree", system-ui, sans-serif; }
.howto-body .scroll { overflow-x: auto; }
@media (max-width: 860px) {
  .howto { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .howto-side { position: static; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .howto-side b { grid-column: 1 / -1; }
  .howto-side a { padding: 10px 0 10px 12px; }
}

/* Home page: the Discord boss alert row has two links instead of one. */
.tool-extra:hover { background: none; }
.extra-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-weight: 700; white-space: nowrap; }
.extra-links a { color: var(--accent); text-decoration: none; }
.extra-links a:hover { color: var(--ink); text-decoration: underline; }

/* In Search Of: filled requests waiting to be paid. */
.iso-filled-sec { margin-top: 40px; }
.iso-done { padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--good); border: 1px solid var(--good); }
.iso-sure { color: var(--ink2); font-size: 0.9rem; }

/* Guild Schedule */
.sched-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.sched-side { order: 2; }
.conv { position: sticky; top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(21, 14, 38, 0.72); box-shadow: 0 0 60px -20px var(--glow); }
.conv h2 { font-size: 1.7rem; margin: 0 0 12px; }
.conv h3 { margin: 22px 0 8px; font: 400 1.25rem/1.1 "Instrument Serif", Georgia, serif; color: var(--accent); }
.conv-now { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.conv-now span { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
.conv-now b { display: block; margin-top: 2px; font-size: 0.98rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.conv-out { min-height: 2.6em; margin: 8px 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--ink2); }
.conv-out b { color: var(--ink); }
.conv-best { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.conv-best li { display: grid; gap: 1px; font-size: 0.92rem; }
.conv-best span { color: var(--ink2); font-size: 0.85rem; }
.sched-main { min-width: 0; }
.sched-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(15, 10, 28, 0.6); }
.sched { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 646px; font-size: 0.78rem; }
.sched .c-name { width: 118px; }
.sched .c-h { width: 22px; }
.sched th, .sched td { padding: 0; text-align: center; overflow: hidden; }
.sched .sn { position: sticky; left: 0; z-index: 2; padding: 0 4px; text-align: left; background: var(--deep); border-right: 1px solid var(--line); }
.sched .sh { padding: 6px 0 3px; font-size: 0.68rem; font-weight: 700; color: var(--ink2); border-bottom: 0; }
.sched .sl { padding: 0 0 5px; font-size: 0.56rem; font-weight: 500; line-height: 1.15; color: var(--ink2); border-bottom: 1px solid var(--line); }
.sched .sl.sh > span { display: block; height: 0.7rem; }
.sched .sl.dnext, .sched .sl.dprev { color: var(--accent); }
.sched .sn.sl { font-size: 0.7rem; padding-bottom: 4px; }
.sched.no-local thead tr:nth-child(2) th { visibility: hidden; height: 0; padding: 0; font-size: 0; border: 0; line-height: 0; }
.sched.no-local thead tr:nth-child(1) th { border-bottom: 1px solid var(--line); }
.sched .reset { box-shadow: inset 2px 0 0 var(--accent-strong); }
.sched th.now, .sched td.now { background-image: linear-gradient(rgba(167, 139, 250, 0.14), rgba(167, 139, 250, 0.14)); }
.sched tbody th.sn { padding: 2px 4px; }
.sname { display: flex; align-items: center; gap: 0; }
.sname-in { width: 100%; min-width: 0; padding: 4px 5px; font-size: 0.85rem; border: 1px solid transparent; background: transparent; border-radius: 4px; }
.sname-in:hover { border-color: var(--line); }
.sname-in:focus { background: var(--void); }
.sname-in::placeholder { color: var(--ink2); opacity: 0.5; }
.sclear { flex: 0 0 auto; width: auto; min-width: 22px; height: 24px; padding: 0 3px; font-size: 1rem; }
.sclear[hidden] { display: none; }
.sclear.armed { color: var(--warn); font-size: 0.7rem; font-weight: 700; }
.sched td.sc { padding: 2px 1px; border-bottom: 1px solid rgba(42, 31, 69, 0.55); }
.cell { display: block; width: 100%; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--void); cursor: pointer; user-select: none; -webkit-user-select: none; }
.cell:hover { border-color: var(--accent); }
.cell.on { background: var(--accent-strong); border-color: var(--accent); }
.cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sched .sf { height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); border-top: 1px solid var(--line); }
.sched tfoot th.sn { border-top: 1px solid var(--line); color: var(--ink2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.conv-check { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.7rem; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.conv-check input { width: auto; margin: 0; }
@media (max-width: 860px) {
  .sched-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sched-side { order: 0; }
  .conv { position: static; }
}
