/* InstaDesk. Two themes from one set of tokens:
   - The Desk (creator workspace): dark, with a pink glow, colour-coded cards and playful accents  -> html[data-theme="dark"]
   - The Super Admin site: light content with a dark sidebar                                       -> no data-theme
   Instagram pink is the brand (with the orange-to-purple gradient on primary actions). Everything below reads its colours from the variables in :root / the dark override. */
:root {
  --accent: #E1306C; --accent-dark: #C13584; --accent-light: #FDE8F0; --ig-grad: linear-gradient(135deg, #F9A03F 0%, #E1306C 48%, #833AB4 100%);
  --bg: #F9F9F9; --panel: #FFFFFF; --card: #FFFFFF; --surface-hover: #F2F2F2; --input-bg: #FFFFFF; --code-bg: #FAFAFA;
  --text: #0F0F0F; --muted: #606060; --muted-2: #909090;
  --border: #E5E5E5; --border-light: #F0F0F0; --border-btn: #DADADA;
  --success: #2BA640; --warning: #F9AB00; --error: #E1306C; --bad: #E1306C;
  --primary: var(--accent); --primary-dark: var(--accent-dark); --primary-soft: var(--accent-light);
  --ig: var(--accent); --ig-soft: var(--accent-light);
  --link: #C13584;
  --success-soft: #E9F7EC; --success-text: #1E7A32; --warn-soft: #FEF6E0; --warn: #8A5A00;
  --danger: #C13584; --danger-soft: #FDE8F0;
  --alert-warn-b: #F3DDA6; --alert-warn-t: #6B4600; --alert-err-b: #F2B8B8; --alert-err-t: #8A0000; --alert-ok-b: #BFE3C7; --alert-ok-t: #14591F;
  --lead-bg: #FFF9F9; --toast-bg: #0F0F0F; --overlay: rgba(15, 15, 15, .5);
  --shadow: 0 1px 2px rgba(15, 15, 15, .05), 0 1px 3px rgba(15, 15, 15, .06);
  --radius: 12px; --sidebar: 248px;
}
html[data-theme="dark"] {
  --bg: #0A0A0E; --panel: #0F0F14; --card: #14141A; --surface-hover: #1D1D25; --input-bg: #101015; --code-bg: #0E0E13;
  --text: #F5F5F7; --muted: #A9A9B3; --muted-2: #76767F;
  --border: #25252E; --border-light: #1C1C24; --border-btn: #34343F;
  --link: #FF7BAE; --accent-light: rgba(225, 48, 108, .14);
  --success: #2FD165; --success-soft: rgba(47, 209, 101, .14); --success-text: #56E08A;
  --warn-soft: rgba(249, 171, 0, .14); --warn: #FFC94D; --danger: #FF6B6B; --danger-soft: rgba(225, 48, 108, .14);
  --alert-warn-b: rgba(249, 171, 0, .35); --alert-warn-t: #FFD98A; --alert-err-b: rgba(255, 60, 60, .4); --alert-err-t: #FFB0B0; --alert-ok-b: rgba(47, 209, 101, .35); --alert-ok-t: #9BEBB8;
  --lead-bg: rgba(225, 48, 108, .07); --toast-bg: #26262F; --overlay: rgba(0, 0, 0, .65);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; max-width: 100%; }
body { font: 14px/1.5 Inter, Roboto, Arial, system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
html[data-theme="dark"] body { background: radial-gradient(900px 380px at 72% -60px, rgba(225, 48, 108, .22), transparent 70%), radial-gradient(700px 320px at 0% 100%, rgba(225, 48, 108, .07), transparent 70%), var(--bg); background-attachment: fixed; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 28px; font-weight: 700; } h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 600; } h4 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 8px; } a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--muted-2); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; } .right { text-align: right; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; } .hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.row.top { align-items: flex-start; } .grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; } .gap-l { gap: 20px; }
.stack > * + * { margin-top: 12px; } .stack-s > * + * { margin-top: 6px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); } .g-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }

/* ---- shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: var(--panel); border-right: 1px solid var(--border); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; overflow-y: auto; transition: transform .2s; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(225, 48, 108, .35)); }
.brand .wm b { font-weight: 800; background: linear-gradient(90deg, #C0139B 0%, #F0396B 42%, #F9A03F 72%, #A24BD6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-group { padding: 10px 12px 2px; }
.nav-label { font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--muted-2); padding: 0 10px 8px; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-weight: 500; margin-bottom: 4px; border: 1px solid transparent; }
.nav a:hover { background: var(--surface-hover); text-decoration: none; }
.nav a.active { color: var(--accent); background: linear-gradient(90deg, rgba(225, 48, 108, .22), rgba(225, 48, 108, .07)); border-color: rgba(225, 48, 108, .45); box-shadow: 0 0 18px rgba(225, 48, 108, .12); }
html:not([data-theme="dark"]) .nav a.active { background: var(--accent-light); border-color: transparent; box-shadow: none; }
.nav svg { width: 20px; height: 20px; flex: none; }
.sidebar .foot { margin-top: auto; padding: 14px; font-size: 12px; }
.main { margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: var(--panel); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 30; }
html[data-theme="dark"] .topbar { background: rgba(11, 11, 15, .82); backdrop-filter: blur(12px); }
.topbar .title { font-weight: 600; font-size: 17px; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); font-weight: 700; display: grid; place-items: center; }
html[data-theme="dark"] .avatar { background: #F1F1F4; color: #15151B; }
.scrim { display: none; }
.tagline { text-align: right; color: var(--muted); font-size: 13px; padding: 22px 4px 4px; }
.tagline .heart { color: var(--accent); margin-left: 6px; }

/* topbar: search, bell, user menu */
.search { position: relative; width: min(440px, 36vw); margin-left: auto; }
.search input[type=text] { padding: 11px 14px 11px 44px; border-radius: 12px; background: var(--card); }
.search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.iconbtn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--surface-hover); }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; color: var(--text); }
.userchip:hover { background: var(--surface-hover); } .userchip .em { font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-wrap { position: relative; }
.dd { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-width: 92vw; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); z-index: 60; padding: 8px; }
.dd.left { left: 0; right: auto; }
.dd .dd-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 8px 10px 4px; }
.dd a, .dd button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.dd a:hover, .dd button.item:hover { background: var(--surface-hover); text-decoration: none; }
.dd .sub { color: var(--muted); font-size: 13px; } .dd .hr { height: 1px; background: var(--border); margin: 6px 0; }
.dd .empty-s { padding: 16px 10px; color: var(--muted); text-align: center; }

