:root {
  --canvas:#ececf3;
  --surface:#f1f1f7;
  --ink:#2b2940;
  --muted:#605e72;
  --line:#d7d6e1;
  --accent:#594793;
  --relief:5px 6px 13px #41415f20,-5px -5px 12px #ffffffdf;
  --key:2px 3px 5px #42415b27,-2px -2px 5px #fff;
  --well:inset 2px 2px 4px #46405c1c,inset -2px -2px 4px #ffffff;
  color:var(--ink);
  background:var(--canvas);
  font:14px/1.55 Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button,select {
  cursor:pointer;
}

button {
  border:0;
}

button:disabled {
  cursor:not-allowed;
  opacity:.48;
}

button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible {
  outline:3px solid #7058a6;
  outline-offset:3px;
}

button:active:not(:disabled) {
  transform:translateY(1px);
}

img {
  max-width:100%;
  display:block;
}

[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  line-height:1.2;
  font-weight:690;
  font-size:clamp(26px,2.45vw,36px);
  letter-spacing:-.035em;
}

h2 {
  font-size:17px;
  line-height:1.35;
  font-weight:680;
  letter-spacing:-.015em;
}

h3 {
  font-size:14px;
}

small,.muted {
  color:var(--muted);
}

.mono,.num {
  font-family:"IBM Plex Mono",Consolas,monospace;
  font-variant-numeric:tabular-nums;
}

.ico {
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:none;
}

.ico svg {
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
}

aside {
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
  background:linear-gradient(148deg,#f0f0f7,#e9e9f1);
  color:var(--ink);
  border-right:1px solid #d7d7e0;
  box-shadow:inset -1px 0 #fff9;
  padding:29px 17px 20px;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand strong {
  font:750 22px/1.2 "Inter",Arial,sans-serif;
  letter-spacing:-.065em;
}

.brand img {
  width:35px;
  height:35px;
  border-radius:11px;
  object-fit:contain;
}

.sidebrand {
  border-bottom:1px solid #ffffff19;
  border-color:var(--line);
  padding:0 7px 22px;
}

.sidebrand small {
  display:block;
  font-size:11px;
  margin-top:2px;
  color:#656076;
}

.sidelabel {
  font-size:11px;
  letter-spacing:.11em;
  font-weight:600;
  padding:0 11px;
  color:#656076;
  margin:29px 0 10px;
}

.nav {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav button {
  width:100%;
  background:transparent;
  text-align:left;
  padding:11px 12px;
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:550;
  color:#59566b;
  border-radius:12px;
}

.nav button:hover {
  background:#e6e5ef;
}

.nav button.active {
  color:#4d3b84;
  background:#e6e3f1;
  box-shadow:var(--well);
  font-weight:680;
}

.sidefoot {
  margin-top:auto;
  padding:15px 10px 0;
  border-top:1px solid #ffffff1c;
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  color:#656076;
  border-color:var(--line);
}

.avatar {
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:50%;
  box-shadow:var(--key);
  background:var(--surface);
  color:var(--accent);
}

.top {
  min-height:58px;
  display:grid;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(18px,3.2vw,55px);
  gap:10px;
  background:transparent;
  border-bottom:1px solid #dcdbe5;
  grid-template-columns:minmax(0,1fr) auto auto;
  column-gap:20px;
  padding-block:8px;
}

.crumb {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
}

.crumb b {
  font-weight:600;
  color:var(--ink);
}

.status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#5e5666;
  font-size:12px;
}

.status:before {
  content:'';
  width:7px;
  height:7px;
  border-radius:100%;
  background:#48836a;
  box-shadow:0 0 0 3px #48836a16;
}

.status.dirty:before {
  background:#c98639;
}

.main {
  max-width:1510px;
  margin:auto;
  padding:30px clamp(18px,3.2vw,55px) 42px;
}

.pagehead,.row,.between,.actions,.toolbar {
  display:flex;
  align-items:center;
  gap:10px;
}

.pagehead,.between {
  justify-content:space-between;
}

.pagehead {
  margin-bottom:23px;
  flex-wrap:wrap;
  gap:14px;
}

.actions,.toolbar {
  flex-wrap:wrap;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 13px;
  font-size:13px;
  font-weight:600;
  border:1px solid #fbfbff;
  background:linear-gradient(155deg,#f8f8fc,#ebebf2);
  color:#444155;
  box-shadow:var(--key);
  border-radius:10px;
  min-height:38px;
}

.btn:hover {
  background:#f9f8ff;
  color:#45356d;
}

.btn.primary {
  background:linear-gradient(145deg,#7561aa,#56418c);
  border-color:#6d589e;
  color:white;
  box-shadow:inset 0 1px #ffffff35,2px 3px 5px #53447139,-2px -2px 5px #fff;
}

.btn.primary:hover {
  background:linear-gradient(145deg,#6f599f,#4f3886);
}

.btn.subtle {
  background:#f5f1f5;
  border-color:transparent;
}

.btn .ico {
  width:16px;
  height:16px;
}

.iconbtn {
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border-radius:7px;
  color:#62596b;
  background:transparent;
}

.iconbtn:hover {
  background:#e5e1ef;
  color:var(--accent);
}

.media-order {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.media-sort-handle {
  cursor:grab;
  touch-action:none;
  user-select:none;
  color:var(--accent);
}

.sorting-media,.sorting-media .media-sort-handle {
  cursor:grabbing;
  user-select:none;
}

.media-sort-ghost {
  position:fixed;
  top:0;
  left:0;
  z-index:10;
  pointer-events:none;
  table-layout:fixed;
  background:var(--surface);
  box-shadow:0 6px 18px #34304639;
  opacity:.94;
}

.media-sort-placeholder td {
  background:#e4e0ee;
  box-shadow:inset 0 2px var(--accent),inset 0 -2px var(--accent);
}

.media-sort-placeholder td > * {
  opacity:0;
}

.grid {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(310px,.92fr);
  align-items:start;
  gap:24px;
}

.stack {
  display:grid;
  gap:22px;
}

.panel {
  min-width:0;
  background:var(--surface);
  border:1px solid #fafaff;
  box-shadow:var(--relief);
  border-radius:18px;
}

.pad {
  padding:22px 24px;
}

.panelhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:16px;
}

.logoedit {
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:16px;
}

.logotile {
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  background-color:#e9e8f1;
  border:1px solid #dfdce9;
  box-shadow:var(--well);
  border-radius:10px;
}

.logotile img {
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:12px;
}

.logoedit small {
  display:block;
  margin-top:4px;
  font-size:11px;
}

.field {
  display:grid;
  margin-top:12px;
  gap:6px;
}

.field>span,.label {
  font-size:12px;
  font-weight:650;
  color:#454255;
}

.select {
  width:auto;
  max-width:100%;
  padding:5px 7px;
  font-size:12px;
  border:1px solid #fbfbff;
  background:linear-gradient(155deg,#f8f8fc,#ebebf2);
  color:#444155;
  box-shadow:var(--key);
  border-radius:10px;
  min-height:38px;
}

.field input:not([type=checkbox]),.field textarea {
  width:100%;
  box-shadow:var(--well);
  border:1px solid #d6d4e1;
  background:#ededf4;
  border-radius:10px;
  color:var(--ink);
  padding:8px 12px;
  min-height:40px;
  min-width:0;
}

.field textarea {
  resize:vertical;
}

.pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.previewbox {
  overflow:hidden;
}

.previewhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 21px;
}

.previewhead small {
  font-size:11px;
}

.web {
  color:#faecff;
  background:radial-gradient(ellipse at 115% 24%,#5b224d 0%,transparent 58%),radial-gradient(ellipse at 0% 95%,#3c205a,transparent 58%),#1b1027;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:18px 20px 22px;
}

.web:before,.web:after {
  pointer-events:none;
  content:'';
  position:absolute;
  z-index:-1;
  width:320px;
  height:320px;
  border-radius:44%;
  border:1px solid #ffe2fa13;
  transform:rotate(27deg);
  right:-230px;
  top:-125px;
}

.web:after {
  width:450px;
  height:450px;
  right:-294px;
  top:-196px;
}

.webheader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  gap:6px;
}

.web .brand img {
  width:29px;
  height:29px;
  border-radius:8px;
}

.web strong.grad,.grad {
  background:linear-gradient(105deg,#ffe092,#ff699d);
  color:transparent;
  background-clip:text;
}

.web .brand strong {
  font-size:19px;
  overflow-wrap:anywhere;
}

.web .brand {
  min-width:0;
}

.web .brand small {
  display:block;
  color:#dabdd9;
  font-size:9px;
  overflow-wrap:anywhere;
}

.langchip {
  font-size:10px;
  border:1px solid #ffffff33;
  border-radius:18px;
  padding:3px 9px;
  white-space:nowrap;
}

.hero {
  font-size:clamp(22px,2.15vw,32px);
  line-height:1.28;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
  max-width:95%;
  font-weight:750;
}

.herosub {
  color:#d4bed8;
  margin:7px 0 12px;
  font-size:12px;
  overflow-wrap:anywhere;
}

.visitorcta {
  display:inline-flex;
  border:0;
  background:linear-gradient(100deg,#ffcf86,#ff82a2);
  color:#411632;
  padding:6px 14px;
  border-radius:20px;
  font-size:11px;
  font-weight:750;
  text-decoration:none;
}

.minihead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:22px 0 8px;
  font-size:13px;
}

.batch {
  color:#f3d9ec;
  background:#ffffff12;
  border:1px solid #ffffff32;
  border-radius:18px;
  padding:3px 9px;
  font-size:10px;
}

.posters {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.poster {
  border:1px solid #ffffff20;
  border-radius:7px;
  overflow:hidden;
  color:#e9ddea;
  background:#271b34;
  min-width:0;
}

.poster img,.noposter,.poster video {
  width:100%;
  height:76px;
  object-fit:cover;
  display:block;
}

.poster img {
  object-position:center 47%;
}

.poster b {
  display:block;
  padding:4px 6px;
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.noposter {
  background:linear-gradient(125deg,#34223f,#493752);
  display:grid;
  place-items:center;
  color:#c7b7cd;
  font-size:11px;
}

.previewfoot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#69616e;
  font-size:11px;
  gap:10px;
  padding:12px 20px;
}

.summaryfacts {
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}

.summaryfacts strong {
  color:var(--ink);
}

.bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.tablewrap {
  overflow:auto;
  max-width:100%;
  border-radius:0 0 17px 17px;
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap;
}

th,td {
  padding:9px 13px;
  border-bottom:1px solid #ede9ee;
  font-size:12px;
}

th {
  font-size:11px;
  font-weight:650;
  background:#e8e8f0;
  color:#605d72;
  border-color:#dcdae5;
}

tr:last-child td {
  border-bottom:0;
}

.thumb {
  width:39px;
  height:45px;
  object-fit:cover;
  background:#e4dce9;
  background-color:#e9e8f1;
  border:1px solid #dfdce9;
  box-shadow:var(--well);
  border-radius:10px;
}

.titlecell {
  display:flex;
  align-items:center;
  gap:10px;
  max-width:430px;
}

.titlecell b {
  display:block;
  font-size:13px;
  white-space:normal;
  overflow-wrap:anywhere;
}

.titlecell small {
  font-size:10px;
  display:block;
}

.pill {
  display:inline-flex;
  border-radius:20px;
  font-size:11px;
  padding:3px 8px;
  white-space:nowrap;
  background:#e1eee8;
  color:#336346;
}

.pill.off {
  background:#e5e2ef;
  color:#625872;
}

.tabstrip {
  display:inline-flex;
  padding:4px;
  gap:3px;
  border-radius:12px;
  background:#e7e6ee;
  box-shadow:var(--well);
}

.tabstrip button {
  background:transparent;
  font-size:12px;
  white-space:nowrap;
  border-radius:9px;
  color:var(--muted);
  padding:6px 12px;
}

.tabstrip button.on {
  color:#4d3c80;
  background:linear-gradient(140deg,#faf9ff,#f1f0f7);
  box-shadow:var(--key);
  font-weight:650;
}

.kpis {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}

.kpi {
  padding:17px;
}

.kpi b {
  display:block;
  font:650 32px/1.4 "Inter",Arial,sans-serif;
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
}

.kpi small {
  display:block;
  font-size:12px;
}

.chartrows {
  display:flex;
  align-items:end;
  gap:4px;
  height:125px;
  margin:14px 0 6px;
  border-bottom:1px solid #d7cfdb;
}

.chartrows>i {
  flex:1;
  min-height:0;
  border-radius:4px 4px 0 0;
  position:relative;
  background:#7d6da5;
}

.chartrows>i:nth-child(3n) {
  background:#a294c1;
}

.axis {
  display:flex;
  justify-content:space-between;
  color:#716a78;
  font-size:11px;
}

.empty {
  padding:30px 12px;
  text-align:center;
  border:1px dashed #d9d1de;
  border-radius:9px;
  color:var(--muted);
}

.dialog {
  padding:0;
  max-width:calc(100vw - 24px);
  background:var(--surface);
  border:1px solid #fafaff;
  --gutter:24px;
  width:560px;
  max-height:calc(100dvh - 36px);
  color:var(--ink);
  border-radius:22px;
  box-shadow:0 18px 60px #3030464a,0 4px 12px #46415f23,inset 0 1px white;
}

.dialog.wide {
  width:720px;
}

.dialog::backdrop {
  background:#3532465c;
  backdrop-filter:blur(2px);
}

.dhead,.dfoot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
  padding:14px var(--gutter);
  gap:10px;
  border-color:var(--line);
}

.dhead {
  border-bottom:1px solid var(--line);
  min-height:63px;
}

.dfoot {
  justify-content:flex-end;
  border-top:1px solid var(--line);
  flex-wrap:wrap;
}

.dbody {
  max-height:none;
  overflow:auto;
  flex:1;
  min-height:0;
  padding:18px var(--gutter) 20px;
  overscroll-behavior:contain;
}

.dbody .field:first-child {
  margin-top:0;
}

.dbody .web {
  border-radius:10px;
}

.notice {
  padding:9px 12px;
  margin:8px 0;
  font-size:12px;
  border-radius:10px;
  background:#e7e4ee;
  color:#52485f;
}

.err {
  color:#953343;
  font-size:12px;
  min-height:1.5em;
  overflow-wrap:anywhere;
}

.diff {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #eee8f1;
  align-items:flex-start;
  border-color:var(--line);
}

.diff b {
  max-width:65%;
  overflow-wrap:anywhere;
  text-align:right;
}

.toast {
  position:fixed;
  z-index:9;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  background:#33273c;
  color:white;
  border-radius:8px;
  padding:10px 17px;
  box-shadow:0 4px 22px #25182a3b;
  max-width:90%;
}

.sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}

.linkbtn {
  background:transparent;
  font-size:12px;
  font-weight:600;
  padding:4px;
  color:var(--accent);
}

.libtop {
  background:transparent;
  border-bottom:1px solid var(--line);
  padding:18px 22px;
}

.sep {
  border:0;
  border-top:1px solid #e9e2eb;
  margin:13px 0;
}

.nowrap {
  white-space:nowrap;
}

.numbadge {
  font:11px Consolas,monospace;
  background:#fff3;
  border-radius:5px;
  padding:2px 5px;
}

.previewcaption {
  font-size:11px;
  color:#786a81;
  margin-top:9px;
}

.filepick {
  display:grid;
  place-items:center;
  width:100%;
  font-weight:650;
  background:#eae8f3;
  box-shadow:var(--well);
  border:1px dashed #aba2c4;
  border-radius:12px;
  color:var(--accent);
  min-height:84px;
  margin-bottom:17px;
}

.filepick:hover {
  background:#e7e3f0;
}

.inlinecount {
  font-size:12px;
  color:var(--muted);
}

.w100 {
  width:100%;
}

.login-shell {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:20px;
}

.login-card {
  width:min(390px,100%);
  display:grid;
  padding:30px;
  gap:18px;
  border-radius:22px;
}

.login-card h1 {
  font-size:29px;
}

.login-card .field {
  gap:7px;
  margin:0;
}

.logout {
  background:transparent;
  text-decoration:underline;
  margin-left:auto;
  padding:4px;
  font-size:12px;
  color:var(--accent);
}

.sidebrand strong {
  overflow-wrap:anywhere;
  font-weight:720;
  letter-spacing:-.055em;
}

.sidebrand img:not([src]),.sidebrand img[src=""] {
  display:none;
}

.feedback {
  border:1px solid #e0c7b5;
  background:#fff6eb;
  padding:12px 15px;
  margin-bottom:16px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  border-radius:10px;
}

.feedback.error {
  background:#fff2f4;
  border-color:#e5c1ca;
}

.feedback p {
  max-width:75ch;
}

.feedback .toolbar {
  gap:6px;
}

.langstatus {
  font-size:11px;
  margin:7px 0 4px;
  color:var(--muted);
}

.langstatus b {
  color:#4f3a59;
}

.visitorcta:disabled {
  opacity:.5;
  cursor:default;
}

.titlecell>div {
  min-width:0;
}

.titlecell b,.titlecell small {
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:310px;
}

.dialog[open] {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.queue-list {
  max-height:none;
  overflow:visible;
}

.queue-item {
  padding:9px 0;
  border-bottom:1px solid #eee8f1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:6px 12px;
  border-color:var(--line);
}

.queue-item span {
  overflow-wrap:anywhere;
}

.queue-item .err {
  grid-column:1/-1;
  grid-row:2;
}

.notice strong {
  color:#4c3552;
}

.stats-note {
  font-size:11px;
  color:var(--muted);
}

.chartrows>i:hover {
  background:#58448d;
}

.download-help {
  font-size:11px;
  color:var(--muted);
}

.edit-preview {
  width:100%;
  max-height:160px;
  border-radius:8px;
  background:#21172b;
}

.action-error {
  margin:12px 0 0;
}

.loading-label {
  color:#7b546a;
}

.status.failed:before {
  background:#b64861;
}

.status.busy:before {
  background:#9671ad;
}

.notice,.previewcaption,.previewfoot {
  overflow-wrap:anywhere;
}

.source-path {
  font-size:11px;
  overflow-wrap:anywhere;
  color:var(--muted);
}

.filepick:disabled {
  cursor:wait;
}

.media-toolbar {
  justify-content:flex-end;
}

body.publishing #surface {
  pointer-events:none;
  opacity:.7;
}

input[type=checkbox] {
  width:15px;
  height:15px;
  vertical-align:middle;
  accent-color:var(--accent);
}

.empty .btn {
  margin-top:12px;
}

.tablewrap:focus-visible {
  outline:3px solid #7058a6;
  outline-offset:-3px;
}

.queue-title {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.web .hero,.web .herosub {
  white-space:pre-line;
}

.sidebrand img {
  box-shadow:var(--key);
}

.nav .ico {
  width:17px;
  height:17px;
}

#close {
  border:1px solid #fbfbff;
  background:linear-gradient(155deg,#f8f8fc,#ebebf2);
  color:#444155;
  box-shadow:var(--key);
  border-radius:10px;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  min-height:36px;
  padding:0;
  flex:none;
}

.select:hover {
  background:#f9f8ff;
  color:#45356d;
}

#close:hover {
  background:#f9f8ff;
  color:#45356d;
}

.btn:disabled {
  opacity:1;
  background:#e5e4ed;
  border-color:#e2e0e9;
  color:#777487;
  box-shadow:inset 1px 1px 2px #60557912;
}

.libtop .bar:first-child {
  margin-bottom:16px;
}

td {
  border-color:#dcdae5;
}

table tr:hover td {
  background:#ebeaf3;
}

.dhead h2 {
  font-size:20px;
  line-height:1.3;
}

#close .ico {
  display:block;
  width:18px;
  height:18px;
}

#close svg {
  display:block;
}

.dfoot .btn {
  min-width:76px;
  min-height:40px;
}

.dfoot .primary {
  min-width:112px;
}

.dbody .logoedit {
  gap:14px;
  margin:0 0 15px;
}

.dbody .logotile {
  width:58px;
  height:58px;
}

.dbody .logotile img {
  max-height:44px;
}

.dbody .field {
  min-width:0;
  margin-top:14px;
}

.dbody .download-help {
  margin-top:5px;
}

.dbody .row {
  min-width:0;
  flex-wrap:wrap;
}

.dbody .row>small {
  min-width:0;
  overflow-wrap:anywhere;
}

.dbody .source-path {
  margin-top:3px;
}

.dbody .field:has(#eenabled)>span {
  display:flex;
  gap:9px;
  align-items:center;
  min-height:32px;
}

.field input[type=checkbox] {
  margin:0;
  padding:0;
  width:17px;
  height:17px;
  min-height:17px;
  flex:none;
  box-shadow:none;
  accent-color:var(--accent);
}

.err:empty {
  display:none;
}

.err:not(:empty) {
  margin-top:8px;
}

.queue-item .linkbtn {
  justify-self:end;
  grid-column:3;
  grid-row:1;
}

.queue-item small {
  grid-column:2;
  grid-row:1;
}

.dbody .empty {
  padding:24px 12px;
}

.shared-title {
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

.shared-title summary {
  cursor:pointer;
  width:fit-content;
  padding:4px 0;
}

.shared-title[open] .field {
  margin:6px 0 16px;
}

.content-language {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.content-language .select {
  min-width:110px;
  padding-inline:10px;
}

@media(min-width:1550px) {
  .web {
    padding:23px 27px;
  }
  .poster img,.noposter,.poster video {
    height:95px;
  }
}

@media(max-width:1060px) {
  .layout {
    grid-template-columns:164px minmax(0,1fr);
  }
  aside {
    padding-left:10px;
    padding-right:10px;
    padding-inline:12px;
  }
  .main {
    padding:23px 18px;
  }
  .top {
    padding:0 18px;
  }
  .grid {
    grid-template-columns:minmax(0,1fr) minmax(255px,.85fr);
    gap:16px;
  }
  .pad {
    padding:18px;
  }
  .web {
    padding:14px;
  }
  .previewhead {
    padding:13px;
  }
  .sidebrand {
    padding-left:4px;
  }
}

@media(max-width:820px) {
  .layout {
    display:block;
  }
  aside {
    position:static;
    height:auto;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:14px;
    justify-content:space-between;
    padding:10px 14px;
    border:0;
    border-bottom:1px solid var(--line);
  }
  .sidebrand {
    border:0;
    padding:0;
  }
  .sidebrand img {
    width:28px;
    height:28px;
  }
  .sidebrand strong {
    font-size:16px;
  }
  .sidebrand small,.sidelabel,.sidefoot {
    display:none;
  }
  .nav {
    flex-direction:row;
    gap:3px;
  }
  .nav button {
    width:auto;
    padding:9px;
    font-size:12px;
    gap:5px;
  }
  .top {
    min-height:43px;
  }
  .grid {
    grid-template-columns:1fr 1fr;
  }
  .sidefoot {
    display:flex;
    border:0;
    margin:0;
    padding:0;
  }
  .sidefoot .avatar,.sidefoot>span:not(.avatar) {
    display:none;
  }
  .kpis {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px) {
  .grid {
    grid-template-columns:1fr;
  }
  .main {
    padding:19px 13px;
  }
  .top {
    grid-template-columns:minmax(0,1fr) auto;
    gap:4px 12px;
    padding:8px 14px;
  }
  .sidebrand strong {
    display:none;
  }
  .nav button {
    font-size:12px;
    padding:8px;
    gap:3px;
  }
  .pagehead {
    margin-bottom:14px;
  }
  .pagehead h1 {
    font-size:25px;
  }
  .kpis {
    grid-template-columns:1fr 1fr;
  }
  .pad {
    padding:15px;
  }
  .pair {
    grid-template-columns:1fr;
  }
  .logoedit {
    margin-bottom:10px;
  }
  .dialog {
    --gutter:16px;
    max-width:calc(100vw - 24px);
    width:560px;
    max-height:calc(100dvh - 32px);
    border-radius:17px;
  }
  .kpi b {
    font-size:25px;
  }
  .posters .poster img,.posters .noposter {
    height:80px;
  }
  .actions {
    gap:6px;
  }
  .btn {
    padding:7px 9px;
  }
  .crumb {
    font-size:11px;
  }
  .logout {
    padding:5px 0;
  }
  .titlecell {
    max-width:230px;
  }
  .titlecell b,.titlecell small {
    max-width:170px;
  }
  .previewfoot {
    font-size:10px;
  }
  .media-toolbar {
    justify-content:flex-start;
  }
  .sidebrand {
    flex:none;
    padding:0;
  }
  aside {
    gap:8px;
    padding:9px 12px;
  }
  .nav {
    flex:1;
    justify-content:center;
  }
  .field input,.field textarea {
    font-size:16px;
  }
  .feedback {
    padding:10px;
  }
  .dhead {
    padding-block:12px;
    min-height:56px;
  }
  .dfoot {
    padding-block:12px;
  }
  .dhead h2 {
    font-size:18px;
  }
  .dbody {
    padding-block:15px;
  }
  .dfoot .btn {
    flex:1 1 auto;
    min-width:0;
  }
  .dfoot .primary {
    min-width:0;
    flex-grow:1.4;
  }
  .libtop {
    padding:15px;
  }
  .stack {
    gap:16px;
  }
  .top .status {
    grid-column:1 / -1;
    font-size:11px;
    text-align:start;
  }
  .content-language .select {
    min-width:94px;
  }
}

@media(prefers-reduced-motion:reduce) {
  button:active:not(:disabled) {
    transform:none;
  }
}

.site-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-controls [hidden] { display: none; }
#site-select { max-width: 13em; }
.site-preview { display: block; width: 100%; height: min(65vh, 620px); border: 0; border-radius: 14px; background: #10081d; }
#dbody .site-preview { height: min(69vh, 740px); }
@media (max-width: 650px) {
  .top:has(#site-control:not([hidden])) .site-controls { grid-column: 1 / -1; }
}

#password-form { margin-top: 16px; gap: 12px; }
#password-form .field, #password-form .err { margin: 0; }
.sidefoot button { white-space: nowrap; }
@media (max-width: 650px) {
  aside { flex-wrap: wrap; gap: 6px; }
  .sidefoot { margin-inline-start: auto; }
}

.storage-panel { max-width: 780px; }
.storage-panel .toolbar { margin-top: 16px; flex-wrap: wrap; }
.storage-panel .diff b { overflow-wrap: anywhere; text-align: end; }
.storage-form { display: grid; gap: 16px; }
.storage-form .field { margin: 0; min-width: 0; }
.storage-form .err:empty { display: none; }
.storage-form summary { cursor: pointer; font-weight: 600; }
.storage-form details[open] .storage-fields { margin-top: 12px; }
.storage-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.storage-fields :is(input,select) { min-width: 0; width: 100%; }
@media (max-width: 650px) {
  .storage-fields { grid-template-columns: minmax(0,1fr); }
  aside { flex-wrap: wrap; }
  aside .nav { order: 1; flex-basis: 100%; justify-content: space-between; }
}
