/* 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: var(--fs-16)/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; } }

/* ---------------------------------------------------------------- design system tokens (designs/design-system/assets/ds.css)
   spacing: multiples of 4 · type: 9 sizes, no half pixels · radii: 5 values · shadows: 3 levels + one focus ring.
   The older names (--r-sm/md/lg/xl, --shadow-sm, --shadow) stay as aliases so every existing rule keeps working. */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --fs-48: 48px; --fs-32: 32px; --fs-24: 24px; --fs-20: 20px; --fs-18: 18px; --fs-16: 16px; --fs-14: 14px; --fs-13: 13px; --fs-12: 12px;
  --r-8: 8px; --r-12: 12px; --r-18: 18px; --r-28: 28px; --r-pill: 999px;
  --r-sm: var(--r-12); --r-md: var(--r-18); --r-lg: var(--r-28); --r-xl: var(--r-28);
  --sh-1: 0 1px 2px rgba(20, 22, 58, .06);
  --sh-2: 0 1px 2px rgba(20, 22, 58, .05), 0 12px 32px rgba(20, 22, 58, .08);
  --sh-3: 0 2px 6px rgba(20, 22, 58, .08), 0 24px 60px rgba(20, 22, 58, .18);
  --focus: 0 0 0 2px #fff, 0 0 0 4px #0a6cf0;
  --shadow-sm: var(--sh-1); --shadow: var(--sh-2);
  --faint: #8a8a96; --page: #fbfbfd; --line-3: #ececf1;
  --ok: #18753f; --ok-tint: #e5f5ec; --ok-line: #bfe3cd;
  --warn: #b45309; --warn-ink: #6b4300; --warn-tint: #fff4dc; --warn-line: #f2d999;
  --danger: #c2352b; --danger-tint: #fdecea; --danger-line: #f3c3be;
  --info: #0752b8; --info-tint: #e6f0fe; --info-line: #c6dafc;
}

/* ---------------------------------------------------------------- buttons, fields, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); border: 0; border-radius: var(--r-pill); min-height: 42px; padding: var(--s-2) 20px; font-weight: 600; font-size: var(--fs-14); line-height: 1.2; 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 { background: var(--line-3); color: var(--faint); box-shadow: none; transform: none; filter: none; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.soft { background: var(--blue-tint); color: var(--accent-deep); }
.btn.soft:hover { box-shadow: none; filter: brightness(.97); }
.btn.ghost { background: #fff; 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); background: var(--surface); transform: none; }
.btn.ghost:active { background: var(--line-3); }
.btn.ghost:disabled { background: var(--surface); color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--line); }
/* tertiary: a text button (Ayrıntılar, Haritaya git, Tümünü göster) */
.btn.text { background: transparent; color: var(--accent-deep); padding-left: var(--s-3); padding-right: var(--s-3); box-shadow: none; }
.btn.text:hover { background: var(--blue-tint); box-shadow: none; transform: none; }
.btn.text:disabled { background: transparent; color: var(--faint); }
.btn.ghost:focus-visible, .btn.text:focus-visible, .btn.danger:focus-visible { box-shadow: var(--focus); }
.btn.dark { background: var(--ink); }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: var(--fs-13); }
.btn.small svg { width: 16px; height: 16px; }
.btn.danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger-line); }
.btn.danger:hover { background: var(--danger-tint); box-shadow: inset 0 0 0 1.5px var(--danger-line); transform: none; }
/* disabled with a reason: the reason sits right under the button */
.btn-why { display: block; margin-top: 6px; font-size: var(--fs-13); color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-12); 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: var(--fs-13); font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); 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: var(--s-2); }
.field > span { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r-12); padding: 10px 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: var(--fs-16); }
.input:hover { border-color: #b9b9c3; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .14); }
.input::placeholder { color: var(--faint); }
.input.is-error, .input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 53, 43, .12); }
.input:disabled { background: var(--surface); color: var(--faint); border-color: var(--line); }
.help { font-size: var(--fs-13); color: var(--muted); line-height: 1.45; }
.help.err { color: var(--danger); min-height: 0; display: flex; gap: 6px; align-items: center; }
textarea.input { resize: vertical; min-height: 84px; }
.err { color: var(--danger); font-size: var(--fs-14); min-height: 20px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch i { width: 40px; height: 24px; border-radius: var(--r-pill); 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(16px); }
.switch input:focus-visible + i { box-shadow: var(--focus); }
.switch input:disabled + i { opacity: .5; }
/* chips (status only), count badges, callouts, module tiles: designs/design-system "Bileşenler" */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 600 var(--fs-13)/1.2 var(--body); background: var(--surface); color: var(--ink-3); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip.ok { background: var(--ok-tint); color: var(--ok); } .chip.warn { background: var(--warn-tint); color: var(--warn-ink); }
.chip.danger { background: var(--danger-tint); color: var(--danger); } .chip.info { background: var(--info-tint); color: var(--info); }
.chip.violet { background: var(--violet-tint); color: var(--violet-ink); } .chip.line { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill); background: var(--surface); font: 700 var(--fs-13)/1 var(--body); color: var(--ink-3); vertical-align: middle; }
.callout { display: flex; gap: var(--s-3); padding: 14px var(--s-4); border-radius: var(--r-12); border: 1px solid; font-size: var(--fs-14); line-height: 1.5; }
.callout > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.callout b { font-weight: 700; }
.callout.info { background: var(--info-tint); border-color: var(--info-line); color: #0b3d8a; } .callout.info > svg { color: var(--info); }
.callout.warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); } .callout.warn > svg { color: var(--warn); }
.callout.danger { background: var(--danger-tint); border-color: var(--danger-line); color: #8e2219; } .callout.danger > svg { color: var(--danger); }
.callout.ok { background: var(--ok-tint); border-color: var(--ok-line); color: #15603a; } .callout.ok > svg { color: var(--ok); }
.callout.neutral { background: var(--surface); border-color: var(--line); color: var(--ink-2); } .callout.neutral > svg { color: var(--muted); }
.tile { width: 40px; height: 40px; border-radius: var(--r-12); display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--accent-deep); }
.tile svg { width: 20px; height: 20px; }
.tile.violet { background: var(--violet-tint); color: var(--violet-ink); } .tile.gold { background: var(--warn-tint); color: var(--warn-ink); } .tile.neutral { background: var(--surface); color: var(--ink-3); }

/* ---------------------------------------------------------------- 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: var(--fs-14); padding: 3px var(--s-3); border-radius: var(--r-pill); 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: var(--fs-20); color: var(--ink-3); max-width: 560px; margin: var(--s-5) 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: var(--s-5); }
.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: var(--s-6) var(--s-6); box-shadow: var(--shadow); }
.auth-card h2 { font-size: var(--fs-32); }
.auth-card .sub { color: var(--muted); margin: 6px 0 0; }
.auth-card form { display: grid; gap: 16px; margin-top: var(--s-5); }
.auth-card .btn { width: 100%; padding: 14px; font-size: var(--fs-16); }
.auth-card .switch-line { margin-top: 18px; color: var(--muted); font-size: var(--fs-16); text-align: center; }
.auth-card .switch-line a { font-weight: 600; cursor: pointer; }
.lang-pick { display: flex; gap: 6px; justify-content: center; margin-top: var(--s-5); }
.lang-pick button { border: 0; background: transparent; border-radius: var(--r-pill); padding: var(--s-1) 12px; font-size: var(--fs-13); 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: var(--r-pill); color: var(--ink-2); font-weight: 500; font-size: var(--fs-14); }
.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: var(--fs-14); line-height: 1.35; }
.menu-list .who b { display: block; font-size: var(--fs-16); }
.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: var(--r-12); color: var(--ink); background: none; border: 0; font-size: var(--fs-14); }
.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: var(--s-6); 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: var(--fs-18); }
.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: var(--fs-24); 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: var(--fs-18); 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: var(--fs-32); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px var(--s-5); }
.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: var(--fs-13); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pcard .t { font-family: var(--display); font-size: var(--fs-18); 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: var(--fs-13); font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); 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.deck { background: var(--violet-tint); color: var(--violet-ink); }
.pcard .kicker .kmeta { display: inline-flex; gap: 8px; white-space: nowrap; }
.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: var(--fs-32); margin-bottom: 8px; }
.empty p { color: var(--ink-3); max-width: 460px; margin: 0 auto 24px; font-size: var(--fs-16); }
.working-art { display: grid; place-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-13); }

/* ---------------------------------------------------------------- wizard */
.seg { display: inline-flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--surface); margin-bottom: var(--s-5); flex-wrap: wrap; }
.seg div { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) 18px var(--s-2) 10px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-3); font-size: var(--fs-14); }
.seg div b { width: 26px; height: 26px; border-radius: var(--r-8); display: grid; place-items: center; background: #fff; font-size: var(--fs-13); 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: var(--r-18); 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: var(--fs-20); font-weight: 600; }
.files { display: grid; gap: 8px; margin-top: 16px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: var(--s-3) 14px; border-radius: var(--r-12); background: var(--surface); }
.file-row .ext { font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-8); 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: var(--s-4) 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: var(--fs-16); font-weight: 600; }
.choice span { display: block; font-size: var(--fs-14); color: var(--muted); margin-top: 3px; }
.hier { display: grid; gap: var(--s-2); padding: 20px var(--s-5); border-radius: var(--r-md); background: var(--surface); color: #1F3B3A; }
.hier .l0 { font-weight: 700; font-size: var(--fs-20); text-transform: uppercase; }
.hier .l1 { font-weight: 700; font-size: var(--fs-18); padding-left: 14px; }
.hier .l2 { font-size: var(--fs-16); padding-left: 28px; }
.hier .l3 { font-style: italic; font-size: var(--fs-16); padding-left: 42px; }
.hier .l4 { font-style: italic; text-decoration: underline; font-size: var(--fs-16); padding-left: 56px; text-transform: lowercase; }
.wizard-foot { display: flex; justify-content: space-between; margin-top: var(--s-5); }

/* ---------------------------------------------------------------- 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: var(--r-pill); }
.tabs a { padding: var(--s-2) 18px; border-radius: var(--r-pill); color: var(--ink-3); font-weight: 600; font-size: var(--fs-14); }
.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); }
/* the editor's quiet Foramind sync status ("Foramind ile eşitlendi · az önce") */
.fm-sync { font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fm-sync:empty { display: none; }
.fm-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fa66b; flex: none; }
.fm-sync.fresh::before { background: #2f7de1; }
.fm-sync.warn::before { background: #d08a1e; }
.fm-pull { white-space: nowrap; }
.fm-pull svg { width: 15px; height: 15px; }
.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: var(--r-12); }
.canvas .node .badge { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-pill); background: var(--cta); color: #fff; font-size: var(--fs-13); 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: var(--r-pill); background: #fff; border: 1px solid var(--line-3); box-shadow: var(--shadow); }
.canvas-tools .icon-btn { border-radius: var(--r-pill); }
.canvas-tools .ct-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); flex: none; }
.zoom-label { align-self: center; font-size: var(--fs-13); 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: var(--fs-12); font-weight: 700; padding: 3px 6px; border-radius: var(--r-pill);
  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: var(--ok); }
.inspector .pic-option.chosen span { background: var(--ok); }
.inspector h4 { font-family: var(--body); margin: 0; font-size: var(--fs-13); 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: var(--fs-14); }
.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: var(--s-6); box-shadow: var(--shadow); }
.progress-card h2 { font-size: var(--fs-32); letter-spacing: -.03em; }
.pbar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; margin: var(--s-5) 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: var(--fs-14); font-weight: 600; text-align: center; padding: 10px; border-radius: var(--r-pill); 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: var(--r-12); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(8px); } }
.timings { display: flex; gap: 18px; font-size: var(--fs-14); 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
   Layout A ("yüzen panel"): the tab sits in a centred container (up to 1560px, 24px gutters) on the page
   background; the settings are a rounded white card whose header (Basit / Gelişmiş) and foot note stay put
   while its body scrolls by itself; the preview fills the rest with a heading and summary tags. */
/* Compact on every screen: the settings column and the preview sit side by side with one fixed gap, and the
   container is only as wide as the preview that fits the window's height needs (the 16:9 frame plus ~190px of
   heading, buttons and lines under it), so a short or narrow window shrinks the whole group around the middle
   instead of leaving an empty band between the panel and a height-capped preview. .studio is the size container
   (cqw / cqh = the tab's own area under the top bar). */
.studio { flex: 1; display: flex; min-width: 0; min-height: 0; background: var(--surface); container-type: size; }
.studio-wrap { --st-side: clamp(320px, 27cqw, 400px); --st-gap: 28px; --st-pad: 24px; --st-chrome: 190px;
  flex: 1; width: 100%; max-width: min(1560px, max(820px, calc(var(--st-pad) * 2 + var(--st-side) + var(--st-gap) + (100cqh - var(--st-pad) * 2 - var(--st-chrome)) * 16 / 9)));
  margin: 0 auto; padding: var(--st-pad); display: grid; grid-template-columns: var(--st-side) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--st-gap); min-width: 0; min-height: 0; }
.studio-side { background: #fff; display: flex; flex-direction: column; min-height: 0; }
.studio-card { border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.sc-head { flex: none; display: grid; gap: 10px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line-3); }
.sc-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-20); }
.sc-title svg { width: 20px; height: 20px; flex: none; color: var(--violet); }
.sc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.studio-side h4 { font-family: var(--body); margin: 0 0 12px; font-size: var(--fs-13); 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: var(--s-2) 12px; font-size: var(--fs-14); font-weight: 600; }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .12); }
/* The studio fits the window: the settings column scrolls by itself, and the preview shrinks (16:9) so the
   create button, the units chip and the cost / unit lines under it always stay on screen. */
.studio-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 0; container-type: size; }
/* on a short window the column is about as wide as the 16:9 frame that fits (its height less ~180px of heading,
   buttons and lines), so the left-aligned buttons and lines start under the frame's left edge */
.stage-col { width: 100%; max-width: min(1280px, calc((100cqh - var(--st-chrome, 190px)) * 16 / 9)); max-height: 100%; min-height: 0; display: flex; flex-direction: column; container-type: inline-size; }
/* the preview's heading and its summary tags (type · theme · sound) */
.stage-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stage-bar h3 { margin: 0; font-size: var(--fs-24); }
.stage-tags { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.stage-tags .tag { max-width: 240px; }
.stage-tags .tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-tags .tag svg { width: 14px; height: 14px; flex: none; }
/* the preview's box: as tall as a full-width 16:9 frame, less when the window is short */
.stage-fit { flex: 0 1 auto; height: calc(100cqw * 9 / 16); min-height: 0; container-type: size; display: grid; place-items: center start; }
.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: var(--s-6); 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: var(--fs-32); margin-bottom: 10px; }
.stage-fit > .frame-wrap { width: min(100cqw, 100cqh * 16 / 9); }
/* "Tam ekran aç": the deck full screen in this tab, or (iPhone, or a browser that refuses) over the whole visible
   window: --pf-h is the window's live height (app.js), the notch / home-bar areas stay black around the deck, the
   page under it is locked (html.pf-lock) and a close button sits in the corner */
.frame-wrap:fullscreen, .stage-fit > .frame-wrap.pseudo-full { max-width: none; border-radius: 0; box-shadow: none; aspect-ratio: auto; background: #000; }
.frame-wrap:-webkit-full-screen { max-width: none; width: 100%; height: 100%; border-radius: 0; box-shadow: none; aspect-ratio: auto; background: #000; }
.stage-fit > .frame-wrap.pseudo-full { position: fixed; top: 0; left: 0; right: 0; bottom: auto; z-index: 1050; width: 100%; height: 100vh; height: 100dvh; height: var(--pf-h, 100dvh); max-height: none; margin: 0; box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); overscroll-behavior: none; touch-action: none; }
.frame-wrap:fullscreen #deck, .frame-wrap.pseudo-full #deck { width: 100%; height: 100%; }
.frame-wrap:-webkit-full-screen #deck { width: 100%; height: 100%; }
html.pf-lock, html.pf-lock body { overflow: hidden; overscroll-behavior: none; }
html.pf-lock .studio { overflow: hidden; }
/* a size container may hold a fixed box inside it in some browsers: none while the deck covers the window */
html.pf-lock .studio, html.pf-lock .studio-stage, html.pf-lock .stage-col, html.pf-lock .stage-fit { container-type: normal; contain: none; }
html.pf-lock .sa-main { visibility: hidden; }
/* nothing sticky of the tab (the preview column on a phone's side, the settings header) may rise above the deck */
html.pf-lock .studio-stage, html.pf-lock .sc-head { position: static; z-index: auto; }
.pf-close, .pf-hint { display: none; }
.frame-wrap.pseudo-full .pf-close, .frame-wrap.is-full .pf-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 5;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px 0 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill);
  background: rgba(14, 16, 40, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 var(--fs-14)/1 var(--body); cursor: pointer; opacity: .85; transition: opacity .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.pf-close svg { width: 18px; height: 18px; flex: none; }
.frame-wrap .pf-close:hover, .frame-wrap .pf-close:focus-visible { opacity: 1; background: rgba(14, 16, 40, .9); }
.frame-wrap .pf-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* a phone held upright: "turn it sideways" for a few seconds under the deck (the 16:9 deck has black bands there) */
@media (orientation: portrait) and (max-width: 600px) {
  .frame-wrap.pseudo-full .pf-hint.show, .frame-wrap.is-full .pf-hint.show { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 4; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--r-pill); background: rgba(14, 16, 40, .72); color: #fff;
    font-size: var(--fs-14); font-weight: 600; line-height: 1.3; pointer-events: none; animation: pf-hint 5s ease forwards; }
  .pf-hint svg { width: 22px; height: 22px; flex: none; }
}
@keyframes pf-hint { 0% { opacity: 0; } 8%, 82% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 600px), (max-height: 500px) {
  .frame-wrap.pseudo-full .pf-close, .frame-wrap.is-full .pf-close { width: 44px; height: 44px; padding: 0; }
  .frame-wrap .pf-close span { display: none; }
}
/* a small preview: the placeholder and the build overlay get smaller too */
@container (max-height: 340px) {
	.stage-fit .frame-empty { padding: 14px; font-size: var(--fs-14); }
	.stage-fit .frame-empty img { width: 40px; margin-bottom: 6px; }
	.stage-fit .frame-empty h3 { font-size: var(--fs-24); margin-bottom: 4px; }
	.stage-fit .frame-empty p { margin: 0; }
	.stage-fit .busy-veil { font-size: var(--fs-14); }
	.stage-fit .busy-veil img { width: 38px; margin-bottom: 6px; }
	.stage-fit .build-veil .pbar { margin: 6px 0 2px; }
	.stage-fit .build-veil .btn.danger-ghost { margin-top: 8px; }
}
@container (max-height: 240px) { .stage-fit .build-veil .bv-leave { display: none; } }
.stage-actions { display: flex; align-items: center; gap: 10px 12px; margin-top: 18px; justify-content: flex-start; flex-wrap: wrap; flex: none; }
/* one meta line beside the button: "✓ Ücretsiz (metin yeniden yazılmıyor) · yaklaşık [⏱ ~5 sn]" */
.stage-actions .cost-line { margin: 0; max-width: none; justify-content: flex-start; text-align: left; flex-wrap: wrap; gap: 4px 6px; font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.cost-line .cl-cost { color: var(--ink); font-weight: 700; }
.cost-line .cl-dot { color: var(--line); font-weight: 700; }
.cost-line .cl-eta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cost-line .cl-word:empty { display: none; }
.cost-line .cl-t { display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--s-2) 2px var(--s-2); border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-line .cl-t svg { width: 13px; height: 13px; color: var(--accent-deep); }
/* the units chip and "Ne zaman hak kullanılır?" sit together on their own line, under the preview's left edge */
.sa-units { flex-basis: 100%; display: inline-flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.unit-help { position: relative; }
.unit-help > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border-radius: var(--r-8); color: var(--accent-deep); font-size: var(--fs-14); font-weight: 600; cursor: pointer; white-space: nowrap; }
.unit-help > summary::-webkit-details-marker { display: none; }
.unit-help > summary svg { width: 16px; height: 16px; flex: none; }
.unit-help > summary:hover span { text-decoration: underline; }
.unit-help > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.uh-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-3); box-shadow: var(--shadow-lg, 0 18px 50px rgba(20, 22, 58, .18)); font-size: var(--fs-13); line-height: 1.45; color: var(--ink-3); }
.uh-pop p { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.uh-pop svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ok); }
.uh-pop .uh-paid svg { color: var(--violet); }
.uh-pop b { color: var(--ink); }
.busy-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 22, 58, .78); color: #fff; font-size: var(--fs-16); text-align: center; backdrop-filter: blur(4px); }
.busy-veil img { width: 54px; animation: spinslow 1.4s var(--ease) infinite; margin-bottom: 14px; }
/* the create button, "Tam ekran aç" and the cost line: beside each other under the preview on a wide screen */
.sa-main { display: contents; }
/* phones and tablets (PRESMOB): the tab scrolls as one page (no box scrolling inside another): the preview first
   at the full width (16:9), its units line, then the settings card as a plain stacked list whose Basit / Gelişmiş
   header stays at the top while it scrolls; "Sunumu güncelle" + "Tam ekran aç" + the cost line in a bar fixed to
   the bottom of the screen (clear of the home bar), so they are always one tap away */
@media (max-width: 960px) {
	.studio-wrap { display: flex; flex-direction: column; gap: 14px; max-width: none; margin: 0; min-height: auto;
		padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(var(--studio-bar-h, 0px) + 20px) max(12px, env(safe-area-inset-left, 0px)); }
	.studio { display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
	.studio-stage { order: -1; container-type: normal; display: block; }
	.stage-col { max-width: none; max-height: none; }
	.stage-bar { margin-bottom: 10px; }
	.stage-bar h3 { font-size: var(--fs-18); }
	.stage-tags .tag { font-size: var(--fs-12); padding: 3px 10px; }
	.stage-fit { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.stage-fit > .frame-wrap:not(.pseudo-full) { border-radius: var(--r-md); box-shadow: 0 14px 36px rgba(20, 22, 58, .2); }
	.studio-side { min-height: auto; }
	.studio-card { border-radius: var(--r-18); overflow: hidden; overflow: clip; }
	.sc-head { position: sticky; top: 0; z-index: 4; padding: 12px 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.sc-title { display: none; }
	.sc-body { flex: none; overflow: visible; padding: 14px; gap: 14px; }
	.stage-actions { margin-top: 10px; gap: 8px 12px; }
	.stage-actions .sa-main { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px;
		padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
		background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--line-3); box-shadow: 0 -10px 30px rgba(20, 22, 58, .08); }
	.sa-main .cost-line { grid-column: 1 / -1; grid-row: 1; justify-content: center; text-align: center; font-size: var(--fs-13); }
	.sa-main .btn { grid-row: 2; min-height: 48px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sa-main .btn svg { flex: none; }
	.sa-main #pbuild { grid-column: 1; }
	.sa-main #popen { grid-column: 2; padding: 0 18px; }
	.sa-main:has(#popen.hidden) #pbuild { grid-column: 1 / -1; }
	body:has(.studio) { --toast-y: calc(var(--studio-bar-h, 80px) + 14px); }
}
/* a phone: the mode hint is on the buttons' titles; Basit / Gelişmiş is a full-width switch; the units help opens
   under its line at the full width (never past the screen's edge) */
@media (max-width: 600px) {
	.sc-head .smode-hint { display: none; }
	.sc-head { padding: 10px 12px; }
	.smode-bar .mode-tog { display: flex; width: 100%; }
	.smode-bar .mode-tog button { flex: 1; }
	.cost-line .cl-why { display: none; }
	.sa-units { position: relative; margin-left: 0; }
	.sa-units .unit-help { position: static; }
	.uh-pop { left: 0; right: 0; bottom: auto; top: calc(100% + 6px); width: auto; font-size: var(--fs-14); }
	.stage-fit .frame-empty { padding: 14px; font-size: var(--fs-14); }
	.stage-fit .frame-empty img { width: 40px; margin-bottom: 6px; }
	.stage-fit .frame-empty h3 { font-size: var(--fs-20); margin-bottom: 4px; }
	.stage-fit .frame-empty p { margin: 0; }
}
/* a phone on its side: the preview stays in view on the left (it sticks while the settings on the right scroll),
   sized so it fits under the top bar and above the action bar, which is one row here */
@media (max-width: 960px) and (max-height: 560px) and (orientation: landscape) {
	.studio-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); grid-template-rows: auto; align-items: start; max-width: none; gap: 14px; }
	.studio-stage { position: sticky; top: 0; z-index: 2; }
	.stage-bar { display: none; }
	.stage-fit { width: min(100%, calc((100dvh - 64px - var(--studio-bar-h, 56px) - 74px) * 16 / 9)); }
	.stage-actions { margin-top: 8px; }
	.sa-units { flex-wrap: nowrap; }
	.sa-units .units-chip { white-space: nowrap; }
	.stage-actions .sa-main { grid-template-columns: minmax(0, 1fr) auto auto; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
	.sa-main .cost-line { grid-column: 1; grid-row: 1; justify-content: flex-start; text-align: left; }
	.sa-main .btn { grid-row: 1; min-height: 44px; }
	.sa-main #pbuild { grid-column: 2; }
	.sa-main #popen { grid-column: 3; }
	.sa-main:has(#popen.hidden) #pbuild { grid-column: 2 / -1; }
	.sa-units { position: relative; }
	.sa-units .unit-help { position: static; }
	.uh-pop { left: 0; right: auto; top: auto; bottom: calc(100% + 6px); width: min(340px, 100%); }
}
/* touch screens: every control in the tab is at least 44px tall */
@media (pointer: coarse) {
	.studio .btn, .studio .mode-tog button { min-height: 44px; }
	.unit-help > summary { min-height: 44px; }
}
/* the settings column: a simple / advanced switch; simple shows the basics, advanced every option in accordions */
.studio-side[data-mode="simple"] .adv-only, .studio-side[data-mode="advanced"] .simple-only { display: none; }
.smode-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.smode-bar .mode-tog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.smode-hint { flex: 1 1 140px; font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.studio-side .switch input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.studio-side .switch { position: relative; }
.studio-side .switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
/* simple: three big type cards, a short theme row, one sound switch and a summary line */
.type-list.big .choice.type { padding: 16px; gap: 14px; align-items: center; }
.type-list.big .choice.type .ty { width: 46px; height: 46px; border-radius: var(--r-12); }
.type-list.big .choice.type .ty svg { width: 23px; height: 23px; }
.type-list.big .choice.type b { font-size: var(--fs-16); }
.theme-grid.mini { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-grid.mini .tsw { height: 48px; }
.theme-grid.mini .theme-card b { padding: var(--s-2) var(--s-2); font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-sec .lib-btn { width: 100%; margin-top: 10px; justify-content: center; }
.s-sound { align-items: flex-start; }
.s-sound > span { display: flex; flex-direction: column; gap: 2px; }
.s-sound b { font-size: var(--fs-16); font-weight: 600; }
.s-sound small { font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.s-sum { font-size: var(--fs-13); }
.s-sum.changed { background: var(--blue-tint); color: var(--ink-2); }
/* simple: the three sections are numbered steps (from layout D) with a ✓ once they have a choice; no gating */
.step-h { display: flex; align-items: center; gap: 10px; }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 var(--fs-13) var(--display); letter-spacing: 0; background: var(--blue-tint); color: var(--accent-deep); }
.s-step.done .step-n { background: var(--cta); color: #fff; }
.step-t { flex: 1; min-width: 0; }
.step-ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-tint); color: var(--ok); }
.step-ok[hidden] { display: none; }
.step-ok svg { width: 13px; height: 13px; stroke-width: 3; }
/* advanced: one accordion per group; the header names the group, a line of help and how many options are locked */
.sgrp { border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; flex: none; }
/* .is-open is the accordion's state (set at the click, before the height animation; [open] stays until it ends) */
.sgrp.is-open { box-shadow: var(--shadow-sm); }
.sgrp > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: var(--s-3) 14px; cursor: pointer; border-radius: var(--r-md); }
.sgrp > summary::-webkit-details-marker { display: none; }
.sgrp > summary:hover { background: var(--surface); }
.sgrp > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sg-ico { width: 34px; height: 34px; border-radius: var(--r-12); display: grid; place-items: center; flex: none; background: var(--surface); color: var(--ink-2); }
.sgrp.is-open .sg-ico { background: var(--blue-tint); color: var(--accent-deep); }
.sg-ico svg { width: 18px; height: 18px; }
.sg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sg-t b { font-size: var(--fs-16); font-weight: 700; color: var(--ink); }
.sg-t small { font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.sg-lock { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: var(--fs-12); font-weight: 700; color: var(--violet-ink); background: var(--violet-tint); padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.sg-lock svg { width: 12px; height: 12px; }
.sg-chev { display: grid; place-items: center; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.sg-chev svg { width: 16px; height: 16px; }
.sgrp.is-open .sg-chev { transform: rotate(180deg); }
.sc-body { overflow-anchor: none; }   /* the accordion holds the clicked header itself (openGroup) */
.sg-body { display: flex; flex-direction: column; gap: 20px; padding: 16px 14px; border-top: 1px solid var(--line-3); }
.sg-body h4 { font-size: var(--fs-12); }
.sg-body .switch { font-size: var(--fs-14); }
/* "free to change / uses a unit": said once, at the foot of the column */
/* ---------------------------------------------------------------- settings / admin */
/* two columns while each card can be at least 400 px wide, otherwise one: the same at every window width and browser
   zoom (no viewport breakpoint). Cards of a row share their height (top edges level), the form's buttons sit at the
   bottom (.set-actions), and the ".card + .card" stack spacing never pushes a grid card down. */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; align-items: stretch; }
.settings-grid > .card { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.settings-grid > .card > h3 { margin-top: 0; }
.settings-grid > .tips-set-card, .settings-grid > .ownai-card { grid-column: 1 / -1; }
.set-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.set-body.mt { margin-top: 14px; }
.set-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
/* a colour: a square swatch (the native picker) + its hex value + ready colours (brand page, admin accent) */
.color-field { display: flex; gap: 10px; align-items: center; }
.cf-swatch { position: relative; flex: none; width: 46px; height: 46px; border-radius: var(--r-12); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); overflow: hidden; cursor: pointer; }
.cf-swatch:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px var(--blue-tint), 0 0 0 4.5px var(--accent); }
.cf-swatch input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.cf-hex { flex: 1; min-width: 0; font: 600 var(--fs-16) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .02em; }
.cf-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.cf-dot { width: 24px; height: 24px; border-radius: var(--r-pill); border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; transition: transform .15s; }
.cf-dot:hover { transform: scale(1.1); }
.cf-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.cf-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-presets small { margin-left: 4px; font-size: var(--fs-13); }
.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: var(--fs-13); }
.logo-preview img { max-width: 170px; max-height: 70px; object-fit: contain; }
table.users { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
table.users th, table.users td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-3); }
table.users th { font-size: var(--fs-13); 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: var(--fs-16); }
.kv b { font-weight: 600; color: var(--muted); }

/* the toast (with its icon, .ti below); in a map's project pages it sits above the editor's zoom bar */
#toast { position: fixed; left: 50%; bottom: var(--toast-y, 28px); transform: translate(-50%, 20px); display: flex; align-items: center; gap: 10px; min-height: 44px; padding: var(--s-2) 18px var(--s-2) 10px; max-width: min(480px, calc(100vw - 32px)); background: var(--ink); color: #fff; border-radius: var(--r-pill); font-size: var(--fs-14); line-height: 1.35; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 100; box-shadow: var(--sh-3); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--ink); }

/* ---------------------------------------------------------------- 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: var(--r-18); 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: var(--fs-24); 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: var(--r-12); background: #fff; flex: none; }
.dlg-target b { display: block; font-family: var(--display); font-weight: 600; font-size: var(--fs-18); line-height: 1.25; }
.dlg-target span { color: var(--muted); font-size: var(--fs-14); }
.dlg-warn { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-12); background: var(--danger-tint); color: #8c241c; font-size: var(--fs-14); 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: var(--r-18); 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: var(--s-3); width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-12); color: var(--ink); font-size: var(--fs-14); 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: var(--s-1) 4px; }
.pop kbd { margin-left: auto; font: 600 var(--fs-12) 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: var(--r-12); 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: var(--fs-32); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat > span:last-child { color: var(--muted); font-size: var(--fs-14); }
@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: var(--r-pill); 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: var(--fs-14); }
.search kbd { font: 600 var(--fs-12) var(--body); color: var(--muted); padding: 1px var(--s-2); border-radius: var(--r-8); background: #fff; border: 1px solid var(--line); }
.chips { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); }
.chips button { border: 0; background: transparent; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-14); 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 var(--s-6) 0 14px; border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 600; }
.viewtog { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); }
.viewtog button { width: 34px; height: 34px; border: 0; border-radius: var(--r-pill); 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: var(--r-pill); background: rgba(255, 255, 255, .95); color: var(--violet-ink); font-size: var(--fs-13); 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 var(--s-2); border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .96); color: var(--ink-2); font-size: var(--fs-13); 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: var(--r-12); }
.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: var(--fs-14); 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: var(--fs-24); }
/* 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: var(--r-8); margin-top: 10px; width: 45%; }
.pcard.sk .body i + i { width: 75%; height: 16px; }
@keyframes shimmer { to { background-position: -300% 0; } }

body:has(.proj) { --toast-y: 96px; }
#toast .ti { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); font-size: var(--fs-13); font-weight: 800; }
#toast.bad .ti { background: var(--danger); }

/* presentation type cards */
.choice.type { display: flex; gap: 12px; align-items: flex-start; padding: var(--s-3) 14px; }
.choice.type .ty { width: 38px; height: 38px; border-radius: var(--r-12); 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: var(--r-pill); background: var(--violet-tint); color: var(--violet-ink); font-size: var(--fs-14); font-weight: 600; }
.trial-pill svg { width: 16px; height: 16px; }
.trial-pill b { padding: 4px 10px; border-radius: var(--r-pill); background: #fff; color: var(--violet-ink); font-size: var(--fs-13); }
.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: var(--fs-14); }
.plan-bar svg { width: 18px; height: 18px; }
.plan-bar.full { background: var(--teal-tint); }
.plan-bar.full > span { color: var(--teal-ink); }
/* a paid package: what it opens (no "Yükselt"), then a quiet dashed line only when a higher package adds something */
.plan-bar.mine { background: var(--violet-tint); flex-wrap: wrap; }
.plan-bar.mine small { font-size: var(--fs-13); color: var(--ink-3); font-weight: 600; }
.plan-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -8px; padding: 10px 12px 10px 14px; border: 1px dashed var(--line-2, var(--line)); border-radius: var(--r-md); font-size: var(--fs-13); line-height: 1.4; color: var(--muted); }
.plan-next .btn.small { flex: none; padding: 6px 12px; font-size: var(--fs-13); }
.link { border: 0; background: none; color: var(--accent-deep); font-weight: 700; font-size: var(--fs-14); padding: 4px 6px; border-radius: var(--r-8); }
.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: var(--r-pill); font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; }
.plan-chip.plan-pro { background: var(--cta); color: #fff; }
.plan-chip.plan-business { background: var(--violet-tint); color: var(--violet-ink); }
.plan-chip.plan-trial { background: var(--surface); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* 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: var(--s-3) 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: #fff; color: var(--ink-2); font-weight: 600; font-size: var(--fs-14); }
.more-types em { font-style: normal; font-size: var(--fs-12); padding: 1px 8px; border-radius: var(--r-pill); 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: var(--r-pill); 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: var(--fs-12); font-weight: 700; color: var(--muted); background: var(--surface); padding: 1px 8px; border-radius: var(--r-pill); 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: var(--s-5) var(--s-5); border-bottom: 1px solid var(--line-3); }
.lib-head > div { flex: 1; }
.lib-head h3 { font-size: var(--fs-24); letter-spacing: -.02em; }
.lib-head p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-14); }
.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: var(--s-2) 12px; border: 0; border-radius: var(--r-12); background: none; font-size: var(--fs-14); font-weight: 500; color: var(--ink-2); text-align: left; }
.lib-cats button em { font-style: normal; font-size: var(--fs-12); 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 var(--s-6); }
.lib-grid section + section { margin-top: var(--s-5); }
/* category headings in sentence case: an uppercase transform in Turkish turns "Foramind" into "FORAMİND" */
.lib-grid h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 var(--fs-16) var(--display); letter-spacing: -.01em; color: var(--ink); }
.lib-grid h5 em { font: 700 var(--fs-12) var(--body); font-style: normal; min-width: 22px; padding: 2px var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); text-align: center; letter-spacing: 0; }.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: var(--fs-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .mine { font-size: var(--fs-12); 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 var(--s-5); border-top: 1px solid var(--line-3); background: var(--surface); color: var(--ink-3); font-size: var(--fs-14); }
.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: var(--r-12); }
.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 var(--violet), var(--shadow); }
.plan.current { background: #fff; border-color: var(--line-2); }
.plan b { font-family: var(--display); font-size: var(--fs-20); }
.plan .pdesc { color: var(--muted); font-size: var(--fs-14); }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-14); }
.plan li { padding-left: var(--s-5); 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: var(--r-pill); background: var(--cta); color: #fff; font-size: var(--fs-12); font-weight: 700; }
.pcur { margin-top: 10px; font-size: var(--fs-13); 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: var(--fs-12); color: inherit; }
.choice .plan-chip.plan-pro { color: #fff; } .choice .plan-chip.plan-business { color: var(--violet-ink); }

/* 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: var(--fs-18); }
.pro-banner span { font-size: var(--fs-14); color: var(--ink-3); }
.pro-dim { opacity: .55; filter: grayscale(.3); }
.page-head h1 .plan-chip { font-size: var(--fs-13); vertical-align: 10px; font-family: var(--body); }
.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: var(--violet-tint); color: var(--violet-ink); }
.plan-chip.plan-demo { background: var(--violet); color: #fff; }

/* 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: var(--s-2); white-space: nowrap; padding: 8px 12px; font-size: var(--fs-14); }
.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; }
/* the Rehber in the header: a round "?" next to "Yeni harita" (phones have it in the bottom tab bar instead) */
.helpbtn { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 700 var(--fs-18)/1 var(--display); text-decoration: none; transition: background .15s, box-shadow .15s, color .15s; }
.helpbtn:hover { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px var(--info-line); }
.helpbtn.on { background: var(--blue-tint); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.helpbtn:focus-visible { outline: none; box-shadow: var(--focus); }
.topbar > .helpbtn + .newbtn { margin-left: -8px; }
@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 > .helpbtn, .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: var(--fs-12); font-weight: 700; color: var(--muted); background: var(--surface); padding: 2px var(--s-2); border-radius: var(--r-pill); }
.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: var(--r-12); }
.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: var(--fs-18); margin: 0 0 24px; max-width: 720px; }
.g-foot { margin: 14px 0 0; font-size: var(--fs-14); }
.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(--warn-tint); color: #9a6400; }
.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, var(--blue-tint) 45%, var(--violet-tint) 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: var(--r-12); background: var(--surface); display: flex; flex-direction: column; }
.quota-box span { font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.quota-box b { font-family: var(--display); font-size: var(--fs-24); }
.fm-hint { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-12); background: var(--blue-tint); color: var(--accent-deep); font-size: var(--fs-14); }

