
: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: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/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: 20px; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 8px 13px; 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: 9px; 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: 2px; align-items: center; }
nav a, .nav-menu, .theme { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; padding: 8px 11px; 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: 12px; }
.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: 28px 0 15px; padding: 28px 42px; 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: 9px; 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: 8px 0 12px; }
.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: 15px; }
.entry { min-height: 108px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; padding: 18px; }
.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: 3px; }
.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: 15px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 23px 24px; 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: 5px; }
.address-wrap { display: grid; gap: 7px; }
.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: 9px 18px; justify-content: space-between; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); margin-top: 30px; padding: 17px 0 24px; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .bar { position: relative; gap: 7px; }
  .nav-menu { display: inline-flex; }
  nav { display: none; position: absolute; inset: calc(100% + 8px) 0 auto; padding: 7px; 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: 24px; }
  .join { gap: 14px; }
}
@media (max-width: 575px) {
  .hero { grid-template-columns: 1fr; min-height: 170px; margin-top: 16px; padding: 21px 19px; }
  .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: 9px; }
  .entry { min-height: 75px; padding: 12px; }
  .join { grid-template-columns: 1fr; margin-top: 10px; padding: 16px; }
  .nav-menu, .theme { padding-inline: 9px; }
}
@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: 7px; border-radius: 12px; padding: 8px 10px; 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: 9px; position: relative; width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 10px; 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: 4px 8px; 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: 15px; }
.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: 20px; margin: 28px 0 16px; padding: clamp(18px, 4vw, 38px); border: 1px solid var(--line); border-radius: 26px; background: var(--hero); }
.page-title h1 { margin-block: 9px; 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(15px, 3vw, 25px); border-radius: 20px; margin-top: 12px; }
.panel h2 { margin-bottom: 5px; font-size: 1.25rem; letter-spacing: -.025em; }
.demo-note, #settings-status { color: var(--muted); font-size: .875rem; margin-top: 12px; }
#settings-status:empty { display: none; }
.road-status { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.road-status section { padding: 12px; 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: 9px 15px; flex-wrap: wrap; }
.footer-links a { text-underline-offset: 3px; }
form { margin-top: 12px; }
form label { display: block; font-size: .8rem; font-weight: 690; margin-bottom: 4px; }
form input { width: 100%; min-width: 0; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font: inherit; }
form input:focus-visible { outline: 2px solid var(--accent); }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.form-row > div, #discord-url { flex: 1 1 200px; }
.action { border: 1px solid transparent; padding: 8px 11px; 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: 7px; padding: 7px 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: 16px; }
  .discord-button { padding: 8px; }
  .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: 8px; gap: 5px; }
  .nav-menu span, .theme span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .brand { gap: 6px; }
}
@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: 8px; }
.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: 3px; }
.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: 4px 8px; 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: 15px; }
.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: 10px; margin-bottom: 15px; }
.filter-panel > div { flex: 1 1 145px; }
.filter-panel label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.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: 8px 9px; 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: 10px; }
#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: 7px; 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: 10px; }
  .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: 16px; 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: 10px 0; }