/* ---- components */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
html[data-theme="dark"] .card { background: linear-gradient(180deg, #17171E, #121217); }
.card.flat { box-shadow: none; } .card.tight { padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head h2 .ico { color: var(--muted); display: inline-flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--border-btn); background: var(--input-bg); color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
html[data-theme="dark"] .btn:not(.primary):not(.ig):not(.outline-red) { background: #1B1B23; }
.btn:hover { background: var(--surface-hover); text-decoration: none; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, .btn.ig { background: var(--ig-grad); border-color: #E1306C; color: #fff; box-shadow: 0 6px 18px rgba(225, 48, 108, .28); }
.btn.primary:hover, .btn.ig:hover { background: var(--ig-grad); filter: brightness(1.1); }
.btn.outline-red { background: transparent; border-color: rgba(225, 48, 108, .7); color: var(--accent); } .btn.outline-red:hover { background: rgba(225, 48, 108, .12); }
html:not([data-theme="dark"]) .btn.primary, html:not([data-theme="dark"]) .btn.ig { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn.danger { color: var(--danger); border-color: var(--alert-err-b); } .btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent !important; } .btn.ghost:hover { background: var(--surface-hover) !important; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; } .btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }
label.field { display: block; font-weight: 500; font-size: 14px; }
label.field > span { display: block; margin-bottom: 5px; } label.field .help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.req::after { content: " *"; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-btn); border-radius: 10px; background: var(--input-bg); }
textarea { min-height: 84px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 2px solid rgba(225, 48, 108, .25); border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-hover); color: var(--muted); }
.badge.blue { background: var(--surface-hover); color: var(--text); }
.badge.green { background: var(--success-soft); color: var(--success-text); }
.badge.red { background: var(--accent-light); color: var(--link); }
.badge.red-solid { background: var(--accent); color: #fff; }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.badge.gray { background: var(--surface-hover); color: var(--muted); }
.badge.dark { background: var(--text); color: var(--bg); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted-2); } .dot.green { background: var(--success); box-shadow: 0 0 8px rgba(47, 209, 101, .6); } .dot.red { background: var(--bad); } .dot.amber { background: var(--warning); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; } tr:last-child td { border-bottom: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat .l { order: -1; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--text); } .stat .s { color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--surface-hover); display: grid; place-items: center; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.empty .art { margin: 0 auto 6px; color: var(--muted-2); display: block; }
.alert { padding: 11px 14px; border-radius: 12px; border: 1px solid; font-size: 14px; }
.alert.info { background: var(--surface-hover); border-color: var(--border); color: var(--text); } .alert.warn { background: var(--warn-soft); border-color: var(--alert-warn-b); color: var(--alert-warn-t); }
.alert.error { background: var(--danger-soft); border-color: var(--alert-err-b); color: var(--alert-err-t); } .alert.ok { background: var(--success-soft); border-color: var(--alert-ok-b); color: var(--alert-ok-t); }
.alert.ig { background: var(--accent-light); border-color: var(--alert-err-b); color: var(--alert-err-t); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-btn); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-hover), var(--border), var(--surface-hover)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 16px; } @keyframes sk { to { background-position: -200% 0; } }
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; } .progress > div { height: 100%; background: var(--ig-grad); transition: width .2s; }
.pill-ig { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); color: var(--link); font-weight: 500; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pill-ig::before { content: ""; width: 9px; height: 9px; border-radius: 3px; border: 2px solid var(--accent); margin-left: 2px; }
.conn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; color: var(--text); }
.conn-pill:hover { text-decoration: none; background: var(--surface-hover); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
pre.copy { white-space: pre-wrap; word-wrap: break-word; background: var(--code-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; color: var(--text); }
.cutoff { border: 0; border-top: 2px dashed var(--accent); margin: 6px 0; } .cutoff-l { font-size: 12px; color: var(--link); font-weight: 500; }
.issue { display: flex; gap: 8px; font-size: 13px; padding: 4px 0; } .issue.error { color: var(--danger); } .issue.warn { color: var(--warn); }
.stepper { display: flex; gap: 0; overflow-x: auto; } .step { flex: 1; min-width: 96px; text-align: center; font-size: 13px; color: var(--muted); position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--border); } .step::after { content: ""; position: absolute; top: 0; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--border-btn); }
.step.done { color: var(--success-text); } .step.done::before { background: var(--success); } .step.done::after { background: var(--success); border-color: var(--success); }
.step.now { color: var(--accent); font-weight: 500; } .step.now::after { border-color: var(--accent); box-shadow: 0 0 10px rgba(225, 48, 108, .5); }
.modal-back { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.modal.wide { max-width: 760px; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--toast-bg); color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; font-size: 14px; border: 1px solid var(--border); }
.toast.error { background: var(--accent-dark); border-color: var(--accent); } .toast.ok { background: #1E7A32; border-color: #2BA640; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 4px; border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(to top, var(--border) 0, var(--border) 1px, transparent 1px, transparent 25%); }
.chart .bar { flex: 1; background: #8B8B95; border-radius: 3px 3px 0 0; min-height: 2px; opacity: .9; }
.chart .bar:hover { opacity: 1; background: #B5B5BF; } .chart.red .bar { background: linear-gradient(180deg, #F9A03F, #E1306C 55%, #833AB4); } .chart.red .bar:hover { background: #FF7BAE; }
.skill-card { display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--text); }
.skill-card:hover { border-color: rgba(225, 48, 108, .6); box-shadow: 0 8px 30px rgba(225, 48, 108, .14); text-decoration: none; transform: translateY(-2px); }
.skill-card .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.skill-card.card { padding: 14px; } .skill-card h3 { font-size: 15px; } .skill-card .tg { font-size: 13px; color: var(--text); opacity: .85; }
.skill-card .what { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skills-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.skill-card .open { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--link); font-weight: 500; }
.variant { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; } .variant.lead { border-color: var(--accent); background: var(--lead-bg); }
.editable { width: 100%; } .kbd { font: 12px ui-monospace, monospace; background: var(--surface-hover); border-radius: 4px; padding: 1px 5px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
html:not([data-theme="dark"]) .auth-wrap { background: linear-gradient(180deg, #fff 0%, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 420px; } .auth-card .brand { justify-content: center; padding-bottom: 6px; }
.auth-card .brand img { width: 56px; height: 56px; }
.hero-note { background: var(--accent-light); border: 1px solid var(--alert-err-b); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.thumb { width: 64px; aspect-ratio: 1 / 1; border-radius: 8px; background: var(--surface-hover); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted-2); position: relative; }
.thumb.lg { width: 84px; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 4px; bottom: 4px; background: #0F0F0F; color: #fff; font-size: 12px; font-weight: 500; padding: 1px 5px; border-radius: 4px; line-height: 1.4; }
.vitem { display: flex; gap: 12px; align-items: center; }
.vitem .t { font-weight: 500; color: var(--text); } .vitem .t:hover { color: var(--link); }
.link-btn { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font-weight: 500; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* ---- dashboard hero + colour-coded stat cards */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding: 6px 0 4px; }
.hero h1 { font-size: 28px; letter-spacing: -.02em; }
.hero .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.hero-art { position: absolute; right: 340px; top: 4px; width: 92px; height: 92px; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(225, 48, 108, .45)); opacity: .95; animation: floaty 5s ease-in-out infinite; z-index: 0; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.hero-left { position: relative; z-index: 1; }
.hero-card { position: relative; z-index: 1; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: rgba(20, 20, 26, .75); backdrop-filter: blur(8px); }
html:not([data-theme="dark"]) .hero-card { background: var(--card); }
.hero-card .stt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.hero-card .btn { margin-top: 12px; float: right; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; } .quick .btn { padding: 7px 11px; font-size: 13px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.sc { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--tone), .38); overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--tone), .20), rgba(var(--tone), .05) 70%); }
html:not([data-theme="dark"]) .sc { background: var(--card); border-color: var(--border); }
.sc .tile { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgb(var(--tone)); box-shadow: 0 4px 12px rgba(var(--tone), .4); flex: none; }
.sc .body { min-width: 0; padding-right: 40px; } .sc .lbl { font-weight: 500; font-size: 13px; } .sc .num { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 1px; }
.sc .sub { color: var(--muted); font-size: 11px; margin-top: 1px; line-height: 1.3; }
.sc .spark { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.sc .spark i { width: 4px; border-radius: 3px 3px 0 0; background: rgb(var(--tone)); opacity: .55; min-height: 3px; display: block; }
.sc .spark i:last-child { opacity: 1; }
.tone-red { --tone: 225, 48, 108; } .tone-blue { --tone: 46, 125, 255; } .tone-purple { --tone: 139, 92, 246; } .tone-green { --tone: 34, 197, 94; }
.tone-amber { --tone: 245, 158, 11; } .tone-teal { --tone: 20, 184, 166; } .tone-pink { --tone: 236, 72, 153; }
.rec { display: flex; gap: 14px; align-items: center; padding: 10px 0; } .rec + .rec { border-top: 1px solid var(--border-light); }
.rec .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--ig-grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(225, 48, 108, .3); }
.rec .tt { font-weight: 600; } .rec .dd2 { color: var(--muted); font-size: 13px; }
.plan-card { margin: 0 4px; padding: 14px; border-radius: 16px; border: 1px solid rgba(225, 48, 108, .3); background: linear-gradient(135deg, rgba(225, 48, 108, .14), rgba(225, 48, 108, .03)); }
html:not([data-theme="dark"]) .plan-card { background: var(--accent-light); }
.plan-card .hd { display: flex; align-items: center; gap: 10px; font-weight: 600; } .plan-card .hd .tile { width: 34px; height: 34px; border-radius: 10px; background: rgba(225, 48, 108, .2); color: var(--accent); display: grid; place-items: center; }
.plan-card .progress { margin: 10px 0 6px; }
/* channel page */
.ch-banner { height: 170px; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, #4a1d0c 0%, #3d0f2a 50%, #1f1240 100%) center / cover no-repeat; }
.ch-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 0 8px; }
.ch-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-hover); border: 4px solid var(--card); object-fit: cover; margin-top: -42px; display: grid; place-items: center; color: var(--muted-2); overflow: hidden; }
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ch-name { font-size: 24px; font-weight: 700; }
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pgrid .vcard .thumb { width: 100%; }
/* onboarding: Set Up Your Desk */
.ob-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.ob-inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.ob-inner h1 { font-size: 30px; }
.ob-steps { display: flex; align-items: center; justify-content: center; margin: 6px 0 2px; }
.ob-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.ob-circle { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; border: 2px solid var(--border-btn); color: var(--muted); background: var(--card); }
.ob-label { font-size: 12px; color: var(--muted); }
.ob-step.active .ob-circle { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 0 14px rgba(225, 48, 108, .45); }
.ob-step.active .ob-label { color: var(--text); font-weight: 500; }
.ob-step.done .ob-circle { background: var(--success); border-color: var(--success); color: #062b12; }
.ob-line { width: 46px; height: 2px; background: var(--border); margin: 0 4px 18px; } .ob-line.done { background: var(--success); }
.ob-card { padding: 22px; }
.ob-head { display: flex; gap: 14px; align-items: flex-start; } .ob-head h2 { font-size: 20px; margin-bottom: 2px; } .ob-head p { margin: 0; font-size: 14px; }
.ob-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); flex: none; }
.ob-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-type { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--border-btn); background: var(--input-bg); color: var(--text); cursor: pointer; }
.ob-type:hover { border-color: rgba(225, 48, 108, .6); } .ob-type.selected { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 1px var(--accent) inset, 0 8px 22px rgba(225, 48, 108, .14); }
.ob-type-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-hover); color: var(--accent); }
.ob-type-title { font-weight: 600; font-size: 15px; } .ob-type-desc { font-size: 13px; color: var(--muted); }
.ob-actions { display: flex; gap: 10px; justify-content: space-between; }
.ob-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.ob-feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 6px; }
.ob-feat-ico { color: var(--accent); } .ob-feat-t { font-weight: 600; font-size: 14px; }
@media (max-width: 520px) { .ob-types, .ob-feats { grid-template-columns: 1fr; } .ob-line { width: 18px; } .ob-step { min-width: 52px; } }
/* landing */
.landing { min-height: 100vh; }
html:not([data-theme="dark"]) .landing { background: linear-gradient(180deg, #fff 0%, var(--bg) 480px); }
.land-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 16px 24px; }
.land-hero { max-width: 860px; margin: 0 auto; padding: 40px 24px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.land-hero .logo-big { width: 170px; height: 170px; filter: drop-shadow(0 26px 44px rgba(225, 48, 108, .5)); animation: floaty 5s ease-in-out infinite; }
.land-hero h1 { font-size: 42px; letter-spacing: -.03em; line-height: 1.12; } .land-hero .lead { font-size: 17px; max-width: 640px; }
.tag3 { letter-spacing: .32em; font-size: 13px; color: var(--muted); font-weight: 500; } .tag3 i { color: var(--accent); font-style: normal; margin: 0 8px; }
.land-grid { max-width: 1120px; margin: 0 auto; padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.land-cta { max-width: 820px; margin: 24px auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.land-foot { text-align: center; padding: 24px 24px 40px; }
.split-7-5 { display: grid; gap: 16px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.split-5-7 { display: grid; gap: 16px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
/* ---- admin site: the LinkedIn Desk admin's black palette (near-black navy, violet accent) */
html[data-site="admin"] {
  --bg: #0b0e14; --panel: #12151d; --card: #12151d; --surface-hover: #171b26; --input-bg: #0f1219; --code-bg: #0e1118;
  --text: #e7e9ef; --muted: #a3aabb; --muted-2: #6b7285; --border: #232838; --border-light: #1b2030; --border-btn: #2c3247;
  --accent: #7c6cf6; --accent-dark: #6a5ae0; --accent-light: rgba(124, 108, 246, .14); --link: #a599ff;
  --success: #34d399; --success-soft: rgba(52, 211, 153, .12); --success-text: #5ee2b1; --warn: #f5b13d; --warn-soft: rgba(245, 158, 11, .12);
  --danger: #ff7b7b; --danger-soft: rgba(240, 75, 75, .12); --bad: #f04b4b; --lead-bg: rgba(124, 108, 246, .08); --toast-bg: #171b26;
  --alert-warn-t: #ffd08a; --alert-err-t: #ffb3b3; --alert-err-b: rgba(240, 75, 75, .4); --shadow: none;
}
html[data-site="admin"] body { background: var(--bg); }
html[data-site="admin"] .card { background: var(--panel); border-radius: 12px; }
html[data-site="admin"] .topbar { background: var(--panel); backdrop-filter: none; }
html[data-site="admin"] .brand { font-size: 17px; } html[data-site="admin"] .brand img { width: 30px; height: 30px; filter: none; } html[data-site="admin"] .brand .wm b { background: none; color: #a599ff; }
html[data-site="admin"] .nav a.active { background: rgba(124, 108, 246, .14); color: #a599ff; border-color: transparent; box-shadow: none; }
html[data-site="admin"] .btn.primary { background: linear-gradient(180deg, #8b7cff, #6c5ce7); border-color: #8b7cff; box-shadow: 0 6px 18px rgba(124, 108, 246, .25); color: #fff; }
html[data-site="admin"] .btn.primary:hover { background: linear-gradient(180deg, #9a8dff, #5f4fdb); }
html[data-site="admin"] .progress > div, html[data-site="admin"] .chart.red .bar { background: linear-gradient(180deg, #9a8dff, #7c6cf6); }
html[data-site="admin"] input:focus, html[data-site="admin"] select:focus, html[data-site="admin"] textarea:focus { outline-color: rgba(124, 108, 246, .3); }
html[data-site="admin"] .dot.green { box-shadow: none; }
html[data-site="admin"] .avatar { background: rgba(124, 108, 246, .2); color: #c3baff; width: 32px; height: 32px; }
html[data-site="admin"] .admin .topbar .tag, .admin .topbar .tag { background: rgba(124, 108, 246, .18); color: #a599ff; font-size: 12px; padding: 3px 8px; border-radius: 6px; font-weight: 600; letter-spacing: .05em; }
/* ---- responsive */
@media (max-width: 1240px) { .hero-art { display: none; } }
@media (max-width: 1080px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); } .hero { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); } .shell.open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
  .shell.open .scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 35; }
  .main { margin-left: 0; } .menu-btn { display: inline-flex; } .content { padding: 16px; } .topbar { padding: 0 14px; gap: 8px; }
  .g2, .g3, .split-7-5, .split-5-7 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: 8px; }
  .hidden-sm { display: none; } .topbar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .search { width: auto; flex: 1; } .userchip .em { display: none; } .userchip { padding: 3px; }
  .btn.sm { padding: 6px 10px; } .modal { padding: 16px; }
  .land-hero h1 { font-size: 28px; } .land-hero .logo-big { width: 120px; height: 120px; } .land-grid { grid-template-columns: 1fr; } .land-cta { margin: 16px; }
  .ch-banner { height: 110px; } h1 { font-size: 24px; } .hero h1 { font-size: 26px; }
}
@media (max-width: 700px) { .skills-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: 1fr; } .card { padding: 16px; } .row.stack-m { flex-direction: column; align-items: stretch; } .stat .n { font-size: 26px; } .search { display: none; } .dd { position: fixed; left: 8px; right: 8px; top: 72px; width: auto; max-width: none; } }

/* AI results in Content Studio: full width under the editor */
.ai-results:not(:empty) { margin-top: 18px; }

/* ---- landing page (public) */
.lp { position: relative; overflow-x: hidden; }
.lp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); background: radial-gradient(900px 420px at 78% 8%, rgba(225, 48, 108, .16), transparent 70%), radial-gradient(700px 380px at 8% 0%, rgba(225, 48, 108, .08), transparent 70%); pointer-events: none; }
.lp > * { position: relative; }
.lp-nav { position: sticky; top: 0; z-index: 20; max-width: none; padding: 12px max(24px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); }
.lp-links { display: flex; gap: 4px; }
.lp-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.lp-link:hover { color: var(--text); background: var(--surface-hover); }
.lp-hero { max-width: 1160px; margin: 0 auto; padding: 64px 24px 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lp-hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.035em; }
.lp-red { color: var(--accent); }
.lp-hero .lead { font-size: 18px; max-width: 540px; line-height: 1.55; }
.lp-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.lp-ticks li, .lp-list li { display: flex; align-items: center; gap: 8px; } .lp-ticks svg { color: var(--success); }
.lp-window { position: relative; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .02) inset; transform: rotate(-1.2deg); }
html:not([data-theme="dark"]) .lp-window { box-shadow: 0 24px 60px rgba(15, 15, 15, .14); }
.lp-wbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lp-wbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-btn); } .lp-wbar i:first-child { background: #ff5f57; } .lp-wbar i:nth-child(2) { background: #febc2e; } .lp-wbar i:nth-child(3) { background: #28c840; }
.lp-wbar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.lp-wbody { padding: 16px; display: grid; gap: 12px; }
.lp-psteps { display: flex; justify-content: space-between; gap: 6px; }
.lp-pstep { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--muted-2); flex: 1; }
.lp-pstep i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-btn); }
.lp-pstep.done { color: var(--success-text); } .lp-pstep.done i { background: var(--success); border-color: var(--success); }
.lp-pstep.now { color: var(--accent); } .lp-pstep.now i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.lp-pcard { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: var(--input-bg); }
.lp-ptitle { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.lp-pmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-hover); color: var(--muted); border: 1px solid var(--border); }
.lp-chip.red { background: var(--accent-light); color: var(--link); border-color: transparent; } .lp-chip.amber { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .lp-chip.green { background: var(--success-soft); color: var(--success-text); border-color: transparent; }
.lp-pbtn { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; background: var(--ig-grad); color: #fff; } .lp-pbtn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-btn); }
.lp-float { position: absolute; left: -22px; bottom: -18px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); color: var(--text); } .lp-float svg { color: var(--accent); }
.lp-sec { max-width: 1160px; margin: 0 auto; padding: 72px 24px; scroll-margin-top: 64px; }
.lp-narrow { max-width: 820px; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 36px; display: grid; gap: 10px; }
.lp-head h2 { font-size: 34px; letter-spacing: -.025em; line-height: 1.15; } .lp-head p { font-size: 16px; line-height: 1.55; }
.lp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lp-grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-grid4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-card { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: var(--card); display: grid; gap: 10px; align-content: start; transition: transform .18s, border-color .18s, box-shadow .18s; }
.lp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.lp-card h3 { font-size: 17px; } .lp-card p { line-height: 1.5; }
.lp-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-hover); color: var(--text); } .lp-ico.red { background: var(--accent-light); color: var(--accent); }
.lp-skill { grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; } .lp-skill h3 { font-size: 15px; margin-bottom: 3px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.lp-step { border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px; background: var(--card); display: grid; gap: 8px; align-content: start; }
.lp-step h3 { font-size: 16px; }
.lp-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--ig-grad); color: #fff; box-shadow: 0 6px 16px rgba(225, 48, 108, .35); }
.lp-not { margin-top: 16px; border-style: dashed; } .lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.lp-list li { align-items: flex-start; } .lp-list li svg { flex: none; margin-top: 3px; } .lp-not .lp-list svg { color: var(--muted-2); } .lp-list.ok svg { color: var(--success); }
.lp-plans { align-items: stretch; } .lp-plan { gap: 14px; } .lp-plan.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 20px 50px rgba(225, 48, 108, .1); }
.lp-plan .lp-chip { justify-self: start; } .lp-price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; } .lp-price.soon { font-size: 24px; color: var(--muted); padding: 7px 0; }
.lp-plan .btn { justify-content: center; margin-top: auto; } .disabled-look { opacity: .5; cursor: default; pointer-events: none; }
.lp-faq { display: grid; gap: 10px; } .lp-q { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 0 18px; } .lp-q[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.lp-q summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; } .lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; } .lp-q[open] summary::after { content: "\2212"; }
.lp-q p { padding: 0 0 16px; line-height: 1.6; margin: 0; }
.lp-final { max-width: 900px; margin: 24px auto 56px; padding: 48px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(500px 220px at 50% 0%, rgba(225, 48, 108, .18), transparent 70%), var(--card); width: calc(100% - 48px); }
.lp-final img { filter: drop-shadow(0 14px 26px rgba(225, 48, 108, .5)); animation: floaty 5s ease-in-out infinite; } .lp-final h2 { font-size: 32px; letter-spacing: -.025em; } .lp-final p { max-width: 520px; }
.lp-foot { border-top: 1px solid var(--border-light); padding: 32px 24px 40px; } .lp-foot-in { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-foot-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .lp-foot-links a, .lp-foot-links .lp-link { color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; } .lp-foot-links a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
@media (max-width: 1000px) { .lp-hero { grid-template-columns: 1fr; padding-top: 40px; } .lp-hero h1 { font-size: 44px; } .lp-window { transform: none; } .lp-float { left: 12px; }
  .lp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-links { display: none; } }
@media (max-width: 620px) { .lp-hero h1 { font-size: 36px; } .lp-head h2 { font-size: 26px; } .lp-sec { padding: 48px 16px; } .lp-hero { padding: 32px 16px; }
  .lp-grid3, .lp-grid4, .lp-steps { grid-template-columns: 1fr; } .lp-nav { padding: 10px 16px; } .lp-final { width: calc(100% - 32px); } .lp-final h2 { font-size: 26px; } }
@media (max-width: 620px) { .lp-nav .btn { padding: 7px 11px; font-size: 13px; } .lp-nav .brand { font-size: 17px; } .lp-nav .brand img { width: 30px; height: 30px; } .lp-nav .row { gap: 4px; } }

/* ---- profile menu (top right) and settings anchors */
.user-dd { width: 330px; padding: 0; overflow: hidden; }
.user-dd .hr { margin: 0; }
.dd-user { display: flex; gap: 14px; align-items: center; padding: 18px 18px 16px; }
.dd-user .nm { font-weight: 700; font-size: 16px; } .dd-user .sub { word-break: break-all; }
.dd-user .vp { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; padding: 0; width: auto; color: var(--link); } .dd-user .vp:hover { background: none; text-decoration: underline; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; flex: none; }
.user-dd > a, .user-dd > button.item { border-radius: 0; padding: 12px 18px; gap: 14px; font-weight: 500; }
.user-dd > a svg, .user-dd > button.item svg { color: var(--muted); flex: none; }
.user-dd button.item.danger-item, .user-dd button.item.danger-item svg { color: var(--danger); }
.user-dd .soon { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-hover); color: var(--muted); border: 1px solid var(--border); }
.card[id] { scroll-margin-top: 84px; }

