/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 26px; letter-spacing: -.02em; } h2 { font-size: 19px; } h3 { font-size: 15px; } h4 { font-size: 13px; color: var(--text-2); }
p { margin: 0; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-ring); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text-3); } .sub { color: var(--text-2); } .small { font-size: 12px; } .xs { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; } .row.start { align-items: flex-start; } .row.end { justify-content: flex-end; }
.col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; } .gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fade-in { animation: fadeIn .28s var(--ease) both; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── App shell ─────────────────────────────────────────────── */
#app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--bg-elev); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #7c3aed); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px -4px var(--accent); }
.brand .name { font-weight: 800; font-size: 15px; letter-spacing: -.02em; } .brand .tag { font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-weight: 700; margin-left: 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .cnt { margin-left: auto; font-size: 11px; color: var(--text-3); background: var(--surface-3); padding: 1px 7px; border-radius: 10px; font-weight: 600; }
.nav-sec { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 4px; }
.sidebar .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ws-switch { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; width: 100%; text-align: left; }
.ws-switch:hover { border-color: var(--border-strong); }
.ws-switch .ws-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.credit-meter { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; }
.credit-meter .bar { height: 5px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; } .credit-meter .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 25; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 22px; background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.topbar .crumbs { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; } .topbar .crumbs .sep { color: var(--text-3); font-weight: 400; }
.cmdk-btn { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 13px; min-width: 260px; transition: border-color .15s, box-shadow .15s; }
.cmdk-btn:hover { border-color: var(--border-strong); } .cmdk-btn kbd { margin-left: auto; }
.quick-save-btn { margin-right: 8px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); position: relative; transition: background .15s; } .icon-btn:hover { background: var(--surface-2); color: var(--text); } .icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg-elev); }
.page { padding: 22px 24px 60px; max-width: 1480px; width: 100%; margin: 0 auto; animation: fadeIn .25s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.avatar.lg { width: 40px; height: 40px; font-size: 15px; } .avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatars { display: flex; } .avatars .avatar { border: 2px solid var(--bg-elev); margin-left: -8px; } .avatars .avatar:first-child { margin-left: 0; }
.presence { display: flex; align-items: center; gap: 6px; } .presence .avatar { box-shadow: 0 0 0 2px var(--success); }

/* ── Buttons & inputs ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: scale(.98); } .btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.15); } .btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); } .btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { color: var(--text-2); } .btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); } .btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; } .btn-lg { padding: 11px 20px; font-size: 14px; border-radius: 11px; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading::before { content: ''; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.input, .select, .textarea { width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input::placeholder { color: var(--text-3); } .textarea { min-height: 88px; resize: vertical; } .select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12px; font-weight: 600; color: var(--text-2); } .field .hint { font-size: 11.5px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid .full { grid-column: 1 / -1; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border); transition: background .2s; flex: none; } .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); } .switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); } .switch[aria-checked="true"]::after { transform: translateX(16px); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; } .seg button { white-space: nowrap; padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; } .seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }

/* ── Cards, badges, chips ──────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-pad { padding: var(--card-pad); } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px var(--card-pad); border-bottom: 1px solid var(--border); } .card-head h3 { font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-2); line-height: 1.5; white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); } .badge.success { background: var(--success-soft); color: var(--success); } .badge.warning { background: var(--warning-soft); color: #9a6a00; } .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); }
:root[data-theme="dark"] .badge.warning, :root:not([data-theme="light"]) .badge.warning { color: var(--warning); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--text-3); color: var(--text); } .chip.active { background: var(--text); color: var(--bg); border-color: var(--text); } .chip .x { opacity: .6; } .chip.sm { padding: 3px 9px; font-size: 12px; }
.chip.plat { padding-left: 8px; } .plat-dot { width: 8px; height: 8px; border-radius: 50%; }
.tag { display: inline-flex; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: 11px; }
.pill-plat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 7px 2px 5px; border-radius: 6px; background: rgba(255,255,255,.9); color: #111; }
.pill-plat svg { width: 12px; height: 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); } .empty .ico { font-size: 34px; margin-bottom: 8px; } .empty h3 { color: var(--text-2); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; } .stat .lbl { font-size: 12px; color: var(--text-3); font-weight: 600; } .stat .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; } .stat .delta { font-size: 12px; font-weight: 600; margin-top: 2px; } .delta.up { color: var(--success); } .delta.down { color: var(--danger); } .delta.flat { color: var(--text-3); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .tbl th { text-align: left; font-size: 11.5px; color: var(--text-3); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .04em; } .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Search / Discover ─────────────────────────────────────── */
.search-hero { position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--sh); transition: box-shadow .2s, border-color .2s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), var(--sh); }
.search-box input { flex: 1; border: 0; background: none; font-size: 16px; padding: 8px 0; outline: none; min-width: 0; } .search-box svg.lead { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.search-box .img-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px dashed var(--border-strong); } .search-box .img-btn:hover { background: var(--surface-2); color: var(--text); }
.search-box.drag { border-color: var(--accent); background: var(--accent-soft); }
.query-explain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; font-size: 12px; color: var(--text-3); }
.query-explain .qe { display: inline-flex; gap: 5px; align-items: center; padding: 3px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
.discover-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.facets { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.facet h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.facet button { display: flex; width: 100%; justify-content: space-between; padding: 5px 8px; border-radius: 7px; font-size: 12.5px; color: var(--text-2); } .facet button:hover { background: var(--surface-2); } .facet button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .facet button .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.results-bar .seg { max-width: 100%; overflow-x: auto; } .results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--gap); }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ref-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; display: flex; flex-direction: column; }
.ref-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); border-color: var(--border-strong); } .ref-card.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.ref-card .thumb { position: relative; aspect-ratio: 4 / 5; background: var(--surface-3); overflow: hidden; } .ref-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); } .ref-card:hover .thumb img { transform: scale(1.03); }
.ref-card .thumb .top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ref-card .thumb .bottom { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.ref-card .save { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; opacity: 0; transform: translateY(-4px); transition: all .18s; box-shadow: var(--sh-sm); } .ref-card:hover .save, .ref-card .save.on { opacity: 1; transform: none; } .ref-card .save.on { background: var(--accent); color: #fff; } .ref-card .save svg { width: 16px; height: 16px; }
.ref-card .sel { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; } .ref-card:hover .sel, .ref-card.selected .sel, .grid.selecting .ref-card .sel { opacity: 1; } .ref-card.selected .sel { background: var(--accent); border-color: var(--accent); }
.ref-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.ref-card .brand-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 600; } .ref-card .brand-line .dot { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 800; }
.ref-card .title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ref-card .metrics { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; } .ref-card .metrics b { color: var(--text-2); font-weight: 600; }
.ref-card .hooks { display: flex; gap: 4px; flex-wrap: wrap; }
.win-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #fab219, #ec835a); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 6px -2px rgba(0,0,0,.4); }
.ended-badge { background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.sim-badge { background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bulk-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--sh-lg); animation: pop .2s var(--ease-spring); }
.bulk-bar .btn-secondary { background: rgba(255,255,255,.12); border-color: transparent; color: inherit; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; } .pager button { min-width: 34px; height: 34px; border-radius: 9px; font-weight: 600; color: var(--text-2); } .pager button:hover { background: var(--surface-2); } .pager button.active { background: var(--text); color: var(--bg); }

/* ── Drawer / modal ────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(10,10,20,.45); backdrop-filter: blur(3px); z-index: 60; animation: fadeIn .18s both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1080px, 100vw); background: var(--bg-elev); z-index: 61; box-shadow: var(--sh-lg); display: grid; grid-template-columns: minmax(300px, 42%) 1fr; animation: slideIn .3s var(--ease) both; overflow: hidden; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .media { background: #0d0d10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; } .drawer .media img { max-height: 100vh; width: 100%; object-fit: contain; }
.drawer .media .play { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-weight: 600; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.35); cursor: pointer; border: 0; }
.drawer .media .play:hover { background: #fff; transform: translateX(-50%) scale(1.03); }
.drawer .media .embed { width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.drawer .media .embed iframe { border: 0; background: #000; border-radius: 12px; width: 100%; height: calc(100vh - 56px); max-width: 100%; }
.drawer .media .embed.wide iframe { aspect-ratio: 16 / 9; height: auto; max-height: calc(100vh - 56px); }
.drawer .media .embed.portrait iframe { max-width: min(100%, calc((100vh - 56px) * 0.5625 + 120px)); }
.drawer .media .embed .open { color: rgba(255,255,255,.8); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.drawer .media .close { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); } .drawer .media .close:hover { background: rgba(255,255,255,.28); }
.drawer .media .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; } .drawer .media .nav.prev { left: 14px; } .drawer .media .nav.next { right: 14px; }
.drawer .detail { overflow: auto; padding: 22px 26px 40px; display: flex; flex-direction: column; gap: 18px; }
.drawer .detail section h4 { margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .metric-grid .m { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); } .metric-grid .m .v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; } .metric-grid .m .l { font-size: 11px; color: var(--text-3); }
.copy-block { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; font-size: 13px; line-height: 1.6; position: relative; } .copy-block .copy-btn { position: absolute; top: 8px; right: 8px; }
.score-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; flex: none; } .score-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); } .score-ring b { position: relative; font-size: 17px; }
.structure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .structure .st { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); } .structure .st .l { font-size: 11px; color: var(--accent); font-weight: 700; } .structure .st .t { font-size: 12px; margin-top: 4px; color: var(--text-2); }
.why li { margin: 4px 0 4px 18px; font-size: 13px; }
.comment { display: flex; gap: 10px; padding: 10px 0; } .comment .body { flex: 1; } .comment .meta { font-size: 11.5px; color: var(--text-3); } .comment .txt { font-size: 13px; margin-top: 2px; white-space: pre-wrap; }
.comment-input { display: flex; gap: 8px; align-items: flex-end; } .comment-input textarea { min-height: 42px; }
.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal { position: relative; z-index: 61; width: 100%; max-width: 560px; background: var(--bg-elev); border-radius: 18px; box-shadow: var(--sh-pop); animation: pop .22s var(--ease-spring) both; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.lg { max-width: 780px; } .modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; } .modal-head h2 { font-size: 17px; }
.modal-body { padding: 4px 22px 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; } .modal-foot { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 500; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px; animation: pop .2s var(--ease-spring); max-width: 380px; } .toast.error { background: var(--danger); color: #fff; } .toast.success { background: var(--success); color: #fff; } .toast .btn { background: rgba(255,255,255,.15); color: inherit; padding: 4px 9px; }
.dropdown { position: absolute; z-index: 80; min-width: 200px; background: var(--bg-elev); border-radius: 12px; box-shadow: var(--sh-pop); padding: 6px; animation: pop .16s var(--ease-spring); }
.dropdown button, .dropdown a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text); text-align: left; } .dropdown button:hover, .dropdown a:hover { background: var(--surface-2); text-decoration: none; } .dropdown .sep { height: 1px; background: var(--border); margin: 4px 0; } .dropdown .danger { color: var(--danger); } .dropdown svg { width: 15px; height: 15px; color: var(--text-3); }
.dropdown .hd { font-size: 11px; color: var(--text-3); font-weight: 700; padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Command palette ───────────────────────────────────────── */
.cmdk { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: center; padding-top: 12vh; background: rgba(10,10,20,.35); backdrop-filter: blur(4px); animation: fadeIn .15s both; }
.cmdk-panel { width: min(640px, 92vw); max-height: 70vh; background: var(--bg-elev); border-radius: 16px; box-shadow: var(--sh-pop); overflow: hidden; display: flex; flex-direction: column; animation: pop .2s var(--ease-spring); align-self: flex-start; }
.cmdk-panel input { padding: 16px 18px; font-size: 16px; border: 0; background: none; outline: none; border-bottom: 1px solid var(--border); }
.cmdk-list { overflow: auto; padding: 6px; } .cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; } .cmdk-item.active { background: var(--accent-soft); color: var(--accent); } .cmdk-item .k { margin-left: auto; font-size: 11px; color: var(--text-3); } .cmdk-item svg { width: 16px; height: 16px; opacity: .7; }
.cmdk-grp { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 8px 12px 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Boards ────────────────────────────────────────────────── */
.board-card { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s; } .board-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.board-card .mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; height: 150px; overflow: hidden; background: var(--surface-3); } .board-card .mosaic > * { min-width: 0; min-height: 0; } .board-card .mosaic img { width: 100%; height: 100%; object-fit: cover; } .board-card .mosaic > :first-child { grid-row: 1 / 3; }
.board-card .info { padding: 12px 14px; } .board-card .info .t { font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.board-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.board-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--topbar-h) - 32px); overflow: auto; }
.section-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; } .section-head h3 { font-size: 14px; } .section-head .n { color: var(--text-3); font-size: 12px; }
.ref-card.dragging { opacity: .4; } .ref-card.drop-before { box-shadow: -3px 0 0 var(--accent); }
.drop-zone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; } .drop-zone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.note { font-size: 12px; color: var(--text-2); background: var(--warning-soft); padding: 6px 8px; border-radius: 7px; border-left: 3px solid var(--warning); }
.brief { display: flex; flex-direction: column; gap: 12px; } .brief .concept { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); } .brief .concept b { display: block; font-size: 12.5px; margin-bottom: 2px; } .brief .rec { font-size: 13px; padding-left: 18px; position: relative; } .brief .rec::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ── Brands ────────────────────────────────────────────────── */
.brand-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s; } .brand-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: none; }
.brand-card .plats { display: flex; gap: 4px; } .plat-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; } .plat-ic svg { width: 12px; height: 12px; }
.brand-card .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .brand-card .kpis div { font-size: 11px; color: var(--text-3); } .brand-card .kpis b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--success); font-weight: 600; } .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); animation: pulse 1.6s infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--success-soft); } 50% { box-shadow: 0 0 0 6px transparent; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } .three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .two-col.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.job-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); } .job-row:last-child { border-bottom: 0; } .job-row .st { width: 10px; height: 10px; border-radius: 50%; flex: none; } .st.done { background: var(--success); } .st.failed { background: var(--danger); } .st.running { background: var(--accent); animation: pulse 1.2s infinite; } .st.queued { background: var(--text-3); } .st.cancelled { background: var(--text-3); }
.log { font-family: var(--mono); font-size: 11.5px; background: var(--bg-sunken); border-radius: 8px; padding: 10px 12px; max-height: 220px; overflow: auto; color: var(--text-2); } .log .error { color: var(--danger); }
.timeline-list .it { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; } .timeline-list .it:last-child { border-bottom: 0; } .timeline-list .t { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; } .tabs button { padding: 9px 14px; font-weight: 600; font-size: 13px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs button.active { color: var(--text); border-color: var(--text); }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); } .member-row:last-child { border: 0; }
.key-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; background: var(--bg-sunken); font-family: var(--mono); font-size: 12px; word-break: break-all; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .plan { padding: 16px; border: 1px solid var(--border); border-radius: 14px; } .plan.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); } .plan .price { font-size: 20px; font-weight: 800; margin: 6px 0; } .plan ul { padding-left: 16px; margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); }
.onboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .onboard .step { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: flex; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; } .onboard .step.done { opacity: .55; } .onboard .step .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; font-size: 12px; } .onboard .step.done .ck { background: var(--success); border-color: var(--success); color: #fff; }

/* ── Charts ────────────────────────────────────────────────── */
.chart { position: relative; width: 100%; } .chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.chart .axis text { fill: var(--text-3); font-size: 11px; } .chart .grid line { stroke: var(--grid); }
.chart .tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 8px; font-size: 11.5px; box-shadow: var(--sh-lg); white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; } .chart .tip.show { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); margin-top: 8px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 10px; color: var(--text-3); } .heat .c { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); } .heat .lbl { display: flex; align-items: center; }
.hbar { display: flex; flex-direction: column; gap: 6px; } .hbar .r { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 8px; font-size: 12.5px; } .hbar .r .b { height: 14px; border-radius: 4px; background: var(--s1); min-width: 2px; transition: width .5s var(--ease); } .hbar .r .v { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 12px; }
.spark { height: 34px; }

