/* ============================================================
   EarthMC Toolkit — theme + layout
   Light/dark handled entirely by CSS custom properties on :root
   ============================================================ */

:root {
  --bg:            #151a24;
  --bg-elev:       #1e2532;
  --bg-elev-2:     #27303f;
  --border:        #374254;
  --border-soft:   #2b3444;
  --text:          #eef2f8;
  --text-dim:      #a4b0c0;
  --text-faint:    #778394;

  --accent:        #ffc53d;   /* warm gold */
  --accent-soft:   rgba(255,197,61,.15);
  --accent-text:   #1e1503;

  --green:         #4ecb71;
  --green-soft:    rgba(78,203,113,.17);
  --red:           #ff7a70;
  --red-soft:      rgba(255,122,112,.17);
  --blue:          #6cb6ff;

  --shadow:        0 10px 32px rgba(0,0,0,.38);
  --radius:        18px;
  --radius-sm:     12px;

  --map-grid:      rgba(255,255,255,.20);
  --map-grid-bold: rgba(255,255,255,.34);
  --map-label:     #ffffff;
  --map-label-hl:  rgba(0,0,0,.85);
  --map-wild:      rgba(63,185,80,.13);
  --map-sel:       rgba(240,180,41,.28);
  --map-sel-line:  #f0b429;
  --tile-filter:   none;
}

:root[data-theme="light"] {
  --bg:            #faf7f2;
  --bg-elev:       #ffffff;
  --bg-elev-2:     #f3efe6;
  --border:        #e4ddd0;
  --border-soft:   #eee9de;
  --text:          #23282f;
  --text-dim:      #5d6672;
  --text-faint:    #8b939e;

  --accent:        #d99400;
  --accent-soft:   rgba(217,148,0,.13);
  --accent-text:   #ffffff;

  --green:         #1f9d49;
  --green-soft:    rgba(31,157,73,.15);
  --red:           #e0524a;
  --red-soft:      rgba(224,82,74,.13);
  --blue:          #2b7fd4;

  --shadow:        0 8px 26px rgba(60,50,30,.10);

  --map-grid:      rgba(0,0,0,.22);
  --map-grid-bold: rgba(0,0,0,.38);
  --map-label:     #10161d;
  --map-label-hl:  rgba(255,255,255,.9);
  --map-wild:      rgba(26,127,55,.14);
  --map-sel:       rgba(184,134,11,.26);
  --map-sel-line:  #8a6508;
  --tile-filter:   none;
}

/* ------------------------------ base ------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------ topbar ------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent); font-size: 20px;
}
.brand h1 { font-size: 18px; }
.brand-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--text-dim); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.server-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim); white-space: nowrap;
}
.server-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint); flex: none;
}
.server-pill.is-up .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.server-pill.is-down .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.btn-install {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); border: 0;
  font: 650 13px/1 inherit; white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.btn-install:hover { filter: brightness(1.08); }
.btn-install:active { transform: translateY(1px); }
.btn-install[hidden] { display: none; }

.btn-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px; cursor: pointer; font-size: 17px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn-icon:hover { background: var(--bg-elev-2); border-color: var(--accent); }
:root[data-theme="dark"]  .theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-dark  { display: none; }

/* ------------------------------ stats ------------------------------ */
.stats-strip {
  display: grid; gap: 12px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat-label { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { display: block; margin-top: 4px; font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums; }
/* pulsed by the live poller, but only when the number actually changed */
.stat-value.is-fresh { animation: statPop 1.1s ease; }
@keyframes statPop {
  0%   { color: var(--accent); transform: translateY(-2px); }
  100% { color: inherit; transform: none; }
}

/* ------------------------------ tabs ------------------------------ */
.tabs {
  display: flex; gap: 6px; margin-top: 22px; overflow-x: auto;
  padding-bottom: 2px; scrollbar-width: thin;
}
.tab {
  flex: none; padding: 10px 18px; border-radius: 10px 10px 0 0; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-bottom: 0;
  color: var(--text-dim); font: 600 14px/1 inherit; white-space: nowrap;
  transition: all .15s;
}
.tab:hover { color: var(--text); background: var(--bg-elev); }
.tab.is-active {
  background: var(--bg-elev); border-color: var(--border);
  color: var(--accent); box-shadow: inset 0 2px 0 var(--accent);
}
.tabs + main { border-top: 1px solid var(--border); padding-top: 4px; }

/* only the active tab's sections are shown */
main > .section[data-tab] { display: none; }
main > .section[data-tab].is-shown { display: block; }

/* ------------------------------ front page ------------------------------ */
.hero {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: center;
  padding: 34px; margin-bottom: 34px;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.hero-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase;
}
.hero-title { font-size: 30px; line-height: 1.18; margin-bottom: 12px; letter-spacing: -.02em; }
.hero-sub { margin: 0 0 22px; color: var(--text-dim); font-size: 15px; max-width: 56ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  padding: 11px 22px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); color: var(--accent-text);
  font: 650 14px/1 inherit; transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.08); }

