/* Foramind Studio — design tokens follow foramind.com */
@font-face { font-family: 'Outfit'; src: url('/static/fonts/Outfit-VF.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/static/fonts/Figtree-VF.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/static/fonts/Figtree-Italic-VF.ttf') format('truetype'); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --ink: #1d1d1f; --ink-2: #3a3a44; --ink-3: #4a4a55; --muted: #6e6e7a;
  --paper: #fff; --surface: #f5f5f7; --line: #e3e3ea; --line-2: #d2d2d7; --line-3: #e8e8ed;
  --accent: #0a6cf0; --accent-deep: #0752b8; --teal: #12b8c8; --teal-ink: #0b6d77; --teal-tint: #e3f7f9;
  --blue-tint: #e6f0fe; --violet: #7b3fe4; --violet-ink: #5a2bb0; --violet-tint: #f0eafd;
  --pink: #d04bc0; --pink-ink: #9c2a8c; --pink-tint: #fbeaf7;
  --night: #14163a; --night-2: #1f2250; --night-text: #c9cbe3; --star: #fec84b;
  --ok: #1f8a4c; --ok-tint: #e5f5ec; --danger: #c2352b; --danger-tint: #fdecea; --warn-tint: #fff4dc;
  --spectrum: linear-gradient(90deg, #12b8c8 0%, #0a6cf0 38%, #7b3fe4 70%, #d04bc0 100%);
  --cta: linear-gradient(100deg, #0a5fd6 0%, #7b3fe4 55%, #b8309f 100%);
  --display: 'Outfit', 'Figtree', system-ui, sans-serif; --body: 'Figtree', 'Helvetica Neue', Helvetica, sans-serif;
  --r-xl: 28px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 58, .06);
  --shadow: 0 1px 2px rgba(20, 22, 58, .05), 0 12px 32px rgba(20, 22, 58, .07);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: 68px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; margin: 0; color: var(--ink); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.grad-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.boot img { width: 56px; animation: spinslow 1.4s var(--ease) infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .45; } }

/* ---------------------------------------------------------------- buttons, fields, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; background: var(--cta); color: #fff; transition: transform .2s var(--ease), box-shadow .2s, filter .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(123, 63, 228, .28); }
.btn:disabled { opacity: .5; transform: none; box-shadow: none; cursor: default; }
.btn.soft { background: var(--blue-tint); color: var(--accent-deep); }
.btn.soft:hover { box-shadow: none; filter: brightness(.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn.dark { background: var(--ink); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.danger { background: var(--danger-tint); color: var(--danger); }
.btn.danger:hover { box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--accent-deep); }
.tag.teal { background: var(--teal-tint); color: var(--teal-ink); } .tag.violet { background: var(--violet-tint); color: var(--violet-ink); } .tag.pink { background: var(--pink-tint); color: var(--pink-ink); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 15px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13); }
textarea.input { resize: vertical; min-height: 84px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { display: none; }
.switch i { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }

/* ---------------------------------------------------------------- brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); align-self: flex-start; flex: none; }
.brand img.logo { height: 34px; width: auto; display: block; }
.brand .studio-pill { font-family: var(--display); font-weight: 600; font-size: 15px; padding: 3px 11px; border-radius: 999px; background: var(--violet-tint); color: var(--violet-ink); letter-spacing: 0; }

/* ---------------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); }
.auth-hero { position: relative; padding: 32px clamp(24px, 5vw, 72px) 40px; display: flex; flex-direction: column; overflow: hidden; }
.auth-hero .brand { margin-bottom: clamp(36px, 8vh, 90px); }
.auth-hero h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; max-width: 720px; }
.auth-hero p.lead { font-size: 19px; color: var(--ink-3); max-width: 560px; margin: 22px 0 0; line-height: 1.5; }
.auth-hero .hero-art { margin-top: auto; padding-top: 28px; }
.auth-hero .hero-art img { width: 100%; max-width: 760px; display: block; border-radius: var(--r-lg); }
.steps-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.auth-side { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: var(--r-xl); padding: 36px 34px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 30px; }
.auth-card .sub { color: var(--muted); margin: 6px 0 0; }
.auth-card form { display: grid; gap: 16px; margin-top: 26px; }
.auth-card .btn { width: 100%; padding: 14px; font-size: 16px; }
.auth-card .switch-line { margin-top: 18px; color: var(--muted); font-size: 15px; text-align: center; }
.auth-card .switch-line a { font-weight: 600; cursor: pointer; }
.lang-pick { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.lang-pick button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-pick button.on { background: var(--blue-tint); color: var(--accent-deep); }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-hero .hero-art { display: none; } }

/* ---------------------------------------------------------------- app header (like foramind.com) */
.topbar .brand { align-self: center; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 36px); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line-3); }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.topnav a:hover { background: var(--surface); }
.topnav a.on { color: var(--accent-deep); background: var(--blue-tint); }
.topbar .grow { flex: 1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; font-weight: 700; font-family: var(--display); border: 0; flex: none; }
.dropdown { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(20, 22, 58, .14); padding: 8px; }
.menu-list .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-3); margin-bottom: 6px; font-size: 14px; line-height: 1.35; }
.menu-list .who b { display: block; font-size: 15px; }
.menu-list .who span { color: var(--muted); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: none; border: 0; font-size: 15px; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface); }
.menu-list svg { width: 18px; height: 18px; color: var(--muted); }
.page { max-width: 1200px; margin: 0 auto; padding: 44px clamp(16px, 3vw, 36px) 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
.page-head p { margin: 10px 0 0; color: var(--ink-3); font-size: 17px; }
.card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); padding: 28px; }
.card.soft { background: var(--surface); border-color: transparent; }
.card + .card { margin-top: 20px; }
.card h3 { font-size: 24px; margin-bottom: 16px; }
@media (max-width: 760px) { .topnav a span { display: none; } .topbar { gap: 12px; } .brand .studio-pill { display: none; } }