/* 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: var(--r-18); 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, .fm-pull span, .proj-top .save-state, .proj-top .fm-sync, .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: var(--s-2) 12px; }
}

/* new-map wizard */
.choice .unit2 { display: inline-flex; align-items: center; gap: var(--s-1); margin-top: 8px; font-size: var(--fs-12); font-weight: 700; color: var(--violet-ink); background: var(--violet-tint); padding: 2px var(--s-2); border-radius: var(--r-pill); width: fit-content; }
.choice .unit2 svg { width: 13px; height: 13px; }
.units-hint { margin: 12px 0 0; font-size: var(--fs-14); 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: var(--fs-14); }
.picker { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-12); 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: var(--fs-16); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .pv small { font-size: var(--fs-13); 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: var(--fs-13); color: var(--muted); }
.free-note svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
/* competition: setup. The whole tab scrolls as one page (.live-setup is the full-width scroller, so the wheel
   works wherever the mouse is); .live-page is the centred column, stopping at 1320px on wide screens. On top
   the start-screen preview and, beside it, the settings with the Foramind and Tema cards; below the question
   bank and the last games */
.live-setup { flex: 1; min-height: 0; overflow-y: auto; width: 100%; }
.live-page { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px; box-sizing: border-box; }
.live-top { display: grid; grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.live-right, .live-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.live-top .card, .live-main > .card + .card { margin-top: 0; }
.live-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.live-cards > .card, .live-cards > section { min-width: 0; margin: 0; }
.live-cards .live-theme { display: flex; flex-direction: column; justify-content: center; }
.live-start { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.live-opts-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-18); }
.live-opts-head h3 svg { width: 18px; height: 18px; color: var(--muted); }
.live-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding-top: 14px; border-top: 1px solid var(--line-3); }
.live-opts > .field:nth-child(3), .live-opts > .switch, .live-opts > .live-acct { grid-column: 1 / -1; }
.live-acct { display: flex; flex-direction: column; gap: 6px; }
.live-acct .small-note { margin: 0 !important; }
.live-opts .field { gap: 5px; }
.live-opts .field > span { font-size: var(--fs-13); }
.live-opts .chips { flex-wrap: wrap; border-radius: var(--r-12); }
.live-opts .chips button { flex: 1 1 auto; }
.live-opts .switch { font-size: var(--fs-14); }
.live-opts .small-note { margin: -6px 0 0; font-size: var(--fs-13); }
.live-start > .small-note { margin: -6px 0 0; text-align: center; }
/* the HAD! start screen as it looks on Foramind (web/had.css drawStart): a picture of it with the map's settings,
   not the game; only its Start answers, with where the game is started */
