/* =====================================================================
   IR-WED — stylesheet (public gallery + studio)
   ===================================================================== */

:root {
  --bg:        #0a0a0c;
  --bg-2:      #101014;
  --card:      #141419;
  --card-2:    #1b1b22;
  --line:      #26262f;
  --line-soft: #1e1e26;
  --text:      #f3f3f6;
  --muted:     #9b9baa;
  --muted-2:   #6e6e7d;
  --accent:    #e0b892;
  --accent-2:  #f0d3b6;
  --heart:     #ff4d6d;
  --ok:        #4ade80;
  --warn:      #fbbf24;
  --err:       #f87171;
  --r-lg:      22px;
  --r-md:      14px;
  --r-sm:      10px;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "IRWED Wordmark";
  src: url("font/irwed-wordmark.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: #14100c; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10,10,12,.78);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* logo mark — two interlocking rings */
.mark {
  flex: none;
  width: 30px; height: 30px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.3,1.5,.5,1);
}
.mark.static { cursor: default; }
.mark svg { width: 30px; height: 30px; display: block; }

/* the lens mark, shared by the header, the studio and the login card */
.barrel { fill: none; stroke: var(--text); stroke-width: 4.4; }
.glass  { fill: var(--accent); stroke: none; }
.flare  { fill: #fff; opacity: .3; stroke: none; }
.mark:active:not(.static) { transform: scale(.9); }
.mark.tapped { transform: scale(1.14); }
.mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.brand-text { display: block; }

.wordmark {
  font-family: "IRWED Wordmark", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .13em;
  text-transform: none;
  line-height: 1.05;
  display: block;
}

.brand small {
  display: block;
  font-weight: 400;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-size: 9.5px;
  margin-top: 3px;
}

/* login card mark */
.panel-mark { margin-bottom: 16px; }
.panel-mark svg { width: 40px; height: 40px; display: block; }

.spacer { flex: 1 1 auto; }

/* segmented control */
.segmented {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background .18s, color .18s;
  white-space: nowrap;
}

.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--card-2); color: var(--text); }

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search input {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px 9px 36px;
  width: 210px;
  max-width: 46vw;
  outline: none;
  font-size: 13px;
  transition: border-color .18s, width .18s;
}

.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--muted-2); pointer-events: none; }

.ghost-link {
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.ghost-link:hover { color: var(--text); border-color: var(--line); }

/* ------------------------------------------------------------------ */
/* Gallery                                                             */
/* ------------------------------------------------------------------ */
.wrap { max-width: 1600px; margin: 0 auto; padding: 22px 18px 40px; }

.grid {
  column-count: 4;
  column-gap: 16px;
}

@media (max-width: 1400px) { .grid { column-count: 4; } }
@media (max-width: 1150px) { .grid { column-count: 3; } }
@media (max-width: 820px)  { .grid { column-count: 2; column-gap: 12px; } }
@media (max-width: 420px)  { .grid { column-count: 2; column-gap: 9px; } }

.card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s;
  will-change: transform;
}

@media (max-width: 420px) { .card { margin-bottom: 9px; border-radius: 16px; } }

.card:hover { transform: translateY(-3px); border-color: var(--line); }

.media {
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  cursor: pointer;
}

@media (max-width: 420px) { .media { border-radius: 16px 16px 0 0; } }

.media video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #000;
}

.media .skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #16161c 30%, #1e1e26 50%, #16161c 70%);
  background-size: 250% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }

.badge-dur {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: .02em;
}

.fav {
  position: absolute;
  top: 9px; right: 9px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(12,12,14,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), background .18s;
}

.fav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav:hover { transform: scale(1.1); background: rgba(12,12,14,.8); }
.fav:active { transform: scale(.92); }
.fav[aria-pressed="true"] { color: var(--heart); }
.fav[aria-pressed="true"] svg { fill: var(--heart); stroke: var(--heart); }
.fav.pop { animation: pop .34s cubic-bezier(.3,1.5,.5,1); }