/* ---------------------------------------------------------------- dashboard */
.dash-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 40px clamp(24px, 4vw, 48px); background: var(--surface); display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; margin-bottom: 44px; }
.dash-hero h1 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.dash-hero p { color: var(--ink-3); font-size: 18px; margin: 14px 0 24px; max-width: 520px; }
.dash-hero img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.empty img { mix-blend-mode: multiply; }
@media (max-width: 860px) { .dash-hero { grid-template-columns: 1fr; } .dash-hero img { display: none; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 28px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 22px; }
.pcard { position: relative; cursor: pointer; }
.pcard .thumb { aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.pcard:hover .thumb { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pcard .body { padding: 12px 4px 0; }
.pcard .kicker { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pcard .t { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.25; margin-top: 3px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .menu { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s; }
.pcard:hover .menu { opacity: 1; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-3); }
.status.done { background: var(--ok-tint); color: var(--ok); }
.status.error { background: var(--danger-tint); color: var(--danger); }
.status.busy { background: var(--violet-tint); color: var(--violet-ink); }
.status.busy::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: pulse 1s infinite; }
.empty { text-align: center; padding: 50px 20px 60px; border-radius: var(--r-xl); background: var(--surface); }
.empty img { width: 220px; margin-bottom: 10px; }
.empty h3 { font-size: 28px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); max-width: 460px; margin: 0 auto 24px; font-size: 17px; }
.working-art { display: grid; place-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- wizard */
.seg { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); margin-bottom: 26px; flex-wrap: wrap; }
.seg div { display: flex; align-items: center; gap: 9px; padding: 9px 18px 9px 10px; border-radius: 999px; font-weight: 600; color: var(--ink-3); font-size: 15px; }
.seg div b { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: #fff; font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm); }
.seg div.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg div.on b { background: var(--teal-tint); color: var(--teal-ink); }
.seg div.done b { background: var(--ok-tint); color: var(--ok); }
.drop { display: grid; place-items: center; text-align: center; gap: 10px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 60px 20px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f7faff; }
.drop .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--blue-tint); color: var(--accent); }
.drop .ico svg { width: 30px; height: 30px; }
.drop b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.files { display: grid; gap: 8px; margin-top: 16px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface); }
.file-row .ext { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #fff; }
.file-row .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.choice { position: relative; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 15px 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover { border-color: var(--line-2); }
.choice.on { border-color: var(--accent); background: #f7faff; box-shadow: 0 0 0 4px rgba(10, 108, 240, .1); }
.choice b { display: block; font-size: 15px; font-weight: 600; }
.choice span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.hier { display: grid; gap: 7px; padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); color: #1F3B3A; }
.hier .l0 { font-weight: 700; font-size: 22px; text-transform: uppercase; }
.hier .l1 { font-weight: 700; font-size: 19px; padding-left: 14px; }
.hier .l2 { font-size: 17px; padding-left: 28px; }
.hier .l3 { font-style: italic; font-size: 16px; padding-left: 42px; }
.hier .l4 { font-style: italic; text-decoration: underline; font-size: 15px; padding-left: 56px; text-transform: lowercase; }
.wizard-foot { display: flex; justify-content: space-between; margin-top: 26px; }

/* ---------------------------------------------------------------- project / editor */
.proj { display: flex; flex-direction: column; height: 100vh; }
.proj-top { display: flex; align-items: center; gap: 14px; height: var(--head); padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line-3); }
.proj-top .mark { height: 30px; }
.proj-top .title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.015em; border: 0; background: transparent; padding: 6px 10px; border-radius: 10px; min-width: 120px; max-width: 460px; }
.proj-top .title:hover, .proj-top .title:focus { background: var(--surface); outline: none; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 999px; }
.tabs a { padding: 7px 18px; border-radius: 999px; color: var(--ink-3); font-weight: 600; font-size: 14.5px; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.proj-top .grow { flex: 1; }
.save-state { font-size: 13px; color: var(--muted); }
.proj-body { flex: 1; display: grid; grid-template-columns: 1fr 360px; min-height: 0; }
.canvas { position: relative; overflow: hidden; background: #fff radial-gradient(circle at 1px 1px, #e9e9ef 1px, transparent 0) 0 0 / 24px 24px; cursor: grab; touch-action: none; }
.canvas.panning { cursor: grabbing; }
.canvas .world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.canvas svg.edges { position: absolute; overflow: visible; pointer-events: none; }
.canvas .node { position: absolute; user-select: none; -webkit-user-drag: none; transition: filter .15s; }
.canvas .node img { width: 100%; height: 100%; display: block; pointer-events: none; }
.canvas .node:hover { filter: drop-shadow(0 6px 14px rgba(20, 22, 58, .14)); }
.canvas .node.sel { outline: 3px solid var(--accent); outline-offset: 8px; border-radius: 14px; }
.canvas .node .badge { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.canvas .node.busy img { opacity: .35; }
.canvas .node.busy::after { content: ''; position: absolute; left: 50%; top: 45%; width: 32px; height: 32px; margin: -16px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.canvas-tools { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line-3); box-shadow: var(--shadow); }
.canvas-tools .icon-btn { border-radius: 999px; }
.zoom-label { align-self: center; font-size: 13px; font-weight: 600; color: var(--ink-3); min-width: 48px; text-align: center; }
.inspector { background: #fff; border-left: 1px solid var(--line-3); overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.inspector .pic { background: var(--surface); border-radius: var(--r-md); padding: 16px; display: grid; place-items: center; }
.inspector .pic img { max-width: 100%; max-height: 230px; }
.inspector .pic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inspector .pic-actions .btn { flex: 1 1 auto; }
.inspector .pic-options .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.inspector .pic-option { position: relative; aspect-ratio: 1; padding: 6px; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  background: repeating-conic-gradient(rgba(127,127,127,.12) 0 25%, transparent 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; }
.inspector .pic-option img { max-width: 100%; max-height: 100%; }
.inspector .pic-option span { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 99px;
  background: var(--accent, #2563eb); color: #fff; opacity: 0; transition: opacity .15s; text-align: center; }
.inspector .pic-option:hover { border-color: var(--accent, #2563eb); }
.inspector .pic-option:hover span, .inspector .pic-option.chosen span { opacity: 1; }
.inspector .pic-option.chosen { border-color: #16a34a; }
.inspector .pic-option.chosen span { background: #16a34a; }
.inspector h4 { font-family: var(--body); margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.inspector .hint { background: var(--surface); border-radius: var(--r-md); padding: 18px; color: var(--ink-3); font-size: 15px; }
.inspector hr { border: 0; border-top: 1px solid var(--line-3); width: 100%; margin: 4px 0; }
.progress-view { flex: 1; overflow: auto; padding: 50px 24px; background: var(--surface); }
.progress-card { max-width: 960px; margin: 0 auto; background: #fff; border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow); }
.progress-card h2 { font-size: 34px; letter-spacing: -.03em; }
.pbar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; margin: 22px 0 10px; }
.pbar i { display: block; height: 100%; width: 0; background: var(--spectrum); transition: width .6s var(--ease); }
.stage-list { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.stage-list div { flex: 1; font-size: 14px; font-weight: 600; text-align: center; padding: 10px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.stage-list div.on { background: var(--violet-tint); color: var(--violet-ink); }
.stage-list div.done { background: var(--ok-tint); color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-top: 28px; }
.tiles img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface); border-radius: 14px; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(8px); } }
.timings { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .proj-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .inspector { max-height: 42vh; border-left: 0; border-top: 1px solid var(--line-3); } }

/* ---------------------------------------------------------------- presentation studio */
.studio { flex: 1; display: grid; grid-template-columns: 380px 1fr; min-height: 0; }
.studio-side { background: #fff; border-right: 1px solid var(--line-3); overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.studio-side h4 { font-family: var(--body); margin: 0 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.type-list { display: grid; gap: 8px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-card { border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; padding: 0; text-align: left; transition: border-color .15s, box-shadow .15s; }
.theme-card .swatch { height: 58px; position: relative; }
.theme-card .swatch i { position: absolute; bottom: 11px; height: 8px; border-radius: 4px; }
.theme-card b { display: block; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .12); }
.studio-stage { position: relative; display: grid; place-items: center; padding: 32px; background: var(--surface); min-width: 0; }
.frame-wrap { width: 100%; max-width: 1280px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--night); box-shadow: 0 30px 80px rgba(20, 22, 58, .22); position: relative; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--night-text); padding: 30px; background: radial-gradient(700px 400px at 70% 20%, rgba(123, 63, 228, .35), transparent), radial-gradient(600px 400px at 20% 90%, rgba(18, 184, 200, .25), transparent), var(--night); }
.frame-empty img { width: 64px; margin-bottom: 14px; }
.frame-empty h3 { color: #fff; font-size: 34px; margin-bottom: 10px; }
.stage-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.busy-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 22, 58, .78); color: #fff; font-size: 17px; text-align: center; backdrop-filter: blur(4px); }
.busy-veil img { width: 54px; animation: spinslow 1.4s var(--ease) infinite; margin-bottom: 14px; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- settings / admin */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.logo-drop { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-preview { width: 200px; height: 96px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); display: grid; place-items: center; background: #fff; overflow: hidden; color: var(--muted); font-size: 13px; }
.logo-preview img { max-width: 170px; max-height: 70px; object-fit: contain; }
table.users { width: 100%; border-collapse: collapse; font-size: 15px; }
table.users th, table.users td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-3); }
table.users th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.kv b { font-weight: 600; color: var(--muted); }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 100; box-shadow: 0 12px 34px rgba(0,0,0,.25); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); }

/* ---------------------------------------------------------------- dialogs (in-app, never browser boxes) */
.dlg-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(20, 22, 58, 0); backdrop-filter: blur(0); transition: background .2s, backdrop-filter .2s; }
.dlg-wrap.on { background: rgba(20, 22, 58, .38); backdrop-filter: blur(6px); }
.dlg { width: min(460px, 100%); background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: 0 30px 80px rgba(20, 22, 58, .3); transform: translateY(14px) scale(.97); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
.dlg-wrap.on .dlg { transform: none; opacity: 1; }
.dlg-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-tint); color: var(--accent); margin-bottom: 16px; }
.dlg.danger .dlg-ico { background: var(--danger-tint); color: var(--danger); }
.dlg-ico svg { width: 24px; height: 24px; }
.dlg h3 { font-size: 23px; letter-spacing: -.02em; }
.dlg-text { color: var(--ink-3); margin: 8px 0 0; }
.dlg-input { margin-top: 18px; }
.dlg-target { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px; border-radius: var(--r-md); background: var(--surface); }
.dlg-target img { width: 92px; height: 60px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
.dlg-target b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.dlg-target span { color: var(--muted); font-size: 14px; }
.dlg-warn { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--danger-tint); color: #8c241c; font-size: 14.5px; line-height: 1.45; }
.dlg-warn svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn.danger-solid { background: var(--danger); }
.btn.danger-solid:hover { box-shadow: 0 8px 22px rgba(194, 53, 43, .3); }

/* ---------------------------------------------------------------- popover menu */
.pop { position: fixed; z-index: 150; min-width: 236px; padding: 6px; background: #fff; border: 1px solid var(--line-3); border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 22, 58, .16); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; transition: opacity .14s, transform .18s var(--ease); }
.pop.on { opacity: 1; transform: none; }
.pop a, .pop button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; }
.pop a:hover, .pop button:hover, .pop a:focus-visible, .pop button:focus-visible { background: var(--surface); outline: none; }
.pop svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pop .danger, .pop .danger svg { color: var(--danger); }
.pop .danger:hover { background: var(--danger-tint); }
.pop hr { border: 0; border-top: 1px solid var(--line-3); margin: 5px 4px; }
.pop kbd { margin-left: auto; font: 600 12px var(--body); color: var(--muted); }

/* ---------------------------------------------------------------- dashboard: stats, toolbar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -18px 0 40px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); }
.stat .si { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.stat .si svg { width: 22px; height: 22px; }
.stat.s0 .si { background: var(--teal-tint); color: var(--teal-ink); } .stat.s1 .si { background: var(--blue-tint); color: var(--accent-deep); }
.stat.s2 .si { background: var(--violet-tint); color: var(--violet-ink); } .stat.s3 .si { background: var(--pink-tint); color: var(--pink-ink); }
.stat b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat > span:last-child { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.section-head { flex-wrap: wrap; gap: 14px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.search:focus-within { background: #fff; border-color: var(--accent); }
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; width: 190px; font-size: 14.5px; }
.search kbd { font: 600 12px var(--body); color: var(--muted); padding: 1px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.chips { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.chips button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.chips button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
select.sort { width: auto; height: 42px; padding: 0 34px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.viewtog { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); }
.viewtog button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.viewtog button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.viewtog svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- dashboard: cards */
.pcard { outline: none; }
.pcard .thumb { position: relative; }
.pcard:focus-visible .thumb { box-shadow: 0 0 0 3px var(--accent); }
.hover-actions { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, rgba(20, 22, 58, 0) 30%, rgba(20, 22, 58, .38)); opacity: 0; transition: opacity .2s; }
.hover-actions { align-items: flex-end; padding-bottom: 16px; }
.pcard:hover .hover-actions, .pcard:focus-within .hover-actions { opacity: 1; }
.hover-actions .btn.soft { background: #fff; }
.deck-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--violet-ink); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.deck-badge svg { width: 15px; height: 15px; }
.pcard .more { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(-3px); transition: opacity .18s, transform .18s; }
.pcard .more svg { width: 16px; height: 16px; }
.pcard:hover .more, .pcard:focus-within .more, .pcard .more:focus-visible { opacity: 1; transform: none; }
.pcard .more:hover { background: #fff; color: var(--ink); }
@media (hover: none) { .pcard .more { opacity: 1; transform: none; } }
.pcard .kicker .dot { color: var(--line-2); }
.working-art .ring { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet); animation: spin .9s linear infinite; }
.working-art small { color: var(--muted); }
.list-rows { display: flex; flex-direction: column; gap: 10px; }
.list-rows .pcard { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 18px; padding: 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); transition: box-shadow .2s; }
.list-rows .pcard:hover { box-shadow: var(--shadow); }
.list-rows .pcard .thumb { aspect-ratio: 16 / 10; border-radius: 12px; }
.list-rows .pcard:hover .thumb { transform: none; box-shadow: none; }
.list-rows .hover-actions, .list-rows .deck-badge { display: none; }
.list-rows .pcard .body { padding: 0; }
.list-rows .pcard .src { color: var(--muted); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-rows .pcard .more { top: 50%; transform: translateY(-50%); opacity: 1; }
.empty.small { padding: 40px 20px; }
.empty.small h3 { font-size: 22px; }
/* skeletons */
.sk { pointer-events: none; }
.stat.sk { height: 82px; }
.stat.sk, .pcard.sk .thumb, .pcard.sk .body i { background: linear-gradient(90deg, var(--surface) 0%, #ececf1 40%, var(--surface) 80%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; border-color: transparent; }
.pcard.sk .body i { display: block; height: 12px; border-radius: 6px; margin-top: 10px; width: 45%; }
.pcard.sk .body i + i { width: 75%; height: 16px; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* toast with icon */
#toast { display: flex; align-items: center; gap: 10px; padding: 11px 20px 11px 12px; }
#toast .ti { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); font-size: 13px; font-weight: 800; }
#toast.bad .ti { background: rgba(255, 255, 255, .25); }

/* presentation type cards */
.choice.type { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; }
.choice.type .ty { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--ink-2); transition: background .15s, color .15s; }
.choice.type .ty svg { width: 20px; height: 20px; }
.choice.type .tx { min-width: 0; }
.choice.type.on .ty { background: var(--cta); color: #fff; }
.ty-guided, .ty-lesson { --tint: var(--blue-tint); } 

/* ---------------------------------------------------------------- packages */
.trial-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border: 0; border-radius: 999px; background: var(--violet-tint); color: var(--violet-ink); font-size: 13.5px; font-weight: 600; }
.trial-pill svg { width: 16px; height: 16px; }
.trial-pill b { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--violet-ink); font-size: 12.5px; }
.trial-pill:hover b { background: var(--cta); color: #fff; }
@media (max-width: 860px) { .trial-pill span { display: none; } }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(100deg, var(--violet-tint), var(--blue-tint)); }
.plan-bar > span { display: flex; align-items: center; gap: 8px; color: var(--violet-ink); font-size: 14px; }
.plan-bar svg { width: 18px; height: 18px; }
.plan-bar.full { background: var(--teal-tint); }
.plan-bar.full > span { color: var(--teal-ink); }
.link { border: 0; background: none; color: var(--accent-deep); font-weight: 700; font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.link:hover { background: rgba(255, 255, 255, .6); }
.plan-chip { display: inline-flex; align-items: center; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.plan-chip.plan-pro { background: var(--violet-tint); color: var(--violet-ink); }
.plan-chip.plan-business { background: #1d1d1f; color: #fff; }
.plan-chip.plan-trial { background: var(--teal-tint); color: var(--teal-ink); }

/* formats */
.choice.type.locked { background: var(--surface); border-color: transparent; }
.choice.type.locked .ty { background: #fff; color: var(--muted); }
.choice.type.locked .tx > span { color: var(--muted); font-style: normal; }
.choice.type.locked:hover { border-color: var(--line-2); }
.more-types { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.more-types em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.more-types svg { width: 18px; height: 18px; margin-left: auto; transition: transform .25s var(--ease); }
.more-types.open svg { transform: rotate(180deg); }
.more-types:hover { border-color: var(--accent); color: var(--accent-deep); }
.type-list.extra { display: none; margin-top: 8px; }
.more-types.open + .type-list.extra { display: grid; animation: pop .35s var(--ease); }

/* themes: swatch previews (a tiny slide) */
.tsw { position: relative; display: block; height: 62px; background: linear-gradient(135deg, var(--g1) 0%, var(--g1) 55%, var(--g2) 100%); }
.tsw i { position: absolute; border-radius: 4px; }
.tsw .t1 { left: 12px; top: 14px; width: 52%; height: 9px; background: var(--ink); opacity: .92; }
.tsw .t2 { left: 12px; top: 29px; width: 34%; height: 6px; background: var(--ink); opacity: .45; }
.tsw .ac { right: 12px; bottom: 11px; width: 26px; height: 10px; border-radius: 999px; background: var(--acc); }
.tsw.auto { background: var(--spectrum); }
.theme-card { position: relative; }
.h4row { display: flex; align-items: center; justify-content: space-between; }
.h4row em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 1px 8px; border-radius: 999px; margin-bottom: 12px; }
.theme-grid.teasers { margin-top: 10px; }
.theme-card.locked .tsw { filter: blur(2.2px) saturate(.9); transform: scale(1.06); }
.theme-card.locked { overflow: hidden; border-style: dashed; }
.theme-card.locked b { color: var(--muted); }
.theme-card .lk, .lcard .lk { position: absolute; top: 18px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.theme-card .lk svg, .lcard .lk svg { width: 15px; height: 15px; }
.lib-btn { width: 100%; margin-top: 12px; }

/* theme library overlay */
.lib-wrap { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 24px; background: rgba(20, 22, 58, 0); transition: background .2s; }
.lib-wrap.on { background: rgba(20, 22, 58, .45); backdrop-filter: blur(6px); }
.lib { width: min(1180px, 100%); height: min(820px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 100px rgba(20, 22, 58, .35); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s, transform .3s var(--ease); }
.lib-wrap.on .lib { opacity: 1; transform: none; }
.lib-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line-3); }
.lib-head > div { flex: 1; }
.lib-head h3 { font-size: 26px; letter-spacing: -.02em; }
.lib-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.lib-body { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }
.lib-cats { overflow-y: auto; padding: 14px; border-right: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 2px; }
.lib-cats button { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: left; }
.lib-cats button em { font-style: normal; font-size: 12px; color: var(--muted); }
.lib-cats button:hover { background: var(--surface); }
.lib-cats button.on { background: var(--blue-tint); color: var(--accent-deep); font-weight: 600; }
.lib-grid { overflow-y: auto; padding: 20px 24px 30px; }
.lib-grid section + section { margin-top: 26px; }
.lib-grid h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lib-grid h5 em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.lcard { position: relative; border: 1.5px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lcard.cur { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .12); }
.lcard .lprev { position: relative; overflow: hidden; }
.lcard .tsw { height: 92px; }
.lcard.locked .tsw { filter: blur(1.6px) saturate(.85); transform: scale(1.05); }
.lcard .lk { top: 30px; }
.lcard .lmeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; }
.lcard .lmeta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .mine { font-size: 11.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.lcard .plan-chip { margin: 0; flex: none; }
.lcard .lacts { position: absolute; inset: 0 0 auto 0; height: 92px; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(20, 22, 58, .35); opacity: 0; transition: opacity .18s; }
.lcard:hover .lacts { opacity: 1; }
.lcard .lacts .btn.ghost { background: #fff; color: var(--ink); box-shadow: none; }
.lib-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line-3); background: var(--surface); color: var(--ink-3); font-size: 14px; }
.lib-foot > span { display: flex; align-items: center; gap: 8px; }
.lib-foot svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .lib-body { grid-template-columns: 1fr; } .lib-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-3); } .lib-head .switch { display: none; } }

/* upgrade window */
.dlg.wide { width: min(860px, 100%); }
.up-reason { background: var(--violet-tint); color: var(--violet-ink); padding: 10px 14px; border-radius: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid transparent; }
.plan.best { background: #fff; border-color: transparent; box-shadow: 0 0 0 2px #7b3fe4, var(--shadow); }
.plan.current { background: #fff; border-color: var(--line-2); }
.plan b { font-family: var(--display); font-size: 21px; }
.plan .pdesc { color: var(--muted); font-size: 13.5px; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.best-tag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 11.5px; font-weight: 700; }
.pcur { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--teal-ink); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.choice .plan-chip { display: inline-flex; margin-top: 0; font-size: 11px; color: inherit; }
.choice .plan-chip.plan-pro { color: var(--violet-ink); } .choice .plan-chip.plan-business { color: #fff; }

/* category textures on theme previews */
.tsw::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.tsw.c-nature::before { background: radial-gradient(18px 12px at 78% 30%, color-mix(in srgb, var(--acc) 45%, transparent), transparent), radial-gradient(26px 16px at 88% 62%, color-mix(in srgb, var(--acc) 30%, transparent), transparent), radial-gradient(14px 10px at 66% 72%, color-mix(in srgb, var(--acc) 35%, transparent), transparent); }
.tsw.c-woody::before { background: repeating-linear-gradient(176deg, rgba(0,0,0,.06) 0 2px, transparent 2px 7px), repeating-linear-gradient(172deg, rgba(255,255,255,.06) 0 1px, transparent 1px 11px); }
.tsw.c-metallic::before { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 45%, transparent 58%), linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.12)); }
.tsw.c-celestial::before { background-image: radial-gradient(1.2px 1.2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.4px 1.4px at 85% 55%, #fff, transparent), radial-gradient(1px 1px at 40% 75%, #fff, transparent), radial-gradient(1.2px 1.2px at 60% 85%, #fff, transparent), radial-gradient(30px 20px at 82% 30%, color-mix(in srgb, var(--acc) 35%, transparent), transparent); opacity: .9; }
.tsw.c-neon .ac { box-shadow: 0 0 8px 2px var(--acc); }
.tsw.c-neon::before { background: linear-gradient(transparent 92%, color-mix(in srgb, var(--acc) 60%, transparent) 92%); }
.tsw.c-retro::before { background: repeating-linear-gradient(90deg, transparent 0 66%, color-mix(in srgb, var(--acc) 30%, transparent) 66% 72%, color-mix(in srgb, var(--g2) 60%, transparent) 72% 78%, transparent 78% 100%); }
.tsw.c-art::before { background: radial-gradient(40px 26px at 80% 40%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%), radial-gradient(30px 22px at 66% 70%, color-mix(in srgb, var(--g2) 70%, transparent), transparent 70%); }
.tsw.c-pastel::before { background: radial-gradient(40px 30px at 85% 25%, color-mix(in srgb, var(--acc) 25%, transparent), transparent), radial-gradient(40px 30px at 70% 85%, color-mix(in srgb, var(--g2) 80%, transparent), transparent); }
.tsw.c-culture::before { background: radial-gradient(circle at 85% 50%, transparent 9px, color-mix(in srgb, var(--acc) 40%, transparent) 9px 11px, transparent 11px), radial-gradient(circle at 85% 50%, color-mix(in srgb, var(--g2) 70%, transparent) 4px, transparent 5px); }
.tsw.c-seasons::before { background: linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--acc) 22%, transparent) 60% 70%, transparent 70%); }
.tsw.c-dramatic::before { background: radial-gradient(60px 40px at 80% 40%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%); }

/* Pro details */
.choice.locked { background: var(--surface); border-color: transparent; }
.choice.locked b { color: var(--ink-3); }
.choice.locked > span { color: var(--muted); }
.pro-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 20px; border-radius: var(--r-md); background: linear-gradient(100deg, var(--violet-tint), var(--blue-tint)); color: var(--violet-ink); }
.pro-banner > svg { width: 22px; height: 22px; flex: none; }
.pro-banner div { flex: 1; display: flex; flex-direction: column; }
.pro-banner b { font-family: var(--display); font-size: 17px; }
.pro-banner span { font-size: 14px; color: var(--ink-3); }
.pro-dim { opacity: .55; filter: grayscale(.3); }
.page-head h1 .plan-chip { font-size: 13px; vertical-align: 10px; font-family: var(--body); }
#pzip svg { width: 18px; height: 18px; }
.menu-list a .plan-chip { margin-left: 8px; }

/* ================================================================ v2: navigation, packages, libraries, guide */
:root { --amber: #c77d0a; --amber-tint: #fff3dc; --green: #1f8a4c; --green-tint: #e5f5ec; }
.plan-chip.plan-enterprise, .plan-chip.plan-demo { background: #1d1d1f; color: #fff; }
.plan-chip.plan-demo { background: var(--violet); }

/* top bar: icons + labels; on narrower screens the tabs move to a second, scrollable row */
.topnav { min-width: 0; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 12px; font-size: 14.5px; }
.topnav a svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.topnav a.on svg { opacity: 1; }
.topbar { gap: 18px; }
.trial-pill { text-decoration: none; white-space: nowrap; }
.newbtn { flex: none; }
@media (max-width: 1360px) {
  .topbar { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 12px; }
  .topbar > .brand, .topbar > .grow, .topbar > .trial-pill, .topbar > .newbtn, .topbar > .dropdown { margin-bottom: 10px; }
  .topnav { order: 10; flex: 1 0 100%; margin: 0 calc(-1 * clamp(16px, 3vw, 36px)); padding: 6px clamp(12px, 3vw, 32px) 8px; border-top: 1px solid var(--line-3); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topnav::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .topnav a span { display: inline; }
  .topbar { gap: 10px; }
  .newbtn span { display: none; }
  .newbtn { padding: 8px 10px; }
  .trial-pill b { display: none; }
  .trial-pill { padding: 0 12px; }
  .trial-pill span { display: inline; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) { .trial-pill span { display: none; } .trial-pill { padding: 0 10px; } }

/* shared bits */
.tbl-wrap { overflow-x: auto; }
.mh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mh-row h3 { margin: 0; }
.mh-row > em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 2px 9px; border-radius: 999px; }
.mh-row > em:empty { display: none; }
.sk-row, .sk-block, .tcard.sk, .pcol.sk { background: linear-gradient(90deg, var(--surface) 0%, #ececf1 40%, var(--surface) 80%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: 14px; }
.sk-row { height: 48px; margin-bottom: 10px; }
.sk-block { height: 220px; }
.empty-line { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 2px; }
.empty-line svg { width: 22px; height: 22px; flex: none; }
.kcell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.kcell svg { width: 17px; height: 17px; color: var(--muted); }
.g-sec { margin-top: 56px; scroll-margin-top: 130px; }
.g-sec > h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; margin-bottom: 8px; }
.g-lead { color: var(--ink-3); font-size: 17px; margin: 0 0 24px; max-width: 720px; }
.g-foot { margin: 14px 0 0; font-size: 14.5px; }
.tint-teal { background: var(--teal-tint); color: var(--teal-ink); } .tint-blue { background: var(--blue-tint); color: var(--accent-deep); }
.tint-violet { background: var(--violet-tint); color: var(--violet-ink); } .tint-pink { background: var(--pink-tint); color: var(--pink-ink); }
.tint-amber { background: var(--amber-tint); color: var(--amber); } .tint-green { background: var(--green-tint); color: var(--green); }
.tint-spectrum { background: linear-gradient(120deg, #e3f7f9, #e6f0fe 45%, #f0eafd 75%, #fbeaf7); color: var(--violet-ink); }
.play-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--line-2); transition: transform .15s var(--ease), background .15s, color .15s, box-shadow .15s; }
.play-btn svg { width: 16px; height: 16px; }
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 1.5px var(--ink-3); }
.play-btn.on { background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(123, 63, 228, .3); }
.play-btn:disabled { opacity: .4; cursor: default; transform: none; }
.spin-sm { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(123, 63, 228, .25); border-radius: var(--r-lg); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* in-app dialogs: extras */
.dlg { max-height: calc(100vh - 40px); overflow-y: auto; }
.dlg-actions { flex-wrap: wrap; }
.dlg-ico img { display: block; }
.dlg.mid { width: min(580px, 100%); }
.dlg-form { display: grid; gap: 14px; margin-top: 18px; }
.quota-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.quota-box div { padding: 12px 14px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; }
.quota-box span { font-size: 13px; color: var(--muted); font-weight: 600; }
.quota-box b { font-family: var(--display); font-size: 22px; }
.fm-hint { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--blue-tint); color: var(--accent-deep); font-size: 14px; }

/* Foramind export */
.fm-btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.fm-btn:hover { box-shadow: inset 0 0 0 1.5px var(--accent), 0 6px 18px rgba(10, 108, 240, .14); }
.fm-btn img { width: 20px; height: 20px; }
.fm-card { text-align: center; }
.fm-card .dlg-actions { justify-content: center; }
.fm-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); }
.fm-logo img { width: 36px; animation: spinslow 1.6s var(--ease) infinite; }
.fm-bar { margin: 18px 0 0; }
@media (max-width: 760px) {
  .fm-btn span, #exp span, .proj-top .save-state, .proj-top .grow { display: none; }
  .fm-btn, #exp { padding: 8px 10px; }
  .proj-top { gap: 6px; padding: 0 10px; }
  .proj-top .title { min-width: 0; width: 0; flex: 1 1 auto; font-size: 17px; padding: 6px; }
  .proj-top .mark { height: 26px; }
  .tabs a { padding: 7px 12px; }
}

/* new-map wizard */
.choice .unit2 { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--violet-ink); background: var(--violet-tint); padding: 2px 9px; border-radius: 999px; width: fit-content; }
.choice .unit2 svg { width: 13px; height: 13px; }
.units-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.units-hint:empty { display: none; }

/* presentation studio: sound / music / fonts pickers */
.deck-opts { display: flex; flex-direction: column; gap: 14px; }
.deck-opts h4 { margin-bottom: 0; }
.deck-opts .field > span { font-size: 13.5px; }
.picker { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; }
.picker:hover { border-color: var(--line-2); }
.picker:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13); }
.picker > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.picker > svg:last-child { width: 16px; }
.picker .pv { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picker .pv b { font-weight: 600; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .pv small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row { display: flex; gap: 8px; align-items: center; }
.pick-row .picker { flex: 1; }
.free-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--muted); }
.free-note svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
.pick-pop { overflow-y: auto; padding: 6px; }
.pick-pop .pk-h { padding: 12px 10px 4px; font: 700 11.5px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pick-pop .pk-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.pk-item .pk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-item .pk-main b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pk-item .pk-main small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pk-item.on { background: var(--blue-tint); }
.pk-item.on .pk-main b { color: var(--accent-deep); }
.pk-item .pk-on svg { width: 17px; height: 17px; color: var(--accent); }
.pk-item.locked .pk-main { opacity: .62; }
.pk-lock { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pk-lock svg { width: 14px !important; height: 14px !important; }
.pk-lock .plan-chip { margin-left: 4px; }
.pk-empty { padding: 8px 10px 10px; font-size: 14px; }
.unit-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 14px auto 0; max-width: 680px; font-size: 13.5px; color: var(--muted); }
.unit-note span { flex: 0 1 auto; }
.unit-note a { flex: none; }
.unit-note:empty { display: none; }
.unit-note svg { width: 16px; height: 16px; flex: none; }
.unit-note.empty-units { color: var(--danger); }
.unit-note a { font-weight: 700; }

/* theme library page */
.my-panel .mp-head h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.my-panel .mp-head h3 em { font: 700 12px var(--body); font-style: normal; color: var(--muted); background: var(--surface); padding: 2px 9px; border-radius: 999px; }
.my-panel .mp-head p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.mp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mp-list .sk-row { height: 96px; margin: 0; }
@media (max-width: 560px) {
  .mp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 20px; }
  .pro-banner { flex-wrap: wrap; }
  .pro-banner div { flex: 1 1 200px; }
  .pro-banner .btn { margin-left: 36px; }
}
.mp-chip { position: relative; border: 1.5px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.mp-chip .tsw { height: 56px; }
.mp-chip b { display: block; padding: 8px 34px 9px 11px; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-x { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 11px; display: grid; place-items: center; }
.mp-x:hover { background: var(--danger-tint); color: var(--danger); }
.my-panel + .pro-banner { margin-top: 20px; }
.lib-page { margin-top: 28px; }
.lib-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.lib-tools .search input { width: 240px; }
.lib-page .lib-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.lib-page .lib-cats { position: sticky; top: 140px; max-height: calc(100vh - 160px); padding: 0; border: 0; }
.lib-page .lib-grid { overflow: visible; padding: 0; }
.lib-page .lcard.locked { cursor: pointer; }
.lcard .lopen { padding: 0 12px 11px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.lcard:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13); }
@media (hover: none) { .lcard .lacts { opacity: 1; background: none; inset: auto 8px 46px auto; height: auto; } }
@media (max-width: 760px) {
  .lib-page .lib-body { grid-template-columns: 1fr; gap: 14px; }
  .lib-page .lib-cats { position: static; max-height: none; flex-direction: row; overflow-x: auto; border-bottom: 0; padding-bottom: 4px; }
  .lib-page .lib-cats button { white-space: nowrap; flex: none; gap: 8px; }
  .lib-tools .search { flex: 1; } .lib-tools .search input { width: 100%; }
  .lib-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* music library */
.music-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.music-top .card + .card { margin-top: 0; }
@media (max-width: 960px) { .music-top { grid-template-columns: 1fr; } }
.mcreate .pro-banner { margin-bottom: 18px; }
.mform { display: grid; gap: 18px; }
.mform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .mform-row { grid-template-columns: 1fr; } }
.mform .chips { width: fit-content; max-width: 100%; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .mood-grid { grid-template-columns: repeat(2, 1fr); } }
.mood { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; font-size: 14.5px; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.mood i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.mood i.tint-teal { background: var(--teal); } .mood i.tint-blue { background: var(--accent); } .mood i.tint-amber { background: #f2a51a; }
.mood i.tint-violet { background: var(--violet); } .mood i.tint-pink { background: var(--pink); } .mood i.tint-green { background: #3aa86b; }
.mood:hover { border-color: var(--line-2); }
.mood.on { border-color: var(--accent); background: #f7faff; box-shadow: 0 0 0 4px rgba(10, 108, 240, .1); }
.mform-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.small-note { font-size: 13.5px; }
.units-pill { font-style: normal; font-size: 13px !important; font-weight: 700; color: var(--violet-ink) !important; background: var(--violet-tint) !important; padding: 4px 11px !important; }
.mine-empty { background: var(--surface); padding: 34px 20px; }
.mine-empty p { font-size: 15px; margin-bottom: 0; }
.empty-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--violet); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.empty-ico svg { width: 24px; height: 24px; }
.track-list { display: flex; flex-direction: column; gap: 8px; }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 10px; border-radius: 16px; background: var(--surface); transition: background .2s; }
.track.fresh { animation: pop .5s var(--ease); background: var(--violet-tint); }
.tart { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tart svg { width: 19px; height: 19px; }
.tmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tmeta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmeta small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-target .tart { width: 60px; height: 60px; }
.lib-head2 { margin-top: 52px; margin-bottom: 8px; }
.lib-note { margin: 0 0 18px; font-size: 14.5px; }
.chips.scroll-x { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.chips.scroll-x button { white-space: nowrap; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tcard.sk { height: 190px; }
.tcard { position: relative; border: 1px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s var(--ease); }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-art { position: relative; height: 104px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px; }
.tc-art .wave { display: flex; align-items: flex-end; gap: 4px; height: 40px; opacity: .55; }
.tc-art .wave i { width: 5px; border-radius: 3px; background: currentColor; height: 30%; }
.tc-art .wave i:nth-child(2) { height: 70%; } .tc-art .wave i:nth-child(3) { height: 100%; } .tc-art .wave i:nth-child(4) { height: 55%; } .tc-art .wave i:nth-child(5) { height: 80%; }
.tcard:has(.play-btn.on) .wave i { animation: eq .9s ease-in-out infinite alternate; }
.tcard:has(.play-btn.on) .wave i:nth-child(2n) { animation-delay: -.45s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.tc-art .wave i { transform-origin: bottom; }
.tcard.locked .tc-art .wave { filter: blur(1.2px); }
.tcard .lk { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.tcard .lk svg { width: 14px; height: 14px; }
.tcard.locked { cursor: pointer; }
.tc-meta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 1px; }
.tc-meta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-meta small { color: var(--muted); font-size: 13px; }
.tc-open { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.tc-open .plan-chip { margin: 0; }
@media (max-width: 560px) { .track-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tc-art { height: 86px; } }

/* guide */
.guide-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding: 40px clamp(22px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); }
.guide-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin-top: 14px; }
.guide-hero p { color: var(--ink-3); font-size: 18px; margin: 16px 0 22px; max-width: 600px; }
.guide-hero img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) { .guide-hero { grid-template-columns: 1fr; } .guide-hero img { display: none; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); }
.toc a:hover { color: var(--accent-deep); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-3); background: #fff; }
.why b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; margin-top: 14px; letter-spacing: -.01em; }
.why p { color: var(--ink-3); margin: 6px 0 0; font-size: 15px; }
.why-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.why-ico svg { width: 22px; height: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); }
.steps .n { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; font-family: var(--display); font-weight: 700; color: var(--violet-ink); box-shadow: var(--shadow-sm); }
.steps li:last-child .n { background: var(--cta); color: #fff; }
.steps b { font-family: var(--display); font-size: 17.5px; font-weight: 600; }
.steps p { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; }
.g-cta { margin-top: 22px; }
.units-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.units-grid .card + .card { margin-top: 0; }
@media (max-width: 860px) { .units-grid { grid-template-columns: 1fr; } }
.ulist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ulist li { display: flex; gap: 12px; align-items: flex-start; }
.ulist .ui { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--accent-deep); }
.ulist .ui.ok { background: var(--ok-tint); color: var(--ok); }
.ulist .ui svg { width: 17px; height: 17px; }
.ulist b { display: block; font-weight: 600; }
.ulist span { color: var(--ink-3); font-size: 14.5px; }
.g-table-card { margin-top: 20px !important; }
table.allow td, table.allow th { text-align: center; }
table.allow td:first-child, table.allow th:first-child { text-align: left; }
table.allow tr.per td { color: var(--muted); font-size: 13.5px; }
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
@media (max-width: 400px) { .keys-grid { grid-template-columns: 1fr; } }
.keyrow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-3); background: #fff; }
.kbds { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 104px; }
.kbds i { font-style: normal; color: var(--muted); font-size: 13px; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2.5px; font: 700 13px var(--body); color: var(--ink-2); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-3); }

/* packages page */
.cur-plan { background: linear-gradient(135deg, #fff 55%, var(--violet-tint)); }
.cp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cp-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cp-head h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-head p { margin: 6px 0 0; }
.demo-until { color: var(--violet-ink); }
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 960px) { .meters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .meters { grid-template-columns: 1fr; } }
.meter { padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); }
.meter .mh { display: flex; align-items: center; gap: 10px; }
.mi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mi svg { width: 17px; height: 17px; }
.meter .mh b { flex: 1; font-weight: 600; font-size: 15px; }
.meter .mh em { font-style: normal; font-weight: 700; font-family: var(--display); font-size: 16px; }
.mbar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; margin: 14px 0 10px; }
.mbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .6s var(--ease); }
.mbar.unl i { background: var(--spectrum); opacity: .55; }
.meter.warn .mbar i { background: #f2a51a; }
.meter.full .mbar i { background: var(--danger); }
.meter .mf { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meter .xtra { color: var(--ok); font-weight: 700; }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 900px) { .plan-cols { grid-template-columns: 1fr; } }
.pcol.sk { height: 380px; }
.pcol { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid transparent; }
.pcol.best { background: #fff; box-shadow: 0 0 0 2px var(--violet), var(--shadow); }
.pcol.current { background: #fff; border-color: var(--line-2); }
.pcol .pn { font-family: var(--display); font-size: 25px; font-weight: 600; }
.pcol .pdesc { color: var(--muted); font-size: 14.5px; }
.allow-list { list-style: none; margin: 16px 0 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.75); display: grid; gap: 6px; }
.pcol.best .allow-list, .pcol.current .allow-list { background: var(--surface); }
.allow-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.allow-list li b { font-family: var(--display); }
.allow-list li.per { color: var(--muted); font-size: 12.5px; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.pcol .feat { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.pcol .feat li { padding-left: 22px; position: relative; }
.pcol .feat li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pcol .pcur { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--teal-ink); }
.pcol .pcur svg { width: 16px; height: 16px; }
.pcol > .btn { margin-top: auto; align-self: flex-start; }
.plans-note { margin: 16px 0 0; font-size: 14.5px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pack { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); transition: box-shadow .2s; }
.pack:hover { box-shadow: var(--shadow); }
.pack .mi { width: 42px; height: 42px; border-radius: 13px; }
.pack .mi svg { width: 20px; height: 20px; }
.pk-q { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.pk-q b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.pk-q span { color: var(--muted); font-size: 14px; }
.demo-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; padding: 36px clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: radial-gradient(500px 300px at 90% 10%, rgba(123, 63, 228, .14), transparent), radial-gradient(500px 300px at 10% 100%, rgba(18, 184, 200, .12), transparent), var(--surface); }
.demo-card h2 { font-size: clamp(28px, 3vw, 38px); margin: 12px 0 8px; }
.demo-card p { color: var(--ink-3); margin: 0 0 18px; max-width: 640px; }
.demo-card img { width: 100%; max-height: 240px; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) { .demo-card { grid-template-columns: 1fr; } .demo-card img { display: none; } }
.demo-allow { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.demo-allow li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; }
.demo-allow .mi { width: 28px; height: 28px; border-radius: 50%; background: var(--violet-tint); color: var(--violet-ink); }
.demo-allow .mi svg { width: 14px; height: 14px; }
.demo-allow b { font-family: var(--display); font-size: 16px; }
.demo-allow span:last-child { color: var(--ink-3); }
.demo-status { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-sm); }
.demo-status svg { width: 18px; height: 18px; flex: none; }
.demo-status.ok, .demo-status.approved { color: var(--ok); }
.demo-status.declined { color: var(--danger); }
.demo-status.pending { color: var(--violet-ink); }
.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: pulse 1s infinite; flex: none; }

/* admin */
table.users td.acts { white-space: nowrap; text-align: right; }
table.users td.acts .btn + .btn { margin-left: 6px; }
table.users td .ref { display: block; font-size: 12.5px; margin-top: 2px; }
table.users td.note-cell { max-width: 280px; font-size: 14px; color: var(--ink-3); white-space: pre-line; }
table.users .btn.small svg { width: 16px; height: 16px; }
.adm-usage { display: grid; gap: 8px; margin-top: 18px; }
.au-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); font-size: 14.5px; }
.au-row .xtra { color: var(--muted); }
.au-row .xtra b { color: var(--ink); }
.au-grant { display: grid; grid-template-columns: 1.4fr .7fr auto; gap: 10px; margin-top: 18px; }
.au-hint { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 560px) { .au-row { grid-template-columns: 1fr 1fr; } .au-row .kcell { grid-column: 1 / -1; } .au-grant { grid-template-columns: 1fr 1fr; } .au-grant .btn { grid-column: 1 / -1; } }
.cost-total { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); margin-bottom: 14px; }
.cost-total span { font-weight: 600; color: var(--ink-3); }
.cost-total b { font-family: var(--display); font-size: 28px; }
table.costs td, table.costs th { white-space: nowrap; }

