:root {
  --bg: #0d0b14;
  --bg-2: #15111f;
  --surface: rgba(200, 180, 255, 0.05);
  --surface-2: rgba(200, 180, 255, 0.09);
  --surface-solid: #1a1626;
  --border: rgba(210, 195, 255, 0.10);
  --border-strong: rgba(210, 195, 255, 0.20);
  --text: #f1eef9;
  --text-2: #aca6c6;
  --text-3: #736c8f;
  --accent: #bba6ff;
  --accent-2: #8f73f0;
  --accent-soft: rgba(187, 166, 255, 0.16);
  --gold: #f2c46d;
  --gold-soft: rgba(242, 196, 109, 0.14);
  --green: #4fd08a;
  --amber: #f5a524;
  --red: #f26d6d;
  --blue: #6fa8ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 10% -12%, rgba(150, 110, 255, 0.24), transparent 62%),
    radial-gradient(760px 560px at 105% 8%, rgba(226, 140, 255, 0.13), transparent 60%),
    radial-gradient(900px 500px at 50% 115%, rgba(110, 90, 230, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 65%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 13px; }

/* ── Buttons & inputs ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-weight: 500; transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--border-strong); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #160f2b; border: 0; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.icon-only { width: 40px; padding: 0; }
.btn.sm.icon-only { width: 32px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }

/* ── Status dots & pills ────────────────────────────────────────── */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.up { background: var(--green); box-shadow: 0 0 0 3px rgba(79, 208, 138, .15); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .15); }
.dot.down { background: var(--red); box-shadow: 0 0 0 3px rgba(242, 109, 109, .15); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}

/* ── Hub ────────────────────────────────────────────────────────── */
.hub { max-width: 1040px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px 48px; }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 44px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: .2px; }
.greeting { background: linear-gradient(100deg, #f4efff 30%, #cdb8ff 70%, #f2c46d); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 46px); letter-spacing: -.5px; line-height: 1.1; }
.sub { margin: 0 0 32px; color: var(--text-2); font-size: 16px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 178px; padding: 22px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 160px at 0% 0%, var(--tile-glow, var(--accent-soft)), transparent 70%);
  opacity: .9;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.tile.off { opacity: .55; pointer-events: none; }
.tile-icon {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid var(--border);
  color: var(--tile-accent, var(--accent));
}
.tile-icon .icon { width: 26px; height: 26px; }
.tile-body { position: relative; z-index: 1; margin-top: auto; }
.tile-name { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.tile-blurb { color: var(--text-2); font-size: 14px; }
.tile-arrow { position: absolute; top: 22px; right: 20px; z-index: 1; color: var(--text-3); transition: transform .25s var(--ease), color .25s; }
.tile:hover .tile-arrow { color: var(--text); transform: translate(2px, -2px); }
.tile[data-service="jellyfin"] { --tile-accent: #c3a8ff; --tile-glow: rgba(176, 140, 255, .22); }
.tile[data-service="seerr"] { --tile-accent: #8fb4ff; --tile-glow: rgba(130, 150, 255, .18); }
.tile[data-service="chorechart"] { --tile-accent: #4fd08a; --tile-glow: rgba(79, 208, 138, .14); }
.tile[data-service="romm"] { --tile-accent: #f29ad0; --tile-glow: rgba(236, 130, 210, .17); }

.mc-card {
  margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.mc-card .tile-icon { --tile-accent: #7fd36b; }
.mc-title { font-weight: 600; font-size: 17px; }
.mc-join { text-align: right; }
.mc-join .mono { color: var(--text); font-size: 14px; }
.hub-foot { margin-top: 40px; display: flex; justify-content: center; }

/* ── Sign-in / setup ────────────────────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 9, .6); backdrop-filter: blur(6px); animation: fade .2s; }
.modal {
  width: min(400px, 100%); padding: 28px; border-radius: 22px; background: var(--surface-solid);
  border: 1px solid var(--border); box-shadow: var(--shadow); animation: rise .25s var(--ease);
}
.modal.wide { width: min(760px, 100%); }
.modal h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.2px; }
.modal p { margin: 0 0 20px; color: var(--text-2); }
.modal form { display: grid; gap: 14px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.error { color: var(--red); font-size: 13.5px; min-height: 1em; }

/* ── Console layout ─────────────────────────────────────────────── */
.console { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--border); background: rgba(10, 11, 15, .55); backdrop-filter: blur(14px);
}
.side .brand { padding: 4px 10px 22px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.main { padding: 30px clamp(18px, 4vw, 44px) 80px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.section-title { margin: 34px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.stat-value { margin-top: 10px; font-size: 26px; font-weight: 650; letter-spacing: -.5px; }
.stat-value small { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.meter { margin-top: 12px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s var(--ease); }
.meter.hot > i { background: linear-gradient(90deg, #d9532f, var(--red)); }

.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 14px; }
.banner.warn { border-color: rgba(245, 165, 36, .35); background: rgba(245, 165, 36, .07); }
.banner.bad { border-color: rgba(242, 109, 109, .35); background: rgba(242, 109, 109, .07); }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.app { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); }
.app-name { font-weight: 600; }
.app-product { font-size: 12.5px; color: var(--text-3); }
.app-head .pill { margin-left: auto; }
.app-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 10px; }
.table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: middle; }

.logs {
  margin: 0; height: min(62vh, 640px); overflow: auto; padding: 14px 16px; border-radius: 14px;
  background: #07080b; border: 1px solid var(--border); font: 12.5px/1.55 var(--mono); color: #cfd3dc; white-space: pre-wrap; word-break: break-word;
}
.logs .err { color: #ff9c9c; }
.logs .warn { color: #ffd38a; }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.tab.active { background: var(--surface-2); color: var(--text); }

.empty { padding: 40px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin .8s linear infinite; }

#toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-color: rgba(242, 109, 109, .5); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes spin { to { transform: rotate(360deg); } }
.enter > * { animation: rise .45s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .04s; } .enter > *:nth-child(3) { animation-delay: .08s; }
.enter > *:nth-child(4) { animation-delay: .12s; } .enter > *:nth-child(5) { animation-delay: .16s; }

/* ── Phones ─────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .console { grid-template-columns: 1fr; }
  .side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40; height: auto; flex-direction: row;
    justify-content: space-around; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border);
  }
  .side .brand, .side-foot { display: none; }
  .nav-link { flex-direction: column; gap: 2px; height: 54px; padding: 6px 8px; font-size: 11px; justify-content: center; }
  .main { padding: 22px 16px 110px; }
  .mc-card { grid-template-columns: auto 1fr; }
  .mc-join { grid-column: 1 / -1; text-align: left; }
  .hub-top { margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Gold rims: a faint gilded edge with a soft highlight that travels around it ───── */
@property --rim-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tile, .mc-card, .card, .app, .modal { position: relative; border-color: transparent; }
.tile::before, .mc-card::before, .card::before, .app::before, .modal::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background:
    conic-gradient(from var(--rim-angle),
      transparent 0deg, rgba(255, 226, 160, 0.95) 28deg, rgba(242, 196, 109, 0.55) 52deg, transparent 96deg, transparent 360deg),
    linear-gradient(135deg, rgba(242, 196, 109, 0.55), rgba(242, 196, 109, 0.14) 45%, rgba(242, 196, 109, 0.14) 55%, rgba(242, 196, 109, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rim-spin 9s linear infinite;
}
.tiles > :nth-child(2)::before, .apps > :nth-child(2)::before, .grid-stats > :nth-child(2)::before { animation-delay: -2.2s; }
.tiles > :nth-child(3)::before, .apps > :nth-child(3)::before, .grid-stats > :nth-child(3)::before { animation-delay: -4.5s; }
.tiles > :nth-child(4)::before, .apps > :nth-child(4)::before, .grid-stats > :nth-child(4)::before { animation-delay: -6.7s; }
.tiles > :nth-child(5)::before, .apps > :nth-child(5n)::before, .grid-stats > :nth-child(5)::before { animation-delay: -1.1s; }
.apps > :nth-child(3n+1)::before { animation-delay: -3.3s; }
.mc-card::before { animation-delay: -5.6s; }
.tile:hover::before, .app:hover::before, .mc-card:hover::before { animation-duration: 3.5s; }
.tile:hover { box-shadow: var(--shadow), 0 0 28px rgba(242, 196, 109, 0.10); }
@keyframes rim-spin { to { --rim-angle: 360deg; } }
.brand-name { background: linear-gradient(100deg, #f6e7c4, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { color: rgba(242, 196, 109, 0.75); }

/* ── Play on TV ─────────────────────────────────────────────────────────────── */
.tv-card { margin-top: 16px; display: grid; gap: 14px; padding: 20px 22px; }
.tv-head { display: flex; align-items: center; gap: 16px; }
.tv-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.tv-row { display: flex; gap: 10px; }
.tv-row .input { flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--accent-soft); color: var(--text); border-color: rgba(187, 166, 255, .45); }
.tile[data-service="homeassistant"] { --tile-accent: #7fd6e8; --tile-glow: rgba(110, 200, 230, .15); }
@media (max-width: 520px) { .tv-row { flex-direction: column; } }

/* ── Minecraft manager ──────────────────────────────────────────────────────── */
.mc-live { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-jobs { display: grid; gap: 10px; margin-bottom: 14px; }
.mc-jobs:empty { display: none; }
.mc-job pre { font-size: 12px; }
.mc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
.mc-list { display: grid; gap: 8px; }
.mc-server {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: background .15s, border-color .15s;
}
.mc-server:hover { background: var(--surface-2); }
.mc-server.active { background: var(--accent-soft); border-color: rgba(187, 166, 255, .4); }
.mc-server img, .mc-detail-head img, .mc-row img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mc-server-name { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mc-badges .pill { height: 22px; font-size: 11.5px; }
.mc-detail { min-width: 0; }
.mc-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; }
.mc-facts dt { color: var(--text-3); font-size: 13px; }
.mc-facts dd { margin: 0; }
.mc-facts code, .mc-join .mono { font-family: var(--mono); color: var(--gold); }
.dropzone {
  display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: 16px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(242, 196, 109, .4); background: rgba(242, 196, 109, .04); transition: background .15s, border-color .15s;
}
.dropzone .icon { width: 26px; height: 26px; color: var(--gold); }
.dropzone.over, .dropzone:hover { background: rgba(242, 196, 109, .09); border-color: rgba(242, 196, 109, .8); }
.mc-results { display: grid; gap: 8px; margin-top: 12px; }
.mc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid var(--border); }
.mc-row + .mc-row { margin-top: 8px; }
.mc-results .mc-row + .mc-row { margin-top: 0; }
.mc-row img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.mc-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mc-row a:hover { color: var(--accent); }
.mc-row.off { opacity: .55; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent-2); }
.switch input:checked + span::before { transform: translateX(18px); }
.mc-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mc-crumbs button { background: none; border: 0; color: var(--accent); padding: 2px 4px; border-radius: 6px; }
.mc-crumbs button:hover { background: var(--surface); }
.mc-file { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; }
.mc-file:hover { background: var(--surface); }
.mc-file-name { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); text-align: left; min-width: 0; padding: 4px 0; }
.mc-file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-file-name .icon { width: 17px; height: 17px; color: var(--text-3); }
.mc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mc-type { display: grid; gap: 3px; text-align: left; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.mc-type.active { background: var(--accent-soft); border-color: rgba(187, 166, 255, .45); }
.modal.wide { max-height: 90vh; overflow: auto; }
@media (max-width: 900px) {
  .mc-layout { grid-template-columns: 1fr; }
  .mc-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 4px; }
}