.hero-art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--map-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%);
}
.hero-emoji { position: relative; font-size: 62px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }

.home-h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; }

.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature {
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
  padding: 20px; text-align: left; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font: inherit; transition: all .16s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-ico { font-size: 24px; }
.feature b { font-size: 15px; }
.feature span:last-child { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.home-note {
  margin-top: 22px; padding: 15px 18px; font-size: 13.5px; color: var(--text-dim);
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}
.home-note b { color: var(--accent); }

.card-wide { max-width: 620px; }
.coord-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.coord-grid > div { display: flex; flex-direction: column; gap: 4px; }

/* ------------------------------ sections ------------------------------ */
.section { margin-top: 42px; }
.section-head { margin-bottom: 16px; }
.section-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 21px; }
.section-sub { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; max-width: 78ch; }

.inline-num {
  width: 72px; padding: 3px 8px; margin: 0 2px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  font: inherit; font-variant-numeric: tabular-nums;
}

/* ------------------------------ cards ------------------------------ */
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
}
.card:focus-within { border-color: var(--accent); }
.card.flash { animation: flash .9s ease; }
@keyframes flash { 0%,100% { border-color: var(--border); } 30% { border-color: var(--accent); } }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card-ico { font-size: 17px; }

kbd {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 4px 6px; border-radius: 5px;
  background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text-faint);
}

.card label, .rng span { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }

.card input[type="number"], .map-search input {
  width: 100%; padding: 9px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-variant-numeric: tabular-nums;
}
.card input[type="number"]:focus, .map-search input:focus { border-color: var(--accent); outline: none; }

.coord-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coord-row > div { display: flex; flex-direction: column; gap: 4px; }

.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button {
  padding: 5px 11px; border-radius: 999px; cursor: pointer; font: 500 12.5px/1.4 inherit;
  background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .13s;
}
.presets button:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.result {
  display: block; margin-top: auto; padding: 12px 14px;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-dim); min-height: 52px;
}
.result strong { color: var(--accent); font-size: 17px; font-variant-numeric: tabular-nums; }
.result .sub { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-faint); }
.result.is-error { color: var(--red); border-color: var(--red); }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-copy, .btn-ghost {
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font: 600 13px/1 inherit; transition: all .14s; white-space: nowrap;
}
.btn-copy { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-text); }
.btn-copy:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.sm { padding: 6px 10px; font-size: 12px; }

/* ------------------------------ data tables ------------------------------ */
.field {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); font: inherit; min-width: 0;
}
.field:focus { border-color: var(--accent); outline: none; }
.field.narrow { flex: none; width: 175px; }

.table-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.table-toolbar .field:first-child { flex: 1 1 260px; }
.table-count { font-size: 13px; color: var(--text-dim); margin-left: auto; white-space: nowrap; }

