/* Creative Diversity Lab. A contact sheet for ad creatives: duplicates get circled in red.
   Base styles, colours and fonts now come from ft/kit.css (the site brand). */
.summary { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; }
.dial { text-align: center; }
.dial .n { font: 800 4rem/1 var(--font-head); letter-spacing: -.03em; }
.dial .lab { display: inline-block; font: 600 12px var(--font-mono); padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; margin-top: 8px; }
.dial .lab.low { color: var(--grease); } .dial .lab.med { color: var(--mid); } .dial .lab.high { color: var(--good); }
.dial small { display: block; color: var(--ink2); margin-top: 8px; font-size: 12.5px; line-height: 1.4; }
.finds { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.finds li { padding-left: 16px; position: relative; }
.finds li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--grease); }
.finds b { font-weight: 600; }
.sheet { display: grid; gap: 22px; }
.strip { position: relative; background: var(--film); border-radius: 14px; padding: 26px 14px 14px; color: #dfe4ec; }
.strip::before, .strip::after { content: ""; position: absolute; left: 10px; right: 10px; height: 8px; background: repeating-linear-gradient(90deg, #e7ebf2 0 10px, transparent 10px 22px); opacity: .55; border-radius: 2px; }
.strip::before { top: 8px; } .strip::after { bottom: 3px; display: none; }
.strip .hd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 12px var(--font-mono); margin-bottom: 10px; color: #aeb7c6; }
.strip .hd b { color: #fff; font-weight: 600; }
.strip.dupe { box-shadow: 0 0 0 2px var(--grease); }
.frames { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.fr { width: 148px; flex: 0 0 auto; }
.fr .im { position: relative; width: 148px; height: 148px; background: #000; border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.fr img { max-width: 100%; max-height: 100%; display: block; }
.fr .id { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 11px var(--font-mono); padding: 1px 5px; border-radius: 2px; }
.fr .nm { font: 12px var(--font-mono); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8ecf3; }
.fr .mt { font: 11px var(--font-mono); color: #9aa4b5; }
.fr.err .im { color: #ffb4ab; font: 12px var(--font-mono); padding: 8px; text-align: center; }
.grease { position: absolute; inset: -10px; pointer-events: none; width: calc(100% + 20px); height: calc(100% + 20px); overflow: visible; }
.grease path { fill: none; stroke: var(--grease); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.pairs { margin: 10px 0 0; padding: 0; list-style: none; font: 12px var(--font-mono); color: #aeb7c6; display: grid; gap: 3px; }
.pairs b { color: #fff; }
.dims { display: grid; gap: 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; }
.dim { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.dim .k { font-weight: 600; font-size: 14px; }
.dim .tr { height: 12px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.dim .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--red), var(--amber)); }
.dim .v { font: 600 13px var(--font-mono); text-align: right; }
.dim .why { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); margin-top: -6px; }
.recs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.recs li { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--grease); border-radius: 12px; padding: 12px 14px; }
.recs li b { display: block; font-weight: 600; }
.recs li span { color: var(--ink2); font-size: 14px; }
.heat { display: grid; gap: 2px; font: 10px var(--font-mono); overflow-x: auto; padding: 4px 0; }
.heat .c { width: 34px; height: 28px; display: grid; place-items: center; color: #fff; border-radius: 2px; }
.heat .h { width: 34px; color: var(--ink2); text-align: center; }
.heat .row { display: flex; gap: 2px; align-items: center; }
.csvdrop { border: 2px dashed var(--ink2); border-radius: 14px; padding: 16px; background: var(--sheet); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.plan pre { white-space: pre-wrap; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; font: 13px/1.5 var(--font-mono); margin: 12px 0; }
.export { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 720px) {
  .summary { grid-template-columns: 1fr; }
  .dim { grid-template-columns: 1fr 54px; }
  .dim .tr { grid-column: 1 / -1; order: 3; }
  .fr, .fr .im { width: 128px; } .fr .im { height: 128px; }
}
.ctl input[type=number] { width: 4.5em; font: 600 14px var(--font-mono); padding: 6px 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); border-radius: 5px; }
.csvdrop input[type=file] { font: 14px var(--font-ui); max-width: 100%; }
.heat { margin-top: 10px; }
.heat .row { flex-wrap: nowrap; }
.frames[data-ring] { width: fit-content; max-width: calc(100% - 24px); margin: 10px 12px 12px; padding: 4px; }
.dial .n { background: linear-gradient(95deg,#fff 20%,#ffd1a3 60%,#ff9db0); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media print { .strip { background: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
