
:root {
  color-scheme: dark;
  --bg: #181a17; --surface: #22241f; --raised: #292c25; --ink: #f3f3e9;
  --muted: #b5baaa; --line: #393d33; --accent: #b9df91; --accent-ink: #192211;
  --tint: #2b3625; --glass: #242720de; --hero: #252e21;
  --glow: #a3d97b45; --tree-top: #aad382; --tree-left: #659654; --tree-right: #46774b;
  --grass: #85a963; --earth-left: #615741; --earth-right: #444235;
  --rock-top: #a6a899; --rock-left: #676e5e; --rock-right: #50584c;
  --shadow: #0d100a55; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5ef; --surface: #fffdf8; --raised: #f2f3f3; --ink: #1d2831;
  --muted: #4e5d68; --line: #d9dfdf; --accent: #315f34; --accent-ink: #fff;
  --tint: #e6efdf; --glass: #fffcf2df; --hero: #eaf0e4;
  --glow: #b8d79a85; --tree-top: #aad382; --tree-left: #659654; --tree-right: #46774b;
  --grass: #85a963; --earth-left: #9e8872; --earth-right: #766a61;
  --rock-top: #c5cacf; --rock-left: #909ba7; --rock-right: #717d89;
  --shadow: #52473e25;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.25rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { color: inherit; font: inherit; cursor: pointer; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.top { position: sticky; top: 12px; z-index: 2; padding-block: 0; margin-top: 1.25rem; }
.bar { display: flex; align-items: center; gap: 1.125rem; min-height: 64px; padding: 0.5rem 0.8125rem; background: var(--glass); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 9px 30px var(--shadow); backdrop-filter: blur(20px) saturate(135%); }
.brand { display: inline-flex; align-items: center; gap: 0.5625rem; text-decoration: none; font: 400 clamp(1.05rem, 2.2vw, 1.4rem)/1.2 Error1155Pixel, var(--sans); letter-spacing: -.07em; margin-right: auto; white-space: nowrap; }
.mark { width: 33px; height: 33px; display: grid; place-items: center; color: var(--accent); background: var(--tint); border-radius: 11px; }
nav { display: flex; gap: 0.125rem; align-items: center; }
nav a, .nav-menu, .theme { display: inline-flex; align-items: center; gap: 0.4375rem; white-space: nowrap; text-decoration: none; padding: 0.5rem 0.6875rem; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 650; }
nav a:hover, nav a:focus-visible, .nav-menu:hover { background: var(--raised); color: var(--ink); }
.theme { background: var(--raised); color: var(--ink); padding-inline: 0.75rem; }
.theme:hover { outline: 1px solid var(--line); }
.theme .icon, .nav-menu .icon { width: 17px; height: 17px; }
.nav-menu { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; position: relative; isolation: isolate; overflow: hidden; margin: 1.75rem 0 0.9375rem; padding: 1.75rem 2.625rem; min-height: 235px; border: 1px solid var(--line); border-radius: 30px; background: var(--hero); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 79% 58%, var(--glow), transparent 43%); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5625rem; color: var(--accent); text-transform: uppercase; font-size: .7rem; letter-spacing: .15em; font-weight: 760; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3.15rem, 8vw, 5.3rem); line-height: .98; letter-spacing: -.073em; margin: 0.5rem 0 0.75rem; }
.hero p { color: var(--muted); font-size: 1.035rem; max-width: 35ch; }
.art { width: 100%; height: 193px; overflow: visible; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9375rem; }
.entry { min-height: 108px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8125rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; padding: 1.125rem; }
.entry:hover, .road:hover { border-color: var(--accent); }
.entry h2 { font-size: 1.16rem; letter-spacing: -.035em; }
.entry p, .road p { color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 0.1875rem; }
.tile-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 13px; color: var(--accent); background: var(--tint); }
.arrow { color: var(--accent); width: 18px; height: 18px; }
.join { margin-top: 0.9375rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.25rem; padding: 1.4375rem 1.5rem; border-radius: 23px; background: var(--surface); border: 1px solid var(--line); }
.join h2, .road h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.04em; }
.join p { font-size: .88rem; color: var(--muted); margin-top: 0.3125rem; }
.address-wrap { display: grid; gap: 0.4375rem; }
.address-label { font-size: .73rem; font-weight: 680; color: var(--muted); }
.support { color: var(--accent); font-weight: 660; text-underline-offset: 2px; }
#copy-status { font-size: .75rem; color: var(--accent); }
#copy-status:empty { display: none; }
footer { display: flex; flex-wrap: wrap; gap: 0.5625rem 1.125rem; justify-content: space-between; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); margin-top: 1.875rem; padding: 1.0625rem 0 1.5rem; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .bar { position: relative; gap: 0.4375rem; }
  .nav-menu { display: inline-flex; }
  nav { display: none; position: absolute; inset: calc(100% + 8px) 0 auto; padding: 0.4375rem; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 24px var(--shadow); }
  nav[data-open] { display: flex; }
  .hero { padding: 1.5rem; }
  .join { gap: 0.875rem; }
}
@media (max-width: 575px) {
  .hero { grid-template-columns: 1fr; min-height: 170px; margin-top: 1rem; padding: 1.3125rem 1.1875rem; }
  .hero p { max-width: 24ch; font-size: .94rem; }
  .hero h1 { font-size: clamp(2.9rem, 10.5vw, 3.75rem); }
  .art { display: none; }
  .grid { grid-template-columns: 1fr; gap: 0.5625rem; }
  .entry { min-height: 75px; padding: 0.75rem; }
  .join { grid-template-columns: 1fr; margin-top: 0.625rem; padding: 1rem; }
  .nav-menu, .theme { padding-inline: 0.5625rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@font-face { font-family: Error1155Pixel; src: url("Silkscreen.ttf") format("truetype"); font-weight: 400; font-display: swap; }
h1 { font: 400 clamp(2.2rem, 6.3vw, 4.7rem)/1.02 Error1155Pixel, var(--sans); letter-spacing: -.08em; }
nav a[aria-current="page"] { color: var(--accent); background: var(--tint); }
.discord-button { display: inline-flex; align-items: center; gap: 0.4375rem; border-radius: 12px; padding: 0.5rem 0.625rem; color: var(--accent); text-decoration: none; font-size: .875rem; font-weight: 700; }
.discord-button:hover { background: var(--tint); }
.discord-button .icon { width: 17px; height: 17px; }
.address { display: flex; align-items: center; justify-content: space-between; gap: 0.5625rem; position: relative; width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 0.625rem; background: var(--raised); text-align: left; }
.address:hover, .address:focus-visible { border-color: var(--accent); background: var(--tint); }
.address code { font-size: clamp(.73rem, 2vw, .92rem); overflow-wrap: anywhere; }
.address .icon { color: var(--accent); width: 17px; height: 17px; }
#copy-tip { position: absolute; z-index: 1; right: 8px; bottom: calc(100% + 6px); padding: 0.25rem 0.5rem; border-radius: 7px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; font-size: .75rem; font-weight: 700; opacity: 0; pointer-events: none; }
.address:hover #copy-tip, .address:focus-visible #copy-tip { opacity: 1; }
.portal-entries { margin-top: 0.9375rem; }
.portal-entries .entry { background: var(--tint); }
.tile-icon img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: 1.75rem 0 1rem; padding: clamp(1.125rem, 4vw, 2.375rem); border: 1px solid var(--line); border-radius: 26px; background: var(--hero); }
.page-title h1 { margin-block: 0.5625rem; font-size: clamp(1.65rem, 5.5vw, 3.4rem); overflow-wrap: anywhere; }
.page-title p, .panel p { color: var(--muted); }
.page-logo { flex: none; width: clamp(46px, 10vw, 96px); border-radius: 20%; }
.roadmap-logo { display: grid; place-items: center; aspect-ratio: 1; color: var(--accent); background: var(--tint); }
.roadmap-logo .icon { width: 53%; height: 53%; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(0.9375rem, 3vw, 1.5625rem); border-radius: 20px; margin-top: 0.75rem; }
.panel h2 { margin-bottom: 0.3125rem; font-size: 1.25rem; letter-spacing: -.025em; }
.demo-note, #settings-status { color: var(--muted); font-size: .875rem; margin-top: 0.75rem; }
#settings-status:empty { display: none; }
.road-status { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0.625rem; margin-top: 0.75rem; }
.road-status section { padding: 0.75rem; background: var(--tint); border-radius: 10px; }
.road-status h3 { color: var(--accent); font-size: .9rem; }
.road-status p { font-size: .85rem; }
.footer-links { display: flex; gap: 0.5625rem 0.9375rem; flex-wrap: wrap; }
.footer-links a { text-underline-offset: 3px; }
form { margin-top: 0.75rem; }
form label { display: block; font-size: .8rem; font-weight: 690; margin-bottom: 0.25rem; }
form input { width: 100%; min-width: 0; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 0.5rem 0.625rem; font: inherit; }
form input:focus-visible { outline: 2px solid var(--accent); }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: 0.5rem; }
.form-row > div, #discord-url { flex: 1 1 200px; }
.action { border: 1px solid transparent; padding: 0.5rem 0.6875rem; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.action.secondary { background: var(--raised); color: var(--ink); border-color: var(--line); }
#social-list { padding: 0; list-style: none; }
#social-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4375rem; padding: 0.4375rem 0; border-bottom: 1px solid var(--line); }
#social-list li > span { margin-right: auto; overflow-wrap: anywhere; }
@media (max-width: 575px) {
  .hero h1 { font-size: clamp(2rem, 8.7vw, 3.2rem); }
  .page-title { margin-top: 1rem; }
  .discord-button { padding: 0.5rem; }
  .discord-button span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .road-status { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .bar { padding-inline: 0.5rem; gap: 0.3125rem; }
  .nav-menu span, .theme span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .brand { gap: 0.375rem; }
}
@media (hover: none) {
  #copy-tip { position: static; opacity: 1; padding: 0; color: var(--muted); background: transparent; font-weight: 500; white-space: normal; text-align: right; }
  .address .icon { display: none; }
}

[hidden] { display: none !important; }
.bar { gap: 0.5rem; }
.mark img, .tile-icon img { display: block; object-fit: contain; border-radius: 9px; }
.tile-icon img { width: 42px; height: 42px; }
.social-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.1875rem; }
.social-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); background: var(--tint); border-radius: 10px; text-decoration: none; }
.social-icon:hover, .social-icon:focus-visible { background: var(--raised); }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.social-tip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 7px); z-index: 3; padding: 0.25rem 0.5rem; border-radius: 7px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; font-size: .75rem; font-weight: 700; opacity: 0; pointer-events: none; }
.social-icon:hover .social-tip, .social-icon:focus-visible .social-tip { opacity: 1; }
.latest-update { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9375rem; }
.latest-update img { border-radius: 12px; }
.latest-update .action { text-decoration: none; white-space: nowrap; }
.filter-panel { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 0.9375rem; }
.filter-panel > div { flex: 1 1 145px; }
.filter-panel label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 0.25rem; }
.filter-panel input, .filter-panel select, form textarea { width: 100%; min-width: 0; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 0.5rem 0.5625rem; font: inherit; }
.filter-panel input:focus-visible, .filter-panel select:focus-visible, form textarea:focus-visible { outline: 2px solid var(--accent); }
.filter-panel [role="status"] { flex-basis: 100%; font-size: .82rem; }
[data-filter-list] > .panel { margin-top: 0; }
.entry-date, .road-status time, #changelog time { color: var(--muted); font-size: .75rem; }
#changelog p { white-space: pre-wrap; }
#update-form input, #update-form textarea { margin-bottom: 0.625rem; }
#update-form textarea { display: block; resize: vertical; }
@media (min-width: 901px) {
  .social-nav { max-width: 147px; }
}
@media (max-width: 900px) {
  .bar { position: relative; flex-wrap: wrap; }
  .nav-menu { display: inline-flex; }
  nav { display: none; position: absolute; inset: calc(100% + 8px) 0 auto; padding: 0.4375rem; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 24px var(--shadow); z-index: 2; }
  nav[data-open] { display: flex; }
  .social-nav:has(.social-icon:nth-child(3)) { flex-basis: 100%; order: 5; }
}
@media (max-width: 575px) {
  .latest-update { grid-template-columns: auto 1fr; gap: 0.625rem; }
  .latest-update img { width: 42px; height: 42px; }
  .latest-update .action { grid-column: 2; justify-self: start; white-space: normal; }
  .bar:has(.social-icon:nth-child(2)) .social-nav { flex-basis: 100%; order: 5; }
}