@keyframes pop { 0% { transform: scale(1);} 45% { transform: scale(1.32);} 100% { transform: scale(1);} }

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px 12px;
}

.handle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s;
}
.handle:hover { color: var(--accent); }

.stats {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.stats span { display: inline-flex; align-items: center; gap: 4px; }
.stats svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ------------------------------------------------------------------ */
/* States                                                              */
/* ------------------------------------------------------------------ */
.state {
  text-align: center;
  padding: 90px 20px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
}
.state h2 { font-size: 17px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.state p  { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted-2); }
.state .ring {
  width: 54px; height: 54px; margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
}
.state .ring svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 26px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sentinel { height: 1px; }

/* ------------------------------------------------------------------ */
/* Site footer                                                         */
/* ------------------------------------------------------------------ */
.site-foot {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 18px 46px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.site-foot p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted-2);
}

.site-foot a {
  color: var(--text);
  font-weight: 600;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}

.site-foot a:hover,
.site-foot a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

.site-foot .heart {
  width: 12px;
  height: 12px;
  fill: var(--heart);
  stroke: none;
  vertical-align: -1px;
  margin-inline-start: 3px;
  animation: beat 2.4s ease-in-out infinite;
}

@keyframes beat {
  0%, 88%, 100% { transform: scale(1); }
  92%           { transform: scale(1.22); }
  96%           { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) { .site-foot .heart { animation: none; } }

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,6,8,.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[data-open="true"] { display: flex; }
.lb-close, .lb-nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(20,20,25,.7);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text);
}
.lb-close { top: 20px; right: 20px; }
.lb-nav.prev { left: 18px; top: 50%; margin-top: -21px; }
.lb-nav.next { right: 18px; top: 50%; margin-top: -21px; }
.lb-nav svg, .lb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 640px) { .lb-nav { display: none; } }

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.panel h1 { font-size: 17px; margin: 0 0 4px; letter-spacing: .04em; }
.panel .sub { color: var(--muted-2); font-size: 12.5px; margin: 0 0 22px; }