.table-wrap {
  overflow-x: auto; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td {
  padding: 11px 14px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border-soft);
}
.data-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-elev-2); color: var(--text-dim);
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
}
.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]:hover { color: var(--accent); }
.data-table th[data-dir="asc"]::after  { content: ' ▲'; font-size: 9px; color: var(--accent); }
.data-table th[data-dir="desc"]::after { content: ' ▼'; font-size: 9px; color: var(--accent); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .link { font-weight: 600; }
.muted { color: var(--text-faint); }

.table-more { display: flex; justify-content: center; margin-top: 14px; }

.star {
  background: none; border: 0; cursor: pointer; padding: 0 4px 0 0;
  color: var(--border); font-size: 15px; line-height: 1; transition: color .14s, transform .14s;
}
.star:hover { color: var(--accent); transform: scale(1.2); }
.star.is-on { color: var(--accent); }

.swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 7px; vertical-align: middle; border: 1px solid rgba(0,0,0,.25);
}

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; margin-right: 4px;
  font-size: 11px; font-weight: 600;
  background: var(--bg-elev-2); color: var(--text-dim); border: 1px solid var(--border);
}
.tag.ok   { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag.bad  { background: var(--red-soft);   color: var(--red);   border-color: transparent; }
.tag.warn { background: var(--accent-soft);color: var(--accent);border-color: transparent; }
.tag.cap  { background: var(--accent-soft);color: var(--accent);border-color: var(--accent); }

/* claim usage — how full a town is against its chunk limit */
.use { font-weight: 700; font-variant-numeric: tabular-nums; }
.use-ok   { color: var(--text-dim); }
.use-warn { color: var(--accent); }
.use-bad  { color: var(--red); }

/* ------------------------------ scout ------------------------------ */
.scan-note { margin: 14px 0 10px; font-size: 13px; color: var(--text-dim); }
.scan-note.dim { color: var(--text-faint); font-size: 12px; margin-bottom: 0; }

.find-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.find-card {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font: inherit;
  transition: all .15s;
}
.find-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.find-card b { font-size: 19px; color: var(--accent); font-variant-numeric: tabular-nums; }
.fc-chunks { font-size: 12.5px; font-weight: 600; }
.fc-coord  { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.fc-near   { font-size: 11.5px; color: var(--text-faint); }

.rng.inline { flex-direction: row; align-items: center; gap: 10px; min-width: 230px; }
.rng.inline input { width: 130px; }
.risk { color: var(--red); font-size: 15px; }

/* ------------------------------ leaderboards ------------------------------ */
/* ---------------------------- watchlist --------------------------- */
.fav-list li { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fav-open {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text);
  font: 600 13.5px/1.4 inherit; text-align: left;
}
.fav-open:hover { color: var(--accent); }
.fav-bits { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fav-meta { font-size: 12px; color: var(--text-faint); }
.fav-note { font-size: 11.5px; color: var(--text-faint); justify-content: center; }

/* ------------------------ install guide --------------------------- */
.install-guide { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ig-card {
  position: relative;
  padding: 17px 19px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.ig-card.is-you { border-color: var(--accent); background: var(--accent-soft); }
.ig-you {
  position: absolute; top: -9px; right: 14px;
  padding: 2px 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: 700 10.5px/1.6 inherit; text-transform: uppercase; letter-spacing: .05em;
}
.ig-card h4 { font-size: 14.5px; margin-bottom: 5px; }
.ig-note { font-size: 12px; color: var(--text-faint); margin-bottom: 9px; }
.ig-card ol { margin: 0; padding-left: 19px; display: flex; flex-direction: column; gap: 6px; }
.ig-card li { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.ig-card li b { color: var(--text); }
.ig-done {
  margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600;
}

/* ------------------------- install nudge -------------------------- */
.install-sheet {
  position: fixed; z-index: 1000; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--bg-elev); border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}
.install-sheet[hidden] { display: none; }
.install-sheet img { border-radius: 10px; flex: none; }
.is-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.is-text b { font-size: 13.5px; }
.is-text span { font-size: 11.5px; color: var(--text-dim); }
.install-sheet .btn-primary { margin-left: auto; flex: none; }

/* --------------------------- update bar --------------------------- */
.update-bar {
  position: fixed; z-index: 1000; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--accent);
  box-shadow: var(--shadow); font-size: 13px; max-width: calc(100% - 24px);
}
.update-bar[hidden] { display: none; }
.btn-primary.sm, .btn-ghost.sm { padding: 5px 12px; font-size: 12.5px; }

/* --------------------- front page live strip ---------------------- */
.live-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.live-card {
  display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  padding: 15px 17px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border); color: inherit;
  font: inherit; transition: border-color .15s, transform .15s;
}
.live-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.live-card.is-hot { border-color: var(--accent); background: var(--accent-soft); }
.lc-label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.live-card b { font-size: 17px; line-height: 1.25; }
.lc-sub { font-size: 12px; color: var(--text-dim); }

/* ---------------------- search everything ------------------------- */
.omni-box {
  position: relative; width: min(620px, 100%); margin-top: -12vh;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.omni-input {
  width: 100%; padding: 17px 20px; border: 0; outline: none;
  background: transparent; color: var(--text); font: 500 16px/1.2 inherit;
  border-bottom: 1px solid var(--border);
}
.omni-results { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.omni-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px;
}
.omni-row.is-on { background: var(--accent-soft); }
.omni-row:hover { background: var(--bg-elev-2); }
.omni-ico { flex: none; font-size: 15px; }
.omni-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni-meta { margin-left: auto; flex: none; color: var(--text-faint); font-size: 11.5px; }
.omni-hint { padding: 16px 14px; color: var(--text-faint); font-size: 13px; text-align: center; }
.omni-foot {
  display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--border);
  background: var(--bg-elev-2); color: var(--text-faint); font-size: 11.5px;
}
.omni-foot kbd { margin-right: 3px; }

/* unread dot on the News tab */
.tab.has-unread { position: relative; }
.tab.has-unread::after {
  content: ''; position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ------------------------------ news ------------------------------ */
.news-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.news-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card.is-flat { cursor: default; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.news-ago { color: var(--text-dim); }
.news-by { margin-left: auto; }
.news-card h3 { font-size: 16.5px; line-height: 1.3; }
.news-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.news-more { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 650; color: var(--accent); }

.board-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.board-grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.board li.is-clickable { cursor: pointer; border-radius: 6px; transition: background .14s; }
.board li.is-clickable:hover { background: var(--accent-soft); }
.board {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.board h4 { font-size: 13.5px; margin-bottom: 10px; }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.board li {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border-soft);
  counter-increment: r;
}
.board li:last-child { border-bottom: 0; }
.board li::before {
  content: counter(r); flex: none; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; margin-right: 4px;
  background: var(--bg-elev-2); color: var(--text-faint); font-size: 10.5px; font-weight: 700;
}
.board li:nth-child(1)::before { background: var(--accent); color: var(--accent-text); }
.board li:nth-child(2)::before,
.board li:nth-child(3)::before { background: var(--accent-soft); color: var(--accent); }
.board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.board li b { font-variant-numeric: tabular-nums; color: var(--accent); }

/* ------------------------------ players ------------------------------ */
.lookup-row { display: flex; gap: 10px; }
.lookup-row .field { flex: 1; }

.player-result:empty { display: none; }
.player-result { margin-top: 6px; display: flex; flex-direction: column; gap: 14px; }

.me-card { display: flex; align-items: center; gap: 14px; }
.me-card img { border-radius: 10px; image-rendering: pixelated; background: var(--bg-elev-2); }
.me-card b { display: block; font-size: 16px; }
.me-card span { display: block; font-size: 13px; color: var(--text-dim); margin-top: 3px; }

.pill-count {
  display: inline-block; padding: 2px 10px; border-radius: 999px; margin-left: 6px;
  background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700;
}

/* the clickable "3" in an Online column */
.online-count {
  padding: 2px 9px; border-radius: 999px; cursor: pointer;
  background: var(--green-soft); color: var(--green); border: 0;
  font: 650 12.5px/1.5 inherit; font-variant-numeric: tabular-nums;
  transition: filter .14s;
}
.online-count:hover { filter: brightness(1.15); }

/* who's-online popup */
.modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: 78vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.modal-box.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 16px; }
.btn-icon.sm { width: 30px; height: 30px; font-size: 13px; }

/* town / nation card */
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.detail-cols { display: grid; gap: 0 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.detail-board {
  margin-top: 12px; padding: 10px 13px; border-radius: var(--radius-sm);
  background: var(--bg-elev-2); color: var(--text-dim); font-size: 13px; font-style: italic;
}
.detail-h4 { margin-top: 18px; margin-bottom: 8px; font-size: 13px; color: var(--text-dim); }
.detail-actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-chip {
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
  background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text);
  font: 600 12px/1.5 inherit;
  transition: border-color .14s, color .14s;
}
.ref-chip:hover { border-color: var(--accent); color: var(--accent); }

.data-table tbody tr { cursor: pointer; }

/* vote party closing in */
.stat-card.is-close {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.stat-card.is-close .stat-value { color: var(--accent); }

.online-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.online-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  font: 500 12.5px/1 inherit; transition: all .14s;
}
.online-chip:hover { border-color: var(--accent); color: var(--accent); }
.online-chip img { border-radius: 50%; image-rendering: pixelated; }

.empty {
  margin: 0; padding: 18px; text-align: center; font-size: 13.5px; color: var(--text-faint);
  background: var(--bg-elev-2); border-radius: var(--radius-sm);
}

/* ------------------------------ server page ------------------------------ */
.server-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.big-stat { align-items: flex-start; gap: 6px; }
.bs-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.bs-value { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bs-sub { font-size: 12.5px; color: var(--text-faint); }
.bs-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--bg-elev-2); overflow: hidden; }
.bs-bar > div { height: 100%; width: 0; background: var(--green); transition: width .4s ease; }

/* ------------------------------ favourites ------------------------------ */
.fav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fav-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 13px; font-size: 13.5px;
  background: var(--bg-elev-2); border-radius: var(--radius-sm);
}

/* ------------------------------ settings ------------------------------ */
.settings-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.set-row:last-of-type { border-bottom: 0; }
.set-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row b { font-size: 14px; font-weight: 600; }
.set-row span { font-size: 12.5px; color: var(--text-dim); }

.set-hint { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.set-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }

/* accent picker — each button carries its own colour in --sw.
   Deliberately not called .swatch: that already means "nation colour dot"
   in the nations table. */
.swatches { display: flex; gap: 8px; flex: none; }
.accent-swatch {
  width: 26px; height: 26px; flex: none; padding: 0; cursor: pointer;
  border-radius: 50%; background: var(--sw, var(--accent));
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border) inset;
  transition: transform .14s, box-shadow .14s;
}
.accent-swatch:hover { transform: scale(1.12); }
.accent-swatch.is-active {
  border-color: var(--bg-elev);
  box-shadow: 0 0 0 2px var(--sw, var(--accent));
}

.inline-num.wide { width: 130px; }
select.inline-num { cursor: pointer; }

/* segmented control */
.seg { display: flex; gap: 3px; padding: 3px; background: var(--bg-elev-2); border-radius: 9px; flex: none; }
.seg-btn {
  padding: 6px 13px; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text-dim); font: 600 12.5px/1 inherit; transition: all .14s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--accent); color: var(--accent-text); }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--bg-elev-2); border: 1px solid var(--border); transition: .18s;
}
.switch span::before {
  content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px;
  border-radius: 50%; background: var(--text-faint); transition: .18s;
}
.switch input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + span::before { transform: translateX(19px); background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.about-list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.about-list dt { color: var(--text-dim); }
.about-list dd { margin: 0; font-weight: 600; }
.about-list code { background: var(--bg-elev-2); padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 500; }

/* ------------------------------ cost reference ------------------------------ */
.cost-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cost-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cost-item b { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cost-item span { font-size: 13px; font-weight: 600; }
.cost-item i { font-size: 11.5px; color: var(--text-faint); font-style: normal; }

/* ------------------------------ history ------------------------------ */
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; font-size: 13.5px;
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.history li .h-time { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.history-empty { color: var(--text-faint); justify-content: center !important; }

/* ------------------------------ map ------------------------------ */
.map-shell {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

.map-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}

.map-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.search-results {
  position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0;
  list-style: none; margin: 0; padding: 5px; max-height: 300px; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.search-results li {
  padding: 8px 11px; border-radius: 7px; cursor: pointer; font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.search-results li:hover, .search-results li.is-active { background: var(--accent-soft); color: var(--accent); }
.search-results .sr-meta { font-size: 11.5px; color: var(--text-faint); }

.map-modes { display: flex; gap: 4px; padding: 4px; background: var(--bg-elev-2); border-radius: 10px; }
.mode-btn {
  padding: 7px 14px; border-radius: 7px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-dim); font: 600 13px/1 inherit; transition: all .14s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.is-active { background: var(--accent); color: var(--accent-text); }

.map-body { display: grid; grid-template-columns: 218px 1fr; }

.map-filters {
  padding: 16px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 9px;
  background: var(--bg-elev); overflow-y: auto; max-height: 720px;
}
.map-filters h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-faint); margin-top: 6px;
}
.map-filters h4:first-child { margin-top: 0; }

.chk { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: none; }

.rng { display: flex; flex-direction: column; gap: 6px; }
.rng input { width: 100%; accent-color: var(--accent); cursor: pointer; }
.rng b { color: var(--accent); }

.filter-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }

/* live player markers */
.live-player { display: flex; align-items: center; gap: 5px; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.lp-dot {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--green); border: 1.5px solid rgba(0,0,0,.55);
}
.lp-name {
  font: 700 11px/1 inherit; color: var(--map-label);
  text-shadow: 0 0 3px var(--map-label-hl), 0 0 3px var(--map-label-hl);
}
.live-player.is-tracked .lp-dot {
  background: var(--accent); width: 13px; height: 13px;
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: lpPulse 1.6s ease-in-out infinite;
}
.live-player.is-tracked .lp-name { color: var(--accent); font-size: 12.5px; }
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hist-bar {
  position: absolute; z-index: 500; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 13px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  border: 1px solid var(--accent); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text); max-width: calc(100% - 20px);
}
.hist-bar[hidden] { display: none; }
.hist-bar select { padding: 4px 8px; font-size: 12.5px; }
.hist-note { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.track-bar {
  position: absolute; z-index: 500; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--accent); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text); max-width: calc(100% - 20px);
}
.track-bar[hidden] { display: none; }
.tb-label { color: var(--text-faint); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.tb-sep { color: var(--text-faint); }
.track-bar b { color: var(--accent); }

.map-canvas-wrap { position: relative; }
/* The EarthMC world is 131072 × 65536 blocks — exactly 2:1. Giving the map
   that same ratio means "fit the world" lands flush on all four edges: no
   dead space around it, and nothing cropped off. The ratio lives on #map
   (not the wrapper) because a stretched grid item with only absolutely
   positioned children collapses to zero height. */
#map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 400px;
  background: var(--bg-elev-2);
  cursor: grab;
}
/* Select mode owns the gesture: without touch-action the browser scrolls the
   page on a phone instead of letting us drag out a selection box. */