/* cover pictures on theme and music cards (web/covers; the CSS swatch / tint stays underneath as the fallback) */
.tsw .cov, .tc-art .cov, .tart .cov, .pk-cov .cov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tsw:has(> .cov)::before { display: none; }
.tc-art { overflow: hidden; }
.tc-art .wave, .tc-art .play-btn { position: relative; z-index: 1; }
.tcard .lk { z-index: 2; }
.tc-art:has(> .cov) .wave { color: #fff; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.tcard:has(.play-btn.on) .tc-art .wave { opacity: .9; }
.tcard.locked .tc-art .cov { filter: blur(1.6px) saturate(.85); transform: scale(1.05); }
.tart { position: relative; overflow: hidden; }
.pk-cov { position: relative; flex: none; width: 48px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface); }
.pk-item.locked .pk-cov { opacity: .6; filter: blur(.5px) saturate(.85); }

/* ================================================================ Foramind connection, waiting line, package groups */
.fm-ico { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: -3px; }
.topnav a .fm-ico { opacity: .9; }
.btn .fm-ico { width: 18px; height: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-ctas.center { justify-content: center; }
.empty .hero-ctas { margin-top: 4px; }
.fm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fm-tag .fm-ico { width: 13px; height: 13px; vertical-align: 0; }
.pcard .kicker { flex-wrap: wrap; row-gap: 4px; }
.mini-bar { display: block; width: 120px; height: 5px; border-radius: 3px; background: var(--line-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--spectrum, var(--violet)); transition: width .6s var(--ease); }
.eta-txt { font-weight: 600; color: var(--ink-3) !important; }

/* new-map wizard: estimate line and the Foramind-package note */
.wizard-foot { align-items: center; gap: 12px; }
.est-line { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-3); font-size: 14.5px; font-weight: 600; text-align: center; }
.est-line:empty { display: none; }
.est-line svg { width: 17px; height: 17px; flex: none; color: var(--teal-ink); }
.fm-note { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; background: linear-gradient(110deg, var(--teal-tint), var(--blue-tint)); border-color: transparent; }
.fm-note.soft { background: var(--surface); }
.fm-note h3 { font-size: 22px; margin-bottom: 6px; }
.fm-note p { margin: 0 0 16px; color: var(--ink-3); max-width: 680px; }
.fm-note-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.fm-note-ico .fm-ico { width: 28px; height: 28px; }
@media (max-width: 600px) { .fm-note { flex-direction: column; gap: 12px; } .wizard-foot { flex-wrap: wrap; } .est-line { order: -1; flex: 1 0 100%; justify-content: center; } }

