/* The TikTok safe zone checker (/tiktok-safe-zone), on the previewers' tool.css: the editor holds the drop tile, a video's
   frame and the checks; the well holds a 9:16 phone screen with the frame under TikTok's overlay (safezone.js). */

.tts .editor { border-radius: 12px; transition: background .15s ease-out, box-shadow .15s ease-out; }
.tts .editor.drop { background: var(--muted); box-shadow: 0 0 0 12px var(--muted); }
.pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 168px;
  padding: 24px; border: 0; border-radius: 12px; background: var(--muted); color: var(--foreground); cursor: pointer; transition: box-shadow .15s ease-out;
}
.pick b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pick span { font-size: 14.5px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: hover) { .pick:hover { box-shadow: inset 0 0 0 1px var(--border); } }
.pick .coarse { display: none; }
@media (pointer: coarse) { .pick .fine { display: none; } .pick .coarse { display: inline; } }
.pick[hidden], .chosen[hidden], .row[hidden] { display: none; }
.chosen { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chosen span { flex: 1; min-width: 0; font-size: 14.5px; color: var(--foreground-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { margin: 10px 0 0; font-size: 14.5px; color: var(--destructive); }
.hint:empty { display: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 500; color: var(--muted-foreground); }
.row input[type="range"] { flex: 1; max-width: 220px; accent-color: var(--foreground); }
.verdict { margin: 24px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.checks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.checks li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #2f8f4e; }
.checks li.warn::before { background: #c98a12; }
.checks li.bad::before { background: var(--destructive); }
.checks b { font-weight: 600; }
.checks span { color: var(--foreground-soft); }
.rule { margin: 16px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--foreground-soft); text-wrap: pretty; }

/* The well: one phone screen, 360 × 640, the frame shown whole (bars where it isn't 9:16) under the overlay. */
.tts .switches { flex-wrap: wrap; }
.tts .stage { flex-direction: column; padding: 40px 24px; }
.screen { position: relative; width: 360px; max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #000; }
.tt-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.tt-over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tts .stage > .said { max-width: 360px; margin-top: 14px; font-size: 14px; color: var(--muted-foreground); }
.tts .result .numbers a { color: inherit; }

.zones { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.zones div { padding: 14px 0; border-top: 1px solid var(--border); }
.zones dt { font-weight: 600; }
.zones dd { margin: 4px 0 0; color: var(--foreground-soft); line-height: 1.5; }

@media (max-width: 759px) {
  .tts .stage { padding: 20px 0; }
  .screen { width: min(360px, calc(100% - 40px)); }
  .tts .stage > .said { padding: 0 20px; }
}