#map.mode-select {
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#map.is-dragging { cursor: grabbing; }

/* neutralise Leaflet's default light chrome */
.leaflet-container { background: var(--bg-elev-2); font: inherit; }
.leaflet-control-zoom a {
  background: var(--bg-elev) !important; color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-elev-2) !important; }
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent) !important;
  color: var(--text-faint) !important; font-size: 10.5px !important;
}
.leaflet-control-attribution a { color: var(--text-dim) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-elev) !important; color: var(--text) !important;
  box-shadow: var(--shadow) !important;
}
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; }
.leaflet-popup-content h5 { margin: 0 0 6px; font-size: 14.5px; color: var(--accent); }
.leaflet-popup-content dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.leaflet-popup-content dt { color: var(--text-dim); }
.leaflet-popup-content dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.map-loading {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(3px);
  transition: opacity .3s ease;
}
.map-loading.is-hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.map-loading p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.progress { width: 210px; height: 5px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }

.map-readout {
  position: absolute; z-index: 15; left: 12px; bottom: 12px;
  padding: 10px 13px; min-width: 190px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-size: 12.5px;
  pointer-events: none;
}
.ro-row { display: flex; justify-content: space-between; gap: 14px; }
.ro-row span { color: var(--text-dim); }
.ro-row b { font-variant-numeric: tabular-nums; }