/* progress view: place in line, countdown, "you can leave" */
.wait-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); font-weight: 700; font-size: 15px; }
.wait-row:empty { display: none; }
.wait-row.queue { background: var(--amber-tint); color: var(--amber); }
.wait-row svg { width: 18px; height: 18px; flex: none; }
.leave-note { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink-3); font-size: 14.5px; }
.leave-note svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }
.leave-note span { flex: 1 1 260px; }
.leave-note a { font-weight: 700; white-space: nowrap; }

/* presentation studio: cost line and the build overlay */
.cost-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; max-width: 680px; font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: center; }
.cost-line:empty { display: none; }
.cost-line svg { width: 16px; height: 16px; flex: none; color: var(--violet); }
.cost-line.free svg { color: var(--ok); }
.build-veil > div { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(360px, 80%); }
.build-veil b { font-weight: 600; }
.build-veil .bv-q:empty { display: none; }
.build-veil .bv-q, .build-veil .bv-t { font-size: 14px; opacity: .85; }
.build-veil .pbar { width: 100%; margin: 10px 0 4px; background: rgba(255, 255, 255, .18); }

/* Foramind page */
.fm-h1 { display: flex; align-items: center; gap: 14px; }
.fm-h1 img { width: 44px; height: 44px; flex: none; }
.fm-conn { margin-bottom: 36px; }
.fm-expired { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--warn-tint); color: var(--amber); font-weight: 700; }
.fm-expired svg { width: 20px; height: 20px; flex: none; }
.fm-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-status b { font-size: 17px; }
.fm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); flex: none; }
.fm-dot.off { background: var(--line-2); box-shadow: 0 0 0 4px var(--surface); }
.fm-ways { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 22px; }
@media (max-width: 860px) { .fm-ways { grid-template-columns: 1fr; } }
.fm-way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r-md); background: var(--surface); }
.fm-way.rec { background: #fff; box-shadow: 0 0 0 2px var(--teal), var(--shadow-sm); }
.fm-way h3 { font-size: 21px; }
.fm-way p { margin: 0; }
.fm-steps { margin: 2px 0 4px; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.bm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-btn { cursor: grab; background: var(--ink); }
.bm-btn:active { cursor: grabbing; }
.bm-drag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bm-drag svg { width: 16px; height: 16px; }
.fm-small { font-size: 13.5px; }
.fm-safe { display: flex; align-items: flex-start; gap: 7px; margin: 6px 0 0; font-size: 13.5px; color: var(--teal-ink); }
.fm-safe svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fm-hint.flash { border-radius: 12px; }
.fm-acct { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fm-logo-sm { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); display: grid; place-items: center; flex: none; }
.fm-logo-sm img { width: 32px; height: 32px; }
.fm-who { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-who .fm-status b { font-size: 13px; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.fm-name { font-family: var(--display); font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
.fm-mail:empty { display: none; }
.fm-meta { font-size: 13.5px; }
.fm-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-free { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-ink); font-size: 14.5px; font-weight: 600; }
.fm-free svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.fm-maps { display: grid; gap: 10px; }
.fm-map { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); }
.fm-map-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-tint); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.fm-map-ico svg { width: 22px; height: 22px; }
.fm-map-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fm-map-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-map-t small { color: var(--muted); font-size: 13px; }
.fm-imp { flex: none; }
.fm-map-acts { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .fm-map { flex-wrap: wrap; } .fm-map-t { flex-basis: calc(100% - 60px); } .fm-map-acts { width: 100%; } .fm-map-acts .btn { flex: 1; justify-content: center; } }
.fm-connect-card { max-width: 560px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fm-connect-card h2 { font-size: 28px; }
.fm-connect-card p { margin: 0 0 14px; }
.fm-logo.ok, .fm-logo.bad { color: var(--ok); background: var(--ok-tint); }
.fm-logo.bad { color: var(--amber); background: var(--warn-tint); }
.fm-logo svg { width: 30px; height: 30px; }
.fm-need { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.fm-need li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); font-size: 14.5px; color: var(--ink-3); }
.fm-need b { color: var(--ink); font-size: 15.5px; }

/* packages: two groups as tabs */
.group-tabs { width: fit-content; max-width: 100%; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.group-tabs button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 16px; font-size: 15px; }
.group-tabs button svg { width: 17px; height: 17px; }
.group-lead { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink-3); font-size: 15px; max-width: 860px; }
.group-lead.foramind { background: var(--teal-tint); color: var(--teal-ink); font-weight: 600; }
.group-lead svg, .group-lead .fm-ico { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.plan-chip.plan-spro { background: var(--violet-tint); color: var(--violet-ink); }
.plan-chip.plan-sbusiness { background: #1d1d1f; color: #fff; }
.choice .plan-chip.plan-spro { color: var(--violet-ink); } .choice .plan-chip.plan-sbusiness { color: #fff; }

/* guide: groups, waiting line, Foramind connection */
.g-groups { margin-bottom: 16px; }
.g-groups .card h3 { margin: 12px 0 6px; }
.g-groups .card p { margin: 0; }
.g-groups .fm-group { box-shadow: 0 0 0 2px var(--teal); border-color: transparent; }
.g-wait { margin-top: 16px; }
.g-wait h3 { display: flex; align-items: center; gap: 8px; }
.g-wait h3 svg { width: 20px; height: 20px; color: var(--teal-ink); }
.g-wait p { margin: 8px 0 0; color: var(--ink-3); }
#g-fm .card h3 { margin: 10px 0 8px; }
.fm-cta { background: #fff; }
.dash-hero .hero-ctas img.fm-ico { display: inline-block; width: 18px; max-height: none; mix-blend-mode: normal; }
@media (max-width: 520px) { .group-tabs { width: 100%; flex-wrap: wrap; border-radius: 20px; } .group-tabs button { flex: 1 1 auto; justify-content: center; padding: 8px 12px; font-size: 14px; } }

/* ------------------------------------------------------------------ Foramind sign-in, name step */
.fm-signin-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.fm-signin-badge img { width: 20px; height: 20px; }
.fm-signin-badge svg { width: 18px; height: 18px; }
.fm-register { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-3); display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--muted); font-size: 14.5px; }
.fm-register .btn { width: 100%; justify-content: center; }
.fm-register .btn .fm-ico { width: 18px; height: 18px; }
.auth.welcome { display: grid; place-items: center; min-height: 100vh; grid-template-columns: 1fr; }
.auth.welcome .auth-card { max-width: 460px; }
.auth.welcome .brand { margin-bottom: 22px; }
.welcome-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; }
.welcome-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.wmail { font-size: 13px; margin: 6px 0 0; }
.welcome-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-ink); font-weight: 600; margin-bottom: 18px; }
.welcome-banner svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ packages */
.pkg-note { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 22px; border-color: #f2d7a6; background: #fffaf0; }
.pkg-note h3 { margin: 0 0 6px; }
.pkg-note p { margin: 0 0 14px; color: var(--ink-3); }
.trial-pill.none { background: #fff4e0; color: #8a5300; }
.pcur.pending { background: #fff4e0; color: #8a5300; }
.dlg-allow { margin: 14px 0 0; }

/* ------------------------------------------------------------------ Foramind map quota */
.fm-quota { display: grid; grid-template-columns: auto 1fr minmax(120px, 220px) auto; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; margin: 0 0 22px; }
.fm-quota img { width: 30px; height: 30px; }
.fm-quota .fq-t { display: grid; gap: 2px; font-size: 14px; }
.fm-quota .mbar { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.fm-quota .mbar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.fm-quota.warn .mbar i { background: #e8a33a; }
.fm-quota.full { border-color: #f3c3c3; background: #fff7f7; }
.fm-quota.full .mbar i { background: #d64545; }
#fmq2 .fm-quota { margin: 18px 0 0; }
@media (max-width: 720px) { .fm-quota { grid-template-columns: auto 1fr; } .fm-quota .mbar, .fm-quota .btn { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ folders */
.folder-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 18px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px 7px 11px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s; max-width: 260px; }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.fchip em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 99px; padding: 1px 8px; }
.fchip:hover { border-color: var(--line-2); }
.fchip.on { border-color: var(--accent); background: #f3f8ff; color: var(--ink); }
.fchip.on svg { color: var(--accent); }
.fchip.add { border-style: dashed; color: var(--muted); }
.fchip.over { border-color: var(--accent); background: #e9f2ff; transform: scale(1.04); }
body.dragging-map .fchip[data-drop] { border-style: dashed; border-color: var(--accent); }
.fmenu { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ reference pictures (new map) */
.refs-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-3); }
.refs-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.refs-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.refs-head h3 svg { width: 20px; height: 20px; color: var(--accent); }
.refs-head p { margin: 0; font-size: 14px; max-width: 640px; }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ref-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; }
.ref-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); }
.ref-img img { width: 100%; height: 100%; object-fit: contain; }
.ref-img .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .92); }
.ref-card .field span { font-size: 13px; }
.ref-drop { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px; border: 2px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.ref-drop:hover, .ref-drop.over { border-color: var(--accent); background: #f7faff; }
.ref-drop svg { width: 22px; height: 22px; }
.ref-drop.more { grid-column: auto; flex-direction: column; text-align: center; min-height: 180px; padding: 18px; font-size: 13px; }
.refs-sec.over .ref-card { opacity: .7; }
.autox { margin-top: 6px; }
.autox span { display: inline-flex; align-items: center; gap: 8px; }
.autox .fm-ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ editor: "what should change" */
.revise-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: #f6f9ff; border: 1px solid #dbe7fb; }
.revise-box .field > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.revise-box .field > span svg, #nrevgo svg { width: 17px; height: 17px; }
.revise-hint { font-size: 12.5px; margin: 0; }
.revise-note { margin: 0; font-size: 13px; color: var(--teal-ink); background: var(--teal-tint); border-radius: 10px; padding: 8px 10px; }
.brief-box summary { cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.brief-box[open] summary { margin-bottom: 8px; }
.hidden { display: none !important; }