@font-face { font-family: PortalIconsBrands; src: url("fa-brands-400.woff2") format("woff2"); font-display: block; }
@font-face { font-family: PortalIconsRegular; src: url("fa-regular-400.woff2") format("woff2"); font-display: block; }
@font-face { font-family: PortalIconsSolid; src: url("fa-solid-900.woff2") format("woff2"); font-display: block; }
.icon-glyph { display: block; font-size: 1rem; line-height: 1; font-style: normal; font-weight: 400; }
.icon-glyph-brands { font-family: PortalIconsBrands; }
.icon-glyph-regular { font-family: PortalIconsRegular; }
.icon-glyph-solid { font-family: PortalIconsSolid; }
.social-picker { margin: 0.625rem 0; }
.social-picker select { width: 100%; min-width: 0; padding: 0.5rem 0.625rem; border-radius: 9px; color: var(--ink); border: 1px solid var(--line); background: var(--raised); font: inherit; }
.social-picker select:focus-visible { outline: 2px solid var(--accent); }
.social-picker .social-icon { flex: none; width: 43px; height: 43px; }

.social-nav:empty { display: none; }
a[data-discord]:not([href]) { color: inherit; text-decoration: none; font-weight: inherit; }
.rule-list { padding: 0; list-style: none; }
.rule-card { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: center; }
.rule-card h2 { margin: 0; }
.rule-card p { grid-column: 2; }
.rule-number { display: grid; place-items: center; min-height: 2.25rem; border-radius: 9px; background: var(--tint); color: var(--accent); font-weight: 750; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 0.75rem; }
.mod-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3125rem; }
.mod-summary { color: var(--accent) !important; font-weight: 700; font-size: .82rem; }
.mod-download { margin-top: auto; align-self: flex-start; padding: 0.375rem 0.75rem; font-size: .85rem; text-decoration: none; }
.mod-download:hover { box-shadow: 0 0 0 2px var(--accent); }
.mod-card > h3 { margin: 0; font-size: 1rem; }
.mod-card:has(.mod-download) > p:has(+ .mod-download) { margin-bottom: 0.4375rem; }
.editor-list { display: grid; gap: 0.375rem; margin: 0.5rem 0 0.75rem; min-height: 1.6rem; }
.editor-row { padding: 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.editor-row-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.entry-label { flex: 1 1 6rem; overflow-wrap: anywhere; }
#social-list li > .drag-handle { margin-right: 0; }
.drag-handle { cursor: grab; user-select: none; align-self: stretch; display: grid; place-items: center; padding: 0 0.375rem; color: var(--accent); font-size: 1.25rem; touch-action: none; font-weight: 700; }
.drag-handle:active { cursor: grabbing; }
.dragging { opacity: .5; }
[data-sort-row], [data-sort-zone] { position: relative; }
[data-drop-position="inside"] { outline: 2px solid var(--accent); outline-offset: -2px; }
[data-drop-position="before"]::after, [data-drop-position="after"]::after {
  content: ""; position: absolute; z-index: 1; inset-inline: 0; height: 3px;
  pointer-events: none; border-radius: 3px; background: var(--accent);
}
[data-drop-position="before"]::after { top: 0; }
[data-drop-position="after"]::after { bottom: 0; }
button:disabled { opacity: .45; cursor: default; }
.editor-form { padding: 0.75rem; margin: 0.5rem 0; border-radius: 10px; background: var(--tint); }
.editor-form label { margin-bottom: 0.5rem; }
.editor-form input, .editor-form select, .editor-form textarea { margin-top: 0.25rem; }
.editor-form select { max-width: 100%; padding: 0.375rem; background: var(--raised); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.editor-form textarea { min-height: 4rem; resize: vertical; }
.editor-form .editor-check { display: flex; align-items: center; gap: 0.5rem; }
.editor-form input[type="checkbox"] { width: auto; margin: 0; }
.editor-form .action { margin-right: 0.4375rem; }
/* Roadmap board and compact demo administration */
.roadmap-page .page-title { padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(120deg, var(--hero), var(--surface)); margin-bottom: 0.75rem; }
.road-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; margin-bottom: 1rem; }
.road-metrics > div { display: grid; padding: 0.625rem 0.8125rem; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: .82rem; }
.road-metrics strong { color: var(--status-tone, var(--ink)); font-size: 1.5rem; line-height: 1.2; }
[data-tone="live"] { --status-tone: var(--accent); }
[data-tone="wip"] { --status-tone: #e7c281; }
[data-tone="planned"] { --status-tone: #c0ccff; }
[data-tone="review"] { --status-tone: #e8b2ce; }
:root[data-theme="light"] [data-tone="wip"] { --status-tone: #82551c; }
:root[data-theme="light"] [data-tone="planned"] { --status-tone: #42558b; }
:root[data-theme="light"] [data-tone="review"] { --status-tone: #794161; }
.road-workspace { display: grid; grid-template-columns: minmax(160px, .23fr) minmax(0, 1fr); gap: 1rem; }
.road-aside h2 { margin: 0 0 0.5rem; font-size: 1rem; }
#road-plugin-nav { display: grid; gap: 0.375rem; }
.road-plugin-choice { display: flex; justify-content: space-between; gap: 0.375rem; padding: 0.5rem 0.625rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: left; font-size: .84rem; overflow-wrap: anywhere; }
.road-plugin-choice[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); }
.road-plugin-choice small { color: var(--muted); }
.roadmap-page .filter-panel { padding: 0.75rem; gap: 0.5rem; }
.roadmap-page .filter-panel > div { flex-basis: 115px; }
.road-plugin { margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); }
.road-plugin-head { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--line); }
.road-plugin-head h2, .road-plugin-head p, .road-feature h4, .road-feature p { margin: 0; }
.road-plugin-head p, .road-feature p, .road-feature time, .road-empty { color: var(--muted); font-size: .84rem; }
.road-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.road-column { min-width: 0; padding: 0.6875rem; border-left: 1px solid var(--line); }
.road-column:nth-child(odd) { border-left: 0; }
.road-column:nth-child(n + 3) { border-top: 1px solid var(--line); }
.road-column h3 { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.5rem; color: var(--status-tone, var(--accent)); font: 700 .82rem/1.4 var(--sans); }
.road-column h3::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.road-column h3 small { margin-left: auto; color: var(--muted); }
.road-feature { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; background: var(--raised); overflow-wrap: anywhere; }
.road-feature + .road-feature { margin-top: 0.375rem; }
.road-feature h4 { font-size: .87rem; }
.mod-group { margin: 0.9375rem 0 1.5rem; }
.mod-group > h2 { font-size: 1.03rem; margin-bottom: 0.5rem; }
.admin-shell .page-title { margin-bottom: 1rem; }
.admin-fold { margin: 0.4375rem 0; padding: 0 0.8125rem; }
.admin-fold > summary { cursor: pointer; padding: 0.625rem 0; font-weight: 720; }
.admin-fold[open] { padding-bottom: 0.75rem; }
.admin-shell .action { padding: 0.3125rem 0.5rem; font-size: .83rem; }
.admin-shell #version-form input { max-width: 120px; }
.admin-shell #version-form .form-row { margin-top: 0.3125rem; }
.road-feature textarea[readonly], .road-plugin textarea[readonly] { width: 100%; min-width: 0; }
.feature-origin { display: block; color: var(--muted); margin-block: 0.1875rem; font-size: .8rem; }
.road-workspace > *, .road-plugin-nav-row { min-width: 0; }
.road-plugin-nav-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1875rem; }
.road-plugin-head { overflow-wrap: anywhere; }
.road-plugin-head > p { margin-top: 0.25rem; }
.road-aside { align-self: start; }
.roadmap-page .filter-panel { margin-top: 0; }
.road-edit-controls { margin-block: 0.75rem; }
.road-edit-status { font-size: .86rem; margin-bottom: 0.5rem; }
.road-edit-tools { margin-top: 0.625rem; padding-top: 0.625rem; border-top: 1px solid var(--line); }
.road-edit-tools > div:empty, .road-feedback:empty, .request-status:empty { display: none; }
.road-edit-tools > div + div:not(:empty) { margin-top: 0.5rem; }
.road-edit-tools > div > p { margin-bottom: 0.375rem; }
.road-edit-tools > div > p ~ button { margin-right: 0.375rem; }
.road-card-title, .road-card-actions { display: flex; align-items: center; gap: 0.375rem; }
.road-card-actions { flex-wrap: wrap; }
.road-card-actions .action { padding: 0.375rem 0.5625rem; font-size: .84rem; }
.road-plugin .road-card-actions { margin-top: 0.5rem; }
.road-card-actions > a, .idea-callout a { text-decoration: none; }
.road-card-title .drag-handle { flex: none; }
.road-visibility { display: block; font-size: .75rem; color: var(--accent); margin-top: 0.25rem; }
.road-command-detail { font-size: .82rem; margin-top: 0.375rem; }
.road-command-detail code { display: block; white-space: pre-wrap; }
.road-command-detail summary { cursor: pointer; }
.road-feedback { overflow-wrap: anywhere; margin-block: 0.75rem; }
.idea-callout { display: flex; justify-content: space-between; align-items: center; gap: 0.5625rem; flex-wrap: wrap; margin-block: 0.75rem; padding: 0.625rem 0.875rem; }
.request-panel { margin-top: 1.375rem; }
.request-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.request-panel form { max-width: 680px; }
.request-panel label { margin: 0 0 0.625rem; }
.request-panel input, .request-panel textarea, .request-panel select { display: block; margin-top: 0.25rem; }
.request-panel select { width: 100%; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 0.5rem 0.625rem; font: inherit; }
.request-panel textarea { resize: vertical; }
.request-note, .request-status { margin-top: 0.4375rem; font-size: .83rem; }
.request-message { margin: 0; overflow-wrap: anywhere; }
.request-message > p { margin-top: 0.5rem; }
.request-message h3 { font-size: 1rem; }
.request-message p { white-space: pre-wrap; }
.admin-shell .page-title .support { display: inline-block; margin-top: 0.5rem; }
@media (max-width: 760px) {
  .road-workspace { grid-template-columns: 1fr; }
  #road-plugin-nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@media (max-width: 540px) {
  .road-metrics { gap: 0.375rem; }
  .road-metrics > div { padding: 0.5rem; font-size: .72rem; }
  .road-columns, .request-fields { grid-template-columns: 1fr; }
  .road-column { border-left: 0; border-top: 1px solid var(--line); }
  .road-column:first-child { border-top: 0; }
  .road-card-actions .action, .request-panel .action { min-height: 44px; }
  .roadmap-page .drag-handle { min-width: 40px; min-height: 38px; }
  .road-plugin-choice { min-height: 44px; align-items: center; }
  .editor-form input, .editor-form textarea, .editor-form select, .request-panel input, .request-panel textarea,
  .request-panel select, .roadmap-page .filter-panel input, .roadmap-page .filter-panel select { font-size: 1rem; }
  .request-fields { gap: 0; }
  .roadmap-page .page-title { gap: 0.5rem; }
  .road-workspace { gap: 0.75rem; }
}

.mobile-road-actions { display: none; }
@media (max-width: 600px) {
  html { scroll-padding-top: 5.125rem; scroll-padding-bottom: 5.125rem; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 28px); }
  .top { top: 0; margin-top: 0.5rem; }
  .bar { min-height: 52px; border-radius: 16px; }
  .top .nav-menu span, .top .theme span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .top .nav-menu, .top .theme { min-height: 38px; min-width: 38px; justify-content: center; }
  .page-title { margin-top: 0.75rem; }
  .page-title .page-logo { height: auto; }
  .mobile-road-actions {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch;
    position: fixed; inset: auto 0 0; gap: 0.25rem; z-index: 5;
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    background: var(--glass); backdrop-filter: blur(18px); box-shadow: 0 -4px 22px var(--shadow);
  }
  .mobile-road-actions { display: none; }
  .road-edit-mode .mobile-road-actions { display: grid; }
  .mobile-road-actions .action { min-height: 46px; padding: 0.25rem; font-size: .75rem; overflow-wrap: anywhere; }
  .road-edit-mode .road-edit-controls { padding: 0.75rem; }
  .road-edit-mode .road-edit-controls h2 { font-size: 1rem; }
  .road-edit-mode .road-card-actions { gap: 0.3125rem; }
  .road-edit-mode .road-edit-controls .road-card-actions .action { padding-inline: 0.4375rem; }
  .road-edit-mode .roadmap-page .page-title p { font-size: .88rem; }
  .road-edit-mode .roadmap-page .page-title { padding-block: 0.75rem; }
}

@media (min-width: 761px) {
  .road-aside { position: sticky; top: 92px; max-height: calc(100dvh - 104px); overflow-y: auto; scrollbar-width: thin; }
}

.editor-form select { display: block; width: 100%; }
.editor-form :is(input, select, textarea), .request-panel :is(input, select, textarea) { font-weight: 400; }


.admin-sections { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; padding: 0; background: none; border: 0; box-shadow: none; }
.admin-sections a { min-height: 44px; justify-content: center; text-align: center; white-space: normal; background: var(--surface); border: 1px solid var(--line); }
.admin-sections a[aria-current="location"] { color: var(--accent); background: var(--tint); border-color: var(--accent); }
.admin-panel-title { margin: 1.125rem 0 0.5rem; font-size: 1.15rem; }
.admin-server-grid, .inbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; align-items: start; }
#request-inbox .filter-panel { margin: 0 0 0.75rem; }
.inbox-meta { display: flex; align-items: center; gap: 0.375rem 0.625rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: .8rem; color: var(--muted); }
.inbox-category { padding: 0.1875rem 0.4375rem; border-radius: 6px; background: var(--tint); color: var(--accent); }
.road-dialog { width: min(590px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(0.75rem, 3vw, 1.375rem); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overscroll-behavior: contain; }
.road-dialog::backdrop { background: #0009; }
.road-dialog h2 { font-size: 1.2rem; }
.road-dialog .editor-form { margin-bottom: 0; }
.road-dialog .editor-form :is(input, select, textarea) { font-size: 1rem; }
.road-dialog .action { min-height: 44px; }
html:has(.road-dialog[open]) { overflow: hidden; }
@media (max-width: 620px) {
  .admin-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-server-grid, .inbox-grid { grid-template-columns: 1fr; }
  #inbox-search, #inbox-category { font-size: 1rem; }
  .mod-download { min-height: 44px; display: inline-flex; align-items: center; }
}
.request-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.preserve-lines { white-space: pre-line; }
.admin-extra { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.625rem 0 1.125rem; }
.admin-login { max-width: 620px; }
.admin-login details { margin-top: 0.8125rem; }
.admin-login input { display: block; margin: 0.3125rem 0 0.625rem; }
.wiki-original-index { margin-top: 1.25rem; }
.wiki-original-index .entries { margin-top: 0.9375rem; }


/* Compact feature cards and selection in the roadmap editor. */
.road-feature { padding: 0.5rem 0.5625rem; }
.road-feature > p { font-size: .82rem; line-height: 1.4; margin-top: 0.25rem; }
.road-feature h4 { font-size: .84rem; line-height: 1.35; }
.road-feature-meta { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.625rem; row-gap: 0.125rem; margin-top: 0.3125rem; }
.road-feature-meta > :is(time, span, small) { margin: 0; font-size: .72rem; line-height: 1.35; }
.road-feature .road-card-actions { gap: 0.25rem; margin-top: 0.375rem; }
.road-feature .road-card-actions .action { padding: 0.1875rem 0.4375rem; min-height: 30px; font-size: .76rem; }
.road-feature-select { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; min-height: 30px; cursor: pointer; }
.road-feature-select input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.road-feature.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.road-selection { border: 1px solid var(--line); border-radius: 10px; padding: 0.5625rem 0.625rem; background: var(--raised); margin-top: 0.625rem; }
.road-selection-count { margin: 0 0 0.375rem; font-weight: 700; font-size: .85rem; }
.road-selection-note { color: var(--muted); font-size: .75rem; line-height: 1.4; margin: 0.375rem 0 0; }
.road-selection .action { min-height: 32px; padding: 0.25rem 0.5rem; font-size: .78rem; }
@media (hover: none) and (pointer: coarse) {
  .road-feature-select { min-width: 38px; min-height: 44px; }
  .road-feature .road-card-actions .action, .road-selection .action { min-height: 44px; padding: 0.375rem 0.5625rem; }
}

.road-feature-more { font-size: .76rem; }
.road-feature-more > summary { display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; min-height: 30px; padding: 0.1875rem 0.5625rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.road-feature-more > summary::-webkit-details-marker { display: none; }
.road-feature-more[open] { flex-basis: 100%; }
.road-feature-more[open] > summary { width: fit-content; margin-bottom: 0.25rem; }
.road-feature-more > button + button { margin-left: 0.25rem; }
@media (hover: none) and (pointer: coarse) {
  .road-feature-more > summary { min-width: 44px; min-height: 44px; padding: 0.375rem 0.5625rem; }
}

/* Shared spacing and admin workspace. */
.shell { width: min(1200px, calc(100% - 48px)); }
.top { margin-top: 1rem; }
.bar { border-radius: 18px; min-height: 62px; padding: 0.5rem 0.75rem; }
.page-title, .roadmap-page .page-title {
  margin: 1.5rem 0 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--hero), var(--surface));
}
.page-title > div { min-width: 0; }
.page-title h1 { font-size: clamp(1.7rem, 3.5vw, 2.65rem); line-height: 1.15; margin: 0.5rem 0; }
.page-title p { font-size: .94rem; line-height: 1.5; max-width: 65ch; }
.page-logo { width: 76px; height: 76px; object-fit: contain; }
.panel { border-radius: 16px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 0.4375rem; min-height: 38px; padding: 0.5rem 0.75rem; font-size: .85rem; line-height: 1.3; text-decoration: none; }
.action:hover { filter: brightness(1.07); }
.action:disabled { filter: none; cursor: default; }
.action.secondary:hover:not(:disabled) { border-color: var(--muted); background: var(--tint); }
.admin-page-title { min-height: 142px; }
.admin-page-title .page-logo { width: 68px; height: 68px; }
.admin-shell .admin-page-title { margin-bottom: 1.25rem; }
.admin-shell .admin-page-title h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.admin-sections { gap: 0.5rem; margin: 0; }
.admin-sections a { min-height: 48px; padding: 0.75rem; border-radius: 12px; font-size: .86rem; }
.admin-sections a[aria-current="location"] { box-shadow: inset 0 0 0 1px var(--accent); border-color: transparent; }
.admin-extra { align-items: center; gap: 0.5rem; margin: 0.875rem 0 1.5rem; }
.admin-extra .action { text-decoration: none; background: transparent; font-size: .8rem; }
.admin-shell .action { min-height: 36px; padding: 0.4375rem 0.625rem; }
.admin-panel-title { margin: 0 0 0.875rem; font-size: 1.12rem; line-height: 1.35; }
.admin-content-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.125rem; }
.admin-shell [data-admin-panel] { padding-top: 0.125rem; }
.admin-fold { margin: 0; padding: 0 1rem; border-radius: 14px; }
.admin-fold > summary { padding: 0.9375rem 0; font-size: .95rem; line-height: 1.35; }
.admin-fold > summary::marker { color: var(--accent); }
.admin-fold[open] { padding-bottom: 1rem; }
.admin-fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0.875rem; }
.admin-fold > p { font-size: .85rem; line-height: 1.55; }
#content-editor { display: grid; gap: 0.625rem; }
.admin-server-grid { gap: 1rem; }
.editor-list { margin: 0 0 0.875rem; gap: 0.5rem; }
.editor-row { padding: 0.625rem; border-radius: 10px; }
.editor-row-bar { gap: 0.4375rem; }
.editor-row-bar .entry-label { font-size: .86rem; line-height: 1.4; }
.editor-form { padding: 0.875rem; margin: 0.75rem 0 0; border: 1px solid var(--line); }
.editor-form label { margin-bottom: 0.75rem; font-size: .8rem; }
.editor-form :is(input, select, textarea) { margin-top: 0.3125rem; border-radius: 9px; }
.editor-form textarea { min-height: 88px; }
.editor-form .action { margin-top: 0.25rem; }
#social-form .form-row + .form-row { margin-top: 0.875rem; }
#social-list { margin: 0 0 1rem; }
#social-list:empty { margin: 0; }
#social-list li { padding: 0.625rem 0; gap: 0.5rem; }
#version-form .form-row { align-items: stretch; gap: 0.5rem; margin-top: 0.5rem; }
#version-form input { flex: 0 1 120px; }
#version-form .action { margin: 0; }
#settings-status:not(:empty), .road-feedback:not(:empty) { margin: 0.75rem 0; padding: 0.625rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); line-height: 1.5; }
#request-inbox .filter-panel { padding: 1rem; gap: 0.75rem; border-radius: 14px; }
.filter-panel label { font-size: .77rem; color: var(--muted); }
.filter-panel :is(input, select) { min-height: 40px; font-size: .9rem; }
.inbox-grid { gap: 0.875rem; }
.inbox-empty { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 0.5625rem; padding: 1.75rem 1.25rem; min-height: 200px; margin: 0; text-align: center; }
.inbox-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); background: var(--tint); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.1875rem; }
.inbox-empty-icon svg, .admin-tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inbox-empty h3 { font-size: 1rem; }
.inbox-empty p { max-width: 48ch; font-size: .87rem; line-height: 1.5; }
.request-message { padding: 1.125rem; }
.request-message h3 { margin-top: 0.8125rem; }
.request-message > small { display: block; margin-top: 0.25rem; color: var(--muted); }
.request-message > p { font-size: .9rem; line-height: 1.55; margin-top: 0.75rem; }
.request-message > .action { margin-top: 0.875rem; }
.road-edit-controls { display: grid; gap: 0.75rem; margin: 0 0 1rem; padding: 1.25rem; border-radius: 16px; }
.road-edit-controls > h2 { margin: 0; font-size: 1.14rem; }
.road-edit-controls > .road-edit-status { margin: -5px 0 0; font-size: .84rem; }
.road-edit-controls .road-card-actions { gap: 0.5rem; }
.road-publish-actions { align-items: center; }
.road-publish-actions > .support { display: inline-flex; align-items: center; min-height: 38px; padding: 0.375rem 0.5rem; font-size: .85rem; }
.road-restore-actions { display: flex; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.road-restore-actions:has(> [hidden]) { display: none; }
.road-restore-actions > .action { background: transparent; color: var(--muted); font-size: .79rem; }
.road-edit-tools { display: grid; gap: 0.875rem; margin-top: 0; padding-top: 0.875rem; }
.road-edit-tools > div + div:not(:empty) { margin-top: 0; }
.road-selection { margin-top: 0; padding: 0.75rem; border-radius: 12px; }
.road-selection-count { color: var(--ink); margin-bottom: 0.5rem; }
.road-selection-note { max-width: 100ch; margin-top: 0.5rem; font-size: .75rem; }
.road-metrics { gap: 0.75rem; margin-bottom: 1.25rem; }
.road-metrics > div { padding: 0.8125rem 1rem; border-radius: 12px; }
.road-workspace { gap: 1.25rem; }
.road-aside h2 { font-size: .92rem; margin-bottom: 0.625rem; }
.roadmap-page .filter-panel { padding: 0.875rem; margin-bottom: 0.875rem; }
.road-plugin-head { padding: 0.875rem; }
.road-plugin-head h2 { font-size: 1.06rem; }
.road-plugin-head > p { font-size: .82rem; line-height: 1.45; }
.road-column { padding: 0.75rem; }
.road-dialog { padding: 1.25rem; }
.road-dialog > h2 { margin-bottom: 0.875rem; }
.road-dialog > .editor-form { margin-top: 0; }
.road-dialog > .action { margin-top: 0.875rem; }
footer { margin-top: 1.75rem; padding: 1.125rem 0 1.5rem; }
.admin-home-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0.25rem 0 1rem; }
.admin-home-bar h2 { font-size: 1.08rem; }
.admin-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; }
.admin-tool-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
a.admin-tool-card:hover { border-color: var(--accent); background: var(--tint); }
.admin-tool-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); margin-bottom: 0.125rem; }
.admin-tool-card h2 { font-size: 1.06rem; letter-spacing: -.02em; }
.admin-tool-card > p { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 0; }
.admin-tool-link { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--accent); font-size: .82rem; font-weight: 650; margin-top: auto; padding-top: 0.375rem; }
.admin-device-card form { margin-top: auto; padding-top: 0.375rem; width: 100%; }
.admin-device-card .action { font-size: .8rem; max-width: 100%; }
.admin-device-card #login-message:empty { display: none; }
.admin-login { padding: 1.5rem; margin-top: 0; }
.admin-login > h2 { margin-bottom: 1rem; }
.admin-login > form { margin-top: 0; }
.login-recovery { border-top: 1px solid var(--line); padding-top: 0.875rem; margin-top: 1.125rem; }
.login-recovery > summary { cursor: pointer; color: var(--muted); font-size: .86rem; }
.login-recovery > p { margin: 0.75rem 0; font-size: .84rem; }
@media (max-width: 900px) {
  .admin-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .top { margin-top: 0.5rem; }
  .bar { border-radius: 14px; min-height: 54px; }
  .page-title, .roadmap-page .page-title { padding: 1.125rem; gap: 0.75rem; margin: 1rem 0; border-radius: 16px; }
  .page-title h1, .admin-shell .admin-page-title h1 { font-size: 1.6rem; line-height: 1.15; }
  .page-title p { font-size: .85rem; }
  .page-title .page-logo, .admin-page-title .page-logo { width: 52px; height: 52px; }
  .admin-page-title { min-height: 0; }
  .admin-sections { gap: 0.375rem; }
  .admin-sections a { padding: 0.625rem 0.5rem; font-size: .8rem; min-height: 46px; }
  .admin-extra { margin: 0.75rem 0 1.25rem; gap: 0.375rem; }
  .admin-content-actions { margin-bottom: 0.875rem; gap: 0.5rem; }
  .admin-tool-grid { gap: 0.625rem; }
  .admin-tool-card { padding: 1rem; }
  .admin-home-bar { flex-wrap: wrap; margin-bottom: 0.875rem; }
  .admin-home-bar h2 { font-size: 1rem; }
  .admin-server-grid { gap: 0.625rem; }
  .road-edit-mode .road-edit-controls { padding: 1rem; }
  .road-edit-tools { gap: 0.75rem; }
  .road-publish-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-publish-actions > .support { padding: 0.375rem; text-align: center; justify-content: center; font-size: .8rem; }
  .road-restore-actions > .action { text-align: left; justify-content: flex-start; }
  .road-metrics { gap: 0.5rem; margin-bottom: 1rem; }
  .road-metrics > div { padding: 0.625rem; }
  .road-metrics strong { font-size: 1.35rem; }
  .road-workspace { gap: 1rem; }
  .road-column { padding: 0.625rem; }
  .road-dialog { padding: 1rem; }
  .admin-login { padding: 1.125rem; }
}
@media (max-width: 480px) {
  .admin-tool-grid { grid-template-columns: 1fr; }
  .admin-tool-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.375rem; }
  .admin-tool-card > .admin-tool-icon { grid-row: span 3; width: 40px; height: 40px; margin: 0; }
  .admin-tool-card > h2, .admin-tool-card > p, .admin-tool-card > .admin-tool-link, .admin-tool-card > form { grid-column: 2; }
  .admin-tool-card > h2 { font-size: 1rem; }
  .admin-tool-card > p { font-size: .82rem; }
  .admin-tool-card > #login-message { grid-column: 1 / -1; }
  .admin-tool-link { padding-top: 0.25rem; }
  .admin-device-card .action { width: 100%; }
}
@media (hover: none) and (pointer: coarse) {
  .admin-shell .action, .admin-tool-card .action, .road-edit-controls .action { min-height: 44px; }
}