/* town name labels drawn over the map */
.town-label {
  width: auto !important; height: auto !important;
  margin: 0 !important;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.town-label span {
  display: inline-block; transform: translate(-50%, -50%);
  font: 600 11.5px/1 system-ui, sans-serif;
  color: var(--map-label);
  text-shadow:
     1px  1px 2px var(--map-label-hl), -1px  1px 2px var(--map-label-hl),
     1px -1px 2px var(--map-label-hl), -1px -1px 2px var(--map-label-hl);
}

/* selection summary */
.sel-summary {
  display: grid; gap: 12px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding: 14px 16px; border-top: 1px solid var(--border); background: var(--bg-elev-2);
}
.sel-stat { display: flex; flex-direction: column; gap: 2px; }
.sel-stat span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.sel-stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.sel-stat.free b  { color: var(--green); }
.sel-stat.taken b { color: var(--red); }

/* ------------------------------ footer / toast ------------------------------ */
.footer { margin: 48px auto 32px; color: var(--text-faint); font-size: 12.5px; }
.footer p { margin: 5px 0; }
.footer code { background: var(--bg-elev); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.shortcuts kbd { margin: 0 1px; }

.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 26px;
  transform: translate(-50%, 20px);
  padding: 11px 20px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--accent); color: var(--text);
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 900px) {
  .map-body { grid-template-columns: 1fr; }
  .map-filters {
    border-right: 0; border-bottom: 1px solid var(--border);
    max-height: none;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: center;
  }
  .map-filters h4 { grid-column: 1 / -1; }
  .filter-foot { grid-column: 1 / -1; flex-direction: row; }

  /* The 2:1 ratio has to go on narrow screens. Combined with a min-height it
     sets a FLOOR on width — 420px tall at 2:1 forced the map 840px wide, so
     on a phone half of it sat off-screen and unreachable. Size by height
     instead and let the width follow the viewport. */
  #map {
    aspect-ratio: auto;
    height: 62vh;
    min-height: 320px;
  }

  /* Centred shrink-to-fit bars go tall and narrow once there's no room —
     the history bar stacked to 192px, covering most of a phone's map. Span
     the full width instead so they wrap into two short rows. */
  .track-bar, .hist-bar {
    left: 8px; right: 8px;
    transform: none;
    max-width: none;
    justify-content: center;
    border-radius: 12px;
  }
  .hist-bar select { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-art { display: none; }
  .hero-title { font-size: 24px; }
  .coord-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brand-sub, .server-pill { display: none; }
  .stat-value { font-size: 20px; }
  .coord-row { grid-template-columns: 1fr; }
  .tab { padding: 9px 13px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