/* ── Auth ──────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .hero { background: radial-gradient(1200px 600px at -10% -10%, rgba(42,120,214,.35), transparent 60%), radial-gradient(800px 600px at 110% 110%, rgba(124,58,237,.3), transparent 60%), #0b0b12; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.03em; max-width: 520px; } .auth .hero p { color: rgba(255,255,255,.72); font-size: 16px; max-width: 460px; margin-top: 14px; }
.auth .hero .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; max-width: 560px; } .auth .hero .feat div { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 13px; } .auth .hero .feat b { display: block; font-size: 14px; margin-bottom: 3px; }
.auth .hero .float { position: absolute; right: -60px; bottom: 60px; width: 420px; transform: rotate(-6deg); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); opacity: .9; }
.auth .form { display: grid; place-items: center; padding: 40px 24px; } .auth .form > div { width: 100%; max-width: 380px; }
.auth .demo-box { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 12.5px; color: var(--text-2); }

/* ── Share page ────────────────────────────────────────────── */
.share-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; } .share-head { margin-bottom: 24px; } .share-head .by { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ── Responsive ────────────────────────────────────────────── */
.mobile-nav { display: none; }
@media (max-width: 1100px) { .discover-layout, .board-layout { grid-template-columns: minmax(0, 1fr); } .facets, .board-side { position: static; } .drawer { grid-template-columns: 1fr; width: 100vw; } .drawer .media { max-height: 42vh; } .drawer .media img { max-height: 42vh; } .three-col { grid-template-columns: minmax(0, 1fr); } .plan-grid { grid-template-columns: 1fr 1fr; } .onboard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .sidebar { display: none; } .page { padding: 16px 16px 90px; } .topbar { padding: 0 14px; } .cmdk-btn { min-width: 0; } .cmdk-btn span { display: none; } .quick-save-btn span { display: none; }
  .two-col, .two-col.wide-left, .form-grid { grid-template-columns: minmax(0, 1fr); } .page-head > *, .page-head .row > div { min-width: 0; } .page-head .row, .card.row .row { flex-wrap: wrap; } .page-head p { overflow-wrap: anywhere; } .auth { grid-template-columns: 1fr; } .auth .hero { display: none; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav button { background: none; border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-3); padding: 4px 8px; border-radius: 8px; } .mobile-nav button.active { color: var(--accent); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-3); padding: 4px 8px; border-radius: 8px; } .mobile-nav a.active { color: var(--accent); } .mobile-nav a svg { width: 20px; height: 20px; }
  .results-bar > .row:last-child { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .results-bar { flex-direction: column; align-items: stretch; }
  .grid, .grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .main { min-width: 0; } .page { max-width: 100vw; overflow-x: clip; } .metric-grid, .structure { grid-template-columns: 1fr 1fr; } .stat-tiles { grid-template-columns: 1fr 1fr; } .bulk-bar { width: calc(100vw - 24px); justify-content: space-between; } .heat { grid-template-columns: 28px repeat(24, 1fr); }
}
@media print { .sidebar, .topbar, .mobile-nav, .btn, .facets { display: none !important; } .shell { display: block; } .page { padding: 0; } }

/* PC worker pairing banner */
.pairbar{margin:12px 20px 0;padding:10px 14px;border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--bg));border-radius:12px;display:flex;flex-direction:column;gap:8px}
.pairbar .row{flex-wrap:wrap}
.pairbar-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);animation:pairpulse 1.2s ease-in-out infinite}
@keyframes pairpulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
@media (prefers-reduced-motion: reduce){.pairbar-dot{animation:none}}

