:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e6e9ef;
  --line-strong: #d7dce4;
  --text: #1a1d23;
  --muted: #5b6472;
  --faint: #98a1b0;
  --acc: #2f6bff;
  --acc-hover: #1f56e5;
  --acc-soft: #eef3ff;
  --ok: #17b26a;
  --ok-bg: #edfaf3;
  --warn: #dc6803;
  --warn-bg: #fff6ed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 12px;
  height: 52px;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 35%, transparent);
  position: sticky;
  top: 0;
  z-index: 50;
}
.crm-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px 2px; border-radius: 10px; color: var(--text);
}
.crm-logo {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef1f6; color: var(--acc); font-weight: 800; font-size: 11px;
}
.crm-brand-text { font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.crm-nav-cluster {
  display: flex; align-items: center; gap: 1px; padding: 3px;
  border-radius: 12px; background: #f4f6f9; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.navbtn {
  height: 30px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 500; box-shadow: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.navbtn:hover { background: #fff; color: var(--text); }
.navbtn.on { background: #fff; color: var(--acc); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.who b { color: var(--text); font-weight: 650; }
.avatar {
  width: 28px; height: 28px; border-radius: 999px; background: #eef3ff; color: var(--acc);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.page { padding: 18px 20px 120px; max-width: 1180px; margin: 0 auto; }
.crumb { color: var(--faint); font-size: 12px; margin-bottom: 6px; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 16px; letter-spacing: -.03em; }
#view-edit h1 { margin-bottom: 12px; }
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.grow { flex: 1; }
button, .btn {
  height: 34px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--acc); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
button:hover, .btn:hover { background: var(--acc-hover); }
button.ghost, .btn.ghost {
  background: #fff; color: var(--text); border: 1px solid var(--line-strong); font-weight: 550;
}
button.ghost:hover, .btn.ghost:hover { color: var(--acc); border-color: #b9c9ff; background: var(--acc-soft); }
button.link { background: transparent; color: var(--acc); height: auto; padding: 0; }
button:disabled { opacity: .4; cursor: default; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
code { background: #f3f5f9; padding: 3px 7px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #334155; }
.pill {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--ok-bg); color: var(--ok);
}
.pill.off { background: var(--warn-bg); color: var(--warn); }
.actions { display: flex; gap: 4px; justify-content: flex-end; }

.field { min-width: 0; margin: 0 0 12px; }
.field > label, label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  margin: 0 0 6px;
}
input, select, textarea {
  width: 100%; height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong);
  border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%235b6472' stroke-width='1.8' stroke-linecap='round'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
select[multiple] {
  appearance: auto;
  background-image: none;
  height: auto;
  min-height: 132px;
  padding: 6px;
  cursor: default;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #8eafff; box-shadow: 0 0 0 3px rgba(47,107,255,.16);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row-host { grid-template-columns: 1fr 1fr; }
.row > .field, .row3 > .field { margin-bottom: 0; }

.tabs {
  display: flex; gap: 1px; margin: 0 -18px 18px; padding: 0 10px 0;
  overflow: auto; border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent; color: var(--muted); height: 42px; border-radius: 8px 8px 0 0;
  padding: 0 14px; font-weight: 550; box-shadow: none; border-bottom: 2px solid transparent;
}
.tab:hover { background: transparent; color: var(--acc); }
.tab.on { color: var(--acc); border-bottom-color: var(--acc); font-weight: 650; }
.pane { display: none !important; }
.pane.on { display: block !important; }
#pane-main.pane.on {
  display: flex !important; flex-direction: column; gap: 0;
}
#pane-main .sec {
  margin: 0; padding: 14px 0;
  border: 0; border-bottom: 1px solid var(--line);
}
#pane-main .sec:first-child { padding-top: 4px; }
#pane-main .sec.last, #pane-main .sec:last-child {
  border-bottom: 0; padding-bottom: 4px;
}
#pane-main .sec-h { margin: 0 0 10px; }
#pane-main .sec-h h3 { margin: 0; font-size: 14px; }
#pane-main .sec-h p { margin: 3px 0 0; }
#pane-main .field { margin: 0; }
#pane-main .row, #pane-main .row3 { margin: 0 0 12px; }
#pane-main .row:last-child, #pane-main .row3:last-child { margin-bottom: 0; }
#pane-main .hint { margin: 8px 0 0; }
#pane-main .field .hint { margin: 4px 0 0; }

.hint { color: var(--faint); font-size: 12px; line-height: 1.45; margin: 6px 0 0; font-weight: 450; }
.hidden { display: none !important; }
.sec { margin: 0 0 22px; padding: 0 0 4px; }
.sec + .sec { border-top: 1px solid var(--line); padding-top: 18px; }
#pane-main .sec + .sec { padding-top: 14px; margin-top: 0; border-top: 0; }
.sec-h { margin: 0 0 14px; }
.sec-h h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.sec-h p { margin: 0; color: var(--faint); font-size: 12px; font-weight: 450; line-height: 1.45; }
.sec .field { margin-bottom: 12px; }
.sec .row, .sec .row3 { margin-bottom: 12px; }
.sec .row > .field, .sec .row3 > .field { margin-bottom: 0; }
.count { float: right; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }

.desc-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px 20px; margin: 0 0 20px; padding: 14px 16px;
  background: #f8f9fc; border: 1px solid var(--line); border-radius: 14px;
}
.desc-toolbar-copy { max-width: 280px; }
.desc-toolbar-copy b { display: block; font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.desc-toolbar-copy p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.45; }
.lang-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 240px; justify-content: flex-end; }
.langrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 16px; }
.langpill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px 4px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text);
}
.langpill b {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #eef1f6; color: var(--muted); border-radius: 6px; padding: 2px 6px;
}
.langpill.on { border-color: #b9c9ff; background: var(--acc-soft); color: var(--acc); }
.langpill.on b { background: #fff; color: var(--acc); }
.langpill em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--acc); }
.langpill .aslink { height: auto; padding: 0; background: none; color: var(--faint); font-size: 11px; font-weight: 600; border: 0; }
.langpill .aslink:hover { color: var(--acc); background: none; }
.langpill .x { width: 20px; height: 20px; padding: 0; border-radius: 999px; background: transparent; color: var(--faint); border: 0; }
.langpill .x:hover { color: #d92d20; background: #fef3f2; }
.addlang { display: flex; gap: 6px; width: 240px; }
.addlang select { height: 34px; }
.addlang button { height: 34px; padding: 0 12px; white-space: nowrap; }

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.toggles .swrow { margin: 0; }
.swrow .sub { display: block; font-size: 11px; font-weight: 450; color: var(--faint); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid #d9d9d9; border-radius: 6px; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 550; color: var(--text);
}
.chip.on { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.chip button { border: 0; background: transparent; cursor: pointer; color: #98a2b3; padding: 0; height: auto; width: auto; box-shadow: none; }
.chip.addchip { width: 32px; padding: 0; justify-content: center; font-size: 16px; font-weight: 500; color: #667085; }
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 24, 40, .45);
  display: grid; place-items: center;
  padding: 16px;
}
.modal.hidden { display: none !important; }
.modal-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 16px 48px rgba(16, 24, 40, .18);
  border: 1px solid var(--line);
}
.modal-card header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 16px;
}
.modal-card h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.modal-card .ico { width: 32px; height: 32px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.crop-card { width: min(760px, 100%); }
.crop-card header { align-items: flex-start; }
.crop-spec { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-weight: 550; }
.crop-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); font-weight: 550; margin: -8px 0 12px;
}
.crop-meta b { color: var(--ink); font-weight: 700; }
.crop-presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.crop-presets.hidden { display: none; }
.crop-presets .ghost { height: 32px; padding: 0 12px; }
.crop-presets .ghost.on { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.crop-stage {
  display: grid; place-items: center;
  background:
    linear-gradient(45deg, #eceff3 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #eceff3 75%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #eceff3 75%) 8px 8px / 16px 16px,
    linear-gradient(45deg, #eceff3 25%, transparent 25%) 8px 8px / 16px 16px,
    #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 220px;
  padding: 12px;
  overflow: hidden;
}
#cropCanvas {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  cursor: grab;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
  background: #111318;
}
#cropCanvas:active { cursor: grabbing; }
.crop-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 4px;
}
.crop-zoom { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; font-size: 12px; font-weight: 650; color: var(--muted); }
.crop-zoom input { flex: 1; }
.hint.err { color: #d92d20; min-height: 16px; }
#addLangSel { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.pcheck {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.pcheck input { position: absolute; opacity: 0; width: 0; pointer-events: none; }
.pcheck .box {
  width: 18px; height: 18px; border: 2px solid var(--line-strong); border-radius: 5px;
  display: grid; place-items: center; background: #fff; flex: 0 0 18px;
}
.pcheck input:checked + .box { background: var(--acc); border-color: var(--acc); }
.pcheck input:checked + .box::after {
  content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.media-grid { display: grid; grid-template-columns: 112px 200px 1fr; gap: 12px; align-items: stretch; }
.drop {
  position: relative; min-height: 112px; border: 1px dashed var(--line-strong);
  border-radius: 14px; background: #f8f9fc; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--faint);
  font-size: 12px; font-weight: 600; text-align: center; overflow: hidden; padding: 10px;
}
.drop:hover { border-color: #b9c9ff; background: var(--acc-soft); color: var(--acc); }
.drop input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3;
  width: 100% !important; height: 100% !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; border-radius: 14px;
  font-size: 0; background: transparent;
}
.drop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; pointer-events: none;
}
.drop .plus {
  width: 28px; height: 28px; border-radius: 8px; background: var(--acc-soft); color: var(--acc);
  display: grid; place-items: center; font-size: 18px; line-height: 1; pointer-events: none;
}
.drop-cap { font-size: 12px; font-weight: 650; pointer-events: none; }
.drop-icon { width: 112px; height: 112px; min-height: 112px; }
.drop-poster { min-height: 112px; }
.drop .media-x {
  display: none; position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 22px; height: 22px; border: 0; border-radius: 999px;
  background: rgba(17,24,39,.72); color: #fff; font-size: 16px; line-height: 1;
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.drop:has(img:not(.hidden)) .media-x { display: grid; }
.shot-chip { position: relative; display: inline-flex; }
.shot-chip .media-x { display: grid; position: absolute; top: 4px; right: 4px; z-index: 5;
  width: 20px; height: 20px; border: 0; border-radius: 999px;
  background: rgba(17,24,39,.72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.shots-col { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; min-height: 112px; }
.drop-add { width: 88px; min-height: 112px; flex: 0 0 88px; }
.shotprev { display: flex; gap: 8px; flex-wrap: wrap; }
.shotprev img { width: 64px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

.revrow { display: grid; grid-template-columns: 1fr 80px 2fr 32px; gap: 8px; margin-bottom: 8px; align-items: start; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.login-card {
  width: 380px; background: #fff; padding: 36px 32px; border-radius: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.login-card h1 { margin: 0 0 4px; text-align: center; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.login-card button { width: 100%; height: 42px; margin-top: 16px; }
.logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--acc-soft); color: var(--acc);
  display: grid; place-items: center; font-weight: 800;
}
.filters { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; }
.filters label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.filters input { width: 168px; height: 36px; padding: 0 12px; }
.tbl-wrap { overflow: auto; border-radius: 0 0 16px 16px; }
.tblbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 6px 14px; position: sticky; left: 0;
}
.tblbar b { font-size: 14px; }
.tblbar input[type=date] { width: auto; height: 36px; }
.arch { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-weight: 550; }
.arch input { width: 16px; height: 16px; }
table.grid { font-size: 13px; min-width: 1360px; border-collapse: separate; border-spacing: 0; }
table.grid th {
  white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); background: #f8f9fc;
  padding: 10px 10px; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #eceff5;
}
table.grid td { padding: 12px 10px; vertical-align: middle; border-bottom: 1px solid #f1f3f8; }
table.grid tbody tr:hover td { background: #f8faff; }
.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.pct { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.ico {
  width: 30px; height: 30px; padding: 0; border-radius: 9px;
  background: #fff; color: #667085; border: 1px solid #e4e8f0;
}
.ico svg { width: 14px; height: 14px; display: block; }
.ico:hover { color: var(--acc); border-color: #c5d4ff; background: var(--acc-soft); }
.cellid, .hostcell { display: flex; align-items: center; gap: 6px; }
.host { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; }
.bp {
  font-size: 10px; font-weight: 700; border: 1px solid var(--line-strong); background: #fff; color: var(--muted);
  border-radius: 6px; padding: 2px 6px; height: 24px; min-width: 28px; cursor: pointer;
}
.bypass-card { width: min(420px, 100%); text-align: left; }
.bypass-url-row { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; }
#bypassUrl {
  flex: 1; font-size: 13px; line-height: 1.4; color: var(--text); word-break: break-all;
  text-decoration: none; font-weight: 550;
}
#bypassUrl:hover { color: var(--acc); }
#bypassQr { display: block; margin: 16px auto 4px; width: 180px; height: 180px; }
.tip { font-size: 12px; margin-left: 8px; font-weight: 600; }
.ns-status { font-size: 12px; line-height: 1.55; color: #667085; margin: 8px 0 0; }
.ns-status .ns-line { margin: 0 0 2px; }
.ns-status .ns-err { color: #d92d20; font-weight: 600; }
.ns-status b { font-weight: 650; }
.ns-copy { width: 22px; height: 22px; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.ns-note { color: #98a2b3; margin-top: 2px; }
.domblock { display: flex; flex-direction: column; gap: 0; }
.setup-steps { margin: 0 0 12px; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.5; }
.setup-steps b { font-weight: 650; }
.host-domrow { margin-top: 0; }
.pager {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 12px 6px 14px; color: var(--muted); font-size: 13px;
}
.pager button { height: 30px; min-width: 30px; padding: 0 10px; }
.pager .onpage { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.naming { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #475467; }
.created { white-space: nowrap; font-size: 12px; color: #344054; }
.created .muted { font-size: 11px; }
.muted { color: var(--muted); }
label.req::before { content: "* "; color: #f04438; }
.simpick { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.simpick input { width: auto; }
.acc { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 12px; margin: 10px 0; background: #fff; }
.acc summary { cursor: pointer; font-weight: 650; padding: 12px 0; color: var(--text); }
.chk { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.chk input { width: auto; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.plats .chip {
  height: 36px; padding: 0 14px; border-radius: 10px; gap: 8px;
  transition: border-color .15s, background .15s, color .15s;
}
.plats .chip input { width: auto; margin: 0; accent-color: var(--acc); }
.plats .chip:has(input:checked) {
  border-color: #b9c9ff; color: var(--acc); background: var(--acc-soft);
}
.swrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 10px 14px; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0;
}
.switch { position: relative; width: 44px; height: 22px; flex: 0 0 44px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #d7dce4; border-radius: 22px; transition: .2s; }
.switch i::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--acc); }
.switch input:checked + i::after { transform: translateX(22px); }

/* Settings tab */
.set-pane { display: none; }
.set-pane.on { display: flex !important; flex-direction: column; gap: 14px; }
.set-sec {
  margin: 0; padding: 16px 16px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe;
}
.set-sec-last { margin-bottom: 4px; }
.set-sec-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.set-sec-hd h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.set-sec-hd p { margin: 3px 0 0; color: var(--faint); font-size: 12px; font-weight: 450; line-height: 1.45; }
.set-sec-hd code { font-size: 11px; }
.set-count {
  flex: 0 0 auto; margin-top: 2px;
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--acc-soft); color: var(--acc);
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
.set-count.empty { background: #f0f2f6; color: var(--muted); }
.set-toggles { display: flex; flex-direction: column; gap: 8px; }
.set-field { margin: 14px 0 0; max-width: 320px; }
.set-row { margin: 0 0 12px; }
.set-sec .acc { margin: 0 0 8px; background: #fff; }
.set-sec .acc:last-of-type { margin-bottom: 10px; }
.set-sec .hint { margin: 10px 0 0; }

.cbox {
  min-height: 48px; padding: 6px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-strong); cursor: text;
}
.cbox.open, .cbox:focus-within {
  border-color: #8eafff; box-shadow: 0 0 0 3px rgba(47,107,255,.16);
}
.cbox-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
.cbox-in input {
  flex: 1; min-width: 140px; height: 30px; border: 0; box-shadow: none;
  padding: 0 4px; background: transparent; outline: none;
}
.cbox-in input:focus { box-shadow: none; }
.cchip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--acc-soft); color: var(--acc); border-radius: 8px;
  padding: 2px 6px 2px 10px; font-size: 12px; font-weight: 650; height: 28px;
}
.cchip em { font-style: normal; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchip b { font-weight: 700; opacity: .7; margin-right: 2px; }
.cx {
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: var(--acc); box-shadow: none; font-size: 15px; line-height: 1;
}
.cx:hover { background: #dce6ff; }
.cbox-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 10px 0 0;
}
.cbox-quick-l {
  font-size: 11px; font-weight: 650; color: var(--faint); margin-right: 2px;
}
.cbox-qbtn {
  height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 550;
}
.cbox-clear {
  margin-left: auto; height: auto; padding: 0 4px; font-size: 12px; font-weight: 600;
}
.copt {
  width: 100%; min-height: 36px; padding: 8px 10px; border-radius: 8px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; font-weight: 550; box-shadow: none;
}
.copt:hover { background: #f4f6f9; }
.copt.on { background: var(--acc-soft); color: var(--acc); }
.copt .ccode {
  flex: 0 0 28px; font-size: 11px; font-weight: 700; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.copt.on .ccode { color: var(--acc); }
.copt .cname { flex: 1; min-width: 0; }
.copt .cmark {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11px; color: transparent; background: #fff;
}
.copt.on .cmark { border-color: var(--acc); background: var(--acc); color: #fff; }
.cempty { padding: 14px 10px; color: var(--faint); font-size: 12px; text-align: center; }

@media (max-width: 720px) {
  .set-row.row3 { grid-template-columns: 1fr; }
  .cbox-clear { margin-left: 0; width: 100%; text-align: left; }
}
.form-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  margin: 0; padding: 10px 16px;
  background: color-mix(in srgb, #fff 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, .06);
}
.form-foot-inner {
  max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.edit-card { padding: 4px 22px 16px; }
.edit-card .tabs { margin: 0 -22px 4px; padding: 0 12px 0; }
#pane-met .hint-card { margin: 4px 0 16px; }
.met-sec {
  margin: 0 0 14px; padding: 16px 16px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe;
}
.met-sec:last-of-type { margin-bottom: 4px; }
.met-sec-hd {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.met-sec-hd h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.met-sec-hd p { margin: 2px 0 0; color: var(--faint); font-size: 12px; font-weight: 450; line-height: 1.4; }
.met-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800; line-height: 1;
}
.met-logo.fb { background: #e8f0fe; color: #1877f2; }
.met-logo.tw { background: #f0f1f3; color: #0f1419; font-size: 15px; }
.met-sub {
  margin: 0 0 14px; padding: 0 0 14px;
  border-bottom: 1px solid #eef1f6;
}
.met-sub.last { margin: 0; padding: 0; border-bottom: 0; }
.met-sub-h { margin: 0 0 10px; }
.met-sub-h b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.met-sub-h span { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; font-weight: 450; line-height: 1.4; }
.met-sub-h code {
  font-size: 11px; padding: 1px 5px; border-radius: 5px;
  background: #fff; border: 1px solid var(--line);
}
#pane-met .field > label em {
  font-style: normal; color: var(--faint); font-weight: 550; margin-left: 4px;
}
.met-opt {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--acc); background: var(--acc-soft); border-radius: 4px;
  padding: 1px 5px; margin-left: 4px; vertical-align: 1px;
}
.met-key { max-width: 220px; margin: 0; }
.met-list { display: flex; flex-direction: column; gap: 8px; }
.metrow {
  display: grid;
  grid-template-columns: minmax(140px, .9fr) minmax(180px, 1.3fr) auto;
  gap: 10px 12px; align-items: end;
  padding: 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
}
.metrow.verify { grid-template-columns: 1fr auto; }
.metrow .field { margin: 0; }
.metrow .field > label { margin-bottom: 5px; }
.met-row-tools {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.pix-capi {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 6px;
  background: #f2f4f7; color: var(--faint);
}
.pix-capi.on { background: var(--ok-bg); color: var(--ok); }
.metrow .switch { width: 40px; height: 22px; flex: 0 0 40px; }
.metrow .switch input:checked + i::after { transform: translateX(18px); }
.metrow .pix-del { color: var(--faint); }
.metrow .pix-del:hover { color: #d92d20; border-color: #fecdca; background: #fef3f2; }
.met-add {
  margin-top: 10px; height: 34px; padding: 0 12px;
  border-style: dashed; color: var(--muted); font-weight: 600;
}
.met-add:hover { border-style: solid; }
button.plus { width: 36px; height: 32px; padding: 0; margin-top: 4px; }

.csel { position: relative; width: 100%; }
.csel-native {
  position: absolute !important; opacity: 0 !important; pointer-events: none !important;
  width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important;
}
.csel-btn {
  width: 100%; height: 40px; padding: 0 36px 0 12px; border-radius: 10px;
  background: #fff; color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-weight: 550; justify-content: flex-start; text-align: left;
  box-shadow: none; position: relative; display: flex;
}
.csel-btn:hover { background: #fff; color: var(--text); border-color: #8eafff; }
.csel.open .csel-btn, .csel-btn:focus {
  outline: none; border-color: #8eafff; box-shadow: 0 0 0 3px rgba(47,107,255,.16);
}
.csel-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-btn svg {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); flex: none;
}
.csel.open .csel-btn svg { transform: translateY(-50%) rotate(180deg); }
.csel-menu {
  display: none; position: fixed; z-index: 400;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
  padding: 6px; max-height: 280px; overflow: auto;
}
.csel-menu.open { display: block; }
.csel-opt {
  width: 100%; min-height: 36px; height: auto; padding: 8px 10px; border-radius: 8px;
  background: transparent; color: var(--text); border: 0; box-shadow: none;
  font: inherit; font-weight: 500; justify-content: space-between; text-align: left;
  display: flex;
}
.csel-opt:hover { background: #f4f6fb; color: var(--text); }
.csel-opt.on { background: var(--acc-soft); color: var(--acc); font-weight: 650; }
.csel-opt.on::after { content: "✓"; font-size: 13px; color: var(--acc); }
.csel-opt.hi { background: var(--acc-soft); }

.tagbox {
  min-height: 40px; padding: 4px 36px 4px 8px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-strong); position: relative;
  cursor: text;
}
.tagbox.open, .tagbox:focus-within {
  border-color: #8eafff; box-shadow: 0 0 0 3px rgba(47,107,255,.16);
}
.tagbox-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.tagbox-in input {
  flex: 1; min-width: 80px; height: 28px; border: 0; box-shadow: none;
  padding: 0 4px; background: transparent; outline: none;
}
.tagbox-in input:focus { box-shadow: none; }
.tagbox-ico {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.tagbox-ico svg { width: 18px; height: 18px; display: block; }
.tagchip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef0f4; color: var(--text); border-radius: 6px;
  padding: 2px 6px 2px 8px; font-size: 13px; font-weight: 550; height: 26px;
}
.tagchip em { font-style: normal; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagx {
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #667085; box-shadow: none; font-size: 15px; line-height: 1;
}
.tagx:hover { background: #dde1ea; color: var(--text); }
.tagmenu {
  display: none; position: fixed; z-index: 400;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
  padding: 6px; overflow: auto;
}
.tagmenu.open { display: block; }
.tagopt {
  width: 100%; min-height: 36px; padding: 8px 10px; border-radius: 8px;
  background: transparent; color: var(--text); border: 0; box-shadow: none;
  font: inherit; font-weight: 550; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
}
.tagopt:hover { background: #f4f6fb; color: var(--text); }
.tagopt.on { background: var(--acc-soft); }
.tagopt.on::after { content: "✓"; font-size: 14px; color: var(--acc); font-weight: 700; }
.tagopt.create { color: var(--acc); font-weight: 650; }
.tagempty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.bp[data-act="tag"]:hover { border-color: #8eafff; color: var(--acc); background: var(--acc-soft); }
.domrow {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap;
}
.domrow input { flex: 1; min-width: 180px; max-width: 360px; }
.domrow input:disabled { background: #f2f4f7; color: #667085; }
.cfbadge {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: #f38020; color: #fff; border-radius: 6px; padding: 3px 6px;
}
.cfbadge.off { background: #d0d5dd; }
.lamp.on { color: #dc6803; border-color: #f7b27a; background: #fff6ed; }
.lamp.ok { color: #17b26a; border-color: #abefc6; background: #edfaf3; }
.domerr {
  width: 100%; font-size: 12px; color: #b54708; margin: 0 0 8px;
  background: var(--warn-bg); border: 1px solid #f7b27a; border-radius: 10px; padding: 8px 10px;
}
.ns-status, .hint-card {
  margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px;
  background: #f8f9fc; border: 1px solid var(--line);
}
.ns-status.ok, .hint-card.ok { background: var(--ok-bg); border-color: #abefc6; }
.ns-status.warn { background: var(--warn-bg); border-color: #f7d7a8; }
.hint-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hint-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px; background: #d2d6db; color: #344054;
}
.hint-pill.info { background: var(--acc-soft); color: var(--acc); }
.hint-pill.warn { background: #feefc6; color: #b54708; }
.hint-pill.ok { background: #d1fadf; color: #067647; }
.hint-k { color: var(--muted); font-size: 11px; font-weight: 650; min-width: 64px; }
.hint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.hint-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 8px; color: var(--text);
}
.hint-muted { color: var(--faint); font-size: 12px; }
.hint-foot { margin: 8px 0 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.hint-foot.quiet { margin: 0 0 10px; }
.hint-steps { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.55; }
.hint-dns {
  margin-top: 8px; font-size: 12px; padding: 8px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.hint-dns.ok { background: #f6fef9; border-color: #abefc6; color: #067647; }
.hint-dns.bad { background: #fff8f0; border-color: #f7d7a8; color: #b54708; }
.link-hints { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.link-hints .link-row {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0;
}
.link-hints code {
  flex: 1; min-width: 0; font-size: 11px; color: #344054; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#addDomHint { color: var(--muted); background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 0; }
#addDomErr:empty, #addDomHint:empty { display: none; }
#addDomErr { background: #fff8f0; border: 1px solid #f7d7a8; border-radius: 10px; padding: 8px 10px; }
.search-wrap { display: flex; align-items: center; gap: 8px; }
.search-wrap input { flex: 1; }

.desc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}
.desc-form { min-width: 0; }
body.on-desc .page { max-width: 1420px; }
body.on-desc .form-foot-inner { max-width: 1420px; }
.desc-default-lang { margin: 0; min-width: 200px; }
.desc-default-lang label { margin-bottom: 6px; }
.desc-jump {
  position: sticky; top: 52px; z-index: 20;
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 6px 0 8px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.desc-jump a {
  height: 30px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 650; color: var(--muted);
  background: #f4f6f9; border: 1px solid transparent;
}
.desc-jump a:hover { color: var(--acc); background: var(--acc-soft); }
#pane-desc .desc-sec { scroll-margin-top: 108px; }
#pane-desc .desc-sec {
  margin: 0 0 16px; padding: 16px 16px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe;
}
#pane-desc .desc-sec.last { margin-bottom: 4px; }
#pane-desc .desc-sec .sec-h { margin-bottom: 12px; }
#pane-desc .field { margin-bottom: 12px; }
#pane-desc .row, #pane-desc .row3 { margin-bottom: 12px; }
#pane-desc .row > .field, #pane-desc .row3 > .field { margin-bottom: 0; }
#pane-desc .toggles { margin: 4px 0 0; }
#desc-copy textarea { min-height: 140px; }
#desc_whats_new { min-height: 88px; }
#pane-desc .count { float: none; margin-left: 8px; font-size: 11px; }
#pane-desc .count.tight { color: var(--warn); }
.store-mini {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.store-mini-ico {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: #eef1f6; overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.store-mini-ico img { width: 100%; height: 100%; object-fit: cover; }
.store-mini-ph { font-size: 11px; font-weight: 800; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.store-mini-ico:has(img:not(.hidden)) .store-mini-ph { display: none; }
.store-mini-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.store-mini-name { display: flex; align-items: center; gap: 6px; }
.store-mini-name b { font-size: 15px; letter-spacing: -.02em; }
.store-mini-txt > span { color: var(--muted); font-size: 12px; font-weight: 550; }
.vbadge {
  width: 16px; height: 16px; border-radius: 999px; background: #1a73e8; color: #fff;
  font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1;
}
.media-item { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.media-lab { font-size: 12px; font-weight: 650; color: var(--muted); }
.media-lab em { font-style: normal; color: var(--faint); font-weight: 600; margin-left: 6px; }
.media-shots { min-width: 0; }
.media-grid { display: grid; grid-template-columns: 132px minmax(200px, 280px) 1fr; gap: 12px; align-items: start; }
.yt-field { margin-top: 14px; }
#pane-desc .drop-icon { width: 132px; height: 132px; min-height: 132px; aspect-ratio: 1 / 1; }
#pane-desc .drop-poster {
  width: 100%; min-height: 0; height: auto;
  aspect-ratio: 1024 / 500;
}
#pane-desc .drop-add {
  width: 88px; min-height: 0; height: 88px; flex: 0 0 88px;
  aspect-ratio: 1 / 1;
}
#pane-desc .shotprev img.port { width: 72px; height: 128px; }
#pane-desc .shotprev img.land { width: 128px; height: 72px; }
#pane-desc .shotprev img { width: auto; height: 96px; object-fit: contain; background: #f8f9fa; }
.store-preview { position: sticky; top: 64px; padding-bottom: 8px; }
.spv-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin: 0 0 10px; flex-wrap: wrap;
}
.spv-toolbar b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.spv-tpl { display: block; font-size: 11px; color: var(--faint); font-weight: 600; margin-top: 2px; }
.spv-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spv-actions .ghost { height: 28px; padding: 0 10px; font-size: 12px; }
.spv-mode.on { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.spv-open {
  font-size: 12px; font-weight: 650; white-space: nowrap; height: auto; padding: 0 6px;
  background: transparent; color: var(--acc);
}
.spv-device {
  background: #111827; border-radius: 28px; padding: 12px 10px 16px;
  box-shadow: 0 14px 36px rgba(16,24,40,.18);
}
.spv-device.desk {
  background: #e8eaed; border-radius: 14px; padding: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}
.spv-screen {
  position: relative; background: #fff; border-radius: 18px; overflow: hidden;
  height: 640px;
}
.spv-device.desk .spv-screen { height: 520px; border-radius: 8px; }
.spv-screen iframe {
  border: 0; width: 100%; height: 100%; background: #fff; display: block;
}
.spv-device.phone .spv-screen {
  width: 360px; margin: 0 auto; height: 800px;
}
.spv-device.phone iframe {
  width: 360px; height: 800px;
}
.spv-device.desk iframe {
  width: 1100px; height: 1490px;
  transform: scale(0.347); transform-origin: top left;
}
.spv-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 24px; text-align: center; color: #667085; font-weight: 600;
  background: #f8f9fc;
}
.spv-empty.hidden { display: none; }
.spv-hint { margin: 8px 2px 0; }

@media (max-width: 980px) {
  .desc-split { grid-template-columns: 1fr; }
  .store-preview { position: static; order: -1; }
  .desc-jump { top: 52px; }
}
@media (max-width: 900px) {
  .filters { flex-wrap: wrap; }
  .row3, .media-grid, .toggles { grid-template-columns: 1fr; }
  .metrow, .metrow.verify { grid-template-columns: 1fr; }
  .met-row-tools { justify-content: flex-start; padding-bottom: 0; padding-top: 2px; }
  .met-key { max-width: none; }
  .page { padding: 12px 12px 110px; }
  .crm-brand-text { display: none; }
  .who { display: none; }
  .lang-tools { justify-content: flex-start; }
  .addlang { width: 100%; }
}
@media (max-width: 680px) {
  .row, .revrow, .row-host { grid-template-columns: 1fr; }
}
