/* Studio dùng thử: giao diện tối kiểu app tạo video (panel nhập bên trái, lưới video bên phải). */
body.studio {
  --paper: #0e0d0c;
  --card: #181614;
  --card-2: #211e1b;
  --ink: #f4efe7;
  --ink-2: #cfc7bb;
  --muted: #8f877b;
  --line: #2a2723;
  --line-2: #3a3530;
  --accent: #ff5a3c;
  --accent-2: #ff7a5f;
  --accent-soft: rgb(255 90 60 / 14%);
  --ok: #3ccf8e;
  --ok-soft: rgb(60 207 142 / 14%);
  --bad: #ff6b6b;
  --bad-soft: rgb(255 107 107 / 14%);
  --shadow: 0 10px 40px -12px rgb(0 0 0 / 60%);
  color-scheme: dark;
  min-height: 100dvh;
}
.studio .input, .studio .textarea { background: var(--card-2); border-color: var(--line-2); color: var(--ink); }
.studio .input:focus, .studio .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.studio a { color: inherit; }
.studio .btn { background: var(--ink); color: #111; border-color: var(--ink); }
.studio .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.studio .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.studio .alert.bad { background: var(--bad-soft); color: #ffb4b4; }
.studio svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Thanh trên */
.st-top {
  position: sticky; top: 0; z-index: 30; height: 56px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgb(14 13 12 / 85%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.st-badge { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; }
.st-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.st-credits {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px;
}
.st-credits svg { width: 15px; height: 15px; fill: var(--accent); stroke: none; }
.st-menu { position: relative; }
.st-menu summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.st-menu summary::-webkit-details-marker { display: none; }
.st-menu summary img { width: 100%; height: 100%; object-fit: cover; }
.st-menu-pop {
  position: absolute; right: 0; top: 44px; min-width: 240px; display: grid; padding: 6px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
}
.st-menu-pop a, .st-menu-pop button { text-align: left; padding: 9px 12px; border-radius: 8px; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.st-menu-pop a:hover, .st-menu-pop button:hover { background: var(--card-2); color: var(--ink); }
.st-menu-email { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }

.st-loading { display: grid; place-items: center; min-height: 70dvh; color: var(--muted); }

/* Đăng nhập */
.st-login {
  display: grid; place-items: center; min-height: calc(100dvh - 56px); padding: 32px 16px;
  background: radial-gradient(60% 50% at 50% 0%, rgb(255 90 60 / 16%), transparent 70%);
}
.st-login-card { width: 100%; max-width: 440px; display: grid; gap: 18px; text-align: center; }
.st-login-card h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.st-login-visual { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 4px; }
.mini-phone { width: 92px; aspect-ratio: 9 / 16; border-radius: 16px; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(40% 25% at 50% 36%, #8e8172 0 60%, transparent 61%), linear-gradient(180deg, #3a332c, #1c1916); }
.mini-phone.b { background: radial-gradient(40% 25% at 50% 36%, var(--accent) 0 60%, transparent 61%), linear-gradient(180deg, #4a2b22, #1c1412); transform: translateY(10px); }
.mini-phone span { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 600; background: rgb(0 0 0 / 50%); padding: 2px 6px; border-radius: 999px; }
.mini-arrow { color: var(--muted); font-weight: 700; }
.st-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-perks li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; font-size: 13px; color: var(--muted); }
.st-perks b { display: block; font-size: 18px; color: var(--ink); }
.studio .gbtn { border-color: transparent; color: #1f1f1f; }

/* Bố cục app */
.st-app { display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .st-app { grid-template-columns: 400px 1fr; height: calc(100dvh - 56px); }
  .st-panel { height: calc(100dvh - 56px); border-right: 1px solid var(--line); }
  .st-main { overflow-y: auto; }
}

/* Panel nhập */
.st-panel { display: flex; flex-direction: column; background: var(--paper); min-height: 0; }
.st-modes { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.st-modes button {
  flex: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.st-modes button.on { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.st-modes button:disabled { cursor: default; opacity: .6; }
.st-modes em { font-style: normal; font-size: 10px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--line); color: var(--muted); }
.st-panel-body { flex: 1; overflow-y: auto; padding: 12px 16px 16px; display: grid; gap: 12px; align-content: start; }

.st-slot { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.st-slot > header, .st-shop > summary { display: flex; align-items: center; gap: 10px; }
.st-slot h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.st-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.st-step {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted);
}
.st-step.done { background: var(--ok); color: #06150e; }

.st-drop {
  position: relative; display: grid; place-items: center; gap: 4px; text-align: center; padding: 18px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 13px;
  transition: border-color .15s, background .15s;
}
.st-drop.tall { min-height: 170px; }
.st-drop strong { color: var(--ink); font-size: 15px; }
.st-drop svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.st-drop:hover, .st-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.st-drop input, .st-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.st-video { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
.st-video video { width: 112px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.st-video-meta { display: grid; gap: 10px; align-content: space-between; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip-s.warn { border-color: #6b5420; color: #f3c969; background: rgb(243 201 105 / 10%); }
.st-video-acts { display: flex; gap: 6px; }
.st-icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.st-icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.st-icon-btn svg { width: 16px; height: 16px; }

/* Chỉ tài khoản dev */
.st-modes button.dev { color: #f3c969; border-style: dashed; border-color: #6b5420; }
.st-modes button.dev.on { background: rgb(243 201 105 / 10%); }
#dev-body .st-slot > header { justify-content: space-between; }
#dev-body select.input { min-height: 36px; font-size: 14px; }
#dev-body code { font-size: 11px; }
.st-dev-step { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.st-dev-step:first-child { border-top: 0; padding-top: 0; }
.st-dev-title { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.st-dev-desc { margin: 0; font-size: 12px; color: var(--muted); }
.st-dev-note { margin: 0; font-size: 12px; color: var(--ink-2); background: var(--card-2); border-radius: 8px; padding: 6px 8px; }
.st-dev-sum { margin: 0; font-size: 12px; color: #f3c969; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }

/* Cắt đoạn video */
.st-video.trimming { grid-template-columns: 150px 1fr; }
.st-video.trimming video { width: 150px; }
.st-trim { display: grid; gap: 10px; }
#trim-area { display: grid; gap: 8px; }
.st-trim-track {
  position: relative; height: 56px; border-radius: 10px; overflow: hidden; touch-action: none; user-select: none;
  background: var(--card-2); border: 1px solid var(--line-2);
}
.st-trim-track canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-trim-dim { position: absolute; top: 0; bottom: 0; background: rgb(0 0 0 / 62%); pointer-events: none; }
.st-trim-sel {
  position: absolute; top: 0; bottom: 0; cursor: grab;
  border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 1px rgb(0 0 0 / 40%);
}
.st-trim-sel:active { cursor: grabbing; }
.st-trim-h {
  position: absolute; top: -2px; bottom: -2px; width: 16px; background: var(--accent); cursor: ew-resize;
  display: grid; place-items: center;
}
.st-trim-h::after { content: ""; width: 2px; height: 18px; border-radius: 1px; background: rgb(255 255 255 / 85%); }
.st-trim-h.l { left: -2px; border-radius: 8px 0 0 8px; }
.st-trim-h.r { right: -2px; border-radius: 0 8px 8px 0; }
.st-trim-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.st-trim-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); pointer-events: none; }
.st-trim-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-trim-play { border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.st-trim-play:hover { border-color: var(--ink-2); }
.st-trim-hint { margin: 0; font-size: 12px; color: var(--muted); }
.st-trim-hint b { color: var(--ink-2); font-weight: 600; }

.st-tips summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.st-tips b { color: var(--ink); font-weight: 600; }
.st-tips ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }

.st-garments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-g, .st-add { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.st-g { background: var(--card-2); border: 1px solid var(--line-2); }
.st-g img { width: 100%; height: 100%; object-fit: cover; }
.st-g .n { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; background: rgb(0 0 0 / 60%); padding: 1px 7px; border-radius: 999px; }
.st-g .x { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(0 0 0 / 60%); color: #fff; cursor: pointer; }
.st-g .x svg { width: 13px; height: 13px; }
.st-g select {
  position: absolute; left: 5px; right: 5px; bottom: 5px; height: 28px; border-radius: 8px; border: 0; padding: 0 6px;
  background: rgb(0 0 0 / 70%); color: #fff; font-size: 12px;
}
.st-add {
  display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 12px;
  border: 1.5px dashed var(--line-2); transition: border-color .15s, color .15s;
}
.st-add:hover, .st-add.over { border-color: var(--accent); color: var(--ink); }
.st-add svg { width: 22px; height: 22px; }

.st-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border-radius: 10px; padding: 3px; border: 1px solid var(--line-2); }
.st-seg button { border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.st-seg button.on { background: var(--line-2); color: var(--ink); }
#face-area { display: grid; gap: 10px; }
.st-face { position: relative; width: 96px; }
.st-face img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.st-face .st-icon-btn { position: absolute; right: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; }

.st-shop { padding: 14px; }
.st-shop > summary { list-style: none; cursor: pointer; }
.st-shop > summary::-webkit-details-marker { display: none; }
.st-shop[open] > summary { margin-bottom: 12px; }
.st-fields { display: grid; gap: 10px; }
.st-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.st-fields .input { min-height: 40px; font-size: 15px; }

.st-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; align-items: start; }
.st-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.st-check a { color: var(--muted); }
.st-err { color: var(--bad); font-size: 13px; }

/* Nút tạo, cố định cuối panel */
.st-gen {
  position: sticky; bottom: 0; z-index: 5; display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(14 13 12 / 0%), var(--paper) 18%); border-top: 1px solid var(--line);
}
.st-go {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 16px/1 var(--font); color: #fff;
  background: linear-gradient(100deg, #ff5a3c, #ff8a3c 55%, #ff5a8a);
  box-shadow: 0 8px 30px -10px rgb(255 90 60 / 70%);
  transition: transform .1s, opacity .15s, box-shadow .15s;
}
.st-go:hover:not(:disabled) { box-shadow: 0 10px 36px -8px rgb(255 90 60 / 90%); }
.st-go:active:not(:disabled) { transform: translateY(1px); }
.st-go:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.st-go svg { fill: currentColor; stroke: none; }
.st-go .cost { font-weight: 600; font-size: 13px; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / 22%); }
.st-gen-hint { font-size: 12px; color: var(--muted); text-align: center; margin: -2px 0 0; }

/* Lưới video */
.st-main { padding: 18px 16px 48px; }
@media (min-width: 960px) { .st-main { padding: 24px 28px 48px; } }
.st-main-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.st-main-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.st-filters { display: flex; gap: 4px; margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.st-filters button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.st-filters button.on { background: var(--card-2); color: var(--ink); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 640px) { .st-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } }

.st-card {
  position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.st-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.st-card video, .st-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-card .bg { filter: blur(18px) brightness(.45); transform: scale(1.2); }
.st-card .prod { position: absolute; left: 10px; bottom: 10px; width: 44px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 2px solid rgb(255 255 255 / 85%); z-index: 2; }
.st-card .state {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 60%); backdrop-filter: blur(6px);
}
.st-card .state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-card .state.queued { color: #f3c969; }
.st-card .state.processing { color: #8ab4ff; }
.st-card .state.processing i { animation: pulse 1.2s infinite; }
.st-card .state.done { color: var(--ok); }
.st-card .state.failed { color: var(--bad); }
.st-card .state.uploading { color: var(--ink); }
.st-card .verdict { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 14px; background: rgb(0 0 0 / 60%); border-radius: 999px; padding: 2px 8px; }
.st-card .center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px; font-size: 13px; color: var(--ink-2); }
.st-card .center .spinner { color: var(--accent); width: 28px; height: 28px; }
.st-card .ring { --p: 0; position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgb(255 255 255 / 12%) 0); }
.st-card .ring::before { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgb(14 13 12 / 85%); }
.st-card .ring span { position: relative; }
.st-card.processing::after, .st-card.queued::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 8%) 50%, transparent 70%);
  background-size: 250% 100%; animation: sweep 2.2s linear infinite;
}
.st-card .when { position: absolute; right: 10px; bottom: 12px; z-index: 2; font-size: 11px; color: var(--ink-2); text-shadow: 0 1px 4px rgb(0 0 0 / 80%); }
.st-card .play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / 50%); opacity: 1; transition: opacity .15s; }
.st-card:hover .play { opacity: 0; }
.st-card .play svg { fill: #fff; stroke: none; width: 18px; height: 18px; margin-left: 2px; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes pulse { 50% { opacity: .3; } }

.st-empty { margin-top: 8px; border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 32px 20px; display: grid; gap: 20px; text-align: center; }
.st-empty-steps { display: grid; gap: 12px; }
@media (min-width: 720px) { .st-empty-steps { grid-template-columns: repeat(3, 1fr); } }
.st-empty-steps div { display: grid; gap: 8px; justify-items: center; color: var(--ink-2); font-size: 14px; }
.st-empty-steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* Trình xem */
.st-viewer { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; background: transparent; color: var(--ink); }
.st-viewer::backdrop { background: rgb(0 0 0 / 80%); backdrop-filter: blur(6px); }
.st-viewer-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; background: var(--paper); }
@media (min-width: 900px) {
  .st-viewer { width: min(1100px, 94vw); height: min(780px, 92dvh); border-radius: 20px; overflow: hidden; }
  .st-viewer-inner { grid-template-columns: 1fr 320px; grid-template-rows: 1fr; }
}
.st-viewer-stage { position: relative; display: grid; place-items: center; background: #000; min-height: 0; padding: 12px; }
.st-compare { display: flex; gap: 10px; height: 100%; max-height: 72dvh; justify-content: center; }
@media (min-width: 900px) { .st-compare { max-height: 100%; } }
.st-compare figure { margin: 0; position: relative; height: 100%; }
.st-compare video { height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 12px; background: #111; }
.st-compare figcaption { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.st-compare figure.src figcaption { background: rgb(255 255 255 / 90%); color: #111; }
.st-compare.two figure { flex: 1 1 0; min-width: 0; }
.st-pending { display: grid; justify-items: center; gap: 12px; color: var(--ink-2); }
.st-viewer-side { position: relative; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 16px; align-content: start; overflow-y: auto; border-left: 1px solid var(--line); }
.st-close { position: absolute; right: 12px; top: 12px; }
.st-v-product { display: flex; gap: 12px; align-items: center; padding-right: 44px; }
.st-v-product img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
#v-actions { display: grid; gap: 10px; }
.st-rate { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.st-rate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-rate-btn { padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; }
.st-rate-btn.on[data-v="ok"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.st-rate-btn.on[data-v="not_ok"] { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

.st-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px);
  background: var(--ink); color: #111; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
}
