/* Models System — design tokens + components. Matches ghostmodels.xyz look (dark, pink/yellow accents). */
:root {
  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --sidebar: #111111;
  --card: #161616;
  --card-2: #1c1c1c;
  --card-hi: #222222;
  --border: #262626;
  --border-2: #333333;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #6b6b6b;
  --pink: #ff2d95;
  --pink-2: #ff5aad;
  --pink-soft: rgba(255, 45, 149, .14);
  --yellow: #fff000;
  --yellow-soft: rgba(255, 240, 0, .12);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .14);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, .16);
  --red: #dc2626;
  --red-soft: rgba(239, 68, 68, .14);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, .15);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, .15);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 256px;
  --header-h: 64px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* phone: the page must never move sideways — clip anything wider than the screen; no double-tap zoom */
html, body { max-width: 100%; overflow-x: hidden; touch-action: manipulation; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.pink { color: var(--pink); }
.yellow { color: var(--yellow); }
.green { color: var(--green); }
.orange { color: var(--orange); }
.red { color: #ef4444; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100dvh; }
.sidebar { width: var(--sidebar-w); background: var(--sidebar); border-right: 1px solid var(--border); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 30; transition: width .2s; }
.sidebar.collapsed { width: 76px; }
.sb-brand { height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.sb-brand .logo { width: 34px; height: 34px; border-radius: 50%; background: #f2f2f2; color: #0a0a0a; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; }
.sb-brand .name { font-weight: 900; font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.sb-brand .tag { display: inline-block; margin-top: 3px; background: var(--pink); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px; }
.sb-brand .collapse { margin-left: auto; color: var(--muted); padding: 6px; border-radius: 8px; }
.sb-brand .collapse:hover { background: var(--card); color: var(--text); }
.sb-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sb-section { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--dim); padding: 18px 12px 8px; text-transform: uppercase; }
.sb-section:first-child { padding-top: 6px; }
.sb-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: #cfcfcf; font-weight: 500; font-size: 14.5px; margin-bottom: 0; transition: background .15s, color .15s; }
.sb-link:hover { background: var(--card); color: #fff; }
.sb-link.active { background: linear-gradient(90deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 0 22px rgba(255, 45, 149, .45); }
.sidebar.collapsed .sb-link { justify-content: center; padding: 0; }
.sidebar.collapsed .sb-link span, .sidebar.collapsed .sb-section, .sidebar.collapsed .sb-brand .txt, .sidebar.collapsed .sb-user .info, .sidebar.collapsed .sb-user .gear, .sidebar.collapsed .sb-logout span { display: none; }
.sb-foot { border-top: 1px solid var(--border); padding: 16px; }
.sb-user { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sb-user .info { flex: 1; min-width: 0; }
.sb-user .info b { display: block; font-size: 14px; }
.sb-user .info small { color: var(--muted); font-size: 12px; }
.sb-user .gear { color: var(--pink); padding: 6px; border-radius: 8px; background: var(--card); }
.sb-logout { display: flex; align-items: center; gap: 12px; color: #d0d0d0; font-size: 16px; padding: 6px 12px; }
.sb-logout:hover { color: #fff; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); transition: margin .2s; }
.sidebar.collapsed + .main { margin-left: 76px; }
.topbar { height: calc(var(--header-h) + var(--safe-t)); padding-top: var(--safe-t) !important; position: sticky; top: 0; z-index: 20; background: #0a0a0a; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; flex: 1; min-width: 0; }
.topbar .m-logo { display: none; }
.tz-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--card); font-family: var(--mono); font-size: 12px; color: #ddd; }
.tz-btn.active { border-color: var(--pink); color: var(--pink); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #ddd; position: relative; }
.icon-btn:hover { background: var(--card); }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.content { padding: 24px; max-width: 1600px; }

/* mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main, .sidebar.collapsed + .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .m-logo { display: grid; width: 32px; height: 32px; border-radius: 50%; background: #f2f2f2; color: #0a0a0a; place-items: center; font-weight: 900; }
  .topbar .tz-btn .lbl { display: none; }
  .topbar .tz-btn { width: 36px; padding: 0; justify-content: center; }
  .content { padding: 16px 16px calc(96px + var(--safe-b)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #0c0c0c; border-top: 1px solid var(--border); padding: 8px 4px calc(8px + var(--safe-b)); overflow-x: auto; scrollbar-width: none; }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bn-item { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 2px 4px; }
  .bn-item .ic { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 9px; }
  .bn-item.active { color: var(--pink); }
  .bn-item.active .ic { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 0 16px rgba(255, 45, 149, .5); }
  .bn-sep { width: 1px; background: var(--border); margin: 6px 2px; flex: none; }
}

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, #1a1a1a, #141414); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card.flat { background: var(--card); }
.card.tight { padding: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-head h2, .card-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .spacer { flex: 1; }
.card-sep { border-top: 1px solid var(--border); margin: 0; }
.head-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.head-ic.pink { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; }
.head-ic.yellow { background: var(--yellow); color: #111; }
.head-ic.gray { background: var(--card-hi); color: #ddd; }
.head-ic.purple { background: var(--purple-soft); color: var(--pink); }
.inner { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; }

/* stat card */
.stat { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(180deg, #1a1a1a, #141414); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.stat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; margin-top: 6px; }
.stat .ic svg { width: 24px; height: 24px; }
.stat .val { font-size: 26px; font-weight: 800; line-height: 1.15; }
.stat .lbl { color: #d0d0d0; font-size: 15px; font-weight: 500; }
.stat .hint { color: var(--dim); font-size: 12px; margin-top: 2px; }
.ic.pink { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; }
.ic.orange { background: rgba(249, 115, 22, .22); color: var(--orange); }
.ic.yellow { background: rgba(255, 240, 0, .22); color: var(--yellow); }
.ic.green { background: rgba(34, 197, 94, .2); color: var(--green); }
.ic.blue { background: var(--blue-soft); color: var(--blue); }
.ic.purple { background: var(--purple-soft); color: var(--purple); }
.ic.gray { background: var(--card-hi); color: #ccc; }
@media (max-width: 760px) { .stat { flex-direction: column; gap: 10px; padding: 16px; } .stat .ic { margin-top: 0; } .stat .val { font-size: 22px; } .stat .lbl { font-size: 14px; } }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 32px; background: linear-gradient(120deg, #3b0f5c 0%, #5a0d3e 38%, #3d0c1f 70%, #3a2a0a 100%); border: 1px solid rgba(255, 255, 255, .06); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--yellow)); }
.hero .chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.hero h2 { font-size: 40px; font-weight: 900; letter-spacing: -.045em; margin: 14px 0 6px; line-height: 1.05; }
.hero p { color: rgba(255, 255, 255, .78); max-width: 460px; font-size: 16px; }
.hero .mini { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 16px; margin: 18px 12px 0 0; }
.hero .mini small { display: block; font-size: 12px; color: rgba(255, 255, 255, .8); }
.hero .mini b { font-size: 18px; }
.hero .deco { position: absolute; opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .hero { padding: 22px; } .hero h2 { font-size: 30px; } .hero p { font-size: 14.5px; } .hero .mini { margin: 14px 8px 0 0; padding: 8px 12px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: filter .15s, background .15s, transform .05s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(90deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 0 22px rgba(255, 45, 149, .4); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.white { background: #f2f2f2; color: #111; box-shadow: 0 0 18px rgba(255, 255, 255, .25); }
.btn.ghost { background: var(--card); border: 1px solid var(--border-2); color: #eee; }
.btn.ghost:hover { background: var(--card-hi); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.danger-soft { background: var(--red-soft); color: #f87171; }
.btn.yellow { background: var(--yellow); color: #111; }
.btn.green { background: var(--green); color: #07130b; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { width: 36px; padding: 0; }
.link-btn { color: var(--pink); font-weight: 500; font-size: 14.5px; }
.link-btn:hover { text-decoration: underline; }

/* tabs / pills */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: #d4d4d4; font-weight: 500; white-space: nowrap; flex: none; }
.tab:hover { color: #fff; background: var(--card-hi); }
.tab.active { background: linear-gradient(90deg, var(--pink), var(--pink-2)); color: #fff; border-color: transparent; box-shadow: 0 0 20px rgba(255, 45, 149, .4); }
.tab .count { background: rgba(255, 255, 255, .15); border-radius: 5px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.tab.active .count { background: rgba(255, 255, 255, .28); }
.tabs.small .tab { height: 30px; font-size: 13px; padding: 0 12px; border-radius: 8px; }
.tabs.small .tab.active { background: var(--pink-soft); color: var(--pink); border: 1px solid rgba(255, 45, 149, .4); box-shadow: none; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.seg button.active { background: var(--card-hi); color: #fff; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pink { background: var(--pink-soft); color: var(--pink); }
.badge.solid-pink { background: var(--pink); color: #fff; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: #f87171; }
.badge.blue { background: var(--blue-soft); color: #60a5fa; }
.badge.purple { background: var(--purple-soft); color: #c084fc; }
.badge.gray { background: var(--card-hi); color: #bbb; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: #e5e5e5; display: flex; align-items: center; gap: 8px; }
.field .help { font-size: 12px; color: var(--dim); }
.input, .select, .textarea { width: 100%; height: 46px; background: #121212; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 16px; color: var(--text); font-size: 15px; outline: none; transition: border .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6f6f6f; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 149, .15); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input.sm, .select.sm { height: 36px; font-size: 13.5px; padding: 0 12px; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 46px; height: 50px; border-radius: 14px; background: #121212; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #333; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--pink); }
.switch.on::after { transform: translateX(18px); }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s; }
.modal { width: 100%; max-width: 512px; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: #121212; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s; }
.modal.wide { max-width: 760px; }
.modal.xl { max-width: 1000px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 16px 20px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 19px; font-weight: 700; flex: 1; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--border); }
.modal-foot .btn { min-width: 110px; }
@media (max-width: 640px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide, .modal.xl { max-width: none; border-radius: 20px 20px 0 0; max-height: 92dvh; animation: up .22s; }
  .modal-foot { padding-bottom: calc(16px + var(--safe-b)); }
  .modal-foot .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

/* dropdown panel */
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 380px; max-height: 520px; overflow: auto; background: #121212; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.dropdown .dd-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.dropdown .dd-item { display: block; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid #1c1c1c; font-size: 14.5px; }
.dropdown .dd-item:hover { background: var(--card); }
.dropdown .dd-item.active { color: var(--pink); }
@media (max-width: 640px) { .dropdown { position: fixed; top: calc(64px + var(--safe-t)); left: 8px; right: 8px; width: auto; max-height: 70dvh; } }

/* empty */
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 16px; }
.empty > svg { width: 40px; height: 40px; color: #555; margin: 0 auto 12px; stroke-width: 1.6; }  /* only the big icon, not icons inside buttons */
.empty .btn { margin-top: 16px; }
.info-bar { display: flex; align-items: center; gap: 10px; background: #111; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: #cfcfcf; font-size: 14px; }
.info-bar svg { color: var(--pink); }
.info-bar b { color: #fff; }

/* avatar */
.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--card-hi); display: grid; place-items: center; overflow: hidden; flex: none; color: #888; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.round { border-radius: 50%; }
.avatar.grad { background: linear-gradient(135deg, var(--pink), #ffb86b); color: #fff; }

/* table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid #1d1d1d; vertical-align: middle; }
table.t tr:hover td { background: rgba(255, 255, 255, .015); }

/* progress */
.progress { height: 8px; background: #242424; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-2)); border-radius: 999px; transition: width .3s; }
.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* media grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #151515; border: 1px solid var(--border); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.drop { border: 2px dashed var(--border-2); border-radius: 14px; padding: 28px 16px; text-align: center; color: var(--muted); cursor: pointer; transition: border .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--pink); background: var(--pink-soft); color: #fff; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--dim); font-weight: 600; padding: 4px 0; }
.cal .day { min-height: 84px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px; font-size: 12px; text-align: left; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal .day.out { opacity: .35; }
.cal .day.today { border-color: var(--pink); }
.cal .day .n { font-weight: 700; font-size: 13px; }
.cal .ev { background: var(--pink-soft); color: var(--pink); border-radius: 5px; padding: 1px 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .cal { gap: 3px; } .cal .day { min-height: 54px; padding: 4px; } .cal .ev { font-size: 0; height: 5px; padding: 0; } }

/* toast */
.toasts { position: fixed; top: calc(16px + var(--safe-t)); right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #1b1b1b; border: 1px solid var(--border-2); border-left: 3px solid var(--pink); padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: pop .2s; max-width: 340px; }
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: var(--green); }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; top: 12px; } .toast { max-width: none; } }

/* login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 30% 0%, rgba(255, 45, 149, .16), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(255, 240, 0, .07), transparent 50%), var(--bg); }
.login-card { width: 100%; max-width: 400px; }
.login-card .brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-card .brand .logo { width: 64px; height: 64px; border-radius: 50%; background: #f2f2f2; color: #0a0a0a; display: grid; place-items: center; font-weight: 900; font-size: 32px; box-shadow: 0 0 40px rgba(255, 45, 149, .35); }

/* spinner */
.spin { width: 22px; height: 22px; border: 2.5px solid #333; border-top-color: var(--pink); border-radius: 50%; animation: rot .7s linear infinite; }
.page-load { display: grid; place-items: center; padding: 80px 0; }
@keyframes rot { to { transform: rotate(360deg); } }

/* model portal (role=model) */
.portal { max-width: 720px; margin: 0 auto; }
.portal-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l)); background: #0a0a0a; border-bottom: 1px solid var(--border); }
.portal-body { padding: 16px 16px calc(96px + var(--safe-b)); }
.portal .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #0c0c0c; border-top: 1px solid var(--border); padding: 8px 4px calc(8px + var(--safe-b)); justify-content: center; }
.portal .bn-item { flex: 1 1 0; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.portal .bn-item .ic { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 9px; }
.portal .bn-item.active { color: var(--pink); }
.portal .bn-item.active .ic { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 0 16px rgba(255, 45, 149, .5); }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; margin: 4px 0 16px; letter-spacing: -.02em; }

/* portals + settings */
.va-layout { display: flex; align-items: stretch; gap: 20px; }
.va-list-card { width: 340px; flex: none; }
@media (max-width: 900px) { .va-layout { flex-direction: column; } .va-list-card { width: 100%; max-height: 320px; } }

/* growth pages (payments, sugardaddy, adult-sites, promos, shoutouts) */
.cal .day { width: 100%; cursor: pointer; }
.cal button.day:hover { border-color: var(--border-2); }
.cal .day.active { border-color: var(--pink) !important; }
.list-row.active { background: var(--pink-soft); }
.model-picker-layout { display: flex; align-items: flex-start; }
.model-picker-col { width: 230px; flex: none; }
@media (max-width: 900px) {
  .model-picker-layout { flex-direction: column; }
  .model-picker-col { width: 100%; }
}

/* model-detail + presets */
.cal .day { position: relative; }
.seg { display: inline-flex; }
@media (max-width: 640px) {
  .card { padding: 16px; }
  .card .row.between.mb-16 { flex-wrap: wrap; gap: 10px; }
  .grid-4 .stat { padding: 14px; }
}

/* onboarding */
.bn-item { background: none; border: none; cursor: pointer; font-family: inherit; }
.portal .bn-item { background: none; border: none; cursor: pointer; font-family: inherit; }
.onb-dots { overflow-x: auto; scrollbar-width: none; }
.onb-dots::-webkit-scrollbar { display: none; }

/* training */
.lesson-body p { margin: 0 0 12px; line-height: 1.6; color: #ddd; }
.lesson-body p:last-child { margin-bottom: 0; }
.lesson-body h4 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: #fff; }
.lesson-body h4:first-child { margin-top: 0; }
.lesson-body ul { margin: 0 0 12px; padding-left: 20px; }
.lesson-body li { margin-bottom: 6px; line-height: 1.5; color: #ddd; }
.lesson-body a { color: var(--pink); text-decoration: underline; }
.lesson-body strong { color: #fff; }
.training-course-card { display: block; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--border); transition: border-color .15s; }
.training-course-card:hover { border-color: var(--border-2); }
.lesson-reader { max-width: 640px; margin: 0 auto; }

/* availability (portal-availability.js / model-detail.js ScheduleTab / team-calendar.js) */
.avail-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.avail-daycol-head { background: var(--bg-2); padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.avail-daycol-head.today { color: var(--pink); }
.avail-hour-lbl { background: var(--bg-2); font-size: 10px; color: var(--dim); text-align: right; padding: 2px 6px; white-space: nowrap; }
.avail-cell { background: #0f0f0f; min-height: 26px; position: relative; cursor: pointer; padding: 1px; display: flex; flex-direction: column; gap: 1px; }
.avail-cell:hover { background: #161616; }
.avail-block { border-radius: 4px; font-size: 10px; padding: 1px 4px; overflow: hidden; cursor: pointer; color: #fff; }
.avail-block.green { background: rgba(34, 197, 94, .55); }
.avail-block.gray { background: rgba(255, 255, 255, .18); }
.avail-block.pink { background: rgba(255, 45, 149, .6); }
.avail-block.blue { background: rgba(59, 130, 246, .6); }
.avail-timeline { position: relative; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.avail-tl-row { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); cursor: pointer; }
.avail-tl-row:hover { background: rgba(255, 45, 149, .05); }
.avail-tl-lbl { position: absolute; left: 6px; top: -7px; font-size: 10px; color: var(--dim); background: var(--bg-2); padding: 0 4px; }
.avail-tl-block { position: absolute; left: 56px; right: 8px; border-radius: 8px; padding: 4px 8px; display: flex; flex-direction: column; gap: 1px; cursor: pointer; color: #fff; overflow: hidden; z-index: 2; }
.avail-tl-block.green { background: rgba(34, 197, 94, .75); }
.avail-tl-block.gray { background: rgba(255, 255, 255, .22); color: #eee; }
.avail-tl-block.pink { background: rgba(255, 45, 149, .8); }
.avail-tl-block.blue { background: rgba(59, 130, 246, .8); }

/* vaults (vaults.js, model-detail weekly plans, portal-vaults.js) */
.mb-8 { margin-bottom: 8px; }
.vault-emoji { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--vc, var(--pink)) 18%, #151515); border: 1px solid color-mix(in srgb, var(--vc, var(--pink)) 45%, transparent); }
.vault-card { border-top: 3px solid var(--vc, var(--pink)); }
.vault-card.off { opacity: .55; }
.chip-q { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #1f1f1f; border: 1px solid var(--border-2); font-size: 12.5px; white-space: nowrap; }
.vault-secs .tabs { flex-wrap: wrap; }
.emoji-pick { width: 38px; height: 38px; border-radius: 10px; font-size: 20px; background: var(--card); border: 1px solid var(--border); }
.emoji-pick.on { border-color: var(--pink); background: var(--pink-soft); }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--border-2); }
.swatch.on { border-color: #fff; }
.swatch-input { width: 38px; height: 32px; padding: 0; border: 0; background: none; }
.vault-preview { max-height: 440px; overflow: auto; }
.vault-media-row .media { aspect-ratio: 1; }
.plan-vaults { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.plan-vault { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); text-align: left; }
.plan-vault.on { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 14%, #141414); }
.plan-vault .pv-check { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #242424; flex: none; }
.plan-vault.on .pv-check { background: var(--vc); color: #000; }
.plan-vault .pv-emoji { font-size: 18px; }
.plan-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.plan-num { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.plan-num .input { height: 38px; }
@media (max-width: 640px) { .plan-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-week { cursor: pointer; transition: border-color .15s; }
.plan-week:hover { border-color: var(--border-2); }
.plan-item-row { display: flex; align-items: center; gap: 12px; }
.plan-item-row .pi-name { width: 180px; flex: none; font-size: 14px; }
.plan-item-row .pi-count { width: 120px; flex: none; text-align: right; }
@media (max-width: 640px) { .plan-item-row { flex-wrap: wrap; gap: 6px 12px; } .plan-item-row .pi-name { width: auto; flex: 1; } .plan-item-row .grow { order: 3; flex-basis: 100%; } }
.review-tile .btn.sm { height: 30px; padding: 0 8px; }
.dl-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.dl-list a { color: var(--pink); word-break: break-all; }
.media { cursor: pointer; }
.mv { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .96); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.mv img, .mv video { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.mv .mv-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .12); width: 44px; height: 44px; border-radius: 50%; }
.mv .mv-count { position: absolute; top: 22px; left: 16px; font-size: 13px; color: #ccc; }
.mv .mv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(16px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); text-align: center; font-size: 14px; }
.mv .mv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.mv .mv-nav.l { left: 8px; } .mv .mv-nav.r { right: 8px; }
/* portal: my week + guides */
.wk-head .wk-num { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.wk-due { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--yellow-soft); color: var(--yellow); font-weight: 600; font-size: 14px; }
.wk-due.late { background: var(--red-soft); color: #ff6b6b; }
.wk-item { border-left: 4px solid var(--vc, var(--pink)); }
.wk-item.met { border-left-color: var(--green); }
.wk-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.outfit-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.outfit-pills button { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border-2); font-size: 14px; }
.outfit-pills button.on { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; }
.info-bar.warn { border-color: var(--red); background: var(--red-soft); }
.guide-h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.script-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: #ddd; background: #0e0e0e; border-radius: 10px; padding: 12px; }
.shop-row { cursor: pointer; }
.shop-row input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.shop-row.have b { text-decoration: line-through; color: var(--muted); }
.rule { align-items: flex-start; }
.rule svg { margin-top: 2px; }
.vault-tile { display: flex; align-items: center; gap: 14px; width: 100%; border-left: 4px solid var(--vc); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .modal.xl .modal-foot { flex-wrap: wrap; } .modal.xl .modal-foot .btn { flex: 1 1 40%; min-width: 0; } .modal.xl .modal-foot > .grow { display: none; } }

/* verifications (verifications.js overview matrix + portal-verifications.js) */
.ver-matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table.ver-matrix { min-width: 100%; }
table.ver-matrix th, table.ver-matrix td { text-align: center; }
table.ver-matrix .ver-sticky-col { position: sticky; left: 0; z-index: 3; background: #101010; text-align: left; box-shadow: 2px 0 0 var(--border); min-width: 160px; }
table.ver-matrix thead .ver-sticky-col { background: var(--bg-2); z-index: 4; }
.ver-col-head { min-width: 110px; }
.ver-cell { padding: 8px !important; }
.ver-dot { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-2); background: #161616; color: var(--dim); cursor: pointer; font-size: 13px; transition: transform .1s; }
.ver-dot:hover { transform: scale(1.08); }
.ver-dot.none { color: var(--dim); background: #141414; }
.ver-dot.orange { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.ver-dot.yellow { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.ver-dot.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.ver-dot.red { background: var(--red-soft); color: #f87171; border-color: transparent; }
.ver-dot.pulse { position: relative; }
.ver-dot.pulse::after { content: ''; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid var(--yellow); animation: verpulse 1.4s ease-out infinite; }
@keyframes verpulse { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
/* weekly tasks (vaults.js Tasks editor, _weekplan.js, portal-vaults.js WeekTasks/TodayTasksCard, weeks.js) */
code.tok { font-size: 11px; background: #242424; padding: 1px 5px; border-radius: 5px; color: var(--pink); }
.tpl-day { width: 132px; flex: none; }
.task-edit .sm-input { height: 34px; font-size: 13px; }
@media (max-width: 640px) { .tpl-row { flex-wrap: wrap; } .tpl-row .grow { flex-basis: calc(100% - 30px); } }
.admin-task-day { margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.admin-task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #121212; border: 1px solid var(--border); }
.admin-task input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin-top: 2px; }
.admin-task.done .at-title { text-decoration: line-through; color: var(--muted); }
.admin-task.late { border-color: var(--red); }
.wt-card { display: flex; flex-direction: column; }
.wt-group { margin-top: 14px; border-radius: 14px; }
.wt-group.today { background: color-mix(in srgb, var(--pink) 9%, transparent); border: 1px solid color-mix(in srgb, var(--pink) 45%, transparent); padding: 4px 8px 8px; }
.wt-group.past { opacity: .75; }
.wt-day { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 2px 6px; }
.wt-group.today .wt-day { color: var(--pink); }
.wt-group.late .wt-day { color: #ff6b6b; }
.wt-task { border-bottom: 1px solid var(--border); }
.wt-task:last-child { border-bottom: 0; }
.wt-main { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.wt-check { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; background: transparent; }
.wt-check:active { transform: scale(.94); }
.wt-task.done .wt-check { background: var(--green); border-color: var(--green); color: #000; }
.wt-task.late .wt-check { border-color: #ff6b6b; }
.wt-body { flex: 1; min-width: 0; text-align: left; padding: 8px 0; background: none; }
.wt-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.wt-meta { color: var(--dim); margin-top: 2px; }
.wt-task.done .wt-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.wt-task.late .wt-title, .wt-task.late .wt-meta { color: #ff6b6b; }
.wt-exp { width: 36px; height: 44px; flex: none; color: var(--dim); background: none; display: grid; place-items: center; }
.wt-detail { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px 50px; color: #ddd; }
.wp-nav { display: flex; align-items: center; gap: 8px; }
.wp-card { display: flex; flex-direction: column; }
.wp-card.off { opacity: .85; border-style: dashed; }
.wp-card.behind { border-color: color-mix(in srgb, var(--red) 55%, var(--border)); }
.wp-card a.bold { color: inherit; text-decoration: none; }
.wp-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 640px) { .wp-grid { grid-template-columns: 1fr; } }
.wp-item { font-size: 13px; }
.wp-item .wp-count { flex: none; white-space: nowrap; }
.wp-card > a.btn { margin-top: auto; }

/* setup checklist */
.setup-card { padding: 0; overflow: hidden; }
.setup-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; background: none; border: none; text-align: left; cursor: pointer; }
.setup-body { padding: 0 20px 20px; }
.setup-lib-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #131313; border: 1px solid var(--border); }
.setup-lib-row svg { flex: none; }
.setup-row { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 12px; background: #131313; border: 1px solid var(--border); flex-wrap: wrap; }
.setup-chips { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.setup-chip-col { display: flex; flex-direction: column; gap: 4px; min-width: 84px; }
.setup-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; background: #1f1f1f; color: var(--muted); border: 1px solid var(--border-2); }
.setup-chip.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.setup-chip.yellow { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.setup-chip.orange { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.setup-chip.red { background: var(--red-soft); color: #f87171; border-color: transparent; }
.setup-chip.gray { background: #1f1f1f; color: var(--muted); }
@media (max-width: 760px) { .setup-row { flex-direction: column; align-items: stretch; } .setup-chips { justify-content: space-between; gap: 10px; } .setup-chip-col { min-width: 0; flex: 1; } }
/* planner: time estimates, step checklists, Today + My Week (portal-vaults.js TodaySection/MyWeekSection, vaults.js Tasks, _weekplan.js StandardWeekBox) */
.tpl-time { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tpl-time .plan-num { width: 130px; }
.tpl-est { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--pink-soft); color: var(--pink); font-weight: 700; font-size: 13px; }
.min-in { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.min-in .input { width: 78px; }
.steps-ta { font-size: 13px; }
.std-week.compact { padding: 10px 12px; border-radius: 12px; background: #121212; border: 1px dashed var(--border-2); }
.upper { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.today-card { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 16%, var(--card)), var(--card) 65%); border-color: color-mix(in srgb, var(--pink) 35%, var(--border)); }
.today-greet h2 { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.today-greet .muted { font-size: 14px; margin-top: 4px; text-transform: capitalize; }
.big-ring { position: relative; width: 76px; height: 76px; flex: none; }
.big-ring svg { width: 100%; height: 100%; }
.big-ring circle { transition: stroke-dashoffset .4s; }
.big-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.today-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 600; }
.tchip.hi { background: var(--pink); color: #fff; }
.tchip.red { background: var(--red-soft); color: #ff6b6b; }
.today-empty { display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; }
.tomorrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #121212; font-size: 14px; color: #ddd; }
.celebrate { text-align: center; padding: 28px 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--green) 16%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.celebrate .cel-emoji { font-size: 44px; animation: pop .4s; }
.celebrate .tomorrow { text-align: left; }
.tk-group { padding: 8px 16px 12px; }
.tk-group-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 0 6px; }
.tk-group-h.pink { color: var(--pink); } .tk-group-h.red { color: #ff6b6b; }
.late-group { border-color: color-mix(in srgb, var(--red) 60%, var(--border)); background: color-mix(in srgb, var(--red) 7%, var(--card)); }
.day-sec { scroll-margin-top: 80px; }
.day-sec.is-today { border-color: color-mix(in srgb, var(--pink) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pink) 25%, transparent); }
.day-sec.past { opacity: .72; }
.tk { border-bottom: 1px solid var(--border); }
.tk:last-of-type { border-bottom: 0; }
.tk-main { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.tk .wt-check { width: 44px; height: 44px; }
.tk.done .wt-check { background: var(--green); border-color: var(--green); color: #000; }
.tk.late .wt-check { border-color: #ff6b6b; }
.tk-body { flex: 1; min-width: 0; text-align: left; padding: 10px 0; }
.tk-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.tk.done .tk-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.tk-time { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-weight: 700; }
.tk.done .tk-time { color: var(--dim); }
.tk-bar { height: 4px; border-radius: 4px; background: #2a2a2a; margin-top: 8px; overflow: hidden; }
.tk-bar > div { height: 100%; background: var(--green); transition: width .3s; }
.tk-open { display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px 56px; }
.tk-detail { white-space: pre-wrap; color: #ccc; }
.tk-steps { display: flex; flex-direction: column; gap: 6px; }
.tk-step { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: #121212; border: 1px solid var(--border); text-align: left; font-size: 15px; }
.tk-step .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; }
.tk-step.on { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.tk-step.on .box { background: var(--green); border-color: var(--green); color: #000; }
.tk-step.on .grow { text-decoration: line-through; color: var(--muted); }
.tk-actions { display: flex; gap: 8px; }
.tk-actions .btn { flex: 1; }
@media (max-width: 480px) { .tk-open { padding-left: 0; } }
.wk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wk-stats > div { background: #121212; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.wk-stats b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.wk-stats span { font-size: 12px; color: var(--muted); }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ds { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); min-width: 0; }
.ds:disabled { opacity: .45; cursor: default; }
.ds-dow { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ds-num { font-size: 18px; font-weight: 800; }
.ds-cnt { height: 22px; min-width: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--pink-soft); color: var(--pink); }
.ds-min { font-size: 10.5px; color: var(--dim); min-height: 14px; white-space: nowrap; }
.ds.today { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, var(--card)); }
.ds.alldone .ds-cnt { background: var(--green); color: #000; }
.ds.late .ds-cnt { background: var(--red-soft); color: #ff6b6b; }
.ds.empty .ds-cnt { background: none; color: var(--dim); }
.ic-cnts { display: flex; gap: 8px; }
.ic-cnt { flex: 1; background: #121212; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.ic-cnt b { font-size: 17px; } .ic-cnt span { font-size: 12px; color: var(--muted); }
.ic-cnt.met b { color: var(--green); }
.rej-box { border: 1px solid color-mix(in srgb, var(--red) 60%, var(--border)); background: var(--red-soft); color: #ffb4b4; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rej-row { display: flex; align-items: center; gap: 10px; color: #eee; }
.ex-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ex-th { width: 84px; flex: none; }
.wk-item.bare { border-left: 0; }
.tchip { white-space: nowrap; flex: none; max-width: 100%; }
.tk-h-time { white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* verifications v2 — pose grids (verifications.js By model / Platforms / editor / review, model-detail tab, portal-verifications.js) */
.ver-pic { flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--vc, var(--pink)) 20%, #151515); border: 1px solid color-mix(in srgb, var(--vc, var(--pink)) 50%, transparent); line-height: 1; }
.ver-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card-hi); font-size: 12px; font-weight: 700; }
.ver-chips, .pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ver-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: #d4d4d4; font-weight: 500; font-size: 14px; white-space: nowrap; }
.ver-chip span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #262626; font-size: 12px; display: grid; place-items: center; }
.ver-chip.active { background: var(--pink-soft); border-color: rgba(255, 45, 149, .5); color: #fff; }
.ver-chip.review span { background: var(--yellow); color: #111; }
.ver-chip.waiting span { background: var(--orange-soft); color: var(--orange); }
.ver-chip.approved span { background: var(--green-soft); color: var(--green); }
.ver-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.ver-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.ver-tile { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--vc); text-align: left; color: inherit; transition: background .15s; }
.ver-tile:hover { background: var(--card-hi); }
.ver-tile.review { border-color: var(--yellow); border-left-color: var(--vc); box-shadow: 0 0 0 1px var(--yellow), 0 0 18px rgba(255, 240, 0, .15); }
.ver-tile.done { opacity: .8; }
.ver-tile .badge { height: 20px; padding: 0 7px; font-size: 11px; }
.ver-new { background: var(--yellow); color: #111; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.ver-more { width: 26px; height: 26px; margin: -4px -6px -4px 0; flex: none; }
.ver-menu { position: absolute; top: 40px; right: 8px; z-index: 20; min-width: 180px; display: flex; flex-direction: column; padding: 4px; border-radius: 10px; background: #121212; border: 1px solid var(--border-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.ver-menu button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; text-align: left; color: #eee; }
.ver-menu button:hover { background: var(--card-hi); }
.ver-menu button.red { color: #f87171; }
.ver-tile-bar, .pv-bar { width: 100%; height: 5px; background: #262626; border-radius: 999px; overflow: hidden; }
.ver-tile-bar > div, .pv-bar > div { height: 100%; background: var(--vc, var(--pink)); border-radius: 999px; transition: width .3s; }
.ver-empty { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 2px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 14px; }
.ver-empty:hover { border-color: var(--pink); color: #fff; }
.ver-thumb { position: relative; width: 96px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #151515; border: 1px solid var(--border); cursor: pointer; flex: none; }
.ver-thumb.lg { width: 150px; }
.ver-thumb img, .ver-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ver-thumb.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--border-2); color: var(--dim); font-size: 11px; text-align: center; padding: 6px; cursor: default; }
.ver-thumb.empty.add { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); cursor: pointer; }
.ver-thumb.empty.add:hover { background: rgba(249, 115, 22, .28); }
.ver-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.ver-play svg { background: rgba(0, 0, 0, .55); border-radius: 50%; padding: 6px; box-sizing: content-box; }
/* assign modal */
.ver-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ver-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: inherit; text-align: center; }
.ver-pick:hover { background: var(--card-hi); }
.ver-pick.on { border-color: var(--vc); box-shadow: 0 0 0 1px var(--vc); background: color-mix(in srgb, var(--vc) 10%, #111); }
.ver-pick.rm { border-color: var(--red); border-style: dashed; opacity: .75; }
.ver-pick .badge { height: auto; min-height: 20px; white-space: normal; font-size: 11px; }
.ver-check { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-2); display: grid; place-items: center; background: rgba(0, 0, 0, .5); }
.ver-pick.on .ver-check, .ver-check.on { background: var(--vc, var(--pink)); border-color: var(--vc, var(--pink)); color: #111; }
.ver-check.sm { width: 18px; height: 18px; top: 6px; left: auto; right: 6px; }
/* pose grid cells (admin review + portal) */
.ver-pg-n { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ver-pb { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .6); border: 2px dashed rgba(255, 255, 255, .45); color: #fff; }
.ver-pb.uploaded { background: var(--yellow); border: 0; color: #111; font-size: 9px; }
.ver-pb.approved { background: var(--green); border: 0; color: #07130b; }
.ver-pb.rejected { background: var(--red); border: 0; }
.ver-pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ver-pg-cell { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: inherit; text-align: left; }
.ver-pg-cell:hover { background: var(--card-hi); }
.ver-pg-cell.uploaded { border-color: var(--yellow); }
.ver-pg-cell.rejected { border-color: var(--red); }
.ver-pg-cell.approved { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.ver-pg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 8px; overflow: hidden; }
.ver-pg-half { aspect-ratio: 3/4; background: #0b0b0b; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.ver-pg-half img, .ver-pg-half video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ver-pg-none { font-size: 10px; text-align: center; padding: 4px; }
.ver-pg-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.ver-pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ver-col-lbl { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ver-pd-media { display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 12px; background: #0b0b0b; border: 1px solid var(--border); }
.ver-pd-media.her { border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.ver-big { width: 100%; max-height: 56vh; object-fit: contain; border-radius: 8px; display: block; cursor: zoom-in; background: #000; }
.ver-pd-empty { width: 100%; aspect-ratio: 3/4; max-height: 56vh; }
/* template editor + platforms tab */
.ver-bulk .drop { padding: 18px 12px; font-size: 13.5px; }
.ver-pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ver-pose-cell { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid transparent; background: none; color: inherit; text-align: left; }
.ver-pose-cell .ver-thumb { width: 100%; }
.ver-pose-cell:hover { background: var(--card); }
.ver-pose-cell.sel { border-color: var(--pink); background: var(--pink-soft); }
.ver-pose-cell.on { border-color: var(--pink); }
.ver-pose-cell.drag { opacity: .4; }
.ver-pose-t { min-height: 30px; }
.ver-pose-ed { border-color: rgba(255, 45, 149, .5); }
.ver-pose-ed-body { display: flex; gap: 16px; align-items: flex-start; }
.ver-ex-wrap { position: relative; }
.ver-ex-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0, 0, 0, .7); border-radius: 50%; }
.ver-ex-up { width: 150px; }
.ver-ex-up .drop { padding: 16px 8px; font-size: 12.5px; }
.ver-ex-up.missing .drop { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.ver-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.ver-shot-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ver-shot-mini { width: 96px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.ver-shot-mini .ver-thumb { width: 96px; }
.info-bar.ver-warn { border-color: var(--orange); background: var(--orange-soft); }
.info-bar.ver-warn svg { color: var(--orange); }
@media (max-width: 640px) {
  .ver-tiles, .ver-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ver-pg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ver-pose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ver-pose-ed-body { flex-direction: column; }
  .hide-m { display: none; }
}
/* portal */
.pv-tiles { display: flex; flex-direction: column; gap: 10px; }
.pv-tile { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--vc); color: inherit; }
.pv-tile.rejected { border-color: var(--red); border-left-color: var(--vc); }
.pv-tile.approved { opacity: .8; }
.pv-head { border-top: 3px solid var(--vc); }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pv-cell { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: #111; border: 2px solid var(--border); padding: 0; color: #fff; }
.pv-cell > img, .pv-cell > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-cell.missing { border-color: var(--border-2); }
.pv-cell.uploaded { border-color: var(--yellow); }
.pv-cell.approved { border-color: var(--green); }
.pv-cell.rejected { border-color: var(--red); }
.pv-cell-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); background: repeating-linear-gradient(45deg, #121212 0 10px, #161616 10px 20px); }
.pv-cell-her { position: absolute; right: 6px; bottom: 34px; width: 38%; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .6); }
.pv-cell-her img, .pv-cell-her video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-cell-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 12.5px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-ex-img { position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden; background: #0b0b0b; border: 1px solid var(--border); padding: 0; }
.pv-ex-img img, .pv-ex-img video { display: block; width: 100%; max-height: 48dvh; object-fit: contain; }
.pv-mine { display: flex; gap: 8px; }
.pv-mine .pv-ex-img { width: 150px; border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.pv-mine .pv-ex-img img, .pv-mine .pv-ex-img video { aspect-ratio: 3/4; object-fit: cover; }
.pv-ok { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #07130b; display: grid; place-items: center; }
.pv-instr { font-size: 15px; line-height: 1.5; color: #e5e5e5; white-space: pre-line; }
.pv-up .drop { padding: 20px 12px; font-size: 16px; font-weight: 600; color: #fff; border-color: var(--pink); background: var(--pink-soft); }
.pv-send { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); text-align: center; }
.pv-send.sticky { position: sticky; bottom: calc(76px + var(--safe-b, 0px)); z-index: 5; background: rgba(14, 14, 14, .96); }
.pv-sheet { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: flex; flex-direction: column; animation: up .2s; }
.pv-sheet-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pv-sheet-body { flex: 1; overflow-y: auto; padding: 16px; width: 100%; max-width: 640px; margin: 0 auto; }
.pv-sheet-ex.multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv-sheet-foot { padding: 12px 16px calc(12px + var(--safe-b, 0px)); border-top: 1px solid var(--border); width: 100%; max-width: 640px; margin: 0 auto; }
@media (max-width: 640px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 861px) { .pv-send.sticky { bottom: 12px; } .pv-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.ver-toolbar .search { width: 240px; }
@media (max-width: 640px) { .ver-toolbar > .grow { display: none; } .ver-toolbar .search { flex: 1 1 auto; width: auto; } }

/* one task per vault item (_weekplan.js ItemTaskEditor) + IG targets / link examples (vaults.js LinkListEditor, portal-vaults.js TargetCards) */
.plan-item { border-left: 3px solid var(--vc, var(--pink)); }
.it-task { padding: 12px; border-radius: 12px; background: rgba(255, 45, 149, .05); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent); }
.it-task .sm-input, .link-ed .sm-input { height: 36px; font-size: 13.5px; }
.it-task textarea.sm-input { height: auto; }
.it-lbl { display: inline-flex; align-items: center; gap: 5px; min-width: 58px; font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .03em; }
.it-pick { min-width: 0; }
.it-time .min-in .input { width: 84px; }
.it-split { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 10px; border-radius: 9px; background: var(--pink-soft); color: var(--pink); font-weight: 700; font-size: 13px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { min-width: 44px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border-2, #333); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; cursor: pointer; }
.dchip small { font-size: 10px; opacity: .7; font-weight: 500; }
.dchip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.it-targets > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 4px 0; list-style: none; }
.it-targets > summary::-webkit-details-marker { display: none; }
.it-targets > summary::before { content: '▸'; color: var(--muted); }
.it-targets[open] > summary::before { content: '▾'; }
.plan-total { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pink); font-size: 13.5px; }
.tpl-main { border-color: var(--pink) !important; box-shadow: 0 0 0 1px var(--pink) inset; }
.main-radio { font-size: 13px; }
.main-radio.on { color: var(--pink); }
.link-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.link-th { width: 56px; height: 70px; flex: none; border-radius: 9px; object-fit: cover; background: #111; border: 1px solid var(--border); display: grid; place-items: center; color: var(--pink); }
.link-url { display: flex; align-items: center; gap: 5px; text-decoration: none; }
.link-add { padding: 10px; border-radius: 12px; border: 1px dashed var(--border-2, #333); }
.input.bad { border-color: var(--red); }
.tg-list { display: flex; flex-direction: column; gap: 10px; }
.tg-card { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 45, 149, .10), rgba(168, 85, 247, .07)); border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent); }
.tg-card.tiktok { background: linear-gradient(135deg, rgba(37, 244, 238, .08), rgba(254, 44, 85, .08)); }
.tg-img { width: 84px; height: 112px; flex: none; border-radius: 10px; overflow: hidden; padding: 0; border: 1px solid var(--border); background: #111; display: grid; place-items: center; color: var(--pink); cursor: pointer; }
.tg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-label { font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--pink); }
.tg-note { line-height: 1.4; white-space: pre-line; }
.tg-open { align-self: flex-start; margin-top: auto; }
.tk-open .tg-list { margin-bottom: 10px; }

/* ===== team-calendar.js — big calendar (Month / Week / Day), 2026-10-01 ===== */
.tc { display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - var(--header-h) - 48px); min-height: 560px; }
.tc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tc-nav, .tc-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tc-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-left: 6px; white-space: nowrap; }
.tc-spin { width: 16px; height: 16px; border-width: 2px; margin-left: 6px; }
.tc-filters { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-chips, .tc-layers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.tc-chips { flex: 1; min-width: 0; }
.tc-chips::-webkit-scrollbar, .tc-layers::-webkit-scrollbar, .tc-strip::-webkit-scrollbar { display: none; }
.tc-chip { --c: var(--pink); display: inline-flex; align-items: center; flex: none; height: 34px; border-radius: 999px; background: var(--card); border: 1px solid var(--border-2); transition: opacity .15s, border-color .15s, background .15s; }
.tc-chip:hover { border-color: #444; }
.tc-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, #141414); }
.tc-chip.all.on { --c: var(--pink); }
.tc-chip.dim { opacity: .5; }
.tc-chip.dim:hover { opacity: .85; }
.tc-chip-main { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 12px 0 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tc-chip.all .tc-chip-main { padding: 0 14px; }
.tc-chip-av, .tc-mb-av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--c); color: #0b0b0b; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.tc-chip-av img, .tc-mb-av img { width: 100%; height: 100%; object-fit: cover; }
.tc-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tc-chip-more { width: 28px; height: 100%; display: grid; place-items: center; color: var(--muted); border-left: 1px solid var(--border-2); border-radius: 0 999px 999px 0; }
.tc-chip-more:hover { color: #fff; }
.tc-layer { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--dim); border: 1px solid var(--border); white-space: nowrap; flex: none; }
.tc-layer.on { color: #ddd; background: var(--card); border-color: var(--border-2); }
.tc-layer-sw { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid currentColor; }
.tc-layer.on .tc-layer-sw { border-color: transparent; }
.tc-layer.avail.on .tc-layer-sw { background: repeating-linear-gradient(135deg, rgba(255, 79, 163, .55) 0 3px, rgba(255, 79, 163, .2) 3px 6px); border: 1px dashed var(--pink); }
.tc-layer.book.on .tc-layer-sw { background: var(--pink); }
.tc-layer.tasks.on .tc-layer-sw { background: #60a5fa; border-radius: 50%; }
.tc-layer.dead.on .tc-layer-sw { background: var(--yellow); }
.tc-banners { display: flex; flex-direction: column; gap: 6px; }
.tc-banner { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: var(--yellow-soft); border: 1px solid rgba(255, 240, 0, .22); }
.tc-link { color: var(--pink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tc-link:hover { text-decoration: underline; }
.tc-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* badge on every event */
.tc-mb { --c: var(--pink); display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: none; max-width: 100%; }
.tc-mb .tc-mb-av { width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); }
.tc-mb-n { font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* week / day time grid */
.tc-grid { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: #0d0d0d; overscroll-behavior: contain; }
.tc-head { position: sticky; top: 0; z-index: 6; background: #111; border-bottom: 1px solid var(--border-2); }
.tc-row { display: grid; }
.tc-tz { font-size: 10px; color: var(--dim); display: flex; align-items: flex-end; justify-content: center; padding: 6px 2px; }
.tc-dh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; border-left: 1px solid var(--border); min-width: 0; }
.tc-dh:hover .tc-dh-n { background: var(--card-hi); }
.tc-dh-w { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tc-dh-n { font-size: 22px; font-weight: 600; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.tc-dh.today .tc-dh-w { color: var(--pink); }
.tc-dh.today .tc-dh-n { background: var(--pink); color: #fff; }
.tc-allday { border-top: 1px solid var(--border); }
.tc-ad-cell { display: flex; flex-direction: column; gap: 3px; padding: 4px 3px; border-left: 1px solid var(--border); min-width: 0; }
.tc-pill { --c: var(--pink); display: flex; align-items: center; gap: 5px; min-width: 0; width: 100%; height: 24px; padding: 0 6px 0 3px; border-radius: 6px; font-size: 11.5px; text-align: left;
  background: color-mix(in srgb, var(--c) 14%, #151515); border-left: 3px solid var(--c); color: #e8e8e8; }
.tc-pill:hover { background: color-mix(in srgb, var(--c) 24%, #151515); }
.tc-pill.due { background: rgba(255, 240, 0, .1); border-left-color: var(--yellow); color: var(--yellow); font-weight: 600; }
.tc-pill.done .tc-pill-t, .tc-mev.done .tc-mev-t { text-decoration: line-through; opacity: .55; }
.tc-pill-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-more { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: left; padding: 1px 6px; border-radius: 6px; }
.tc-more:hover { color: #fff; background: var(--card-hi); }
.tc-more-btn { color: var(--muted); width: 26px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.tc-more-btn:hover { background: var(--card-hi); color: #fff; }
.tc-hours { position: relative; }
.tc-hl { position: relative; font-size: 10.5px; color: var(--dim); text-align: right; padding-right: 8px; }
.tc-hl span { position: relative; top: -7px; }
.tc-col { position: relative; border-left: 1px solid var(--border); cursor: pointer; min-width: 0;
  background-image: linear-gradient(to bottom, #232323 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 100% var(--hpx), 100% calc(var(--hpx) / 2); }
.tc-col:hover { background-color: rgba(255, 255, 255, .012); }
.tc-col.today { background-color: rgba(255, 45, 149, .025); }
.tc-bg { --c: var(--pink); position: absolute; border-radius: 8px; overflow: hidden; z-index: 1; container-type: inline-size;
  background: color-mix(in srgb, var(--c) 13%, transparent); border: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.tc-bg:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.tc-bg.busy { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 6px, rgba(255, 255, 255, .02) 6px 12px); border: 1px solid #333; }
.tc-bg.shoot { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent) 0 6px, color-mix(in srgb, var(--c) 12%, transparent) 6px 12px); border-style: solid; }
.tc-bg-lbl { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 4px 6px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #fff); }
.tc-bg.busy .tc-bg-lbl { color: var(--muted); }
.tc-dimtxt { color: var(--muted); font-weight: 500; }
.tc-ev { --c: var(--pink); position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 6px; border-radius: 7px; overflow: hidden; text-align: left; container-type: inline-size;
  background: color-mix(in srgb, var(--c) 82%, #000); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 3px 10px rgba(0, 0, 0, .45); border: 1px solid color-mix(in srgb, var(--c) 60%, #000); transition: filter .12s, transform .12s; }
.tc-ev:hover { filter: brightness(1.1); z-index: 4; }
.tc-ev.short { padding: 2px 6px; justify-content: center; }
.tc-ev.done { opacity: .55; }
.tc-ev.done .tc-ev-t { text-decoration: line-through; }
.tc-ev.pending { opacity: .7; }
.tc-ev .tc-mb-n { color: #fff; }
.tc-ev .tc-mb-av { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.tc-ev-t { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.tc-ev-time { font-size: 11px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ev-note { font-size: 11px; opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@container (max-width: 96px) { .tc-mb-n { display: none; } }
@container (max-width: 52px) { .tc-ev-time, .tc-bg-lbl > span:not(.tc-mb) { display: none; } }
.tc-now { position: absolute; left: -1px; right: 0; height: 2px; background: #ef4444; z-index: 5; pointer-events: none; }
.tc-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }

/* month */
.tc-month { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0d0d0d; }
.tc-mh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #111; border-bottom: 1px solid var(--border-2); }
.tc-mh div { padding: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.tc-mgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); }
.tc-mc { display: flex; flex-direction: column; gap: 3px; padding: 4px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; min-height: 0; overflow: hidden; cursor: pointer; }
.tc-mc:hover { background: rgba(255, 255, 255, .02); }
.tc-mc:nth-child(7n) { border-right: 0; }
.tc-mc.out { background: #0a0a0a; }
.tc-mc.out .tc-mc-n { color: var(--dim); }
.tc-mc-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tc-mc-n { font-size: 12.5px; font-weight: 600; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.tc-mc.today .tc-mc-n { background: var(--pink); color: #fff; }
.tc-mc-free { display: flex; gap: 3px; padding-right: 4px; }
.tc-mc-free i { width: 7px; height: 7px; border-radius: 50%; opacity: .75; box-shadow: 0 0 0 1px #0d0d0d; }
.tc-mc-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.tc-mev { --c: var(--pink); display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 6px 0 2px; border-radius: 6px; font-size: 11.5px; min-width: 0; text-align: left; color: #e8e8e8; }
.tc-mev:hover { background: var(--card-hi); }
.tc-mev.booking { background: color-mix(in srgb, var(--c) 80%, #000); color: #fff; font-weight: 600; }
.tc-mev.booking:hover { filter: brightness(1.1); }
.tc-mev.due { color: var(--yellow); font-weight: 600; }
.tc-mev .tc-mb-av { width: 16px; height: 16px; font-size: 9px; }
.tc-mev-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-mc-dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; padding-top: 2px; }
.tc-mc-dots i { width: 6px; height: 6px; border-radius: 50%; }
.tc-mc-dots i.task { opacity: .55; }
.tc-mc-dots i.due { border-radius: 1px; }
.tc-mc-dots span { font-size: 9px; color: var(--muted); line-height: 6px; }

/* mobile day strip */
.tc-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tc-strip-d { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.tc-strip-d b { font-size: 16px; color: #eee; }
.tc-strip-d.today b { color: var(--pink); }
.tc-strip-d.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.tc-strip-d.on b { color: #fff; }
.tc-strip-dots { display: flex; gap: 2px; height: 5px; }
.tc-strip-dots i { width: 5px; height: 5px; border-radius: 50%; }
.tc-strip-d.on .tc-strip-dots i { box-shadow: 0 0 0 1px #fff; }

/* modals */
.tc-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-pick .tc-chip-main { padding-right: 14px; }
.tc-types { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-types .chip-q { cursor: pointer; padding: 6px 12px; }
.tc-types .chip-q.on { background: var(--pink-soft); border-color: var(--pink); color: #fff; }
.tc-hint { font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); margin: -4px 0 14px; color: var(--muted); }
.tc-hint.ok { background: var(--green-soft); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.tc-hint.warn { background: var(--orange-soft); border-color: rgba(249, 115, 22, .3); color: #fdba74; }
.tc-detail { display: flex; flex-direction: column; gap: 14px; }
.tc-detail .tc-mb .tc-mb-av { width: 28px; height: 28px; font-size: 13px; }
.tc-detail .tc-mb-n { font-size: 15px; }
.tc-detail-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.tc-detail-row > svg, .tc-emoji { width: 18px; flex: none; color: var(--muted); text-align: center; }
.tc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.tc-sw.on { border-color: #fff; }
.tc-sw.custom { position: relative; display: grid; place-items: center; background: conic-gradient(#ff4fa3, #facc15, #34d399, #60a5fa, #a78bfa, #ff4fa3); cursor: pointer; color: #000; }
.tc-sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 900px) {
  .tc { height: calc(100dvh - var(--header-h) - 16px - 96px - var(--safe-b)); min-height: 480px; gap: 10px; }
}
@media (max-width: 760px) {
  .tc-bar { gap: 8px; }
  .tc-nav { width: 100%; }
  .tc-title { font-size: 17px; flex: 1; overflow: hidden; text-overflow: ellipsis; margin-left: 2px; order: -1; }
  .tc-actions { width: 100%; justify-content: space-between; }
  .tc-filters { flex-direction: column; align-items: stretch; gap: 8px; }
  .tc-chip { height: 32px; }
  .tc-chip-av { width: 24px; height: 24px; }
  .tc-layer { height: 28px; padding: 0 9px; font-size: 12px; }
  .tc-banner { padding: 6px 10px; flex-wrap: wrap; row-gap: 2px; }
  .tc-grid, .tc-month { border-radius: 12px; }
  .tc-dh-n { font-size: 16px; width: 30px; height: 30px; }
  .tc-dh-w { font-size: 10px; }
  .tc-mc { padding: 2px; }
  .tc-mc-n { width: 22px; height: 22px; font-size: 12px; margin: 0 auto; }
  .tc-mc-top { justify-content: center; }
  .tc-mc-free { display: none; }
  .tc-grid .tc-head .tc-dh { padding: 4px 0 6px; }
}
.tc-ev:not(.short) .tc-ev-t { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; line-height: 17.5px; }
.tc-ev-t .tc-mb { display: inline-flex; vertical-align: -4px; margin-right: 5px; }
@media (max-width: 760px) {
  .tc-banner { padding: 6px 10px; font-size: 12.5px; }
  .tc-banner .small { font-size: 12.5px; }
  .tc-banner .tc-link { font-size: 12.5px; }
}
.tc-ad-cell { container-type: inline-size; }
@container (max-width: 52px) { .tc-ev-tx, .tc-pill-t, .tc-bg-lbl .tc-mb { display: none; } .tc-ev, .tc-pill { padding-left: 2px; padding-right: 2px; } .tc-ev-t .tc-mb { margin-right: 0; } }
.tc-ev-t, .tc-ev-time { flex: none; }
.tc-ev-note { flex: 0 1 auto; min-height: 0; }

/* ===== viral targets (targets.js page + picker in _weekplan.js, portal "🔥 Viral targets this week") + Weekly Content concepts bar, 2026-10-01 ===== */
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.concept { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #111; border: 1px solid var(--border); color: #cfcfcf; text-decoration: none; font-size: 14px; }
.concept svg { color: var(--pink); flex: none; margin-top: 2px; }
.concept b { color: #fff; }
.concept.on { border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: var(--pink-soft); }
a.concept:hover { border-color: var(--border-2); background: #151515; }
@media (max-width: 760px) { .concepts { grid-template-columns: 1fr; } .concept { padding: 10px 12px; } }
.vt-filter { width: auto; min-width: 150px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vt-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vt-card.off { opacity: .5; }
.vt-media { position: relative; aspect-ratio: 4 / 5; background: #0f0f0f; border-bottom: 1px solid var(--border); }
.vt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--pink); text-decoration: none; background: linear-gradient(135deg, rgba(255, 45, 149, .10), rgba(168, 85, 247, .08)); }
.vt-card.tiktok .vt-ph { background: linear-gradient(135deg, rgba(37, 244, 238, .10), rgba(254, 44, 85, .10)); color: #25f4ee; }
.vt-pf { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; }
.vt-used { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: 12px; font-weight: 700; color: var(--yellow); }
.vt-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vt-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-note { color: #d4d4d4; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.vt-tag { font-size: 12px; color: var(--muted); padding: 2px 6px; border-radius: 6px; background: #1f1f1f; }
.vt-tag:hover { color: #fff; }
.vt-tag-add { cursor: pointer; font-size: 12px; padding: 3px 9px; }
.vt-actions { margin-top: auto; align-items: center; }
@media (max-width: 520px) { .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .vt-body { padding: 10px; } .vt-actions .btn { padding: 0 8px; } .vt-filter { flex: 1 1 140px; } }
/* picker inside the plan modal */
.vt-picker { padding: 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pink) 40%, transparent); background: rgba(255, 45, 149, .04); }
.seg.sm button { height: 30px; padding: 0 10px; font-size: 12.5px; }
.vt-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.vt-pick { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: var(--card); text-align: left; }
.vt-pick img, .vt-pick .vt-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; }
.vt-pick.on { border-color: var(--pink); }
.vt-pick.had { opacity: .45; }
.vt-pick-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(0, 0, 0, .7); color: #fff; }
.vt-pick.on .vt-pick-check { background: var(--pink); }
.vt-pick-t { font-size: 12.5px; font-weight: 600; padding: 2px 7px 0; }
.vt-pick-s { font-size: 11px; color: var(--muted); padding: 0 7px; }
.plan-hint { display: flex; align-items: center; gap: 6px; }
.plan-hint b { color: #fff; }
.plan-wtargets { border-color: color-mix(in srgb, var(--pink) 30%, var(--border)); }
/* portal: prominent week section */
.vt-week { border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: linear-gradient(160deg, rgba(255, 45, 149, .10), rgba(168, 85, 247, .05) 60%, var(--card)); }
.vt-week-ic { font-size: 22px; line-height: 1; }

/* ---- push notifications (push.js) ---- */
.push-install { background: var(--card-hi, #1a1a1a); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.push-step { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.push-num { width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.push-prompt { border-color: rgba(255, 45, 149, .45); background: linear-gradient(135deg, rgba(255, 45, 149, .12), rgba(255, 45, 149, .03)); }
.push-settings { min-width: 0; max-width: 100%; }
.push-settings .info-bar { min-width: 0; flex-wrap: wrap; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.push-actions .btn { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; justify-content: center; height: auto; min-height: 40px; }
@media (max-width: 420px) { .push-actions .btn { flex: 1 1 100%; } }
@media (max-width: 640px) { .toasts { top: calc(12px + env(safe-area-inset-top, 0px)); } }

/* ---------- iPhone / PWA hardening ---------- */
/* inputs ≥16px on phones, otherwise iOS zooms in on focus and the page ends up shifted */
@media (max-width: 900px) {
  input, select, textarea, .input, .select, .textarea { font-size: 16px !important; }
  .content, .portal-body { padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
  .main, .portal, .portal-body, .content { max-width: 100vw; }
  img, video, iframe, table, pre { max-width: 100%; }
  .overlay { padding-top: var(--safe-t); }
  .modal { max-width: 100vw; }
}

/* ===== i18n (language switcher: English / Čeština / Українська) ===== */
.seg.lang-seg { display: flex; width: 100%; }
.seg.lang-seg button { flex: 1; padding: 0 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== translations.js (/translations) ===== */
.tr-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }
.tr-src, .tr-cell { min-width: 0; }
.tr-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; line-height: 1.45; }
.tr-cell { border-left: 1px solid var(--border); padding-left: 12px; }
.tr-cell.missing .tr-text { color: var(--muted); }
.tr-cell.editing .textarea { width: 100%; font-size: 14px; }
.mb-4 { margin-bottom: 4px; }
@media (max-width: 860px) {
  .tr-row { grid-template-columns: 1fr; }
  .tr-cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 10px; }
}
.tr-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; margin-bottom: 14px; }

/* ===== Drive — Weekly Content folder manager (vaults.js) + subfolders (portal-vaults.js SubCard/SubfolderScreen, _weekplan.js SubsEditor, model-detail.js review, weeks.js), 2026-10-01 ===== */
.concepts.mini .concept { padding: 8px 12px; font-size: 13px; align-items: center; }
.concepts.mini .concept svg { margin-top: 0; }
.drive-wrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 16px; align-items: start; }
.drive-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow: auto; background: #111; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.dtree { display: flex; flex-direction: column; gap: 2px; }
.dt-row { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 4px 6px; border-radius: 8px; color: #ddd; font-size: 14px; cursor: pointer; text-align: left; border: 1px solid transparent; user-select: none; -webkit-user-select: none; }
.dt-row:hover { background: #1b1b1b; }
.dt-row.on { background: var(--pink-soft); color: #fff; border-color: color-mix(in srgb, var(--pink) 40%, transparent); }
.dt-row.off { opacity: .55; }
.dt-row.root { font-weight: 700; gap: 8px; padding-left: 8px; }
.dt-row.sub { padding-left: 30px; font-size: 13.5px; }
.dt-row.add { color: var(--muted); font-size: 13px; }
.dt-row.add:hover { color: var(--pink); }
.dt-tog { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--muted); flex: none; }
.dt-tog:hover { background: #262626; color: #fff; }
.dt-tog.none { visibility: hidden; }
.dt-em { font-size: 16px; width: 20px; text-align: center; flex: none; }
.dt-n { font-size: 11px; color: var(--muted); background: #222; border-radius: 999px; padding: 0 7px; }
.dt-min { flex: none; }
.dt-more { width: 26px; height: 26px; opacity: 0; flex: none; }
.dt-row:hover .dt-more, .dt-row.on .dt-more { opacity: 1; }
.dt-row.drop-before { box-shadow: inset 0 2px 0 var(--pink); }
.dt-row.drop-after { box-shadow: inset 0 -2px 0 var(--pink); }
.dt-row.drop-into, .dfo.drop-into { background: var(--pink-soft); border-color: var(--pink); }
.dfo.drop-before { box-shadow: -3px 0 0 var(--pink); }
.dfo.drop-after { box-shadow: 3px 0 0 var(--pink); }
.dt-tip { line-height: 1.4; }
.drive-main { min-width: 0; background: #0f0f0f; border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px 24px; }
.dcrumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 40px; }
.dc { font-size: 18px; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.dc:hover { background: #1b1b1b; color: #fff; }
.dc.cur { color: #fff; }
.dc-back { display: none; }
.dsave { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dsave.saved { color: var(--green); }
.dsave.error { color: #ff7a7a; }
.dtools { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.dsec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dsec-h b { font-size: 15px; }
.dfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dfo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #151515; border: 1px solid var(--border); cursor: pointer; text-align: left; color: inherit; width: 100%; min-width: 0; }
.dfo:hover { border-color: var(--border-2); background: #1a1a1a; }
.dfo.off { opacity: .55; }
.dfo-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--vc, var(--pink)) 18%, #151515); border: 1px solid color-mix(in srgb, var(--vc, var(--pink)) 40%, transparent); }
.dfo-txt { min-width: 0; }
.dfo-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfo-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfo-chev { display: none; flex: none; }
.dfo-more { width: 32px; height: 32px; flex: none; }
.dfo.new { border-style: dashed; border-color: var(--border-2); background: transparent; color: var(--muted); }
.dfo.new .dfo-ic { background: transparent; border: 1px dashed var(--border-2); color: var(--pink); }
.dfo.new:hover { border-color: var(--pink); color: #fff; }
.dfo.new.wide .dfo-name { white-space: normal; }
.dempty { text-align: center; padding: 48px 20px; border: 2px dashed var(--border-2); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dempty-ic { font-size: 44px; }
.dempty .small { max-width: 460px; }
.dsub-sum { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #141414; border: 1px solid var(--border); }
.dsub-sum .dfo-ic { width: 40px; height: 40px; font-size: 21px; }
.dex .drop { padding: 30px 16px; }
.dex-c .drop { padding: 14px 12px; font-size: 13px; }
.dex-c .drop svg { width: 20px; height: 20px; }
.dex.dex-over { outline: 2px dashed var(--pink); outline-offset: 4px; border-radius: 12px; }
.dex-mv { position: absolute; top: 6px; right: 40px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .12s; }
.dex-th:hover .dex-mv { opacity: 1; }
.dgrp { padding: 12px; border-radius: 14px; background: #121212; border: 1px solid var(--border); min-width: 0; }
.dgrp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; min-width: 0; }
.dgrp-in { height: 34px; font-weight: 700; min-width: 0; max-width: 260px; }
.dgrp-n { white-space: nowrap; }
@media (hover: none) { .dex-mv { opacity: 1; } }
/* portal: grouped examples (SET 1, SET 2 …) */
.exg-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-weight: 700; font-size: 14px; }
.exg-h .xs { font-weight: 400; }
.exg + .exg { margin-top: 14px; }
.dex-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--pink-soft); border: 1px solid color-mix(in srgb, var(--pink) 40%, transparent); }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.dex-th { position: relative; border-radius: 12px; min-width: 0; }
.dex-th .media { aspect-ratio: 1; }
.dex-th.sel .media { outline: 3px solid var(--pink); outline-offset: -3px; }
.dex-th.over { box-shadow: -4px 0 0 var(--pink); }
.dex-ck, .dex-del { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .12s; }
.dex-ck { left: 6px; border: 2px solid rgba(255, 255, 255, .8); }
.dex-del { right: 6px; color: #ff8a8a; }
.dex-th:hover .dex-ck, .dex-th:hover .dex-del, .dex-th.sel .dex-ck { opacity: 1; }
.dex-th.sel .dex-ck { background: var(--pink); border-color: var(--pink); }
.dex-cap { height: 32px; font-size: 12.5px; margin-top: 6px; padding: 0 8px; width: 100%; }
@media (hover: none) { .dex-ck, .dex-del, .dt-more { opacity: 1; } }
.dpanel { background: #131313; border: 1px solid var(--border); border-radius: 12px; }
.dpanel > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; min-width: 0; }
.dpanel > summary::-webkit-details-marker { display: none; }
.dpanel[open] > summary { border-bottom: 1px solid var(--border); }
.dpanel[open] .dp-chev { transform: rotate(180deg); }
.dp-hint { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpanel-body { padding: 14px; min-width: 0; }
.dmenu { position: fixed; z-index: 260; min-width: 210px; padding: 4px; border-radius: 12px; background: #141414; border: 1px solid var(--border-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; animation: fade .1s; }
.dmenu-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: #e5e5e5; text-align: left; }
.dmenu-i:hover { background: #222; }
.dmenu-i.red { color: #ff7a7a; }
.dmenu-i:disabled { opacity: .4; }
.dmenu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.dfab { display: none; }
@media (max-width: 860px) {
  .drive-wrap { grid-template-columns: minmax(0, 1fr); }
  .drive-side { display: none; }
  .drive-main { padding: 0 0 90px; border: 0; background: transparent; }
  .dc-back { display: inline-grid; }
  .dcrumbs { flex-wrap: nowrap; }
  .dcrumbs .dc:not(.cur), .dcrumbs .dc-sep { display: none; }
  .dc.cur { font-size: 19px; padding-left: 2px; min-width: 0; flex: 1 1 auto; }
  .dsave { flex: none; }
  .dfolders { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .dfolders .dfo { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: #131313; }
  .dfolders .dfo:last-child { border-bottom: 0; }
  .dfo-chev { display: block; }
  .dfab { display: grid; place-items: center; position: fixed; right: calc(18px + var(--safe-r)); bottom: calc(86px + var(--safe-b)); z-index: 45; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 10px 30px rgba(255, 45, 149, .45); }
  .concepts.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .concepts.mini .concept { padding: 7px 8px; font-size: 12px; gap: 6px; }
  .concepts.mini .concept .xs { display: none; }
  .desc-ed { grid-template-columns: minmax(0, 1fr); }
  .dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dp-hint { display: none; }
}
/* portal: subfolder cards + full-screen subfolder */
.sf-card { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; background: #131313; border: 1px solid var(--border); color: inherit; min-width: 0; }
.sf-card.done { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); background: color-mix(in srgb, var(--green) 7%, #131313); }
.sf-card.redo { border-color: color-mix(in srgb, var(--red) 60%, var(--border)); }
.sf-card.review { border-color: color-mix(in srgb, var(--yellow) 40%, var(--border)); }
.sf-em { font-size: 22px; line-height: 1; }
.sf-name { font-size: 16px; }
.sf-cnts { display: flex; gap: 8px; }
.sf-cnt { flex: 1; min-width: 0; background: #0d0d0d; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; }
.sf-cnt b { font-size: 16px; white-space: nowrap; }
.sf-cnt span { font-size: 12px; color: var(--muted); }
.sf-cnt.met b { color: var(--green); }
.sf-cnt.big b { font-size: 22px; }
.sf-prev { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sf-thumbs { display: flex; gap: 4px; flex: none; }
.sf-th { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #1a1a1a; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.sf-th img, .sf-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-desc { min-width: 0; }
.sf-ex { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sf-ex .media { aspect-ratio: 1; }
.sf-up .drop { padding: 22px 12px; font-size: 17px; }
.sf-tip { display: flex; gap: 6px; align-items: flex-start; color: #ffd27a; background: rgba(255, 200, 80, .08); border-radius: 10px; padding: 8px 10px; }
.sf-tip svg { flex: none; margin-top: 2px; }
.sf-foot { background: #0c0c0c; }
/* admin: plan modal subfolders, review per subfolder, week cards */
.pl-subs { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #101010; border: 1px solid var(--border); }
.pl-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid #1d1d1d; }
.pl-sub:not(.on) { opacity: .6; }
.pl-sub .check { min-width: 0; flex: 1 1 160px; }
.pl-min { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pl-min input { width: 72px; height: 34px; }
.rv-sub { padding: 12px; border-radius: 12px; background: #0c0c0c; border: 1px solid var(--border); border-left: 3px solid var(--border-2); min-width: 0; }
.rv-sub.done { border-left-color: var(--green); }
.rv-sub.review { border-left-color: var(--yellow); }
.rv-sub.redo { border-left-color: var(--red); }
.plan-item-row.sub { padding-left: 18px; font-size: 13px; }
.plan-item-row.sub .pi-name { width: 162px; font-size: 13px; }
.wp-subs { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--border); }
.wp-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; min-width: 0; }
.wp-sub.done > span:first-child { color: var(--green); }

/* ---- vaults.js simplified folder editor (2026-10-01): name header · Training · Examples · Minimum ---- */
.dname-em { width: 52px; height: 52px; flex: none; border-radius: 14px; font-size: 26px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--vc, var(--pink)) 18%, #151515); border: 1px solid color-mix(in srgb, var(--vc, var(--pink)) 40%, transparent); }
.dname-in { height: 52px; font-size: 20px; font-weight: 700; min-width: 0; }
.dtrain-ta { min-height: 320px; font-size: 14px; line-height: 1.5; }
.dtrain .vault-preview { max-height: 520px; }
.dmin { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dmin-f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); width: 150px; }
.dmin-f .input { height: 44px; font-size: 16px; }
.dmin-sum { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.it-auto b { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .dmin-f { width: calc(50% - 6px); } .dname-in { font-size: 17px; } }

/* ui.js <Video>: Mac delivery whose H.264 playback copy is still being made */
.vprep { width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #151515; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.mv .vprep { width: min(420px, 90vw); height: 50vh; border-radius: 12px; font-size: 14px; }

/* uploads.js — global background upload panel + Uploader compact wrapper */
.up-c { display: contents; }
.upp { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 150; width: 320px; max-width: calc(100vw - 24px); background: #141414; border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); overflow: hidden; }
.upp-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: none; border: 0; color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.upp-head .spin { width: 16px; height: 16px; border-width: 2px; }
.upp-body { max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--border); padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.upp-row { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; font-size: 13px; min-width: 0; }
.upp-bar { height: 4px; border-radius: 4px; background: #262626; overflow: hidden; }
.upp-bar > div { height: 100%; background: var(--pink); transition: width .3s; }
.upp-old { border-top: 1px dashed var(--border-2); padding-top: 10px; color: var(--orange, #f59e0b); }
.upp-old .small { color: var(--text, #eee); }
@media (max-width: 900px) {
  .upp { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(76px + var(--safe-b)); }
  body:has(.overlay) .upp { bottom: auto; top: calc(10px + var(--safe-t)); }
  body:has(.pv-sheet) .upp { bottom: auto; top: calc(64px + var(--safe-t)); }
}

/* scripted lines she says in English (quoted text in Training / lessons) */
.say-en { background: rgba(255, 45, 149, .10); border-radius: 6px; padding: 1px 6px; color: #fff; font-style: italic; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.say-en::before { content: "🇬🇧 "; font-style: normal; }

/* ---- media protection (SPEC.md "Security"): no iOS long-press save sheet, no selection/drag of media ---- */
img, video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
video::-internal-media-controls-download-button { display: none; }
/* model / VA portal: faint username watermark over the whole app (media-guard.js) */
.wm-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background-repeat: repeat; }