.live-pv { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.live-pv .hadpv-head { align-items: center; }
.live-pv .hadpv-head h3 { font-size: 16px; }
.hadpv-badge { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--violet-tint); color: var(--violet-ink); }
.live-pv > .small-note { margin: -4px 0 2px; font-size: var(--fs-13); line-height: 1.45; }
.hadpv { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; color: #fff; overflow: hidden; user-select: none;
  background: radial-gradient(ellipse at 30% 15%, #4b2a8f 0%, #251a5c 45%, #120d2e 100%); box-shadow: 0 14px 34px rgba(18, 13, 46, .28); }
.hadpv-hero { display: flex; align-items: center; gap: 12px; }
.hadpv-logo { width: 64px; height: auto; flex: none; filter: drop-shadow(0 8px 22px rgba(224, 64, 156, .35)); }
.hadpv-map { display: block; font: 700 19px/1.12 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; color: #fff; }
.hadpv-hero p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.hadpv-setup { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px; border-radius: 18px; background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)), rgba(18, 13, 46, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .12); }
.hadpv-field { display: flex; flex-direction: column; gap: 6px; }
.hadpv-field > span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.hadpv-chips { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(8, 5, 26, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hadpv-chips span { flex: 1 1 0; min-width: 0; padding: 7px 4px; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.15; color: rgba(255, 255, 255, .82); overflow-wrap: anywhere; }
.hadpv-chips span.on { color: #2f2200; background: linear-gradient(180deg, #FAD86A, #F5C542); box-shadow: 0 4px 12px rgba(245, 197, 66, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hadpv-chips span.off { opacity: .32; }
.hadpv-note { margin: -6px 0 0; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .55); }
.hadpv-switch { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; }
.hadpv-switch i { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.hadpv-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.hadpv-switch.on i { background: #F5C542; }
.hadpv-switch.on i::after { transform: translateX(14px); }
.hadpv-switch.off { color: rgba(255, 255, 255, .45); }
.hadpv-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 0; border-radius: 16px; font: 700 20px var(--display); letter-spacing: -.01em; color: #fff; cursor: pointer;
  background: linear-gradient(100deg, #7B3FE4 0%, #B03FD0 50%, #E0409C 100%); box-shadow: 0 10px 28px rgba(224, 64, 156, .34), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hadpv-go svg { width: 20px; height: 20px; }
.hadpv-go:focus-visible { outline: 3px solid #F5C542; outline-offset: 3px; }
/* solo play against bots (add-on "rushBots"): the second button of the start screen, as on /had */
.hadpv-solo { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: -4px; border-radius: 14px; font: 700 15px var(--display); color: #fff;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(245, 197, 66, .55); }
.hadpv-msg { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin: 0; padding: 12px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(6, 3, 24, .3); }
.hadpv-msg[hidden] { display: none; }
.hadpv-msg.in { animation: hadpvIn .28s var(--ease) both; }
.hadpv-msg > .fm-ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.hadpv-msg > span { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.4; }
.hadpv-msg small { color: var(--muted); font-size: 12.5px; }
.hadpv-msg .btn { margin-left: 30px; }
@keyframes hadpvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hadpv-msg.in { animation: none; } }
.btn.big { min-height: 52px; padding: var(--s-3) 28px; font-size: var(--fs-16); }
.btn.big svg { width: 18px; height: 18px; }
.live-bank { padding: 20px 22px; }
.live-bank .h4row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-bank h3 { margin: 0; font-size: var(--fs-20); display: flex; align-items: center; gap: 8px; }
.live-bank .lb-count { margin: 0; font-size: var(--fs-13); padding: 2px 9px; }
.live-bank .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.live-bank .lb-sub { margin: 6px 0 0; font-size: var(--fs-13); }
.lb-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.lb-find { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; }
.lb-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 108, 240, .14); }
.lb-find svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.lb-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-14); }
.lb-who button { padding: 6px 12px; font-size: var(--fs-13); }
.lb-none { margin: 8px 0 0; font-size: var(--fs-14); }
.lb-more { align-self: center; margin-top: 4px; }
.lq-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.lq { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--line-3); border-radius: var(--r-12); transition: border-color .15s, background .15s; }
.lq:hover { border-color: var(--line-2); background: #fbfbfd; }
.lq-n { width: 26px; height: 26px; border-radius: var(--r-8); display: grid; place-items: center; font-size: var(--fs-13); font-weight: 700; color: var(--muted); background: var(--surface); }
.lq-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lq-t { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.lq-t b { font-weight: 600; font-size: var(--fs-14); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lq-t .tag { flex: none; font-style: normal; font-size: var(--fs-12); padding: 1px 7px; border-radius: var(--r-pill); background: var(--violet-tint); color: var(--violet-ink); }
.lq-right { display: flex; align-items: center; gap: 4px; font-size: var(--fs-13); color: var(--ok); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-right svg { width: 13px; height: 13px; flex: none; }
.lq-ans { display: flex; gap: 4px; }
.lq-th { width: 40px; height: 40px; padding: 3px; border-radius: var(--r-12); border: 1.5px solid var(--line-3); background: #fff; display: grid; place-items: center; }
.lq-th img { width: 100%; height: 100%; object-fit: contain; }
.lq-th.ok { border-color: var(--ok); background: var(--ok-tint); }
.lq-acts { display: flex; gap: 2px; }
.lq-act { width: 34px; height: 34px; border-radius: var(--r-12); }
.lq-act svg { width: 17px; height: 17px; }
@media (max-width: 1180px) { .lq { grid-template-columns: 28px minmax(0, 1fr) auto; } .lq-ans { grid-column: 2; grid-row: 2; } .lq-acts { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 1240px) { .live-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1040px) { .live-opts { grid-template-columns: minmax(0, 1fr); } .live-opts > * { grid-column: 1 / -1; } }
.lq-node { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; padding: 4px; border-radius: var(--r-12); border: 1.5px solid var(--line-3); background: #fff; }
.lq-node img { width: 56px; height: 56px; object-fit: contain; }
.lq-node em { font-style: normal; font-size: var(--fs-12); color: var(--muted); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-node.ok { border-color: var(--ok); background: var(--ok-tint); }
.lq-node.big { width: 220px; } .lq-node.big img { width: 190px; height: 190px; } .lq-node.big em { font-size: var(--fs-16); }
.lq-acts { display: flex; gap: 10px; }
.link.danger { color: var(--danger); }
.lq-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.lq-pick button { padding: 0; border: 0; background: none; cursor: pointer; }
.lq-pick button .lq-node { width: 100%; }
.lq-pick button.ok .lq-node { border-color: var(--ok); background: var(--ok-tint); box-shadow: 0 0 0 2px var(--ok); }
.lq-pick button.dis .lq-node { border-color: var(--danger); background: var(--danger-tint); }
@media (max-width: 860px) {
  .live-page { padding: 16px; gap: 14px; }
  .live-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .live-right { gap: 14px; }
  .live-cards { gap: 14px; }
  .live-start, .live-bank { padding: 18px; }
}
@media (max-width: 560px) {
  .lq { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .lq-n { display: none; }
  .lq-b { grid-column: 1 / -1; }
  .lq-ans { grid-column: 1; grid-row: 2; }
  .lq-acts { grid-column: 2; grid-row: 2; }
  .live-bank .row-btns { width: 100%; }
  .live-bank .row-btns .btn { flex: 1 1 auto; }
}

/* HAD! question editor: the answers picked on a preview of the map (web/quiz-picker.js; also on /had/{pid}) */
.dlg.qp-dlg { width: min(1240px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: var(--s-5) 24px 20px; }
.dlg.qp-dlg .dlg-ico { display: none; }
.dlg.qp-dlg h3 { font-size: var(--fs-20); }
.dlg.qp-dlg .dlg-actions { margin-top: 14px; }
.qp-form { margin-top: 12px; gap: 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.qp-form .field textarea { resize: none; min-height: 0; font-size: var(--fs-16); }
.qp { display: flex; flex-direction: column; gap: 8px; min-height: 0; color: var(--ink); text-align: left; }
.qp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qp-modes { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-18); background: var(--surface); }
.qp-mode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: var(--r-12); background: transparent; font-weight: 600; font-size: var(--fs-14); color: var(--ink-3); }
.qp-mode i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #b8bcc8; }
.qp-mode i svg { width: 14px; height: 14px; }
.qp-mode em { font-style: normal; font-size: var(--fs-12); font-weight: 700; padding: 1px var(--s-2); border-radius: var(--r-pill); background: rgba(0, 0, 0, .06); color: var(--muted); }
.qp-mode.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 2px var(--c); }
.qp-mode.ok { --c: var(--ok); } .qp-mode.dis { --c: var(--danger); }
.qp-mode.on i { background: var(--c); }
.qp-mode.on em { background: var(--c); color: #fff; }
.qp-suggest { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-weight: 600; font-size: var(--fs-14); color: var(--violet-ink); }
.qp-suggest svg { width: 16px; height: 16px; }
.qp-suggest:hover:not(:disabled) { background: var(--violet-tint); border-color: var(--violet); }
.qp-suggest:disabled { opacity: .45; cursor: default; }
.qp-how { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-12); background: var(--surface); }
.qp-how button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: var(--r-8); background: transparent; font-size: var(--fs-13); font-weight: 600; color: var(--ink-3); }
.qp-how button svg { width: 16px; height: 16px; }
.qp-how button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.qp-hint { margin: 0; font-size: var(--fs-14); color: var(--ink-3); display: flex; align-items: center; gap: 8px; min-height: 20px; }
.qp-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); }
.qp-hint[data-mode="dis"]::before { background: var(--danger); }
.qp-hint.flash { color: #8a5a00; font-weight: 600; }
.qp-hint.flash::before { background: #e0a100; }
.qp-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.qp-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.qp-map { position: relative; flex: 1 1 auto; min-height: 220px; height: clamp(320px, calc(100vh - 380px), 640px); border: 1px solid var(--line-2); border-radius: var(--r-18); overflow: hidden; }
.qp-map[hidden], .qp-list[hidden] { display: none; }
.qp-canvas { position: absolute; inset: 0; }
.qp-canvas.qp-can { cursor: pointer; }
.qp .canvas .node { pointer-events: none; transition: opacity .15s, filter .15s; }
.qp .canvas .node.qp-off { opacity: .32; filter: grayscale(.85); }
.qp .canvas .node.qp-hover:not(.qp-off) { filter: drop-shadow(0 6px 16px rgba(10, 108, 240, .35)); }
/* --k: 1 / the map's zoom (set by the picker), so rings and badges keep their size on screen at any zoom */
.qp .canvas .node.qp-hover:not(.qp-off):not(.qp-ok):not(.qp-dis) { outline: calc(2.5px * var(--k, 1)) dashed rgba(10, 108, 240, .7); outline-offset: calc(4px * var(--k, 1)); border-radius: var(--r-12); }
.qp .canvas .node.qp-ok { outline: calc(4px * var(--k, 1)) solid var(--ok); outline-offset: calc(3px * var(--k, 1)); border-radius: var(--r-12); box-shadow: 0 0 0 calc(11px * var(--k, 1)) rgba(31, 138, 76, .2); }
.qp .canvas .node.qp-dis { outline: calc(4px * var(--k, 1)) solid var(--danger); outline-offset: calc(3px * var(--k, 1)); border-radius: var(--r-12); box-shadow: 0 0 0 calc(11px * var(--k, 1)) rgba(194, 53, 43, .16); }
.qp-mark { position: absolute; top: 0; right: 0; z-index: 2; min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 1px; color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); font: 800 var(--fs-14)/1 var(--display); transform: translate(45%, -45%) scale(var(--k, 1)); }
.qp-mark svg { width: 15px; height: 15px; }
.node.qp-ok .qp-mark { background: var(--ok); }
.node.qp-dis .qp-mark { background: var(--danger); }
.qp-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: var(--r-12); background: #fff; border: 1px solid var(--line-3); box-shadow: var(--shadow); }
.qp-zoom button { width: 34px; height: 34px; border: 0; border-radius: var(--r-8); background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.qp-zoom button:hover { background: var(--surface); }
.qp-zoom svg { width: 18px; height: 18px; }
.qp-legend { position: absolute; left: 10px; bottom: 10px; right: 60px; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.qp-legend span { display: inline-flex; align-items: center; gap: var(--s-1); padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); border: 1px solid var(--line-3); font-size: var(--fs-12); font-weight: 600; color: var(--ink-3); }
.qp-legend svg { width: 13px; height: 13px; }
.qp-legend .ok svg { color: var(--ok); } .qp-legend .dis svg { color: var(--danger); }
.qp-legend .off { font-weight: 500; color: var(--muted); }
.qp-list { flex: 1 1 auto; min-height: 220px; height: clamp(320px, calc(100vh - 380px), 640px); display: flex; flex-direction: column; gap: 10px; }
.qp-find { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-12); background: #fff; }
.qp-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 108, 240, .14); }
.qp-find svg { width: 17px; height: 17px; color: var(--muted); }
.qp-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-16); }
.qp-items { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; align-content: start; padding: 2px; }
.qp-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line-3); border-radius: var(--r-12); background: #fff; text-align: left; font-size: var(--fs-14); color: var(--ink); }
.qp-item img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.qp-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-item i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.qp-item i svg { width: 13px; height: 13px; }
.qp-item:hover { border-color: var(--line-2); background: var(--surface); }
.qp-item.ok { border-color: var(--ok); background: var(--ok-tint); } .qp-item.ok i { background: var(--ok); }
.qp-item.dis { border-color: var(--danger); background: var(--danger-tint); } .qp-item.dis i { background: var(--danger); }
.qp-none { margin: 8px; color: var(--muted); }
.qp-side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.qp-side-t { font-size: var(--fs-13); font-weight: 700; color: var(--ink-2); }
.qp-cards { display: flex; flex-direction: column; gap: 8px; }
.qp-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-12); border: 1.5px solid var(--c); background: var(--t); min-height: 64px; }
.qp-card.ok { --c: var(--ok); --t: var(--ok-tint); } .qp-card.dis { --c: #e6a19b; --t: var(--danger-tint); }
.qp-card.is-empty { --c: var(--line-2); --t: #fff; border-style: dashed; }
.qp-card img { width: 48px; height: 48px; object-fit: contain; flex: none; background: #fff; border-radius: var(--r-8); padding: 2px; }
.qp-ci { position: absolute; left: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--danger); border: 2px solid #fff; }
.qp-card.ok .qp-ci { background: var(--ok); }
.qp-card.is-empty .qp-ci { background: #c2c6d0; }
.qp-ci svg { width: 12px; height: 12px; }
.qp-cl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.qp-cl small { font-size: var(--fs-12); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.qp-cl b { font-size: var(--fs-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qp-card.is-empty .qp-cl b { font-weight: 500; color: var(--muted); }
.qp-card.is-empty .qp-cl { padding-left: 6px; }
.qp-rm { width: 30px; height: 30px; flex: none; border: 0; border-radius: var(--r-8); background: rgba(255, 255, 255, .7); color: var(--ink-3); display: grid; place-items: center; }
.qp-rm:hover { background: #fff; color: var(--danger); }
.qp-rm svg { width: 15px; height: 15px; }
.qp button:focus-visible, .qp input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* on the standalone HAD! page (dark): the picker sits on its own light panel */
.had-panel.wide.had-editor { width: min(1240px, 100%); }
.had-qp { padding: 14px; border-radius: 18px; background: #fff; }
.had-qp .qp-map, .had-qp .qp-list { height: clamp(320px, calc(100vh - 420px), 620px); }
@media (max-width: 860px) { .had-qp { padding: 10px; } .had-qp .qp-map, .had-qp .qp-list { height: clamp(260px, 46vh, 460px); } }
@media (max-width: 860px) {
  .dlg.qp-dlg { padding: 16px; max-height: calc(100dvh - 16px); }
  .qp-main { grid-template-columns: 1fr; }
  .qp-map, .qp-list { height: clamp(260px, 46vh, 460px); }
  .qp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qp-card { min-height: 54px; padding: 6px; gap: 8px; }
  .qp-card img { width: 38px; height: 38px; }
  .qp-cl b { font-size: var(--fs-13); -webkit-line-clamp: 1; }
  .qp-how { margin-left: 0; }
  .qp-legend .off { display: none; }
}
@media (max-width: 560px) {
  .dlg-wrap:has(.qp-dlg) { padding: 8px; }
  .qp-mode { padding: var(--s-2) 10px var(--s-2) 6px; font-size: var(--fs-14); gap: 6px; }
  .qp-how button span { display: none; }
  .qp-suggest { padding: 8px 12px; }
  .qp-bar { gap: 6px; }
  .qp-mark { min-width: 22px; height: 22px; padding: 0 4px; border-width: 2px; font-size: var(--fs-12); }
  .qp-mark svg { width: 11px; height: 11px; }
}
/* competition: the presenter's screen */
.live-stage { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: radial-gradient(ellipse at 30% 20%, #4b2a8f 0%, #251a5c 45%, #120d2e 100%); color: #fff; font-family: var(--body); }
.live-stage h2, .live-stage h3 { color: #fff; }
.live-stage .ls-qhead h2 { color: #1d1d1f; }
.ls-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: rgba(0, 0, 0, .25); }
.ls-top .ls-title { flex: 1; font-family: var(--display); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-pin b { font-size: 20px; letter-spacing: .08em; }
.live-stage .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
/* owner decision: the HAD!/RUSH! game stage and its start-screen preview keep their own button look (not the studio button system) */
.live-stage .btn, .hadpv .btn { min-height: 0; padding: 12px 22px; font-size: 15px; line-height: inherit; }
.live-stage .btn.small, .hadpv .btn.small { min-height: 0; padding: 8px 16px; font-size: 14px; }
.live-stage .btn.big { min-height: 0; padding: 14px 22px; font-size: 16px; }
.live-stage .btn:not(.ghost):disabled, .hadpv .btn:not(.ghost):disabled { background: var(--cta); color: #fff; opacity: .5; cursor: default; }
.live-stage .btn.ghost:disabled { color: #fff; background: rgba(255, 255, 255, .06); opacity: .5; cursor: default; }
.live-stage .btn.ghost:hover { background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
.live-stage .btn.small svg, .hadpv .btn.small svg { width: 18px; height: 18px; }
.ls-top .btn svg { width: 16px; height: 16px; }
.ls-body { flex: 1; min-height: 0; display: flex; }
.ls-lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; align-items: center; }
.ls-join { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ls-join p { margin: 0; opacity: .8; font-size: 18px; }
.ls-url { font-size: clamp(22px, 3vw, 40px); }
.ls-bigpin { font-family: var(--display); font-size: clamp(56px, 9vw, 120px); letter-spacing: .1em; line-height: 1; }
.ls-qr { width: clamp(150px, 18vw, 240px); background: #fff; border-radius: 16px; padding: 10px; margin-top: 10px; }
.ls-players { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.ls-players h3 { margin: 0; font-size: 24px; }
.ls-names { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-height: 45vh; overflow-y: auto; }
.ls-name { padding: 8px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; animation: lsPop .35s cubic-bezier(.3, 1.6, .5, 1); }
.ls-name:hover { background: rgba(226, 27, 60, .55); text-decoration: line-through; }
@keyframes lsPop { from { transform: scale(.4); opacity: 0; } }
.ls-count-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ls-count-in span { font-size: 26px; opacity: .85; }
.ls-count-in b { font-family: var(--display); font-size: 160px; line-height: 1; animation: lsPop .5s; }
.ls-count-in em { font-style: normal; font-size: 22px; opacity: .8; }
.ls-q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; position: relative; }
.ls-qhead { display: flex; align-items: center; gap: 16px; }
.ls-qhead h2 { flex: 1; margin: 0; text-align: center; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; background: #fff; color: #1d1d1f; padding: 12px 18px; border-radius: 14px; }
.ls-n, .ls-ans { font-size: 16px; opacity: .85; white-space: nowrap; }
.ls-timer { width: 70px; height: 70px; border-radius: 50%; background: #7B3FE4; display: grid; place-items: center; font-family: var(--display); font-size: 32px; flex: none; }
.ls-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ls-bar i { display: block; height: 100%; background: #F5C542; transition: width .2s linear; }
.ls-mid { flex: 1; min-height: 34vh; position: relative; display: grid; place-items: center; }
.ls-mid:empty { min-height: 0; }
.ls-map { position: absolute; inset: 0; border-radius: 16px; background: rgba(255, 255, 255, .95); overflow: hidden; }
.canvas .node.pq-target .pq-slot { border-color: #F5C542; background: #FFF6D6; box-shadow: 0 0 0 8px rgba(245, 197, 66, .45); animation: lsPulse 1.2s ease-in-out infinite; }
.canvas .node.pq-target .pq-slot b { color: #D89E00; }
@keyframes lsPulse { 50% { box-shadow: 0 0 0 18px rgba(245, 197, 66, .2); } }
.ls-reveal { color: #1d1d1f; }
.ls-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; background: var(--c); min-height: 84px; transition: opacity .3s, transform .3s; }
.ls-opt .ls-shape { font-size: 30px; width: 34px; text-align: center; }
.ls-opt img { width: 72px; height: 72px; object-fit: contain; background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 4px; }
.ls-opt b { flex: 1; font-size: 20px; }
.ls-opt.wrong { opacity: .35; }
.ls-opt.right { transform: scale(1.02); box-shadow: 0 0 0 5px #fff; }
.ls-cnt { font-style: normal; font-family: var(--display); font-size: 28px; }
.ls-next { position: absolute; right: 20px; bottom: 20px; }
.ls-q .ls-next { position: static; align-self: flex-end; }
.ls-board, .ls-podium { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px; position: relative; }
.ls-board h2, .ls-podium h2 { font-size: 40px; margin: 0; }
.ls-board ol { list-style: none; margin: 0; padding: 0; width: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ls-board li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-size: 22px; animation: lsPop .4s; }
.ls-board li b { flex: 1; }
.ls-board li em { font-style: normal; opacity: .7; font-size: 16px; }
.ls-delta.up { color: #7CE38B; }
.ls-steps { display: flex; align-items: flex-end; gap: 14px; margin-top: 20px; }
.ls-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 180px; animation: lsPop .6s; }
.ls-step b { font-size: 22px; text-align: center; }
.ls-step em { font-style: normal; opacity: .8; }
.ls-block { width: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 48px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #F5C542, #D89E00); color: #3b2a00; }
.ls-step.s1 .ls-block { height: 220px; } .ls-step.s2 .ls-block { height: 160px; background: linear-gradient(180deg, #E6E8EE, #AEB4C2); } .ls-step.s3 .ls-block { height: 120px; background: linear-gradient(180deg, #E8A56A, #B66A2C); }
.ls-rest { columns: 2; gap: 40px; font-size: 18px; opacity: .85; }
.ls-rest em { font-style: normal; opacity: .7; }
@media (max-width: 860px) { .ls-lobby { grid-template-columns: 1fr; } .ls-opt { min-height: 60px; padding: 6px 10px; } .ls-opt img { width: 48px; height: 48px; } .ls-opt b { font-size: 16px; } }
@media (max-width: 520px) { .ls-opts { grid-template-columns: 1fr; } }
/* practice */
.prac-locked { flex: 1; display: grid; place-items: center; padding: 24px; }
.prac-locked .card { max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.prac-locked .mi { width: 52px; height: 52px; border-radius: var(--r-18); display: grid; place-items: center; }
.prac-locked .mi svg { width: 26px; height: 26px; }
/* Pratik / HAD! turned on per map: the activation screen and the "on Foramind" card */
.feat-gate { overflow-y: auto; }
.feat-gate .card { max-width: 520px; gap: 14px; }
.feat-gate .card > p { margin: 0; }
/* design audit 29: one warning before turning Pratik / HAD! on: amber tint and edge, the warning sign and a bold
   lead, then the two facts (the unit, the map lock); the lock's long explanation opens on demand */
.feat-notice { align-self: stretch; text-align: left; padding: 14px 16px 14px 14px; border-radius: var(--r-sm); background: var(--warn-tint); border: 1px solid #f1d49a; border-left: 4px solid var(--amber); color: #5f3c00; }
.fn-lead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-16); }
.fn-lead svg { width: 20px; height: 20px; flex: none; color: var(--amber); }
.fn-lead b { color: var(--warn-ink); }
.fn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fn-list > li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); line-height: 1.45; }
.fn-list > li > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #a86500; }
.fn-list b { font-weight: 700; }
.fn-sub { color: #7a5410; }
.fn-more { margin-top: 2px; }
.fn-more > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font-size: var(--fs-13); font-weight: 700; color: #8a5600; text-decoration: underline; text-underline-offset: 2px; }
.fn-more > summary::-webkit-details-marker { display: none; }
.fn-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.fn-more[open] > summary { margin-bottom: 4px; }
.fn-more > span { display: block; font-size: var(--fs-13); color: #6b4a10; }
.feat-notice.empty .fn-list > li:first-child { color: var(--danger); }
.feat-notice.empty .fn-list > li:first-child svg, .feat-notice.empty .fn-sub { color: var(--danger); }
.feat-gate .feat-fm { align-self: stretch; text-align: left; padding: 12px 14px; border: 1px solid var(--line-3); border-radius: var(--r-sm); }
.feat-gate .feat-fm span { display: flex; flex-direction: column; }
.feat-gate .feat-fm small { font-size: var(--fs-13); font-weight: 400; }
.feat-fmnote { display: flex; gap: 8px; align-items: center; text-align: left; margin: 0; }
.feat-fmnote svg { width: 18px; height: 18px; flex: none; }
/* "Foramind haritasında göster" (Pratik and HAD! tabs): a compact card, never wider than 560px; icon + title +
   one short line, the state and the button on one row (they wrap under the text when the card is narrow) */
.feat-fm-card { flex: none; display: flex; align-items: center; gap: 8px 12px; padding: 12px 14px; flex-wrap: wrap; border-radius: var(--r-md); max-width: 560px; width: 100%; }
.feat-fm-card .mi { width: 36px; height: 36px; border-radius: var(--r-12); background: var(--surface); color: var(--muted); display: grid; place-items: center; flex: none; }
.feat-fm-card .mi.tint-teal { background: var(--teal-tint); color: var(--teal-ink); }
.feat-fm-card .mi svg { width: 18px; height: 18px; }
.feat-fm-card .ff-b { flex: 1 1 180px; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.feat-fm-card .ff-b b { font-size: var(--fs-14); }
.feat-fm-card .ff-b span { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feat-fm-card .ff-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.feat-fm-card .btn.small { padding: var(--s-2) 12px; font-size: var(--fs-13); }
.ff-state { font-size: var(--fs-12); font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); white-space: nowrap; }
.ff-state.on { background: var(--ok-tint); color: var(--ok); }
/* on the HAD! tab it sits under the game's settings, next to the Tema card */
.live-cards .feat-fm-card { max-width: none; height: 100%; margin: 0; padding: 12px 14px; }
.live-cards .feat-fm-card .ff-acts { justify-content: space-between; margin-left: 48px; width: calc(100% - 48px); }
/* on the Pratik tab it shares a row with the practice's stage card: it fills its own cell */
.prac-opts > .feat-fm-card { max-width: none; }
@media (max-width: 860px) { .live-cards .feat-fm-card .ff-acts { margin-left: 0; width: 100%; } }
#pfeat:empty { display: none; }
.prac-opts { flex: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.prac-stage { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; border-radius: var(--r-md); }
.prac-stage .ps-b { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.prac-stage .ps-b span { font-size: var(--fs-14); }
@media (max-width: 960px) { .prac-opts { grid-template-columns: 1fr; } }
.prac-panel { display: flex; flex-direction: column; gap: 16px; }
.prac-head h3 { margin: 0 0 4px; }
.prac-head p { margin: 0 0 12px; font-size: var(--fs-13); }
.prac-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prac-modes button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: 1.5px solid var(--line-3); border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.prac-modes button b { font-size: var(--fs-14); }
.prac-modes button span { font-size: var(--fs-12); color: var(--muted); line-height: 1.3; }
.prac-modes button.on { border-color: var(--accent); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.prac-modes button:disabled { opacity: .45; cursor: default; }
.prac-stagebar { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-13); }
.prac-bank-h { display: flex; justify-content: space-between; align-items: baseline; }
.prac-bank-h em { font-style: normal; font-size: var(--fs-13); color: var(--muted); }
.prac-bank { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 40px; }
.pcard { aspect-ratio: 1; padding: 6px; border: 1.5px solid var(--line-3); border-radius: var(--r-12); background: #fff; cursor: grab; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pcard img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 22, 58, .12); }
.pcard.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-tint), 0 6px 16px rgba(20, 22, 58, .14); }
.pcard.dragging { opacity: .4; }
.prac-empty { font-size: var(--fs-13); margin: 0; }
.prac-result { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-12); background: var(--danger-tint); color: #8c241c; font-size: var(--fs-14); }
.prac-result.ok { background: var(--ok-tint); color: #165c35; }
.prac-result b { font-size: var(--fs-16); }
.prac-result svg { width: 18px; height: 18px; }
.prac-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.prac-acts svg { width: 16px; height: 16px; }
.prac-progress { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-3); font-size: var(--fs-13); }
.pp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp-bar { display: flex; height: 8px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.pp-bar i, .pp-legend i, .pq-state { display: block; }
.pp-bar i.mastered, .pp-legend i.mastered, .pq-state.mastered { background: var(--ok); }
.pp-bar i.learning, .pp-legend i.learning, .pq-state.learning { background: #F5A524; }
.pp-bar i.new, .pp-legend i.new, .pq-state.new { background: #C9CCD6; }
.pp-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.pp-legend span { display: inline-flex; align-items: center; gap: var(--s-1); }
.pp-legend i { width: 9px; height: 9px; border-radius: 50%; }
.pp-legend b { color: var(--ink); }
.prac-banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%) translateY(-8px); padding: 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: var(--fs-13); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.prac-banner.on { opacity: .92; transform: translateX(-50%); }
.canvas .node.pq > img { visibility: hidden; }
.canvas .node .pq-slot { position: absolute; inset: 4%; border: 3px dashed #9AA2B8; border-radius: 16%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.canvas .node .pq-slot b { font-family: var(--display); font-size: 64px; color: #9AA2B8; line-height: 1; }
.canvas .node .pq-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.canvas .node.pq { cursor: pointer; }
.canvas .node.pq-over .pq-slot { border-color: var(--accent); background: var(--blue-tint); box-shadow: 0 0 0 6px rgba(10, 108, 240, .15); }
.canvas .node.pq-ok .pq-slot { border: 4px solid var(--ok); background: var(--ok-tint); }
.canvas .node.pq-bad .pq-slot { border: 4px solid var(--danger); background: var(--danger-tint); }
.canvas .node .pq-state { position: absolute; right: 4%; top: 4%; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
@media (max-width: 860px) { .prac .inspector { max-height: 46vh; } }
/* packages page: add-ons */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.addon { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg, 18px); }
.addon.on { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.addon .mi { flex: none; width: 40px; height: 40px; border-radius: var(--r-12); display: grid; place-items: center; }
.addon .mi svg { width: 20px; height: 20px; }
.addon .ad-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addon .ad-b b { font-family: var(--display); font-size: var(--fs-16); }
.addon .ad-b span { font-size: var(--fs-13); color: var(--muted); line-height: 1.45; }
.addon .ad-b .tag, .switch .tag { font-style: normal; font-size: var(--fs-12); font-weight: 700; padding: 1px var(--s-2); border-radius: var(--r-pill); background: var(--violet-tint); color: var(--violet-ink); vertical-align: middle; }
.addon > .btn, .addon > .pcur, .addon > .addon-corp { flex: none; align-self: center; }
.addon-corp { font-size: var(--fs-13); max-width: 140px; text-align: right; }
/* settings: the institution's own AI */
.ownai-card { grid-column: 1 / -1; }
.ai-status { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: var(--r-12); font-size: var(--fs-14); line-height: 1.45; }
.ai-status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.ai-status.on { background: var(--ok-tint); color: #165c35; }
.ai-status.bad { background: var(--danger-tint); color: #8c241c; }
.ai-status.off { background: var(--surface); color: var(--ink-3, #555); }
.ai-status small { opacity: .85; }
.ai-form { display: grid; gap: 14px; }
.ai-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-guide { display: grid; gap: 12px; margin: 16px 0; padding-left: var(--s-5); }
.ai-guide li b { display: block; font-size: var(--fs-14); }
.ai-guide li span { font-size: var(--fs-14); color: var(--muted); line-height: 1.5; }
.ai-cmd { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-12); background: var(--ink); color: #e8e8ea; font-size: var(--fs-13); overflow-x: auto; white-space: pre; }
@media (max-width: 640px) { .ai-row { grid-template-columns: 1fr; } .addon { flex-wrap: wrap; } }
/* presentation studio: effects */
.fx-opts { display: flex; flex-direction: column; gap: 10px; }
.fx-opts h4 { margin-bottom: 0; }
.fx-opts .h4row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fx-opts .link.small { font-size: var(--fs-13); padding: 2px 4px; }
.fxmode { display: flex; flex-direction: column; gap: 6px; }
.fxmode button { display: flex; align-items: center; gap: 10px; text-align: left; padding: var(--s-2) 12px var(--s-2) var(--s-2); border: 1.5px solid var(--line-3); border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.fxmode button span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fxmode button b { font-size: var(--fs-14); }
.fxmode button small { font-size: var(--fs-12); color: var(--muted); line-height: 1.35; }
.fxmode button em { flex: none; font-style: normal; font-size: var(--fs-12); font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--warn-tint); color: #9a6400; white-space: nowrap; }
.fxmode button em.free { background: var(--ok-tint); color: var(--ok); }
.fxmode button:hover { border-color: var(--accent); }
.fxmode button:focus-visible, .fxpk:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .16); }
.fxmode button.on { border-color: var(--accent); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.fxm-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-12); background: var(--surface); color: var(--ink-3); transition: background .15s, color .15s; }
.fxm-ico svg { width: 17px; height: 17px; }
.fxm-ico.m-pictures, .fxm-ico.m-cinema { background: var(--violet-tint); color: var(--violet); }
.fxm-ico.m-pack { background: var(--teal-tint); color: var(--teal-ink); }
.fxmode button.on .fxm-ico { background: var(--accent); color: #fff; }
/* the pack picker under "From my packs": small cards with the pack's cover */
.fxpacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fxpk { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-align: left; border: 1.5px solid var(--line-3); border-radius: var(--r-12); background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .2s var(--ease); }
.fxpk:hover { border-color: var(--accent); transform: translateY(-1px); }
.fxpk.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 108, 240, .14); }
.fxpk-cov { position: relative; display: block; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #e8e1fb, #dceaff); }
.fxpk-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fxpk-on { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(10, 108, 240, .35); }
.fxpk-on svg { width: 13px; height: 13px; }
.fxpk-b { display: flex; flex-direction: column; gap: 1px; padding: var(--s-2) var(--s-2) 8px; min-width: 0; }
.fxpk-b b { font-size: var(--fs-13); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxpk-b small { font-size: var(--fs-12); color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxpk-lib { border-style: dashed; justify-content: center; }
.fxpk-plus { display: grid; place-items: center; aspect-ratio: 16 / 8; color: var(--accent); background: var(--surface); }
.fxpk-plus svg { width: 20px; height: 20px; }
#fxapply svg, .fx-acts svg { width: 16px; height: 16px; }
/* effect library */
.fxp { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-12); overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #fff 0%, #f1edfb 70%, #e6e0f6 100%); }
.fxp-pic { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.fxp-pic svg { width: 100%; height: 100%; display: block; }
.fxp-layer { position: absolute; inset: 0; pointer-events: none; }
.fx-form .chips { flex-wrap: wrap; }
.fx-dlg-prev { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
/* the gallery page: filters + cards on the left, the stage (sticky) on the right */
.fxl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 344px); gap: 24px; align-items: start; }
.fxl-main { min-width: 0; container-type: inline-size; }
.fxl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fxl-q { flex: 1 1 240px; max-width: 360px; height: 44px; }
.fxl-q input { width: 100%; }
/* when the column cannot hold the search and every category on one line, the search takes the whole first line
   (instead of a short field with a gap beside it) and the categories sit under it */
@container (max-width: 880px) { .fxl-bar .fxl-q { flex-basis: 100%; max-width: none; } }
.fxl-q input::-webkit-search-cancel-button { cursor: pointer; }
.fxl-cats { flex: 0 1 auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fxl-cats::-webkit-scrollbar { display: none; }
.fxl-cats button { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.fxl-cats button em { font-style: normal; font-size: var(--fs-12); font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill); background: rgba(20, 22, 58, .07); color: var(--muted); text-align: center; }
.fxl-cats button.on em { background: var(--blue-tint); color: var(--accent-deep); }
.fxl-cats button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fxl-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 var(--s-5); font-size: var(--fs-13); color: var(--muted); }
.fxl-legend .fxb + span { margin-right: 10px; }
.fxb { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 700; padding: 3px var(--s-2); border-radius: var(--r-pill); white-space: nowrap; line-height: 1.3; }
.fxb svg { width: 12px; height: 12px; }
.fxb.free { background: var(--ok-tint); color: var(--ok); }
.fxb.units { background: var(--warn-tint); color: #9a6400; }
.fxl-sec { margin-bottom: var(--s-6); }
.fxl-sh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fxl-sh h2 { font-size: var(--fs-24); }
.fxl-sh span { font-size: var(--fs-14); color: var(--muted); }
.fxl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
/* a card: live cover, kind, name, one line; the whole card is one button (.fxc-hit), edit / delete sit above it */
.fxc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1.5px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.fxc:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.fxc.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13), var(--shadow); }
.fxc:focus-within { border-color: var(--accent); }
.fxc.sk { height: 236px; background: linear-gradient(100deg, var(--surface) 30%, #fbfbfd 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: fxsk 1.3s linear infinite; border-color: transparent; }
@keyframes fxsk { to { background-position: -150% 0; } }
.fxc-cov { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: linear-gradient(140deg, #f3effd 0%, #e9f1ff 100%); }
.fxc-cov .fmt-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fxc-cov.types { background: radial-gradient(ellipse at 50% 55%, #3a2f86 0%, #1f2250 62%, var(--night) 100%); }
.fxc-cov.trans { background: radial-gradient(ellipse at 50% 55%, #17507a 0%, #1a2a5c 62%, var(--night) 100%); }
.fxc-cov.ai { background: linear-gradient(140deg, var(--violet-tint) 0%, #fbeaf7 100%); }
.fxc-cov.pack { background: linear-gradient(135deg, #e8e1fb, #dceaff); }
.fxc-cov.pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fxc:hover .fxc-cov.pack img, .fxc.on .fxc-cov.pack img { transform: scale(1.05); }
.fxc-chips { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.fxc-chips i { font-style: normal; font-size: var(--fs-12); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .88); color: var(--ink-2); backdrop-filter: blur(4px); }
.fxc-b { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) var(--s-3) 4px; min-width: 0; }
.fxc-k { font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.c-ai .fxc-k { color: var(--violet-ink); } .c-trans .fxc-k { color: var(--teal-ink); } .c-packs .fxc-k { color: var(--accent-deep); }
.fxc-b b { font-family: var(--display); font-size: var(--fs-16); font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxc-b small { font-size: var(--fs-13); line-height: 1.4; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.fxc-foot { display: flex; align-items: center; gap: 6px; padding: 8px var(--s-3) 12px; margin-top: auto; }
.fxc-on { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: var(--fs-12); font-weight: 700; color: var(--accent); }
.fxc-on svg { width: 14px; height: 14px; }
.fxc-hit { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; margin: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.fxc-hit:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.fxc-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.fxc:hover .fxc-tools, .fxc:focus-within .fxc-tools, .fxc.on .fxc-tools { opacity: 1; }
.fxc-tools .icon-btn { width: 32px; height: 32px; border-radius: var(--r-12); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); }
.fxc-tools .icon-btn svg { width: 16px; height: 16px; }
.fxc-tools .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fxc-new { align-items: center; justify-content: center; gap: 6px; padding: var(--s-5) 16px; min-height: 220px; text-align: center; border-style: dashed; border-color: var(--line-2); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.fxc-new:hover, .fxc-new:focus-visible { border-color: var(--accent); background: #fff; outline: none; }
.fxc-new b { font-family: var(--display); font-size: var(--fs-16); font-weight: 600; }
.fxc-new small { font-size: var(--fs-13); color: var(--muted); max-width: 200px; line-height: 1.4; }
.fxc-plus { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-12); background: var(--cta); color: #fff; margin-bottom: 4px; box-shadow: 0 8px 18px rgba(123, 63, 228, .25); }
.fxc-plus svg { width: 22px; height: 22px; }
.fxl-empty .btn { margin-top: 2px; }
/* the stage: the chosen one plays on a sample picture */
.fxl-stage { position: sticky; top: calc(var(--head) + 18px); padding: 16px; border-radius: var(--r-xl); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--head) - 36px); overflow: auto; }
.fxl-stage .fxp { border-radius: var(--r-18); background: radial-gradient(ellipse at 50% 42%, #fff 0%, #f1edfb 62%, #ddd3f6 100%); box-shadow: inset 0 0 0 1px rgba(123, 63, 228, .08); }
.fxs-body { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.fxs-kind { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: var(--fs-12); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--accent-deep); }
.fxs-kind svg { width: 14px; height: 14px; }
.fxs-kind.c-ai { background: var(--violet-tint); color: var(--violet-ink); } .fxs-kind.c-trans { background: var(--teal-tint); color: var(--teal-ink); }
.fxs-body h3 { font-size: var(--fs-24); letter-spacing: -.02em; }
.fxs-body p { margin: 0; font-size: var(--fs-14); line-height: 1.5; color: var(--ink-3); }
.fxs-tags { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.fxs-tags em { font-style: normal; font-size: var(--fs-12); font-weight: 600; padding: 3px var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-3); }
.fxs-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fxs-acts .btn { flex: 1 1 auto; }   /* two actions that do not fit side by side become two equal full-width rows */
.fxs-acts svg { width: 16px; height: 16px; }
.fxs-how { list-style: none; margin: 4px 0 0; padding: 14px 6px 2px; border-top: 1px solid var(--line-3); display: grid; gap: 12px; }
.fxs-how li { display: flex; gap: 10px; align-items: flex-start; }
.fxs-how .ui { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-12); background: var(--blue-tint); color: var(--accent-deep); }
.fxs-how .ui svg { width: 15px; height: 15px; }
.fxs-how b { display: block; font-size: var(--fs-14); font-weight: 600; }
.fxs-how span { font-size: var(--fs-13); line-height: 1.45; color: var(--muted); }
/* the effects page uses the same page container as every other /app page (.page: 1200 px, 1128 px of content) */
@media (max-width: 1080px) {
  .fxl { grid-template-columns: minmax(0, 1fr); }
  .fxl-stage { position: relative; top: 0; max-height: none; order: -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .fxs-how { display: none; }
}
@media (max-width: 640px) {
  .fxl { gap: 18px; }
  .fxl-stage { display: flex; padding: 12px; border-radius: var(--r-lg); }
  .fxs-body { gap: 6px; padding: 0 2px; } .fxs-body h3 { font-size: var(--fs-20); }
  .fxs-body p { font-size: var(--fs-14); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fxl-q { max-width: none; flex-basis: 100%; }
  .fxl-cats { width: 100%; }
  .fxl-legend { font-size: var(--fs-12); }
  .fxl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fxc-b { padding: var(--s-2) 10px 2px; } .fxc-b b { font-size: var(--fs-16); } .fxc-b small { font-size: var(--fs-12); }
  .fxc-foot { padding: 6px 10px 10px; } .fxc-on span, .fxc-on { font-size: var(--fs-12); }
  .fxc-tools { opacity: 1; }
  .fxl-sh h2 { font-size: var(--fs-20); } .fxl-sh span { font-size: var(--fs-13); }
}
@media (max-width: 340px) { .fxl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fxc, .fxc-cov.pack img, .fxpk { transition: none; } .fxc.sk { animation: none; } }
/* presentation studio: node notes (who writes them + the editor) */
.notes-opts { display: flex; flex-direction: column; gap: 10px; }
.notes-opts h4 { margin-bottom: 0; }
.notes-sub { margin: 0; font-size: var(--fs-13); color: var(--muted); line-height: 1.45; }
.nmode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nmode button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line-3); border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.nmode button b { font-size: var(--fs-14); }
.nmode button span { font-size: var(--fs-12); color: var(--muted); line-height: 1.35; }
.nmode button:hover { border-color: var(--accent); }
.nmode button.on { border-color: var(--accent); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.notes-edit { align-self: flex-start; }
.notes-edit svg { width: 16px; height: 16px; }
/* presentation studio: printable PDF activities (add-on "pdf") */
.pdf-opts { display: flex; flex-direction: column; gap: 10px; }
.pdf-opts h4 { margin-bottom: 0; }
.pdf-acts { display: grid; gap: 6px; }
.pdf-act { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line-3); border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.pdf-act:hover { border-color: var(--violet); background: #f7f2fe; }
.pdf-act .pi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-12); background: #f1e9fd; color: var(--violet); }
.pdf-act .pi svg, .pdf-act .pd svg { width: 17px; height: 17px; }
.pdf-act b { display: block; font-size: var(--fs-14); }
.pdf-act span.tx { font-size: var(--fs-12); color: var(--muted); line-height: 1.35; }
.pdf-act .pd { color: var(--muted); }
.pdf-opts.locked .pdf-act { pointer-events: none; opacity: .55; }
.pdf-lock { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-13); color: var(--muted); }
.pdf-lock svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.pdf-lock a { color: var(--violet); font-weight: 600; }
.notes-dlg .nedit-intro b { color: var(--ink); font-weight: 600; }
.notes-dlg .nlist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-height: min(62vh, 640px); overflow-y: auto; padding-right: 4px; }
.nrow { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; }
.nthumb { width: 84px; height: 84px; border-radius: var(--r-12); background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.nthumb img { width: 100%; height: 100%; object-fit: contain; }
.nbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nhead b { font-family: var(--display); font-size: var(--fs-16); font-weight: 600; overflow-wrap: anywhere; }
.nlv { font-style: normal; font-size: var(--fs-12); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nsrc { margin-left: auto; font-size: var(--fs-12); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.nsrc.mine { background: var(--blue-tint); color: var(--accent); }
.nsrc.fm { background: #f1ecfd; color: #6a3fd0; }
.nrow textarea { resize: vertical; min-height: 64px; font-size: var(--fs-14); line-height: 1.45; }
.nlinks { display: flex; gap: 14px; align-items: center; font-size: var(--fs-13); }
.nlinks .ncount { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .nrow { grid-template-columns: 1fr; } .nthumb { width: 64px; height: 64px; } }
.pick-pop { overflow-y: auto; padding: 6px; }
.pick-pop .pk-h { padding: 12px 10px 4px; font: 700 var(--fs-12) var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pick-pop .pk-item { display: flex; align-items: center; gap: 10px; padding: var(--s-2) 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: var(--fs-16); line-height: 1.3; }
.pk-item .pk-main small { font-size: var(--fs-13); 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: var(--fs-14); }

/* 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 var(--fs-12) var(--body); font-style: normal; color: var(--muted); background: var(--surface); padding: 2px var(--s-2); border-radius: var(--r-pill); }
.my-panel .mp-head p { margin: 0 0 18px; color: var(--muted); font-size: var(--fs-14); }
.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: var(--s-6); }
}
.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 var(--s-6) var(--s-2) var(--s-3); font-size: var(--fs-14); 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: var(--fs-12); 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 var(--s-3); margin-top: -4px; font-size: var(--fs-12); 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: var(--s-2); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-12); background: #fff; font-weight: 600; font-size: var(--fs-14); 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: var(--fs-14); }
.units-pill { font-style: normal; font-size: var(--fs-13) !important; font-weight: 700; color: var(--violet-ink) !important; background: var(--violet-tint) !important; padding: 4px var(--s-3) !important; }
.mine-empty { background: var(--surface); padding: var(--s-6) 20px; }
.mine-empty p { font-size: var(--fs-16); margin-bottom: 0; }
.empty-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-18); 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: var(--r-18); background: var(--surface); transition: background .2s; }
.track.fresh { animation: pop .5s var(--ease); background: var(--violet-tint); }
.tart { width: 40px; height: 40px; border-radius: var(--r-12); 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: var(--fs-13); 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: var(--fs-14); }
.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: var(--s-3) var(--s-3) var(--s-3); 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: var(--fs-13); }
.tc-open { display: flex; align-items: center; gap: 6px; margin-top: var(--s-2); font-size: var(--fs-12); 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; } }

.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: var(--fs-14); }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-8); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2.5px; font: 700 var(--fs-13) var(--body); color: var(--ink-2); }

/* 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: var(--fs-13); 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: var(--r-12); display: grid; place-items: center; flex: none; }
.mi svg { width: 17px; height: 17px; }
.meter .mh b { flex: 1; font-weight: 600; font-size: var(--fs-16); }
.meter .mh em { font-style: normal; font-weight: 700; font-family: var(--display); font-size: var(--fs-16); }
.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: var(--fs-13); 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: var(--s-5); }
@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: var(--fs-24); font-weight: 600; }
.pcol .pdesc { color: var(--muted); font-size: var(--fs-14); }
.allow-list { list-style: none; margin: 16px 0 6px; padding: 12px 14px; border-radius: var(--r-12); 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: var(--fs-14); }
.allow-list li b { font-family: var(--display); }
.allow-list li.per { color: var(--muted); font-size: var(--fs-13); padding-top: 4px; border-top: 1px dashed var(--line-2); }
.pcol .feat { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-14); }
.pcol .feat li { padding-left: var(--s-5); 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: var(--fs-14); 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: var(--fs-14); }
.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: var(--r-12); }
.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: var(--fs-24); font-weight: 600; }
.pk-q span { color: var(--muted); font-size: var(--fs-14); }
.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: var(--r-pill); background: #fff; box-shadow: var(--shadow-sm); font-size: var(--fs-14); }
.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: var(--fs-16); }
.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: var(--r-12); background: #fff; font-size: var(--fs-14); 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; }
/* Yönetim · Kullanıcılar: one chip for the package, one "⋯" button per row */
#ut .adm-plan { margin-left: 0; vertical-align: 0; padding: 2px var(--s-2); font-size: var(--fs-12); }
.plan-chip.plan-none { background: var(--surface); color: var(--muted); }
#ut .row-more { width: 36px; height: 36px; border-radius: var(--r-12); }
#ut .row-more[aria-expanded="true"] { background: var(--surface); }
#ut .row-more svg { width: 18px; height: 18px; }
#ut th.acts-h { width: 52px; position: relative; }   /* keeps the hidden label inside the scrolling table */
#ut .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pop.row-pop { min-width: 220px; }
table.users td .ref { display: block; font-size: var(--fs-13); margin-top: 2px; }
table.users td.note-cell { max-width: 280px; font-size: var(--fs-14); 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: var(--r-12); background: var(--surface); font-size: var(--fs-14); }
.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: var(--fs-13); 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: var(--fs-32); }
table.costs td, table.costs th { white-space: nowrap; }
/* Maliyet raporu (Yönetim): period chips, key-number cards, "Nereye gidiyor?" bar, the maps table, the detail drawer */
.cost-card { --c-text: var(--accent); --c-pictures: var(--violet); --c-media: var(--teal); --c-other: #a9a9b6; min-width: 0; }
.cost-card .mh-row { margin-bottom: var(--s-2); }
.cost-periods { flex-wrap: wrap; border-radius: var(--r-18); }
.cost-periods button { min-height: 36px; }
.crange { margin: 0 0 var(--s-4); font-size: var(--fs-14); }
.ckpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
@media (max-width: 900px) { .ckpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ckpi { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-18); background: var(--surface); min-width: 0; }
.ckpi-l { font-size: var(--fs-13); font-weight: 700; color: var(--ink-3); }
.ckpi-v { font-family: var(--display); font-size: var(--fs-24); font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ckpi.k-total .ckpi-v { font-size: var(--fs-32); }
.ckpi.k-split .ckpi-v { font-size: var(--fs-20); padding: 4px 0; }
.ckpi-n { font-size: var(--fs-13); color: var(--muted); line-height: 1.4; }
.ckpi.k-total { background: var(--info-tint); }
.ckpi.k-waste { background: var(--warn-tint); }
.csplit, .cbar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--line-3); margin: 2px 0; }
.cbar { height: 16px; margin: var(--s-3) 0; }
.csplit i, .cbar i { display: block; height: 100%; min-width: 2px; }
.seg-text { background: var(--c-text); } .seg-pictures { background: var(--c-pictures); }
.seg-media { background: var(--c-media); } .seg-other { background: var(--c-other); }
.cbar i + i, .csplit i + i { box-shadow: inset 2px 0 0 #fff; }
.csec { margin-bottom: var(--s-5); min-width: 0; }
.csec h4 { font-size: var(--fs-18); margin: 0 0 var(--s-1); }
.csec .mh-row { margin-bottom: 0; }
.csec .small-note { margin: 0 0 var(--s-2); font-size: var(--fs-13); }
.clegend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.clegend li { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-2) 0; border-bottom: 1px solid var(--line-3); }
.clegend li:last-child { border-bottom: 0; }
.clegend .sw { width: 12px; height: 12px; border-radius: 4px; margin-top: 5px; }
.clegend .cl-t, .clegend .cl-v { display: flex; flex-direction: column; min-width: 0; }
.clegend .cl-t small, .clegend .cl-v small { font-size: var(--fs-13); }
.clegend .cl-v { text-align: right; font-variant-numeric: tabular-nums; }
.cmaps-wrap { border: 1px solid var(--line-3); border-radius: var(--r-12); max-width: 100%; }
table.cmaps { min-width: 860px; }
table.cmaps th { padding: 0; }
.csort { display: inline-flex; align-items: center; gap: 4px; width: 100%; padding: 12px 8px; border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-align: left; }
.csort.on, .csort:hover { color: var(--ink); }
.csort span { font-size: 10px; }
table.cmaps td { font-variant-numeric: tabular-nums; }
table.cmaps .ctitle b { font-weight: 600; margin-right: 6px; }
table.cmaps .ctitle .chip { min-height: 20px; font-size: var(--fs-12); margin-right: 4px; }
table.cmaps .ctitle { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
table.cmaps .cuser { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
table.cmaps td.cmodel { white-space: normal; min-width: 150px; max-width: 200px; font-size: var(--fs-13); }
table.cmaps td, table.cmaps .csort { padding-left: 6px; padding-right: 6px; }
tr.crow { cursor: pointer; }
tr.crow:hover td { background: var(--surface); }
tr.crow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cpager { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); margin-top: var(--s-3); flex-wrap: wrap; font-size: var(--fs-14); }
.cmore { border: 1px solid var(--line-3); border-radius: var(--r-18); padding: 0 var(--s-4); margin-top: var(--s-3); min-width: 0; }
.cmore > summary { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) 0; cursor: pointer; font-weight: 600; font-family: var(--display); font-size: var(--fs-16); position: relative; padding-right: 28px; }
.cmore > summary::-webkit-details-marker { display: none; }
.cmore > summary::after { content: ''; position: absolute; right: 4px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.cmore[open] > summary::after { transform: rotate(225deg); top: 26px; }
.cmore > summary small { font-family: var(--body); font-weight: 400; font-size: var(--fs-13); }
.cmore[open] { padding-bottom: var(--s-4); }
.cmore .cost-grid-h { margin: var(--s-4) 0 var(--s-1); }
.cmore .cost-grid-h:first-of-type { margin-top: 0; }
.cmore .small-note { font-size: var(--fs-13); margin: 0 0 var(--s-2); }
table.costs tr.est td { color: var(--muted); }
body.cdrawer-open { overflow: hidden; }
.cdrawer-wrap { position: fixed; inset: 0; z-index: 400; }
.cdrawer-bg { position: absolute; inset: 0; background: rgba(20, 22, 58, .32); animation: cfade .2s var(--ease); }
.cdrawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: cslide .28s var(--ease); }
@keyframes cfade { from { opacity: 0; } }
@keyframes cslide { from { transform: translateX(40px); opacity: 0; } }
.cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); border-bottom: 1px solid var(--line-3); }
.cd-head h3 { font-size: var(--fs-20); overflow-wrap: anywhere; }
.cd-head p { margin: 2px 0 0; font-size: var(--fs-14); overflow-wrap: anywhere; }
.cd-body { overflow-y: auto; padding: var(--s-4) var(--s-5) var(--s-6); -webkit-overflow-scrolling: touch; }
.cd-body h4 { font-size: var(--fs-16); margin: var(--s-5) 0 var(--s-2); }
.cd-total { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-4); border-radius: var(--r-18); background: var(--surface); }
.cd-total > span:first-child { font-weight: 600; color: var(--ink-3); }
.cd-total b { font-family: var(--display); font-size: var(--fs-24); font-variant-numeric: tabular-nums; }
.cdl { display: grid; grid-template-columns: minmax(45%, 1fr) minmax(0, auto); margin: 0; font-size: var(--fs-14); }
.cdl dt, .cdl dd { padding: 7px 0; border-bottom: 1px solid var(--line-3); margin: 0; }
.cdl dt { color: var(--ink-3); padding-right: var(--s-3); }
.cdl dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cdl code { font-size: var(--fs-13); }
/* "Tarih ve saat seç": two date-and-time fields in the admin's zone, applied to the whole report */
.cost-periods .cper-custom[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.ccustom { margin: 0 0 var(--s-4); padding: var(--s-4); border-radius: var(--r-18); background: var(--surface); }
.ccustom-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); }
.ccustom-f label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); font-weight: 700; color: var(--ink-3); min-width: 0; }
.ccustom-f input { min-height: 40px; font: inherit; font-weight: 400; font-size: var(--fs-14); color: var(--ink); padding: 6px 10px; border: 1px solid var(--line-2, var(--line-3)); border-radius: var(--r-12); background: #fff; max-width: 100%; }
.ccustom-f input[aria-invalid="true"] { border-color: var(--danger, #c0392b); }
.ccustom-f .btn { min-height: 40px; }
.ccustom .small-note { margin: var(--s-2) 0 0; font-size: var(--fs-13); }
.cerr { margin: var(--s-1) 0 0; font-size: var(--fs-13); font-weight: 600; color: var(--danger, #c0392b); }
.cerr:empty { display: none; }
table.cmaps td.cwhen { white-space: nowrap; }
table.cmaps td.cwhen small { display: block; }
/* the drawer's "Üretim kararları": a timeline, one decision per step, the kind of step on its dot */
.cdec { list-style: none; margin: 0; padding: 0 0 0 4px; }
.cdec-i { position: relative; padding: 0 0 var(--s-3) 22px; font-size: var(--fs-14); line-height: 1.5; }
.cdec-i::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.cdec-i::after { content: ''; position: absolute; left: 4px; top: 10px; bottom: -6px; width: 2px; background: var(--line-3); }
.cdec-i:last-child::after { display: none; }
.cdec-i p { margin: 0; overflow-wrap: anywhere; }
.cdec-i.k-eng::before { background: var(--teal); }
.cdec-i.k-plan::before { background: var(--accent); }
.cdec-i.k-size::before { background: var(--violet); }
.cdec-i.k-redo::before, .cdec-i.k-audit::before { background: var(--warn, #d68a00); }
.cdec-i.k-stop::before { background: var(--danger, #c0392b); }
.cdec-old { padding: var(--s-2) var(--s-3); border-radius: var(--r-12); background: var(--warn-tint); color: var(--ink-3); }
/* the drawer's size table and how sizes are chosen */
table.csizes td { vertical-align: top; font-variant-numeric: tabular-nums; }
table.csizes td.cwhy { white-space: normal; min-width: 220px; font-size: var(--fs-13); line-height: 1.45; color: var(--ink-3); }
table.csizes td small.ref { display: block; }
.csizes-how { margin-top: var(--s-2); }
.csizes-how > summary { font-size: var(--fs-14); padding: var(--s-3) 28px var(--s-3) 0; }
.csizes-how > summary::after { top: 16px; }
.csizes-how[open] > summary::after { top: 20px; }
.csizes-how p { margin: 0 0 var(--s-2); font-size: var(--fs-14); line-height: 1.55; }
@media (max-width: 640px) {
  .ccustom { padding: var(--s-3); }
  .ccustom-f { flex-direction: column; align-items: stretch; }
  .ccustom-f input, .ccustom-f .btn { width: 100%; }
  /* the size table as one card per row: the column's name before each value */
  table.csizes, table.csizes tbody, table.csizes tr, table.csizes td { display: block; width: 100%; }
  table.csizes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.csizes tr { padding: var(--s-2) 0; border-bottom: 1px solid var(--line-3); }
  table.csizes td { border: 0; padding: 3px 0; }
  table.csizes td::before { content: attr(data-l); display: block; font-size: var(--fs-12); font-weight: 700; color: var(--muted); }
  table.csizes td.cwhy { min-width: 0; }
  table.csizes tr { display: flex; flex-wrap: wrap; }
  table.csizes td { flex: 0 0 100%; min-width: 0; }
  table.csizes td:nth-child(n+4) { flex: 1 1 30%; width: auto; }
  .csizes-wrap { overflow: visible; }
}
@media (max-width: 640px) {
  .cost-card { padding: var(--s-4); }
  .cost-card .mh-row { flex-direction: column; align-items: stretch; }
  .cost-periods { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cost-periods .cper-custom { grid-column: 1 / -1; }
  .cost-periods button { padding: var(--s-2) 4px; min-height: 40px; }
  .ckpis { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .ckpi { padding: var(--s-3); }
  .ckpi.k-total, .ckpi.k-waste { grid-column: 1 / -1; }
  .ckpi.k-split .ckpi-v { font-size: var(--fs-16); }
  .ckpi-v { font-size: var(--fs-20); }
  .ckpi.k-total .ckpi-v { font-size: var(--fs-24); }
  .cdrawer { width: 100%; }
  .cd-head { padding: var(--s-4); }
  .cd-body { padding: var(--s-3) var(--s-4) var(--s-6); }
  .cpager { justify-content: space-between; }
}

/* 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: var(--r-8); 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 var(--s-1); border-radius: var(--r-pill); background: var(--teal-tint); color: var(--teal-ink); font-size: var(--fs-12); 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: var(--s-2); margin: 0; color: var(--ink-3); font-size: var(--fs-14); 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: var(--fs-24); 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: var(--r-18); 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: var(--s-2) 14px; border-radius: var(--r-pill); background: var(--teal-tint); color: var(--teal-ink); font-weight: 700; font-size: var(--fs-16); }
.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: var(--r-12); background: var(--surface); color: var(--ink-3); font-size: var(--fs-14); }
.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: var(--fs-14); 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); }
/* opaque: the page under it (the empty presentation stage) must not show through as a silhouette */
.build-veil { background: radial-gradient(ellipse at 50% 35%, #23266b 0%, var(--night) 70%); backdrop-filter: none; z-index: 5; }
.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: var(--fs-14); 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: var(--s-6); }
.fm-expired { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-12); 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: var(--fs-18); }
.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: var(--s-5); }
@media (max-width: 860px) { .fm-ways { grid-template-columns: 1fr; } }
.fm-way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: var(--s-5); 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: var(--fs-20); }
.fm-way p { margin: 0; }
.fm-steps { margin: 2px 0 4px; padding-left: var(--s-5); display: grid; gap: 6px; color: var(--ink-2); font-size: var(--fs-16); }
.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: var(--fs-13); color: var(--muted); }
.bm-drag svg { width: 16px; height: 16px; }
.fm-small { font-size: var(--fs-14); }
.fm-safe { display: flex; align-items: flex-start; gap: var(--s-2); margin: 6px 0 0; font-size: var(--fs-14); color: var(--teal-ink); }
.fm-safe svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fm-hint.flash { border-radius: var(--r-12); }
.fm-acct { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fm-logo-sm { width: 56px; height: 56px; border-radius: var(--r-18); 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: var(--fs-13); color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.fm-name { font-family: var(--display); font-size: var(--fs-20); overflow: hidden; text-overflow: ellipsis; }
.fm-mail:empty { display: none; }
.fm-meta { font-size: var(--fs-14); }
.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: var(--r-12); background: var(--teal-tint); color: var(--teal-ink); font-size: var(--fs-14); 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: var(--r-12); 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: var(--fs-13); }
.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: var(--fs-32); }
.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: var(--r-12); background: var(--surface); font-size: var(--fs-14); color: var(--ink-3); }
.fm-need b { color: var(--ink); font-size: var(--fs-16); }

/* 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: var(--s-2); white-space: nowrap; padding: var(--s-2) 16px; font-size: var(--fs-14); }
.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: var(--r-12); background: var(--surface); color: var(--ink-3); font-size: var(--fs-16); 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(--cta); color: #fff; }
.plan-chip.plan-sbusiness { background: var(--violet-tint); color: var(--violet-ink); }
.choice .plan-chip.plan-spro { color: #fff; } .choice .plan-chip.plan-sbusiness { color: var(--violet-ink); }

/* guide: groups, waiting line, Foramind connection */
#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; }
/* the Foramind mark in a button: never the empty state's picture rule (.empty img: 220px wide, 10px under it), which
   pushed it up in "Foramind'dan aktar" on an empty Haritalarım */
.empty .btn img.fm-ico, .hero-ctas .btn img.fm-ico { display: inline-block; width: 18px; height: 18px; margin: 0; vertical-align: middle; mix-blend-mode: normal; }
@media (max-width: 520px) { .group-tabs { width: 100%; flex-wrap: wrap; border-radius: var(--r-18); } .group-tabs button { flex: 1 1 auto; justify-content: center; padding: 8px 12px; font-size: var(--fs-14); } }

/* ------------------------------------------------------------------ Foramind sign-in, name step */
.fm-signin-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: var(--teal-tint); color: var(--teal-ink); font-size: var(--fs-13); 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: var(--s-5); 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: var(--fs-14); }
.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; min-height: 100dvh; grid-template-columns: 1fr;
  position: relative; isolation: isolate; overflow: hidden; background: #f2f4f8; }
/* the sign-in screen's flowing strips behind the card (web/login.css .lg-bg / .lg-rows / .lg-veil, web/login.js backdrop) */
.auth.welcome .lg-bg { position: fixed; }
.auth.welcome .lg-row img { display: block; height: clamp(90px, 17vh, 200px); }
.auth.welcome .auth-side { background: transparent; width: 100%; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.auth.welcome .auth-card { max-width: 460px; position: relative; border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #2affde, #0a6cf0 30%, var(--violet) 62%, #ff15cb 85%, #ffe16e) border-box;
  box-shadow: 0 2px 6px rgba(20, 22, 58, .06), 0 40px 90px -30px rgba(20, 22, 58, .35); }
@media (prefers-reduced-motion: reduce) { .auth.welcome .lg-row { animation: none; } }
.auth.welcome .brand { margin-bottom: var(--s-5); }
.welcome-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: var(--fs-14); }
.welcome-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.wmail { font-size: var(--fs-13); margin: 6px 0 0; }
.welcome-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-12); 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 var(--s-5); 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 var(--s-5); }
.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: var(--r-pill); background: var(--surface); overflow: hidden; }
.fm-quota .mbar i { display: block; height: 100%; background: var(--teal); border-radius: var(--r-pill); }
.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; } }

/* ------------------------------------------------------------------ dashboard library: folder panel + toolbar */
.dash-page { max-width: 1320px; }
.dash-lib { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 32px; align-items: start; }
.dash-lib.no-maps { grid-template-columns: minmax(0, 1fr); }
.dash-lib.no-maps .fside, .dash-lib.no-maps .dash-tools { display: none; }
.dash-main { min-width: 0; }

/* the folder panel */
.fside { position: sticky; top: calc(var(--head) + 20px); max-height: calc(100vh - var(--head) - 40px); display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 12px; border-radius: var(--r-lg); background: var(--surface); }
.fside-head { display: flex; align-items: center; gap: 2px; padding: 0 2px 2px 10px; min-height: 34px; }
.fside-head b { flex: 1; font-family: var(--display); font-size: var(--fs-16); font-weight: 600; letter-spacing: -.01em; }
.fside-head .icon-btn { width: 32px; height: 32px; border-radius: var(--r-12); }
.fside-head .icon-btn svg { width: 17px; height: 17px; }
.fside-head .icon-btn:hover { background: #fff; color: var(--accent-deep); }
.fside-x { display: none !important; }
.fside-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin: 0 2px 2px; border-radius: var(--r-12); background: #fff; border: 1.5px solid var(--line-3); transition: border-color .15s, box-shadow .15s; }
.fside-q:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 108, 240, .12); }
.fside-q svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.fside-q input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: var(--fs-14); }
.fside-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px 2px; }
.fitem { position: relative; border-radius: var(--r-12); }
.fitem-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: var(--s-2) 10px var(--s-2) var(--s-2); border: 0; background: transparent; border-radius: var(--r-12); text-align: left; font-size: var(--fs-14); font-weight: 500; line-height: 1.3; color: var(--ink-2); transition: background .15s, box-shadow .15s; }
.fitem-btn:hover { background: rgba(255, 255, 255, .75); }
.fitem-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fitem.on .fitem-btn { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-3); }
.fico { flex: none; width: 30px; height: 30px; border-radius: var(--r-8); display: grid; place-items: center; color: var(--fc, var(--ink-3)); background: color-mix(in srgb, var(--fc, var(--ink-3)) 12%, #fff); }
.fico svg { width: 16px; height: 16px; }
.fitem[data-fk="all"] .fico { --fc: var(--violet); }
.fitem[data-fk="none"] .fico { --fc: #6e6e7a; }
.fname { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fitem em { flex: none; min-width: 22px; text-align: right; font-style: normal; font-size: var(--fs-13); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fitem-more { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: var(--r-8); background: transparent; color: var(--ink-3); opacity: 0; pointer-events: none; transition: opacity .12s; }
.fitem-more svg { width: 16px; height: 16px; }
.fitem-more:hover { background: var(--surface); color: var(--ink); }
.fitem:hover .fitem-more, .fitem:focus-within .fitem-more { opacity: 1; pointer-events: auto; }
.fitem:has(.fitem-more):hover em, .fitem:has(.fitem-more):focus-within em { visibility: hidden; }
@media (hover: none) {
  .fitem-more { opacity: 1; pointer-events: auto; }
  .fitem:has(.fitem-more) .fitem-btn { padding-right: 40px; }
}
.fside-sep { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 4px; font-size: var(--fs-13); font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.fside-sep em { font-style: normal; font-weight: 600; }
.fside-none { margin: 2px 0; padding: 6px 10px; font-size: var(--fs-13); line-height: 1.45; color: var(--muted); }
.fside-new { display: flex; align-items: center; gap: 10px; flex: none; padding: var(--s-2) 10px; border: 1.5px dashed var(--line-2); border-radius: var(--r-12); background: transparent; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.fside-new svg { width: 16px; height: 16px; }
.fside-new:hover { border-color: var(--accent); color: var(--accent-deep); background: #fff; }
.fside-drag { display: none; align-items: center; gap: 8px; margin: 0; padding: var(--s-2) 10px; border-radius: var(--r-12); background: var(--blue-tint); color: var(--accent-deep); font-size: var(--fs-13); font-weight: 600; }
.fside-drag svg { width: 16px; height: 16px; flex: none; }
body.dragging-map .fside-drag { display: flex; }
body.dragging-map .fside-new { display: none; }
body.dragging-map .fitem[data-drop] .fitem-btn { outline: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.fitem.over .fitem-btn { background: var(--blue-tint) !important; outline: 2px solid var(--accent) !important; color: var(--accent-deep); }
.fside-scrim { display: none; }

/* the title (where you are) and the toolbar */
.dash-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; min-width: 0; }
.dash-crumb { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: var(--fs-24); line-height: 1.2; }
.crumb-root { flex: none; border: 0; background: none; padding: 0; font: 600 var(--fs-20)/1.2 var(--display); letter-spacing: -.015em; color: var(--muted); }
.crumb-root:hover { color: var(--accent-deep); }
.crumb-sep { flex: none; color: var(--line-2); font-weight: 400; font-size: var(--fs-20); }
.crumb-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-more { flex: none; align-self: center; width: 34px; height: 34px; }
.dash-count { flex: none; color: var(--muted); font-size: var(--fs-14); white-space: nowrap; }
.dash-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsearch { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; cursor: text; }
.dsearch:hover { border-color: var(--line-2); }
.dsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .12); }
.dsearch > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.dsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: var(--fs-16); }
.dsearch input::placeholder { color: var(--muted); }
.dsearch-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-3); }
.dsearch-x svg { width: 14px; height: 14px; }
.dsearch-x:hover { background: var(--line-3); color: var(--ink); }
.dsearch kbd { flex: none; margin-right: 4px; font: 600 var(--fs-12) var(--body); color: var(--muted); padding: 2px 8px; border-radius: var(--r-8); background: var(--surface); border: 1px solid var(--line); }
.dsearch:focus-within kbd, .dsearch-x:not(.hidden) + kbd { display: none; }
.dt-right { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.dt-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dt-btn:hover { border-color: var(--line-2); }
.dt-btn > svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.dt-btn > svg.chev { width: 15px; height: 15px; margin-left: -2px; }
.dt-btn.on { border-color: var(--accent); background: var(--blue-tint); color: var(--accent-deep); }
.dt-btn.on > svg { color: var(--accent); }
.dt-sort:focus-within { border-color: var(--accent); }
.dt-sort select { appearance: none; -webkit-appearance: none; border: 0; outline: none; background: transparent; font: inherit; color: inherit; padding: 0 24px 0 0; margin-right: -24px; cursor: pointer; }
.dt-sort > svg.chev { pointer-events: none; }
.dt-folders { display: none; }
.dt-folders span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-tools .viewtog { height: 46px; align-items: center; padding: 4px; background: #fff; border: 1.5px solid var(--line); }
.dash-tools .viewtog button { width: 36px; height: 36px; }
.dash-tools .viewtog button.on { background: var(--blue-tint); color: var(--accent-deep); box-shadow: none; }
.dash-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.achip { display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%; height: 32px; padding: 0 var(--s-2) 0 12px; border: 0; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--accent-deep); font-size: var(--fs-14); font-weight: 600; transition: background .15s; }
.achip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achip svg { width: 14px; height: 14px; flex: none; }
.achip svg:last-child { opacity: .65; }
.achip:hover { background: #d9e8fd; }
.achip:hover svg:last-child { opacity: 1; }
.achip-clear { border: 0; background: none; padding: 4px 6px; color: var(--muted); font-size: var(--fs-14); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.achip-clear:hover { color: var(--ink); }
.dash-pop svg { color: var(--accent); }
.dash-pop kbd { min-width: 26px; text-align: center; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface); }
.dash-main #list { margin-top: var(--s-5); }
.dash-main .grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px var(--s-5); }
.dash-empty { padding: 44px 24px 48px; }
.dash-empty p { font-size: var(--fs-16); max-width: 440px; }
.dash-empty .hero-ctas { flex-wrap: wrap; justify-content: center; gap: 10px; }
/* the pager under the maps: where we are, the pages, the page size (3 / 6 / 9 rows shown as map counts) */
.dash-main .dash-head { scroll-margin-top: 150px; }
.dpager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px 18px; margin-top: var(--s-6); padding-top: 20px; border-top: 1px solid var(--line-3); }
.dpg-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--fs-14); color: var(--muted); }
.dpg-info b { font-size: var(--fs-14); color: var(--ink-2); font-weight: 700; }
.dpg-nav { display: flex; align-items: center; gap: 8px; }
.dpg-nums { display: flex; align-items: center; gap: 4px; }
.dpg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: var(--r-pill); border: 1.5px solid transparent; background: transparent; color: var(--ink-2); font-size: var(--fs-14); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dpg-btn svg { width: 16px; height: 16px; flex: none; }
.dpg-num:hover, .dpg-step:hover:not(:disabled) { background: var(--surface); }
.dpg-num.on { background: var(--blue-tint); color: var(--accent-deep); }
.dpg-step { border-color: var(--line); background: #fff; padding: 0 16px; }
.dpg-step:hover:not(:disabled) { border-color: var(--line-2); background: #fff; }
.dpg-step:disabled { opacity: .45; cursor: default; }
.dpg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(10, 108, 240, .18); border-color: var(--accent); }
.dpg-gap { min-width: 22px; text-align: center; color: var(--muted); }
.dpg-size { justify-self: end; height: 42px; }
.dpg-size-l { color: var(--muted); font-weight: 500; }
.dpg-size select { font-weight: 700; }
/* map cards in the dashboard grids: the practice game's square tile rule (.pcard) must not reach them */
.grid-cards > .pcard, .list-rows > .pcard { aspect-ratio: auto; cursor: pointer; }
.grid-cards > .pcard { padding: 0; border: 0; border-radius: 0; background: none; transition: none; }
.grid-cards > .pcard:hover { transform: none; box-shadow: none; }
.list-rows > .pcard:hover { transform: none; }
.list-rows > .pcard .more { right: 14px; }
.list-rows > .pcard .body { padding-right: 120px; }
/* the text column may shrink below its content: a long source-file line ends in "…" inside the card (full text in
   its title), clear of the "İşlemler" button, instead of widening the row past its right edge */
.list-rows > .pcard { grid-template-columns: 180px minmax(0, 1fr); }
.list-rows > .pcard .body { min-width: 0; }
.list-rows > .pcard .src { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fside > :not(.fside-list) { flex: none; }
/* the header takes two rows up to 1360px wide: the panel stays clear of it */
@media (max-width: 1360px) { .fside { top: 136px; max-height: calc(100vh - 156px); } }
@media (max-width: 1120px) { .dash-lib { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; } }
@media (max-width: 960px) {
  .dash-lib { grid-template-columns: minmax(0, 1fr); }
  .fside { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; padding: 18px 12px 16px; border-radius: 0 var(--r-28) var(--r-28) 0; background: #fff; box-shadow: 0 24px 70px rgba(20, 22, 58, .24); transform: translateX(-104%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; }
  .dash-lib.drawer-open .fside { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .fside-x { display: inline-grid !important; }
  .fside-q { background: var(--surface); border-color: transparent; }
  .fitem-btn { padding-top: 10px; padding-bottom: 10px; }
  .fitem-btn:hover { background: var(--surface); }
  .fitem.on .fitem-btn { background: var(--blue-tint); box-shadow: none; color: var(--accent-deep); }
  .fside-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(20, 22, 58, .34); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .dash-lib.drawer-open .fside-scrim { opacity: 1; pointer-events: auto; }
  .dt-folders { display: inline-flex; max-width: 240px; }
  body.dash-drawer { overflow: hidden; }
}
@media (max-width: 640px) {
  .fside { top: auto; right: 0; width: auto; max-height: 84vh; border-radius: var(--r-28) var(--r-28) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateY(104%); }
  .fside::before { content: ''; flex: none; width: 42px; height: 5px; margin: -6px auto 4px; border-radius: var(--r-pill); background: var(--line-2); }
  .dash-crumb { font-size: var(--fs-24); }
  .crumb-root { font-size: var(--fs-16); }
  .crumb-sep { font-size: var(--fs-18); }
  .dash-count { font-size: var(--fs-14); }
  .dsearch { flex-basis: 100%; height: 48px; }
  .dsearch kbd { display: none; }
  .dt-right { width: 100%; }
  .dt-folders { flex: 1 1 auto; min-width: 0; max-width: none; }
  .dt-btn { padding: 0 var(--s-3); }
  #filters, .dt-sort { width: 46px; padding: 0; justify-content: center; flex: none; }
  #filters span, #filters > svg.chev { display: none; }
  .dt-sort select { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; opacity: 0; }
  .dt-sort > svg.chev { display: none; }
  .list-rows > .pcard { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .list-rows > .pcard .body { padding-right: 44px; }
  .list-rows > .pcard .more span { display: none; }
  .list-rows > .pcard .more { padding: 0 var(--s-2); right: 10px; }
  .dpager { grid-template-columns: minmax(0, 1fr) auto; margin-top: var(--s-5); }
  .dpg-nav { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .dpg-nav:empty { display: none; }
  .dpg-step { padding: 0; width: 42px; }
  .dpg-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dpg-btn { min-width: 38px; padding: 0 8px; }
  .dpg-nums { gap: 2px; }
  .dpg-gap { min-width: 14px; }
  .dpg-size-l { display: none; }
  .dpg-size { width: auto; padding: 0 14px; }
  .dpg-size select { position: static; width: auto; opacity: 1; padding: 0 24px 0 0; margin-right: -24px; }
  .dpg-size > svg.chev { display: block; }
}
@media (max-width: 960px) and (min-width: 641px) { .dpg-step span { display: none; } .dpg-step { padding: 0 12px; } }

/* ------------------------------------------------------------------ reference pictures (new map) */
.refs-sec { margin-top: var(--s-5); padding-top: var(--s-5); 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: var(--fs-18); }
.refs-head h3 svg { width: 20px; height: 20px; color: var(--accent); }
.refs-head p { margin: 0; font-size: var(--fs-14); 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: var(--r-12); 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: var(--fs-13); }
.ref-drop { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: var(--s-5); 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: var(--fs-13); }
.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: var(--fs-13); margin: 0; }
.revise-note { margin: 0; font-size: var(--fs-13); color: var(--teal-ink); background: var(--teal-tint); border-radius: var(--r-12); padding: 8px 10px; }
.brief-box summary { cursor: pointer; font-size: var(--fs-14); color: var(--muted); font-weight: 600; padding: 4px 0; }
.brief-box[open] summary { margin-bottom: 8px; }
.hidden { display: none !important; }
.review-warn { padding: 12px 14px; border-radius: var(--r-md); background: #fff7ed; border: 1px solid #fed7aa; font-size: var(--fs-13); color: #7c2d12; }
.review-warn ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ================================================================ 2026-11 update */
/* Foramind text / box nodes in the editor: drawn as Foramind draws them */
.canvas .node.fm-text { display: block; }
.canvas .node.fm-text .fm-box { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: max-content; white-space: normal; overflow-wrap: break-word; pointer-events: none; }
.canvas .node.fm-text.sel { outline-offset: 4px; border-radius: var(--r-12); }
.canvas .node.rev-hl { outline: 3px dashed var(--violet); outline-offset: 8px; border-radius: var(--r-12); }
.fm-text-prev { padding: 14px 16px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-16); }

/* project top bar: the Map / Presentation switch in the middle, clearly visible */
/* the tabs sit in the exact middle on every tab of a project: the two side columns always share the rest equally
   (minmax(0, 1fr) both), so nothing beside the tabs can push them. The title ends in "…" (whole title on hover);
   the buttons on the right drop their labels (icon + title) only when their half is too narrow for them
   (app.js projRightFit: .compact, then .tight).
   What belongs to one tab only (the map's Foramind sync line and "Foramind'dan güncelle") lives in that tab. */
.proj-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "left tabs right"; column-gap: 14px; }
.proj-top .pt-left { grid-area: left; display: flex; align-items: center; gap: 12px; min-width: 0; }
.proj-top .pt-left .title { min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-top .pt-left .title:focus { text-overflow: clip; }
.proj-top .pt-right { grid-area: right; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.proj-top .pt-right.compact { gap: 8px; }
.proj-top .pt-right.compact .btn > span { display: none; }
.proj-top .pt-right.compact .btn { padding: 8px 10px; }
.proj-top .pt-right.tight .save-state, .proj-top .pt-right.tight .pres-chip .mini-bar { display: none; }
.proj-top > .proj-tabs, .proj-top > .ov-mid { grid-area: tabs; }
.proj-tabs { padding: 5px; gap: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-3); }
.proj-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; font-size: 15.5px; }
.proj-tabs a svg { width: 18px; height: 18px; }
.proj-tabs a.on { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(10, 108, 240, .28); }
.proj-tabs a:not(.on):hover { color: var(--ink); background: #fff; }
/* each tab its own colour from the Foramind palette (Harita, Sunum, Pratik, HAD!, Flashcard), with a matching glow;
   the icon of a tab not open takes its colour on hover */
/* the module colours ("Foramind canlı"): face = the two gradient stops of a white-text surface (≥4.5:1 at its
   lightest point), glow = the coloured shadow, tint + ink = light badges and their text. Defined once here; the
   tabs, the Flashcard runtime (flashcards.css --fc-a…) and the Rehber use them */
:root {
  --m-map: #0039e6; --m-map-2: #1f5bff; --m-map-glow: #2e8bff; --m-map-tint: #e8efff; --m-map-ink: #0034d1;
  --m-present: #6a14f0; --m-present-2: #8a3cff; --m-present-glow: #a35cff; --m-present-tint: #f1e9ff; --m-present-ink: #5b0fd6;
  --m-practice: #00766c; --m-practice-2: #00857a; --m-practice-glow: #22c7b8; --m-practice-tint: #dcf6f3; --m-practice-ink: #00665d;
  --m-live: #c4007c; --m-live-2: #d4108a; --m-live-glow: #ff5aa0; --m-live-tint: #fde6f1; --m-live-ink: #a8006a;
  --m-cards: #c63c0c; --m-cards-2: #cc4a12; --m-cards-glow: #ffa238; --m-cards-tint: #ffeee2; --m-cards-ink: #ad340a;
}
.proj-tabs a { --tab: var(--accent); --tab2: var(--accent); --tab-glow: rgba(10, 108, 240, .28); }
.proj-tabs a:nth-child(1) { --tab: var(--m-map); --tab2: var(--m-map-2); --tab-glow: color-mix(in srgb, var(--m-map-glow) 40%, transparent); }
.proj-tabs a:nth-child(2) { --tab: var(--m-present); --tab2: var(--m-present-2); --tab-glow: color-mix(in srgb, var(--m-present-glow) 40%, transparent); }
.proj-tabs a:nth-child(3) { --tab: var(--m-practice); --tab2: var(--m-practice-2); --tab-glow: color-mix(in srgb, var(--m-practice-glow) 40%, transparent); }
.proj-tabs a:nth-child(4) { --tab: var(--m-live); --tab2: var(--m-live-2); --tab-glow: color-mix(in srgb, var(--m-live-glow) 40%, transparent); }
.proj-tabs a:nth-child(5) { --tab: var(--m-cards); --tab2: var(--m-cards-2); --tab-glow: color-mix(in srgb, var(--m-cards-glow) 40%, transparent); }
.proj-tabs a.on { background: linear-gradient(135deg, var(--tab), var(--tab2)); box-shadow: 0 6px 16px var(--tab-glow); }
.proj-tabs a:not(.on):hover svg { color: var(--tab); }
/* under 1100px two rows: logo + title + icon buttons on top, the tabs below at full width (they scroll
   sideways when they do not fit, with a soft fade on the side that has more) */
@media (max-width: 1100px) {
  .proj-top { height: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "left right" "tabs tabs"; row-gap: 0; padding: 0; }
  .proj-top .pt-left { padding: 10px 0 10px 18px; min-height: 58px; }
  .proj-top .pt-right { padding: 10px 18px 10px 0; gap: 8px; }
  .proj-top .pt-right .btn > span { display: none; }
  .proj-top .pt-right .btn { padding: 8px 10px; }
  .proj-top > .proj-tabs { justify-self: center; max-width: calc(100% - 28px); margin: 0 14px 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .proj-top > .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-top > .proj-tabs a { flex: none; white-space: nowrap; }
  .proj-top > .proj-tabs.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .proj-top > .proj-tabs.fade-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); }
  .proj-top > .proj-tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
  .proj-top > .ov-mid { display: none; }
}
@media (max-width: 760px) {
  .proj-top .pt-left { padding-left: 12px; min-height: 54px; }
  .proj-top .pt-right { padding-right: 12px; gap: 6px; }
  .proj-top > .proj-tabs { max-width: calc(100% - 20px); margin: 0 10px 8px; }
  .proj-top > .proj-tabs a { padding: 8px 14px; font-size: 14.5px; gap: 7px; }
}
/* a phone held upright: all five tabs at once, each its icon over a short label (no sideways scrolling) */
@media (max-width: 560px) {
  .proj-top > .proj-tabs, .proj-top > .proj-tabs.fade-l, .proj-top > .proj-tabs.fade-r { justify-self: stretch; max-width: none; margin: 0 10px 8px; padding: 4px; gap: 2px; border-radius: 18px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .proj-top > .proj-tabs a { flex: 1 1 auto; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 14px; font-size: 12px; line-height: 1.15; }
  .proj-top > .proj-tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .proj-top > .proj-tabs a svg { width: 20px; height: 20px; }
}
/* a phone on its side: one short row (title · tabs · buttons) so the page keeps its height */
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .proj-top { grid-template-columns: minmax(0, 1fr) minmax(0, max-content) auto; grid-template-areas: "left tabs right"; column-gap: 10px; }
  .proj-top .pt-left { min-height: 0; padding: 6px 0 6px max(12px, env(safe-area-inset-left, 0px)); }
  .proj-top .pt-right { padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px 0; }
  .proj-top > .proj-tabs { min-width: 0; max-width: none; margin: 6px 0; padding: 4px; }
  .proj-top > .proj-tabs a { padding: 6px 12px; font-size: 13.5px; gap: 6px; }
}
/* the page is as tall as what the phone really shows (iOS: 100vh runs under the toolbar) */
@supports (height: 100dvh) { .proj { height: 100dvh; } }
@media (pointer: coarse) { .proj-tabs a { min-height: 44px; } }

/* inspector */
.insp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspector .lvl { display: inline-flex; padding: 4px 12px; border-radius: var(--r-pill); background: var(--violet-tint); color: var(--violet-ink); font-size: var(--fs-13); font-weight: 700; }
.cap-row { display: flex; gap: 8px; }
.cap-row .input { flex: 1; }
.rev-box { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; }
.rev-box h5 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 var(--fs-16) var(--display); color: var(--ink); }
.rev-box h5 svg { width: 18px; height: 18px; color: var(--violet); }
.paste-zone { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border: 1.5px dashed var(--line-3); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2, var(--ink)); text-align: center; cursor: pointer; outline: none; transition: border-color .15s, background .15s; }
.paste-zone svg { width: 22px; height: 22px; color: var(--violet); }
.paste-zone b { font-size: var(--fs-14); }
.paste-zone small { font-size: var(--fs-12); opacity: .7; }
.paste-zone:hover, .paste-zone:focus, .paste-zone.over { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 7%, transparent); }
.paste-zone.has { position: relative; padding: 10px; border-style: solid; }
.paste-zone.has img { max-width: 100%; max-height: 160px; border-radius: var(--r-8); }
.paste-zone .paste-x { position: absolute; top: 6px; right: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.rev-given { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--fs-12); color: var(--ink-2, var(--ink)); }
.rev-given img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-8); border: 1px solid var(--line-3); background: #fff; }
.pic-add .rev-go .btn { flex: 1 1 auto; }
.rev-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.count-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface); }
.count-seg button { border: 0; background: none; padding: 6px var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; color: var(--ink-3); }
.count-seg button.on { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.revise-hint { font-size: var(--fs-13); margin: 0; line-height: 1.45; }
.node-queue:empty { display: none; }
.node-queue h5 { margin: 0 0 6px; font: 700 var(--fs-12) var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nq-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-13); margin-top: 6px; }
.nq-row svg { width: 16px; height: 16px; flex: none; }
.nq-row .nq-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-row em { font-style: normal; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nq-row.done { background: var(--ok-tint); } .nq-row.done em, .nq-row.done svg { color: var(--ok); }
.nq-row.error { background: var(--danger-tint); } .nq-row.error em, .nq-row.error svg { color: var(--danger); }

/* revision results: before -> after on the left of the map */
.rev-dock { position: absolute; left: 16px; top: 16px; bottom: 76px; z-index: 6; display: flex; flex-direction: column; justify-content: flex-start; pointer-events: none; }
.rev-dock > * { pointer-events: auto; }
.rev-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: var(--r-pill); background: var(--violet); color: #fff; font-weight: 600; font-size: var(--fs-14); box-shadow: 0 10px 30px rgba(90, 43, 176, .3); }
.rev-pill.busy { background: #fff; color: var(--ink-2); box-shadow: 0 8px 24px rgba(20, 22, 58, .14); }
.rev-pill svg { width: 17px; height: 17px; }
.rev-panel { width: min(500px, calc(100vw - 480px)); min-width: 320px; overflow-x: hidden; max-height: 100%; overflow-y: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(20, 22, 58, .28); padding: 18px; display: grid; gap: 14px; animation: revIn .3s var(--ease); }
@keyframes revIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.rev-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rev-panel header .tag svg { width: 14px; height: 14px; }
.rev-panel h4 { font-size: var(--fs-20); margin-top: 8px; }
.rev-ins { margin: 4px 0 0; color: var(--ink-3); font-size: var(--fs-14); font-style: italic; }
.rev-cmp { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.6fr); align-items: center; gap: 10px; }
.rev-col { display: grid; gap: 6px; min-width: 0; }
.rev-k { font: 700 var(--fs-12) var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.rev-arrow { font-size: var(--fs-24); color: var(--violet); font-weight: 700; }
.rev-cands { display: grid; gap: 8px; grid-template-columns: 1fr; }
.rev-cands.n3 { grid-template-columns: repeat(3, 1fr); }
.rev-cands.n5 { grid-template-columns: repeat(3, 1fr); }
.rev-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border: 2px solid var(--line-3); border-radius: var(--r-12); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.rev-img { overflow: hidden; min-width: 0; }
.rev-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rev-img:hover { border-color: var(--accent); transform: translateY(-1px); }
.rev-col.before .rev-img:hover { border-color: var(--ink-3); }
.rev-use { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: var(--fs-12); font-weight: 700; text-align: center; opacity: 0; transition: opacity .15s; }
.rev-col.before .rev-use { background: var(--ink-2); }
.rev-img:hover .rev-use, .rev-img:focus-visible .rev-use { opacity: 1; }
.rev-note { margin: 0; font-size: var(--fs-13); }
.rev-panel footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rev-nav { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }

/* wizard: material or prompt */
.src-tabs { display: inline-flex; gap: 6px; padding: var(--s-1); margin-bottom: 18px; border-radius: var(--r-pill); background: var(--surface); }
.src-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: var(--s-2) 20px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-14); color: var(--ink-3); }
.src-tabs button svg { width: 18px; height: 18px; }
.src-tabs button.on { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.prompt-box { display: grid; gap: 10px; }
.prompt-box textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.prompt-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-14); }
.prompt-hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--violet); }
.src-tabs button:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 560px) {      /* three tabs side by side on a phone: equal parts, the icon over the word */
	.src-tabs { display: flex; width: 100%; border-radius: var(--r-md); }
	.src-tabs button { flex: 1 1 0; flex-direction: column; gap: 4px; padding: var(--s-2) 6px; border-radius: var(--r-12); font-size: var(--fs-13); line-height: 1.2; text-align: center; min-height: 56px; justify-content: center; }
}

/* wizard: "Yapıyı kur", the outline editor (rows indented by level; the item being edited shows its tools) */
.st-box { display: grid; gap: var(--s-3); }
.st-intro { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--violet-tint); color: var(--ink-2); font-size: var(--fs-14); line-height: 1.45; }
.st-intro svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--violet); }
.st-center { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.st-center .st-cin { font-weight: 700; font-size: var(--fs-18); }
.st-cnote { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); }
.st-cnote svg { width: 14px; height: 14px; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-1); }
.st-head b { font-size: var(--fs-14); color: var(--ink-2); }
.st-count { font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-count.over { color: var(--danger, #c0392b); font-weight: 700; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-row { --step: 26px; position: relative; margin-left: calc(var(--lv) * var(--step)); border-radius: var(--r-12); }
.st-row::before { content: ''; position: absolute; left: calc(-1 * var(--step) + 9px); top: -6px; bottom: 50%; width: calc(var(--step) - 10px); border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); border-bottom-left-radius: 8px; opacity: calc(min(var(--lv), 1)); pointer-events: none; }
.st-line { display: flex; align-items: center; gap: var(--s-2); }
.st-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--blue-tint); }
.st-dot.lv2 { width: 10px; height: 10px; background: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.st-dot.lv3 { width: 8px; height: 8px; background: var(--muted); box-shadow: 0 0 0 3px var(--surface); }
.st-row .st-in { flex: 1; min-width: 0; }
.st-row:not(.on) .st-in:not(:focus) { border-color: var(--line); }
.st-notebtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-12); background: transparent; color: var(--faint); }
.st-notebtn svg { width: 18px; height: 18px; }
.st-notebtn:hover, .st-notebtn.on { color: var(--violet); background: var(--violet-tint); }
.st-notebtn:focus-visible, .st-tool:focus-visible { outline: none; box-shadow: var(--focus); }
.st-row .st-note { margin: 6px 0 0 20px; width: calc(100% - 20px); min-height: 0; font-size: var(--fs-14); resize: vertical; }
.st-box > .st-center .st-note { font-size: var(--fs-14); resize: vertical; min-height: 0; }
.st-tools { display: none; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px 20px; }
.st-row.on .st-tools { display: flex; }
.st-tool { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font: 600 var(--fs-13)/1 var(--body); }
.st-tool svg { width: 14px; height: 14px; }
.st-tool:hover:not(:disabled) { background: var(--blue-tint); color: var(--accent-deep); }
.st-tool[data-act="del"]:hover:not(:disabled) { background: #fdecea; color: #b3261e; }
.st-tool:disabled { opacity: .4; cursor: default; }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.st-paste { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.st-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-14); line-height: 1.5; resize: vertical; }
.st-paste-sub { margin: 0; font-size: var(--fs-13); }
.st-paste-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.st-keys { margin: 0; font-size: var(--fs-13); }
@media (hover: none) { .st-keys { display: none; } }      /* a touch screen: the buttons do it */
@media (max-width: 560px) {
	.st-row { --step: 14px; }
	.st-center { padding: var(--s-3); }
	.st-tool span { display: none; }                      /* the icons alone, each a 40px target with its name for screen readers */
	.st-tool { min-width: 40px; min-height: 40px; justify-content: center; padding: 0; font-size: var(--fs-16); }
	.st-tools { margin-left: 0; gap: 6px; }
	.st-row .st-note { margin-left: 0; width: 100%; }
	.st-actions .btn { flex: 1 1 auto; }
}
.clar { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-tint); font-size: var(--fs-14); }
.clar svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.clar.ok { background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.clar.ask { display: grid; gap: 14px; background: var(--violet-tint); }
.clar-head { display: flex; gap: 10px; align-items: flex-start; }
.clar-head svg { color: var(--violet); }
.clar-head p { margin: 2px 0 0; color: var(--ink-2); }
.clar-q { border: 0; margin: 0; padding: 14px; border-radius: var(--r-12); background: #fff; display: grid; gap: 10px; }
.clar-q legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: var(--fs-16); }
.clar-opts { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.chip-opt { border: 1.5px solid var(--line); background: #fff; padding: var(--s-2) 14px; border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s; }
.chip-opt:hover { border-color: var(--line-2); }
.chip-opt.on { border-color: var(--accent); background: var(--blue-tint); color: var(--accent-deep); font-weight: 600; }
.draft-note { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; background: var(--blue-tint); border-color: transparent; }
.draft-note h3 { font-size: var(--fs-20); } .draft-note p { margin: 4px 0 10px; color: var(--ink-2); }
.draft-kept { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-12); background: var(--ok-tint); color: var(--ok); font-size: var(--fs-14); font-weight: 600; margin: 0 0 12px; }
.draft-kept svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

/* wizard: drawing profile */
.prof-row { display: flex; gap: 10px; }
.prof-row select { flex: 1; }
.prof-field small a { font-weight: 600; }

/* wizard: look */
.look-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-5) 32px; }
.look-main { display: grid; gap: var(--s-5); align-content: start; }
.look-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.look-side .field { position: sticky; top: 90px; }
.field-sub { display: block; margin: -2px 0 8px; font-size: var(--fs-13); }
.style-pick { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; }
.style-pick:hover { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .08); }
.style-pick .sp-img { width: 96px; height: 72px; flex: none; border-radius: var(--r-12); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.style-pick .sp-img img { width: 100%; height: 100%; object-fit: cover; }
.style-pick .sp-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.style-pick .sp-t b { font-size: var(--fs-16); }
.style-pick .sp-t small { color: var(--muted); font-size: var(--fs-13); }
.style-pick .sp-open { pointer-events: none; }
.prof-style-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-12); background: var(--violet-tint); color: var(--violet-ink) !important; margin: 0; }
.prof-style-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.card-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.card-opts.compact { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.card-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border: 1.5px solid var(--line); border-radius: var(--r-12); background: #fff; transition: border-color .15s, box-shadow .15s; }
.card-opt:hover { border-color: var(--line-2); }
.card-opt.on { border-color: var(--accent); background: #f7faff; box-shadow: 0 0 0 4px rgba(10, 108, 240, .1); }
.card-opt b { font-size: var(--fs-13); font-weight: 600; text-align: center; line-height: 1.2; }
.csw { position: relative; display: grid; place-items: center; width: 70px; height: 34px; }
.csw i { position: relative; z-index: 1; font: 700 var(--fs-14) Poppins, var(--display); font-style: normal; color: #1F3B3A; }
.csw::before { content: ''; position: absolute; inset: 4px 6px; }
.csw.c-none::before { display: none; }
.csw.c-paper::before { background: #f5eede; box-shadow: 2px 3px 5px rgba(60, 40, 20, .18); transform: rotate(-1deg); border-bottom: 2px solid #c4a066; }
.csw.c-ribbon::before { background: #ce343e; inset: 6px 12px; box-shadow: -9px 4px 0 -2px #961c28, 9px 4px 0 -2px #961c28; }
.csw.c-ribbon i, .csw.c-banner i, .csw.c-board i { color: #fff; }
.csw.c-tag::before { background: #dec496; clip-path: polygon(0 50%, 18% 0, 100% 0, 100% 100%, 18% 100%); }
.csw.c-sticky::before { background: #ffe678; border-top: 5px solid #f6d65c; transform: rotate(-2deg); box-shadow: 1px 3px 4px rgba(0, 0, 0, .12); }
.csw.c-banner::before { background: #203a60; border-left: 4px solid #d6a840; clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%); }
.csw.c-tape::before { background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .14); }
.csw.c-tape::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 6px; background: rgba(126, 196, 186, .85); transform: rotate(-35deg); }
.csw.c-stamp::before { border: 2.5px solid #b02830; border-radius: var(--r-8); transform: rotate(-3deg); }
.csw.c-stamp i { color: #b02830; }
.csw.c-pill::before { background: #fff; border: 1.5px solid #d8dee8; border-radius: var(--r-pill); box-shadow: 0 2px 5px rgba(0, 0, 0, .08); }
.csw.c-board::before { background: #2c3e38; border: 3px solid #96683c; border-radius: 4px; }
.hier-img { display: grid; place-items: center; min-height: 260px; padding: 18px; border-radius: var(--r-md); background: var(--surface) repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, .5) 14px 15px); }
.hier-img img { max-width: 100%; height: auto; }
.ai-check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); border: 1.5px solid var(--line-3); background: linear-gradient(135deg, #fff, var(--violet-tint)); }
.ai-check .aic-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r-12); background: #fff; color: var(--violet); box-shadow: var(--shadow-sm); }
.ai-check .aic-ico svg { width: 22px; height: 22px; }
.ai-check .aic-t { flex: 1; }
.ai-check h4 { font-size: var(--fs-18); display: flex; align-items: center; gap: 4px; }
.ai-check p { margin: 4px 0 0; color: var(--ink-3); font-size: var(--fs-14); line-height: 1.5; }
.ai-check .switch { margin-top: 8px; }
.ai-check.locked { cursor: pointer; background: var(--surface); }
.ai-check.locked .aic-ico { color: var(--muted); }
.ai-check.locked .switch { opacity: .45; }
.ai-check .aic-lock { display: flex; align-items: center; gap: 6px; color: var(--violet-ink); font-weight: 600; font-size: var(--fs-13); }
.ai-check .aic-lock svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .look-grid { grid-template-columns: 1fr; } .look-row { grid-template-columns: 1fr; } }

/* style library overlay */
.style-lib .lcard .lprev { aspect-ratio: 4 / 3; background: var(--surface); display: grid; place-items: center; }
.style-lib .lcard .lprev > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.style-lib .lcard:hover .lprev > img { transform: scale(1.04); }
.style-lib .lcard.locked .lprev > img { filter: saturate(.75); }
.style-lib .lcard .lk { top: 10px; left: auto; right: 10px; margin: 0; }
.style-lib .lib-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.style-lib .scur { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.style-lib .scur svg { width: 16px; height: 16px; }
.style-lib .snew { border-style: dashed; border-color: var(--line-2); }
.style-lib .snew .lprev { background: linear-gradient(135deg, var(--violet-tint), var(--blue-tint)); }
.style-lib .snew-ico { width: 56px; height: 56px; border-radius: var(--r-18); display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: var(--shadow-sm); }
.style-lib .snew-ico svg { width: 26px; height: 26px; }
.style-lib .sprev-wait { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-12); }
.style-lib .sprev-wait svg { width: 28px; height: 28px; }
.style-lib .sdel { width: 30px; height: 30px; }
.style-lib .sdel svg { width: 16px; height: 16px; }
.screate { margin-top: 14px; }
.screate-in { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-md); background: var(--surface); }
.screate-acts { display: flex; justify-content: flex-end; gap: 8px; }

/* drawing profiles page */
.prof-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.prof-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px; align-items: start; }
.prof-card .pc-img { width: 88px; height: 66px; border-radius: var(--r-12); overflow: hidden; background: var(--violet-tint); display: grid; place-items: center; color: var(--violet); }
.prof-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.prof-card .pc-img svg { width: 26px; height: 26px; }
.prof-card .pc-t { display: grid; gap: 4px; min-width: 0; }
.prof-card .pc-t b { font-size: var(--fs-18); }
.prof-card .pc-style { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--ink-3); }
.prof-card .pc-style svg { width: 14px; height: 14px; }
.prof-card .pc-rules { margin: 4px 0 0; font-size: var(--fs-13); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prof-card .pc-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* Foramind page */
.fm-head { align-items: center; }
.fm-maps-head { align-items: center; }
.fm-conn { padding: 18px var(--s-5); }

/* packages: Business = contact us */
.pcol.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: linear-gradient(160deg, #fff, var(--blue-tint)); }
.pcol.contact .pcontact-ico { width: 52px; height: 52px; border-radius: var(--r-18); display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); margin: 4px 0 6px; }
.pcol.contact .corp-feat { margin: 6px 0 auto; }
.pcol.contact .corp-note { font-size: var(--fs-12); line-height: 1.45; }
.pcol.contact .pcontact-ico svg { width: 24px; height: 24px; }
.pcol.contact .btn { margin-top: 12px; }

/* ---- 2026-11 (2) */
#wsteps button { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) 18px var(--s-2) 10px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-3); font-size: var(--fs-14); border: 0; background: transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
#wsteps button:hover { background: rgba(255,255,255,.7); color: var(--ink); }
#wsteps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#wsteps button b { width: 26px; height: 26px; border-radius: var(--r-8); display: grid; place-items: center; background: #fff; font-size: var(--fs-13); color: var(--muted); box-shadow: var(--shadow-sm); }
#wsteps button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
#wsteps button.on b { background: var(--teal-tint); color: var(--teal-ink); }
#wsteps button.done b { background: var(--ok-tint); color: var(--ok); }

.fm-quota .fq-acts { display: flex; align-items: center; gap: 8px; }
.fm-quota .fq-ref { width: 34px; height: 34px; }
.fm-quota .fq-ref svg { width: 17px; height: 17px; }
.fm-quota .fq-ref.spinning svg { animation: spin .8s linear infinite; }
.fm-quota.unl { grid-template-columns: auto 1fr auto auto; }
.fm-quota .fq-unl { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.fm-quota .fq-unl .inf { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 99px; background: var(--teal-tint); color: var(--teal-ink); }
.fm-quota .fq-unl .inf svg { width: 20px; height: 20px; }

.bg-jobs { display: inline-flex; align-items: center; gap: 8px; padding: var(--s-2) 12px; border-radius: var(--r-pill); background: var(--violet-tint, #f1ecff); color: var(--ink); font-size: var(--fs-13); font-weight: 600; text-decoration: none; max-width: 300px; white-space: nowrap; }
.bg-jobs .bgt { overflow: hidden; text-overflow: ellipsis; }
.bg-jobs b { color: var(--violet, #6d4ae8); font-variant-numeric: tabular-nums; }
.bg-jobs:hover { filter: brightness(.97); }
@media (max-width: 900px) { .bg-jobs .bgt { display: none; } }

.live-wrap { margin-top: 22px; border: 1px solid var(--line-3); border-radius: var(--r-lg, 20px); background: #fff; overflow: hidden; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-3); }
.live-head > div:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live-map { height: min(640px, 70vh); }
.live-map .node.fresh img { animation: livepop .7s var(--ease) both; }
@keyframes livepop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.canvas .node.ph { border-radius: var(--r-18); border: 2px dashed var(--line); background: repeating-linear-gradient(-45deg, #fafaff, #fafaff 10px, #f3f3fa 10px, #f3f3fa 20px); display: grid; place-items: center; }
.canvas .node.ph .ph-ring { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet, #6d4ae8); animation: spin .9s linear infinite; }

.hist-h { display: flex; align-items: center; gap: 8px; margin: var(--s-5) 0 10px; font-size: var(--fs-12); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hist-h svg { width: 16px; height: 16px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hrow { border: 1px solid var(--line-3); border-radius: var(--r-12); padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.hrow .h-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hrow .h-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-14); }
.hrow .h-kind svg { width: 15px; height: 15px; }
.hrow .h-when { font-size: var(--fs-12); color: var(--muted); }
.hrow .h-ins { margin: 0; font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2, #333); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hrow .h-ins.none { color: var(--muted); font-style: italic; }
.hrow .h-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-13); }
.hrow .h-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hrow .h-st svg { width: 14px; height: 14px; }
.hrow .h-n { color: var(--muted); }
.hrow.queued .h-st { color: var(--ink-3); }
.hrow.running { border-color: #d9cffd; background: #faf8ff; }
.hrow.running .h-st { color: var(--violet, #6d4ae8); }
.hrow.done { border-color: #bfe5cf; background: #f6fcf8; }
.hrow.done .h-st, .hrow.applied .h-st { color: var(--ok); }
.hrow.kept .h-st { color: var(--ink-3); }
.hrow.error { border-color: #f3c3c3; background: #fff8f8; }
.hrow.error .h-st, .hrow .h-err { color: var(--danger); }
.hrow .h-err { margin: 0; font-size: var(--fs-13); }
.hrow .h-thumbs { display: flex; gap: 6px; }
.hrow .h-thumbs img { width: 46px; height: 46px; object-fit: contain; background: var(--surface); border-radius: var(--r-8); }
.hrow .h-thumbs.one img { width: 64px; height: 64px; }
.hrow .btn { justify-self: start; }

.fm-relogin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-relogin > div { flex: 1; min-width: 220px; }
.fm-relogin p { margin: 4px 0 0; }

.acct-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-types button { display: grid; justify-items: start; gap: 3px; text-align: left; padding: 12px 14px; border-radius: var(--r-12); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); }
.acct-types button svg { width: 20px; height: 20px; color: var(--ink-3); margin-bottom: 4px; }
.acct-types button small { color: var(--muted); font-size: var(--fs-13); line-height: 1.35; }
.acct-types button.on { border-color: var(--accent); background: var(--teal-tint); box-shadow: 0 0 0 3px rgba(0, 0, 0, .02); }
.acct-types button.on svg { color: var(--accent); }
.who-org { display: flex !important; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-13); }
.who-org svg { width: 14px; height: 14px; }
.acct-card .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.mem-tabs { margin: 4px 0 18px; }
.mem-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.mem-tabs button svg { width: 16px; height: 16px; }
.mem-tabs em { font-style: normal; font-size: var(--fs-12); padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-3); }
.mem-list { display: grid; gap: 10px; }
.mem-list .mem-row { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto 90px 120px auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line-3); border-radius: var(--r-18); background: #fff; }
.mem-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--teal-tint); color: var(--teal-ink); }
.mem-who { display: grid; gap: 2px; min-width: 0; }
.mem-who b, .mem-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-stat { display: grid; font-size: var(--fs-12); color: var(--muted); }
.mem-stat b { font-size: var(--fs-14); color: var(--ink); }
.mem-acts { display: flex; gap: 8px; justify-content: flex-end; }
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger:hover { background: #fff1f1; }
.mem-empty { margin-top: 18px; }
.mem-filter { margin-bottom: 16px; }
.mem-filter select { max-width: 280px; }
.org-card { cursor: pointer; }
.org-by { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-13); color: var(--muted); }
.org-by svg { width: 14px; height: 14px; }
.mem-form { display: grid; gap: 12px; margin-top: 14px; }
@media (max-width: 760px) { .mem-row { grid-template-columns: auto 1fr auto; } .mem-stat, .mem-row .tag { display: none; } }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(14, 16, 40, .72); display: grid; grid-template-rows: auto 1fr; padding: 18px; gap: 12px; }
.lightbox .lb-head { display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 12px; }
.lightbox .lb-head .muted { color: rgba(255,255,255,.7); margin-left: 10px; }
.lightbox .lb-head .icon-btn { color: #fff; background: rgba(255,255,255,.12); }
.lightbox .lb-img { display: grid; place-items: center; min-height: 0; background: #fff; border-radius: var(--r-18); overflow: auto; }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: none; }
.lightbox.loaded .lb-img img { display: block; }
.lightbox.loaded .lb-img .spin-sm { display: none; }

/* ---- 2026-11 (3) */
.live-tools { display: flex; gap: 6px; }
.live-wrap:fullscreen, .live-wrap.pseudo-full { border-radius: 0; display: flex; flex-direction: column; background: #fff; }
.live-wrap.pseudo-full { position: fixed; inset: 0; z-index: 400; margin: 0; }
.live-wrap:fullscreen .live-map, .live-wrap.pseudo-full .live-map { flex: 1; height: auto; }

.mem-pkg { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 24px; align-items: center; margin-bottom: var(--s-5); }
.mem-pkg-t { display: flex; gap: 14px; align-items: flex-start; }
.mem-pkg-t h3 { margin: 0 0 6px; }
.mem-pkg-card .pcol { min-height: 0; }
@media (max-width: 860px) { .mem-pkg { grid-template-columns: 1fr; } }
#madd.locked { opacity: .65; }

.mem-table { display: grid; gap: 8px; }
.mem-table .mem-row { display: grid; grid-template-columns: minmax(220px, 1fr) 120px 90px 150px 210px; gap: 16px; align-items: center;
	padding: 12px 18px; border: 1px solid var(--line-3); border-radius: var(--r-18); background: #fff; }
.mem-table .mem-row.mem-hd { background: transparent; border: 0; padding: 0 18px; font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mem-table .mem-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mem-table .mem-who > div { display: grid; gap: 2px; min-width: 0; }
.mem-table .mem-who b, .mem-table .mem-who .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-table .mem-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.mem-table .mem-date { font-size: var(--fs-14); }
.mem-table .mem-acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.mem-table .icon-sp { display: inline-block; width: 36px; }
.mem-av.inv { background: var(--surface); color: var(--ink-3); }
.mem-av.inv svg { width: 18px; height: 18px; }
.mem-sub { margin: var(--s-5) 0 10px; font-size: var(--fs-16); }
@media (max-width: 860px) { .mem-table .mem-row { grid-template-columns: 1fr auto; } .mem-table .mem-row > :nth-child(2), .mem-table .mem-row > :nth-child(3), .mem-table .mem-row > :nth-child(4) { display: none; } .mem-table .mem-hd { display: none; } }

.pcard .ro-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: var(--s-1); padding: 4px var(--s-2); border-radius: var(--r-pill); background: rgba(255,255,255,.92); font-size: var(--fs-12); font-weight: 600; color: var(--ink-3); box-shadow: var(--shadow-sm); }
.pcard .ro-badge svg { width: 12px; height: 12px; }
.pcard .thumb { position: relative; }

.org-view .ov-title { display: grid; line-height: 1.25; min-width: 0; }
.org-view .ov-title b { font-size: var(--fs-18); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-view .ov-title .muted { font-size: var(--fs-13); }
.org-view .pt-left { gap: 14px; }
.org-view .pt-left .tag { display: inline-flex; align-items: center; gap: 5px; }
.org-view .pt-left .tag svg { width: 13px; height: 13px; }
.org-view .ov-body { flex: 1; display: flex; min-height: 0; }
.org-view .canvas-wrap { position: relative; flex: 1; min-height: 0; }
.org-view .ov-canvas { position: absolute; inset: 0; }
.org-view .zoombar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.12)); }
.org-view .zoombar span { min-width: 48px; text-align: center; font-size: var(--fs-13); font-variant-numeric: tabular-nums; }

.inv-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--violet-tint); color: var(--violet-ink); cursor: pointer; }
.inv-bell svg { width: 18px; height: 18px; }
.inv-bell b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 var(--s-1); border-radius: var(--r-pill); background: #e5484d; color: #fff; font-size: var(--fs-12); display: grid; place-items: center; }
.inv-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-3); font-size: var(--fs-14); }
.inv-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-12); background: var(--violet-tint); color: var(--violet-ink); font-size: var(--fs-14); margin: 4px 0 6px; }
.inv-note svg { width: 18px; height: 18px; flex: none; }
.acct-adm { display: grid; gap: 10px; margin-top: 10px; }
.acct-adm h4 { margin: 10px 0 0; }
.acct-adm .small-note { font-size: var(--fs-13); margin: 0; }

/* admin sign-in */
.fm-signin-badge.admin svg { width: 18px; height: 18px; color: var(--violet-ink); }
.admin-switch { margin: 16px 0 0; text-align: center; font-size: var(--fs-14); }
.admin-switch a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.admin-switch a svg { width: 15px; height: 15px; }

/* presentations / maps in progress, cancel */
.pres-run { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
	padding: 8px 10px; border-radius: var(--r-12); background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); font-size: var(--fs-13); font-weight: 600; }
.pres-run > span:first-child { display: inline-flex; align-items: center; gap: var(--s-2); }
.pres-run b { color: var(--violet-ink); font-variant-numeric: tabular-nums; }
.pres-run .mini-bar { grid-column: 1 / -1; }
.pres-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--violet-tint); color: var(--violet-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pres-chip .mini-bar { width: 70px; }
.pres-chip .link { border: 0; background: none; color: #c03a3a; font-weight: 700; cursor: pointer; padding: 0 0 0 4px; font-family: inherit; }
.cancel-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.btn.danger-ghost { color: var(--danger); border-color: #f0c4c4; }
.btn.danger-ghost:hover { background: var(--danger-tint); }
.btn.danger-ghost svg { width: 15px; height: 15px; }
.build-veil .btn.danger-ghost { margin-top: 14px; background: #fff; }
.build-veil .bv-leave { display: block; margin-top: 10px; font-size: var(--fs-12); }

/* the "Library" entry of the top bar and its menu */
.nav-lib { display: inline-flex; }
.nav-lib > button { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; padding: 8px 12px; border: 0; border-radius: var(--r-pill); background: none;
	color: var(--ink-2); font: 500 var(--fs-14) var(--body); cursor: pointer; }
.nav-lib > button svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.nav-lib > button svg:last-child { width: 14px; height: 14px; transition: transform .15s; }
.nav-lib > button[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.nav-lib > button:hover { background: var(--surface); }
.nav-lib > button.on { color: var(--accent-deep); background: var(--blue-tint); }
.nav-lib > button.on svg { opacity: 1; }
.nav-lib-menu { position: fixed; z-index: 150; width: 290px; padding: 8px; border-radius: var(--r-18); background: #fff; border: 1px solid var(--line-3);
	box-shadow: 0 18px 50px rgba(20, 22, 58, .16); display: grid; gap: 2px; }
.nav-lib-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-12); color: var(--ink); text-decoration: none; }
.nav-lib-menu a:hover { background: var(--surface); }
.nav-lib-menu a.on { background: var(--blue-tint); }
.nav-lib-menu .nl-ico { width: 38px; height: 38px; border-radius: var(--r-12); display: grid; place-items: center; background: var(--surface); color: var(--accent-deep); flex: none; }
.nav-lib-menu .nl-ico svg { width: 19px; height: 19px; }
.nav-lib-menu b { display: block; font-size: var(--fs-14); }
.nav-lib-menu small { display: block; font-size: var(--fs-13); color: var(--muted); margin-top: 1px; }
/* phones: a bottom tab bar (Haritalar, Kütüphane, Rehber, Daha fazla) instead of the top row of tabs;
   its menus open above it */
.tabbar { display: none; }
@media (max-width: 639px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  .topbar > .topnav { display: none; }
  .topbar { flex-wrap: nowrap; height: var(--head); padding-top: 0; }
  .topbar > .brand, .topbar > .grow, .topbar > .trial-pill, .topbar > .newbtn, .topbar > .dropdown { margin-bottom: 0; }
  .topbar > .helpbtn { display: none; }
  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line-3); }
  .tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px 4px; border: 0; border-radius: var(--r-12); background: none; color: var(--ink-3); font: 600 var(--fs-12) var(--body); text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; flex: none; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .on, .tabbar [aria-expanded="true"] { color: var(--accent-deep); font-weight: 700; }
  .tabbar .on svg { color: var(--accent); }
  .main { padding-bottom: calc(var(--tabbar-h) + 12px); }
  body:has(.tabbar) { --toast-y: calc(var(--tabbar-h) + 16px); }
  .tab-sheet.nav-lib-menu, .nav-lib-menu { max-height: calc(100vh - 120px); overflow-y: auto; }
}
/* the map's "Dışa aktar" menu: the same rows as the Library menu (icon tile, name, one line under it) */
.exp-menu { min-width: 300px; width: max-content; max-width: calc(100vw - 24px); display: grid; gap: 2px; }
.exp-menu a { gap: 12px; padding: 10px 12px; border-radius: var(--r-12); }
.exp-menu .nl-ico { width: 38px; height: 38px; border-radius: var(--r-12); display: grid; place-items: center; flex: none; }
.exp-menu .nl-ico svg { width: 19px; height: 19px; color: inherit; }
.exp-menu a > span:last-child { min-width: 0; }
.exp-menu b { display: block; font-size: var(--fs-14); font-weight: 600; white-space: nowrap; }
.exp-menu small { display: block; font-size: var(--fs-13); color: var(--muted); margin-top: 1px; white-space: nowrap; }

/* the picture style library page */
.lib-page .lib { width: 100%; height: calc(100vh - 170px); min-height: 520px; opacity: 1; transform: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line-3); }
.styles-page { padding-top: 24px; }
.style-big { margin-top: 12px; border-radius: var(--r-18); overflow: hidden; background: var(--surface); }
.style-big img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .lib-page .lib-body { grid-template-columns: 1fr; } .lib-page .lib-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-3); } }
.nav-lib-menu { width: 310px; }
.nav-lib-menu a > span:last-child { min-width: 0; }
.nav-lib-menu small { white-space: normal; line-height: 1.35; }

/* presentation units next to "Create presentation" */
.units-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--accent-deep); font-size: var(--fs-14); font-weight: 600; }
.units-chip svg { width: 16px; height: 16px; }
.units-chip.empty { background: var(--danger-tint); color: var(--danger); }
.units-chip a { color: inherit; text-decoration: underline; font-weight: 700; }
.stage-actions { align-items: center; }
/* the admin's public link of the presentation (Sunum tab, under the stage's buttons; only admins get it) */
.plink { margin-top: var(--s-3); margin-bottom: 72px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-2); display: grid; gap: 10px; }
.plink-h { display: flex; gap: 10px; align-items: flex-start; }
.plink-ico { width: 32px; height: 32px; border-radius: var(--r-12); display: grid; place-items: center; background: var(--blue-tint); color: var(--accent-deep); flex: none; }
.plink-ico svg { width: 17px; height: 17px; }
.plink-h b { display: block; font-size: var(--fs-14); }
.plink-h small { display: block; font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.plink-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plink-url { flex: 1 1 260px; min-width: 0; min-height: 34px; padding: 6px 12px; font: 500 var(--fs-13) ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; }
.plink-row .btn svg { width: 15px; height: 15px; }

/* locked songs: matte cover, a big lock in the middle */
.tcard.locked .tc-art .cov { filter: grayscale(.85) saturate(.4) brightness(.92); opacity: .55; }
.tcard.locked .tc-art::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .35); z-index: 0; }
.tcard .lk.big { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: 52px; height: 52px; z-index: 2; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 6px 18px rgba(20, 22, 58, .18); }
.tcard .lk.big svg { width: 24px; height: 24px; }
.tcard.locked .tc-meta b { color: var(--ink-3); }
.tcard .tc-open { font-size: var(--fs-12); color: var(--muted); line-height: 1.35; }

/* the Foramind maps overlay */
.lib.fm-lib { width: min(860px, 100%); height: min(760px, 100%); grid-template-rows: auto 1fr auto; }
.fm-lib .fm-h1 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-24); }
.fm-lib .fm-h1 img { width: 30px; height: 30px; }
.fm-lib .lib-head .search { max-width: 240px; }
.fm-over-body { overflow-y: auto; padding: 18px 24px 24px; min-height: 0; }
.fm-over-body #fmconn { margin-bottom: 16px; }
.fm-pager { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line-3); flex-wrap: wrap; }
.fm-pager .fm-pages { display: flex; gap: 4px; margin: 0 auto; }
.fm-pager .fm-pages button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-12); border: 0; background: none; font: 600 var(--fs-14) var(--body); color: var(--ink-2); cursor: pointer; }
.fm-pager .fm-pages button:hover { background: var(--surface); }
.fm-pager .fm-pages button.on { background: var(--blue-tint); color: var(--accent-deep); }
.fm-pager .fm-pages span { align-self: center; color: var(--muted); padding: 0 4px; }
.fm-pager .fm-range { font-size: var(--fs-13); }
.fm-pager .btn svg { width: 15px; height: 15px; }
.fm-pager .flip { display: inline-flex; transform: scaleX(-1); }
@media (max-width: 640px) { .fm-lib .lib-head { flex-wrap: wrap; } .fm-lib .lib-head .search { max-width: none; flex: 1 1 100%; order: 5; } .fm-pager .fm-range { display: none; } }

/* the Foramind Studio logo (the word "Studio" is in the picture) */
.brand img.logo { height: 44px; }
.topbar .brand img.logo { height: 42px; }
.auth .brand img.logo { height: 52px; }

/* the picture style library page: no frame of its own, the page itself scrolls */
.lib-page .lib { display: block; width: 100%; height: auto; min-height: 0; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; }
.lib-page .lib-head { padding: 8px 0 var(--s-5); border-bottom: 1px solid var(--line-3); }
.lib-page .lib-body { display: grid; grid-template-columns: 220px 1fr; align-items: start; min-height: 0; }
.lib-page .lib-cats { position: sticky; top: 110px; overflow: visible; border-right: 0; padding: 18px 14px 18px 0; }
.lib-page .lib-grid { overflow: visible; padding: 20px 0 40px 20px; }
@media (max-width: 760px) {
	.lib-page .lib-body { grid-template-columns: 1fr; }
	.lib-page .lib-cats { position: static; flex-direction: row; overflow-x: auto; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
	.lib-page .lib-grid { padding-left: 0; }
}

/* wizard: what the map is for; comprehensive maps and sub-maps */
.goal-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice.goal { align-items: flex-start; text-align: left; }
.choice.goal .g-ico { width: 34px; height: 34px; border-radius: var(--r-12); display: grid; place-items: center; background: var(--surface); color: var(--accent-deep); margin-bottom: 6px; }
.choice.goal.on .g-ico { background: #fff; }
.choice.goal .g-ico svg { width: 18px; height: 18px; }
.dens-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.split-ask { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-18); background: var(--violet-tint); }
.split-ask > b { display: block; color: var(--violet-ink); }
.split-ask p { margin: 4px 0 12px; font-size: var(--fs-14); }
.split-grid { grid-template-columns: 1fr 1fr; }
.split-grid .choice { background: #fff; }
@media (max-width: 640px) { .split-grid { grid-template-columns: 1fr; } }
.sub-tag { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px 8px; border-radius: var(--r-pill); background: var(--violet-tint); color: var(--violet-ink); font-size: var(--fs-12); font-weight: 600; }
.sub-tag svg { width: 12px; height: 12px; }
/* a sub-map's door node: a soft violet ring breathes around it and a "Detay haritası" badge with the layers icon
   sits on its top-right corner (a button in the editor: it opens the detail map) */
.canvas .node.is-door.door-open::after { content: ''; position: absolute; inset: -6px; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 calc(2px * var(--cam-inv, 1)) rgba(124, 58, 237, .55), 0 0 calc(18px * var(--cam-inv, 1)) calc(4px * var(--cam-inv, 1)) rgba(124, 58, 237, .28); animation: door-breathe 2.6s ease-in-out infinite; }
@keyframes door-breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }
.canvas .node .sub-door { position: absolute; right: -10px; top: -14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 0; border-radius: var(--r-pill); background: linear-gradient(135deg, #7c3aed, #5b2fd0); color: #fff; font: 700 13px/1 var(--body); white-space: nowrap; box-shadow: 0 4px 14px rgba(91, 47, 208, .4), 0 0 0 2px #fff; pointer-events: none; scale: var(--cam-inv, 1); transform-origin: 100% 0; }
.canvas .node .sub-door svg { width: 16px; height: 16px; flex: none; }
.canvas .node .sub-door::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(124, 58, 237, .6); animation: door-ping 2.6s ease-out infinite; pointer-events: none; }
@keyframes door-ping { 0% { opacity: .9; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.canvas .node button.sub-door { pointer-events: auto; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; }
.canvas .node button.sub-door:hover, .canvas .node button.sub-door:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 20px rgba(91, 47, 208, .5), 0 0 0 2px #fff; }
.canvas .node button.sub-door:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { .canvas .node.is-door.door-open::after, .canvas .node .sub-door::before { animation: none; } .canvas .node .sub-door::before { opacity: 0; } .canvas .node.is-door.door-open::after { opacity: .8; } }

.sub-door-box { display: grid; gap: 8px; justify-items: start; padding: 14px; margin-bottom: 14px; border-radius: var(--r-12); background: var(--violet-tint); }
.sub-door-box p { margin: 0; font-size: var(--fs-14); }

/* the wizard over a map ("a new sub-map from this topic") and a main map with its sub-maps */
.wiz-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; overflow-y: auto; padding: 32px 16px;
	background: rgba(20, 22, 58, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.wiz-ov.on { opacity: 1; }
.wiz-ov-box { width: min(980px, 100%); background: var(--bg, #fff); border-radius: var(--r-18); padding: var(--s-5) 24px var(--s-5); box-shadow: 0 30px 80px rgba(20, 22, 58, .25);
	transform: translateY(10px); transition: transform .2s ease; }
.wiz-ov.on .wiz-ov-box { transform: none; }
.wiz-ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wiz-ov-head h2 { margin: 6px 0 2px; font-size: var(--fs-24); }
.wiz-ov-head p { margin: 0; }
.sub-src { display: grid; gap: 18px; }
.sub-src-node { padding: 16px 18px; border-radius: var(--r-18); background: var(--violet-tint); }
.sub-src-node h3 { margin: 8px 0 4px; }
.sub-src-node p { margin: 0; }
.sub-files { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.sub-files li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-14); }
.sub-files svg { width: 16px; height: 16px; flex: none; }
.sub-make p { margin: 0 0 10px; }
.fam-box { width: min(1100px, 100%); }
.fam-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-18);
	border: 1px solid var(--line-3); cursor: pointer; }
.fam-main:hover { box-shadow: var(--shadow); }
.fam-main .thumb { aspect-ratio: 16 / 10; border-radius: var(--r-12); overflow: hidden; background: var(--surface); }
.fam-main .thumb img { width: 100%; height: 100%; object-fit: contain; }
.fam-main .t { display: block; font-size: var(--fs-20); margin: 8px 0 14px; }
.fam-h { margin: var(--s-5) 0 12px; font-size: var(--fs-16); }
.fam-grid .pcard { cursor: pointer; }
@media (max-width: 720px) { .fam-main { grid-template-columns: 1fr; } .wiz-ov { padding: 12px 8px; } .wiz-ov-box { padding: 16px; border-radius: var(--r-18); } }

/* admin: the engine (live status, models and effort) */
.eng-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.eng-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-14); }
.eng-stat b { font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.eng-stat.ok { box-shadow: inset 3px 0 0 #2f9e6a; }
.eng-stat.bad { box-shadow: inset 3px 0 0 #d9480f; }
.eng-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; align-items: start; }
.eng-form h4, .eng-form .hero-ctas, .eng-form .eng-conc { grid-column: 1 / -1; margin: 8px 0 0; }
.eng-form #elocal, .eng-form #eopen { display: contents; }
.eng-form #elocal.hidden, .eng-form #eopen.hidden { display: none; }
.eng-form .field small { display: block; margin-top: 4px; font-size: var(--fs-13); }
.eng-warn { color: #b35c00; }

/* the editor: how the map was made */
.made-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-3); display: grid; gap: 12px; }
.made-box h5 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-14); }
.made-box h5 svg, .made-kind svg { width: 16px; height: 16px; }
.made-kind .tag { display: inline-flex; align-items: center; gap: 6px; }
.made-parent { margin: 0; font-size: var(--fs-14); }
.made-files { display: grid; gap: 6px; font-size: var(--fs-13); }
.made-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-12); background: var(--surface); color: inherit; text-decoration: none; }
.made-file:hover { background: var(--violet-tint); }
.made-file svg { width: 15px; height: 15px; flex: none; }
.made-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.made-file small { color: var(--muted); }
.made-prompt summary { cursor: pointer; font-size: var(--fs-14); font-weight: 600; }
.made-prompt pre { margin: 8px 0 0; max-height: 260px; overflow: auto; padding: 10px 12px; border-radius: var(--r-12); background: var(--surface);
	white-space: pre-wrap; word-break: break-word; font: var(--fs-13)/1.5 inherit; font-family: inherit; }
.made-kv { font-size: var(--fs-13); }

/* a reference picture that came from the main map (sub-map wizard) */
.ref-from { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: var(--s-1); padding: 3px var(--s-2); border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .94); color: var(--accent-deep); font-size: var(--fs-12); font-weight: 600; box-shadow: var(--shadow-sm); }
.ref-from svg { width: 13px; height: 13px; }
.fam-grid .pcard { position: relative; }

/* the door of a sub-map: show its topics on the main map */
.sub-door-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-show-hint { font-size: var(--fs-13) !important; }
.sm-title { display: block; margin: 4px 0 0; font-size: var(--fs-16); }
.sm-sum { margin: 0; font-size: var(--fs-14); }

/* the wizard: how many times the AI checks the pictures */
.ai-check { flex-wrap: wrap; }
.aic-rounds { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-left: 60px; }
.aic-rounds[hidden] { display: none; }
.aic-rounds > span { font-size: var(--fs-14); font-weight: 600; }
.aic-rounds small { flex-basis: 100%; font-size: var(--fs-13); }
@media (max-width: 640px) { .aic-rounds { padding-left: 0; } }

/* multi-map set ("Harita planı"): the proposal the user edits before any map is made */
.mset-head { display: grid; gap: 12px; }
.mset-sum { font-size: var(--fs-16); line-height: 1.55; margin: 0; }
.mset-tot { display: flex; flex-wrap: wrap; gap: 10px; }
.mset-tot span { display: flex; flex-direction: column; padding: 10px 16px; border-radius: var(--r-12); background: var(--surface); color: var(--muted); font-size: var(--fs-13); min-width: 96px; }
.mset-tot b { font-size: var(--fs-24); color: var(--ink); }
.mset-notes { margin: 0; padding-left: 18px; font-size: var(--fs-13); }
.mset-list { display: grid; gap: 12px; margin: 14px 0; }
.mset-card { display: grid; gap: 10px; }
.mset-row { display: flex; gap: 8px; align-items: center; }
.mset-row input[data-k="title"] { flex: 1; min-width: 0; font-weight: 600; }
.mset-dens { width: auto; max-width: 170px; }
.mset-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: var(--fs-13); }
.mset-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: var(--fs-13); }
.mset-projects .file-row { text-decoration: none; color: inherit; }
@media (max-width: 640px) { .mset-row { flex-wrap: wrap; } .mset-row input[data-k="title"] { flex-basis: calc(100% - 40px); } }
.mset-suggest { display: flex; gap: 8px; align-items: flex-start; }
.mset-suggest svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--violet); }

/* JSON material in the wizard: structure + the AI's map suggestion */
.json-card { margin-top: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); display: grid; gap: 12px; }
.json-head, .json-sug-head { display: flex; gap: 10px; align-items: flex-start; }
.json-head svg, .json-sug-head svg { width: 20px; height: 20px; flex: none; color: var(--violet); margin-top: 2px; }
.json-head p, .json-sug-head p { margin: 2px 0 0; }
.json-head p { font-size: var(--fs-13); overflow-wrap: anywhere; }
.json-card > p.muted { display: flex; gap: 8px; align-items: center; margin: 0; }
.json-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.json-stat { display: inline-flex; gap: var(--s-1); align-items: baseline; padding: var(--s-1) 12px; border-radius: var(--r-pill); background: var(--blue-tint); font-size: var(--fs-14); color: var(--ink-2); }
.json-stat b { color: var(--accent-deep); font-size: var(--fs-16); }
.json-paths summary { cursor: pointer; font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.json-paths ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-13); }
.json-paths li { display: flex; flex-wrap: wrap; gap: 4px 10px; overflow-wrap: anywhere; }
.json-paths code { font-size: var(--fs-13); }
.json-sug { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-12); background: var(--violet-tint); }
.json-sug-head p { color: var(--ink-2); font-size: var(--fs-14); }
.json-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-14); }
.json-tags span { padding: 4px var(--s-3); border-radius: var(--r-pill); background: #fff; color: var(--ink-2); }
.json-branches { margin: 0; padding-left: var(--s-5); display: grid; gap: 6px; font-size: var(--fs-14); }
.json-branches li span { display: block; font-size: var(--fs-13); }
.json-skip { margin: 0; font-size: var(--fs-13); }
.json-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.json-actions > .muted { font-size: var(--fs-13); }
.json-actions .clar { padding: 8px 12px; }

/* admin: pause / resume production */
.eng-pause { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-md); background: var(--ok-tint); }
.eng-pause.on { background: var(--warn-tint); }
/* honest status: green only when the switch is on AND the services are there */
.eng-pause.lv-warn { background: var(--warn-tint); } .eng-pause.lv-warn b { color: #8a5a00; }
.eng-pause.lv-bad { background: var(--danger-tint); } .eng-pause.lv-bad b { color: var(--danger); }
.eng-pause.lv-ok b { color: var(--ok); }
.eng-issues { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2); max-width: 680px; }
.eng-issues li + li { margin-top: 2px; }
/* the admin page: the full-width cards under the two-column grid keep the stack spacing */
.settings-grid + .card { margin-top: 20px; }
.eng-pause b { display: flex; gap: 8px; align-items: center; font-size: var(--fs-16); }
.eng-pause b svg { width: 18px; height: 18px; }
.eng-pause p { margin: 4px 0 0; font-size: var(--fs-14); max-width: 640px; }
.ueng { display: grid; gap: 10px; margin-top: 10px; }
.ueng-open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .ueng-open { grid-template-columns: 1fr; } }

/* admin: what is being made right now */
.prod-empty { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; }
.prod-empty svg, .prod-paused svg { width: 18px; height: 18px; }
.prod-paused { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-md); background: var(--warn-tint); font-weight: 600; }
.prod-accts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prod-acct { display: grid; gap: 1px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-12); font-size: var(--fs-14); }
.prod-acct small { color: var(--ink-2); font-size: var(--fs-12); overflow-wrap: anywhere; }
.prod-acct em { font-style: normal; color: var(--accent-deep); font-weight: 600; font-size: var(--fs-13); }
.prod-tbl td { vertical-align: middle; }
.prod-tbl .mini-bar { display: block; margin-top: 6px; max-width: 140px; }

/* revision results: a large window over the page, the new pictures at a size that can be judged */
.rev-dock.open { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 22, 58, .42); backdrop-filter: blur(2px); pointer-events: auto; }
.rev-dock.open .rev-panel { flex: none; box-sizing: border-box; width: min(1320px, 100%); min-width: 0; height: min(920px, calc(100vh - 48px)); max-height: none; display: flex; flex-direction: column; overflow: hidden; padding: var(--s-5) var(--s-5); gap: 16px; animation: revZoom .22s var(--ease); }
.rev-dock.open .rev-panel > header, .rev-dock.open .rev-panel > footer, .rev-dock.open .rev-note { flex: none; }
.rev-dock.open .rev-panel > header > div { min-width: 0; }
.rev-dock.open .rev-ins { max-height: 4.4em; overflow-y: auto; }
.rev-dock.open .rev-cmp { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: center; }
.rev-dock.open .rev-note { max-height: 3em; overflow-y: auto; }
.rev-dock.open .rev-panel > footer { margin-top: auto; }
@keyframes revZoom { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.rev-dock.open .rev-panel h4 { font-size: var(--fs-24); }
.rev-dock.open .rev-given img { width: 72px; height: 72px; }
.rev-dock.open .rev-cmp { grid-template-columns: minmax(0, 1fr) auto minmax(0, 3fr); gap: 18px; align-items: start; }
.rev-dock.open .rev-cmp.c1 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.rev-dock.open .rev-arrow { align-self: center; font-size: var(--fs-32); }
.rev-dock.open .rev-cands { gap: 14px; }
.rev-dock.open .rev-cands.n3, .rev-dock.open .rev-cands.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rev-dock.open .rev-img { padding: 10px; border-radius: var(--r-18); }
.rev-dock.open .c1 .rev-img img { max-height: min(62vh, 640px); }
.rev-dock.open .c5 .rev-img img { max-height: min(30vh, 360px); }
.rev-dock.open .rev-use { font-size: var(--fs-13); padding: 6px 10px; left: 10px; right: 10px; bottom: 10px; }
.rev-dock.open .rev-k { font-size: var(--fs-13); }
@media (max-width: 860px) {
  .rev-dock.open { padding: 10px; }
  .rev-dock.open .rev-panel { padding: 16px; height: calc(100vh - 20px); }
  .rev-dock.open .rev-cmp, .rev-dock.open .rev-cmp.c1 { grid-template-columns: minmax(0, 1fr); }
  .rev-dock.open .rev-arrow { transform: rotate(90deg); justify-self: center; }
  .rev-dock.open .rev-col.before .rev-img { max-width: 50%; }
  .rev-dock.open .rev-cands.n3, .rev-dock.open .rev-cands.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the map editor's "Denetle": Claude's check of every picture */
.canvas .node.audit-bad { outline: 3px dashed var(--danger, #D64545); outline-offset: 8px; border-radius: var(--r-12); }
.aud { display: grid; gap: 14px; text-align: left; }
.aud-intro { margin: 0; font-size: var(--fs-14); }
.aud-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.aud-run { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--violet-tint); }
.aud-run b { display: flex; gap: 8px; align-items: center; }
.aud-run .mini-bar { width: 100%; }
.aud-req-shown { margin: 0; font-style: italic; color: var(--ink-2); font-size: var(--fs-14); }
.aud-res { display: grid; gap: 12px; }
.aud-sum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; }
.aud-sum.ok { background: var(--ok-tint); color: var(--ok); }
.aud-sum.bad { background: var(--warn-tint); }
.aud-sum svg { width: 18px; height: 18px; }
.aud-sum small { font-weight: 400; }
.aud-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-18); }
.aud-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-12); background: var(--surface); overflow: hidden; }
.aud-thumb img { width: 100%; height: 100%; object-fit: contain; }
.aud-txt { display: grid; gap: 8px; align-content: start; min-width: 0; }
.aud-txt b { font-size: var(--fs-16); }
.aud-txt ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--fs-14); color: var(--ink-2); }
.aud-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.aud-acts svg { width: 15px; height: 15px; }
.aud-good summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.aud-good-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.aud-gthumb { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line-3); border-radius: var(--r-12); background: #fff; cursor: pointer; }
.aud-gthumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.aud-gthumb small { font-size: var(--fs-12); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .aud-item { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } }

/* revision window: the running count and "use all" */
.rev-dock.open .rev-panel footer { flex-wrap: wrap; }
.rev-busy { font-size: var(--fs-13); margin-right: auto; margin-left: 12px; }
.rev-foot-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rev-foot-acts svg { width: 15px; height: 15px; }
.aud-all { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.aud-all svg { width: 15px; height: 15px; }

/* ---- Faz 7: the node panel in clear parts, the bar over the selected node, the one-step detail map,
   the wizard's simple / advanced mode and its page turn */
.inspector { gap: 16px; overflow-x: hidden; }
.inspector > * { min-width: 0; }
.inspector .field > span, .inspector p, .inspector b, .inspector li, .inspector h5 { overflow-wrap: anywhere; }
.insp-card { display: grid; gap: 12px; }
.insp-card .pic { padding: 12px; }
.insp-card .insp-head .btn svg { width: 15px; height: 15px; }
.cap-edit { margin: 0; }
.cap-row .input { min-width: 0; }
.cap-row .btn { flex: none; }
.insp-sec { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; min-width: 0; }
.insp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: var(--r-12); background: var(--surface); }
.insp-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: var(--s-2) 4px; line-height: 1.2; text-align: center; border: 0; border-radius: var(--r-8); background: none;
	font: 600 var(--fs-13) var(--body); color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.insp-tabs button span { font-size: var(--fs-13); overflow-wrap: anywhere; }
.insp-tabs button svg { width: 15px; height: 15px; flex: none; }
.insp-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.insp-tabs button.on svg { color: var(--violet); }
.insp-pane { display: grid; gap: 10px; min-width: 0; }
.insp-pane[hidden] { display: none; }
.insp-pane .field { margin: 0; }
.insp-pane .field > span { font-size: var(--fs-14); }
.insp-pane .rev-go .count-seg { flex-wrap: wrap; }
.insp-pane .rev-go .btn { margin-left: auto; }
.insp-tail { display: grid; gap: 16px; }
.insp-tail:empty { display: none; }
.sub-make { background: var(--violet-tint); border-color: transparent; }
.sub-make-t { display: flex; gap: 10px; align-items: flex-start; }
.sub-make-t > svg { width: 20px; height: 20px; flex: none; color: var(--violet); margin-top: 2px; }
.sub-make-t b { display: block; font-size: var(--fs-14); }
.sub-make-t p { margin: 2px 0 0; font-size: var(--fs-13); }
.sub-make .btn { justify-self: start; }
.sub-door-box { margin-bottom: 0; }

.node-bar { position: absolute; z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: #fff;
	box-shadow: 0 8px 24px rgba(20, 22, 58, .18), 0 0 0 1px rgba(20, 22, 58, .06); transform: translateX(-50%); white-space: nowrap; animation: nbIn .16s ease; }
.node-bar[hidden] { display: none; }
.nb-btn { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2, var(--ink));
	font: 600 var(--fs-13) var(--body); cursor: pointer; text-decoration: none; transition: background .15s; }
.nb-btn:hover { background: var(--surface); }
.nb-btn svg { width: 15px; height: 15px; }
.nb-btn.primary { background: var(--violet); color: #fff; }
.nb-btn.primary:hover { background: var(--violet-ink, var(--violet)); }
@keyframes nbIn { from { opacity: 0; margin-top: 4px; } }
@media (max-width: 520px) { .nb-btn span { display: none; } .nb-btn { padding: 8px 10px; } }

.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--accent-deep, var(--accent));
	font: 600 var(--fs-14) var(--body); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg { width: 15px; height: 15px; }
.subq { display: grid; gap: 16px; text-align: left; margin-top: 4px; }
.subq-topic { padding: 14px 16px; border-radius: var(--r-12); background: var(--violet-tint); }
.subq-topic b { display: block; margin: 8px 0 2px; font-size: var(--fs-18); overflow-wrap: anywhere; }
.subq-topic p { margin: 0; font-size: var(--fs-14); }
.subq-topic small { display: block; margin-top: 6px; font-size: var(--fs-12); }
.subq .field { margin: 0; }
.subq .field em { font-style: normal; font-weight: 500; }
.subq-dens { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.subq-dens .choice { padding: 12px 14px; }
.subq-inherit { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-12); background: var(--surface); }
.subq-inherit > svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }
.subq-inherit b { font-size: var(--fs-14); }
.subq-inherit p { margin: 2px 0 0; font-size: var(--fs-13); }
.subq-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-13); }

.wiz { position: relative; perspective: 2200px; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.wiz-top .seg { margin-bottom: 0; }
.mode-tog { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface); }
.mode-tog button { border: 0; background: none; padding: 8px 16px; border-radius: var(--r-pill); font: 600 var(--fs-14) var(--body); color: var(--ink-3); cursor: pointer; }
.mode-tog button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
/* the new-map heading: "Ekran: Klasik | Sohbet" inline right of the title (a page-level choice, with icons) */
.nm-head { align-items: center; }
.nm-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; min-width: 0; }
.nm-screen-w { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.nm-screen-l { font: 600 var(--fs-12) var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nm-screen button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px 8px 12px; }
.nm-screen button svg { width: 16px; height: 16px; flex: none; }
.nm-screen button.on svg { color: var(--accent); }
.nm-screen button:not(.on):hover { color: var(--ink); }
.nm-screen button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the step row ends with the "Gelişmiş ayarlar" switch (on = Gelişmiş, off = Basit) */
.wiz-top .mode-seg { margin-left: auto; }
.nm-adv { position: relative; gap: 10px; font: 600 var(--fs-14) var(--body); color: var(--ink-2, var(--ink)); white-space: nowrap; }
.nm-adv i { width: 40px; }
.nm-adv input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nm-adv input:checked + i::after { transform: translateX(16px); }
.nm-adv input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) {
	.nm-screen-w { flex: 1 1 100%; }
	.nm-screen { flex: 1; }
	.nm-screen button { flex: 1; }
	.wiz-top .mode-seg { margin-left: 0; }
}
.simple-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-14); color: var(--ink-3); }
.simple-note > svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.simple-note span { flex: 1 1 220px; }
.look-simple { display: grid; gap: 20px; max-width: 620px; }
.refs-more { margin-top: 18px; }
.refs-more .tag { margin-left: 4px; }
.page-ghost { position: absolute; z-index: 3; margin: 0; overflow: hidden; pointer-events: none; transform-origin: left center; backface-visibility: hidden;
	animation: pageOff .62s cubic-bezier(.45, .05, .55, .95) forwards; box-shadow: 0 0 0 rgba(20, 22, 58, 0); }
.page-ghost::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 58, 0) 30%, rgba(20, 22, 58, .16)); opacity: 0; animation: pageShade .62s ease forwards; }
@keyframes pageOff {
	0% { transform: rotateY(0); box-shadow: 0 10px 30px rgba(20, 22, 58, .08); }
	60% { opacity: 1; }
	100% { transform: rotateY(-105deg); opacity: 0; box-shadow: 30px 20px 50px rgba(20, 22, 58, .25); } }
