@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(rubik-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(rubik-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url(rubik-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url(rubik-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-weight: 600; font-display: swap; src: url(rubik-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 600; font-display: swap; src: url(rubik-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(rubik-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(rubik-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --px: 2px;
  --bg: #0f1115;
  --bg2: #0f1115;
  --panel: #181b21;
  --panel2: #20242c;
  --panel3: #2c313c;
  --line: #07090d;
  --edge: #2a3348;
  --text: #edf1f8;
  --dim: #8d99b0;
  --accent: #3f7ae0;
  --accent-hi: #7aa6ff;
  --accent-lo: #234fa0;
  --accent-soft: rgba(63, 122, 224, .22);
  --on-accent: #fff;
  --danger: #e0594a;
  --ok: #4fb948;
  --warn: #e0a91f;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 140ms;
  --scene: url(hero-night.svg);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
[data-color="green"]  { --accent: #4fb948; --accent-hi: #7fe070; --accent-lo: #2a7428; --accent-soft: rgba(79, 185, 72, .2); }
[data-color="red"]    { --accent: #e0503c; --accent-hi: #ff8068; --accent-lo: #96261a; --accent-soft: rgba(224, 80, 60, .2); }
[data-color="gold"]   { --on-accent: #231a05; --accent: #e0a91f; --accent-hi: #ffd35a; --accent-lo: #94700b; --accent-soft: rgba(224, 169, 31, .2); }
[data-color="purple"] { --accent: #9a62e0; --accent-hi: #c496ff; --accent-lo: #5f33a3; --accent-soft: rgba(154, 98, 224, .2); }
[data-color="halloween"] { --accent: #f08a1c; --accent-hi: #ffb347; --accent-lo: #a35a0a; --accent-soft: rgba(240, 138, 28, .2); --on-accent: #231105; --bg: #0d0a14; --bg2: #110c1a; --panel: #1a1424; --panel2: #241b31; --panel3: #302441; --line: #06040a; }
[data-color="christmas"] { --accent: #e0453a; --accent-hi: #ff8070; --accent-lo: #9a2018; --accent-soft: rgba(224, 69, 58, .2); --bg: #0a1210; --bg2: #0d1714; --panel: #131f1b; --panel2: #1a2a25; --panel3: #243a33; --line: #050a08; }
[data-color="newyear"] { --accent: #f2c94c; --accent-hi: #ffe08a; --accent-lo: #9a7a14; --accent-soft: rgba(242, 201, 76, .2); --on-accent: #241c04; --bg: #0b0a18; --bg2: #0f0d20; --panel: #17142a; --panel2: #201c38; --panel3: #2b2648; --line: #060510; }

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
html, body { background: var(--bg); }
body { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--accent-hi); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#app { display: grid; grid-template-rows: 68px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: 100%; }

/* ---- top bar ---- */
#nav { display: flex; align-items: center; gap: 8px; padding: 0 20px; background: var(--bg2); border-bottom: calc(2 * var(--px)) solid #000; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; color: var(--text); text-decoration: none; }
.brand img { height: 40px; width: auto; image-rendering: pixelated; }
.brand .name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.navgroup { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; background: rgba(255, 255, 255, .05); border-radius: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navgroup::-webkit-scrollbar { display: none; }
.nav-item {
  all: unset; cursor: pointer; position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 10px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: #9aa4b8; transition: background-color var(--t) var(--ease), color 200ms var(--ease);
}
.nav-item .ic { width: 21px; height: 21px; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item[aria-current="page"] { color: var(--accent-hi); background: var(--accent-soft); }
.nav-item[aria-disabled="true"] { opacity: .4; cursor: default; }
.nav-item[aria-disabled="true"]:hover { background: none; color: #9aa4b8; }
.nav-item:focus-visible { outline: var(--px) solid var(--accent-hi); outline-offset: 1px; }
.sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .12); margin: 0 6px; flex: none; }
@media (max-width: 1200px) { .brand .name { display: none; } }
@media (max-width: 1060px) { .nav-item .lbl { display: none; } .nav-item[aria-current="page"] .lbl { display: inline; } .nav-item { padding: 9px 11px; } }
@media (max-width: 640px) { #nav { padding: 0 10px; gap: 4px; } .nav-item[aria-current="page"] .lbl { display: none; } .brand img { height: 32px; } .sep { display: none; } }

/* ---- main ---- */
#view { overflow: auto; scrollbar-gutter: stable; padding: 26px 32px 48px; scrollbar-width: thin; scrollbar-color: var(--panel3) var(--bg); min-width: 0; }
@supports selector(::-webkit-scrollbar) { #view::-webkit-scrollbar, .log::-webkit-scrollbar { width: 12px; } #view::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb { background: var(--panel3); border: 2px solid var(--bg); } #view::-webkit-scrollbar-track, .log::-webkit-scrollbar-track { background: var(--bg); } }
@media (max-width: 640px) { #view { padding: 18px 16px 40px; } }
.wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", monospace; font-size: 13px; }
.kicker { color: var(--accent-hi); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.grow { flex: 1; min-width: 0; }

/* ---- controls ---- */
button, .btn {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; padding: 9px 18px; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 0; border-radius: 10px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
button:hover, .btn:hover { background: rgba(255, 255, 255, .14); }
button:not(:disabled):active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: default; }
button .ic, .btn .ic { width: 18px; height: 18px; }
button.primary, .btn.primary { background: var(--accent); color: var(--on-accent); }
button.primary:hover, .btn.primary:hover { background: var(--accent-hi); }
button.xl { font-size: 17px; padding: 12px 28px; border-radius: 12px; }
button.danger { background: #4a2320; color: #ffb4a6; }
button.danger:hover { background: #5e2b27; }
button.danger.solid { background: #d2493b; color: #fff; }
button.danger.solid:hover { background: #e25a4b; }
button.ghost { background: transparent; color: var(--dim); }
button.ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
button.sm, .btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
button.icon { padding: 7px; border-radius: 8px; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: var(--px) solid var(--accent-hi); outline-offset: 2px; }

input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], select, textarea {
  font: inherit; color: var(--text); padding: 10px 13px; background: rgba(255, 255, 255, .06); border: 2px solid transparent; border-radius: 10px; min-width: 0; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; background: rgba(255, 255, 255, .09); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: rgba(255, 255, 255, .06) url(chevron.svg) right 10px center / 16px 16px no-repeat; cursor: pointer; }
option { background: var(--panel2); color: var(--text); }
label.field { display: grid; gap: 6px; font-weight: 500; }
label.field .hint { font-weight: 400; color: var(--dim); font-size: 13px; }

.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 0; }
.toggle input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; background: rgba(255, 255, 255, .08); border: 0; border-radius: 7px; cursor: pointer; flex: none; margin-top: 1px; transition: background-color var(--t) var(--ease); }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { content: ""; display: block; width: 7px; height: 13px; margin: 2px 0 0 8px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.toggle .t { display: grid; gap: 2px; }
.toggle .t small { color: var(--dim); font-size: 13px; }

.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); cursor: pointer; transition: background-color var(--t) var(--ease); }
.switch input:checked { background: var(--accent); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; pointer-events: none; transition: transform 180ms var(--ease); }
.switch input:checked + .knob { transform: translateX(16px); }

/* ---- surfaces ---- */
.block { background: var(--panel); border: var(--px) solid var(--line); border-radius: 0; }
.sunk { background: var(--bg); border: var(--px) solid var(--line); border-radius: 0; }
.card { background: var(--panel); border-radius: 14px; padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card > h2 { margin: 0; }
.card.danger-zone { border: 2px solid #4a2320; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; background: rgba(255, 255, 255, .07); border-radius: 8px; color: var(--dim); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent-hi); }
.tag.ok { background: rgba(79, 185, 72, .18); color: #8fe07f; }
.tag.warn { background: rgba(224, 169, 31, .18); color: #ffd35a; }
.tag.bad { background: rgba(224, 89, 74, .2); color: #ffb4a6; }
.empty { padding: 36px 20px; text-align: center; color: var(--dim); display: grid; gap: 12px; justify-items: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--panel2); border-left: 4px solid var(--accent-hi); }
.notice.bad { border-left-color: var(--danger); }
.notice.warn { border-left-color: var(--warn); }
.upload-box { position: fixed; left: 18px; bottom: 18px; z-index: 15; width: min(380px, calc(100vw - 36px)); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); border: var(--px) solid var(--line); }
.notice .ic { margin-top: 2px; }
.notice .body { display: grid; gap: 6px; min-width: 0; flex: 1; }

/* ---- landscape banner ---- */
.hero { position: relative; min-height: 340px; margin: -26px -32px 0; padding: 30px 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--scene) center bottom / cover no-repeat; background-color: var(--panel); image-rendering: pixelated; overflow: hidden; border-bottom: calc(2 * var(--px)) solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,21,.86) 0, rgba(15,17,21,.12) 55%, transparent 75%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .who { display: grid; gap: 8px; padding-bottom: 4px; min-width: 0; }
.hero h1 { font-size: 46px; line-height: 1.05; text-shadow: 0 3px 0 rgba(0,0,0,.45); overflow-wrap: anywhere; }
.hero .sub { color: #d5deef; font-size: 15px; }
.hero .tag { background: rgba(10, 12, 16, .62); color: #e6ecf7; }
.hero .tag.ok { color: #8fe07f; } .hero .tag.warn { color: #ffd35a; } .hero .tag.bad { color: #ffb4a6; } .hero .tag.accent { color: var(--accent-hi); }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.hero button:not(.primary):not(.danger) { background: rgba(10, 12, 16, .62); }
.hero button:not(.primary):not(.danger):hover { background: rgba(10, 12, 16, .82); }
.addr { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 10px; background: rgba(10, 12, 16, .62); max-width: 100%; }
.addr .mono { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero + .wrap { margin-top: 26px; }
[data-scene="off"] .hero { background-image: none; min-height: 0; padding-top: 26px; }
@media (max-width: 640px) { .hero { margin: -18px -16px 0; padding: 22px 16px; min-height: 260px; } .hero h1 { font-size: 34px; } }

/* ---- stats ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.tile .slot { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); border-radius: 12px; }
.tile .slot .ic { width: 24px; height: 24px; }
.tile .v { font-weight: 650; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .l { color: var(--dim); font-size: 12.5px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.chart { background: var(--panel); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.chart .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chart canvas { width: 100%; height: 70px; display: block; }

.bar { height: 16px; background: var(--bg); border: var(--px) solid var(--line); border-radius: 9px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.22) 6px 8px); border-radius: 7px; transition: width 200ms var(--ease); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps .tag.done { color: var(--text); }
.steps .tag.now { background: var(--accent-soft); color: var(--accent-hi); }

/* ---- console ---- */
.log { margin: 0; padding: 14px; min-height: 240px; height: calc(100vh - 290px); overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.5 ui-monospace, "JetBrains Mono", "Cascadia Code", monospace; user-select: text; color: #d8dfec; scrollbar-width: thin; scrollbar-color: var(--panel3) var(--bg); }
.log.short { height: auto; max-height: 320px; min-height: 0; }
.log .warn { color: #ffd35a; } .log .err { color: #ff9c8c; }
.cmdline { display: flex; gap: 8px; }
.cmdline input { font-family: ui-monospace, "JetBrains Mono", monospace; }

/* ---- lists ---- */
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; background: var(--panel); border-radius: 12px; min-width: 0; }
.item:hover { background: var(--panel2); }
.item.off .name, .item.off .pic { opacity: .45; }
.item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--bg); border: var(--px) solid var(--line); overflow: hidden; color: var(--dim); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.sm { width: 32px; height: 32px; border: 0; background: rgba(255,255,255,.05); border-radius: 8px; }
.pic.sm .ic { width: 18px; height: 18px; }
@media (max-width: 640px) { .item { grid-template-columns: auto minmax(0, 1fr); } .item .acts { grid-column: 1 / -1; justify-content: flex-start; } }

.crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.crumbs button { padding: 5px 10px; font-size: 13px; border-radius: 8px; background: transparent; color: var(--dim); }
.crumbs button:hover { background: rgba(255,255,255,.08); color: var(--text); }
.crumbs button:last-child { color: var(--text); }

/* ---- marketplace ---- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mcard { background: var(--panel); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; border: 2px solid transparent; min-width: 0; }
.mcard:hover { border-color: var(--accent); background: var(--panel2); }
.mcard .top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mcard .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .d { color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.mcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- dialog / toast ---- */
#modal { position: fixed; inset: 0; background: rgba(5,7,10,.78); display: grid; place-items: center; padding: 24px; z-index: 10; }
.dialog { background: var(--panel); border: var(--px) solid var(--line); border-radius: 20px; max-width: min(560px, 100%); width: 100%; padding: 22px; display: grid; gap: 14px; max-height: 100%; overflow: auto; animation: dialog-in 200ms var(--ease) both; }
.dialog.wide { max-width: min(1100px, 100%); }
.dialog .dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog .dfoot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.editor { width: 100%; min-height: 55vh; resize: vertical; font: 13px/1.5 ui-monospace, "JetBrains Mono", monospace; white-space: pre; tab-size: 2; }
#toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: grid; gap: 8px; max-width: calc(100vw - 36px); }
.toast { padding: 10px 14px; background: var(--panel2); border: var(--px) solid var(--line); border-left: 4px solid var(--accent-hi); max-width: 400px; border-radius: 14px; animation: slide 200ms var(--ease) both; }
.toast.error { border-left-color: var(--danger); }
@keyframes dialog-in { from { transform: translateY(10px) scale(.98); } to { transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; border-radius: 50%; animation: spin 800ms linear infinite; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } .spin { animation: none; border-top-color: rgba(255,255,255,.25); } }

.menu { position: fixed; top: 70px; right: 20px; z-index: 30; min-width: 250px; padding: 6px; background: var(--panel2); border: 2px solid #000; border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.menu-h { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.menu-item { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, .08); }
.swatches { display: flex; gap: 6px; padding: 6px 10px 10px; }
.swatches button { width: 28px; height: 28px; padding: 0; border-radius: 8px; }
.swatches button[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- single-card pages (login, onboarding) ---- */
.solo { min-height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: auto; }
.solo .hero { margin: 0; min-height: 300px; align-items: center; }
.solo .content { padding: 26px 20px 48px; display: grid; justify-items: center; align-content: start; }
.solo .content > .card { width: min(560px, 100%); margin-top: -60px; position: relative; z-index: 2; border: var(--px) solid var(--line); padding: 24px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice button { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; border: 2px solid transparent; white-space: normal; }
.choice button small { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.choice button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.err { color: #ff9c8c; font-size: 13.5px; min-height: 1.2em; }

table.plain { border-collapse: collapse; width: 100%; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--edge); vertical-align: middle; }
table.plain th { color: var(--dim); font-weight: 500; font-size: 13px; }
.scrollx { overflow-x: auto; }

.motd-preview { margin: -4px 0 4px; padding: 10px 12px; border-radius: 10px; background: #1b1b1b; font: 600 15px/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; min-height: 2.7em; }
.mc-0 { color: #000; } .mc-1 { color: #00a; } .mc-2 { color: #0a0; } .mc-3 { color: #0aa; }
.mc-4 { color: #a00; } .mc-5 { color: #a0a; } .mc-6 { color: #fa0; } .mc-7 { color: #aaa; }
.mc-8 { color: #555; } .mc-9 { color: #55f; } .mc-a { color: #5f5; } .mc-b { color: #5ff; }
.mc-c { color: #f55; } .mc-d { color: #f5f; } .mc-e { color: #ff5; } .mc-f { color: #fff; }
.mc-bold { font-weight: 800; } .mc-italic { font-style: italic; } .mc-underline { text-decoration: underline; } .mc-strike { text-decoration: line-through; }
.mc-underline.mc-strike { text-decoration: underline line-through; }

input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 4px; }
.plan-current { border: 1px solid var(--accent-soft); }
.plan-current .row { align-items: center; gap: 12px; }
.plan-current h2 { margin: 0; }
div.field { display: grid; gap: 10px; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-modes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-sizes { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.plan-size-card { gap: 4px; padding: 14px 16px; }
.plan-size-card .plan-sz { font-size: 28px; font-weight: 800; line-height: 1; }
.plan-size-card .plan-perday { margin-top: 6px; font-weight: 600; color: var(--accent-hi); }
.plan-size-card:disabled .plan-perday { color: var(--dim); }
.plan-days button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.plan-summary { position: sticky; top: 0; }
.plan-lines { display: grid; gap: 8px; }
.plan-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.plan-line > span:last-child { text-align: right; }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--edge); }
.plan-total .num { font-size: 32px; font-weight: 800; }
.plan-summary button.xl { width: 100%; justify-content: center; }

.nav-item .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.server-switch { max-width: 200px; margin-left: 12px; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.srv-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 172px; background: var(--panel); border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); cursor: pointer; transition: background var(--t) var(--ease); }
.srv-card:hover { background: var(--panel2); }
.srv-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.srv-pic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; overflow: hidden; }
.srv-pic img { width: 48px; height: auto; }
.srv-info { flex: 1; min-width: 0; display: grid; gap: 6px; }
.srv-name { margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--dim); }
.chip.accent { background: var(--accent-soft); color: var(--accent-hi); }
.chip.type-paper { background: rgba(63, 122, 224, .2); color: #9cc0ff; }
.chip.type-fabric { background: rgba(224, 169, 31, .18); color: #ffd35a; }
.chip.type-forge { background: rgba(224, 89, 74, .2); color: #ffb4a6; }
.chip.type-neoforge { background: rgba(240, 138, 28, .2); color: #ffb347; }
.srv-lines { display: grid; gap: 2px; }
.warn-text { color: #ffd35a; }
.srv-running { font-size: 13px; color: var(--accent-hi); margin-top: auto; }
.srv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.srv-running + .srv-bottom { margin-top: 0; }
button.pill { border-radius: 999px; padding: 8px 18px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
button.pill:hover { background: rgba(255, 255, 255, .08); }
button.pill.primary { background: var(--accent); box-shadow: none; }
button.pill.stop { background: #d2493b; color: #fff; box-shadow: none; }
button.pill.stop:hover { background: #e25a4b; }
button.round { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
button.round:hover { color: #ffb4a6; background: rgba(224, 89, 74, .12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
img.daenru { width: .72em; height: .72em; margin-left: .2em; vertical-align: baseline; filter: brightness(0) invert(1); }
.plan-total img.daenru { width: 18px; height: 18px; }
.home-hero { min-height: 300px; align-items: flex-end; }
.home-hero .kicker { color: #fff; opacity: .85; }
.home-hero h1 { margin: 4px 0 0; }
.hero-avatar { width: 112px; height: 112px; border-radius: 22px; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 12px 32px rgba(0, 0, 0, .45); }
.section-title { margin: 0; font-size: 22px; }
@media (max-width: 640px) { .hero-avatar { width: 72px; height: 72px; border-radius: 16px; } }
.dialog.ob-dialog { max-width: min(1120px, 100%); padding: 22px 24px; gap: 18px; }
.ob-wizard { display: grid; gap: 18px; }
.ob-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ob-head h1 { margin: 0; font-size: 22px; }
.ob-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .ob-layout { grid-template-columns: minmax(0, 1fr); } }
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 560px; overflow: auto; padding: 3px; scrollbar-width: thin; scrollbar-color: var(--panel3) transparent; }
.ver-tile { position: relative; display: block; padding: 0; height: 104px; border-radius: 12px; overflow: hidden; background: var(--panel3); box-shadow: inset 0 0 0 2px transparent; text-align: left; }
.ver-tile .vart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: brightness(.82); }
.ver-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 65%); }
.ver-tile .ver-num, .ver-tile .ver-name { position: absolute; left: 12px; z-index: 1; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.ver-tile .ver-num { bottom: 24px; font-size: 28px; font-weight: 800; }
.ver-tile .ver-name { bottom: 8px; font-size: 12.5px; font-weight: 600; }
.ver-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent-hi); }
.ver-tile:hover .vart { filter: brightness(1); }
.ver-tile .vart.photo { image-rendering: auto; }
.ob-side { display: grid; gap: 16px; }
.ob-label { font-weight: 700; font-size: 15px; }
.ob-about h2 { margin: 0 0 4px; font-size: 20px; }
.ob-about p { margin: 0; }
.ob-chips button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-hi); box-shadow: inset 0 0 0 2px var(--accent); }
.ob-loaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ob-loader { flex-direction: column; gap: 6px; padding: 12px 6px; border-radius: 12px; font-size: 13px; box-shadow: inset 0 0 0 2px transparent; }
.ob-loader img { width: 36px; height: 36px; border-radius: 8px; }
.ob-loader[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
label.field .hint.ok { color: #8fe07f; }
label.field .hint.bad { color: #ff9c8c; }
.ob-create { justify-content: center; gap: 10px; }
.ob-create-sub { opacity: .75; font-weight: 600; }
