/* Aspect & safe zones — page styles (tokens from tools.css) */
.sz .split { grid-template-columns: minmax(0, 1fr) 340px; }
.gridwrap { min-width: 0; }
.gridbar { display: flex; align-items: center; gap: 18px; margin: 2px 2px 16px; flex-wrap: wrap; }
.gridbar .label { margin-right: auto; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.legend span { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.legend span + * { margin-right: 6px; }
.lg-bad { background: repeating-linear-gradient(-45deg, rgba(255,120,95,.7) 0 2px, rgba(224,92,70,.25) 2px 5px); margin-left: 4px; }
.lg-safe { border: 1.5px dashed var(--accent); margin-left: 10px; }
.openbtn { cursor: pointer; }
.jump { display: none; }
@media (max-width: 960px) { .jump { display: inline-flex; } #plats { scroll-margin-top: calc(var(--hdr) + 60px); } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); grid-auto-flow: row dense; gap: 18px; align-items: start; }
.cards.empty { display: block; }
.emptymsg { display: grid; place-items: center; gap: 8px; padding: 90px 20px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; }
.emptymsg b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 34px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 10px; display: grid; gap: 12px; min-width: 0; transition: border-color .4s; }
.card:hover { border-color: var(--line2); }
.card.wide { grid-column: span 2; }
.card header { display: flex; flex-direction: column; gap: 5px; padding: 2px 4px 0; min-width: 0; }
.ct { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ct b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; white-space: nowrap; }
.ct span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dims { color: var(--soft); font-size: 10px; white-space: nowrap; }

/* device frames */
.dev { position: relative; background: #000; }
.scr { position: relative; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.scr.grab { cursor: grabbing; }
.scr canvas { width: 100%; height: 100%; display: block; }
.zm { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 99px; background: rgba(20, 19, 18,.7); color: var(--accent2); font-size: 9.5px; pointer-events: none; }
.zm:empty { display: none; }
.k-phone .dev { padding: 6px; border-radius: 30px; border: 1px solid var(--line2); box-shadow: inset 0 0 0 2px #151513, 0 24px 60px -30px rgba(0,0,0,.9); }
.k-phone .scr { border-radius: 24px; }
.k-phone .dev::before { content: ""; position: absolute; z-index: 2; top: 13px; left: 50%; width: 26%; height: 9px; margin-left: -13%; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.k-player .dev { border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.k-feed .dev { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #000; }
.fh { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 11.5px; color: #eee; font-weight: 500; }
.fh .av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #0F9A96, #0B2A2C); flex: none; }
.fh .fn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh .fn i { font-style: normal; font-weight: 300; color: #BDB6AC; margin-left: 4px; }
.fh .fd { margin-left: auto; color: #BDB6AC; letter-spacing: 1px; }
.ff { display: flex; align-items: center; gap: 14px; padding: 9px 12px 10px; font-size: 13px; color: #ddd; }
.ff .sp { flex: 1; }
.ff span:last-child { margin-left: auto; }
.ff-instagram span:empty { flex: 1; }
.ff-linkedin { justify-content: space-between; font-size: 11px; color: #a9a59c; border-top: 1px solid rgba(255,255,255,.08); }
.ff-linkedin span:last-child, .ff-x span:last-child { margin-left: 0; }
.ff-x { justify-content: space-between; font-size: 11px; color: #BDB6AC; font-family: var(--mono); }

.cf { display: grid; gap: 8px; padding: 0 2px; }
.mt { color: var(--muted); font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zl { display: flex; align-items: center; gap: 10px; }
.zl span { font-size: 9.5px; color: var(--faint); }
.zl .zr { flex: 1; min-width: 0; }
.cr { flex-wrap: nowrap; gap: 6px; }
.cr .btn.icon { width: 30px; height: 30px; flex: none; }
.cr .btn.sm { flex: 1; padding: 6px 8px; }

/* side */
.sz .side .drop { padding: 26px 16px; }
.drop.busy::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: szbar 1s linear infinite; }
@keyframes szbar { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.srcrow { margin-top: 12px; flex-wrap: nowrap; }
.srcname { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.scrub { margin-top: 14px; display: grid; gap: 4px; }
.scrub[hidden] { display: none; }
.plats { display: grid; gap: 12px; }
.pg { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; }
.pg > span { font-size: 9.5px; color: var(--faint); padding-top: 8px; }
.pg .chip { font-size: 12px; padding: 5px 11px; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; transition: opacity .3s; }
.vrow.dim { opacity: .35; pointer-events: none; }
.toggles { display: grid; gap: 10px; margin: 16px 0 14px; }
.tg { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--soft); }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg i { position: relative; width: 34px; height: 20px; border-radius: 99px; border: 1px solid var(--line2); transition: background .3s, border-color .3s; flex: none; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--ease), background .3s; }
.tg input:checked + i { background: var(--accent); border-color: var(--accent); }
.tg input:checked + i::after { transform: translateX(14px); background: #141312; }
.tg input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 4px; }
.exps { display: grid; gap: 8px; margin-bottom: 12px; }
.exps .btn { width: 100%; }

@media (max-width: 1240px) { .sz .split { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 960px) { .sz .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 8px 8px 8px; border-radius: 14px; gap: 8px; }
  .card header { gap: 3px; padding: 0 2px; }
  .zl span { display: none; }
  .ct b { font-size: 18px; }
  .ct span { font-size: 11.5px; }
  .k-phone .dev { border-radius: 22px; padding: 4px; }
  .k-phone .scr { border-radius: 18px; }
  .k-phone .dev::before { top: 9px; height: 6px; }
  .mt { display: none; }
  .cr .png, .cr .gd { padding: 5px 8px; font-size: 11px; }
  .cr .rs { display: none; }
  .fh { font-size: 10px; padding: 6px 8px; }
  .ff { font-size: 11px; padding: 6px 8px; gap: 10px; }
  .legend { display: none; }
}
.sz .side .sec h3, .card header, .cf { -webkit-user-select: none; user-select: none; }