@keyframes pageShade { to { opacity: 1; } }
#wbody.page-in { transform-origin: left center; animation: pageOn .55s cubic-bezier(.2, .7, .3, 1); }
@keyframes pageOn { from { transform: rotateY(-80deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-ghost { display: none; } #wbody.page-in { animation: none; } .node-bar { animation: none; } }

/* practice on a touch screen: the card held under the finger */
.prac-bank .pcard { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pq-ghost { position: fixed; z-index: 90; width: 84px; height: 84px; padding: 6px; border-radius: 14px; background: #fff; pointer-events: none;
	transform: translate(-50%, -70%) rotate(-4deg); box-shadow: 0 14px 34px rgba(20, 22, 58, .28); display: grid; place-items: center; }
.pq-ghost img { max-width: 100%; max-height: 100%; }

/* classroom presentation (add-on): the studio box and the lesson editor */
.cls-opts { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-12); background: var(--amber-tint, var(--warn-tint)); }
.cls-opts h4 { display: flex; align-items: center; gap: 8px; margin: 0; }
.cls-opts h4 svg { width: 17px; height: 17px; }
.cls-acts, .cls-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cls-ed { text-align: left; display: grid; gap: 12px; }
.cls-tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--r-12); background: var(--surface); justify-self: start; }
.cls-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: var(--r-8); font: 600 var(--fs-14) var(--body); color: var(--ink-3); cursor: pointer; }
.cls-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.cls-pane { display: grid; gap: 10px; max-height: 58vh; overflow: auto; padding-right: 4px; }
.cls-pane[hidden] { display: none; }
.cls-node { border: 1px solid var(--line-3); border-radius: var(--r-12); padding: 10px 14px; }
.cls-node[open] { display: grid; gap: 10px; }
.cls-node summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.cls-node summary b { overflow-wrap: anywhere; }
.cls-node .field { margin: 0; }
.cls-q, .cls-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cls-qs { display: grid; gap: 6px; }
.cls-plan { display: grid; grid-template-columns: 1.2fr 70px 2fr; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .cls-q, .cls-two, .cls-plan { grid-template-columns: 1fr; } }

