/* Same look as video.froyla.com: its colours, cards, buttons and dark mode. */
:root {
  --bg: #f4f5f7; --panel: #ffffff; --ink: #1b1f27; --muted: #6b7280; --line: #e2e5ea;
  --accent: #2563eb; --accent-soft: #e8efff; --danger: #b42318; --ok: #137333; --warn: #9a6700;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg: #0f1114; --panel: #171a1f; --ink: #eceef2; --muted: #9aa1ad; --line: #2a2f38;
    --accent: #6b8cff; --accent-soft: #1f2a48; --danger: #ff8a80; --ok: #6ee39a; --warn: #f2cc60;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
main { max-width: 960px; margin: 0 auto; padding: 22px 16px 48px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.card .sub { margin-bottom: 14px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 9px 11px; font: inherit; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
textarea { min-height: 90px; resize: vertical; }
.btn { display: inline-block; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 9px 14px;
  border-radius: 8px; cursor: pointer; font: inherit; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg { font-size: 14px; min-height: 18px; margin: 10px 0; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.note { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .n { font-size: 26px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; background: var(--panel); }
.tile img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.tile .kind { color: var(--muted); }
.tile .actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.s-pending { color: var(--warn); border-color: var(--warn); }
.pill.s-in-production { color: var(--accent); border-color: var(--accent); }
.pill.s-ready-for-review { color: var(--ok); border-color: var(--ok); font-weight: 600; }
.pill.s-approved { color: var(--ok); border-color: var(--ok); }
.pill.s-rejected { color: var(--danger); border-color: var(--danger); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-scroll { overflow-x: auto; }
video { width: 100%; max-height: 520px; background: #000; border-radius: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check input { margin-top: 3px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pick label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px; margin: 0; }
.pick img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
pre.prompt { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; margin: 0; }
.hidden { display: none !important; }
.site-footer { margin-top: 24px; padding: 18px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.hero { padding: 36px 0 12px; }
.hero h1 { font-size: 30px; line-height: 1.2; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 12px; }