.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; line-height: 1.5; }
.field .hint { margin-top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 11px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .18s, border-color .18s, opacity .18s;
}
.btn:hover:not(:disabled) { background: #23232c; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #16110b; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); }
.btn.danger { color: var(--err); border-color: #3a2429; background: #1d1418; }
.btn.danger:hover:not(:disabled) { background: #26181d; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }

.msg { border-radius: var(--r-sm); padding: 10px 13px; font-size: 12.5px; margin-bottom: 14px; line-height: 1.55; }
.msg.err { background: #24151a; color: #ffb4bd; border: 1px solid #3d2129; }
.msg.ok  { background: #14231a; color: #a7f3c4; border: 1px solid #1f3d2b; }
.msg.info{ background: #14181f; color: #b8c9e0; border: 1px solid #1f2733; }
.msg.warn{ background: #241f13; color: #f3dfa7; border: 1px solid #3b3220; }

.admin-shell { max-width: 1280px; margin: 0 auto; padding: 22px 18px 90px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; color: var(--muted-2);
  padding: 12px 16px; cursor: pointer; font-size: 13.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 16px 17px;
}
.stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted-2); }
.stat .v { font-size: 25px; font-weight: 650; margin-top: 7px; font-variant-numeric: tabular-nums; }
.stat .u { font-size: 11px; color: var(--muted-2); margin-top: 3px; }

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 44px 22px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-2);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #14120f; }
.dropzone strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.dropzone span { font-size: 12.5px; color: var(--muted-2); }

.progress { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.progress i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .25s; }

.log {
  background: #0d0d11; border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 11px 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--muted); max-height: 170px; overflow: auto; white-space: pre-wrap;
  line-height: 1.6;
}

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.shot {
  position: relative; border: 2px solid transparent; border-radius: var(--r-md);
  overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16/10;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; transition: opacity .2s; }
.shot[data-on="true"] { border-color: var(--accent); }
.shot[data-on="true"] img { opacity: 1; }
.shot .tag {
  position: absolute; left: 7px; bottom: 7px;
  background: rgba(0,0,0,.72); border-radius: 6px; padding: 2px 7px; font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.shot .tick {
  position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); display: grid; place-items: center; color: var(--muted-2);
}
.shot[data-on="true"] .tick { background: var(--accent); color: #16110b; }
.shot .tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; opacity: 0; }
.shot[data-on="true"] .tick svg { opacity: 1; }
.shot .tick { border: 1.5px solid rgba(255,255,255,.35); }
.shot[data-on="true"] .tick { border-color: var(--accent); }
.shot .flag {
  position: absolute; top: 7px; left: 7px;
  background: rgba(0,0,0,.7); border-radius: 6px; padding: 2px 6px; font-size: 9.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--warn);
}

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2); padding: 10px 11px; border-bottom: 1px solid var(--line-soft); font-weight: 500;
}
.table td { padding: 11px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: #121218; }
.table .thumb { width: 62px; height: 40px; border-radius: 7px; object-fit: cover; background: #000; display: block; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1 1 190px; }
.row > .fixed { flex: 0 0 auto; }

.section { margin-bottom: 30px; }
.section > h2 { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 13px; font-weight: 500; }

.chk { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; border: 1px solid var(--line); color: var(--muted-2); }
.pill.on { color: var(--ok); border-color: #1f3d2b; }
.pill.off { color: var(--muted-2); }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .admin-shell { padding: 16px 13px 70px; }
  .panel { padding: 20px; }
  .stat .v { font-size: 21px; }
}

/* ------------------------------------------------------------------ */
/* Phone refinements                                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 700px) {
  .topbar-inner { padding: 11px 13px; gap: 9px; row-gap: 10px; }
  .brand { flex: 1 1 auto; font-size: 12px; }
  .mark, .mark svg { width: 26px; height: 26px; }
  .wordmark { font-size: 15.5px; }
  .brand small { font-size: 9px; letter-spacing: .16em; }
  .spacer { display: none; }
  .ghost-link { order: 2; padding: 7px 12px; }
  /* six tabs do not fit a phone: give them their own row and let it scroll */
  .segmented {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { padding: 7px 12px; font-size: 12.5px; flex: none; }
  .search { order: 4; flex: 1 1 130px; }
  .search input { width: 100%; max-width: none; }
  .wrap { padding: 14px 13px 30px; }
}

@media (max-width: 520px) {
  .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 9px 11px 11px;
  }
  .handle { max-width: 100%; font-size: 12px; }
  .stats { font-size: 11px; gap: 12px; }
  .fav { width: 32px; height: 32px; top: 7px; right: 7px; }
  .fav svg { width: 17px; height: 17px; }
  .badge-dur { left: 8px; bottom: 8px; padding: 2px 7px; font-size: 10px; }
}

/* ------------------------------------------------------------------ */
/* Tags — chips, picker, modal                                         */
/* ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip[aria-pressed="true"],
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #16110b;
  font-weight: 600;
}
.chip .n {
  font-size: 10.5px;
  opacity: .65;
  font-variant-numeric: tabular-nums;
}
.chip .auto {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.chip[aria-pressed="true"] .auto, .chip.on .auto { background: #16110b; }
.chip.static-chip { cursor: default; }
.chip.static-chip:hover { color: var(--muted); border-color: var(--line); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.tag-group { margin-bottom: 16px; }
.tag-group > h4 {
  margin: 0 0 9px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

/* tiny tag button on a shot thumbnail */
.shot .tagbtn {
  position: absolute;
  right: 7px; bottom: 7px;
  min-width: 24px; height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.shot .tagbtn:hover { background: var(--accent); color: #16110b; }
.shot .tagbtn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6,6,8,.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[data-open="true"] { display: flex; }
.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head img {
  width: 62px; height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  flex: none;
}
.modal-title { flex: 1; min-width: 0; }
.modal-title strong { display: block; font-size: 14px; }
.modal-title small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.modal-body { padding: 17px; overflow-y: auto; }
.modal-foot {
  padding: 13px 17px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.modal-foot:empty { display: none; }

/* tag row inside the library table */
.tag-cell { display: flex; flex-wrap: wrap; gap: 4px; max-width: 210px; }
.tag-mini {
  font-size: 10px;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--muted-2);
  white-space: nowrap;
}
.tag-mini.empty { border-style: dashed; }

/* public filter bar — lives inside the sticky header, so no offset maths */
.tagbar { border-top: 1px solid var(--line-soft); }
.tagbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.tagbar-inner::-webkit-scrollbar { display: none; }
.tagbar .chip { flex: none; }
.tagbar .clear {
  margin-inline-start: 4px;
  color: var(--muted-2);
  border-color: transparent;
  background: transparent;
}
.tagbar .clear:hover { color: var(--heart); }
.tagbar.empty { display: none; }

@media (max-width: 700px) {
  .tagbar-inner { padding: 9px 13px; }
}


/* tags shown inside the lightbox */
.lb-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.lb-tags .chip { font-size: 11.5px; padding: 5px 11px; }

/* ------------------------------------------------------------------ */
/* Shot ideas                                                          */
/* ------------------------------------------------------------------ */
.ideas { max-width: 1180px; margin: 0 auto 10px; }

.ideas-lede {
  max-width: 60ch;
  margin: 6px 0 30px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.ideas-lede b { color: var(--text); font-weight: 600; }

.idea-group { margin-bottom: 34px; }

.idea-group > h2 {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.idea-group > h2 i {
  font-style: normal;
  color: var(--line);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.idea {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 17px 14px;
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.3,1);
}
.idea:hover { border-color: var(--line); transform: translateY(-2px); }

.idea-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.idea-n {
  font-size: 10.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  flex: none;
}
.idea h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.idea p  { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: var(--muted); }

.idea .chip-row { gap: 6px; }
.idea .chip { padding: 4px 10px; font-size: 11px; }

@media (max-width: 520px) {
  .idea-list { grid-template-columns: 1fr; gap: 10px; }
  .ideas-lede { margin-bottom: 22px; }
}

/* a few ideas shown when the gallery has nothing in it yet */
.state.compact { padding: 64px 20px 6px; }
.seed { max-width: 900px; margin: 10px auto 0; }
.seed > h2 {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; margin: 0 0 14px; text-align: center;
}

/* ==================================================================== */
/* v2 — banner, player, boards, discovery                               */
/* ==================================================================== */

/* ------------------------------------------------------------------ */
/* Right-to-left                                                       */
/* ------------------------------------------------------------------ */
body.rtl .fav  { right: auto; left: 9px; }
body.rtl .pin  { left: auto;  right: 9px; }
body.rtl .badge-dur { left: auto; right: 11px; }
body.rtl .lb-close  { right: auto; left: 20px; }
body.rtl .lb-nav.prev { left: auto; right: 18px; transform: scaleX(-1); }
body.rtl .lb-nav.next { right: auto; left: 18px;  transform: scaleX(-1); }
body.rtl .search svg { left: auto; right: 12px; }
body.rtl .wordmark, body.rtl .brand small,
body.rtl .handle, body.rtl .lb-user { unicode-bidi: isolate; }
body.rtl .stats b, body.rtl .idea-n { unicode-bidi: isolate; }

/* ------------------------------------------------------------------ */
/* Icon buttons in the header                                          */
/* ------------------------------------------------------------------ */
.icon-btn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 11px;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.wide { width: auto; padding: 0 13px; font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Intro banner (editable from the studio)                             */
/* ------------------------------------------------------------------ */
#banner:empty { display: none; }

#banner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.sitebanner {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.sitebanner.accent {
  background: linear-gradient(90deg, rgba(224,184,146,.10), rgba(224,184,146,.03));
  border-color: rgba(224,184,146,.28);
}
.sitebanner-in {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.sitebanner-in strong { color: var(--text); font-size: 13px; font-weight: 600; }
.sitebanner-cta {
  color: var(--accent);
  border-bottom: 1px solid rgba(224,184,146,.4);
  padding-bottom: 1px;
  white-space: nowrap;
}
.sitebanner-cta:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.sitebanner-x {
  flex: none;
  width: 26px; height: 26px;
  border: 0; background: transparent;
  color: var(--muted-2);
  font-size: 19px; line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}
.sitebanner-x:hover { color: var(--text); background: var(--card-2); }

@media (max-width: 560px) {
  #banner { padding: 14px 13px 0; }
  .sitebanner { padding: 10px 12px; font-size: 12.5px; }
}

/* ------------------------------------------------------------------ */
/* Card additions — board pin, hover scrub line                        */
/* ------------------------------------------------------------------ */
.pin {
  position: absolute;
  top: 9px; left: 9px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(12,12,14,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s, background .18s;
}
.pin svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.card:hover .pin, .pin:focus-visible, .pin.on { opacity: 1; transform: none; }
.pin:hover { background: rgba(12,12,14,.85); }
.pin.on { color: var(--accent); }
.pin.on svg { fill: var(--accent); stroke: var(--accent); }

.scrubline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.14);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.card:hover .scrubline, .scrubline.on { opacity: 1; }
.scrubline i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .08s linear;
}

@media (max-width: 520px) {
  .pin { width: 31px; height: 31px; top: 7px; left: 7px; opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Player — stage, frame, panel                                        */
/* ------------------------------------------------------------------ */
.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 100%;
  max-width: 1420px;
  max-height: 88vh;
}

/* shrink-to-fit, so the scrub bar underneath is exactly as wide as the
   picture — a vertical shot gets a short bar, not a screen-wide one */
.lb-frame {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  align-self: center;
  line-height: 0;
}
.lb-frame video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow);
  display: block;
}

.lb-scrub {
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 20px;
  cursor: pointer;
  touch-action: none;
}
.lb-scrub::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 9px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.14);
}
.lb-scrub i {
  position: absolute;
  left: 0; top: 9px;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
}
.lb-scrub b {
  position: absolute;
  top: 6px;
  height: 9px;
  border-radius: 2px;
  background: rgba(224,184,146,.28);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  display: none;
}
.lb-scrub b.on { display: block; }

.lb-panel {
  flex: 0 0 300px;
  max-width: 300px;
  align-self: stretch;          /* start level with the top of the picture */
  overflow-y: auto;
  padding: 4px 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lb-meta { display: flex; flex-direction: column; gap: 4px; }
.lb-user {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  unicode-bidi: isolate;
}
.lb-user[href]:hover { color: var(--accent); border-bottom-color: var(--accent); }
.lb-facts {
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.lb-tags { justify-content: flex-start; margin-top: 0; }

.lb-controls { display: flex; flex-direction: column; gap: 9px; }
.ctl-group { display: flex; gap: 6px; flex-wrap: wrap; }
.ctl {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s, background .16s;
  -webkit-tap-highlight-color: transparent;
}
.ctl:hover { color: var(--text); border-color: var(--muted-2); }
.ctl[aria-pressed="true"], .ctl.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #16110b;
  font-weight: 600;
}

.lb-keys {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted-2);
}

.lb-similar h3 {
  margin: 0 0 9px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-2);
}
.sim-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sim {
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  overflow: hidden;
  background: var(--card-2);
  padding: 0;
  cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.sim:hover { border-color: var(--accent); transform: translateY(-2px); }
.sim img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .lightbox { padding: 16px; align-items: flex-start; }
  .lb-stage { flex-direction: column; align-items: stretch; gap: 26px; max-height: none; overflow-y: auto; }
  .lb-frame { align-self: center; }
  .lb-frame video { max-height: 54vh; }
  .lb-panel { flex: 1 1 auto; max-width: none; overflow: visible; padding: 0; }
  .lb-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .sim-row { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 520px) {
  .lb-keys { display: none; }
  .sim-row { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translate(-50%, 18px);
  opacity: 0;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: opacity .22s, transform .22s cubic-bezier(.2,.8,.3,1);
  max-width: min(88vw, 420px);
  text-align: center;
}
.toast.go { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/* Boards                                                              */
/* ------------------------------------------------------------------ */
.boards { padding-top: 8px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.board-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 17px 14px;
  min-width: 0;
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.3,1);
}
.board-card:hover { border-color: var(--line); transform: translateY(-2px); }
.board-card.shared { border-color: rgba(224,184,146,.34); }
.board-card h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-card p { margin: 0 0 13px; font-size: 12px; color: var(--muted-2); }

.board-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.board-pick { display: flex; flex-direction: column; gap: 7px; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.board-row:hover { color: var(--text); border-color: var(--muted-2); }
.board-row.on { border-color: var(--accent); color: var(--text); background: rgba(224,184,146,.09); }
.board-row.on::after { content: "✓"; color: var(--accent); font-size: 13px; }
.board-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-n { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.board-new { display: flex; gap: 7px; margin-top: 5px; }
.board-new input {
  flex: 1;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
}
.board-new input:focus { outline: none; border-color: var(--accent); }

.modal-note { margin: 0 0 13px; font-size: 12px; color: var(--muted-2); }

/* ------------------------------------------------------------------ */
/* Creator / board header strip                                        */
/* ------------------------------------------------------------------ */
.creator-head {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.creator-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  unicode-bidi: isolate;
}
.creator-head p { margin: 0; font-size: 12.5px; color: var(--muted-2); }
.creator-head .board-actions { margin-inline-start: auto; }

/* ------------------------------------------------------------------ */
/* Discovery — colour swatches, dividers, ghost chips                  */
/* ------------------------------------------------------------------ */
.bar-div {
  flex: none;
  width: 1px;
  align-self: stretch;
  min-height: 20px;
  background: var(--line);
  margin: 0 3px;
}

.swatch {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line) inset;
  cursor: pointer;
  padding: 0;
  transition: transform .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--text); transform: scale(1.12); }

.chip.ghost { background: transparent; border-style: dashed; }
.chip.clear { color: var(--err); border-color: #3a2429; }
.chip.clear:hover { color: #ffb4b4; border-color: var(--err); }

/* ------------------------------------------------------------------ */
/* Compare wall                                                        */
/* ------------------------------------------------------------------ */
.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.wall video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 9px;
  background: #000;
  display: block;
}
@media (max-width: 520px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ */
/* Footer links                                                        */
/* ------------------------------------------------------------------ */
.foot-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid var(--line);
  font-size: inherit;
}
.foot-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-sep { color: var(--muted-2); margin: 0 7px; }

/* ------------------------------------------------------------------ */
/* Printable shot list                                                 */
/* ------------------------------------------------------------------ */
.printsheet { display: none; }
.printlist { list-style: decimal; padding-inline-start: 26px; margin: 0; }
.printlist li { display: flex; gap: 14px; padding: 10px 0; break-inside: avoid; }
.printlist img { width: 128px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
.printmeta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.printmeta strong { font-size: 13px; }
.printmeta span { font-size: 11.5px; color: #555; }
.printmeta em { font-size: 11.5px; color: #333; }

@media print {
  body.printing > *:not(.printsheet) { display: none !important; }
  body.printing {
    background: #fff;
    color: #111;
    overflow: visible;
  }
  body.printing .printsheet { display: block; padding: 0; }
  .printsheet h1 { font-size: 20px; margin: 0 0 4px; }
  .printsheet > p { font-size: 11px; color: #666; margin: 0 0 18px; }
}

@media (max-width: 400px) {
  .segmented button { padding: 7px 10px; font-size: 12px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn.wide { width: auto; padding: 0 11px; font-size: 12px; }
}

/* ==================================================================== */
/* Studio v2 — dashboard panels, inbox, settings, batch queue           */
/* ==================================================================== */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}
.cols > .section { margin-bottom: 0; }

/* --- 30-day sparkline --- */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  padding-top: 4px;
}
.spark i {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: .85;
}
.spark i.zero { background: var(--line); opacity: 1; }

/* --- library health --- */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.check {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 2px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.check:last-child { border-bottom: 0; }
.check b {
  flex: none;
  min-width: 30px;
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text);
}
.check em { color: var(--muted-2); font-style: normal; font-size: 11.5px; }
.check.ok   b { color: var(--ok); }
.check.warn b { color: var(--warn); }
.check.info b { color: var(--muted); }

/* --- colour spread --- */
.huebars { display: flex; flex-direction: column; gap: 8px; }
.huebar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.huebar .sw { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.huebar .nm { flex: none; width: 62px; }
.huebar .tr { flex: 1; height: 7px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.huebar .tr i { display: block; height: 100%; border-radius: 4px; }
.huebar .n { flex: none; width: 34px; text-align: end; font-variant-numeric: tabular-nums; color: var(--muted-2); }

/* --- tag share bar inside a table cell --- */
.minibar {
  display: inline-block;
  width: 84px; height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
  vertical-align: middle;
}
.minibar i { display: block; height: 100%; background: var(--accent); }
.minipct { margin-inline-start: 8px; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* --- bulk edit bar --- */
.bulkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--accent);
  background: rgba(224,184,146,.08);
  border-radius: var(--r-sm);
}
.bulkbar .spacer { flex: 1; }

/* --- inbox --- */
tr.fresh td { background: rgba(224,184,146,.05); }
tr.fresh td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ghost-link.tiny { padding: 0; font-size: 12px; border: 0; color: var(--muted); text-decoration: underline; }
.ghost-link.tiny:hover { color: var(--accent); }
.pill.dot {
  margin-inline-start: 6px;
  padding: 1px 7px;
  font-size: 10.5px;
  background: var(--accent);
  color: #16110b;
  border-color: var(--accent);
  font-weight: 700;
}
.pill.warn { color: var(--warn); border-color: #3d3320; background: #1e1a12; }

/* --- upload queue --- */
.queue { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.qrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--card-2);
  font-size: 12.5px;
  color: var(--muted);
}
.qrow .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.qrow .sz { flex: none; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.qrow.doing { border-color: var(--accent); }
.qrow.done  { opacity: .55; }
.qrow.fail  { border-color: #3a2429; color: var(--err); }

/* --- the notice line the studio can put above the grid --- */
.site-notice {
  margin: 0 0 18px;
  padding: 11px 15px;
  border-inline-start: 2px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
  color: var(--muted);
}

/* --- trim handles on a review thumbnail --- */
.shot .trim {
  position: absolute;
  left: 8px; right: 8px; bottom: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(0,0,0,.55);
  display: none;
}
.shot .trim i {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 3px;
}
.shot .trimbtn { font-size: 12px; letter-spacing: -.04em; }
.shot .flag { pointer-events: none; }

@media (max-width: 700px) {
  .cols { grid-template-columns: 1fr; }
  .spark { height: 70px; }
  .huebar .nm { width: 54px; }
}

/* --- creator leaderboard on the Top view --- */
.leaders {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  flex: 1;
  min-width: 0;
}
.leaders::-webkit-scrollbar { display: none; }
.leader {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px 7px 9px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s;
}
.leader:hover { color: var(--text); border-color: var(--accent); }
.leader .rank {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--muted-2);
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.leader:first-child .rank { background: var(--accent); color: #16110b; font-weight: 700; }
.leader .who { color: var(--text); unicode-bidi: isolate; }
.leader .n { font-size: 11px; color: var(--muted-2); }

/* a dashboard table that scrolls inside its own box still needs the box's
   padding back, or the last visible row sits flush against the border */
.cols .section { display: flex; flex-direction: column; }
.cols .section > .table-scroll { max-height: 320px; padding-bottom: 4px; }