/* Wide desktop layouts keep the compact tablet and phone rules above. */
@media (min-width: 1200px) {
  .shell { width: min(2240px, calc(100% - clamp(48px, 5vw, 160px))); }
  .road-workspace { grid-template-columns: clamp(200px, 14vw, 260px) minmax(0, 1fr); }
  .admin-tool-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.5rem; align-content: start; min-height: 164px; padding: 1.5rem; }
  .admin-tool-card > .admin-tool-icon { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .admin-tool-card > h2, .admin-tool-card > p, .admin-tool-card > .admin-tool-link, .admin-tool-card > form { grid-column: 2; }
  .admin-tool-card > #login-message { grid-column: 1 / -1; }
  .admin-tool-card > h2 { margin-top: 0.0625rem; }
  .admin-tool-card > .admin-tool-link, .admin-device-card form { margin-top: 0; }
  .admin-device-card { row-gap: 0.5rem; }
  .mod-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .rule-card p { max-width: 85ch; }
  .join p { max-width: 75ch; }
}
@media (min-width: 1280px) {
  .road-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road-columns:has(> .road-column:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-columns:not(:has(> .road-column:nth-child(4))) > .road-column { border-top: 0; border-left: 1px solid var(--line); }
  .road-columns:not(:has(> .road-column:nth-child(4))) > .road-column:first-child { border-left: 0; }
}
@media (min-width: 1440px) {
  #content-editor { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
  .inbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road-edit-controls:has(> .road-edit-tools:not([hidden])) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 1.5rem; align-content: start; }
  .road-edit-controls > :is(h2, .road-edit-status, .road-publish-actions, .road-restore-actions) { grid-column: 1; }
  .road-edit-controls > .road-edit-tools:not([hidden]) { grid-column: 2; grid-row: 1 / span 4; align-content: start; margin: 0; padding: 0 0 0 1.5rem; border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1600px) {
  .road-columns:has(> .road-column:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .road-columns:has(> .road-column:nth-child(4)) > .road-column { border-top: 0; border-left: 1px solid var(--line); }
  .road-columns:has(> .road-column:nth-child(4)) > .road-column:first-child { border-left: 0; }
}

/* Shared, compact actions in editable lists. Labels remain available to assistive technology. */
.action.compact-icon-button { display: inline-grid; flex: none; place-items: center; box-sizing: border-box; width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 3px; border-radius: 5px; background: transparent; border-color: transparent; }
.compact-icon-button svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action.compact-icon-button:hover:not(:disabled) { border-color: var(--line); background: var(--surface); }
.action.compact-icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.admin-row-actions { display: flex; flex: none; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 1px; margin-left: auto; }
.editor-list { gap: .25rem; }
.editor-row { padding: .3125rem; }
.editor-row-bar, #social-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: .21875rem; }
.editor-row-bar > .drag-handle, #social-list li > .drag-handle { min-width: 12px; padding: 0; }
#social-list li { padding-block: .3125rem; }
#social-list li > .entry-label { min-width: 0; margin-right: 0; }

/* Selection and sorting on the left, content in the middle, editing on the right. */
.road-feature-editable { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: start; column-gap: .25rem; padding: .25rem .28125rem; }
.road-feature-body { min-width: 0; }
.road-feature-body > p { font-size: .82rem; line-height: 1.4; margin-top: .125rem; }
.road-feature-editable .road-card-title { gap: .1875rem; }
.road-feature-editable .road-card-title .drag-handle { min-width: 12px; min-height: 18px; padding: 0; font-size: 1rem; }
.road-feature-editable .road-feature-meta { column-gap: .3125rem; row-gap: .0625rem; margin-top: .15625rem; }
.road-feature-editable .road-command-detail { margin-top: .1875rem; }
.road-feature .road-feature-tools, .road-feature-controls { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 0; }
.road-feature .road-feature-tools .road-icon-button, .road-feature-controls .road-icon-button { width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 3px; }
.road-feature-controls .road-feature-select { width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 0; }
.road-feature-controls .road-feature-select input { width: 15px; height: 15px; }
.road-feature.is-pending-delete { border-color: #b28c70; }
.road-feature.is-pending-delete .road-feature-body > :not(.road-delete-note) { opacity: .55; }
.road-feature.is-pending-delete h4 { text-decoration: line-through; }
.road-feature .road-feature-tools .road-delete-toggle[aria-pressed="true"] { background: var(--tint); color: var(--accent); border-color: var(--accent); }
.road-delete-note { color: var(--ink); font-size: .69rem !important; line-height: 1.3; margin-top: .1875rem; }
@media (hover: none) and (pointer: coarse) {
  .action.compact-icon-button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 5px; }
  .road-feature-editable { grid-template-columns: 28px minmax(0, 1fr) 28px; }
  .road-feature .road-feature-tools .road-icon-button, .road-feature-controls .road-icon-button,
  .road-feature-controls .road-feature-select { width: 28px; min-width: 28px; height: 28px; min-height: 28px; }
  .road-feature .road-feature-tools .road-icon-button, .road-feature-controls .road-icon-button { padding: 5px; }
}

.road-plugin-sort { display: grid; gap: 0.3125rem; margin-bottom: 0.625rem; color: var(--muted); font-size: .75rem; font-weight: 650; }
.road-plugin-sort select { display: block; width: 100%; min-width: 0; padding: 0.5rem; font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--raised); border-radius: 8px; }
.road-plugin-add { display: grid; justify-items: center; gap: 0.25rem; width: 100%; min-height: 90px; padding: 0.75rem; margin-top: 0.625rem; border: 1px dashed var(--muted); border-radius: 10px; background: transparent; color: var(--accent); }
.road-plugin-add > span { font-size: 1.6rem; line-height: 1; }
.road-plugin-add > strong { font-size: .83rem; }
.road-plugin-add > small { color: var(--muted); font-size: .72rem; }
.road-plugin-add:hover, .road-plugin-add[data-drop-position] { background: var(--tint); border-color: var(--accent); }
.road-plugin-sort-note { margin: 0.5rem 0 0; font-size: .68rem; color: var(--muted); line-height: 1.4; }
.road-dialog-intro { margin: 0 0 0.875rem; color: var(--muted); font-size: .85rem; }
.sort-ghost { position: fixed; pointer-events: none; z-index: 1000; max-width: min(280px,60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.4375rem 0.625rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--ink); font: 650 .78rem/1.4 var(--sans); box-shadow: 0 3px 15px #0003; }
body.is-sorting-touch { touch-action: none; }
body.is-sorting-touch, body.is-sorting-pointer { user-select: none; -webkit-user-select: none; }
body.is-sorting-pointer, body.is-sorting-pointer * { cursor: grabbing !important; }
@media(max-width:760px) { .road-plugin-add { min-height: 76px; } .road-plugin-sort select { font-size: 1rem; } }
html.sorting-active, html.sorting-active * { scroll-behavior: auto !important; }
