:root {
  --ink: #f4efff;
  --paper: #0d0716;
  --sheet: #140c24;
  --line: #3c2d58;
  --muted: #b7a8cc;
  --amber: #8b5cf6;
  --amber-deep: #c4b5fd;
  --night: #0d0716;
  --panel: #1a1030;
  --panel-2: #261545;
  --line-dark: #3a2a56;
  --bone: #f7f3ff;
  --taupe: #a894c0;
  --good: #3dcf7a;
  --bad: #f07167;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --serif: "Outfit", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(124, 77, 255, 0.18), transparent 55%),
    var(--night);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: 0; margin: 0; }
h1 { font-size: 16px; line-height: 1.35; }
h2 { font-size: 12px; }
h3 { font-size: 12px; }

.wrap { max-width: 1480px; margin: 0 auto; padding: 18px 16px 40px; }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ff8a3d, #e85aad, #b06bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--night); color: var(--bone); border-radius: 11px;
  font-family: var(--serif); font-size: 1.2rem;
}
.top nav { display: flex; gap: 14px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.top nav a:hover { color: var(--ink); }
.search { display: flex; gap: 8px; }
.search input, textarea, select, .panel input[type="text"], .panel input[type="password"], .panel input:not([type="checkbox"]) {
  width: 100%;
  background: #12091e;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.search input { width: 180px; }
.search button, .btn {
  background: var(--amber);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }
.btn.tiny { padding: 6px 10px; font-size: 0.82rem; }
.stack { padding: 18px 22px 8px; display: grid; gap: 14px; }
.grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.main h1 { margin-bottom: 8px; }
.lead, .muted, .meta { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 0.86rem; margin: 6px 0 0; }
.side .box { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #1a1030; }
.side ul, .plain { list-style: none; margin: 10px 0 0; padding: 0; }
.side li a {
  display: flex; justify-content: space-between; gap: 10px;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.side li a.on { color: var(--amber-deep); font-weight: 700; }
.side em, .plain em { color: var(--muted); font-style: normal; }
.row {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.shot {
  display: block; aspect-ratio: 1; background: #1a102c; border-radius: 12px; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.row h2 { font-size: 1.25rem; }
.row h2 a { text-decoration: none; }
.ad-empty, .ad-html {
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 52px;
  padding: 10px;
  color: var(--taupe);
  background: rgba(255,255,255,0.04);
  overflow: auto;
}
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px 20px; color: var(--muted); font-size: 0.85rem;
}
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 6px; }
.pager a, .pager button { margin-right: 8px; }
.empty { padding: 28px 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr); gap: 18px; margin: 18px 0; }
.frame { background: #1a102c; border-radius: 16px; overflow: hidden; min-height: 180px; }
.frame img { width: 100%; height: auto; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.spec div { border-top: 1px solid var(--line); padding-top: 8px; }
.spec dt { color: var(--muted); font-size: 0.78rem; }
.spec dd { margin: 0; font-weight: 650; }
.crumbs { color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: var(--amber-deep); }
.copy { margin-top: 22px; }
.copy p { white-space: pre-wrap; }
.related { list-style: none; padding: 0; margin: 10px 0 0; }
.related li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.related a { text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

body.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(139, 92, 246, 0.28), transparent 50%),
    var(--night);
}
body.gate main, .install {
  width: min(560px, calc(100% - 28px));
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--amber-deep); margin: 0 0 8px; }
.back { color: var(--muted); text-decoration: none; font-size: 0.9rem; }

body.desk { background: var(--night); color: var(--bone); }
.desk-main { width: min(1080px, calc(100% - 28px)); margin: 28px auto 60px; }
.desk-links { display: flex; gap: 14px; align-items: center; }
.desk-links .out { color: #f07167; }
.desk .stats.slim { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk .stats.slim section { padding: 8px 10px; }
.desk .stats.slim strong { font-size: 1.15rem; }
.desk .stats.slim p { font-size: 11px; }
.desk-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.desk-top a { color: var(--taupe); }
.desk h1 { color: var(--bone); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tabs a {
  color: var(--taupe); text-decoration: none; border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 7px 12px; background: var(--panel);
}
.tabs a.on { color: #fff; background: var(--amber); border-color: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 16px; }
.stats section, .panel, .login {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 14px;
}
.stats p { margin: 0; color: var(--taupe); font-size: 0.82rem; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; }
.panel { margin: 12px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 0.86rem; color: var(--taupe); }
label.check { grid-template-columns: auto 1fr; align-items: center; color: var(--bone); }
textarea { min-height: 90px; resize: vertical; }
.desk input, .desk textarea, .desk select, .gate input, .gate textarea, .gate select {
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  color: var(--bone);
  border-radius: 10px;
  padding: 10px 12px;
}
.gate input, .gate textarea, .gate select { background: #12091e; color: var(--bone); border-color: var(--line); }
.files { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.files li, .plain li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 10px;
}
.files img { width: 92px; height: 58px; object-fit: cover; border-radius: 8px; background: #000; }
.plain li { grid-template-columns: 1fr auto auto; }
.pill { color: var(--good); font-size: 0.82rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.token {
  display: block; margin-top: 8px; padding: 10px; border-radius: 10px;
  background: #090807; color: var(--bone); word-break: break-all; font-size: 0.82rem;
}
.flash { border-radius: 12px; padding: 10px 12px; background: #2a2144; color: var(--bone); }
.flash.ok { background: #123524; color: #b6f3d0; }
.flash.bad { background: #3a1820; color: #ffc1b8; }
.desk .flash.ok { background: #163524; color: #b7ebc8; }
.desk .flash.bad { background: #3a1d18; color: #ffb1a6; }
.link { background: none; border: 0; padding: 0; cursor: pointer; }
.link.bad { color: #ffb1a6; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.checks li.ok::before { content: "OK · "; color: var(--good); }
.checks li.bad::before { content: "Missing · "; color: var(--bad); }
.login { max-width: 420px; }
.desk .btn.ghost { color: var(--bone); border-color: var(--line-dark); }

@media (max-width: 860px) {
  .top, .grid, .split, .stats, .grid2 { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .row { grid-template-columns: 96px 1fr; }
  .row .btn { grid-column: 2; justify-self: start; }
  .files li { grid-template-columns: 72px 1fr; }
  .files form, .files .pill { grid-column: 2; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card {
  background: #2a1844;
  border: 1px solid #4a356e;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .shot { border-radius: 0; aspect-ratio: 16/9; }
.card h2 { font-size: 10px; font-weight: 400; line-height: 1.35; padding: 8px 10px 0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .meta { padding: 4px 12px 8px; }
.card .btn { margin: auto 12px 12px; }

body.public { font-family: "Outfit", "Segoe UI", sans-serif; font-size: 13px; }
body.public h1 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.public h2 { font-size: 12px; font-weight: 650; letter-spacing: 0; }
body.public .lead, body.public .muted, body.public .crumbs { font-size: 12px; }
body.public .side .box { background: #1b1233; border-radius: 10px; }
body.public .list-block { background: #1a1030; border-radius: 10px; padding: 12px; }
body.public .card {
  background: #24163f;
  border-radius: 10px;
  border-color: #3a2a56;
}
body.public .card .shot { aspect-ratio: 16/9; border-radius: 10px 10px 0 0; }
body.public .card h2 {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  padding: 8px 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
body.public .card h2 a { text-decoration: none; font-weight: 400; }
body.public .card .meta { font-size: 10px; padding: 4px 10px 0; }
body.public .split { background: #160e28; border-radius: 10px; padding: 12px; }
body.public .spec { background: #2c1b4e; border-radius: 10px; padding: 8px 10px; }
body.public .copy { background: #211536; border-radius: 10px; padding: 12px 14px; }
body.public .related-wrap { background: #2a1848; border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
body.public .frame { border-radius: 10px; }
body.public .frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ads-top, .rail { display: grid; gap: 12px; align-content: start; }
.rail { justify-items: center; }
.ad-slot { margin: 0; padding: 0; border: 0; background: none; overflow: visible; }
.ad-slot iframe { max-width: 100%; }
.grid.has-rail { grid-template-columns: 210px minmax(0, 1fr) 300px; }
.card-break { grid-column: 1 / -1; }
.search button.icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}
.slider { background: #100818; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.slider .slide { display: none; }
.slider .slide.on { display: block; }
.slider img { width: 100%; height: 240px; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #5b4b78; cursor: pointer; }
.dots button.on { width: 18px; background: #c4b5fd; }
body.public .btn.dl, body.public .btn.watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
body.public .btn.dl {
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.28);
}
body.public .btn.dl .ico, body.public .btn.watch .ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
body.public .btn.dl .ico { background: #fff; color: #5b21b6; }
body.public .btn.dl.tiny { font-size: 10px; padding: 3px 10px 3px 3px; }
body.public .btn.dl.tiny .ico { width: 26px; height: 26px; }
body.public .btn.dl.big { font-size: 13px; }
body.public .card .btn.dl { margin: 8px auto 10px; }
.btn-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
body.public .btn.watch { background: transparent; color: #fff; border: 1px solid #7c3aed; }
body.public .btn.watch .ico { background: #7c3aed; color: #fff; }
.related { list-style: none; padding: 0; margin: 10px 0 0; }
.related li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin: 0 0 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}
.related li:nth-child(even) { background: rgba(255, 255, 255, 0.05); }
.rel-shot { position: relative; display: block; width: 128px; aspect-ratio: 16/9; border-radius: 8px; overflow: visible; background: #100818; }
.rel-shot > img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.rel-shot .zoom {
  display: none;
  position: absolute;
  z-index: 30;
  left: calc(100% + 10px);
  top: 50%;
  width: 280px;
  transform: translateY(-50%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.rel-shot:hover .zoom, .rel-shot:focus .zoom { display: block; }
.rel-title {
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-meta { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.gate-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 280px); gap: 16px; align-items: start; }
.gate-grid.no-left { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
.gate-grid.no-right { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.gate-grid.no-left.no-right { grid-template-columns: minmax(0, 1fr); }
.gate-card { background: #1a1030; border-radius: 10px; padding: 14px; }
.gate-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: center; }
.gate-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #100818; }
.gate-thumb img { width: 100%; height: 100%; object-fit: cover; }
.center { text-align: center; }
.post-count { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.post-count span { background: #1a1030; border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.find { display: flex; gap: 8px; margin: 10px 0; }
.find input { max-width: 360px; }
.editor { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 16px; }
.preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #100818; }
.nothumb { width: 128px; height: 72px; display: grid; place-items: center; background: #100818; color: var(--taupe); font-size: 11px; border-radius: 8px; }
.desk .files li { grid-template-columns: 128px minmax(0, 1fr) auto; }
.desk .files img { width: 128px; height: 72px; object-fit: cover; border-radius: 8px; background: #100818; }
@media (max-width: 800px) {
  .editor { grid-template-columns: 1fr; }
}

.files li.has-shot { grid-template-columns: 112px minmax(0, 1fr) auto; }
.files strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.desk h1 { font-size: 22px; line-height: 1.2; }
body.public h1, body.public .gate-card h1 { font-size: 16px !important; line-height: 1.35 !important; }
body.public h2 { font-size: 12px !important; }
body.public .card h2, body.public .card h2 a { font-size: 10px !important; font-weight: 400 !important; }
body.public .btn.dl, body.public .btn.watch, .btn, .search button { border-radius: 8px; }
body.public .side .box { background: #2a1850; border-radius: 8px; }
body.public .slider { background: #102033; border-radius: 8px; }
body.public .list-block { background: #1b1430; border-radius: 8px; }
body.public .card { background: #321c52; border-radius: 8px; }
body.public .split { background: #152033; border-radius: 8px; }
body.public .spec { background: #1b2c44; border-radius: 8px; }
body.public .copy { background: #1b2618; border-radius: 8px; }
body.public .related-wrap { background: #2c1824; border-radius: 8px; }
body.public .gate-card { background: #241838; border-radius: 8px; }
.rel-shot { overflow: visible; z-index: 1; }
.rel-shot > img { width: 128px; height: 72px; object-fit: cover; border-radius: 6px; transition: transform .15s ease; }
.rel-shot:hover { z-index: 6; }
.rel-shot:hover > img { transform: scale(2.4); transform-origin: left center; position: relative; z-index: 7; box-shadow: 0 14px 36px rgba(0,0,0,.6); }
.ad-slot, .ads-top, .card-break { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ad-slot { margin-left: auto; margin-right: auto; }
.ad-slot img, .ad-slot iframe, .ad-slot ins { margin-left: auto; margin-right: auto; }
.rail { justify-items: center; }
.mini { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.desk .files strong a { color: inherit; text-decoration: none; }
.desk .files .shotlink { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tags a { font-size: 11px; text-decoration: none; padding: 3px 8px; border-radius: 99px; background: #2a1848; color: var(--bone); }
.gate-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 280px); gap: 16px; align-items: start; }
.rail { min-width: 0; }
.rail > img, .ad-slot > img { max-width: 100%; height: auto; }
.mini .btn { min-height: 36px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.mini .go-title { background: #6d28d9; color: #fff; }
.mini .go-thumb { background: #0f766e; color: #fff; }
.mini .go-view { background: #b45309; color: #fff; text-align: center; }
.mini .go-edit { background: #334155; color: #fff; text-align: center; }
.files li { scroll-margin-top: 18px; }
.files li.just-changed { outline: 2px solid #f5c542; background: #3a2a12; }
.gate-related { margin-top: 16px; }
.gate-related .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.side-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; text-decoration: none; align-items: center; }
.side-list img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; background: #100818; }
.side-list span { font-size: 11px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
@media (max-width: 800px) {
  .gate-related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
input[type="color"] { height: 42px; padding: 4px; background: #12091e; }

fieldset.panel legend { padding: 0 6px; color: var(--taupe); }
@media (max-width: 980px) {
  .grid.has-rail, .gate-grid, .gate-grid.no-left, .gate-grid.no-right, .gate-head { grid-template-columns: 1fr; }
  .rel-shot:hover > img { transform: none; }
  .related li { grid-template-columns: 96px minmax(0, 1fr); }
  .related .btn { grid-column: 2; justify-self: start; }
}

/* Kinora admin: calm green workspace, independent of the public site theme. */
body.desk {
  --ink: #e7f5eb;
  --paper: #07130c;
  --sheet: #0b1b11;
  --line: #244a31;
  --muted: #a6bbaa;
  --amber: #16803c;
  --amber-deep: #86efac;
  --night: #07130c;
  --panel: #0e2115;
  --panel-2: #102a19;
  --line-dark: #244a31;
  --bone: #effaf1;
  --taupe: #b1c8b6;
  --good: #4ade80;
  background: radial-gradient(1000px 500px at 0% -15%, rgba(34, 197, 94, .13), transparent 58%), #07130c;
  color: var(--bone);
  font-size: 14px;
}
body.desk .desk-main { width: min(1240px, calc(100% - 32px)); margin: 30px auto 64px; }
body.desk .desk-top { align-items: center; padding: 0 2px 8px; }
body.desk .desk-top a { color: #b8d7c0; }
body.desk .desk-top .out { color: #fca5a5; }
body.desk .kicker { color: #86efac; }
body.desk .tabs { gap: 8px; margin: 16px 0 22px; }
body.desk .tabs a { color: #b8d7c0; border-color: #28553a; background: #0b1d12; transition: background .16s ease, border-color .16s ease, color .16s ease; }
body.desk .tabs a:hover { color: #effaf1; border-color: #3e8a58; background: #102b19; }
body.desk .tabs a.on { color: #06210f; border-color: #4ade80; background: #4ade80; font-weight: 750; }
body.desk .panel, body.desk .stats section, body.desk .login { border-color: #244a31; background: linear-gradient(145deg, #10251a, #0c1b12); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
body.desk .btn, body.desk .search button { color: #06210f; background: #4ade80; border: 1px solid #4ade80; border-radius: 9px; font-weight: 750; transition: transform .14s ease, background .14s ease, box-shadow .14s ease; }
body.desk .btn:hover, body.desk .search button:hover { background: #86efac; border-color: #86efac; box-shadow: 0 6px 18px rgba(34, 197, 94, .2); transform: translateY(-1px); }
body.desk .btn.ghost { color: #d9f3df; background: #10291a; border-color: #326b45; }
body.desk .btn.ghost:hover { background: #173b25; border-color: #4ade80; }
body.desk input:not([type="checkbox"]):not([type="radio"]), body.desk textarea, body.desk select { width: 100%; min-width: 0; color: #effaf1; background: #09170e; border: 1px solid #315b3e; border-radius: 9px; padding: 10px 12px; }
body.desk input:focus, body.desk textarea:focus, body.desk select:focus { outline: 3px solid rgba(74, 222, 128, .2); border-color: #4ade80; }
body.desk input[type="checkbox"] { accent-color: #22c55e; }
body.desk label { color: #c1d8c6; }
body.desk .flash.ok { color: #d7fbe0; background: #12351f; border: 1px solid #28623a; }
body.desk .flash.bad { color: #ffd2d2; background: #351719; border: 1px solid #6b3030; }
body.desk .post-count span { color: #d5ebd9; background: #10271a; border-color: #28553a; }
body.desk .pill { color: #86efac; }
body.desk .token { color: #c7decf; background: #07120b; border: 1px solid #203d2a; }
body.desk .import-jump { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: #a7f3bd; font-size: 13px; text-decoration: none; }
body.desk .import-search-panel { padding: 18px; }
body.desk .import-search-panel h2, body.desk .import-log h2, body.desk .import-settings h2 { color: #effaf1; font-size: 17px; }
body.desk .import-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
body.desk .import-search-form .search-term { display: grid; gap: 6px; }
body.desk .import-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
body.desk .import-filter label { min-width: 0; }
body.desk .import-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 12px 0; }
body.desk .import-action { display: flex; align-items: end; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #244a31; border-radius: 12px; background: #0c1d12; }
body.desk .import-action form { display: contents; }
body.desk .import-action .btn { min-height: 40px; }
body.desk .import-action label { flex: 1; min-width: 85px; }
body.desk .import-bulk { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0 8px; padding: 14px; border: 1px solid #2b5b3d; border-radius: 12px; background: #10271a; }
body.desk .import-bulk label { min-width: 140px; }
body.desk .import-bulk .btn { min-height: 40px; }
body.desk .remote-files { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
body.desk .remote-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 12px; border: 1px solid #244a31; border-radius: 12px; background: linear-gradient(100deg, #102318, #0c1b12); transition: border-color .15s ease, background .15s ease; }
body.desk .remote-file:hover { border-color: #3c8354; background: #11291a; }
body.desk .remote-file-main { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
body.desk .remote-thumb { display: grid; place-items: center; width: 132px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; color: #a8c8b0; background: #07140c; font-size: 12px; }
body.desk .remote-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.desk .remote-details { min-width: 0; }
body.desk .remote-details strong { display: block; color: #f0faf2; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
body.desk .remote-details p { margin: 5px 0 0; color: #a8c2ae; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
body.desk .remote-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 150px; }
body.desk .remote-controls label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
body.desk .remote-controls form { margin: 0; }
body.desk .remote-empty { padding: 24px 16px; border: 1px dashed #315b3e; border-radius: 12px; color: #bdd3c2; text-align: center; }
body.desk .import-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
body.desk .import-pager { margin: 12px 0; padding: 12px; border: 1px solid #3b8051; border-radius: 12px; background: linear-gradient(110deg, #12351f, #0d2115); }
body.desk .import-pager strong { color: #e7f8eb; }
body.desk .import-page-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
body.desk .import-page-controls label { display: flex; align-items: center; gap: 8px; }
body.desk .import-page-controls input { width: 88px !important; }
body.desk .import-result-note { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid #4ade80; border-radius: 6px; background: #10271a; color: #d5ebd9; }
body.desk .import-log { margin-top: 18px; }
body.desk .import-log summary { color: #e1f3e5; font-weight: 700; cursor: pointer; }
body.desk .import-log pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
body.desk .import-settings { margin-top: 20px; border-top: 2px solid #2d7145; }
body.desk .import-settings-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
body.desk .secret-state { display: inline-flex; align-items: center; gap: 6px; color: #a7f3bd; font-size: 12px; }
body.desk .secret-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
body.desk .import-settings textarea { min-height: 78px; }
body.desk .import-settings .import-keys { min-height: 70px; }
body.desk .import-settings .check { margin-top: 4px; }
body.desk .import-settings .clear-secret { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed #315b3e; border-radius: 9px; }
body.desk .import-save { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  body.desk .import-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.desk .desk-main { width: min(100% - 22px, 1240px); margin: 18px auto 40px; }
  body.desk .desk-top { align-items: flex-start; flex-direction: column; }
  body.desk .desk-links { width: 100%; justify-content: space-between; }
  body.desk .tabs { gap: 6px; }
  body.desk .tabs a { padding: 7px 10px; font-size: 12px; }
  body.desk .import-search-form, body.desk .import-filter { grid-template-columns: 1fr; }
  body.desk .import-actions { grid-template-columns: 1fr; }
  body.desk .import-action { align-items: stretch; }
  body.desk .remote-file { grid-template-columns: 1fr; }
  body.desk .remote-file-main { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  body.desk .remote-thumb { width: 96px; }
  body.desk .remote-controls { justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
  body.desk .import-bulk { align-items: stretch; }
  body.desk .import-bulk label, body.desk .import-bulk .btn { width: 100%; }
  body.desk .import-pager, body.desk .import-page-controls { align-items: stretch; }
  body.desk .import-page-controls { width: 100%; }
  body.desk .import-page-controls .btn { flex: 1 1 42%; }
  body.desk .import-page-controls label { flex: 1 1 100%; }
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
  margin-bottom: 18px;
}
.hero a.shot { aspect-ratio: 16/9; border-radius: 16px; position: relative; }
.hero a.shot span {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: #fff; font-weight: 800; font-size: 1.4rem; text-shadow: 0 2px 16px #000;
}
.bars { display: flex; align-items: end; gap: 10px; height: 220px; }
.bars div { flex: 1; text-align: center; }
.bars i {
  display: block; margin: 0 auto; width: 36px; border-radius: 8px 8px 0 0;
  background: linear-gradient(#c4b5fd, #6d28d9);
}
.bars b { display: block; font-size: 0.75rem; margin-bottom: 4px; }
.bars small { display: block; color: #f5c542; font-size: 0.72rem; }
.range { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.range a { text-decoration: none; border-radius: 12px; padding: 8px 12px; background: var(--panel); color: var(--taupe); }
.range a.on { background: var(--amber); color: #fff; }
.metric {
  background: linear-gradient(145deg, #2a1558, #1a1038);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 16px;
}
.metric strong { display: block; font-size: 2rem; }
.live {
  margin-left: auto;
  border: 1px solid rgba(61, 207, 122, 0.4);
  background: rgba(61, 207, 122, 0.12);
  color: #b6f3d0;
  border-radius: 999px;
  padding: 6px 12px;
}
table.perf { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.perf th, table.perf td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line-dark); }
table.perf img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

body.desk .metric { background: linear-gradient(145deg, #12351f, #0d2115); border-color: rgba(74, 222, 128, .32); }
body.desk .bars i { background: linear-gradient(#86efac, #15803d); }
body.desk .range a.on { background: #4ade80; color: #06210f; }
body.desk .mini .go-title, body.desk .mini .go-thumb, body.desk .mini .go-view { color: #06210f; background: #4ade80; }
body.desk .mini .go-edit { color: #e7f5eb; background: #234a31; }