/* ---- admin sidebar: same structure as the LinkedIn Desk admin (grouped, dot bullets, user block + Log Out) */
html[data-site="admin"] .adm-brand { gap: 10px; padding: 12px 18px 6px; }
html[data-site="admin"] .adm-brand img { width: 34px; height: 34px; border-radius: 9px; }
.adm-brand .wm2 { display: grid; line-height: 1.15; } .adm-brand .wm2 b { font-size: 15px; font-weight: 800; letter-spacing: .03em; color: var(--text); }
.adm-brand .wm2 small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #a599ff; }
html[data-site="admin"] .nav-group { padding: 0 12px; }
html[data-site="admin"] .nav-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 9px 8px 3px; color: var(--muted-2); }
html[data-site="admin"] .nav.dots a { gap: 12px; padding: 6px 12px; margin-bottom: 1px; border-radius: 10px; font-weight: 500; font-size: 13.5px; color: var(--muted); }
html[data-site="admin"] .nav.dots a:hover { color: var(--text); }
html[data-site="admin"] .nav.dots a.active { color: #c3baff; background: rgba(124, 108, 246, .16); border: 1px solid rgba(165, 153, 255, .55); }
.nav.dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; } .nav.dots a.active .dot { background: #a599ff; }
.adm-foot { border-top: 1px solid var(--border); margin: 6px 14px 0; padding: 10px 0 10px !important; display: grid; gap: 8px; }
.adm-user { display: flex; align-items: center; gap: 12px; padding: 0 6px; } .adm-user .nm { font-weight: 600; font-size: 14px; color: var(--text); }
.adm-foot .btn.full { width: 100%; justify-content: center; }
.admin-chip { font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); }