.social-picker select { width: 100%; min-width: 0; padding: 8px 10px; 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: 4px 12px; 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: 12px; }
.mod-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.mod-summary { color: var(--accent) !important; font-weight: 700; font-size: .82rem; }
.mod-download { margin-top: auto; align-self: flex-start; padding: 6px 12px; 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: 7px; }
.editor-list { display: grid; gap: 6px; margin: 8px 0 12px; min-height: 1.6rem; }
.editor-row { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.editor-row-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.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 6px; 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: 12px; margin: 8px 0; border-radius: 10px; background: var(--tint); }
.editor-form label { margin-bottom: 8px; }
.editor-form input, .editor-form select, .editor-form textarea { margin-top: 4px; }
.editor-form select { max-width: 100%; padding: 6px; 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: 8px; }
.editor-form input[type="checkbox"] { width: auto; margin: 0; }
.editor-form .action { margin-right: 7px; }
/* Roadmap board and compact demo administration */
.roadmap-page .page-title { padding: clamp(16px, 4vw, 32px); border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(120deg, var(--hero), var(--surface)); margin-bottom: 12px; }
.road-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.road-metrics > div { display: grid; padding: 10px 13px; 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: 16px; }
.road-aside h2 { margin: 0 0 8px; font-size: 1rem; }
#road-plugin-nav { display: grid; gap: 6px; }
.road-plugin-choice { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; 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: 12px; gap: 8px; }
.roadmap-page .filter-panel > div { flex-basis: 115px; }
.road-plugin { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); }
.road-plugin-head { padding: 12px 14px; 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: 11px; 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: 6px; margin: 0 0 8px; 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: 8px; background: var(--raised); overflow-wrap: anywhere; }
.road-feature + .road-feature { margin-top: 6px; }
.road-feature h4 { font-size: .87rem; }
.mod-group { margin: 15px 0 24px; }
.mod-group > h2 { font-size: 1.03rem; margin-bottom: 8px; }
.admin-shell .page-title { margin-bottom: 16px; }
.admin-fold { margin: 7px 0; padding: 0 13px; }
.admin-fold > summary { cursor: pointer; padding: 10px 0; font-weight: 720; }
.admin-fold[open] { padding-bottom: 12px; }
.admin-shell .action { padding: 5px 8px; font-size: .83rem; }
.admin-shell #version-form input { max-width: 120px; }
.admin-shell #version-form .form-row { margin-top: 5px; }
.road-feature textarea[readonly], .road-plugin textarea[readonly] { width: 100%; min-width: 0; }
.feature-origin { display: block; color: var(--muted); margin-block: 3px; 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: 3px; }
.road-plugin-head { overflow-wrap: anywhere; }
.road-plugin-head > p { margin-top: 4px; }
.road-aside { align-self: start; }
.roadmap-page .filter-panel { margin-top: 0; }
.road-edit-controls { margin-block: 12px; }
.road-edit-status { font-size: .86rem; margin-bottom: 8px; }
.road-edit-tools { margin-top: 10px; padding-top: 10px; 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: 8px; }
.road-edit-tools > div > p { margin-bottom: 6px; }
.road-edit-tools > div > p ~ button { margin-right: 6px; }
.road-card-title, .road-card-actions { display: flex; align-items: center; gap: 6px; }
.road-card-actions { flex-wrap: wrap; }
.road-card-actions .action { padding: 6px 9px; font-size: .84rem; }
.road-plugin .road-card-actions { margin-top: 8px; }
.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: 4px; }
.road-command-detail { font-size: .82rem; margin-top: 6px; }
.road-command-detail code { display: block; white-space: pre-wrap; }
.road-command-detail summary { cursor: pointer; }
.road-feedback { overflow-wrap: anywhere; margin-block: 12px; }
.idea-callout { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; margin-block: 12px; padding: 10px 14px; }
.request-panel { margin-top: 22px; }
.request-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-panel form { max-width: 680px; }
.request-panel label { margin: 0 0 10px; }
.request-panel input, .request-panel textarea, .request-panel select { display: block; margin-top: 4px; }
.request-panel select { width: 100%; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font: inherit; }
.request-panel textarea { resize: vertical; }
.request-note, .request-status { margin-top: 7px; font-size: .83rem; }
.request-message { margin: 0; overflow-wrap: anywhere; }
.request-message > p { margin-top: 8px; }
.request-message h3 { font-size: 1rem; }
.request-message p { white-space: pre-wrap; }
.admin-shell .page-title .support { display: inline-block; margin-top: 8px; }
@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: 6px; }
  .road-metrics > div { padding: 8px; 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: 16px; }
  .request-fields { gap: 0; }
  .roadmap-page .page-title { gap: 8px; }
  .road-workspace { gap: 12px; }
}

.mobile-portal-tabs, .mobile-road-actions { display: none; }
@media (max-width: 600px) {
  html { scroll-padding-top: 82px; scroll-padding-bottom: 82px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 28px); }
  .top { top: 0; margin-top: 8px; }
  .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: 12px; }
  .page-title .page-logo { height: auto; }
  .mobile-portal-tabs, .mobile-road-actions {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch;
    position: fixed; inset: auto 0 0; gap: 4px; z-index: 5;
    padding: 6px 8px calc(6px + 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-portal-tabs a { display: grid; justify-items: center; gap: 3px; min-height: 48px; padding: 4px; border-radius: 9px; font-size: .72rem; }
  .mobile-portal-tabs .icon { width: 18px; height: 18px; }
  .mobile-road-actions { display: none; }
  .road-edit-mode .mobile-road-actions { display: grid; }
  .road-edit-mode .mobile-portal-tabs { display: none; }
  .mobile-road-actions .action { min-height: 46px; padding: 4px; font-size: .75rem; overflow-wrap: anywhere; }
  .road-edit-mode .road-edit-controls { padding: 12px; }
  .road-edit-mode .road-edit-controls h2 { font-size: 1rem; }
  .road-edit-mode .road-card-actions { gap: 5px; }
  .road-edit-mode .road-edit-controls .road-card-actions .action { padding-inline: 7px; }
  .road-edit-mode .roadmap-page .page-title p { font-size: .88rem; }
  .road-edit-mode .roadmap-page .page-title { padding-block: 12px; }
}

@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: 8px; 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: 18px 0 8px; font-size: 1.15rem; }
.admin-server-grid, .inbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
#request-inbox .filter-panel { margin: 0 0 12px; }
.inbox-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: .8rem; color: var(--muted); }
.inbox-category { padding: 3px 7px; border-radius: 6px; background: var(--tint); color: var(--accent); }
.road-dialog { width: min(590px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(12px, 3vw, 22px); 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: 16px; }
.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: 16px; }
  .mod-download { min-height: 44px; display: inline-flex; align-items: center; }
}