/* ---- HAD! round stage: the big map, the camera on the question, the answers below ---- */
.lr { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lr-map { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f3f1fb 70%, #e7e3f6 100%); }
.lr-map .canvas { background: transparent; }
.lr-hud { position: absolute; left: 18px; right: 18px; top: 14px; z-index: 4; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.lr-n, .lr-kind, .lr-ans { padding: 7px 14px; border-radius: 999px; background: rgba(29, 22, 70, .82); color: #fff; font-weight: 700; font-size: 15px; }
.lr-kind { background: rgba(123, 63, 228, .9); }
.lr-ans { margin-left: auto; }
.lr-ans:empty { display: none; }
.lr-timer { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.lr-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lr-timer .tr { fill: rgba(29, 22, 70, .85); stroke: rgba(255, 255, 255, .18); stroke-width: 4; }
.lr-timer .tf { fill: none; stroke: #F5C542; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .12s linear; }
.lr-timer b { position: relative; font-family: var(--display); font-size: 24px; color: #fff; }
.lr:not([data-phase="question"]) .lr-timer { visibility: hidden; }
.lr-q { position: absolute; left: 50%; top: 14px; z-index: 3; transform: translateX(-50%); max-width: min(980px, 64%); padding: 12px 24px; border-radius: 16px;
	background: #fff; color: #1d1d1f; font-family: var(--display); font-size: clamp(18px, 2.2vw, 32px); line-height: 1.2; text-align: center; box-shadow: 0 12px 34px rgba(29, 22, 70, .22); }
.lr-q:empty { display: none; }
.lr-cover { position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 40px; }
.lr-cover.on { display: flex; animation: lsFade .3s ease; }
.lr-cover.read { background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f1edfc 75%); color: #1d1d1f; }
.lr-cover.mini { inset: auto 0 40px 0; padding: 0; }
.lr-cover.mini .lr-k { background: rgba(29, 22, 70, .88); color: #fff; padding: 8px 18px; border-radius: 999px; }
.lr-cover.mini .lr-num { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: #7B3FE4; color: #fff; box-shadow: 0 14px 40px rgba(123, 63, 228, .45); font-size: 64px; }
.lr-k { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 16px; color: #7B3FE4; }
.lr-big { max-width: 1100px; font-family: var(--display); font-size: clamp(28px, 4.2vw, 64px); line-height: 1.15; }
.lr-num { font-family: var(--display); font-size: 88px; line-height: 1; color: #7B3FE4; animation: lsPop .5s; }
@keyframes lsFade { from { opacity: 0; } }
.lr-fly { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%) scale(.6); font-family: var(--display); font-size: 260px; line-height: 1; color: #F5C542;
	text-shadow: 0 10px 40px rgba(216, 158, 0, .5); pointer-events: none; animation: lrFlyIn .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.lr-fly.go { animation: lrFlyGo .9s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes lrFlyIn { to { transform: translate(-50%, -50%) scale(1.15); } }
@keyframes lrFlyGo { 0% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }
.lr-opts { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lr-opts:empty { display: none; }
.lr-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--c); color: #fff; min-height: 86px;
	box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 10px 26px rgba(0, 0, 0, .18); animation: lsPop .4s cubic-bezier(.3, 1.6, .5, 1) backwards; transition: opacity .4s, transform .4s; }
.lr-opt:nth-child(2) { animation-delay: .06s; } .lr-opt:nth-child(3) { animation-delay: .12s; } .lr-opt:nth-child(4) { animation-delay: .18s; }
.lr-opt .ls-shape { font-size: 24px; }
.lr-opt img { width: 70px; height: 70px; flex: none; object-fit: contain; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 4px; }
.lr-opt b { flex: 1; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.lr-opt.wrong { opacity: .4; transform: scale(.97); }
.lr-opt.right { transform: translateY(-6px); box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(245, 197, 66, .8); }
.lr-cnt { position: absolute; left: 12px; right: 12px; bottom: 7px; display: flex; align-items: center; gap: 8px; font-style: normal; }
.lr[data-phase="reveal"] .lr-opt { padding-bottom: 24px; }
.lr-cnt i { height: 8px; border-radius: 8px; background: #fff; min-width: 4px; }
.lr-cnt span { font-family: var(--display); font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.lr-next { position: absolute; right: 18px; top: 88px; z-index: 5; }
.live-stage .lr-next.btn.ghost { background: rgba(29, 22, 70, .82); border-color: transparent; color: #fff; }
.lr-learn { position: absolute; left: 50%; bottom: 128px; z-index: 5; transform: translate(-50%, 20px); width: min(720px, 80%); padding: 16px 22px; border-radius: 18px; background: #fff;
	color: #1d1d1f; border-top: 6px solid #F5C542; box-shadow: 0 18px 44px rgba(29, 22, 70, .3); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; text-align: center; }
.lr-learn.on { opacity: 1; transform: translate(-50%, 0); }
.lr-learn b { display: block; font-family: var(--display); font-size: 28px; margin-top: 2px; }
.lr-learn p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: #3a3d55; }
.canvas .node.pq-win { z-index: 3; animation: lrWin 1.1s cubic-bezier(.3, 1.6, .5, 1); }
.canvas .node.pq-win::after { content: ''; position: absolute; inset: -10px; border-radius: 18px; border: 5px solid #F5C542; box-shadow: 0 0 0 6px #fff, 0 0 40px 10px rgba(255, 170, 0, .65);
	animation: lrHalo 1s ease-in-out infinite; pointer-events: none; }
@keyframes lrWin { 40% { transform: scale(1.18); } }
@keyframes lrHalo { 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 0 70px 18px rgba(255, 170, 0, .5); } }
.lr-confetti { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.lr-confetti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; border-radius: 3px; background: var(--c); animation: lrConf 2.3s var(--d) cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes lrConf { to { transform: translateY(105vh) rotate(var(--r)); opacity: .9; } }
.ls-brand { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: .02em; color: #F5C542; text-shadow: 0 6px 24px rgba(245, 197, 66, .35); }
.ls-name { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; }
.ls-name .fm-ava, .ls-board .fm-ava, .ls-rest .fm-ava { flex: none; }
.ls-rest li { display: flex; align-items: center; gap: 8px; }
.ls-streak { font-weight: 700; color: #ffb35c; }
.ls-delta.down { color: #ff8a8a; }
.ls-final { margin-top: 10px; padding: 8px 20px; border-radius: 999px; background: #E21B3C; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; animation: lsPop .6s; }
.ls-step { animation: lsRise .7s var(--d, 0s) cubic-bezier(.3, 1.4, .5, 1) backwards; }
@keyframes lsRise { from { opacity: 0; transform: translateY(60px); } }
@media (max-width: 900px) { .lr-opts { grid-template-columns: 1fr 1fr; } .lr-q { max-width: 90%; top: 90px; } .lr-learn { bottom: 230px; } }
@media (prefers-reduced-motion: reduce) { .lr-fly, .lr-confetti, .canvas .node.pq-win, .canvas .node.pq-win::after { animation: none !important; } }

/* the answers as square cards (the map's nodes are square too) */
.lr-opts { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; display: flex; gap: clamp(10px, 1.6vw, 22px); grid-template-columns: none; }
.lr-opt { flex: none; width: clamp(118px, 12.5vw, 172px); min-height: 0; padding: 7px; border-radius: 20px; display: block; aspect-ratio: auto;
	box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 12px 30px rgba(20, 16, 60, .28); }
.lr-pic { display: block; aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.lr-pic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: none; border-radius: 0; }
.lr-sh { position: absolute; left: -9px; top: -9px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: var(--c); color: #fff; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, .25); }
.lr-cnt { position: static; display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; }
.lr-cnt b { font-family: var(--display); font-size: 20px; color: #fff; min-width: 1.2em; }
.lr-cnt i { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.lr-cnt s { display: block; height: 100%; background: #fff; border-radius: 8px; transition: width .8s ease; }
.lr[data-phase="reveal"] .lr-opt { padding-bottom: 7px; }
.lr-opt.right { transform: translateY(-10px) scale(1.06); box-shadow: 0 0 0 4px #fff, 0 0 36px rgba(245, 197, 66, .9); }
.lr-opt.wrong { opacity: .38; transform: scale(.94); }
.lr-ok { position: absolute; right: -9px; top: -9px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #F5C542; color: #3b2a00;
	font-weight: 900; font-size: 20px; box-shadow: 0 0 0 3px #fff; animation: lsPop .5s cubic-bezier(.3, 1.6, .5, 1); }
.lr-learn { bottom: calc(clamp(118px, 12.5vw, 172px) + 44px); }
@media (max-width: 700px) { .lr-opt { width: 22vw; } }

/* "the right answer" sits beside the map (right), never over the node it names */
.lr-learn { left: auto; right: 18px; top: 136px; bottom: auto; width: min(360px, 30%); transform: translateX(24px); text-align: left; border-top: 0; border-left: 6px solid #F5C542; }
.lr-learn.on { transform: none; }
.lr-learn b { font-size: 26px; }
@media (max-width: 900px) { .lr-learn { top: auto; bottom: calc(22vw + 60px); right: 12px; width: min(420px, 70%); } }

/* HAD!: the question mark on the map is THE thing to look at - a bright card of its own, breathing, with a
   turning ring around it; the rest of the map steps back while the question is on */
.lr .canvas .node .pq-slot { container-type: size; }
.lr .canvas .node.pq .pq-slot b { font-size: 46cqmin; }
.lr .canvas .node.pq-target { z-index: 4; }
.lr .canvas .node.pq-target .pq-slot { inset: 2%; border: 6px solid #fff; border-radius: 20%; background: linear-gradient(135deg, #7B3FE4 0%, #B43FD8 55%, #E0409C 100%);
	box-shadow: 0 0 0 9px #F5C542, 0 0 70px 26px rgba(245, 197, 66, .75), 0 18px 40px rgba(60, 20, 120, .45); animation: lrQ 1.6s ease-in-out infinite; }
.lr .canvas .node.pq-target .pq-slot b { color: #fff; font-size: 66cqmin; font-weight: 800; text-shadow: 0 .04em .12em rgba(40, 0, 80, .45); animation: lrQmark 1.6s ease-in-out infinite; }
.lr .canvas .node.pq-target::before { content: ''; position: absolute; inset: -9%; border-radius: 26%; border: 8px dashed #F5C542; animation: lrRing 9s linear infinite; pointer-events: none; }
@keyframes lrQ { 50% { transform: scale(1.06); box-shadow: 0 0 0 14px #F5C542, 0 0 110px 40px rgba(245, 197, 66, .6), 0 22px 46px rgba(60, 20, 120, .45); } }
@keyframes lrQmark { 50% { transform: scale(1.12) rotate(-6deg); } }
@keyframes lrRing { to { transform: rotate(360deg); } }
/* the other answers' places: quiet grey question marks (no answer by elimination) */
.lr.map .canvas .node.pq:not(.pq-target) .pq-slot { border-color: #c4c8d6; background: rgba(245, 246, 250, .9); }
.lr.map .canvas .node.pq:not(.pq-target) .pq-slot b { color: #b3b8c8; font-size: 40cqmin; }
/* while the map question is on, the rest of the map steps back */
.lr.map:is([data-phase="intro"], [data-phase="options"], [data-phase="question"]) .canvas .node:not(.pq-target) { opacity: .5; filter: saturate(.6); transition: opacity .6s, filter .6s; }
.lr.map:is([data-phase="intro"], [data-phase="options"], [data-phase="question"]) .canvas svg.edges { opacity: .45; transition: opacity .6s; }
@media (prefers-reduced-motion: reduce) { .lr .canvas .node.pq-target .pq-slot, .lr .canvas .node.pq-target .pq-slot b, .lr .canvas .node.pq-target::before { animation: none; } }

/* the nodes around the question mark are its hints: they stay readable, only a little quieter */
.lr.map:is([data-phase="intro"], [data-phase="options"], [data-phase="question"]) .canvas .node:not(.pq-target) { opacity: .82; filter: saturate(.85); }
.lr.map:is([data-phase="intro"], [data-phase="options"], [data-phase="question"]) .canvas svg.edges { opacity: .8; }

/* the HADİ / RUSH! badge */
.ls-logo { width: clamp(120px, 14vw, 190px); height: auto; filter: drop-shadow(0 12px 30px rgba(245, 197, 66, .3)); animation: lsPop .6s cubic-bezier(.3, 1.6, .5, 1); }
.ls-logo.sm { width: clamp(70px, 7vw, 100px); }
.ls-podium .ls-logo { margin-bottom: -6px; }
.live-logo { width: 96px; height: 96px; filter: drop-shadow(0 8px 22px rgba(123, 63, 228, .35)); }
/* Learners (web/app.js learnersSection): the practice link, who practised the map, the last HAD! games */
.lrn { display: flex; flex-direction: column; gap: 12px; }
.lrn h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.lrn h3 svg { width: 20px; height: 20px; }
/* the learner count beside "Öğrenenler": a chip on the heading's middle line (design audit 39; .h4row em's bottom
   margin pushed it up like a superscript) */
.lrn h3 em { align-self: center; margin: 0; font-style: normal; font-size: var(--fs-13); font-weight: 700; line-height: 1.5; min-width: 24px; padding: 1px var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.live-learners { grid-column: 1 / -1; }
.lrn-game { border: 1px solid var(--line); border-radius: var(--r-12); padding: 10px 12px; }
.lrn-game summary { display: flex; gap: 10px; align-items: baseline; cursor: pointer; flex-wrap: wrap; }
.lrn-game[open] summary { margin-bottom: 8px; }

/* the Pratik tab (web/app.js renderPractice) in the site's page format, like HAD!: a centred column up to 1320px
   that scrolls as a whole; a compact header card (badge, title, the Foramind state, the lock chip, "Pratiği
   önizle"), the sub-tabs Öğrenenler | Ayarlar, then the pane */
.prac2.prac3 { overflow-y: auto; gap: 16px; padding: 24px; width: 100%; max-width: 1320px; margin: 0 auto; }
.prac3 > * { flex: none; }
.prac-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 18px var(--s-5); }
.prac-head .ph-id { flex: 1 1 380px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph-badge { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--r-18); background: var(--teal-tint); color: var(--teal-ink); }
.ph-badge > svg { width: 26px; height: 26px; }
.prac-head .ph-t { min-width: 0; flex: 1; }
.prac-head .ph-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.prac-head h2 { margin: 0; font-size: var(--fs-24); line-height: 1.15; }
.prac-head .ph-t p { margin: 6px 0 0; font-size: var(--fs-14); line-height: 1.4; max-width: 80ch; }
.prac-head .ph-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ph-preview { flex: none; margin-left: auto; min-height: 48px; padding: 12px var(--s-5); font-size: var(--fs-16); }
.ph-preview svg { width: 18px; height: 18px; }
/* the CTA with its reason under it while it cannot be used (Flashcard: "Önce desteye kart ekleyin") */
.ph-cta { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ph-cta .ph-preview { margin-left: 0; }
.ph-cta .ph-preview:disabled { opacity: 1; background: var(--line-3); color: var(--muted); }
.ph-why { font-size: var(--fs-13); color: var(--muted); }
.ph-why[hidden] { display: none; }
/* the compact Foramind state (featureFmCard(…, { compact: true })) */
.feat-fm-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ffi-state { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: var(--fs-13); font-weight: 700; white-space: nowrap; cursor: help; }
.ffi-state svg { width: 15px; height: 15px; flex: none; }
.feat-fm-inline.on .ffi-state { background: var(--ok-tint); color: var(--ok); }
.feat-fm-inline .btn.small { padding: 6px 12px; font-size: var(--fs-13); }
.feat-fm-inline .btn.small svg { width: 14px; height: 14px; }
.ffi-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--line-3); color: var(--ink-3); font: italic 700 var(--fs-12)/1 Georgia, serif; }
.feat-fm-inline .sr-only, .feat-lock-chip .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the lock chip (lockChip): the explanation is its tooltip; the link goes to the map */
.feat-lock { display: inline-flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.feat-lock-chip { cursor: help; }
.feat-lock-chip > svg { color: var(--warn); }
.feat-lock-go { min-height: 28px; padding: 0 10px; }
.prac-tabs { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-12); background: var(--surface); align-self: flex-start; max-width: 100%; overflow-x: auto; }
.prac-tabs button { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 16px; border: 0; border-radius: var(--r-12); background: none; color: var(--muted); font: inherit; font-size: var(--fs-14); font-weight: 700; cursor: pointer; white-space: nowrap; }
.prac-tabs button svg { width: 17px; height: 17px; }
.prac-tabs button:hover { color: var(--ink); }
.prac-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 60, .12); }
.prac-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.prac-tab-n { font-style: normal; font-size: var(--fs-12); min-width: 20px; padding: 1px var(--s-2); border-radius: var(--r-pill); background: var(--blue-tint, #e8eefc); color: var(--accent-deep, var(--accent)); }
.prac-tab-n:empty { display: none; }
/* the Pratik tab's one bar (designs/pratik-kompakt, direction A "Tek şerit"): badge, title + (i), the sub-tabs, the
   Foramind state and the lock chip, "Pratiği önizle" in one ~56px row; the description lives in the (i) tip. Below
   1500px the long labels shorten (.pb-lg → .pb-sh; the full text stays in the title / aria-label), below 1180px the sub-tabs
   show their icon and count (the label stays for screen readers and in the title). A phone stacks it (below). */
.prac-strip.prac2.prac3 { padding: var(--s-3) var(--s-5) var(--s-4); gap: var(--s-3); }
.prac-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-2) 10px; border-radius: var(--r-18); }
.prac-bar .ph-badge { width: 38px; height: 38px; border-radius: var(--r-12); }
.prac-bar .ph-badge > svg { width: 19px; height: 19px; }
.prac-bar .ph-title { flex: none; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.prac-bar h2 { margin: 0; font-size: var(--fs-18); line-height: 1.15; }
.prac-bar .ph-desc { display: none; }
.prac-bar .prac-tabs { padding: 3px; align-self: center; overflow: visible; }
.prac-bar .prac-tabs button { padding: 6px var(--s-3); font-size: var(--fs-14); border-radius: 9px; }
.prac-bar .prac-tabs button svg { width: 16px; height: 16px; }
.prac-bar .ph-meta { margin-left: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: var(--s-2); }
.prac-bar .feat-fm-inline, .prac-bar .feat-lock { flex-wrap: nowrap; white-space: nowrap; }
.prac-bar .ph-preview { margin-left: 0; min-height: 38px; padding: var(--s-2) 18px; font-size: var(--fs-14); }
.prac-bar .pb-sh { display: none; }
.ph-info { position: relative; display: inline-flex; flex: none; }
.ph-info-b { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-3); font: italic 700 var(--fs-12)/1 Georgia, serif; cursor: help; }
.ph-info-b:hover, .ph-info.open .ph-info-b { background: var(--line-3); color: var(--ink); }
.ph-info-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-pop { display: none; position: absolute; z-index: 50; top: calc(100% + 8px); left: -12px; width: 340px; max-width: calc(100vw - 32px); padding: 10px var(--s-3); border-radius: var(--r-12); background: #1d1f3a; color: #fff; font: 500 var(--fs-13)/1.45 var(--body, inherit); text-align: left; box-shadow: var(--sh-3, 0 12px 30px rgba(20, 22, 58, .25)); }
.ph-info:hover .ph-pop, .ph-info.open .ph-pop { display: block; }
@media (min-width: 861px) and (max-width: 1500px) {
  .prac-bar .pb-lg { display: none; }
  .prac-bar .pb-sh { display: inline; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .prac-bar .prac-tabs .pt-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prac-bar .prac-tabs button { padding: 6px 10px; }
}
/* a window too narrow for one row: "Pratiği önizle" wraps to the right edge */
@media (min-width: 861px) and (max-width: 1000px) { .prac-bar .ph-preview { margin-left: auto; } }
.prac-pane { flex: none; min-height: 0; }
.prac-pane[hidden] { display: none !important; }
.pp-learners > .lrn > .sk-block { min-height: 420px; border-radius: var(--r-lg); }
/* the settings: two balanced cards side by side, one under the other on a narrow screen */
.pp-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: stretch; }
.pp-settings > .card { margin: 0; padding: 18px 20px; border-radius: var(--r-lg); }
/* "Pratiği önizle" (web/app.js openPracticePreview): the game in a near full-screen overlay; full screen on a phone */
html.ppv-open, html.ppv-open body { overflow: hidden; }
.ppv-wrap { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 24px; background: rgba(18, 16, 40, .58); opacity: 0; transition: opacity .2s; }
.ppv-wrap.on { opacity: 1; }
.ppv { width: min(1640px, 100%); height: min(1040px, 100%); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 90px rgba(10, 8, 30, .45); transform: scale(.985); transition: transform .2s var(--ease); outline: none; }
.ppv-wrap.on .ppv { transform: none; }
.ppv-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line-3); }
.ppv-badge { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-12); background: var(--teal-tint); color: var(--teal-ink); }
.ppv-badge svg { width: 17px; height: 17px; }
.ppv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ppv-t b { font-size: var(--fs-16); }
.ppv-t span { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppv-x { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s; }
.ppv-x:hover { background: var(--line-3); }
.ppv-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ppv-x svg { width: 20px; height: 20px; }
.ppv .ppv-host { flex: 1; height: auto; min-height: 0; border-radius: 0; overflow: auto; }
.ppv .ppv-host > .fmp { border-radius: 0; min-height: 460px; }
@media (max-width: 760px) {
  .ppv-wrap { padding: 0; }
  .ppv { width: 100%; height: 100%; border-radius: 0; }
  .ppv-head { padding: 8px 8px 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .ppv-wrap, .ppv { transition: none; } }
.prac-access { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; border-radius: var(--r-md); }
.prac-access .mi { width: 40px; height: 40px; border-radius: var(--r-12); background: var(--surface); color: var(--muted); flex: none; }
.prac-access .mi.tint-teal { background: var(--teal-tint); color: var(--teal-ink); }
.prac-access .mi svg { width: 20px; height: 20px; }
.prac-access .ps-b { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prac-access .ps-b span { font-size: var(--fs-14); }
.prac-access .ps-b small { font-size: var(--fs-13); }

/* the learners: search, level bars and marks (the list + detail below) */
.lrn-head { flex-wrap: wrap; gap: 8px; }
.lrn-search { flex: 1 1 220px; position: relative; display: flex; align-items: center; min-width: 0; }
.lrn-search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.lrn-search .input { width: 100%; padding-left: var(--s-6); font-size: var(--fs-14); }
.lrn-lv { display: flex; height: 8px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface); margin-top: 4px; width: 120px; }
.lrn-lv.big { width: 100%; height: 14px; margin: 4px 0 10px; }
.lrn-lv i { display: block; height: 100%; }
.lvc-new { background: #c9cedb; } .lvc-developing { background: #F5A524; } .lvc-strong { background: #4CC38A; } .lvc-mastered { background: #12804a; }
.lvt-new { color: #7b8294; } .lvt-developing { color: #c27c00; } .lvt-strong { color: #2c9a68; } .lvt-mastered { color: #0f7343; }
.lvg { width: 15px; height: 15px; flex: none; vertical-align: -3px; }
.lrn-due { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); background: var(--warn-tint); color: #8a5200; font-weight: 700; }
.lrn-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-13); }
.lrn-legend > * { display: inline-flex; align-items: center; gap: 6px; }
.lrn-legend button { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 3px 10px; font: inherit; font-size: var(--fs-13); cursor: pointer; }
.lrn-legend button.on { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.lrn-legend b { color: var(--ink); }

/* the learners as list + detail (web/app.js drawLearners / lrnList, designs/pratik-istatistik-alternatifler.html
   alternative C): one card split in two, the learners on the left, the selected learner's statistics in tabs on the
   right; below 860px they take turns.
   One scroll per area: on a wide screen the card fills the page's remaining height (the page itself no longer
   scrolls, so no bar of the page stands beside the card's), and only the list and the detail's body scroll inside it.
   A window too short for the card's minimum lets the page scroll instead. On a phone only the page scrolls. */
.pp-learners, .pp-learners > .lrn { min-width: 0; }
.lrn-note { margin: 0; }
@media (min-width: 861px) {
  .prac3 > .pp-learners:not([hidden]):has(.lrc) { flex: 1 1 auto; min-height: 300px; display: flex; flex-direction: column; }
  .pp-learners > .lrn:has(.lrc) { flex: 1; min-height: 0; }
  .lrn > .lrn-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .lrn-view > .lrc { flex: 1; min-height: 0; height: auto; }
}
.lrn-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); padding: 20px var(--s-5); display: flex; flex-direction: column; gap: 12px; }
.lrc { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: clamp(560px, calc(100vh - 250px), 1040px); background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); overflow: hidden; }
.lrc-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-3); background: #fcfcfe; }
.lrc-lh { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line-3); }
.lrc-lh .lrn-search { flex: none; }
.lrc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lrc-acts { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.lrc-dl.btn.icon { width: 32px; height: 32px; padding: 0; justify-content: center; }
.lrc-dl svg { width: 16px; height: 16px; }
.lrc-lh h3 { font-size: var(--fs-18); }
.lrc-lh h3 em { font-style: normal; font-size: var(--fs-12); font-weight: 700; color: var(--muted); background: var(--surface); padding: 1px 8px; border-radius: var(--r-pill); }
.lrc-lh .chips { align-self: flex-start; }
.lrc-lh .chips button { padding: var(--s-1) 10px; font-size: var(--fs-13); }
.lrc-items { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lrc-items .empty-line { margin: 10px; }
.lrc-item { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; text-align: left; border: 0; background: none; padding: var(--s-2) 10px; border-radius: var(--r-12); position: relative; font: inherit; color: inherit; cursor: pointer; transition: background .12s; }
.lrc-item:hover { background: var(--surface); }
.lrc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lrc-item.on { background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 58, .06), 0 6px 18px rgba(20, 22, 58, .08), inset 0 0 0 1.5px #cfdcfb; }
.lrc-item.on::before { content: ''; position: absolute; left: -6px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
.lrc-av { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-12); display: grid; place-items: center; font: 800 var(--fs-14)/1 var(--display, inherit); color: hsl(var(--h) 50% 30%); background: hsl(var(--h) 80% 92%); }
.lrc-item.on .lrc-av { color: #fff; background: linear-gradient(135deg, var(--violet), #E0409C); }
.lrc-item b { font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrc-pct { font: 800 var(--fs-14)/1 var(--display, inherit); }
.lrc-sub { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); color: var(--muted); min-width: 0; }
.lrc-sub .lrn-lv { width: 64px; margin: 0; height: 6px; flex: none; }
.lrc-sub .lrn-due { font-size: var(--fs-12); padding: 0 6px; }
.lrc-hint { font-size: var(--fs-12); color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line-3); display: flex; gap: 6px; align-items: center; }
.lrc-hint kbd { font: 700 var(--fs-12)/1 var(--body, inherit); padding: 3px 6px; border-radius: 5px; background: #fff; border: 1px solid var(--line); }
.lrc-detail { min-width: 0; display: flex; flex-direction: column; min-height: 0; container-type: inline-size; }
.lrc-dh { padding: 10px 18px 0; flex: none; }
.lrc-dh .lrd-head { margin-bottom: 2px; }
.lrc-db { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; background: #f7f8fb; display: flex; flex-direction: column; gap: 12px; }
.lrc-db > * { flex: none; }
.lrc-back { display: none !important; }
.lrc-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--muted); }
.lrc-empty > svg { width: 34px; height: 34px; opacity: .55; }
.lrc-db .sk-block { min-height: 160px; }
/* the detail's tabs (Özet · Düğümler · Modlar · Geçmiş · HAD! · Harita) */
.lrd-tabs { position: relative; display: flex; gap: 2px; margin: 0 -6px; border-bottom: 1px solid var(--line-3); overflow-x: auto; scrollbar-width: none; }
.lrd-tabs button { border: 0; background: none; padding: var(--s-2) var(--s-3); font: inherit; font-size: var(--fs-14); font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: var(--s-2); align-items: center; cursor: pointer; }
.lrd-tabs button svg { width: 16px; height: 16px; }
.lrd-tabs button em { font-style: normal; font-size: var(--fs-12); padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.lrd-tabs button.on { color: var(--ink); border-bottom-color: var(--violet); }
.lrd-tabs button.on em { background: var(--violet-tint); color: var(--violet-ink); }
.lrd-tabs button:hover { color: var(--ink); }
.lrd-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-8) var(--r-8) 0 0; }
/* one learner's statistics */
/* the learner's header (designs/pratik-kompakt): one identity line (the e-mail once), the dates on one muted line
   (the full text in its tooltip), "İndir" as an icon button (its label stays as the aria-label / title) */
.lrd-head { display: flex; gap: 12px; align-items: center; }
.lrd-av { width: 38px; height: 38px; border-radius: var(--r-12); flex: none; display: grid; place-items: center; font: 800 var(--fs-16)/1 var(--display, inherit); color: #fff; background: linear-gradient(135deg, var(--violet), #E0409C); }
.lrd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lrd-who h2 { margin: 0; font-size: var(--fs-18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrd-em { font: 500 var(--fs-13)/1 var(--body, inherit); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.lrd-who small { font-size: var(--fs-12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.lrd-who small b { font-weight: 600; color: var(--ink-3); }
.lrd-nav { display: flex; align-items: center; gap: 4px; flex: none; font-size: var(--fs-13); }
.lrd-nav .btn.icon { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: var(--fs-18); }
.lrd-dl.btn { position: relative; width: 32px; height: 32px; padding: 0; justify-content: center; }
.lrd-dl > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lrd-dl svg { width: 15px; height: 15px; flex: none; }
/* Özet (designs/pratik-kompakt, A): one KPI strip (the small ring + six numbers in one row), then the levels beside
   the last 30 days; a narrower detail (its container) wraps the numbers into rows of three and stacks the pair */
.lrd-kpi { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.lrd-kpi-ring { display: flex; align-items: center; gap: 10px; flex: none; padding-right: 14px; border-right: 1px solid var(--line-3); }
.lrd-kpi .lrd-ring b { font-size: var(--fs-16); }
.lrd-hero-t { font-size: var(--fs-13); line-height: 1.2; max-width: 80px; }
.lrd-kpi .lrd-kv { flex: 1; min-width: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lrd-kpi .lrd-kv > div { padding: 7px 10px; }
.lrd-kpi .lrd-kv b { overflow: hidden; text-overflow: ellipsis; }
.lrd-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.lrd-row .lrd-card h3 { margin-bottom: 8px; }
.lrd-row .lrd-chart { height: 112px; }
.lrd-row .lrn-legend { gap: 6px 8px; }
.lrd-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.lrd-ring svg { display: block; transform: rotate(-90deg); }
.lrd-ring b { position: absolute; font: 800 var(--fs-24)/1 var(--display, inherit); letter-spacing: -.03em; }
.lrd-ring b small { font-size: .6em; }
.lrd-kv { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.lrd-kv.three { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.lrd-kv > div { background: var(--surface); border-radius: var(--r-12); padding: 8px 10px; text-align: left; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lrd-kv em { font-style: normal; font-size: var(--fs-12); color: var(--muted); }
.lrd-kv b { font: 700 var(--fs-18)/1.25 var(--display, inherit); white-space: nowrap; }
.lrd-kv b.ok { color: var(--ok); } .lrd-kv b.bad { color: var(--danger); }
.lrd-kv small { font-size: var(--fs-12); color: var(--muted); }
.lrd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lrd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-18); padding: 14px 16px; min-width: 0; }
.lrd-card h3 { margin: 0 0 10px; font-size: var(--fs-16); }
.lrd-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.lrd-h h3 { margin: 0; }
.lrd-chart { position: relative; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 130px; align-items: end; padding-top: 14px; }
.lrd-chart-top { position: absolute; top: 0; left: 0; font-size: var(--fs-12); color: var(--muted); }
.lrd-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; outline: none; }
.lrd-bar span { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.lrd-bar i { display: block; width: 100%; background: #4CC38A; border-radius: 4px 4px 1px 1px; position: relative; overflow: hidden; }
.lrd-bar i s { position: absolute; left: 0; right: 0; top: 0; background: #F5A524; text-decoration: none; }
.lrd-bar i.zero { height: 2px; background: var(--line); }
.lrd-bar em { font-style: normal; font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }
.lrd-bar:hover i, .lrd-bar:focus i { filter: brightness(1.1); box-shadow: 0 0 0 2px var(--accent); }
.lrd-tbl { font-size: var(--fs-13); }
.lrd-tbl td { vertical-align: middle; white-space: nowrap; }
.lrd-tbl td.ok { color: var(--ok); font-weight: 700; } .lrd-tbl td.bad { color: var(--danger); font-weight: 700; }
.lrd-tbl tr.is-gold td:first-child b { color: #a87400; }
.lrd-mart { display: inline-block; width: 44px; height: 27px; vertical-align: middle; margin-right: 8px; border-radius: var(--r-8); background: linear-gradient(135deg, #4B2A8F, var(--violet)); overflow: hidden; }
.lrd-mart svg { width: 100%; height: 100%; display: block; }
.lrd-mart svg * { animation: none !important; }
.lrd-goldtag { margin-left: 6px; font-style: normal; font-size: var(--fs-12); font-weight: 800; padding: 1px var(--s-2); border-radius: var(--r-pill); background: linear-gradient(135deg, #ffd86b, #e9a800); color: #4a3300; }
.lrd-tiers { display: flex; gap: 4px; }
.lrd-tier { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 6px; border-radius: var(--r-8); background: var(--surface); color: #c3c7d3; font-size: var(--fs-12); line-height: 1.1; white-space: nowrap; }
.lrd-tier em { font-style: normal; font-size: var(--fs-12); color: var(--muted); }
.lrd-tier.on { background: #fff4d1; color: #d29a00; }
.lrd-lv { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; white-space: nowrap; }
.lrd-node { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.lrd-node img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--r-8); background: var(--surface); flex: none; }
.lrd-weak { display: flex; flex-wrap: wrap; gap: 8px; }
.lrd-wk { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-12); background: #fff8ef; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lrd-wk:hover { border-color: #f0c98a; box-shadow: 0 4px 12px rgba(20, 22, 58, .08); }
.lrd-wk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lrd-wk img { width: 42px; height: 42px; object-fit: contain; border-radius: var(--r-8); background: #fff; }
.lrd-wk span { display: flex; flex-direction: column; line-height: 1.25; }
.lrd-wk b { font-size: var(--fs-14); }
.lrd-wk small { font-size: var(--fs-12); }
.lrd-h .chips { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lrd-h .chips button { white-space: nowrap; flex: none; }
.lrd-legend-btn:focus-visible, .lrn-legend button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Geçmiş / HAD!: the rounds use the whole width; tight columns that wrap, never a sideways scroll */
.lrd-runs { table-layout: auto; }
table.users.lrd-runs th, table.users.lrd-runs td { padding: var(--s-2) 8px; }
.lrd-runs th { font-size: var(--fs-12); letter-spacing: .05em; white-space: normal; line-height: 1.2; }
.lrd-runs td { white-space: normal; overflow-wrap: anywhere; }
.lrd-runs td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lrd-runs td.r-when { min-width: 9em; }
.lrd-runs td.r-mode { font-weight: 600; }
.lrd-games tr.is-win td { font-weight: 700; }
.lrd-games tr.is-win td:last-child { color: #a87400; }
.lrd-had-kv { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.lrd-had-kv > div { background: #fff; border: 1px solid var(--line); }
.lrd-had-empty { min-height: 260px; }
.lrd-had-logo { font: 900 italic var(--fs-24)/1 var(--display, inherit); letter-spacing: -.02em; padding: 10px 18px; border-radius: var(--r-18); color: #fff; background: linear-gradient(135deg, var(--violet), #E0409C); opacity: .85; }
@container (max-width: 560px) {
  /* a narrow pane: each round is a small card, the column's name beside its value */
  .lrd-runs thead { display: none; }
  .lrd-runs, .lrd-runs tbody { display: block; }
  .lrd-runs tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-3); }
  table.users.lrd-runs td { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border: 0; font-size: var(--fs-13); }
  .lrd-runs td::before { content: attr(data-l); color: var(--muted); font-weight: 500; font-size: var(--fs-12); }
  .lrd-runs td.r-when, .lrd-runs td.r-mode { grid-column: 1 / -1; }
  .lrd-had-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the Harita tab: the real map (MapView, as in the editor) with the learner's marks laid over its nodes */
.lrm-map { position: relative; min-height: 300px; flex: 1 1 auto; border-radius: var(--r-lg); border: 1px solid var(--line-3); overflow: hidden; background: #fff; }
.lrm-sk { min-height: 430px !important; }
.lrm-host { position: absolute; inset: 0; overscroll-behavior: contain; }
.lrm-host .node { cursor: pointer; }
.lrm-host .node.lrm-off { opacity: .55; filter: grayscale(.4); }
.lrm-host .node.lrm-dim { opacity: .2; }
.lrm-host .node.sel { outline: none; }
/* --lrm-k grows the marks as the map is zoomed out (set from MapView's zoom), so they stay readable */
.lrm-mk { position: absolute; pointer-events: none; z-index: 2; outline: none; --k: var(--lrm-k, 1); transition: opacity .25s; }
.lrm-mk .lrm-ring { position: absolute; inset: calc(-5px * var(--k)); border-radius: var(--r-18); border: calc(3px * var(--k)) solid var(--lvc, #c9cedb); box-shadow: 0 0 calc(10px * var(--k)) rgba(var(--lvg, 0, 0, 0), .35); }
.lrm-mk.lvn-new .lrm-ring { --lvc: #c9cedb; border-style: dashed; box-shadow: none; }
.lrm-mk.lvn-developing .lrm-ring { --lvc: #F5A524; --lvg: 245, 165, 36; }
.lrm-mk.lvn-strong .lrm-ring { --lvc: #4CC38A; --lvg: 76, 195, 138; border-width: calc(4px * var(--k)); }
.lrm-mk.lvn-mastered .lrm-ring { --lvc: #12804a; --lvg: 18, 128, 74; border-style: double; border-width: calc(6px * var(--k)); }
.lrm-mk .lrm-wkr { position: absolute; inset: calc(-14px * var(--k)); border-radius: var(--r-18); border: calc(2.5px * var(--k)) dashed #e2553d; animation: lrmWk 1.6s ease-in-out infinite; }
@keyframes lrmWk { 50% { border-color: rgba(226, 85, 61, .45); } }
.lrm-mk .lrm-badge { position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20, 22, 58, .25); transform: translate(-40%, -40%) scale(var(--k)); transform-origin: 40% 40%; }
.lrm-mk .lrm-badge .lvg { width: 18px; height: 18px; vertical-align: 0; }
.lrm-mk .lrm-due { position: absolute; right: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #F5A524; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transform: translate(40%, -40%) scale(var(--k)); transform-origin: 60% 40%; }
.lrm-mk.dim { opacity: .2; }
.lrm-mk.sel .lrm-ring { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 calc(4px * var(--k)) rgba(10, 108, 240, .2); }
.lrm-mk:focus-visible .lrm-ring { border-color: var(--accent); border-style: solid; }
.lrm-legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-12); color: var(--ink-3); background: rgba(255, 255, 255, .94); padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); border: 1px solid var(--line-3); max-width: calc(100% - 24px); pointer-events: none; }
.lrm-legend > span { display: inline-flex; gap: var(--s-1); align-items: center; }
.lrm-legend > span > span { color: var(--ink-3); }
.lrm-legend .wkk { width: 16px; height: 10px; border-radius: var(--r-8); border: 2px dashed #e2553d; }
.lrm-legend .dd { width: 9px; height: 9px; border-radius: 50%; background: #F5A524; }
.lrm-tip { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-size: var(--fs-13); color: var(--ink-3); background: rgba(255, 255, 255, .94); padding: var(--s-1) 12px; border-radius: var(--r-pill); border: 1px solid var(--line-3); white-space: nowrap; pointer-events: none; z-index: 2; max-width: calc(100% - 220px); overflow: hidden; text-overflow: ellipsis; }
.lrm-tip[hidden] { display: none; }
.lrm-zoom { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: var(--r-12); background: rgba(255, 255, 255, .94); border: 1px solid var(--line-3); box-shadow: var(--shadow-sm); }
.lrm-zoom .btn.icon { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: var(--fs-16); }
.lrm-zoom .btn.icon svg { width: 16px; height: 16px; }
.lrm-bigbtn { position: absolute; right: 12px; top: 12px; z-index: 3; color: var(--ink); background: rgba(255, 255, 255, .96); border: 1px solid var(--line-3); box-shadow: var(--shadow-sm); }
.lrm-bigbtn:hover { color: var(--ink); background: #fff; border-color: var(--line); }
.lrm-bigbtn svg { width: 15px; height: 15px; }
.lrm-card { position: absolute; right: 12px; top: 58px; width: 280px; z-index: 4; background: #fff; border-radius: var(--r-18); border: 1px solid var(--line-3); box-shadow: 0 20px 50px rgba(20, 22, 58, .2); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: lrmPop .2s var(--ease); }
.lrm-card { max-height: calc(100% - 70px); overflow-y: auto; }
.lrm-map.is-big .lrm-card { top: 12px; max-height: calc(100% - 24px); }
@keyframes lrmPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.lrm-nh { display: flex; gap: 10px; align-items: center; }
.lrm-nh img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-12); background: var(--surface); flex: none; }
.lrm-nh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrm-nh b { font-size: var(--fs-16); line-height: 1.2; overflow-wrap: anywhere; }
.lrm-nh .lrd-lv { font-size: var(--fs-13); }
.lrm-nh .btn.icon { width: 30px; height: 30px; padding: 0; justify-content: center; flex: none; }
.lrm-warn { font-size: var(--fs-13); padding: 6px 10px; border-radius: var(--r-12); background: #fff3ee; color: #9c3a22; font-weight: 600; }
.lrm-rows { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: var(--fs-13); }
.lrm-rows span { color: var(--muted); }
.lrm-rows b { text-align: right; }
/* "Büyüt": the same map near full screen */
html.lrm-big-open { overflow: hidden; }
.lrm-big-wrap { position: fixed; inset: 0; z-index: 1200; background: rgba(14, 16, 40, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; animation: lrmFade .18s ease; }
@keyframes lrmFade { from { opacity: 0; } }
.lrm-big { width: 100%; height: 100%; max-width: 1800px; background: #fff; border-radius: var(--r-18); box-shadow: 0 30px 80px rgba(10, 10, 40, .35); display: flex; flex-direction: column; overflow: hidden; }
.lrm-big-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line-3); }
.lrm-big-h h2 { margin: 0; font-size: var(--fs-18); display: flex; align-items: center; gap: 10px; min-width: 0; }
.lrm-big-h h2 svg { width: 20px; height: 20px; flex: none; color: var(--violet); }
.lrm-big-h h2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrm-big-h small { font-size: var(--fs-13); font-weight: 600; }
.lrm-big-x { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: var(--fs-16); }
.lrm-map.is-big { flex: 1; min-height: 0; border: 0; border-radius: 0; }
@media (max-width: 760px) { .lrm-big-wrap { padding: 0; } .lrm-big { border-radius: 0; } }
@container (max-width: 820px) { .lrd-kpi .lrd-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 700px) {
  .lrd-row { grid-template-columns: minmax(0, 1fr); }
  .lrd-cols { grid-template-columns: 1fr; }
  .lrd-chart em { display: none; }
}
@container (max-width: 520px) {
  .lrd-kpi { flex-direction: column; align-items: stretch; }
  .lrd-kpi-ring { border-right: 0; padding-right: 0; }
  .lrd-hero-t { max-width: none; }
}
@media (max-width: 1100px) { .lrc { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 860px) {
  /* a phone / narrow window: the list, then the learner full screen with "‹ Öğrenenler" */
  .lrc { grid-template-columns: minmax(0, 1fr); height: auto; border-radius: var(--r-18); }
  .lrc-list { border-right: 0; }
  .lrc:not(.m-detail) .lrc-detail { display: none; }
  .lrc.m-detail .lrc-list { display: none; }
  .lrc.m-detail { border: 0; background: none; overflow: visible; border-radius: 0; }
  .lrc-items { overflow: visible; }
  .lrc-dh { padding: 0 2px; }
  .lrc-db { padding: 12px 0 0; background: none; overflow: visible; }
  .lrc-hint { display: none; }
  .lrc-back { display: inline-flex !important; align-self: flex-start; margin-bottom: 10px; }
  .prac3:has(.lrc.m-detail) > .prac-head, .lrn:has(.lrc.m-detail) > .lrn-note { display: none; }
  .lrd-nav .lrd-pos, .lrd-dl > span { display: none; }
  .lrd-dl { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .lrc-item.on { box-shadow: none; background: none; } .lrc-item.on::before { display: none; }
  .lrc-item.on .lrc-av { color: hsl(var(--h) 50% 30%); background: hsl(var(--h) 80% 92%); }
  .lrd-who small { display: none; }
  .lrd-who h2 { white-space: normal; overflow-wrap: anywhere; }
  .lrd-em { display: block; margin: 2px 0 0; }
  .lrd-row, .lrd-cols { grid-template-columns: 1fr; }
  .lrd-card { padding: 12px; }
  .lrd-chart em { display: none; }
  .lrm-map { min-height: 440px; flex-basis: 440px; }
  .lrm-tip { display: none; }
  .lrm-legend { left: 8px; right: 8px; bottom: 8px; border-radius: var(--r-12); gap: 8px; font-size: var(--fs-12); }
  .lrm-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; }
  .lrn-card { padding: 12px; }
  /* a phone / narrow window: the header stacks (title, then the state chips, then a full-width Önizle) */
  .prac2.prac3 { padding: 14px; gap: 12px; }
  .prac-head { padding: 14px 16px; gap: 12px; }
  .prac-head .ph-id { flex-basis: 100%; align-items: flex-start; }
  .pp-settings > .card { padding: 14px 16px; }
  .prac-tabs { align-self: stretch; }
  .prac-tabs button { flex: 1; justify-content: center; padding: 8px 10px; }
  /* the Pratik bar stacks: badge + title, the description, the state chips, the sub-tabs, a full-width Önizle */
  .prac-strip.prac2.prac3 { padding: 14px; gap: 12px; }
  .prac-bar { padding: 14px 16px; gap: 10px 12px; }
  .prac-bar .ph-badge { width: 46px; height: 46px; }
  .prac-bar .ph-badge > svg { width: 22px; height: 22px; }
  .prac-bar .ph-title { flex: 1 1 0; }
  .prac-bar h2 { font-size: var(--fs-20); }
  .prac-bar .ph-info { display: none; }
  .prac-bar .ph-desc { display: block; flex-basis: 100%; order: 1; margin: 0; font-size: var(--fs-13); line-height: 1.4; }
  .prac-bar .ph-meta { flex-basis: 100%; order: 2; margin-left: 0; flex-wrap: wrap; }
  .prac-bar .feat-fm-inline, .prac-bar .feat-lock { flex-wrap: wrap; }
  .prac-bar .prac-tabs { flex-basis: 100%; order: 3; align-self: stretch; }
  .prac-bar .prac-tabs button { padding: 8px 10px; }
  .prac-bar .ph-preview { order: 4; width: 100%; min-height: 44px; font-size: var(--fs-16); }
}
@media (max-width: 520px) {
  .prac-tabs button > svg { display: none; }
  .ph-badge { width: 46px; height: 46px; border-radius: var(--r-12); }
  .prac-head h2 { font-size: var(--fs-20); }
  .prac-head .ph-t p { font-size: var(--fs-13); }
  .ph-preview { width: 100%; }
  .ph-cta { width: 100%; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .lrc-item, .lrm-mk, .lrd-wk { transition: none; } .lrm-mk .lrm-wkr, .lrm-card, .lrm-big-wrap { animation: none; } }

/* the all-in-one SCORM dialog (web/app.js scormAllDialog) */
/* the version as radio cards, the parts as rows with the module's logo and a styled check box (no browser fieldset) */
.scorm-all .sa-group { display: grid; gap: 8px; margin-top: 16px; }
.scorm-all .sa-lbl { font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.scorm-all .sa-radio, .scorm-all .sa-part { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-12); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.scorm-all .sa-radio:hover, .scorm-all .sa-part:not(.off):hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scorm-all input[type=radio], .scorm-all input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.scorm-all .sa-radio:has(input:checked) { background: var(--violet-tint); box-shadow: inset 0 0 0 2px var(--violet); }
.scorm-all .sa-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); background: #fff; display: grid; place-items: center; transition: box-shadow .15s; }
.scorm-all .sa-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); transform: scale(0); transition: transform .15s var(--ease); }
.scorm-all input:checked + .sa-dot { box-shadow: inset 0 0 0 2px var(--violet); }
.scorm-all input:checked + .sa-dot::after { transform: scale(1); }
.scorm-all .sa-txt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.scorm-all .sa-txt b { font-weight: 700; color: var(--ink); }
.scorm-all .sa-txt small { flex-basis: 100%; font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.scorm-all .sa-chip { font-size: var(--fs-12); font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: #e3f6ec; color: #11734b; }
.scorm-all .sa-box { flex: none; width: 22px; height: 22px; border-radius: var(--r-8); box-shadow: inset 0 0 0 2px var(--line-2); background: #fff; display: grid; place-items: center; color: #fff; transition: background .15s, box-shadow .15s; }
.scorm-all .sa-box svg { width: 15px; height: 15px; opacity: 0; stroke-width: 3; }
.scorm-all input:checked + .sa-box { background: var(--violet); box-shadow: none; }
.scorm-all input:checked + .sa-box svg { opacity: 1; }
.scorm-all .sa-part:has(input:checked) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--violet) 45%, var(--line)); }
.scorm-all input:focus-visible + .sa-dot, .scorm-all input:focus-visible + .sa-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.scorm-all .sa-logo { flex: none; width: 36px; height: 36px; object-fit: contain; }
.scorm-all .sa-part.off { cursor: not-allowed; background: var(--surface); box-shadow: none; }
.scorm-all .sa-part.off .sa-box { background: var(--line-3); box-shadow: none; }
.scorm-all .sa-part.off .sa-logo { filter: grayscale(1); opacity: .5; }
.scorm-all .sa-part.off .sa-txt b { color: var(--muted); }
.scorm-all .sa-part.off .sa-txt small { color: #8a5a00; }
.scorm-all .sa-go { flex: none; cursor: pointer; }
.scorm-all .small { font-size: var(--fs-13); margin-top: 14px; }
@media (max-width: 520px) { .scorm-all .sa-radio, .scorm-all .sa-part { padding: 10px 12px; gap: 10px; } .scorm-all .sa-logo { width: 30px; height: 30px; } }

/* the map lock (web/app.js renderEditor / featureGate): Pratik or HAD! on -> the map is read-only in the studio */
/* a locked map: a 44px strip over the canvas (lockBanner): the warning chip on the left, "Kilidi aç…" as a quiet
   danger button on the right; the canvas starts under it */
.map-lock { position: absolute; z-index: 7; top: 0; left: 0; right: 0; min-height: 44px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 6px 14px; background: #fff; border-bottom: 1px solid var(--line-3); }
.map-lock .ml-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--warn-tint); color: #6b4300; font-size: 13px; font-weight: 600; }
.map-lock .ml-chip svg { width: 15px; height: 15px; flex: none; color: #c07a00; }
.map-lock .btn { flex: none; }
/* the strip's right end: the Foramind sync line + "Foramind'dan güncelle" (app.js renderEditor) beside "Kilidi aç…" */
.map-lock .ml-right { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.map-sync { display: flex; align-items: center; gap: 8px; min-width: 0; }
.map-sync .fm-sync { padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--ink-3); font-weight: 600; cursor: default; }
.map-sync .fm-sync.warn { background: var(--warn-tint); color: #6b4300; }
/* not locked: the same group floats at the canvas's top right (same corner as on a locked map) */
.map-sync.float { position: absolute; z-index: 6; top: 12px; right: 12px; padding: 5px 5px 5px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line-3); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .map-sync .fm-sync { font-size: 0; gap: 0; padding: 6px; }   /* the dot only; the words are on its title */
  .map-sync .fm-sync::before { width: 9px; height: 9px; }
}
.map-locked .canvas-tools .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.map-locked .rev-dock { top: 120px; }
.lock-tag { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-12); font-weight: 600; color: #8a5a00; background: var(--warn-tint); padding: 3px var(--s-2); border-radius: var(--r-pill); }
.lock-tag svg { width: 13px; height: 13px; }
.insp-ro .ro-title { font-size: var(--fs-16); display: block; margin: 10px 0 4px; }
.insp-ro .ro-text { white-space: pre-wrap; }
/* the lock chip's row (lockNotice): after a Foramind card, never a banner (none on the HAD! tab) */
.feat-lock-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-pull:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .map-lock { padding: 6px 10px; } }
.lock-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; text-align: left; font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2, inherit); }
.feat-lock-note { grid-column: 1 / -1; align-self: start; }

/* ---- the Flashcard tab (web/app.js renderFlashcards): the site's page format like Pratik; the cards on the left,
   sharing and "Sunuma aktar" in a side column (one column on a narrow screen); coral-to-amber like the Flashcard tile */
.fc-tab { --fc1: #ffb238; --fc2: #f2603c; --fc-tint: var(--m-cards-tint); --fc-ink: var(--m-cards-ink); }
.fc-hbadge { background: linear-gradient(145deg, var(--fc1), var(--fc2)); color: #fff; box-shadow: 0 8px 20px rgba(242, 96, 60, .28); }
.fc-tab .ph-badge { background: var(--fc-tint); color: var(--fc-ink); }
.fc-chip { display: inline-flex; align-items: center; padding: 4px var(--s-3); border-radius: var(--r-pill); background: var(--fc-tint); color: var(--fc-ink); font-size: var(--fs-13); font-weight: 700; white-space: nowrap; }
.fc-chip:empty { display: none; }
.fc-tab .save-state.saving, .fc-tab .save-state.editing { color: var(--muted); }
.fc-tab .save-state.saved { color: var(--ok, #1f8a4c); }
.fc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.fc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.fc-tab .card { margin: 0; border-radius: var(--r-lg); }
.fc-tab h3 { margin: 0; font-size: var(--fs-16); }
.fc-tab .input.small { padding: 8px 12px; font-size: var(--fs-14); min-height: 38px; }
/* making cards: four options */
.fc-make { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.fcm-head p { margin: 4px 0 0; font-size: var(--fs-14); }
.fcm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc-tab .fc-clear { color: var(--danger); }
.fc-tab .fc-clear:hover { background: var(--danger-tint); }
@media (max-width: 640px) { .fcm-grid { grid-template-columns: 1fr; } }
.fcm-opt { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px; border: 1px solid var(--line-3); border-radius: var(--r-18); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fcm-opt:hover { border-color: #f6c7a8; box-shadow: 0 6px 18px rgba(242, 96, 60, .08); }
.fcm-opt .mi { background: var(--fc-tint); color: var(--fc-ink); }
.fcm-opt .mi svg, .fcm-opt .mi img { width: 18px; height: 18px; }
.fcm-opt[data-mk="ai"] { background: linear-gradient(160deg, #fff7ef, #fff); border-color: #f8d4b8; }
.fcm-opt.off { opacity: .62; }
.fcm-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcm-t b { font-size: var(--fs-14); }
.fcm-t span { font-size: var(--fs-13); line-height: 1.4; }
.fcm-go { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.fcm-go select { width: auto; }
.fcm-go .btn svg { width: 15px; height: 15px; }
/* the cards */
.fc-list { display: flex; flex-direction: column; gap: 10px; }
.fcl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 2px 0; }
.fcl-head h3 { margin-right: auto; }
.fcl-head .btn svg { width: 15px; height: 15px; }
.fc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 10px; border: 1px solid var(--line-3); border-left: 4px solid var(--fc2); }
.fc-item.open { border-left-color: var(--line-2); background: #fffdf9; }
.fci-rail { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fci-n { font-size: var(--fs-13); font-weight: 800; color: var(--fc-ink); min-width: 26px; text-align: center; padding: 3px 0 4px; }
.fci-rail .icon-btn { width: 32px; height: 30px; border-radius: var(--r-8); }
.fci-rail .icon-btn svg { width: 17px; height: 17px; }
.fci-rail .icon-btn[data-mv="-1"] svg { transform: rotate(180deg); }
.fci-rail .icon-btn:disabled { opacity: .3; cursor: default; }
.fci-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fci-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fci-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fci-f > span { font-size: var(--fs-12); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fci-f.front > span { color: var(--fc-ink); }
.fci-f.back > span { color: var(--ok); }
.fci-f textarea { resize: vertical; min-height: 64px; font-size: var(--fs-14); line-height: 1.4; }
.fci-f.front textarea { font-weight: 600; }
.fci-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fci-hint { flex: 1 1 180px; min-width: 0; }
.fci-node { flex: 0 1 220px; min-width: 0; }
.fci-pic { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-13); color: var(--ink-2); cursor: pointer; }
.fci-pic.hidden { display: none; }
.fci-pic svg { width: 16px; height: 16px; }
.fci-by { display: inline-flex; align-items: center; gap: var(--s-1); padding: 3px var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: var(--fs-12); font-weight: 700; white-space: nowrap; }
.fci-by svg, .fci-by img { width: 13px; height: 13px; }
.fci-img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-12); background: var(--surface); align-self: center; }
.fc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s-6) 20px; border: 2px dashed #f3cdb3; background: #fffaf5; }
.fc-empty-art { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--r-18); background: var(--fc-tint); color: var(--fc-ink); margin-bottom: 4px; }
.fc-empty-art svg { width: 32px; height: 32px; }
/* what "Foramind oluştursun" spends (and that writing by hand is free), said before anything is spent */
.fcm-units, .fcp-units { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; padding: 8px var(--s-3); border-radius: var(--r-12); background: #fff1e6; color: #8a3a17; font-size: var(--fs-13); line-height: 1.4; }
.fcm-units svg, .fcp-units svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.fcm-units.none { background: var(--danger-tint); color: #a8322a; }
.fcm-units.free { background: var(--ok-tint); color: #1f6b43; }
.fc-empty p { margin: 0; max-width: 46ch; font-size: var(--fs-14); }
/* a hand-written card whose answer is the linked node's title (its picture shows it): a gentle hint */
.fci-leak { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; padding: var(--s-2) 10px; border-radius: var(--r-12); background: #fff6e0; color: #7a5200; font-size: var(--fs-13); line-height: 1.4; }
.fci-leak[hidden] { display: none; }
.fci-leak svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
/* "Foramind haritasında göster" (its own card, like Pratik / HAD!) and the options */
.fc-side .fc-fm { max-width: none; padding: 16px 18px; }
.fc-fm .ff-b span { -webkit-line-clamp: 3; }
.fc-fm .ff-acts { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: nowrap; }
.fc-fm .ff-note { flex: 1 1 100%; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line-3); font-size: var(--fs-13); line-height: 1.45; }
.fc-opts { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.fco-row { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 10px 0; border-top: 1px solid var(--line-3); }
.fco-row:first-of-type { border-top: 0; }
.fco-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fco-t b { font-size: var(--fs-14); }
.fco-t span { font-size: var(--fs-13); line-height: 1.4; }
.fc-tab .switch input:checked + i { background: var(--fc2); }
.fcv-badge { background: linear-gradient(145deg, #ffb238, #f2603c); color: #fff; }
.ppv .fcv-host { display: flex; background: #f4f4f8; }
.ppv .fcv-host > .fc { min-height: 100%; }
.fcv-badge { background: transparent !important; box-shadow: none !important; }
.fcv-badge img { width: 100%; height: 100%; object-fit: contain; }
/* the Sunum panel's "Notları hatırlama kartı olarak göster" (Gelişmiş, İçerik ve notlar) */
.fcp-opts { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-3); }
.fcp-opts .switch span { display: flex; flex-direction: column; gap: 1px; }
.fcp-opts .switch small { color: var(--muted); font-size: var(--fs-13); }
.fcp-opts .switch input:checked + i { background: #f2603c; }
.fcp-empty { display: flex; flex-direction: column; gap: 8px; }
.fcp-opts .fcp-empty > p { margin: 0; font-size: var(--fs-13); line-height: 1.45; color: var(--ink-2); }
.fcp-opts .fcp-empty > p.fcp-units { font-size: var(--fs-13); color: #8a3a17; }
.fcp-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fcp-acts .btn svg { width: 15px; height: 15px; }
@media (max-width: 1020px) {
  .fc-cols { grid-template-columns: 1fr; }
  .fc-side { position: static; }
}
@media (max-width: 640px) {
  .fci-faces { grid-template-columns: 1fr; }
  .fc-item { grid-template-columns: auto minmax(0, 1fr); }
  .fci-img { display: none; }
}
/* ── the institution's look of Pratik and HAD! (web/brand-studio.js): the brand kit, a map's Tema, the preview ── */
.bt-card { margin-top: 18px; }
.bt-kit-head { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; margin-bottom: 14px; }
.bt-kit-head h3 { font-size: var(--fs-20); } .bt-kit-head p { margin: 4px 0 0; max-width: 720px; }
.bt-state { flex: none; display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-13); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.bt-state svg { width: 13px; height: 13px; } .bt-state:empty { display: none; }
.bt-state.on { background: var(--ok-tint); color: var(--ok); } .bt-state.dirty { background: var(--warn-tint); color: var(--amber); }
.bt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-5); align-items: start; }
.bt-cols.one { grid-template-columns: minmax(0, 1fr); }
.bt-cols.one > .bt-ed:empty { display: none; }
.bt-pv { position: sticky; top: calc(var(--head) + 12px); }
.bt-acts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.bt-ed.ro { opacity: .75; }
.bte { display: flex; flex-direction: column; gap: 18px; }
.bte-sec { display: flex; flex-direction: column; gap: 8px; }
.bte-lbl { font-size: var(--fs-12); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bte-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bte-logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
/* the logo's box: any logo (very tall, very wide, tiny, an SVG without a size of its own) fits inside it, never
   over the text below; the checkerboard shows what is see-through */
.bte-logo-box { position: relative; flex: none; width: 120px; height: 84px; border-radius: var(--r-12); display: grid; place-items: center; padding: 8px; font-size: var(--fs-12);
  overflow: hidden; text-align: center; background: repeating-conic-gradient(#f1f1f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.bte-logo-box img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; max-height: none; object-fit: contain; object-position: center; display: block; }
.bte-logo-box.on-dark { background: repeating-conic-gradient(#2a2c3b 0 25%, #1d1f2c 0 50%) 0 0 / 16px 16px; }   /* a light logo: a dark checkerboard */
.bte-logo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bte-note { margin: 2px 0 0; padding: 8px 10px; border-radius: var(--r-12); background: var(--surface); font-size: var(--fs-13); line-height: 1.45; color: var(--ink-3); }
.bte-cut { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--r-12); background: var(--surface); }
.bte-cut-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.bte-cut-pair figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bte-cut-pair figcaption { font-size: var(--fs-12); font-weight: 700; color: var(--muted); }
.bte-cut .btn svg { width: 16px; height: 16px; }
.bte-pal { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bte-sws { display: flex; gap: 8px; flex-wrap: wrap; }
.bte-sw { width: 36px; height: 36px; border-radius: var(--r-12); border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s; }
.bte-sw:hover, .bte-sw:focus-visible { transform: scale(1.1); }
.bte-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bte-color { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-12);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; }
.bte-color.on { box-shadow: inset 0 0 0 1.5px var(--accent); background: #fff; }
.bte-color input[type=color] { grid-row: span 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-12); background: none; cursor: pointer; }
.bte-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .bte-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: var(--r-12); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bte-color span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .bte-color small { color: var(--muted); font-size: var(--fs-12); }
.bte-hex { grid-column: 2; margin-top: 6px; padding: var(--s-1) 8px; font: 600 var(--fs-13) ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; min-height: 0; height: 30px; }
.bte-checks ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.bte-checks li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: var(--fs-14); }
.bte-pair { display: grid; place-items: center; height: 30px; border-radius: var(--r-8); font-weight: 800; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bte-checks li b { font-variant-numeric: tabular-nums; }
.bte-checks li em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: var(--fs-13); font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.bte-checks li em svg { width: 13px; height: 13px; }
.bte-checks li.ok em { background: var(--ok-tint); color: var(--ok); } .bte-checks li.bad em { background: var(--danger-tint); color: var(--danger); }
.bte-checks .btn svg { width: 16px; height: 16px; }
.bte-place { display: flex; gap: 10px; flex-wrap: wrap; }
.bt-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bt-mode { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: var(--r-18); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent; }
.bt-mode.on { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.bt-mode:disabled { opacity: .55; cursor: not-allowed; }
.bt-mode > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .bt-mode small { color: var(--muted); font-size: var(--fs-13); }
.bt-sw3 { flex: none; display: inline-flex; border-radius: var(--r-12); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bt-sw3 i { width: 14px; height: 34px; }
.bt-map > [data-note]:not(:empty) { margin-bottom: 12px; }
.bt-locked { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bt-locked > div { flex: 1; min-width: 200px; } .bt-locked p { margin: 2px 0 0; font-size: var(--fs-14); }
.bt-locked .mi svg { width: 22px; height: 22px; }
.bt-side .bt-side-row { display: flex; align-items: center; gap: 12px; }
.bt-side .bt-side-row > div { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bt-side .bt-locked { gap: 10px; } .bt-side .bt-locked p { font-size: var(--fs-13); }
.bt-dlg { text-align: left; margin-top: 4px; }
.dlg.wide:has(.bt-dlg) { width: min(1180px, 96vw); }
@media (max-width: 960px) { .bt-cols { grid-template-columns: 1fr; } .bt-pv { position: static; } }
@media (max-width: 640px) { .bt-modes, .bte-colors, .bte-two { grid-template-columns: 1fr; } }
/* the preview: small copies of the screens in the theme's colours (--fb-* from brand-theme.js) */
.btp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.btp-tabs { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--surface); }
.btp-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 700; color: var(--ink-3); }
.btp-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btp-box { --btp-k: .5; border-radius: var(--r-18); overflow: hidden; box-shadow: 0 14px 40px rgba(20, 22, 58, .16); font-family: var(--fb-font, var(--body)); }
.btp-app { background: var(--fb-stage); color: var(--fb-text); min-height: 360px; display: flex; flex-direction: column; }
.btp-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--fb-glass); font-size: var(--fs-13); }
.btp-bar b { flex: 1; font-family: var(--fb-font, var(--display)); font-size: var(--fs-16); } .btp-bar em { font-style: normal; opacity: .85; } .btp-bar strong { color: var(--fb-accent-s); }
.btp-mark { width: 22px; height: 22px; }
/* the institution's logo in the preview: the real screens' sizes (web/brand-theme.css) × --btp-k; no plate, the
   halo / solid look from FM_BRAND.logoImg (.fb-brand-logo .fb-halo-l / .fb-halo-d / .fb-solid in brand-theme.css) */
.btp-logo { display: block; width: auto; object-fit: contain; flex: none; }
.btp-fmp .btp-bar .btp-top { height: calc(34px * var(--btp-k)); max-width: calc(160px * var(--btp-k)); padding: calc(3px * var(--btp-k)) calc(6px * var(--btp-k)); }   /* .fmp-top .fb-top-logo */
.btp-had .btp-bar .btp-top { height: calc(30px * var(--btp-k)); max-width: calc(140px * var(--btp-k)); padding: calc(3px * var(--btp-k)) calc(6px * var(--btp-k)); }   /* .ls-title-logo */
.btp-ptop .btp-top { height: calc(30px * var(--btp-k)); max-width: calc(110px * var(--btp-k)); padding: calc(2px * var(--btp-k)) calc(6px * var(--btp-k)); }        /* .j-top .fb-top-logo */
.btp-top.fb-solid { padding: 0; }
.btp-chip { display: inline-flex; align-items: center; justify-content: center; padding: calc(10px * var(--btp-k)) calc(16px * var(--btp-k)); }   /* .fb-logo-chip */
.btp-chip .btp-clogo { height: calc(var(--fb-logo-h, 58px) * 1.25 * var(--btp-k)); max-width: min(calc(320px * var(--btp-k)), 100%); }       /* .fb-logo */
.btp-menu .btp-chip { padding: calc(6px * var(--btp-k)) calc(10px * var(--btp-k)); }                                                   /* .fmp-menu-brand .fb-logo-chip */
.btp-menu .btp-chip .btp-clogo { height: calc(44px * var(--btp-k)); max-width: calc(200px * var(--btp-k)); }
.btp-screen .btp-chip { padding: calc(8px * var(--btp-k)) calc(12px * var(--btp-k)); }                                                 /* the phone: .fb-join .fb-logo-chip */
.btp-screen .btp-chip .btp-clogo { height: calc(min(52px, var(--fb-logo-h, 58px) * .9) * var(--btp-k)); max-width: 100%; }
.btp-split { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 10px; }
.btp-menu { border-radius: var(--r-12); padding: 12px; background: var(--fb-panel); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.btp-mhead { display: flex; align-items: center; gap: 8px; } .btp-plogo { width: 40px; height: 40px; object-fit: contain; }
.btp-h { font-family: var(--fb-font, var(--display)); font-size: var(--fs-16); } .btp-menu small { opacity: .75; font-size: var(--fs-12); }
.btp-meter { height: 7px; border-radius: var(--r-8); background: rgba(255, 255, 255, .14); } .btp-meter i { display: block; width: 44%; height: 100%; border-radius: var(--r-8); background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold)); }
.btp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.btp-card { border-radius: var(--r-12); overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; font-size: var(--fs-13); }
.btp-card b { padding: 0 8px; }
.btp-art { height: 54px; display: grid; place-items: center; background: linear-gradient(135deg, var(--fb-primary-ink), var(--fb-ink)); } .btp-art span { width: 28px; height: 28px; border-radius: var(--r-8); display: grid; place-items: center; background: #fff; color: var(--violet); font-weight: 900; }
.btp-gold { margin: 0 8px; min-height: 30px; border: 0; border-radius: var(--r-8); background: var(--gold); color: var(--fb-on-gold); font-weight: 800; font-size: var(--fs-13); box-shadow: 0 3px 0 var(--fb-gold-shadow); cursor: default; }
.btp-stage, .btp-map { position: relative; border-radius: var(--r-12); background: #fff; min-height: 200px; overflow: hidden; }
.btp-stage .btp-n, .btp-map .btp-n { position: absolute; width: 54px; height: 44px; border-radius: var(--r-12); background: #eef0f6; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); display: grid; place-items: center; font-weight: 900; font-size: var(--fs-20); }
.btp-stage .p1 { left: 10%; top: 24%; } .btp-stage .p2 { left: 58%; top: 18%; } .btp-stage .p3 { left: 34%; top: 50%; } .btp-stage .p4 { left: 66%; top: 66%; }
.btp-n.q { background: #fff; color: var(--violet); box-shadow: inset 0 0 0 3px var(--violet); }
.btp-n.t { background: linear-gradient(135deg, var(--fb-primary-ink), var(--pink)); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 18px var(--fb-primary-glow); }
.btp-hud { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--fb-ink-a); color: #fff; font-weight: 800; z-index: 2; }
/* the corner logo on the map (.fb-corner / .fb-corner-img): the real places × --btp-k - Pratik below the bar and above
   the zoom buttons, the live screen's just inside the map */
.btp-corner { position: absolute; z-index: 3; display: flex; pointer-events: none; padding: calc(8px * var(--btp-k)) calc(10px * var(--btp-k)); }
.btp-corner .btp-cimg { height: calc(var(--fb-logo-h, 58px) * var(--btp-k)); max-width: calc(var(--fb-logo-h, 58px) * 3.2 * var(--btp-k)); }
.btp-corner.btp-tl { left: calc(14px * var(--btp-k)); top: calc(66px * var(--btp-k)); } .btp-corner.btp-tr { right: calc(14px * var(--btp-k)); top: calc(66px * var(--btp-k)); }
.btp-corner.btp-bl { left: calc(14px * var(--btp-k)); bottom: calc(14px * var(--btp-k)); } .btp-corner.btp-br { right: calc(14px * var(--btp-k)); bottom: calc(64px * var(--btp-k)); }
.btp-map .btp-corner.btp-tl, .btp-map .btp-corner.btp-tr { top: calc(16px * var(--btp-k)); } .btp-map .btp-corner.btp-bl, .btp-map .btp-corner.btp-br { bottom: calc(18px * var(--btp-k)); }.btp-had .btp-lobby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; align-items: center; }
.btp-join { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; } .btp-join small { opacity: .8; font-size: var(--fs-12); }
.btp-badge { width: 84px; height: auto; } .btp-badge.sm { width: 64px; }
.btp-pin { font-family: var(--fb-font, var(--display)); font-size: var(--fs-32); letter-spacing: .08em; color: var(--fb-accent-s); line-height: 1; }
.btp-side { display: flex; flex-direction: column; align-items: center; gap: 8px; } .btp-side small { font-weight: 700; }
.btp-names { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .btp-names span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--fb-glass-2); font-size: var(--fs-13); font-weight: 700; }
.btp-primary { border: 0; border-radius: var(--r-12); padding: var(--s-2) var(--s-5); background: var(--fb-cta); color: var(--fb-on-cta); font-weight: 800; cursor: default; box-shadow: 0 8px 20px var(--fb-cta-glow); }
.btp-round { margin: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.btp-map { min-height: 110px; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #f1eef9 100%); }
.btp-map .p1 { left: 12%; top: 28%; } .btp-map .p2 { left: 42%; top: 30%; } .btp-map .p3 { left: 68%; top: 26%; }
.btp-timer { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; }
.btp-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); } .btp-timer circle { fill: var(--fb-ink-a); stroke: rgba(255, 255, 255, .2); stroke-width: 4; }
.btp-timer circle.f { fill: none; stroke: var(--fb-accent-ink); stroke-dasharray: 113; stroke-dashoffset: 40; stroke-linecap: round; } .btp-timer b { position: relative; color: #fff; font-size: var(--fs-14); }
.btp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.btp-tiles span { position: relative; height: 46px; border-radius: var(--r-12); background: var(--c); display: grid; place-items: center; }
.btp-tiles i { position: absolute; left: 6px; top: 3px; font-style: normal; color: #fff; font-size: var(--fs-12); } .btp-tiles s { width: 26px; height: 26px; border-radius: var(--r-8); background: rgba(255, 255, 255, .94); }
.btp-phone { display: flex; gap: 16px; justify-content: center; padding: 18px; background: var(--surface); }
.btp-screen { width: 170px; min-height: 320px; border-radius: var(--r-28); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--fb-stage); color: var(--fb-text);
  box-shadow: 0 0 0 6px var(--ink), 0 18px 40px rgba(0, 0, 0, .25); text-align: center; font-size: var(--fs-13); }
.btp-screen b { font-family: var(--fb-font, var(--display)); font-size: var(--fs-16); }
.btp-input { width: 100%; padding: 8px; border-radius: var(--r-8); background: #fff; color: var(--ink); font-weight: 700; }
.btp-screen .btp-primary { width: 100%; padding: var(--s-2); }
.btp-screen.q { justify-content: flex-start; } .btp-screen.q .btp-tiles { width: 100%; grid-template-columns: 1fr 1fr; flex: 1; } .btp-screen.q .btp-tiles span { height: auto; min-height: 90px; }
.btp-ptop { width: 100%; display: flex; align-items: center; gap: 6px; } .btp-ptop b { flex: 1; text-align: left; font-size: var(--fs-13); } .btp-ptop em { font-style: normal; padding: 2px 8px; border-radius: var(--r-pill); background: var(--fb-glass-2); }
/* ---- scrollbars in the studio's look, everywhere (the window, panels, lists, dialogs): thin, rounded, a soft ink
   thumb on a clear track that darkens on hover. Chromium / Edge / Safari use ::-webkit-scrollbar; Firefox (which
   has no such selector) gets scrollbar-width / scrollbar-color. Dark surfaces set --sb-* to light tones. */
:root { --sb-thumb: rgba(20, 22, 58, .2); --sb-thumb-hover: rgba(20, 22, 58, .38); --sb-thumb-active: rgba(10, 108, 240, .55); --sb-track: transparent; }
.live-stage, .hadpv, .fmp { --sb-thumb: rgba(255, 255, 255, .26); --sb-thumb-hover: rgba(255, 255, 255, .45); --sb-thumb-active: rgba(245, 197, 66, .7); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 2px solid transparent; border-radius: var(--r-pill); background-clip: padding-box; min-height: 40px; min-width: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--sb-thumb-active); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) var(--sb-track); }
}

/* ---- the studio's dropdowns (web/fselect.js): the native <select> stays as the value holder, out of sight; a
   button shows the choice and opens a rounded list with a check on the chosen item */
.fsel-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%) !important; overflow: hidden !important; }
.fsel { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.fsel.input { display: flex; background: #fff; line-height: 1.5; }
.fsel-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-chev { flex: none; width: 16px; height: 16px; margin-right: -3px; color: var(--muted); transition: transform .2s var(--ease); }
.fsel[aria-expanded="true"] .fsel-chev { transform: rotate(180deg); color: var(--accent); }
.fsel.input:focus-visible, .fsel.input[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13); }
.fsel:disabled { opacity: .55; cursor: default; }
.fsel.sort { width: auto; height: 42px; padding: 0 14px 0 16px; border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 600; }
.prof-row .fsel { flex: 1; }
.mem-filter .fsel { max-width: 280px; }
.fcm-go .fsel { width: auto; }
/* the dashboard pills (sort, page size): the bare button inside its .dt-btn label, which keeps its icons */
.dt-sort .fsel { height: 100%; padding: 0; border: 0; background: none; outline: none; font-weight: inherit; color: inherit; }
.dt-sort .fsel-chev { display: none; }
.dt-sort > svg.chev { transition: transform .2s var(--ease); }
.dt-sort:has(.fsel[aria-expanded="true"]) { border-color: var(--accent); }
.dt-sort:has(.fsel[aria-expanded="true"]) > svg.chev { transform: rotate(180deg); color: var(--accent); }
.dt-sort:has(.fsel:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 240, .13); }
.dpg-size .fsel { font-weight: 700; }
@media (max-width: 640px) {
  .dt-sort .fsel { position: absolute; inset: 0; width: 100%; opacity: 0; }
  .dpg-size .fsel { position: static; width: auto; opacity: 1; }
}
.fsel-pop { position: fixed; z-index: 1100; min-width: 180px; max-width: min(440px, calc(100vw - 16px)); max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: #fff; color: var(--ink); border: 1px solid var(--line-3); border-radius: var(--r-18); box-shadow: 0 18px 50px rgba(20, 22, 58, .16), 0 2px 6px rgba(20, 22, 58, .06);
  font: 500 var(--fs-14)/1.35 var(--body); text-align: left; outline: none; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity .14s, transform .18s var(--ease); }
.fsel-pop.up { transform: translateY(4px) scale(.98); transform-origin: bottom left; }
.fsel-pop.on { opacity: 1; transform: none; }
.fsel-opt { display: flex; align-items: center; gap: 12px; padding: var(--s-2) 10px var(--s-2) 12px; border-radius: var(--r-12); cursor: pointer; user-select: none; transition: background .1s; }
.fsel-opt > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-check { flex: none; width: 17px; height: 17px; color: var(--accent); visibility: hidden; }
.fsel-opt.act { background: var(--surface); }
.fsel-opt[aria-selected="true"] { color: var(--accent-deep); font-weight: 650; }
.fsel-opt[aria-selected="true"] .fsel-check { visibility: visible; }
.fsel-opt[aria-selected="true"].act { background: var(--blue-tint); }
.fsel-opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.fsel-opt[aria-disabled="true"].act { background: none; }
.fsel-grp { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-3); }
.fsel-grp:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fsel-gl { padding: 8px 12px 4px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fsel-pop, .fsel-chev, .dt-sort > svg.chev { transition: none; } }

/* ---------------------------------------------------------------- demo accounts (app.js "demo accounts")
   A demo account (html.is-demo) never meets the packages: any link to them, the upgrade buttons and the "next package"
   lines are hidden. Its own look: the ribbon under the header, the "Demo haklarınız" card, the welcome window. */
.is-demo a[href="/app/plans"], .is-demo #upg, .is-demo #libup, .is-demo .plan-next, .is-demo #brandup, .is-demo #toaddons { display: none !important; }
.demo-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--cta); color: #fff; font: 700 var(--fs-12)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(123, 63, 228, .25); flex: none; }
.demo-badge svg { width: 14px; height: 14px; }
.demo-ribbon { position: relative; z-index: 30; background: linear-gradient(90deg, #f3edff 0%, #ecf3ff 55%, #e7f8fa 100%); border-bottom: 1px solid #e4dcf8; }
.demo-ribbon .dr-in { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px max(clamp(16px, 3vw, 36px), env(safe-area-inset-right)) 6px max(clamp(16px, 3vw, 36px), env(safe-area-inset-left)); }
.demo-ribbon .grow { flex: 1; }
.dr-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: var(--fs-14); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.dr-text b { font-weight: 700; color: var(--violet-ink); }
.dr-text .dr-days { overflow: hidden; text-overflow: ellipsis; }
.dr-sep { color: var(--faint); }
.dr-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); color: var(--violet-ink); font: 600 var(--fs-13)/1 var(--body); box-shadow: inset 0 0 0 1px rgba(123, 63, 228, .24); flex: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.dr-btn:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(123, 63, 228, .45); }
.dr-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.dr-btn svg { width: 16px; height: 16px; flex: none; }
.demo-ribbon.ended { background: linear-gradient(90deg, #fff6e3 0%, #fff2ee 100%); border-bottom-color: var(--warn-line); }
.demo-ribbon.ended .demo-badge { background: var(--warn); box-shadow: none; }
.demo-ribbon.ended .dr-text b { color: var(--warn-ink); }
.demo-ribbon.ended .dr-contact { background: var(--cta); color: #fff; box-shadow: none; }
/* the maps page: the rights card (and an ended demo's card) */
.demo-panel { position: relative; margin: 0 0 var(--s-5); padding: 24px 24px 20px; border-radius: var(--r-lg); border: 1px solid #e6dffa; background: radial-gradient(120% 160% at 0% 0%, #f3edff 0%, rgba(255, 255, 255, 0) 55%), #fff; box-shadow: var(--sh-1); overflow: hidden; }
.demo-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--spectrum); }
.dp-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dp-mark { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--cta); color: #fff; flex: none; box-shadow: 0 10px 24px rgba(123, 63, 228, .28); }
.dp-mark svg { width: 24px; height: 24px; }
.dp-title { flex: 1 1 260px; min-width: 0; }
.dp-kicker { font: 700 var(--fs-12)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-ink); }
.dp-title h2 { font-size: var(--fs-24); margin: 6px 0 4px; }
.dp-title p { margin: 0; color: var(--ink-3); font-size: var(--fs-14); line-height: 1.5; }
.dp-head > .btn { flex: none; }
/* reaching the team: "E-posta gönder" (the person's mail app, a ready message), the form, the address with a copy button */
.dp-reach { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.dp-reach-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dp-reach .btn { display: inline-flex; align-items: center; gap: 8px; }
.dm-mailbtn svg { width: 17px; height: 17px; flex: none; }
.dp-mail { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-14); color: var(--ink-3); font-weight: 600; user-select: all; }
.dm-copy { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; user-select: none; }
.dm-copy:hover { background: var(--violet-tint, #f3edff); color: var(--violet-ink); }
.dm-copy:focus-visible { outline: none; box-shadow: var(--focus); }
.dm-copy svg { width: 16px; height: 16px; }
.dm-mailline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 14px 0 0; font-size: var(--fs-14); color: var(--ink-3); }
.dm-mailline b { color: var(--ink); user-select: all; }
.dm-mailline a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.dm-mailline a svg { width: 14px; height: 14px; }
.dm-sep { color: var(--line-2, #c9cbd6); }
@media (max-width: 640px) {
  .dp-reach { align-items: stretch; width: 100%; }
  .dp-reach-btns { justify-content: stretch; }
  .dp-reach-btns .btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .dp-mail { justify-content: center; }
}
.dm-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.dm-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; border-radius: var(--r-18); background: #fff; border: 1px solid var(--line-3); min-width: 0; }
.dm-ico { width: 40px; height: 40px; border-radius: var(--r-12); display: grid; place-items: center; flex: none; }
.dm-ico svg { width: 20px; height: 20px; }
.dm-ico .fm-ico { width: 20px; height: 20px; }
.dm-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; min-width: 0; }
.dm-txt b { font: 600 var(--fs-24)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.dm-txt small { color: var(--muted); font-size: var(--fs-13); font-weight: 600; }
.dm-txt > span { flex-basis: 100%; margin-top: 4px; font-size: var(--fs-13); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-bar { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--line-3); overflow: hidden; }
.dm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12b8c8, #0a6cf0 60%, #7b3fe4); transition: width .6s var(--ease); }
.dm-item.out { background: var(--page); }
.dm-item.out .dm-txt b { color: var(--muted); }
.dm-out { position: absolute; top: 10px; right: 10px; font: 700 var(--fs-12)/1 var(--body); font-style: normal; padding: 4px 8px; border-radius: var(--r-pill); background: var(--warn-tint); color: var(--warn-ink); }
.dp-foot { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: var(--fs-13); color: var(--muted); line-height: 1.5; }
.dp-foot svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.demo-panel.ended { border-color: var(--warn-line); background: radial-gradient(120% 160% at 0% 0%, #fff4dc 0%, rgba(255, 255, 255, 0) 55%), #fff; }
.demo-panel.ended::before { background: linear-gradient(90deg, #f2b84b, #e5603c); }
.demo-panel.ended .dp-mark { background: var(--warn-tint); color: var(--warn); box-shadow: none; }
.demo-panel.ended .dp-kicker { color: var(--warn-ink); }
.demo-panel.ended .dm-item { background: var(--page); }
/* the windows of a demo account: the rights, a used-up right, the welcome */
.demo-dlg .dm-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 18px; }
.demo-dlg .dlg-ico { background: var(--violet-tint); color: var(--violet-ink); }
.demo-welcome .dlg { padding-top: 0; }
.dw-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 116px; margin: 0 -28px 20px; padding: 0 28px 18px; background: radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 60%), var(--cta); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.dw-hero img { width: 76px; height: 76px; margin: 0 -6px -30px 0; opacity: .9; filter: brightness(0) invert(1); }
.dw-hero .demo-badge { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.demo-welcome h3 { margin-top: 0; }
.dw-h { margin: 18px 0 10px; font-size: var(--fs-16); }
.dw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dw-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.dw-list li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dw-list b { font-size: var(--fs-14); }
.dw-list small { color: var(--muted); font-size: var(--fs-13); line-height: 1.4; }
.dw-list em { font: 700 var(--fs-13)/1 var(--body); font-style: normal; color: var(--violet-ink); background: var(--violet-tint); padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; flex: none; }
.dw-list .dm-ico { width: 36px; height: 36px; }
/* Yönetim → Demo hesapları */
.demo-adm .da-sub { margin: -6px 0 18px; max-width: 760px; }
.da-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.da-box { padding: 18px; border-radius: var(--r-18); background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.da-box h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-16); }
.da-box h4 svg { width: 18px; height: 18px; color: var(--violet); }
.da-box .small-note { margin: -6px 0 0; }
.da-rights { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.da-r { display: grid; grid-template-columns: auto minmax(0, 1fr) 76px; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; background: #fff; border-radius: var(--r-12); border: 1px solid var(--line-3); }
.da-r .dm-ico { width: 30px; height: 30px; border-radius: 9px; }
.da-r .dm-ico svg { width: 16px; height: 16px; }
.da-rn { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-rn small { font-weight: 500; color: var(--muted); font-size: var(--fs-12); }
.da-r .input { min-height: 38px; padding: 6px 8px; font-size: var(--fs-16); text-align: right; }
.da-h { margin: 24px 0 10px; font-size: var(--fs-16); }
.da-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.da-acc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av who state" "av mini mini" "av acts acts"; gap: 8px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: var(--r-18); background: #fff; }
.da-av { grid-area: av; align-self: start; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet-ink); font: 700 var(--fs-16)/1 var(--display); }
.da-who { grid-area: who; min-width: 0; display: flex; flex-direction: column; }
.da-who b, .da-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-who small { color: var(--muted); font-size: var(--fs-13); }
.da-state { grid-area: state; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.da-state small { font-size: var(--fs-12); }
.da-mini { grid-area: mini; display: flex; flex-wrap: wrap; gap: 6px; }
.da-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-13); color: var(--ink-3); }
.da-chip svg { width: 14px; height: 14px; }
.da-chip b { color: var(--ink); font-weight: 700; }
.da-chip.out { background: var(--warn-tint); color: var(--warn-ink); }
.da-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; }
.da-acc.ended { background: var(--page); }
.da-acc.ended .da-av { background: var(--surface); color: var(--muted); }
.da-acc.pending .da-av { background: var(--warn-tint); color: var(--warn-ink); }
@media (max-width: 900px) { .da-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .demo-ribbon .dr-in { gap: 8px; min-height: 44px; }
  .dr-sep, .demo-ribbon:not(.ended) .dr-text b, .demo-ribbon.ended .dr-days { display: none; }
  .dr-btn { padding: 0 12px; }
  .dr-contact span { display: none; }
  .dr-contact { width: 34px; padding: 0; justify-content: center; }
  .demo-panel { padding: 20px 16px 16px; }
  .dp-head { gap: 12px; }
  .dp-mark { width: 40px; height: 40px; border-radius: 13px; }
  .dp-title h2 { font-size: var(--fs-20); }
  .dp-head > .btn { width: 100%; }
  .dm-grid, .demo-dlg .dm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .dm-item { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; }
  .dm-ico { width: 34px; height: 34px; }
  .dm-txt b { font-size: var(--fs-20); }
  .dw-hero { margin: 0 -20px 18px; padding: 0 20px 16px; height: 100px; }
  .dw-list em { padding: 5px 8px; }
  .da-box { padding: 14px; }
  .da-rights { grid-template-columns: minmax(0, 1fr); }
  .da-acc { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av who" "state state" "mini mini" "acts acts"; padding: 14px; }
  .da-state { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .da-acts .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .dm-bar i { transition: none; } }
/* ---- new map: files + "Yönergeniz" together (material vs instruction), pasted text, the "what will be used" line */
.mat-text { margin-top: 14px; }
.mat-text textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.mat-text-foot { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 6px; }
.mat-text-foot small { font-size: var(--fs-13, 13px); max-width: 620px; }
.mat-text-add { display: inline-flex; align-items: center; gap: 6px; }
.mat-text-add svg { width: 16px; height: 16px; }
.mat-files { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-3); }
.mat-files .files { margin-top: 0; }
.ins-sec { margin-top: var(--s-5); padding: 18px; border: 1.5px solid var(--violet-tint); border-radius: var(--r-md); background: linear-gradient(180deg, var(--violet-tint), #fff 70%); }
.ins-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ins-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(20, 22, 58, .08); }
.ins-ico svg { width: 20px; height: 20px; }
.ins-head h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font-size: var(--fs-18); }
.ins-head p { margin: 0; font-size: var(--fs-14); max-width: 680px; }
.ins-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; background: #fff; }
.ins-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chips .chip-opt { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: var(--fs-13, 13px); }
.ins-chips .chip-opt svg { width: 14px; height: 14px; color: var(--violet); }
.ins-chips .chip-opt:focus-visible { outline: none; box-shadow: var(--focus); }
.ins-count { flex: none; font-size: var(--fs-12); color: var(--ink-3, #6b7280); font-variant-numeric: tabular-nums; }
.ins-count.near { color: var(--violet-ink); font-weight: 600; }
.prompt-files { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-14); }
.prompt-files svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.prompt-files .link-btn { display: inline; padding: 0; }
.nm-uses { margin-top: var(--s-5); padding: 12px 14px; border-radius: var(--r-12); background: var(--surface); display: grid; gap: 8px; }
.nm-uses > b { font-size: var(--fs-14); }
.nm-uses-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nm-use { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line-3); font-size: var(--fs-13, 13px); font-weight: 600; color: var(--ink-2); }
.nm-use svg { width: 14px; height: 14px; color: var(--accent); }
.nm-uses-ins { margin: 0; font-size: var(--fs-14); overflow-wrap: anywhere; }
.made-kind { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) {
  .ins-sec { padding: 14px 12px; }
  .ins-head { gap: 10px; }
  .ins-ico { width: 30px; height: 30px; }
  .ins-foot { flex-direction: column; align-items: stretch; }
  .ins-count { align-self: flex-end; }
  .mat-text-foot { flex-direction: column; gap: 6px; }
  .mat-files .refs-head { flex-direction: column; gap: 10px; }
}