/* ---- Instagram-specific components */
.media-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.media-tile { position: relative; width: 92px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-hover); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-2); }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile .n { position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.media-tile .x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.slide-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--code-bg); }
.slide-card .sn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ig-grad); color: #fff; font-weight: 700; font-size: 12px; margin-right: 8px; }
.slide-card .st { font-size: 16px; font-weight: 600; line-height: 1.35; margin-top: 6px; }
.fold { border: 0; border-top: 2px dashed var(--accent); margin: 6px 0; }
.tier { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tier.niche { background: var(--success-soft); color: var(--success-text); } .tier.mid { background: rgba(46, 125, 255, .16); color: #7fb0ff; } .tier.broad { background: var(--warn-soft); color: var(--warn); }
.tagline-ig { letter-spacing: .02em; }
.phone { width: 260px; border: 1px solid var(--border-btn); border-radius: 30px; padding: 12px; background: var(--card); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.phone .ph-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 4px 4px 10px; }
.phone .ph-av { width: 26px; height: 26px; border-radius: 50%; background: var(--ig-grad); }
.phone .ph-img { aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(160deg, #F9A03F 0%, #E1306C 50%, #833AB4 100%); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; text-align: center; padding: 18px; line-height: 1.2; }
.phone .ph-cap { font-size: 12px; padding: 10px 4px 2px; color: var(--muted); }
.phone .ph-cap b { color: var(--text); }
.phone .ph-dots { display: flex; gap: 4px; justify-content: center; padding-top: 8px; } .phone .ph-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--border-btn); } .phone .ph-dots i:first-child { background: var(--accent); }
.dz { border: 2px dashed var(--border-btn); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.dz:hover, .dz.over { border-color: var(--accent); color: var(--text); background: var(--accent-light); }

/* Admin sidebar: never scroll on a normal laptop screen. The nav shrinks a little more on short windows. */
html[data-site="admin"] .sidebar { overflow-y: auto; scrollbar-width: none; } html[data-site="admin"] .sidebar::-webkit-scrollbar { display: none; }
@media (max-height: 760px) {
  html[data-site="admin"] .nav.dots a { padding: 4px 12px; font-size: 13px; }
  html[data-site="admin"] .nav-label { padding: 6px 8px 2px; }
  html[data-site="admin"] .adm-brand { padding: 8px 18px 4px; }
  html[data-site="admin"] .adm-foot { padding: 6px 0 6px !important; gap: 6px; }
}
/* Tagline under the wordmark, like the logo: PLAN | CREATE | GROW */
.tag3 { letter-spacing: .32em; font-size: 12px; color: var(--muted); font-weight: 500; text-align: center; } .tag3 i { color: var(--accent); font-style: normal; margin: 0 8px; }

/* ===== InstaDesk backdrop (Desk, landing and auth pages) =====================================================
   Deep plum with a pink / orange / purple glow and a flowing wave along the bottom, and translucent "glass" panels
   so the glow shows through everywhere. Scoped away from the Super Admin console, which keeps its own palette. */
html[data-theme="dark"]:not([data-site="admin"]) {
  --bg: #140820; --panel: #180a26; --card: #1f1030; --surface-hover: #2d1a42; --input-bg: #170a25; --code-bg: #150921;
  --text: #FAF5FF; --muted: #BDAAD3; --muted-2: #8E7BA8;
  --border: #3a2454; --border-light: #2a1a3e; --border-btn: #4d3468;
  --toast-bg: #2d1a42; --lead-bg: rgba(225, 48, 108, .09);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(8, 2, 18, .45);
}
html[data-theme="dark"]:not([data-site="admin"]) body {
  background:
    radial-gradient(1000px 560px at 88% -8%, rgba(168, 60, 210, .42), transparent 62%),
    radial-gradient(760px 620px at -6% 58%, rgba(240, 57, 107, .30), transparent 64%),
    radial-gradient(700px 420px at 14% 108%, rgba(249, 160, 63, .22), transparent 66%),
    radial-gradient(900px 620px at 104% 104%, rgba(110, 56, 200, .30), transparent 68%),
    radial-gradient(600px 300px at 46% 0%, rgba(225, 48, 108, .12), transparent 70%),
    linear-gradient(165deg, #1d0b2e 0%, #14071f 52%, #1a0924 100%);
  background-attachment: fixed;
}
html[data-theme="dark"]:not([data-site="admin"]) body::before {
  content: ""; position: fixed; left: -8%; right: -8%; bottom: -4%; height: 48vh; pointer-events: none; z-index: 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23F9A03F'/%3E%3Cstop offset='.42' stop-color='%23F0396B'/%3E%3Cstop offset='1' stop-color='%238E3CC8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 250 C260 110 520 330 820 245 S1250 110 1440 185 L1440 400 L0 400Z' fill='url(%23g)' opacity='.16'/%3E%3Cpath d='M0 292 C300 180 560 360 860 285 S1260 185 1440 235' fill='none' stroke='url(%23g)' stroke-width='3' opacity='.6'/%3E%3Cpath d='M0 312 C300 210 570 372 870 306 S1270 212 1440 258' fill='none' stroke='url(%23g)' stroke-width='1.5' opacity='.35'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
html[data-theme="dark"]:not([data-site="admin"]) #app { position: relative; z-index: 1; }

html[data-theme="dark"]:not([data-site="admin"]) .card { background: linear-gradient(180deg, rgba(46, 26, 70, .74), rgba(30, 14, 48, .74)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="dark"]:not([data-site="admin"]) .card.flat { background: rgba(28, 13, 45, .55); }
html[data-theme="dark"]:not([data-site="admin"]) .topbar { background: rgba(26, 11, 42, .70); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme="dark"]:not([data-site="admin"]) .sidebar { background: rgba(22, 9, 36, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme="dark"]:not([data-site="admin"]) .btn:not(.primary):not(.ig):not(.outline-red) { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"]:not([data-site="admin"]) .btn:not(.primary):not(.ig):not(.outline-red):hover { background: rgba(255, 255, 255, .13); }
html[data-theme="dark"]:not([data-site="admin"]) .hero-card { background: rgba(40, 20, 62, .66); }
html[data-theme="dark"]:not([data-site="admin"]) .dd, html[data-theme="dark"]:not([data-site="admin"]) .modal { background: #1c0d2d; }
html[data-theme="dark"]:not([data-site="admin"]) .lp-card, html[data-theme="dark"]:not([data-site="admin"]) .lp-q { background: rgba(38, 20, 58, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html[data-theme="dark"]:not([data-site="admin"]) .lp-window { background: rgba(28, 13, 46, .82); backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(8, 2, 18, .6), 0 0 60px rgba(225, 48, 108, .18); }
html[data-theme="dark"]:not([data-site="admin"]) .lp-nav { background: rgba(20, 8, 32, .55); backdrop-filter: blur(12px); }
html[data-theme="dark"]:not([data-site="admin"]) .lp-final { background: radial-gradient(520px 240px at 50% 0%, rgba(225, 48, 108, .22), transparent 70%), rgba(34, 17, 52, .62); }
.lp-red { background: linear-gradient(90deg, #F0396B 0%, #F9A03F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"]:not([data-site="admin"]) body::before { opacity: .42; }
/* Compact stat cards: keep labels and captions on one or two lines even when seven fit on a row. */
.sc { gap: 8px; padding: 10px; } .sc .tile { width: 26px; height: 26px; border-radius: 8px; }
.sc .body { padding-right: 0; } .sc .lbl { white-space: nowrap; } .sc .sub { padding-right: 34px; }

/* Signup: full-width stepper and the six code boxes */
.ob-steps.wide { width: 100%; } .ob-steps.wide .ob-line { flex: 1; width: auto; min-width: 24px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.otp-box { height: 58px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; border-radius: 12px; }
.otp-box:focus { border-color: var(--accent); outline: 2px solid rgba(225, 48, 108, .3); }
.code-notice .code-big { font: 700 26px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .22em; margin-top: 4px; color: var(--text); }
.resend-btn { background: none; border: 0; padding: 4px 8px; color: var(--muted); cursor: pointer; font: inherit; } .resend-btn:not(:disabled):hover { color: var(--accent); text-decoration: underline; } .resend-btn:disabled { cursor: default; }
@media (max-width: 520px) { .otp-boxes { gap: 6px; } .otp-box { height: 50px; font-size: 20px; } }

/* ---- Visual generation: the prompt-approval workflow (one modal for every visual) */
.gen-modal { min-height: 320px; }
.gen-prompt { min-height: 210px; font-size: 14px; line-height: 1.55; }
.gen-history { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.gen-vrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gen-vchip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--border-btn); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; font: inherit; }
.gen-vchip:hover { background: rgba(255, 255, 255, .09); } .gen-vchip.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.gen-vchip img, .gen-vico { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; display: grid; place-items: center; background: var(--surface-hover); color: var(--muted); }
.gen-vn { font-size: 12px; font-weight: 600; } .gen-star { color: #F9A03F; }
.gen-result { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 20px; align-items: start; }
.gen-media { border-radius: 14px; overflow: hidden; }
.gen-preview { display: block; width: 100%; max-height: 64vh; object-fit: contain; border-radius: 14px; background: #0a0410; border: 1px solid var(--border); }
.gen-wait { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 34px 12px; border: 1px dashed var(--border-btn); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.gen-orb { width: 56px; height: 56px; border-radius: 50%; background: var(--ig-grad); animation: genpulse 1.6s ease-in-out infinite; box-shadow: 0 0 40px rgba(225, 48, 108, .5); }
@keyframes genpulse { 0%, 100% { transform: scale(.85); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
.gen-wait-t { font-size: 18px; font-weight: 600; } .gen-clock { font-variant-numeric: tabular-nums; }
.gen-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 2px 0; padding: 0; }
.gen-steps li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-btn); color: var(--muted, #b9a6bd); }
.gen-steps li.done { color: var(--text, #fff); background: rgba(255, 255, 255, .08); }
.gen-steps li.now { color: var(--text, #fff); border-color: currentColor; animation: genpulse 1.6s ease-in-out infinite; }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gen-tile { text-align: left; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; font: inherit; display: grid; gap: 6px; align-content: start; }
.gen-tile:hover, .gen-tile.picked { border-color: var(--accent); } .gen-tile.picked { box-shadow: 0 0 0 1px var(--accent) inset; }
.gen-tile-img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-hover); display: grid; place-items: center; color: var(--muted-2); } .gen-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.gen-tile-t { font-weight: 600; font-size: 13px; }
.gen-tile-img { position: relative; } .gen-tile-img video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gen-tile-play { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.gen-tile-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-scene { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.sb-n { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface-hover); }
.sb-thumb { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
@media (max-width: 640px) { .sb-scene { grid-template-columns: 30px 1fr; } .sb-scene > :last-child { grid-column: 2; } }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 760px) { .gen-result { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gen-orb { animation: none; } }