/* AI 유사 콘텐츠 생성 */
.gen-list { display: flex; flex-direction: column; gap: 10px; }
.gen-card { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.gen-card .gen-title { font-size: 15px; line-height: 1.35; }
.gen-card .gen-cap { white-space: pre-wrap; line-height: 1.55; margin: 0; }
.gen-kv { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.5; } .gen-kv > b { color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.gen-sb { margin: 0; padding-left: 18px; } .gen-sb li { margin: 2px 0; }
.select.sm { padding: 4px 26px 4px 8px; font-size: 12px; height: 30px; }

/* 급상승 */
.surge-badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #ff5a1f; color: #fff; letter-spacing: .01em; }
.surge-text { color: #ff5a1f; font-weight: 700; }
.spark { width: 100%; height: 64px; display: block; margin-top: 6px; } .spark-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; } .spark-fill { fill: var(--accent); opacity: .12; } .spark-dot { fill: var(--accent); }
.drawer .detail img.frames { width: 100%; border-radius: 10px; border: 1px solid var(--border); image-rendering: auto; }
/* 주간 AI 리포트: 한눈에 · 빠진 것 체크 · 게시물별 판정 · 접히는 섹션 */
.rep-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rep-glance > div { border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; } .rep-glance .l { display: block; font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.rep-glance .good { background: var(--success-soft); } .rep-glance .bad { background: var(--danger-soft); } .rep-glance .todo { background: var(--accent-soft); }
@media (max-width: 720px) { .rep-glance { grid-template-columns: 1fr; } }
.rep-fold { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-top: 8px; }
.rep-fold > summary { cursor: pointer; list-style: none; padding: 11px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rep-fold > summary::-webkit-details-marker { display: none; } .rep-fold > summary::after { content: '▾'; margin-left: auto; color: var(--text-3); transition: transform .15s; } .rep-fold[open] > summary::after { transform: rotate(180deg); }
.rep-fold-body { padding: 0 14px 14px; }
.rep-fold.plain { border: 0; background: none; margin-top: 8px; } .rep-fold.plain > summary { padding: 4px 0; font-size: 12px; color: var(--text-2); } .rep-fold.plain > summary::after { margin-left: 4px; } .rep-fold.plain .rep-fold-body { padding: 8px 0 0; }
.rep-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); } .rep-check:first-child { border-top: 0; } .rep-check .act { font-size: 13px; margin-top: 4px; }
.rep-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rep-review { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .rep-review:hover { border-color: var(--border-strong); }
.rep-review img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-3); } .rep-review.good { border-left: 3px solid var(--success); } .rep-review.bad { border-left: 3px solid var(--danger); }
.rep-num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface-3); font-size: 12px; font-weight: 700; flex: none; }
.rep-minis { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rep-mini { display: flex; flex-direction: column; gap: 3px; width: 84px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-size: 11px; color: var(--text-2); }
.rep-mini img { width: 84px; height: 105px; object-fit: cover; border-radius: 8px; background: var(--surface-3); } .rep-mini:hover img { outline: 2px solid var(--accent); }
.rep-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-reviews { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rep-pair { display: flex; align-items: center; gap: 8px; } .rep-pair .vs { font-size: 11px; font-weight: 700; color: var(--text-3); } .rep-pair .rep-mini { width: 110px; } .rep-pair .rep-mini img { width: 110px; height: 138px; }
.rep-pair .rep-mini span { white-space: normal; line-height: 1.3; }
.ref-card .metrics > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tabs::-webkit-scrollbar { display: none; } .tabs button { white-space: nowrap; flex: none; }
.ptabs { margin: 16px 0 4px; }
.cn-cta { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
/* Wide tables scroll inside their card instead of squeezing names one character per line */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .tbl-nowrap th, .tbl-nowrap td { white-space: nowrap; }
/* Phone: tab rows scroll sideways; a soft shadow on an edge means more tabs that way (pure CSS scroll shadows) */
@media (max-width: 860px) { .tabs { background: linear-gradient(to right, var(--bg) 30%, transparent) left / 32px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, transparent) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), transparent) right / 12px 100% no-repeat scroll; } }
/* A count can be opened to inspect the posts behind it. Keep evidence within its own scroll area. */
.proof-list summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.proof-items { max-height: 220px; min-width: 220px; overflow: auto; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.proof-group + .proof-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.proof-item { display: block; width: 100%; padding: 5px 0; border: 0; background: none; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.proof-item:hover, .proof-item:focus-visible { color: var(--accent); text-decoration: underline; }
.creator-mobile { display: none; }
@media (max-width: 720px) {
  .creator-desktop { display: none; }
  .creator-mobile { display: grid; gap: 10px; }
  .creator-card { min-width: 0; padding: 14px; }
  .creator-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
  .creator-card-head > div { min-width: 0; overflow-wrap: anywhere; }
  .creator-card-head > span { white-space: nowrap; }
  .creator-card-brands { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
  .creator-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .creator-card-facts > div { min-width: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
  .creator-card-facts span, .creator-card-facts small { display: block; color: var(--text-3); font-size: 11px; }
  .creator-card-facts b { display: block; font-size: 14px; margin-top: 2px; }
  .creator-card .proof-list summary { width: 100%; justify-content: center; }
  .creator-card .proof-items { min-width: 0; }
}

/* Own performance and home: shared existing tokens, explicit data provenance and quiet action hierarchy. */
.own-dashboard, .home-dashboard { --data-accent: var(--accent-2); }
.own-dashboard .xs, .home-dashboard .xs { font-size: 12px; }
.own-dashboard .muted, .home-dashboard .muted { color: var(--text-2); }
.own-dashboard .btn-primary, .home-dashboard .btn-primary { background: var(--data-accent); color: var(--bg-elev); }
.own-dashboard a:not(.btn), .home-dashboard .section-head a, .home-dashboard .home-data-warning a { color: var(--data-accent); }
.own-eyebrow { display: block; color: var(--text-2); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.own-data-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.own-data-head h2 { font-size: 21px; line-height: 1.4; }
.own-data-head p, .own-refresh-help { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.own-refresh-control { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; flex: none; }
.own-refresh-control .btn { min-height: 40px; }
.own-refresh-help { margin: 12px 0 18px; }
.own-refresh-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; margin: 0 0 16px; border-radius: var(--r-sm); background: var(--accent-soft); border-left: 3px solid var(--data-accent); font-size: 13px; }
.own-refresh-note svg { margin-top: 3px; flex: none; }
.own-refresh-note p { color: var(--text-2); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.own-refresh-note.is-warning { background: var(--warning-soft); border-left-color: var(--warning); }
.own-refresh-note .btn { margin-top: 10px; }
.own-coverage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.own-coverage > div { padding: 16px 20px; border-left: 1px solid var(--border); }
.own-coverage > div:first-child { border-left: 0; }
.own-coverage span, .own-coverage p { font-size: 12px; color: var(--text-2); }
.own-coverage strong { display: block; font-size: 25px; line-height: 1.3; margin: 5px 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.own-coverage small { font-size: 12px; margin-left: 4px; font-weight: 500; color: var(--text-2); }
.own-data-details { margin: 12px 0 22px; font-size: 12px; color: var(--text-2); }
.own-data-details summary { cursor: pointer; padding: 4px 0; min-height: 30px; }
.own-data-details summary span { color: var(--text-2); font-weight: 400; }
.own-data-details > div { padding: 12px 16px; margin-top: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); line-height: 1.65; }
.own-data-details p + p { margin-top: 8px; }
.own-stat-tiles { margin-bottom: 20px; }
.own-stat-tiles .stat { box-shadow: none; }
.own-stat-tiles .stat .lbl { color: var(--text-2); }
.own-performance .card-head { flex-wrap: wrap; gap: 12px; padding: 17px 18px; }
.own-performance .card-head p { margin-top: 5px; }
.own-count { margin-left: 5px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.own-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.own-sort .select { min-height: 36px; color: var(--text); }
.own-scroll-hint { display: none; padding: 0 16px 12px; color: var(--text-2); font-size: 12px; }
.own-table { min-width: 990px; }
.own-table th { white-space: nowrap; color: var(--text-2); background: var(--surface-2); font-size: 12px; }
.own-table td { height: 78px; font-size: 13px; }
.own-table td.num, .own-table th.num { min-width: 70px; white-space: nowrap; padding-right: 16px; }
.own-table td:first-child, .own-table th:first-child { width: 280px; min-width: 240px; position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--border); }
.own-table th:first-child { background: var(--surface-2); }
.own-post { display: flex; gap: 11px; align-items: center; width: 100%; min-height: 54px; text-align: left; }
.own-post img { width: 42px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); }
.own-post span { min-width: 0; }
.own-post b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 224px; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.own-post small { display: block; font-size: 11.5px; margin-top: 4px; color: var(--text-2); }
.own-post:hover b { color: var(--data-accent); text-decoration: underline; }
.own-missing { font-size: 11.5px; color: var(--text-2); font-weight: 400; }
.own-positive { color: var(--data-accent); font-weight: 700; }
.own-rate { font-weight: 600; }
.home-section-head { margin-top: 28px; margin-bottom: 12px; flex-wrap: wrap; }
.home-section-head h2 { font-size: 17px; }
.home-dashboard #home > section:first-of-type .home-section-head { margin-top: 0; }
.home-next-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; }
.home-weekly { border-top: 3px solid var(--data-accent); }
.home-weekly > h3 { font-size: 20px; line-height: 1.45; max-width: 46ch; overflow-wrap: anywhere; }
.home-report-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.home-report-notes b { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.home-report-notes p { font-size: 13px; line-height: 1.6; }
.home-report-gaps { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; font-size: 12px; color: var(--text-2); }
.home-report-gaps summary { cursor: pointer; }
.home-report-gaps p { margin-top: 10px; }
.home-report-gaps span { display: block; margin-top: 3px; }
.home-action-list { display: flex; flex-direction: column; }
.home-action-list > a { display: flex; flex: 1; align-items: center; gap: 13px; padding: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
.home-action-list > a:last-child { border-bottom: 0; }
.home-action-list > a:hover { background: var(--surface-2); text-decoration: none; }
.home-action-list a > span:nth-child(2) { min-width: 0; flex: 1; }
.home-action-list b { font-size: 14px; }
.home-action-list small { display: block; font-size: 12px; color: var(--text-2); margin-top: 5px; }
.home-action-number { font-size: 12px; font-weight: 600; color: var(--data-accent); font-variant-numeric: tabular-nums; }
.home-action-list svg { color: var(--text-2); flex: none; }
.home-evidence-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; }
.home-performance-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 0 18px; }
.home-performance-metrics span { font-size: 12px; color: var(--text-2); }
.home-performance-metrics strong { display: block; margin-top: 6px; font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.home-performance-metrics small { font-size: 12px; font-weight: 500; margin-left: 4px; }
.home-data-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; color: var(--text-2); }
.home-data-warning { margin-top: 10px; border-left: 2px solid var(--warning); padding-left: 10px; font-size: 12px; color: var(--text-2); }
.home-health-row { display: block; margin-top: 12px; color: var(--text); }
.home-health-row b { font-size: 12px; }
.home-health-row span { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.home-unavailable p { font-size: 12px; color: var(--text-2); margin: 8px 0 12px; }
.home-reference-section { margin-top: 32px; padding-top: 1px; border-top: 1px solid var(--border); }
@media (max-width: 1200px) { .own-scroll-hint { display: block; } .home-next-grid, .home-evidence-grid { grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr); } }
@media (max-width: 1000px) { .home-next-grid, .home-evidence-grid { grid-template-columns: minmax(0, 1fr); } .home-action-list > a { min-height: 85px; } }
@media (max-width: 600px) {
  .own-data-head { flex-direction: column; gap: 12px; }
  .own-refresh-control { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  .own-refresh-control .btn { min-height: 44px; }
  .own-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-coverage > div { padding: 14px 16px; }
  .own-coverage > div:nth-child(3) { border-left: 0; }
  .own-coverage > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .own-table td:first-child, .own-table th:first-child { width: 185px; min-width: 185px; max-width: 185px; }
  .own-post { gap: 8px; }
  .own-post img { width: 34px; height: 45px; }
  .own-post b { max-width: 118px; font-size: 12px; }
  .own-post small { font-size: 10.5px; }
  .own-sort { width: 100%; justify-content: space-between; }
  .own-sort .select { min-height: 44px; }
  .home-dashboard .page-head > .btn { width: 100%; justify-content: center; min-height: 44px; }
  .home-report-notes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-performance-metrics { gap: 9px; }
  .home-performance-metrics strong { font-size: 22px; }
  .home-weekly > h3 { font-size: 18px; }
  .home-dashboard .home-section-head .n { width: 100%; order: 3; }
}

/* Image-first cards: the picture carries the card; the caption shows over it on hover, the body keeps who and how well. */
.ref-card { border-color: transparent; background: transparent; box-shadow: none; }
.ref-card .thumb { border-radius: 12px; }
.ref-card:hover { transform: none; box-shadow: none; border-color: transparent; } .ref-card:hover .thumb { box-shadow: var(--sh-lg); }
.ref-card .thumb::after { content: ''; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .18s; pointer-events: none; }
.ref-card .thumb .cap { position: absolute; left: 10px; right: 10px; bottom: 36px; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(4px); transition: all .18s; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ref-card:hover .thumb::after, .ref-card:focus-visible .thumb::after { opacity: 1; } .ref-card:hover .thumb .cap, .ref-card:focus-visible .thumb .cap { opacity: 1; transform: none; }
.ref-card .thumb .bottom { z-index: 2; }
.ref-card .body { padding: 8px 2px 4px; gap: 3px; }
.ref-card .metrics .key { font-weight: 700; color: var(--text); background: var(--surface-2, rgba(0,0,0,.05)); padding: 0 6px; border-radius: 6px; }
@media (hover: none) { .ref-card .thumb .cap { display: none; } }
.brand-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 2px; } .brand-shots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; background: var(--surface-3); display: block; }

/* Brand page photo grid (like the brand's Instagram profile): pictures only, the count on hover. */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.pgrid-tile { position: relative; padding: 0; border: 0; background: var(--surface-3); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; cursor: pointer; display: block; }
.pgrid-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); } .pgrid-tile:hover img { transform: scale(1.03); }
.pgrid-tile .ic { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pgrid-tile .who { position: absolute; top: 6px; left: 6px; background: rgba(124,58,237,.88); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.pgrid-tile .ov { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; color: #fff; font-size: 12px; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .18s; }
.pgrid-tile:hover .ov, .pgrid-tile:focus-visible .ov { opacity: 1; }
@media (max-width: 860px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 3px; } .pgrid-tile { border-radius: 4px; } .pgrid-tile .ov { opacity: 1; font-size: 10.5px; padding: 12px 5px 4px; } }
.pgrid-tile .who.paid { background: rgba(234,88,12,.9); }

/* 크리에이터 발굴 cards: picture → author → brands → numbers */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 12px; }
.cc-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-thumb { position: relative; padding: 0; border: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); } .cc-thumb:hover img { transform: scale(1.03); }
.cc-thumb .ic { position: absolute; top: 7px; right: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 13px; }
.cc-thumb .score { position: absolute; left: 7px; bottom: 7px; background: rgba(0,0,0,.72); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 8px; }
.cc-thumb .tag-paid { position: absolute; top: 7px; left: 7px; background: rgba(234,88,12,.92); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.cc-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; min-width: 0; }
.cc-author { display: flex; gap: 6px; align-items: baseline; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; min-width: 0; font-size: 13px; } .cc-author b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cc-author:hover b { text-decoration: underline; }
.cc-brands { display: flex; flex-wrap: wrap; gap: 4px; } .cc-metrics { display: flex; gap: 8px; color: var(--text-3); flex-wrap: wrap; }
.clamp-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; } }
.cc-filters .select { width: auto; max-width: 180px; } @media (max-width: 860px) { .cc-filters .select { max-width: 48%; } }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; } .link-btn:hover { text-decoration: underline; }
/* 사진 모양 (ui.js shapeOf): 유튜브 16:9는 흐린 같은 사진 위 가운데 띠로 (hqdefault의 검은 띠도 잘림), 릴스·쇼츠는 윗부분 우선 */
.wide { isolation: isolate; }
.wide::before { content: ''; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(18px) brightness(.72) saturate(1.1); z-index: -1; }
.wide > img:first-child, .wide > img.main { position: absolute; left: 0; top: 50%; width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; transform: translateY(-50%); }
.ref-card:hover .thumb.wide img:first-child, .cc-thumb.wide:hover img, .pgrid-tile.wide:hover img { transform: translateY(-50%) scale(1.03); }
.tall > img:first-child { object-position: center 20%; }
.fmt-mark { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 6px; pointer-events: none; }
.ref-card .thumb .fmt-mark { top: auto; bottom: 44px; right: 8px; }
img.img-broken { object-fit: contain !important; background: var(--surface-3); }
.thumb-img { object-fit: cover; border-radius: 6px; background: var(--surface-3); flex: none; display: block; }
.no-anim .overlay, .no-anim .drawer { animation: none; }
/* 보드 표지: 사진 수에 맞춘 배치 (1장 꽉 채움 · 2장 반반 · 3장 큰 1 + 작은 2), 세로 착장이 덜 잘리게 높이 190 */
.board-card .mosaic { height: 190px; }
.board-card .mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; } .board-card .mosaic.n1 > :first-child { grid-row: auto; }
.board-card .mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .board-card .mosaic.n2 > :first-child { grid-row: auto; }
.board-card .mosaic > :nth-child(n+4) { display: none; }
/* 홈: 사진 띠 · 이번 주 만들 것 · 우리 게시물 사진 */
.home-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.home-strip > .ref-card { scroll-snap-align: start; min-width: 0; }
.home-make-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.home-make-card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev); color: var(--text); align-items: flex-start; transition: border-color .15s, box-shadow .15s; }
.home-make-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.home-make-img { flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--text-3); }
.home-make-img img { width: 100%; height: 100%; object-fit: cover; }
.home-make-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .home-make-body b { font-size: 14px; line-height: 1.4; } .home-make-body small { color: var(--text-2); font-size: 12px; line-height: 1.5; }
.home-own { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.home-own-photos { display: grid; grid-template-columns: repeat(4, 104px); gap: 8px; }
.home-own-photo { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); cursor: pointer; }
.home-own-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-own-photo span { position: absolute; left: 5px; bottom: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; }
@media (max-width: 1100px) { .home-own { grid-template-columns: 1fr; } .home-own-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 리포트 근거 사진: 한눈 요약 바로 아래 큰 사진 줄 */
.rep-evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rep-evid { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); cursor: pointer; }
.rep-evid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-evid .lab { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.66); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 7px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-evid.good { box-shadow: inset 0 0 0 3px var(--success); } .rep-evid.good .lab { background: rgba(22,163,74,.92); }
.rep-evid.bad { box-shadow: inset 0 0 0 3px var(--danger); } .rep-evid.bad .lab { background: rgba(220,38,38,.9); }
/* 리포트 제안: 참고 사진을 왼쪽에 크게, 접힌 제목에도 작은 사진 */
.rep-prop { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.rep-prop:not(:has(.rep-prop-img)) { grid-template-columns: minmax(0, 1fr); }
.rep-prop-img { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); cursor: zoom-in; }
.rep-prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-prop-img span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.rep-prop-minis { display: inline-flex; gap: 3px; margin-left: auto; } .rep-prop-minis img { width: 30px; height: 38px; object-fit: cover; border-radius: 5px; background: var(--surface-3); }
@media (max-width: 720px) { .rep-prop { grid-template-columns: 1fr; } .rep-prop-img { max-width: 220px; } }
.discover-layout.no-facets { grid-template-columns: minmax(0, 1fr); } .discover-layout.no-facets .facets { display: none; }
.pairbar.thin { padding: 7px 12px; }
/* 상세: 사진 칸을 넓게, 눌러서 크게 보기 */
.drawer { width: min(1180px, 100vw); grid-template-columns: minmax(340px, 50%) 1fr; }
.drawer .media img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,12,.92); display: grid; place-items: center; cursor: zoom-out; animation: fadeIn .15s both; }
.lightbox img { max-width: 96vw; max-height: 96vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; }
/* 우리 성과: 게시물 사진 그리드 (표는 '표' 버튼) */
.own-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 14px 16px 16px; }
.own-photo { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); cursor: pointer; }
.own-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); } .own-photo:hover img { transform: scale(1.03); }
.own-photo-chips { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 3px; }
.own-photo-chips span { background: rgba(0,0,0,.66); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; }
/* 사이드바 아래 작업 상태 한 줄 */
.work-status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 600; }
.work-status:hover { background: var(--surface-3); } .work-status.active { outline: 2px solid var(--accent); }
.work-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.work-status.off .dot { background: var(--text-3); } .work-status.bad .dot { background: var(--danger); }
/* 메뉴 안의 탭 (브랜드: 목록·개요·비교·트렌드 · 레퍼런스: 라이브러리·발굴함 · 홈: 이번 주·리포트) */
.menu-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; width: fit-content; }
.menu-tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.menu-tabs a:hover { color: var(--text); background: var(--surface-3); } .menu-tabs a.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--sh-sm); }
/* 이걸로 만들기 dialog · board picker covers (UX 4차) */
.make-thumbs { display: flex; gap: 6px; margin-bottom: 12px; }
.make-thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--surface-3, #eee); }
.make-opts { display: grid; gap: 8px; }
.make-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.make-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.make-opt .emo { font-size: 22px; line-height: 1; }
.make-opt b { display: block; font-size: 14px; }
.make-opt small { display: block; color: var(--text-2, var(--muted)); font-size: 12px; margin-top: 2px; }
.pick-board { padding: 8px 10px; border-radius: 10px; text-align: left; gap: 10px; align-items: center; }
.pick-board.on { background: var(--accent-soft); }
.pick-board .pb-covers { display: flex; gap: 2px; width: 84px; flex: none; }
.pick-board .pb-covers img { width: 27px; height: 36px; object-fit: cover; border-radius: 5px; background: var(--surface-3, #eee); }
.pick-board .pb-emoji { width: 84px; height: 36px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2, #f3f3f3); border-radius: 6px; }
.bulk-bar .bulk-sep { width: 1px; align-self: stretch; background: var(--border); margin: 0 6px; }
/* 판정 배지 · 용어 ⓘ · 툴팁 (공통) */
.verdict { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; line-height: 1.5; }
.verdict b { font-weight: 700; }
.verdict small { font-weight: 500; opacity: .9; font-size: 12px; }
.verdict.v-good { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.verdict.v-mid { background: var(--surface-2); color: var(--text-2); }
.verdict.v-low { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.verdict.v-na { background: transparent; color: var(--text-3); border: 1px dashed var(--border); }
button.info { border: 0; background: none; color: var(--text-3); font-size: 11px; cursor: help; padding: 0 2px; margin-left: 1px; vertical-align: super; line-height: 1; }
button.info:hover, button.info:focus-visible { color: var(--accent); }
.tip-pop { position: fixed; z-index: 200; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: #1d1d24; color: #fff; font-size: 12px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; animation: fadeIn .12s both; }

/* ── 8차 알림·감시: bell panel (notify-panel.js), settings 알림 tab, home collection warning ── */
.dropdown.np-drop { padding: 0; }
.np { width: 380px; max-height: 70vh; display: flex; flex-direction: column; }
.np-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--border); }
.np-head b { font-size: 14px; }
.np-count { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.dropdown .np-head .np-set { width: auto; padding: 4px 6px; font-size: 12px; color: var(--text-3); }
.dropdown .np-head .btn { width: auto; }
.np-list { overflow: auto; padding: 4px 6px 8px; }
.np-day { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 10px 8px 4px; }
.dropdown a.np-item { align-items: flex-start; gap: 10px; padding: 8px; position: relative; }
.np-item.read { opacity: .62; }
.np-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.np-emoji { display: inline-grid; place-items: center; font-size: 20px; }
.np-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.np-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-body { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.np-meta .verdict { font-size: 11px; padding: 1px 7px; }
.np-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.al-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.al-row:first-of-type { border-top: 0; }
.al-row.off .al-name { color: var(--text-3); }
.al-name { font-weight: 600; font-size: 13px; }
.al-hint { font-size: 12px; color: var(--text-3); }
.home-warn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--bg)); font-size: 13px; }
.home-warn.warn { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: color-mix(in srgb, var(--warning) 9%, var(--bg)); }
.home-warn b { font-weight: 600; }
.home-warn a { margin-left: auto; white-space: nowrap; font-weight: 600; }
.al-row > span:first-child:empty { width: 38px; }
/* ── /8차 알림·감시 ── */
/* ── 유사한 레퍼런스: 이유는 카드 본문 첫 줄 (닮은 정도 %는 마우스를 올렸을 때만) ── */
/* 썸네일 위 알약·배지는 좁은 카드(160px)에서 겹치지 않고 다음 줄로 내려갑니다 */
.ref-card .thumb .top { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
.ref-card .thumb .top > .pill-plat { flex-shrink: 0; }
.ref-card .thumb .top > .row { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; row-gap: 4px; }
.ref-card .thumb .top > .row:empty { display: none; }
.ref-card .sim-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--text); cursor: help; min-width: 0; }
/* ── 상세 서랍 판단 카드 (item.js verdictCard · src/verdict.js) ── */
.judge { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.judge .judge-top .verdict { font-size: 14px; padding: 4px 12px; } .judge .judge-top .verdict small { font-size: 14px; font-weight: 700; }
.judge-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.judge-facts .fact { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: help; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.judge-facts .fact.f-good { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); }
.judge-facts .fact.f-low { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.judge-follow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .judge-follow > .xs { margin-right: 2px; }
.judge-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.drawer .detail h2.clamp-2 { font-size: 18px; line-height: 1.35; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; } .why-list li { display: flex; gap: 8px; align-items: baseline; } .why-list .ico { width: 18px; flex: none; text-align: center; }
.own-next { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; } .own-next b { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; margin-right: 4px; } .own-next b.good { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); } .own-next b.warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.num-line { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: 12px; color: var(--text-3); } .num-line .num b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 2px; } .num-line .miss { cursor: help; }
.author-row { display: flex; gap: 10px; align-items: center; } .author-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; } .author-av.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); font-weight: 700; color: var(--text-2); }
.ad-run { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.drawer details.more { border-top: 1px solid var(--border); padding-top: 10px; } .drawer details.more > summary { cursor: pointer; font-weight: 600; font-size: 13px; } .drawer details.more[open] > summary { margin-bottom: 12px; } .drawer details.more > section { margin-bottom: 16px; }
.drawer .sim-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .drawer .sim-strip .ref-card .body { padding: 6px 8px; font-size: 11px; }
@media (max-width: 720px) { .drawer .sim-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 분석 칸: result line, measured lines, 따라 할 점 / 피할 점 (item.js whyBlock, src/post-insight.js) */
.analysis .ins-result { font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); margin-top: 6px; }
.analysis .ins-result.lv-good { color: var(--success); background: var(--success-soft); } .analysis .ins-result.lv-low { color: var(--danger); background: var(--danger-soft); }
.analysis .ins-todo { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13px; } .analysis .ins-todo ul { margin: 2px 0 0; padding-left: 18px; } .analysis .ins-todo li { margin: 2px 0; }
.analysis .ins-todo b { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; } .analysis .ins-todo b.good { color: var(--success); background: var(--success-soft); } .analysis .ins-todo b.warn { color: var(--serious); background: var(--warning-soft); }
.analysis .ai-part { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--accent-soft); margin-top: 6px; } .analysis .ai-part .why-list { margin-top: 4px; }
/* 작성자 칸: brands this person tagged or named, logo + name */
.brand-chips { display: flex; flex-wrap: wrap; gap: 6px; } .brand-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; max-width: 160px; }
.brand-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand-chip:hover { border-color: var(--border-strong); } .brand-chip.more { padding: 3px 10px; color: var(--text-2); cursor: help; }
.brand-chip .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; border: 1px solid var(--border); }
/* 영상: our own player, and what shows when its link expired */
.drawer .media video.player { max-height: 100vh; width: 100%; background: #000; }
.drawer .media .open-tab { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; backdrop-filter: blur(8px); } .drawer .media .open-tab:hover { background: rgba(255,255,255,.24); }
.drawer .media .vid-fallback { position: relative; width: 100%; display: flex; justify-content: center; } .drawer .media .vid-fallback img { opacity: .45; }
.drawer .media .vid-fallback .vid-note { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; width: max-content; max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 1100px) { .drawer .media video.player { max-height: 42vh; } }
.drawer .media .embed .vid-note { color: rgba(255,255,255,.85); font-size: 12.5px; margin: 0; padding: 0 56px; text-align: center; } .drawer .media .embed.has-note iframe { height: calc(100vh - 88px); }
/* ── /상세 서랍 판단 카드 ── */
/* ── 브랜드 목록 판단 칩 · 브랜드 상세 요약 (brands.js) ── */
.bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bchip { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; cursor: help; }
.bchip b { font-weight: 700; color: var(--text); } .bchip small { font-size: 11.5px; opacity: .9; }
.bchip.up { background: var(--accent-soft); color: var(--accent); } .bchip.up b { color: var(--accent); }
.bchip.down { background: transparent; border: 1px dashed var(--border-strong); }
.bchip.none { background: transparent; color: var(--text-3); border: 1px dashed var(--border); }
.stat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--text-2); cursor: pointer; } .stat-chip:hover { border-color: var(--text-3); }
.stat-chip.warn { border-color: var(--warning); background: var(--warning-soft); color: #9a6a00; } :root:not([data-theme="light"]) .stat-chip.warn { color: var(--warning); }
.jgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jcard { padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.jcard .jl { font-size: 12.5px; color: var(--text-2); font-weight: 600; } .jcard .jv { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; } .jcard .jv.none { font-size: 16px; color: var(--text-3); font-weight: 600; }
.jcard .verdict { white-space: normal; } .jcard .ja { margin-top: auto; padding-top: 4px; font-size: 12.5px; }
.ad-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-2); } .ad-strip b { color: var(--text); font-size: 15px; margin-left: 2px; }
.ref-card .body .note { background: var(--surface-2); border-left-color: var(--border-strong); color: var(--text-2); }
.empty-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 10px; }
.ref-card .rc-verdict { display: flex; min-width: 0; } .ref-card .rc-verdict .verdict { font-size: 11.5px; padding: 1px 8px; overflow: hidden; text-overflow: ellipsis; } .ref-card .rc-verdict .verdict small { font-size: 11.5px; }
/* ── 레퍼런스 라이브러리 필터 한 줄 (discover.js) ── */
.lib-filters .pill-select { width: auto; padding: 5px 30px 5px 10px; font-size: 12.5px; border-radius: 999px; }
.lib-filters .lib-sep { width: 1px; height: 20px; background: var(--border-strong); }
.lib-filters .people-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.lib-filters .people-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-filters .chip.open { border-color: var(--text-3); color: var(--text); background: var(--surface-2); }
/* ── 설정 › 연결 체크리스트 (settings.js) ── */
.checklist { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); } .check-row:first-child { border-top: 0; }
.check-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--danger-soft); color: var(--danger); }
.check-row.ok .check-mark { background: var(--success-soft); color: var(--success); }
.pgrid.pgrid-sm { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }

/* ── Card badges: 협찬 · 실착용 · 광고 의심 · 상위 — each its own colour and shape (광고 의심 also carries ⚠), white text ≥ 4.5:1 ── */
:root { --b-sponsored: #c2410c; --b-wear: #6d28d9; --b-boost-bg: #1f2937; --b-boost-fg: #fcd34d; --b-boost-line: #f59e0b; --b-top: #15803d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --b-sponsored: #c2410c; --b-wear: #7c3aed; --b-boost-bg: #0b0f17; --b-boost-fg: #fde68a; --b-boost-line: #fbbf24; --b-top: #15803d; } }
:root[data-theme="dark"] { --b-sponsored: #c2410c; --b-wear: #7c3aed; --b-boost-bg: #0b0f17; --b-boost-fg: #fde68a; --b-boost-line: #fbbf24; --b-top: #15803d; }
.badge.b-sponsored { background: var(--b-sponsored); color: #fff; }
.badge.b-wear { background: var(--b-wear); color: #fff; }
.badge.b-boost { background: var(--b-boost-bg); color: var(--b-boost-fg); box-shadow: inset 0 0 0 1px var(--b-boost-line); }
.badge.b-top { background: var(--b-top); color: #fff; }
