/* Inter (body font, OFL) — self-hosted since DASHBOARD-2: no external font requests; latin + latin-ext cover Turkish */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Must-b Studio — navy & gold, taken from the badge logo */
:root {
  /* Higgsfield-style: near-black surfaces, lime accent, pink highlight */
  --bg: #0a0b0d;
  --bg2: #0d0f12;
  --panel: #141619;
  --panel2: #1b1e22;
  --panel3: #23262a;
  --line: #262a2f;
  --line2: #363b42;
  --text: #f4f5f7;
  --muted: #9aa0a8;
  --gold: #d4ff17;        /* accent (lime) — variable names kept for compatibility */
  --gold2: #e3ff5a;
  --gold3: #a8cc12;
  --gold-ink: #0b0d02;
  --pink: #ff5cd6;
  --ok: #5be3a4;
  --danger: #ff6b6b;
  --warn: #ffc53d;
  --info: #7fb2ff;
  --radius: 16px;
  --radius-sm: 11px;
  --topbar: 60px;
  --sidebar: 232px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; }
a { color: var(--gold2); text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12.5px; }
.gold { color: var(--gold2); }
.danger { color: var(--danger); }
.ok { color: var(--ok); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- shell */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: var(--topbar) 1fr; min-height: 100vh; }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 18px; height: var(--topbar); background: rgba(10,11,13,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.5); }
.brand b { color: var(--gold2); font-weight: 650; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user { display: flex; align-items: center; gap: 10px; }
.user-label { color: var(--muted); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold2); background: rgba(212,255,23,.1); border: 1px solid rgba(212,255,23,.3); padding: 5px 11px; border-radius: 999px; }
.iconbtn { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.sidebar { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; overflow-y: auto; } /* 12 items: scroll on short screens */
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; transition: .15s; }
.nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.sidebar-foot { margin-top: auto; padding: 10px 12px; }
.scrim { display: none; }
.content { padding: 24px 28px 60px; min-width: 0; }

@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .iconbtn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: var(--topbar); width: var(--sidebar); z-index: 30; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: fixed; inset: var(--topbar) 0 0 0; background: rgba(0,0,0,.5); z-index: 25; opacity: 0; pointer-events: none; transition: .2s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .content { padding: 16px; }
  .user-label { display: none; }
}

/* ---------- auth */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(212,255,23,.08), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-logo { width: 124px; height: 124px; border-radius: 50%; margin: 0 auto 14px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(212,255,23,.3); }
.auth-card h1 { font-size: 24px; margin-bottom: 18px; }
.auth-card h1 span { color: var(--gold2); }
.auth-card form { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.auth-tabs button { flex: 1; }
.auth-links { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.auth-links a { cursor: pointer; }

/* ---------- panels & cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel.tight { padding: 14px 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid2, .grid-form { grid-template-columns: 1fr; } }
.section-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-title:first-child { margin-top: 0; }
.section-title .muted { text-transform: none; letter-spacing: 0; }

/* ---------- inputs */
label.l { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
textarea, input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=date], select {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,255,23,.15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=range] { width: 100%; accent-color: var(--gold); }
input[type=color] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); padding: 2px; }
.field { margin-top: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 9px; cursor: pointer; font: inherit; }
.seg button.on { border-color: var(--gold); background: rgba(212,255,23,.12); color: var(--gold); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 9px 0; }
.switch input { width: 18px; height: 18px; accent-color: var(--gold); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; color: var(--gold-ink); background: var(--gold); box-shadow: 0 0 0 1px rgba(212,255,23,.25); }
.btn:hover { background: var(--gold2); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line); color: var(--text); box-shadow: none; font-weight: 500; }
.btn.ghost:hover { border-color: var(--line2); background: var(--panel3); }
.btn.danger { background: transparent; border: 1px solid rgba(240,113,107,.5); color: var(--danger); box-shadow: none; font-weight: 500; }
.btn.danger:hover { background: rgba(240,113,107,.1); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn.xs { padding: 4px 11px; font-size: 12px; border-radius: 999px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.3); border-top-color: currentColor; border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- images / dropzone */
.drop { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; font-size: 14px; }
.drop.over, .drop:hover { border-color: var(--gold); color: var(--text); background: rgba(212,255,23,.06); }
.drop u { color: var(--gold2); text-decoration: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.thumb { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumb select { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 26px 6px 8px; font-size: 12px; }
.thumb .x { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; line-height: 1; font-size: 15px; }
.thumb .tag { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 40px); background: rgba(0,0,0,.65); color: var(--gold2); font-size: 11px; line-height: 1.25; padding: 2px 7px; border-radius: 9px; }

/* ---------- cost */
.cost { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; background: var(--panel2); border-radius: var(--radius-sm); font-size: 14px; border: 1px solid var(--line); }
.cost b { color: var(--gold2); font-size: 18px; white-space: nowrap; }
.cost small { color: var(--muted); display: block; }

/* ---------- status / steps */
.steps { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; font-size: 13px; }
.step { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.step i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); display: inline-block; }
.step.done { color: var(--text); } .step.done i { background: var(--ok); }
.step.active { color: var(--text); } .step.active i { background: var(--gold); animation: pulse 1.2s infinite; }
.step.failed i { background: var(--danger); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(212,255,23,.25); } 50% { box-shadow: 0 0 0 7px rgba(212,255,23,.06); } }
.elapsed { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.st { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--line); white-space: nowrap; font-weight: 500; }
.st.ready, .st.done { background: rgba(74,211,149,.16); color: var(--ok); }
.st.failed { background: rgba(240,113,107,.16); color: var(--danger); }
.st.pending, .st.in_progress, .st.processing, .st.generating, .st.running, .st.queued { background: rgba(212,255,23,.12); color: var(--gold); }
.st.paused, .st.draft { background: rgba(127,178,255,.14); color: var(--info); }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .4s; }
.err { background: rgba(240,113,107,.1); color: #ffb8b4; border: 1px solid rgba(240,113,107,.4); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px; font-size: 14px; white-space: pre-wrap; }
.note { background: rgba(127,178,255,.08); border: 1px solid rgba(127,178,255,.3); color: #cfe0ff; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; }
.note.warn { background: rgba(243,183,77,.08); border-color: rgba(243,183,77,.35); color: #ffe2a8; }

/* ---------- video output */
.videowrap { background: #000; border-radius: 12px; overflow: hidden; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; position: relative; }
.videowrap video { width: 100%; max-height: 66vh; display: block; background: #000; }
.videowrap .ph { padding: 24px; max-width: 420px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chip.gold { color: var(--gold2); border-color: rgba(212,255,23,.4); }
.outprompt { margin-top: 10px; font-size: 13.5px; color: var(--text); white-space: pre-wrap; background: var(--panel2); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 140px; overflow: auto; }

/* ---------- library grid */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow input { max-width: 320px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.card:hover { border-color: var(--line2); transform: translateY(-1px); }
.card .cover { position: relative; aspect-ratio: 16 / 10; background: #0a0f1c; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cover .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.card .cover .kind { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); color: var(--gold2); font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.card .cover .play { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: .15s; position: absolute; }
.card .cover:hover .play { opacity: 1; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.card .title { font-size: 14px; font-weight: 550; }
.card .sub { font-size: 12px; color: var(--muted); }
.card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- projects */
.plist { display: flex; flex-direction: column; gap: 10px; }
.pitem { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.pitem:hover { border-color: var(--line2); }
/* PIYASA-1 project list */
.plist-tools { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.plist-search { max-width: 320px; } .plist-sort { max-width: 190px; }
.plist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pcard { position: relative; display: grid; grid-template-rows: auto auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; min-width: 0; }
.pcard:hover, .pcard:focus-visible { border-color: var(--line2); }
.pcard-cover { aspect-ratio: 16 / 9; background: #0b0c0e; display: grid; place-items: center; overflow: hidden; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-cover .ph { font-size: 28px; opacity: .5; }
.pcard-body { display: grid; gap: 2px; padding: 10px 12px; min-width: 0; }
.pcard-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.pcard-actions .btn { background: rgba(10,11,13,.82); min-width: 32px; min-height: 32px; }
.danger-text { color: #ff6b81; }
.plist-rename { width: 100%; }
.edx-ro { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 14px; max-width: calc(100vw - 32px); background: #3a1d12; border: 1px solid #a8532c; border-radius: 12px; color: #ffd9c4; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ver-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.scene { display: grid; grid-template-columns: 44px 120px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.scene .no { width: 44px; height: 44px; border-radius: 10px; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-weight: 650; color: var(--gold2); }
.scene .sthumb { width: 120px; aspect-ratio: 16/9; background: #0a0f1c; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; cursor: pointer; }
.scene .sthumb img { width: 100%; height: 100%; object-fit: cover; }
.scene textarea { min-height: 72px; }
.scene .sright { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 120px; }
@media (max-width: 760px) { .scene { grid-template-columns: 44px minmax(0,1fr); } .scene .sthumb { display: none; } .scene .sright { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
.scene-editor { display: flex; flex-direction: column; gap: 10px; }
.scene-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 34px; gap: 10px; align-items: start; }
.scene-row .no { padding-top: 10px; color: var(--gold2); font-weight: 600; text-align: center; }
.scene-row textarea { min-height: 64px; }

/* ---------- editor */
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1250px) { .editor { grid-template-columns: 1fr; } }
.sources { max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.src { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; cursor: grab; }
.src img, .src .ph { width: 56px; height: 36px; border-radius: 6px; object-fit: cover; background: #0a0f1c; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); flex: none; }
.src .n { flex: 1; min-width: 0; font-size: 12.5px; }
.src .n div:last-child { color: var(--muted); font-size: 11px; }
.track { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.track-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.timeline { display: flex; gap: 0; align-items: center; overflow-x: auto; padding: 6px 4px 10px; min-height: 120px; }
.tclip { flex: none; width: 150px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; }
.tclip.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.3); }
.tclip img, .tclip .ph { width: 100%; height: 72px; object-fit: cover; display: block; background: #0a0f1c; }
.tclip .ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.tclip .tl { padding: 6px 8px; font-size: 11.5px; display: flex; justify-content: space-between; gap: 6px; }
.tclip .tl span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.tclip.dragover { outline: 2px dashed var(--gold); }
.tgap { flex: none; width: 34px; display: flex; align-items: center; justify-content: center; }
.tgap button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px; }
.tgap button.on { border-color: var(--gold); color: var(--gold2); background: rgba(212,255,23,.12); }
.inspector { position: sticky; top: calc(var(--topbar) + 16px); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; align-items: center; font-size: 13.5px; }
.kv label { color: var(--muted); }
.ovl { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; cursor: pointer; }
.ovl.sel { border-color: var(--gold); }
.posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 120px; }
.posgrid button { height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.posgrid button.on { background: var(--gold); border-color: var(--gold); }

/* ---------- misc */
.version-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; max-width: calc(100vw - 32px); background: #1b1f12; border: 1px solid rgba(212,255,23,.45); border-radius: 999px; color: var(--text); font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.version-x { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.version-x:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b2a47; border: 1px solid var(--line2); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(5,9,18,.75); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; }
.modal-card audio { width: 100%; }
.modal-card img.full { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: 10px; }
.tabs { display: flex; gap: 4px; background: var(--panel2); padding: 4px; border-radius: 999px; width: max-content; border: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 550; }
.tabs button.on { background: var(--gold); color: var(--gold-ink); }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 18px; color: var(--gold2); }
.stat span { font-size: 12px; color: var(--muted); }
details.adv { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 12px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.adv[open] summary { margin-bottom: 8px; }
.pill-list { display: flex; gap: 6px; flex-wrap: wrap; }
.upload-prog { font-size: 12.5px; color: var(--muted); }

/* ---------- small layout fixes */
.toolbar select { width: auto; min-width: 150px; }
.page-head > .row:first-child { flex-wrap: nowrap; }
.page-head select { width: auto; max-width: 240px; }
.page-head input[type=number] { width: 70px; }
@media (max-width: 920px) { .page-head > .row:first-child { flex-wrap: wrap; } }

/* ---------- balance chip (top right) */
.balance { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(212,255,23,.1); border: 1px solid rgba(212,255,23,.35); color: var(--gold); font-variant-numeric: tabular-nums; }
.balance small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.balance b { font-size: 15px; }
.balance.low { border-color: rgba(240,113,107,.6); color: #ffb8b4; background: rgba(240,113,107,.1); }

/* ---------- templates */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chipbtn { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; }
.chipbtn.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chipbtn.on .muted { color: rgba(0,0,0,.55); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tpl { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); transition: .15s; position: relative; }
.tpl:hover { border-color: var(--gold); transform: translateY(-1px); }
.tpl-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.tpl-icon.sm { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.tpl-body { flex: 1; min-width: 0; }
.tpl-name { font-weight: 600; font-size: 14.5px; }
.tpl-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tpl-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; flex-wrap: wrap; }
.tpl-use { position: absolute; right: 14px; bottom: 12px; color: var(--gold); font-size: 12.5px; font-weight: 600; opacity: 0; transition: .15s; }
.tpl:hover .tpl-use { opacity: 1; }
.tplbar { display: flex; gap: 10px; align-items: center; background: rgba(212,255,23,.06); border: 1px solid rgba(212,255,23,.3); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }

/* ---------- image studio */
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.imgcard { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.imgcover { aspect-ratio: 1; background: #000; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.imgcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgactions { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 8px 4px; }
.imgcard .muted { padding: 0 8px 8px; }

/* ---------- jeton (badge, nav icon, prices page) */
.balance { align-items: center; gap: 0; }
.balance img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.nav a .nav-img { width: 20px; height: 20px; }
.price-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; }
.price-rate { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: var(--gold2); }
.price-rate img { width: 28px; height: 28px; }
.price-terms { color: var(--muted); font-size: 13.5px; }
.price-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.price-table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 14px; min-width: 560px; }
.price-table th, .price-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.price-table thead th { background: var(--panel2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table td.num b { color: var(--gold); font-weight: 600; }
.price-table .tier b { display: block; color: var(--text); }
.price-table .tier small { color: var(--muted); font-size: 12px; white-space: normal; }
.price-table .dim { color: var(--line2); }

/* ---------- currency switcher + structured prompt (VIDEO-1) */
.seg.currency { gap: 2px; flex-wrap: nowrap; }
.seg.currency button { padding: 4px 10px; font-size: 13px; min-width: 30px; }
.price-note { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }
.pbox { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 12px; }
.pbox textarea { min-height: 0; }
.pbox .field { margin: 0; }
.detail-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; align-items: start; }
.stilbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--radius-sm); font-size: 13px; }
.stilbar input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0; color: var(--muted); }
.enh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pbox details > summary, .pbox .adv > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.scene-row .enh { margin-top: 6px; }
@media (max-width: 640px) { .detail-row { grid-template-columns: 1fr; } .seg.currency button { padding: 4px 7px; } }

/* ---------- settings page (AYARLAR-1) */
.set-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tabs button { white-space: nowrap; }
.set-body { display: grid; gap: 16px; max-width: 980px; }
.set-card h3 { margin: 0 0 12px; font-size: 16px; }
.set-card .row { flex-wrap: wrap; }
.bal-card { display: flex; align-items: center; gap: 16px; }
.bal-card img { width: 64px; height: 64px; }
.bal-big { font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pack { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 6px; align-content: start; }
.pack .pack-j { color: var(--gold2); font-size: 18px; font-weight: 600; }
.pack .btn { margin-top: 6px; }
.pack.active { border-color: rgba(212,255,23,.45); }
.pack .chip { justify-self: start; font-size: 12px; }
.bal-buckets { margin-top: 6px; display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.bal-buckets b { color: var(--text, inherit); font-weight: 600; }
.ledger .small { margin-left: 4px; }
.price-table td.pos { color: #7ee2a8; }
.price-table td.neg { color: #ffb8b4; }
.price-table td.wrap { white-space: normal; min-width: 220px; }
.price-table td.actions { display: flex; flex-wrap: wrap; gap: 4px; }
.price-table tr.inactive td { opacity: .55; }
.progress.full > i { background: var(--danger); }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text); }
a.user-label:hover { color: var(--text); }
a.balance { text-decoration: none; }
.card.hl { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.35); }

/* ---------- dialogue TTS + provider errors (SES-1) */
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .row4 { grid-template-columns: 1fr 1fr; } }
.tts-out { margin-top: 10px; display: grid; gap: 6px; }
.tts-out audio { width: 100%; height: 36px; }
.warn-text { color: #ffd27a; }
.err .err-details { margin-top: 8px; font-size: 12px; opacity: .8; }
.err .err-details code { display: block; white-space: pre-wrap; word-break: break-word; margin-top: 4px; }

/* ---------- multi-model catalogue (MODEL-1) */
.model-info { margin-top: 6px; display: grid; gap: 6px; }
.model-info .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.warn { border-color: rgba(255, 210, 122, .5); color: #ffd27a; }
.sm-select { width: auto; max-width: 220px; padding: 6px 30px 6px 10px; font-size: 13px; }
.price-group { margin: 4px 0 8px; font-weight: 600; color: var(--gold2); font-size: 14px; }
optgroup { color: var(--muted); font-style: normal; }
optgroup option { color: var(--text); }

/* ---------- payments + legal pages (ODEME-1) */
.checkout-card { max-width: 640px; width: 100%; }
.checkout { display: grid; gap: 10px; }
.checkout h3 { margin: 0; }
.checkout-sum { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.checkout-sum img { width: 40px; height: 40px; }
.checkout-price { text-align: right; }
.checkout-price b { font-size: 20px; color: var(--gold2); }
.checkout .consent { align-items: flex-start; line-height: 1.45; }
.checkout .consent input { margin-top: 2px; flex: none; }
#paytriframe { display: block; background: #fff; border-radius: 10px; }
@media (max-width: 640px) {
  .modal-card.checkout-card { position: fixed; inset: 0; max-width: none; max-height: none; height: 100%; border-radius: 0; overflow: auto; }
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--text); }
.auth-legal { justify-content: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-legal { display: inline-block; margin-top: 8px; }
.public { min-height: 100vh; background: var(--bg); }
.public-inner { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.public-inner > .brand { margin-bottom: 18px; }
.legal { max-width: 820px; line-height: 1.65; }
.legal h2 { margin: 10px 0 14px; }
.legal h3 { margin: 22px 0 6px; font-size: 16px; }
.legal p, .legal li { color: var(--text); opacity: .92; }
.legal ul { padding-left: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.legal-nav a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.legal-nav a.on { border-color: var(--gold); color: var(--gold); }
.legal-kv { grid-template-columns: 150px 1fr; margin: 6px 0 10px; }

/* ---------- drafts + in-page template picker (TASLAK-1) */
.draft-bar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); background: var(--panel2); border: 1px dashed var(--line2); border-radius: var(--radius-sm); }
.picker-card-modal { max-width: 900px; }
.picker h3 { margin: 0; }
.picker-tabs { margin-bottom: 12px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.picker-card { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font: inherit; cursor: pointer; }
.picker-card:hover { border-color: var(--gold); }
.picker-txt { display: grid; gap: 3px; }
.picker-txt .chip { justify-self: start; }
@media (max-width: 640px) {
  .modal-card.picker-card-modal { position: fixed; inset: 0; max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .picker-grid { max-height: none; }
}

/* ---------- checkout redesign (ODEME-2) */
:root { --neg: var(--danger); }
.checkout-card { max-width: 560px; }
.checkout { gap: 8px; }
.checkout .field { margin-top: 0; }
.checkout textarea { min-height: 64px; }
.checkout .section-title { margin: 10px 0 2px; }
.field.invalid input, .field.invalid textarea, .field.invalid .phone { border-color: var(--neg); }
.field .ferr { color: var(--neg); font-size: 12px; margin-top: 4px; }
.phone { display: flex; align-items: stretch; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.phone:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,255,23,.15); }
.phone .cc { display: flex; align-items: center; padding: 0 10px 0 12px; color: var(--muted); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.phone input[type=tel] { border: 0; background: transparent; border-radius: 0; box-shadow: none; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.phone input[type=tel]:focus { box-shadow: none; }
.checkout .mailnote { font-size: 12.5px; color: var(--muted); }
.pay-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-head .grow { min-width: 0; }
.pay-head small { display: block; color: var(--muted); }
.pay-confirm { display: grid; gap: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm); }
.pay-frame { position: relative; min-height: 620px; }
.pay-frame .spin-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.pay-result { text-align: center; padding: 18px 8px; display: grid; gap: 8px; justify-items: center; }
.pay-result .big { font-size: 46px; line-height: 1; }
.pay-result .big.ok { color: var(--gold); }
.pay-result .big.fail { color: var(--neg); }
.resume-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgba(212,255,23,.08); border: 1px solid rgba(212,255,23,.35); border-radius: var(--radius-sm); }
.pack.custom { border-style: dashed; }
.pack.custom .pack-price { font-size: 24px; font-weight: 700; color: var(--gold2); }
.pack.custom input[type=range] { width: 100%; accent-color: var(--gold); }
.price-table td.dimmed { color: var(--muted); }
@media (max-width: 640px) {
  .checkout .row2, .checkout .row3 { grid-template-columns: 1fr; }
  .modal-card.checkout-card { position: fixed; inset: 0; max-width: none; max-height: none; height: 100%; border-radius: 0; overflow: auto; }
}

/* ---------- invoices (FATURA-1) */
.invoice-cell { min-width: 300px; }
.invoice-box { display: grid; gap: 4px; }
.invoice-box .row { flex-wrap: wrap; }

/* ---------- sidebar: collapse + resize (DASHBOARD-1, desktop ≥ 1024 px only) */
.sb-toggle, .sb-resize { display: none; }
@media (min-width: 1024px) {
  .app { grid-template-columns: var(--sidebar-w, 240px) minmax(0, 1fr); transition: grid-template-columns .15s ease; }
  html[data-sb-collapsed] .app { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { overflow-x: hidden; }
  .sb-toggle { display: inline-flex; align-items: center; justify-content: center; float: right; margin-top: 6px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
  .sb-toggle:hover, .sb-toggle:focus-visible { color: var(--text); border-color: var(--line2); outline: none; box-shadow: 0 0 0 2px rgba(212,255,23,.35); }
  .sb-resize { display: block; position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; touch-action: none; z-index: 2; }
  .sb-resize:hover, html.sb-dragging .sb-resize { background: linear-gradient(90deg, transparent 2px, rgba(212,255,23,.55) 2px 4px, transparent 4px); }
  html.sb-dragging, html.sb-dragging * { user-select: none !important; cursor: col-resize !important; }
  html.sb-dragging .app { transition: none; }
  /* icon-only */
  html[data-sb-collapsed] .sidebar { padding: 14px 10px; }
  html[data-sb-collapsed] .nav a { justify-content: center; padding: 10px 0; gap: 0; }
  html[data-sb-collapsed] .nav a span { display: none; }
  html[data-sb-collapsed] .sidebar-foot { padding: 10px 0; text-align: center; }
  html[data-sb-collapsed] #sideStatus, html[data-sb-collapsed] .side-legal { display: none; }
  html[data-sb-collapsed] .sb-toggle { float: none; }
}
@media (prefers-reduced-motion: reduce) { .app { transition: none !important; } }

/* ---------- home dashboard (DASHBOARD-1) */
.dash { display: grid; gap: clamp(28px, 4vw, 48px); }
.dash-sec { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-head h2 { font-size: clamp(18px, 1.6vw, 22px); }
.dash-head p { margin: 2px 0 0; }
.dash-more { white-space: nowrap; font-weight: 600; font-size: 14px; }
.dash-empty { display: grid; gap: 8px; justify-items: start; padding: 22px; border: 1px dashed var(--line2); border-radius: var(--radius); background: var(--panel); }
.dash-empty p { margin: 0; }

.hero { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px); min-height: clamp(340px, 42vw, 560px); display: flex; align-items: flex-end; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 85% 0%, rgba(212,255,23,.18), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(40,70,140,.55), transparent 60%), linear-gradient(135deg, #0b1322, #101a2e 55%, #0a0b0d); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.03); }
.hero-slide.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.88) 0%, rgba(5,7,10,.55) 55%, rgba(5,7,10,.2) 100%), linear-gradient(0deg, rgba(5,7,10,.75), transparent 55%); }
.hero-empty .hero-shade { background: linear-gradient(0deg, rgba(5,7,10,.45), transparent 60%); }
.hero-inner { position: relative; padding: clamp(22px, 4vw, 56px); max-width: 860px; display: grid; gap: 14px; }
.hero-title { font-size: clamp(40px, 6vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.03em; }
.hero-title span { color: var(--gold); }
.hero-text { margin: 0; font-size: clamp(15px, 1.25vw, 18px); color: #d9dde3; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
.hero-link { font-weight: 600; padding: 0 6px; }
.hero-dots { position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); display: flex; gap: 6px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots button[aria-selected="true"] { background: var(--gold); width: 22px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 46%), 1fr)); gap: 14px; }
.work { display: grid; gap: 8px; color: var(--text); min-width: 0; }
.work.skel { height: 150px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--panel), var(--panel2), var(--panel)); background-size: 200% 100%; animation: skel 1.4s infinite linear; }
@keyframes skel { to { background-position: -200% 0; } }
.work-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work:hover .work-cover { border-color: var(--line2); }
.ph-ico { font-size: 26px; color: var(--muted); }
.work-badge { position: absolute; left: 8px; top: 8px; font-size: 11.5px; padding: 2px 8px; background: rgba(0,0,0,.6); }
.work-dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 6px; }
.work-name { font-size: 13.5px; }

.tstrip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.tstrip:focus-visible { outline: 2px solid rgba(212,255,23,.45); outline-offset: 4px; border-radius: var(--radius-sm); }
.tcard { scroll-snap-align: start; display: grid; gap: 8px; color: var(--text); min-width: 0; }
.tcard-media { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tcard:hover .tcard-media img { transform: scale(1.04); }
.tcard-info { display: grid; gap: 1px; min-width: 0; }
.tpl-ph, .mcard-ph { width: 100%; height: 100%; display: grid; align-content: end; gap: 4px; padding: 12px; background: radial-gradient(120% 120% at 100% 0%, rgba(212,255,23,.22), transparent 55%), linear-gradient(135deg, #0f1a30, #0b1322 60%, #121417); }
.tpl-ph-ico { font-size: 26px; }
.tpl-ph small { color: var(--muted); font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tcard-media img { transition: none; } }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.mcard { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.mcard:hover, .mcard:focus-visible { border-color: rgba(212,255,23,.45); outline: none; }
.mcard-media { aspect-ratio: 16 / 9; background: var(--panel2); }
.mcard-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard-ph b { font-size: 18px; }
.mcard-ph small { color: var(--gold2); }
.mcard-info { display: grid; gap: 3px; padding: 12px 14px 14px; }
.mcard-price { color: var(--gold2); font-size: 13px; font-weight: 600; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.how-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.how-bal { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.how-bal img { width: 22px; height: 22px; }

/* ---------- Yönetim → Vitrin (DASHBOARD-1) */
.yon-seg { margin-bottom: 14px; }
.yon-seg a { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 9px; }
.yon-seg a.on { border-color: var(--gold); background: rgba(212,255,23,.12); color: var(--gold); }
.vt-head { display: grid; gap: 12px; margin-top: 8px; }
.vt-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); }
.vt-stats b { color: var(--text); }
.vt-prev { width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--panel2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.vt-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-table td { vertical-align: middle; }
.chip.ok-chip { color: var(--ok); border-color: rgba(91,227,164,.4); }
.vt-confirm { display: grid; gap: 8px; max-width: 520px; }
.vt-confirm p { margin: 0; }
.vt-list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.first-frame-hint { margin-top: 6px; color: var(--gold2); }

/* =====================================================================================================================
   TASARIM-1 — responsive layout by width only (no device detection). Breakpoints: ≤599 phone · 600–1023 tablet ·
   1024–1439 laptop · ≥1440 wide. Content fills the screen; only text-heavy pages keep a reading width.
   ===================================================================================================================== */
:root { --gutter: clamp(16px, 3vw, 40px); --bnav-h: 64px; }

/* grid tracks never grow past the screen: minmax(0, …) instead of 1fr (1fr = minmax(auto, 1fr) let the top bar force 414 px);
   ≥1024 uses the sidebar rule (DASHBOARD-1), tablet/phone set their own columns below */
.content { padding: 24px var(--gutter) 60px; min-width: 0; }
.grid2, .grid-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid2, .grid-form { grid-template-columns: minmax(0, 1fr); } }
.set-body { max-width: none; grid-template-columns: minmax(0, 1fr); }
.set-body > *, .panel { min-width: 0; }
.set-body[data-sekme="hesap"], .legal { max-width: 880px; }
.page-head > * { min-width: 0; }
.topbar { min-width: 0; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.topbar-right { min-width: 0; }
.acct-btn, .bnav, .only-phone { display: none; }
.version-bar, .toast { max-width: calc(100vw - 32px); }
.toast { white-space: normal; text-align: center; }

/* ---------- tablet 600–1023: icon rail with labels under the icons (no drawer) */
@media (min-width: 600px) and (max-width: 1023px) {
  .app { grid-template-columns: 84px minmax(0, 1fr); }
  .iconbtn#navToggle { display: none; }
  .scrim { display: none !important; }
  .sidebar { position: sticky; top: var(--topbar); left: auto; width: auto; transform: none; transition: none; padding: 10px 6px; z-index: 5; }
  .nav a { flex-direction: column; gap: 4px; padding: 9px 2px; font-size: 10.5px; line-height: 1.15; text-align: center; min-height: 56px; justify-content: center; }
  .nav a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-foot { padding: 8px 2px; text-align: center; }
  #sideStatus { display: none; }
  .user-label { max-width: 140px; }
}

/* ---------- phone ≤599: no sidebar; fixed bottom bar + "Diğer" sheet; slim top bar */
@media (max-width: 599px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .scrim, .iconbtn#navToggle { display: none !important; }
  .topbar { gap: 10px; }
  .brand span { display: none; }
  .brand img { width: 34px; height: 34px; }
  .topbar-right { gap: 8px; }
  .topbar #currency, .user-label, #logoutBtn { display: none !important; }
  .acct-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
  .acct-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .balance { min-height: 44px; padding: 6px 12px; }
  .jobs { max-width: 46vw; overflow: hidden; white-space: nowrap; }
  #jobsText { overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 16px var(--gutter) calc(var(--bnav-h) + 28px + env(safe-area-inset-bottom)); }
  .only-phone { display: block; }

  .bnav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: rgba(10,11,13,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bnav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; color: var(--muted); font: inherit; font-size: 10.5px; background: none; border: 0; cursor: pointer; padding: 6px 0; }
  .bnav-link svg, .bnav-link img { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .bnav-link .bnav-ico { display: flex; }
  .bnav-link .bnav-ico svg { fill: currentColor; stroke: none; }
  .bnav-link span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav-link.active { color: var(--gold); }
  .toast { bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom)); }
  .version-bar { top: auto; bottom: calc(var(--bnav-h) + 12px + env(safe-area-inset-bottom)); }
}
.sheet-wrap { position: fixed; inset: 0; z-index: 85; background: rgba(5,9,18,.6); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 82dvh; overflow: auto; background: var(--panel); border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; background: var(--panel); }
.sheet-x { width: 44px; height: 44px; border: 0; background: var(--panel2); color: var(--text); border-radius: 50%; font-size: 22px; cursor: pointer; }
.sheet-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; padding: 6px 0 10px; }
.sheet-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.sheet-link svg, .sheet-link img { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sheet-link.active { color: var(--gold); border-color: rgba(212,255,23,.4); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sheet-row .seg.currency button { min-height: 44px; min-width: 48px; }

/* ---------- touch: ≥44 px targets, 16 px inputs (no iOS zoom), nothing hover-only */
@media (max-width: 1023px) {
  .btn, .btn.sm, .btn.xs, .tabs button, .seg button, .jt-seg button, .chip-btn, .yon-seg a, .dash-more, .hero-link, .tcard, .acct-btn { min-height: 44px; }
  .btn.xs { padding: 8px 14px; font-size: 13px; }
  .tabs button, .seg button { display: inline-flex; align-items: center; }
  .yon-seg a, .dash-more, .hero-link { display: inline-flex; align-items: center; }
  textarea, input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=date], select { font-size: 16px; min-height: 44px; }
  .set-tabs { width: 100%; }
}

/* ---------- phone: tables become card lists (cells carry data-label from the header, app.js#labelTables) */
@media (max-width: 599px) {
  .price-wrap { border: 0; overflow: visible; }
  .price-table { min-width: 0; background: transparent; font-size: 14px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .price-table th, .price-table td { padding: 0; border: 0; white-space: normal; text-align: left; }
  .price-table td { grid-column: 1 / -1; }
  .price-table td:first-child { grid-column: 1; font-weight: 600; }
  /* AUDIT-3: one headline number top right — the 2nd cell, or the 3rd when the 2nd is text. Two adjacent numeric cells used to
     share that grid slot and printed on top of each other (480p + 720p prices, Ücretsiz + Başlangıç limits). */
  .price-table td.num:nth-child(2), .price-table td:not(.num):nth-child(2) + td.num:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .price-table td[data-label]:not(:first-child):not(.num):not(.actions):not(:empty)::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .price-table td.num:nth-child(n+4), .price-table td.num + td.num:nth-child(3) { text-align: left; }
  .price-table td.num:nth-child(n+4)[data-label]::before, .price-table td.num + td.num:nth-child(3)[data-label]::before,
  .price-table td.num:nth-child(2):has(+ td.num)[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .price-table td.actions { margin-top: 8px; }
  .price-table td.wrap { min-width: 0; color: var(--muted); }
  .price-table td:empty { display: none; }
  .toolbar, .page-head .row { flex-wrap: wrap; }
  .row4 { grid-template-columns: 1fr 1fr; }

  /* modals: full screen with their own scroll; the close control stays on top */
  .modal { padding: 0; align-items: stretch; }
  .modal-card { position: fixed; inset: 0; max-width: none; width: 100%; height: 100dvh; max-height: none; border-radius: 0; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-card .x, .modal-card .modal-x, .modal-card .close { position: sticky; top: 0; z-index: 2; }
  .modal-card iframe { width: 100%; min-height: calc(100dvh - 120px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 600px) and (max-width: 1023px) { .cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (min-width: 1440px) { .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }

/* ---------- Jeton page (TASARIM-1 layout) */
.jt-strip { padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-align: center; }
.jt-strip.test { background: rgba(255,197,61,.1); border: 1px solid rgba(255,197,61,.45); color: #ffd27a; }
.jt-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.jt-bal { display: flex; align-items: center; gap: 16px; min-width: 0; }
.jt-bal img { width: 64px; height: 64px; flex: none; }
.jt-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jt-meter { display: grid; gap: 4px; align-content: start; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.jt-meter b { font-size: 18px; color: var(--gold2); }
.jt-bar { height: 6px; border-radius: 6px; background: var(--panel3); overflow: hidden; }
.jt-bar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.jt-plan { display: grid; gap: 6px; align-content: start; justify-items: start; padding-left: 24px; border-left: 1px solid var(--line); min-width: 0; }
.jt-plan-name { font-size: 18px; }
.jt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--panel2); padding: 4px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 16px; max-width: 640px; }
.jt-seg button { background: transparent; border: 0; color: var(--muted); padding: 10px 12px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.jt-seg button.on { background: var(--gold); color: var(--gold-ink); }
.jt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.jt-cards .pack { padding: 18px; gap: 8px; }
.pack-name { font-size: 16px; }
.pack-price { font-size: 26px; font-weight: 700; }
.jt-cards .pack .btn { margin-top: auto; }
.jt-pay-note { margin-top: 12px; }
.jt-custom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.jt-custom-in { display: grid; gap: 12px; align-content: start; }
.jt-custom-in input[type=number] { max-width: 140px; }
.jt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { background: var(--panel3); border: 1px solid var(--line); color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; }
.chip-btn.on { border-color: var(--gold); color: var(--gold); background: rgba(212,255,23,.1); }
.jt-custom-sum { display: grid; gap: 6px; align-content: start; padding-left: 24px; border-left: 1px solid var(--line); }
.jt-sum-j { color: var(--gold2); font-size: 18px; font-weight: 600; }
.jt-custom-sum .btn { margin-top: 8px; justify-self: start; }
.jt-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.jt-bottom .price-wrap { margin-bottom: 0; }
.jt-recent { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.jt-recent li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.jt-recent li:last-child { border-bottom: 0; }
.jt-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.jt-amt.pos { color: #7ee2a8; }
.jt-amt.neg { color: #ffb8b4; }
@media (max-width: 1279px) { .jt-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .jt-meters { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 1023px) {
  .jt-bottom { grid-template-columns: minmax(0, 1fr); }
  .jt-custom { grid-template-columns: minmax(0, 1fr); }
  .jt-custom-sum { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 599px) {
  .jt-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .jt-meters { grid-row: auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .jt-meter { flex: 0 0 72%; scroll-snap-align: start; }
  .jt-plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .jt-seg { max-width: none; }
  .jt-cards { grid-template-columns: minmax(0, 1fr); }
  .jt-custom { padding: 16px; }
  .jt-custom-sum .btn { justify-self: stretch; }
}
/* action cells stay table cells (display:flex broke the row's borders); buttons wrap inside */
@media (min-width: 600px) { .price-table td.actions { display: table-cell; white-space: normal; } .price-table td.actions > * { margin: 2px 4px 2px 0; } }

/* ---------- storage health strip (VERI-1) */
.depo-strip { display: grid; gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.depo-strip.bad { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.55); color: #ffc9c6; }
.depo-strip.ok { background: rgba(91,227,164,.07); border: 1px solid rgba(91,227,164,.3); color: var(--ok); font-size: 13.5px; }
.depo-strip .row { justify-content: space-between; }

/* ---------- VITRIN-2: original model cards (CSS only, no logos), stock picker, hero admin */
.mart { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  background: radial-gradient(120% 140% at 0% 100%, hsl(var(--h) 80% 22%), transparent 60%), linear-gradient(135deg, hsl(var(--h) 70% 12%), hsl(var(--h2) 60% 8%) 70%, #07080a); }
.mart-flow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg at 60% 40%, hsl(var(--h) 90% 55% / .45), transparent 28%, hsl(var(--h2) 90% 60% / .35) 52%, transparent 74%, hsl(var(--h) 90% 55% / .45)); filter: blur(28px); animation: mart-spin 18s linear infinite; }
.mart-sweep { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, hsl(var(--h) 100% 85% / .18) 48%, transparent 60%); transform: translateX(-120%); animation: mart-sweep 6s ease-in-out infinite; }
.mart-dots { position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: radial-gradient(hsl(var(--h) 100% 85% / .7) 1px, transparent 1.6px), radial-gradient(hsl(var(--h2) 100% 80% / .5) 1px, transparent 1.4px); background-size: 46px 46px, 71px 71px; background-position: 0 0, 23px 31px; animation: mart-drift 24s linear infinite; }
.mart-txt { display: grid; gap: 2px; padding: 14px 16px; }
.mart-txt b { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.mart-txt small { color: hsl(var(--h) 90% 82%); font-size: 12.5px; }
.mart-txt .mart-facts { color: rgba(255,255,255,.75); }
@keyframes mart-spin { to { transform: rotate(360deg); } }
@keyframes mart-sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes mart-drift { to { background-position: 46px -92px, 94px -111px; } }
@media (prefers-reduced-motion: reduce) { .mart-flow, .mart-sweep, .mart-dots { animation: none; } .mart-sweep { display: none; } }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.mcard-try { font-weight: 600; color: var(--gold); opacity: .75; transition: opacity .15s, transform .15s; }
.mcard:hover .mcard-try, .mcard:focus-visible .mcard-try { opacity: 1; transform: translateX(3px); }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-credit { margin: -24px 0 0; text-align: right; }
.stock-modal { display: grid; gap: 12px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.stock-item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel2); cursor: pointer; aspect-ratio: 16 / 10; }
.stock-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stock-item:hover, .stock-item:focus-visible { border-color: var(--gold); outline: none; }
.stock-item.busy { opacity: .5; }
.stock-by { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hero-admin-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.mcard, .mcard-info { grid-template-columns: minmax(0, 1fr); }
.mcard-foot { flex-wrap: wrap; }

/* =====================================================================================================================
   DASHBOARD-2 — "cinematic aurora" home page. Display font Sora (OFL, self-hosted in /fonts, latin + latin-ext for
   Turkish). Lime is the primary accent; violet and cyan are the two lights, used sparingly. Only transform/opacity
   animate; .offscreen subtrees and html.fx-off pause; prefers-reduced-motion gets a static, still-designed page.
   ===================================================================================================================== */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/sora-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/sora-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.dash2 { --violet: #7c5cff; --cyan: #19d3da; --ink: #05070b; --glass: rgba(255,255,255,.055); --glass-line: rgba(255,255,255,.12);
  --display: 'Sora', Inter, system-ui, sans-serif; display: grid; gap: clamp(56px, 8vw, 120px); padding-bottom: 24px; }
.dash2 h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 3vw, 44px); line-height: 1.08; }
.offscreen *, .offscreen *::before, .offscreen *::after, html.fx-off .dash2 *, html.fx-off .dash2 *::before, html.fx-off .dash2 *::after { animation-play-state: paused !important; }

/* reveal once (fade + 24 px rise; stagger set inline) */
.dash2 [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.dash2 [data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero (edge to edge, right under the top bar) */
.d2-hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(560px, 88vh); display: flex; align-items: center;
  margin: -24px calc(-1 * var(--gutter)) 0; padding: clamp(40px, 6vw, 96px) var(--gutter); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.06); }
.d2-aurora { position: absolute; inset: -20%; z-index: -4; filter: blur(70px) saturate(140%); }
.d2-aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.d2-aurora .b1 { left: 8%; top: 4%; background: radial-gradient(circle, var(--gold) 0%, transparent 62%); animation: aur1 28s ease-in-out infinite alternate; opacity: .38; }
.d2-aurora .b2 { right: 4%; top: 10%; background: radial-gradient(circle, var(--violet) 0%, transparent 64%); animation: aur2 34s ease-in-out infinite alternate; }
.d2-aurora .b3 { left: 34%; bottom: -6%; background: radial-gradient(circle, var(--cyan) 0%, transparent 62%); animation: aur3 24s ease-in-out infinite alternate; opacity: .4; }
.d2-aurora .b4 { left: -10%; bottom: 10%; background: radial-gradient(circle, #1b3bff 0%, transparent 60%); animation: aur2 40s ease-in-out infinite alternate-reverse; opacity: .35; }
@keyframes aur1 { to { transform: translate3d(18vw, 12vh, 0) scale(1.15); } }
@keyframes aur2 { to { transform: translate3d(-16vw, 14vh, 0) scale(.9); } }
@keyframes aur3 { to { transform: translate3d(10vw, -18vh, 0) scale(1.2); } }
.d2-slides { position: absolute; inset: 0; z-index: -3; }
.d2-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.d2-slide.on { opacity: .26; }
.d2-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.d2-grid { position: absolute; left: -10%; right: -10%; bottom: -12%; height: 60%; z-index: -2; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(212,255,23,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(212,255,23,.12) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: grid-run 6s linear infinite; }
@keyframes grid-run { to { background-position: 0 64px, 0 0; } }
.d2-grain { position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.d2-light { position: absolute; left: 0; top: 0; width: 560px; height: 560px; z-index: -1; pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(212,255,23,.22), transparent 62%); transform: translate3d(calc(var(--lx, 50vw) - 280px), calc(var(--ly, 40vh) - 280px), 0); transition: opacity .4s; }
.d2-hero:hover .d2-light { opacity: 1; }
.d2-hero-in { position: relative; z-index: 2; max-width: min(980px, 100%); display: grid; gap: clamp(14px, 2vw, 22px); }
.d2-eyebrow { justify-self: start; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(212,255,23,.35); background: rgba(212,255,23,.07); backdrop-filter: blur(6px); }
.d2-title { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: .92; letter-spacing: -.045em; margin: 0; }
.d2-title .w1, .d2-title .w2 { display: inline-block; white-space: nowrap; }
.d2-title .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); animation: ch-in .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes ch-in { to { opacity: 1; transform: none; } }
.d2-title .shine .ch { background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 38%, #fff 50%, var(--gold) 62%, var(--gold) 100%); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ch-in .9s cubic-bezier(.2,.8,.2,1) forwards, shine 5.5s ease-in-out 1.4s infinite; animation-delay: calc(var(--i) * 45ms + 120ms), calc(1.4s + var(--i) * 60ms); }
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
.d2-slogan { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -.01em; color: #e9ecf1; }
.d2-rot-box { display: inline-block; position: relative; vertical-align: bottom; overflow: hidden; min-width: 5.6em; height: 1.2em; }
.d2-rot { position: absolute; left: 0; top: 0; color: var(--gold); white-space: nowrap; transition: transform .26s ease, opacity .26s ease; }
.d2-rot.out { transform: translateY(-100%); opacity: 0; }
.d2-rot.in { transform: none; opacity: 1; animation: rot-in .32s ease; }
@keyframes rot-in { from { transform: translateY(100%); opacity: 0; } }
.d2-lead { margin: 0; max-width: 620px; color: #c8cdd6; font-size: clamp(15px, 1.2vw, 18px); }
.d2-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.d2-primary { padding: 14px 26px; font-size: 16px; box-shadow: 0 10px 40px rgba(212,255,23,.28), 0 0 0 1px rgba(212,255,23,.35); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .15s; }
.d2-primary:hover { box-shadow: 0 14px 54px rgba(212,255,23,.42), 0 0 0 1px rgba(212,255,23,.6); }
.d2-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.glass { position: absolute; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px rgba(0,0,0,.35); color: #e8ebf0; font-size: 13.5px; animation: float 9s ease-in-out infinite; transition: translate .25s ease-out; }
.glass small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.glass.g1 { right: 6%; top: 16%; width: 280px; flex-direction: column; align-items: flex-start; animation-delay: -2s; }
.g-line { font-size: 13px; color: #fff; }
.g-arrow { align-self: flex-end; font-weight: 700; color: var(--gold); }
.glass.g2 { right: 22%; top: 48%; animation-duration: 11s; }
.g-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.glass.g3 { right: 5%; top: 58%; font-weight: 700; color: var(--gold); animation-delay: -5s; }
.glass.g3 img { width: 20px; height: 20px; }
.glass.g4 { right: 14%; bottom: 14%; width: 220px; flex-direction: column; align-items: stretch; animation-duration: 12s; animation-delay: -1s; }
.g-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--violet), var(--gold)); animation: prog 4.5s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes prog { 0% { transform: scaleX(.05); } 80%, 100% { transform: scaleX(1); } }
.glass.g5 { right: 31%; top: 12%; padding: 6px; animation-duration: 10s; animation-delay: -3s; }
.g-thumb { width: 150px; aspect-ratio: 16 / 9; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--cyan)); background-size: cover; background-position: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.d2-scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; z-index: 2; }
.d2-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.d2-pause { position: absolute; left: var(--gutter); bottom: 20px; z-index: 3; font: inherit; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 12px; cursor: pointer; backdrop-filter: blur(6px); min-height: 36px; }
.d2-pause:hover, .d2-pause:focus-visible { color: var(--text); outline: none; box-shadow: 0 0 0 2px rgba(212,255,23,.5); }

/* ---------- section heads (editorial numbering + lime rule) */
.d2-sec { min-width: 0; }
.d2-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px 18px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.d2-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--gold); padding-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.d2-num::after { content: ''; width: 36px; height: 1px; background: var(--gold); opacity: .7; }
.d2-head-t p { margin: 6px 0 0; color: var(--muted); }
.d2-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.d2-head-row .d2-head { flex: 1; }

/* ---------- marquees */
.mq-host { display: grid; gap: 18px; margin: 0 calc(-1 * var(--gutter)); padding: 12px 0; transform: rotate(-2deg); }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 16px; width: max-content; animation: mq var(--dur, 70s) linear infinite; padding: 10px 0; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 8px)); } }
.mq .tcard { width: clamp(220px, 20vw, 300px); flex: none; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; position: relative; }
.mq .tcard .tcard-media { position: relative; }
.mq .tcard .tcard-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 55%); }
.mq .tcard:hover .tcard-media::after { opacity: 1; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 20px; border-radius: 22px; overflow: hidden; color: var(--text);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--gold) 72%, var(--cyan) 82%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 4s linear infinite; }
@keyframes ang { to { --ang: 360deg; } }
.tile:hover, .tile:focus-visible { transform: translateY(-6px); outline: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile-t { position: relative; z-index: 1; display: grid; gap: 4px; }
.tile-t b { font-family: var(--display); font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; }
.tile-t span { color: var(--muted); font-size: 14px; }
.t-video { grid-column: span 3; grid-row: span 2; min-height: 420px; } .t-gorsel, .t-ses { grid-column: span 3; } .t-uzun, .t-kurgu, .t-sablon { grid-column: span 2; }
.art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.art-film .strip { position: absolute; left: 0; top: 18%; display: flex; gap: 10px; animation: film 14s linear infinite; }
.art-film .fr { width: 150px; aspect-ratio: 16 / 10; border-radius: 10px; flex: none; background: linear-gradient(135deg, hsl(calc(240 + var(--i) * 25) 70% 45% / .7), hsl(calc(180 + var(--i) * 20) 80% 50% / .5)); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 6px rgba(0,0,0,.25); }
@keyframes film { to { transform: translateX(-50%); } }
.art-focus .img, .art-focus .frame { position: absolute; right: 10%; top: 14%; width: 46%; aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 30% 30%, var(--gold), transparent 45%), radial-gradient(circle at 70% 60%, var(--violet), transparent 50%), linear-gradient(135deg, #1a2150, #0b1322); }
.art-focus .img { filter: blur(10px); animation: blur-out 5s ease-in-out infinite; }
.art-focus .frame { opacity: 0; animation: sharp-in 5s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
@keyframes blur-out { 0%, 30% { opacity: 1; } 55%, 85% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sharp-in { 0%, 30% { opacity: 0; } 55%, 85% { opacity: 1; } 100% { opacity: 0; } }
.art-wave { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 0 9% 28px 0; }
.art-wave .bar { width: 6px; height: 56%; border-radius: 4px; background: linear-gradient(var(--cyan), var(--violet)); transform-origin: center; animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
@keyframes wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.art-scenes { display: flex; align-items: center; gap: 14px; padding: 0 10% 46px; }
.art-scenes .sc { flex: 1; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, rgba(212,255,23,.55), rgba(124,92,255,.5)); opacity: 0; animation: sc-in 4.5s ease infinite; animation-delay: calc(var(--i) * .5s); }
.art-scenes .link { position: absolute; left: 10%; right: 10%; top: 38%; height: 2px; background: var(--gold); transform-origin: left; animation: link 4.5s ease infinite; }
@keyframes sc-in { 0% { opacity: 0; transform: translateY(10px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes link { 0%, 10% { transform: scaleX(0); } 55%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.art-tl { padding: 26px 18px 0; display: grid; gap: 8px; align-content: start; }
.art-tl .row1, .art-tl .row2 { display: flex; gap: 6px; animation: tl-slide 7s ease-in-out infinite alternate; }
.art-tl .row2 { animation-direction: alternate-reverse; }
.art-tl .clip { height: 22px; flex: 1 0 60px; border-radius: 6px; background: linear-gradient(90deg, rgba(25,211,218,.55), rgba(124,92,255,.5)); }
.art-tl .row2 .clip { background: linear-gradient(90deg, rgba(212,255,23,.45), rgba(212,255,23,.18)); }
.art-tl .head { position: absolute; top: 16px; left: 18px; width: 2px; height: 64px; background: #fff; box-shadow: 0 0 10px #fff; animation: playhead 5s linear infinite; }
@keyframes tl-slide { to { transform: translateX(-24px); } }
@keyframes playhead { to { transform: translateX(min(260px, 70vw)); } }
.art-cards .cd { position: absolute; right: 16%; top: 16%; width: 38%; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); transform-origin: 50% 120%;
  background: linear-gradient(160deg, hsl(calc(70 + var(--i) * 90) 85% 55% / .65), rgba(11,19,34,.9)); animation: fan 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
@keyframes fan { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

/* ---------- counters band */
.d2-band { margin: 0 calc(-1 * var(--gutter)); padding: clamp(28px, 4vw, 48px) var(--gutter); border-block: 1px solid rgba(255,255,255,.07); background: linear-gradient(90deg, rgba(124,92,255,.08), rgba(212,255,23,.05), rgba(25,211,218,.08)); }
.d2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stat2 { display: grid; gap: 2px; }
.stat2 b { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat2:nth-child(1) b { color: var(--gold); }
.stat2 span { color: var(--muted); }

/* ---------- models rail */
.rail-nav { display: flex; gap: 8px; padding-bottom: clamp(18px, 2.4vw, 30px); }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; }
.rail-btn:hover, .rail-btn:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.mrail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; scrollbar-width: thin; }
.mrail:focus-visible { outline: 2px solid rgba(212,255,23,.45); outline-offset: 4px; border-radius: 16px; }
.mcard2 { flex: 0 0 clamp(260px, 28vw, 400px); scroll-snap-align: start; display: grid; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: var(--panel); color: var(--text); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.mcard2:hover, .mcard2:focus-visible { transform: translateY(-6px) scale(1.02); border-color: rgba(212,255,23,.45); outline: none; }
.mcard2-media { aspect-ratio: 4 / 3; }
.mcard2-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard2 .mart-txt b { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); }
.mcard2-foot { display: grid; gap: 6px; padding: 14px 16px 16px; }
.mcard2 .mcard-try { opacity: 0; transform: translateX(-6px); }
.mcard2:hover .mcard-try, .mcard2:focus-visible .mcard-try { opacity: 1; transform: none; }

/* ---------- your work (uneven grid) */
.works2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 46%), 1fr)); grid-auto-flow: dense; gap: 16px; }
.works2 .work.big { grid-column: span 2; grid-row: span 2; }
.works2 .work.big .work-cover { aspect-ratio: auto; height: calc(100% - 26px); min-height: 220px; }
.works2.empty { display: block; }
.work-cover { position: relative; }
.work-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--gold) 0 30%, rgba(255,255,255,.15) 30% 100%); -webkit-mask: radial-gradient(circle, transparent 8px, #000 9px); mask: radial-gradient(circle, transparent 8px, #000 9px); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.d2-empty { position: relative; display: grid; gap: 10px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: 24px; overflow: hidden; border: 1px dashed rgba(255,255,255,.18); background: radial-gradient(120% 120% at 100% 0%, rgba(124,92,255,.18), transparent 55%), var(--panel); }
.d2-empty p { margin: 0; }
.empty-film { position: absolute; right: 6%; top: 50%; display: flex; gap: 8px; transform: translateY(-50%) rotate(-8deg); opacity: .8; animation: float 7s ease-in-out infinite; }
.empty-film i { width: 54px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, rgba(212,255,23,.5), rgba(25,211,218,.35)); border: 1px solid rgba(255,255,255,.2); }

/* ---------- how it works: vertical timeline, the line fills while scrolling */
.tl { list-style: none; margin: 0; padding: 0 0 0 46px; display: grid; gap: 28px; position: relative; max-width: 760px; }
.tl::before, .tl::after { content: ''; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.tl::before { background: rgba(255,255,255,.1); }
.tl::after { background: linear-gradient(var(--gold), var(--cyan)); transform-origin: top; transform: scaleY(0); transition: transform .6s ease; }
.tl:has(li.on)::after { transform: scaleY(.34); } .tl:has(li.on + li.on)::after { transform: scaleY(.67); } .tl:has(li.on + li.on + li.on)::after { transform: scaleY(1); }
@supports (animation-timeline: view()) {
  .tl::after { transition: none; animation: tl-fill linear both; animation-timeline: view(); animation-range: entry 30% cover 65%; }
  @keyframes tl-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.tl li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.tl-ico { position: absolute; left: -46px; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); border: 1px solid rgba(212,255,23,.4); color: var(--gold); font-size: 15px; }
.tl li.in .tl-ico { animation: pop .5s cubic-bezier(.2,.8,.2,1.4); }
@keyframes pop { from { transform: scale(.6); } }
.tl li b { font-family: var(--display); font-size: 18px; }

/* ---------- closing call */
.d2-close { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: clamp(64px, 9vw, 130px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 22px; }
.d2-close h2 { font-size: clamp(36px, 6vw, 96px); font-weight: 800; letter-spacing: -.04em; }
.d2-aurora.small { inset: 0; filter: blur(60px); }
.d2-aurora.small i { width: 34vmax; height: 34vmax; }
.d2-bal { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.d2-bal img { width: 20px; height: 20px; }
.dash2 .dash-credit { margin: -40px 0 0; }

/* ---------- widths */
@media (max-width: 1100px) { .glass.g2, .glass.g5 { display: none; } }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-video { grid-column: span 2; grid-row: auto; min-height: 300px; } .t-gorsel, .t-ses, .t-uzun, .t-kurgu, .t-sablon { grid-column: span 1; }
}
@media (max-width: 599px) {
  .d2-hero { margin-top: -16px; min-height: max(520px, 86svh); align-items: flex-end; padding-bottom: 76px; }
  .glass.g1, .glass.g4, .glass.g2, .glass.g5 { display: none; }
  .glass.g3 { right: 6%; top: 10%; } .d2-floats .glass.g3 ~ .g4 { display: none; }
  .glass.g2 { display: flex; right: auto; left: 6%; top: 16%; }
  .d2-scroll { display: none; }
  .mq-host { transform: none; } .mq.rev { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); } .t-video, .t-gorsel, .t-ses, .t-uzun, .t-kurgu, .t-sablon { grid-column: auto; }
  .d2-head { grid-template-columns: minmax(0, 1fr) auto; } .d2-num { grid-column: 1 / -1; padding-bottom: 0; }
  .rail-nav { display: none; }
  .works2 .work.big { grid-column: span 2; grid-row: auto; }
  .empty-film { display: none; }
}

/* ---------- reduced motion: still designed, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .dash2 *, .dash2 *::before, .dash2 *::after { animation: none !important; transition: none !important; }
  .dash2 [data-reveal] { opacity: 1; transform: none; }
  .d2-title .ch { opacity: 1; transform: none; }
  .d2-title .shine .ch { background-position: 50% 0; }
  .mq-host { transform: none; } .mq { overflow-x: auto; } .mq.rev { display: none; } .mq-track > [aria-hidden="true"] { display: none; }
  .art-focus .img { opacity: 0; } .art-focus .frame, .art-scenes .sc { opacity: 1; } .art-scenes .link { transform: none; }
  .tl::after { transform: scaleY(1); }
  .d2-light { display: none; }
}
/* DASHBOARD-2 fixes: rotating word sits on the baseline; rotated marquee / bleed sections never cause horizontal scroll */
.d2-rot-box { display: inline-block; position: relative; height: 1.18em; line-height: 1.18; min-width: 6.4em; overflow: hidden; vertical-align: -0.24em; }
.d2-rot { position: static; display: inline-block; }
.content:has(.dash2) { overflow-x: clip; }
.glass.g2 { right: 24%; top: auto; bottom: 24%; }
.glass.g3 { top: 52%; }
@media (max-width: 599px) { .glass.g2 { right: auto; left: 6%; top: 14%; bottom: auto; } .d2-rot-box { min-width: 0; } }
/* revealed tiles keep their hover lift (the reveal rule is more specific than .tile:hover) */
.dash2 .tile.in:hover, .dash2 .tile.in:focus-visible { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .dash2 .tile.in:hover, .dash2 .tile.in:focus-visible { transform: none; } }
.art-cards .cd { top: 8%; width: 30%; right: 12%; }
.art-focus .img, .art-focus .frame { top: 10%; width: 40%; right: 8%; }
.art-film .strip { top: 30%; }
@media (max-width: 599px) { .art-cards .cd, .art-focus .img, .art-focus .frame { width: 34%; } }
@media (prefers-reduced-motion: reduce) { .d2-title .shine .ch { background-position: 100% 0; } }
/* LCP: the title paints at once — letters stay visible and only settle into place (transform), no opacity fade */
.d2-title .ch { opacity: 1; transform: translateY(.42em) rotate(6deg); }
@keyframes ch-in { to { transform: none; } }
@media (max-width: 599px) { .glass.g3 { top: 9%; right: 6%; } .glass.g2 { top: 9%; } }

/* ---------- TABLO-1: admin tables shrink to the panel instead of clipping their action buttons.
   Every .price-table cell is nowrap, so the invoice cell's status line and button row forced ~500 px and the orders
   table (≈1470 px) scrolled out of its wrapper; text now wraps, buttons wrap onto a second line. */
.admin-table td { white-space: normal; vertical-align: top; }
.admin-table td.email, .admin-table td.tier b { overflow-wrap: anywhere; }
.admin-table td.wrap { min-width: 160px; }
.admin-table td.actions { min-width: 150px; }
.admin-table td.actions > * { margin: 2px 4px 2px 0; }
.admin-orders .invoice-cell { min-width: 240px; }
.admin-orders .invoice-box .row { flex-wrap: wrap; gap: 6px; }
.admin-orders .invoice-box input[type=text] { flex: 1 1 120px; min-width: 0; width: auto !important; }
.admin-orders .invoice-box .muted.small { white-space: normal; overflow-wrap: anywhere; }
.admin-users td.num { white-space: nowrap; }
/* e-mails carry <wbr> after '@' and before dots (ayarlar.js#mailBreaks): break there, never mid-word */
.admin-table td.email, .admin-table td.tier b { overflow-wrap: break-word; }

/* =====================================================================================================================
   KURGU-1 — timeline editor. The text layer uses the export's font file (DejaVu Sans Bold) so the preview matches
   ffmpeg drawtext; sizes come in as export px × (shown height / export height) from editor.js.
   ===================================================================================================================== */
@font-face { font-family: 'MbsText'; font-weight: 700; font-style: normal; font-display: block; src: url(/fonts/DejaVuSans-Bold.ttf) format('truetype'); }
.editor2 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; grid-template-areas: 'src stage insp' 'tl tl tl'; gap: 16px; align-items: start; }
.ed-src { grid-area: src; } .ed-stage-col { grid-area: stage; min-width: 0; } .ed-insp { grid-area: insp; } .ed-tl { grid-area: tl; min-width: 0; }
@media (max-width: 1250px) { .editor2 { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'stage insp' 'tl tl' 'src src'; } }
@media (max-width: 860px) { .editor2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'tl' 'insp' 'src'; } }

.stage { position: relative; width: 100%; max-height: 62vh; margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
.stage > video, .stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.stage-gap, .stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.stage-gap { background: #000; color: #333; }
.stage-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ov-text { position: absolute; font-family: 'MbsText', 'DejaVu Sans', sans-serif; font-weight: 700; white-space: pre; line-height: 1.17; letter-spacing: 0; }
.ov-text.box { background: rgba(0,0,0,.45); box-shadow: 0 0 0 var(--pad, 14px) rgba(0,0,0,.45); }
.ov-img { position: absolute; display: block; }
.ov-text.sel, .ov-img.sel { outline: 2px dashed var(--gold); outline-offset: calc(var(--pad, 0px) + 4px); }
.ed-result { width: 100%; max-height: 50vh; background: #000; border-radius: 10px; display: block; }

/* tools */
.tl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.tl-tools button { min-width: 44px; min-height: 44px; }
.tl-play { min-width: 44px; font-size: 15px; }
.tl-clock { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.tl-sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.tl-snap { font-size: 13px; color: var(--muted); }
.tl-keys { margin-top: 8px; }

/* timeline body: fixed track heads + horizontally scrolling canvas */
.tlx { --rh: 24px; --vh: 52px; --ah: 40px; --th: 30px; --mh: 40px; }
.tlx-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0b0c0e; }
.tlx-heads { border-right: 1px solid var(--line); background: var(--panel2); }
.tlx-head-ruler { height: var(--rh); border-bottom: 1px solid var(--line); }
.tlx-head { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tlx-head b { color: var(--gold); font-weight: 700; }
.head-v { height: var(--vh); } .head-a { height: var(--ah); } .head-t { height: var(--th); } .head-m { height: var(--mh); border-bottom: 0; }
.tlx-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tlx-canvas { position: relative; min-width: 100%; }
.tlx-ruler { position: relative; height: var(--rh); border-bottom: 1px solid var(--line); cursor: ew-resize; touch-action: none; background: linear-gradient(#15171a, #0f1012); user-select: none; }
.tlx-ruler i { position: absolute; bottom: 0; width: 1px; background: #3a3f46; }
.tlx-ruler i.maj { height: 10px; background: #6b727c; } .tlx-ruler i.min { height: 5px; }
.tlx-ruler span { position: absolute; top: 3px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.lane { position: relative; border-bottom: 1px solid #1c1f23; touch-action: pan-x; }
.lane-v { height: var(--vh); } .lane-a { height: var(--ah); } .lane-t { height: var(--th); } .lane-m { height: var(--mh); border-bottom: 0; }
.lane-empty { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #5d636b; pointer-events: none; white-space: nowrap; }
.blk { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; overflow: hidden; cursor: grab; touch-action: none; user-select: none;
  background: #1d2a12; border: 1px solid rgba(212,255,23,.35); color: #e8f6c0; display: flex; align-items: flex-end; }
/* AUDIT-1: the selected block sits above the ◇ join buttons (z 4) so its trim handles can be grabbed at any height */
.blk.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.45); z-index: 5; }
.blk.dragging { opacity: .8; z-index: 5; cursor: grabbing; }
.blk-t { position: relative; z-index: 1; display: flex; gap: 6px; align-items: baseline; padding: 2px 8px; min-width: 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.blk-t small { color: rgba(255,255,255,.65); }
.blk-l, .blk-r { position: absolute; top: 0; bottom: 0; width: 8px; z-index: 3; cursor: ew-resize; }
.blk-l { left: 0; } .blk-r { right: 0; }
.blk-l:hover, .blk-r:hover, .blk.sel .blk-l, .blk.sel .blk-r { background: rgba(212,255,23,.45); }
.blk-strip { position: absolute; inset: 0; display: flex; overflow: hidden; opacity: .75; }
.blk-strip i { flex: none; height: 100%; background-repeat: no-repeat; }
.blk-wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.v-image { background: #13202e; border-color: rgba(127,178,255,.45); color: #cfe0ff; }
.v-gap { background: repeating-linear-gradient(45deg, #121315 0 6px, #18191c 6px 12px); border: 1px dashed #3a3f46; color: #8b929b; }
.v-missing { background: #2a1416; border-color: rgba(255,107,107,.5); color: #ffc9c6; }
.a-clip { --wave: #a6d81a; background: #121a0a; border-color: rgba(166,216,26,.3); }
.a-clip.muted, .m-audio.muted { opacity: .45; }
.blk.silent { background: #16181b; border: 1px dashed #33373d; color: #6b727c; align-items: center; justify-content: center; cursor: default; }
.blk.silent .blk-t { text-shadow: none; }
.t-text { background: #2b1f4a; border-color: rgba(124,92,255,.6); color: #e3dcff; }
.t-image { background: #10313a; border-color: rgba(25,211,218,.55); color: #c8f6f8; }
.m-audio { --wave: #19d3da; background: #0c2326; border-color: rgba(25,211,218,.45); color: #c8f6f8; }
.tlx-ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #ff4d6d; z-index: 6; pointer-events: none; }
.tlx-ph-knob { position: absolute; top: 0; left: -7px; width: 16px; height: 14px; border-radius: 3px 3px 8px 8px; background: #ff4d6d; pointer-events: auto; cursor: ew-resize; touch-action: none; }
@media (max-width: 599px) {
  .tlx-body { grid-template-columns: 76px minmax(0, 1fr); }
  .tlx-head { padding: 0 2px; gap: 2px; } .tlx-head .h-full { display: none; }
  .tlx-flag { min-width: 18px; min-height: 18px; padding: 1px; font-size: 11px; }
  .tl-keys { display: none; }
  .blk-l, .blk-r { width: 14px; } /* larger touch handles */
}
@media (min-width: 600px) { .tlx-head .h-short { min-width: 12px; } }
/* keep the timeline in view: the first row is bounded, side panels scroll inside */
@media (min-width: 861px) {
  .editor2 { grid-template-columns: 230px minmax(0, 1fr) 290px; }
  .ed-src .sources { max-height: min(46vh, 420px); }
  .ed-insp { max-height: min(64vh, 620px); overflow: auto; }
}

/* =====================================================================================================================
   KURGU-2 — full-screen editor ("editor mode"): html.ed-mode hides the app chrome; .edx is a 4-region grid —
   library | preview | properties over a resizable timeline (--lib-w, --props-w, --tl-h set by editor.js).
   Below 1100 px the regions stack and the library / properties become bottom sheets.
   ===================================================================================================================== */
html.ed-mode, html.ed-mode body { overflow: hidden; }
html.ed-mode .topbar, html.ed-mode .sidebar, html.ed-mode #bnav { display: none !important; }
html.ed-mode .content { padding: 0 !important; }
.edx { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto minmax(0, 1fr) 7px var(--tl-h, 38vh); background: var(--bg); color: var(--text); min-width: 0; }
.edx-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.edx-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.edx-name { max-width: 300px; min-width: 120px; font-weight: 600; background: transparent; border-color: transparent; }
.edx-name:hover, .edx-name:focus { border-color: var(--line); background: var(--panel); }
.edx-save { white-space: nowrap; }
.edx-tools { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.edx-tools > * { flex: none; }
.edx-tools select { width: auto; }
.edx-pbtn { display: inline-flex; align-items: center; gap: 6px; }
.edx-pbtn .ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; display: block; }
.edx.lib-closed .edx-pbtn:first-of-type, .edx.props-closed .edx-pbtn:last-of-type { opacity: .6; }
.edx-export { font-weight: 700; }
.edx-main { display: grid; grid-template-columns: var(--lib-w, 340px) 6px minmax(0, 1fr) 6px var(--props-w, 320px); min-height: 0; min-width: 0; }
.edx-lib, .edx-props { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg2); display: flex; flex-direction: column; }
.edx-lib { border-right: 1px solid var(--line); }
.edx-props { border-left: 1px solid var(--line); }
.edx.lib-closed .edx-lib, .edx.props-closed .edx-props { visibility: hidden; border: 0; }
.edx-lib-in { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 0; height: 100%; }
.edx-props-in { overflow: auto; padding: 12px 14px 28px; height: 100%; }
.edx-vsplit, .edx-hsplit { position: relative; touch-action: none; background: var(--bg); }
.edx-vsplit { cursor: col-resize; }
.edx-hsplit { cursor: row-resize; border-top: 1px solid var(--line); }
.edx-vsplit::after, .edx-hsplit::after { content: ''; position: absolute; background: var(--gold); opacity: 0; transition: opacity .12s; }
.edx-vsplit::after { top: 0; bottom: 0; left: 2px; width: 2px; }
.edx-hsplit::after { left: 0; right: 0; top: 2px; height: 2px; }
.edx-vsplit:hover::after, .edx-vsplit.drag::after, .edx-hsplit:hover::after, .edx-hsplit.drag::after { opacity: .8; }
.sheet-close { display: none; }
.edx-scrim[hidden] { display: none; }

/* centre: preview + transport */
.edx-center { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #060708; }
.edx-view { flex: 1; min-height: 0; display: flex; align-items: safe center; justify-content: safe center; overflow: hidden; position: relative; }
.edx-view.scroll { overflow: auto; }
.edx-view:not(.scroll) { overflow: visible; } /* handles of a rotated / moved picture stay reachable outside the frame */
.edx-view:not(.scroll) .gz { z-index: 30; }
.edx-view:fullscreen { background: #000; }
.stage-holder { position: relative; flex: none; }
.edx .stage { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; overflow: hidden; background: #000; }
.edx .stage video, .edx .stage > img { position: absolute; inset: auto; object-fit: fill; background: transparent; transform-origin: 50% 50%; max-width: none; }
.stage-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0a0b0d; background: var(--gold); padding: 2px 7px; border-radius: 6px; }
.stage-ui { position: absolute; inset: 0; z-index: 3; touch-action: none; }
.ov-text { white-space: normal; }
.ov-line { white-space: pre; }
.edx-transport { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.err-list { display: grid; gap: 4px; max-height: 420px; overflow: auto; } /* PIYASA-0 admin error ring */
.err-row summary { cursor: pointer; font-size: 13px; overflow-wrap: anywhere; }
.err-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.5px; background: var(--bg2); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.edx-quality { width: auto; max-width: 180px; padding: 4px 8px; font-size: 12.5px; min-height: 30px; } /* PIYASA-0 */
@media (max-width: 599px) { .edx-quality { max-width: 130px; } }
.edx-zoom button { padding: 5px 10px; font-size: 12.5px; }
.edx-render { position: absolute; right: 14px; bottom: 58px; z-index: 5; width: min(330px, calc(100% - 28px)); display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.edx-render[hidden] { display: none; }

/* on-stage handles */
.gz { position: absolute; border: 1.5px solid var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.55); cursor: move; touch-action: none; transform-origin: 50% 50%; z-index: 4; }
.gz[hidden] { display: none; }
.gz-h { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--gold); border-radius: 4px; touch-action: none; }
.gz-nw { left: -8px; top: -8px; cursor: nwse-resize; } .gz-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.gz-ne { right: -8px; top: -8px; cursor: nesw-resize; } .gz-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.gz-stem { position: absolute; left: 50%; top: -22px; width: 2px; height: 22px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.gz-rot { position: absolute; left: 50%; top: -36px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--gold); border: 2px solid #0a0b0d; cursor: grab; touch-action: none; }
@media (pointer: coarse) {
  .gz-h { width: 24px; height: 24px; } .gz-nw { left: -13px; top: -13px; } .gz-se { right: -13px; bottom: -13px; } .gz-ne { right: -13px; top: -13px; } .gz-sw { left: -13px; bottom: -13px; }
  .gz-rot { width: 28px; height: 28px; margin-left: -14px; top: -46px; } .gz-stem { top: -20px; height: 20px; }
}
.gz-guide { position: absolute; z-index: 4; background: #ff4dd2; pointer-events: none; }
.gz-guide.v { top: 0; bottom: 0; width: 1px; } .gz-guide.h { left: 0; right: 0; height: 1px; }
.gz-guide[hidden] { display: none; }

/* timeline region */
.edx-tl { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 8px 12px 6px; background: var(--bg2); overflow: auto; }
.edx-tl .tl-tools { margin-bottom: 8px; }
.edx-tl .tl-tools button { min-height: 36px; min-width: 36px; }
.tlx-drop { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); z-index: 7; pointer-events: none; }
.tlx-drop[hidden] { display: none; }

/* library */
.lib-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.lib-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 11px; line-height: 1.15; min-height: 56px; cursor: pointer; }
.lib-tab:hover { color: var(--text); background: var(--panel); }
.lib-tab.on { color: var(--gold); background: var(--panel2); }
.lib-ico svg { width: 22px; height: 22px; display: block; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lib-body { overflow-y: auto; padding: 12px; min-width: 0; min-height: 0; }
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lib-title { font-weight: 700; font-size: 14px; }
.lib-title.sm { font-size: 12.5px; color: var(--muted); margin: 16px 0 6px; font-weight: 600; }
.lib-seg button { padding: 5px 9px; font-size: 12px; }
.lib-filters { display: flex; gap: 6px; margin-bottom: 10px; min-width: 0; }
.lib-filters input { flex: 1; min-width: 0; }
.lib-filters select { width: auto; max-width: 46%; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.lib-card { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: pointer; min-width: 0; }
.lib-card:hover, .lib-card:focus-visible { border-color: rgba(212,255,23,.5); outline: none; }
.lib-card.picked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.35); }
.lib-thumb { position: relative; aspect-ratio: 16 / 9; background: #0b0c0e; display: grid; place-items: center; color: var(--muted); }
.lib-thumb img, .lib-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-dur { position: absolute; right: 5px; bottom: 5px; z-index: 1; font-size: 10.5px; background: rgba(0,0,0,.72); padding: 1px 5px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.lib-chk { position: absolute; left: 6px; top: 6px; z-index: 1; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.lib-name { display: flex; flex-direction: column; min-width: 0; padding: 6px 38px 7px 8px; font-size: 12px; }
.lib-name small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-add { position: absolute; right: 5px; bottom: 5px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--gold); color: #0a0b0d; font-weight: 800; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lib-add:disabled { opacity: .6; cursor: wait; }
/* PIYASA-1: layers, K lanes, track headers, crop mode */
.lib-add.lib-layer { top: 5px; right: 5px; bottom: auto; width: 26px; height: 26px; min-width: 0; padding: 0; background: rgba(20,28,6,.88); color: var(--gold); border: 1px solid rgba(212,255,23,.55); font-size: 14px; }
/* PIYASA-3: no box of its own — the layers join the stage's stacking context, so mix-blend-mode sees the clip underneath */
.edx .stage { isolation: isolate; }
.edx .stage > .stage-pics { display: contents; }
.stage-pics .pic { pointer-events: none; }
.stage-pics .pic.fx-src { visibility: hidden; } /* applyBox sets an inline opacity; hidden still decodes */
.stage-pics canvas.fx-cv { position: absolute; display: block; transform-origin: 50% 50%; pointer-events: none; }
.stage-pics .pic { position: absolute; display: block; max-width: none; object-fit: fill; transform-origin: 50% 50%; background: transparent; }
.stage-pics .pic.sel { outline: 2px dashed var(--gold); outline-offset: 2px; }
.edx .stage.hide-v > .slots, .edx .stage.hide-v > img, .edx .stage.hide-v > canvas.look-cv, .edx .stage.hide-v > canvas.img-bg { visibility: hidden; }
.edx .stage.hide-t > .stage-layer { visibility: hidden; }
.tlx { --kh: 34px; }
.head-k { height: var(--kh); } .lane-k { height: var(--kh); background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.015) 39px 40px); }
.lane.narrow, .tlx-head.narrow { height: 22px !important; }
.lane.narrow .blk-t small, .lane.narrow .blk-strip, .lane.narrow .blk-wave { display: none; }
.tlx-head { position: relative; min-width: 0; }
.tlx-head .h-flags { margin-left: auto; display: flex; gap: 1px; flex: none; }
.tlx-head .h-full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.head-k .h-full { display: none; }
.tlx-flag { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; line-height: 1; padding: 2px 3px; border-radius: 5px; cursor: pointer; min-width: 21px; min-height: 21px; }
.tlx-flag:hover { background: rgba(255,255,255,.08); color: var(--text); }
.tlx-flag.on { color: var(--gold); background: rgba(212,255,23,.12); }
.lane.locked .blk { cursor: not-allowed; filter: saturate(.4); }
.blk.locked { cursor: not-allowed; filter: saturate(.4); }
.lane.hidden-track .blk { opacity: .45; }
.blk.hidden-item { opacity: .45; border-style: dashed; }
.lane.drop-target { background: rgba(212,255,23,.08); outline: 1px dashed rgba(212,255,23,.6); outline-offset: -1px; }
.blk.k-video { background: #1d2a36; border-color: rgba(120,190,255,.5); color: #e2f0ff; }
.blk.k-image { background: #2a2333; border-color: rgba(255,170,230,.45); color: #ffe6f6; }
.blk.k-video.sel, .blk.k-image.sel { border-color: var(--gold); }
.crop-ui { position: absolute; z-index: 6; transform-origin: 50% 50%; overflow: hidden; touch-action: none; }
.crop-rect { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.58); outline: 1.5px solid var(--gold); cursor: move; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.crop-h { position: absolute; width: 14px; height: 14px; background: var(--gold); border: 2px solid #0a0b0d; border-radius: 3px; }
.crop-nw { left: -7px; top: -7px; cursor: nwse-resize; } .crop-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.crop-se { right: -7px; bottom: -7px; cursor: nwse-resize; } .crop-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.crop-n { left: calc(50% - 7px); top: -7px; cursor: ns-resize; } .crop-s { left: calc(50% - 7px); bottom: -7px; cursor: ns-resize; }
.crop-e { right: -7px; top: calc(50% - 7px); cursor: ew-resize; } .crop-w { left: -7px; top: calc(50% - 7px); cursor: ew-resize; }
@media (pointer: coarse) { .crop-h { width: 24px; height: 24px; } }
.crop-bar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(12,14,16,.92); border: 1px solid var(--line2); border-radius: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 16px); }
.stage-ui.cropping .gz { display: none; }
.props-quick.wrap { flex-wrap: wrap; }
/* PIYASA-2 keyframes */
.kf-btn { margin-left: 6px; border: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 4px; cursor: pointer; min-width: 22px; min-height: 22px; vertical-align: middle; }
.kf-btn.part { color: #9fc7ff; } .kf-btn.on { color: var(--gold); text-shadow: 0 0 6px rgba(212,255,23,.6); }
.kf-btn.on::after { content: ''; }
.field.animated input[type=range] { accent-color: #9fc7ff; }
.kf-dia { position: absolute; bottom: 2px; width: 10px; height: 10px; margin-left: -5px; background: var(--gold); transform: rotate(45deg); border: 1px solid #0a0b0d; z-index: 4; cursor: ew-resize; touch-action: none; }
.motion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.kf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 130px) auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.kf-bez { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.bez-cv { width: 140px; height: 140px; background: #0b0c0e; border: 1px solid var(--line2); border-radius: 8px; touch-action: none; cursor: crosshair; }
.sc-cv { width: 100%; max-width: 280px; aspect-ratio: 280 / 130; background: #0b0c0e; border: 1px solid var(--line2); border-radius: 8px; touch-action: none; cursor: crosshair; }
.kb-ui { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.kb-rect { position: absolute; border: 2px solid; pointer-events: auto; cursor: move; touch-action: none; }
.kb-start { border-color: #2ee59d; background: rgba(46,229,157,.08); } .kb-end { border-color: #ff4d6d; background: rgba(255,77,109,.08); }
.kb-l { position: absolute; left: 4px; top: 2px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.kb-start .kb-l { color: #2ee59d; } .kb-end .kb-l { color: #ff4d6d; }
.kb-h { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: currentColor; border: 2px solid #0a0b0d; border-radius: 3px; cursor: nwse-resize; }
.kb-start .kb-h { color: #2ee59d; } .kb-end .kb-h { color: #ff4d6d; }
.props-multi { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(212,255,23,.35); border-radius: 10px; background: rgba(212,255,23,.06); }
.mk-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.mk-swatch.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.mk-swatch[data-c=lime] { background: #d4ff17; } .mk-swatch[data-c=red] { background: #ff4d6d; } .mk-swatch[data-c=orange] { background: #ff9f43; } .mk-swatch[data-c=yellow] { background: #ffd166; }
.mk-swatch[data-c=green] { background: #2ee59d; } .mk-swatch[data-c=blue] { background: #4dabff; } .mk-swatch[data-c=purple] { background: #b18cff; } .mk-swatch[data-c=white] { background: #f2f2f2; }
.tl-mk { position: absolute; top: 0; z-index: 7; height: var(--rh, 24px); width: 12px; margin-left: -6px; border: 0; padding: 0; background: transparent; cursor: pointer; touch-action: none; }
.tl-mk::before { content: ''; position: absolute; left: 1px; top: 2px; width: 10px; height: 12px; background: var(--mk); clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%); }
.tl-mk::after { content: ''; position: absolute; left: 5.5px; top: 14px; width: 1px; height: 900px; background: var(--mk); opacity: .35; pointer-events: none; }
.tl-mk.sel::before { outline: 2px solid #fff; outline-offset: 1px; }
.tl-mk-l { position: absolute; left: 13px; top: 3px; font-size: 10.5px; white-space: nowrap; color: var(--mk); pointer-events: none; text-shadow: 0 1px 2px #000; }
.tl-io { position: absolute; top: 0; height: var(--rh, 24px); background: rgba(77,171,255,.25); border-left: 2px solid #4dabff; border-right: 2px solid #4dabff; pointer-events: none; z-index: 1; }
.tl-marquee { position: absolute; z-index: 8; border: 1px dashed var(--gold); background: rgba(212,255,23,.08); pointer-events: none; }
.tl-hint { position: absolute; z-index: 9; padding: 3px 7px; border-radius: 6px; background: rgba(10,11,13,.92); border: 1px solid var(--line2); font-size: 11.5px; color: var(--text); pointer-events: none; white-space: nowrap; }
.blk.sel.multi { box-shadow: 0 0 0 2px rgba(212,255,23,.3); }
.safe-guides { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.safe-box { position: absolute; border: 1px dashed rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.safe-box.inner { border-color: rgba(212,255,23,.65); }
.safe-zone { position: absolute; background: rgba(255,77,109,.18); border: 1px dashed rgba(255,77,109,.6); }
.safe-zone.top { left: 0; right: 0; top: 0; height: 15%; } .safe-zone.bottom { left: 0; right: 0; bottom: 0; height: 25%; } .safe-zone.right { right: 0; top: 15%; bottom: 25%; }
.sc-modal { width: min(640px, 92vw); }
.sc-list { max-height: 60vh; overflow: auto; display: grid; gap: 2px; }
.sc-g { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.sc-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sc-keys { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-keys kbd { font: 600 12px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 5px; background: var(--bg2); border: 1px solid var(--line2); }
@media (max-width: 599px) { .sc-row { grid-template-columns: minmax(0, 1fr); } }
.lib-pickbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel2); font-size: 13px; }
.lib-pickbar[hidden] { display: none; }
.lib-more { height: 1px; }
.lib-empty { grid-column: 1 / -1; padding: 12px 0; }
.lib-body .hint { margin-top: 12px; }
.lib-sounds { display: grid; }
.snd-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.snd-row .lib-add { position: static; }
.snd-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; font-size: 12px; }
.snd-meta { display: flex; flex-direction: column; min-width: 0; }
.snd-meta b { font-size: 13px; font-weight: 600; }
.snd-meta small { color: var(--muted); font-size: 11px; }
.snd-credit { opacity: .8; }
.lib-bigbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lib-big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lib-big:hover { border-color: rgba(212,255,23,.5); }
.lib-big b { font-size: 20px; color: var(--gold); }
.lib-big small { color: var(--muted); font-size: 11.5px; }
.lib-layers { display: grid; }
.lib-layer { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.lib-layer small { color: var(--muted); }
.lib-trans { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.lib-tr { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 44px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 11.5px; text-align: center; cursor: pointer; }
.lib-tr:hover { border-color: rgba(212,255,23,.5); }
.lib-tr.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.3); }
.tr-demo { position: relative; height: 34px; border-radius: 6px; overflow: hidden; background: #16181b; }
.tr-demo i { position: absolute; inset: 0; }
.tr-demo i:first-child { background: linear-gradient(135deg, #2a3a10, #55761a); }
.tr-demo i:last-child { background: linear-gradient(135deg, #172a44, #2f5d93); clip-path: inset(0 0 0 52%); }
.tr-cut .tr-demo i:last-child, .tr-demo.tr-cut i:last-child { clip-path: inset(0 0 0 50%); }
.tr-demo.tr-fade i:last-child, .tr-demo.tr-dissolve i:last-child { clip-path: none; opacity: .5; }
.tr-demo.tr-fadeblack i:last-child { clip-path: none; background: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent); }
.tr-demo.tr-fadewhite i:last-child { clip-path: none; background: linear-gradient(90deg, transparent, #fff 45%, #fff 55%, transparent); }
.tr-demo.tr-circleopen i:last-child { clip-path: circle(32% at 50% 50%); }
.tr-demo.tr-zoomin i:last-child { clip-path: inset(22% 26%); }
.tr-demo.tr-hblur i:last-child { clip-path: none; opacity: .55; filter: blur(3px); }
.tr-demo.tr-wipeleft i:last-child { clip-path: inset(0 52% 0 0); }
.tr-demo.tr-slideleft i:last-child, .tr-demo.tr-slideright i:last-child { clip-path: inset(0 0 0 52%); box-shadow: inset 3px 0 0 #0a0b0d; }
.stock-prev { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; object-fit: contain; }

/* properties */
.props-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; min-width: 0; }
.props-title b { font-size: 15px; }
.props-tabs { display: flex; gap: 2px; margin: 0 -14px 12px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; } /* AUDIT-1: visible scrollbar — 13 tabs do not fit */
.props-tabs button { min-height: 40px; padding: 8px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.props-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.props-body .field { margin-bottom: 10px; }
.numf-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; align-items: center; }
.numf-row input[type=number] { padding: 6px 8px; }
.numf-row input[type=range] { width: 100%; accent-color: var(--gold); }
.props-info { display: grid; gap: 3px; margin: 4px 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); color: var(--muted); font-size: 12.5px; }
.props-info b { color: var(--text); }
.props-actions { margin-top: 12px; }
.props-quick { gap: 6px; margin: -4px 0 8px; }
.props-quick .on { border-color: var(--gold); color: var(--gold); }
.props-seg { display: flex; }
.props-seg button { flex: 1; }
.props-body .switch { display: inline-flex; margin: 2px 12px 10px 0; }

/* narrower than 1100 px: one column, library / properties as bottom sheets */
@media (max-width: 1099px) {
  .edx { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .edx-top { flex-wrap: wrap; position: sticky; top: 0; z-index: 6; }
  .edx-main { display: block; flex: none; }
  .edx-vsplit, .edx-hsplit { display: none; }
  .edx-center { flex: none; }
  .edx-view { flex: none; height: min(60vw, 48vh); min-height: 200px; }
  .edx-tl { flex: none; overflow: visible; padding-bottom: 24px; }
  .edx-lib, .edx-props { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: min(80vh, 680px); visibility: visible !important; border: 0; border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; box-shadow: 0 -16px 40px rgba(0,0,0,.55); transform: translateY(105%); transition: transform .22s ease; padding-top: 48px; }
  .edx-lib:not(.sheet-open), .edx-props:not(.sheet-open) { pointer-events: none; }
  .edx-lib.sheet-open, .edx-props.sheet-open { transform: none; }
  .sheet-close { display: grid; place-items: center; position: absolute; top: 4px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--panel2); color: var(--text); font-size: 16px; cursor: pointer; }
  .edx-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.55); }
  .edx-lib-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .lib-rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 8px 6px; }
  .lib-tab { flex: none; min-width: 66px; min-height: 52px; }
  .edx-render { position: static; width: auto; margin: 8px 12px 0; }
  @media (prefers-reduced-motion: reduce) { .edx-lib, .edx-props { transition: none; } }
}
@media (max-width: 599px) {
  .edx-top { gap: 6px; padding: 6px 8px; }
  .edx-title { order: 2; width: 100%; flex: none; }
  .edx-name { max-width: none; flex: 1; }
  .edx-tools { order: 3; width: 100%; flex-wrap: wrap; }
  .edx-tools .edx-aspect { min-width: 96px; }
  .edx-tools .edx-export { margin-left: auto; }
  .edx-pbtn .lbl { display: none; }
  .edx button, .edx .btn, .edx select, .edx input[type=text], .edx input[type=search], .edx input[type=number] { min-height: 44px; }
  .edx .btn, .edx-tools select { min-width: 44px; }
  .edx-zoom button { min-width: 44px; }
  .lib-add { width: 44px; height: 44px; right: 4px; bottom: 4px; }
  .lib-name { padding-right: 52px; min-height: 52px; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .snd-row { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .snd-play { width: 44px; height: 44px; }
  .lib-chk { width: 24px; height: 24px; }
  .edx-tl .tl-tools button { min-height: 44px; min-width: 44px; }
  .numf-row input[type=range] { min-height: 44px; }
  .props-tabs button { min-width: 44px; min-height: 44px; }
}
.ses-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ses-item .grow { min-width: 0; }
.ov-text.boxed { isolation: isolate; }
.ov-bg { position: absolute; left: 0; right: 0; top: 0; z-index: -1; background: rgba(0,0,0,.45); box-shadow: 0 0 0 var(--pad, 14px) rgba(0,0,0,.45); pointer-events: none; }
.ov-text.boxed.sel { outline-offset: calc(var(--pad, 0px) + 4px); }
.card .sub .credit { margin-top: 2px; font-size: 11px; color: var(--muted); }
.card .sub .credit a { color: inherit; }
/* KURGU-FIX-1b: the standby video holds the next clip at its in-point, decoded but invisible, under the playing one */
.edx .stage video.standby { opacity: 0; pointer-events: none; }

/* KURGU-FIX-1c — export settings dialog (public/js/export-dialog.js); full-screen page on phones */
.modal-card.exd-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.exd { display: grid; gap: 10px; }
.exd-head h3 { margin: 0; }
.exd-title { font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 6px; }
.exd-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.exd-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.exd-preset:hover { border-color: rgba(212,255,23,.5); }
.exd-preset.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.35); }
.exd-preset small { color: var(--muted); font-size: 12px; }
.exd-pnote:empty { display: none; }
.exd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.exd-fields .row input[type=number] { width: 90px; }
.exd-est { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.exd-warn { display: grid; gap: 6px; }
.exd-warn:empty { display: none; }
.exd-actions { justify-content: flex-end; gap: 8px; }
@media (max-width: 599px) {
  .modal-card.exd-card { position: fixed; inset: 0; width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
  .exd-fields { grid-template-columns: minmax(0, 1fr); }
  .exd button, .exd select, .exd input { min-height: 44px; }
  .exd .btn { min-width: 44px; }
  .exd-actions { position: sticky; bottom: 0; background: var(--panel); padding-top: 8px; }
}

/* KURGU-3a — browser-drawn text layers (canvas = the export PNG, scaled) and the wrap-width handle */
.ov-png { position: absolute; display: block; transform-origin: 50% 50%; pointer-events: none; }
.ov-png.sel { outline: 2px dashed var(--gold); outline-offset: 2px; }
.gz-wrap { position: absolute; right: -9px; top: 50%; width: 10px; height: 34px; margin-top: -17px; border-radius: 5px; background: #fff; border: 2px solid var(--gold); cursor: ew-resize; touch-action: none; }
.gz-wrap[hidden] { display: none; }
@media (pointer: coarse) { .gz-wrap { width: 18px; height: 44px; margin-top: -22px; right: -13px; } }
/* KURGU-3a — font picker (each name in its own font) and the ready-made text style grid */
.font-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding-right: 2px; }
.font-group { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: 4px; }
.font-chip { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 16px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-chip:hover { border-color: rgba(212,255,23,.5); }
.font-chip.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.3); }
.props-body .btn.on { border-color: var(--gold); color: var(--gold); }
.tstyle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tstyle { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #2b3446, #11151c); cursor: pointer; min-width: 0; }
.tstyle:hover, .tstyle:focus-visible { border-color: rgba(212,255,23,.55); outline: none; }
.tstyle-prev { width: 100%; aspect-ratio: 150 / 84; display: block; }
.tstyle-name { font-size: 11.5px; color: var(--text); }
.tstyle-apply { position: absolute; left: 6px; right: 6px; top: 6px; min-height: 30px; border: 0; border-radius: 8px; background: rgba(212,255,23,.92); color: #0a0b0d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .12s; }
.tstyle:hover .tstyle-apply, .tstyle:focus-within .tstyle-apply { opacity: 1; }
.tstyle-apply[hidden] { display: none; }
.tstyle-del { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: var(--panel2); color: var(--text); cursor: pointer; }
@media (pointer: coarse) { .tstyle-apply { opacity: 1; min-height: 44px; } .tstyle-del { width: 44px; height: 44px; } }
@media (max-width: 599px) { .font-chip { min-height: 44px; } .tstyle-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* KURGU-3b: looks — canvas twin of each media element, E track, filter/effect grids, applied list */
.edx .stage canvas.look-cv { position: absolute; transform-origin: 50% 50%; pointer-events: none; display: block; }
.edx .stage canvas.look-cv[hidden] { display: none; }
.edx .stage canvas.look-cv.standby { opacity: 0; }
.edx .stage .look-src { visibility: hidden; }
.stage-badge.approx { left: auto; right: 8px; background: #ffb020; text-transform: none; }
.tlx { --eh: 30px; }
.head-e { height: var(--eh); } .lane-e { height: var(--eh); }
.blk.e-look { background: #251a33; border-color: rgba(186,140,255,.5); color: #ece0ff; }
.blk.e-look.sel { border-color: #c8a2ff; box-shadow: 0 0 0 2px rgba(186,140,255,.45); }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0; }
.look-item { display: flex; flex-direction: column; gap: 4px; padding: 4px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.look-item:hover { border-color: rgba(212,255,23,.45); }
.look-item.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.look-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #2b3440, #151a20); font-size: 12px; color: var(--muted); }
.look-thumb-cv { width: 100%; height: 100%; display: block; }
.look-name { font-size: 11.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-fx-head { margin-top: 8px; font-size: 13px; }
.look-list { display: flex; flex-direction: column; }
.look-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.look-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.look-row.off .look-row-name { opacity: .5; text-decoration: line-through; }
.look-btn { min-width: 36px; }
@media (pointer: coarse), (max-width: 599px) { .look-btn { min-width: 44px; min-height: 44px; } }

/* KURGU-3c: transitions — frame-sized video slots (the incoming one on top during a transition), join markers, library */
.edx .stage > .slots { position: absolute; inset: 0; z-index: 0; }
.edx .stage .slot { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.edx .stage .slot.on { opacity: 1; }
.edx .stage .slot-under { position: absolute; inset: 0; z-index: 0; }
.edx .stage > img, .edx .stage > canvas.look-cv { z-index: 1; }
.edx .stage > .stage-layer, .edx .stage > .stage-badge, .edx .stage > .stage-empty, .edx .stage > .stage-gap { z-index: 1000; }
.edx .stage > .stage-badge.blend { top: 34px; }
.tl-join { position: absolute; top: 50%; z-index: 4; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.tl-join i { width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid var(--gold); background: #0b0c0e; border-radius: 2px; box-shadow: 0 0 0 2px rgba(0,0,0,.55); }
.tl-join.on i { background: var(--gold); }
.tl-join:hover i, .tl-join.drop i { box-shadow: 0 0 0 3px rgba(212,255,23,.45); }
@media (pointer: coarse), (max-width: 599px) { .tl-join { width: 44px; height: 44px; margin: -22px 0 0 -22px; } }
.lib-trans-group { margin: 10px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tr-cv { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 6px; }
.tr-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tr-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--panel2); color: var(--muted); }

/* KURGU-UI-1: denser editor — one-row sliders, collapsible sections, library grids by panel width (container queries) */
.edx-props .numf { display: grid; grid-template-columns: minmax(64px, 38%) minmax(0, 1fr) 62px; align-items: center; column-gap: 8px; min-height: 40px; margin: 0 0 2px; }
.edx-props .numf > .l { margin: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-props .numf > .l .muted { font-size: 11px; }
.edx-props .numf .numf-row { display: contents; }
.edx-props .numf input[type=range] { height: 40px; margin: 0; }
.edx-props .numf input[type=number] { height: 34px; padding: 4px 6px; }
.edx-props details.pfold { border-bottom: 1px solid var(--line); padding: 0 0 6px; margin-bottom: 4px; }
.edx-props details.pfold:last-child { border-bottom: 0; }
.edx-props details.pfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 36px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); user-select: none; }
.edx-props details.pfold > summary::-webkit-details-marker { display: none; }
.edx-props details.pfold > summary::before { content: '▸'; display: inline-block; transition: transform .15s; }
.edx-props details.pfold[open] > summary::before { transform: rotate(90deg); }
.edx-props details.pfold > summary:hover { color: var(--text); }
@media (pointer: coarse), (max-width: 599px) {
  .edx-props .numf { min-height: 44px; }
  .edx-props .numf input[type=range], .edx-props .numf input[type=number] { min-height: 44px; height: 44px; }
  .edx-props details.pfold > summary { min-height: 44px; }
}
.edx .lib-body { container: lib / inline-size; }
.edx .lib-body .tstyle-grid, .edx .lib-body .look-grid, .edx .lib-body .lib-trans, .edx .lib-body .lib-grid { grid-template-columns: minmax(0, 1fr); }
@container lib (min-width: 144px) {
  .tstyle-grid, .look-grid, .lib-trans, .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container lib (min-width: 184px) {
  .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.edx .tstyle { padding: 5px; gap: 3px; }
.edx .tstyle-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edx .stage canvas.bg-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.edx .stage canvas.bg-cv[hidden] { display: none; }
.edx .stage > canvas.img-bg { z-index: 1; }
.edx-suggest { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: min(720px, calc(100% - 16px)); padding: 8px 10px; border: 1px solid rgba(212,255,23,.45); border-radius: 12px; background: rgba(12,14,16,.94); box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 13px; }
.edx-suggest[hidden] { display: none; }
.edx-suggest-t { flex: 1 1 240px; min-width: 0; }
.edx-suggest-a { display: flex; flex-wrap: wrap; gap: 6px; }
@media (pointer: coarse), (max-width: 599px) { .edx-suggest .btn { min-height: 44px; } }

/* LOGIN-1: Google button, divider, password hint, unverified banner, re-login overlay */
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; text-decoration: none; }
.google-btn svg { flex: none; }
/* AUTH-UX-1: show / hide password button inside the field (44 px target; text never runs under the icon) */
.pw-field { position: relative; display: block; width: 100%; min-width: 0; }
.pw-field > input { width: 100%; padding-right: 48px; }
.pw-field > input::-ms-reveal, .pw-field > input::-ms-clear { display: none; }
.pw-toggle { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--gold2); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold2); outline-offset: -4px; }
.pw-toggle svg { display: block; pointer-events: none; }
/* GOOGLE-GIS-1: Google's rendered button (its own iframe and styling — never restyled), fallback link, terms line */
.gis-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.gis-box { display: flex; justify-content: center; min-height: 44px; color-scheme: normal; }
.gis-alt { align-self: center; font-size: 12px; color: var(--muted); text-align: center; }
.gis-wrap .err, .gis-wrap .note { text-align: left; }
.gis-terms { margin-top: 10px; text-align: center; }
.auth-hint { margin: -4px 0 2px; font-size: 12px; }
.auth-extra { display: flex; flex-direction: column; gap: 8px; }
.auth-extra .note, .auth-confirm .note { text-align: left; }
.auth-confirm { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.auth-confirm p { margin: 0; }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(255,176,32,.45); border-radius: 12px; background: rgba(255,176,32,.08); font-size: 13px; }
.verify-bar .btn { width: auto; }
.storage-bar.full { border-color: rgba(255,90,90,.55); background: rgba(255,90,90,.08); } /* DEPO-1.4 */
.reauth { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.72); backdrop-filter: blur(3px); }
.reauth-card { max-width: 380px; text-align: left; }
.reauth-card form { gap: 10px; }
@media (max-width: 599px) {
  .auth { padding: 16px; align-items: flex-start; }
  .auth-card { padding: 24px 18px; }
  .auth-card input, .auth-card .btn, .auth-tabs button, .reauth-card input, .reauth-card .btn { min-height: 44px; }
  .auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .verify-bar .btn { min-height: 44px; }
}

/* YONETIM-USERS-1: user list tools, paging, jeton preview */
.admin-user-tools { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.admin-user-search { flex: 1 1 220px; max-width: 320px; min-width: 0; }
.admin-user-count { margin-left: auto; }
.admin-user-more { justify-content: center; margin-top: 10px; }
.jeton-preview { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.jeton-preview.neg { border-color: rgba(255,90,90,.55); background: rgba(255,90,90,.08); }
.jeton-warn { color: #ff7a7a; font-weight: 600; margin-bottom: 4px; }
.admin-users td.actions .btn { white-space: normal; }
@media (max-width: 599px), (pointer: coarse) {
  .admin-user-tools .btn, .admin-user-filter button, .admin-user-search, .admin-user-more .btn, .admin-users td.actions .btn { min-height: 44px; }
  .admin-user-search { max-width: none; flex-basis: 100%; }
  .admin-user-count { margin-left: 0; flex-basis: 100%; }
  .admin-users td.actions { display: flex; flex-wrap: wrap; gap: 6px; }
}

/* PIYASA-3 masks / key / blend panel + on-stage mask tool */
.mask-ui { position: absolute; z-index: 6; transform-origin: 50% 50%; touch-action: none; }
.mask-ui svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mask-ui .mask-path { fill: rgba(212,255,23,.08); stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mask-ui .mask-box { position: absolute; border: 1px dashed rgba(212,255,23,.7); cursor: move; }
.mask-ui .mask-h { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--gold); border: 1px solid #0a0b0d; border-radius: 3px; cursor: nwse-resize; }
.mask-ui .mask-rot { position: absolute; left: 50%; top: -28px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold); border: 1px solid #0a0b0d; cursor: grab; }
.mask-ui .mask-pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); cursor: move; }
.mask-ui.drawing { cursor: crosshair; }
.mask-bar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(12,14,16,.92); border: 1px solid var(--line2); border-radius: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 16px); }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.shape-grid .btn.on { border-color: var(--gold); color: var(--gold); }
.key-swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line2); flex: none; }
.ai-status { font-size: 12.5px; color: var(--muted); }
.stage-pick { cursor: crosshair !important; }

/* PIYASA-4 captions: stage canvas, C lane, suggested cuts, transcript */
.edx .stage > canvas.cap-cv { position: absolute; z-index: 1000; pointer-events: none; display: block; }
.edx .stage > canvas.cap-cv[hidden] { display: none; }
.head-c, .lane-c { height: var(--th); }
.c-cap { background: #12342c; border-color: rgba(92,242,165,.55); color: #d9fff0; }
.tl-cut { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,77,109,.38) 0 6px, rgba(255,77,109,.18) 6px 12px); border-left: 1px solid #ff4d6d; border-right: 1px solid #ff4d6d; pointer-events: none; z-index: 3; }
.tl-cut.filler { background: repeating-linear-gradient(135deg, rgba(255,184,77,.42) 0 6px, rgba(255,184,77,.2) 6px 12px); border-color: #ffb84d; }
.tr-body { display: grid; gap: 10px; }
.tr-gen .row { gap: 8px; }
.tr-words { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; line-height: 1.7; font-size: 14px; }
.tr-seg { padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.03); }
.tr-time { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; margin-right: 6px; cursor: pointer; padding: 0; }
.tr-w { cursor: pointer; border-radius: 4px; padding: 0 1px; }
.tr-w:hover { background: rgba(255,255,255,.08); }
.tr-w.now { background: rgba(212,255,23,.22); }
.tr-w.sel { background: rgba(255,77,109,.35); }
.tr-w.emph { color: var(--gold); font-weight: 700; }
.row.wrap { flex-wrap: wrap; }

/* PIYASA-5 audio: beat ticks, voice-over blocks, recording badge */
.tl-beat { position: absolute; bottom: 0; width: 1px; height: 9px; background: #ffb84d; pointer-events: none; }
.m-audio.voice { background: #33224a; border-color: rgba(190,130,255,.6); }
.edx .stage > .stage-badge.rec { left: auto; right: 8px; background: #ff4d6d; color: #fff; animation: recblink 1s steps(2) infinite; }
@keyframes recblink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .edx .stage > .stage-badge.rec { animation: none; } }

/* PIYASA-6 elements: library grid, emoji picker (Noto Emoji, OFL) */
@font-face { font-family: 'MbsEmoji'; src: url('/fonts/emoji/NotoEmoji-VF.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
.oge-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.oge-tile { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border-radius: 10px; border: 1px solid var(--line2); background: repeating-conic-gradient(#1a1c20 0 25%, #14161a 0 50%) 0 0 / 16px 16px; cursor: pointer; }
.oge-tile:hover { border-color: var(--gold); }
.oge-cv { max-width: 100%; max-height: 100%; }
.oge-emoji { font-family: 'MbsEmoji', sans-serif; font-size: 28px; color: #ffd400; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line2); background: #14161a; cursor: pointer; }
.oge-emoji:hover { border-color: var(--gold); }
/* PIYASA-6 composite transitions: the canvas over both slots */
.edx .stage .tr-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.oge-tile .oge-label { display: block; font-size: 11px; margin-top: 4px; text-align: center; color: var(--muted, #aab); }

/* PIYASA-7 edit templates: tabs, gallery, slot dialog, media chooser, quick edit */
.tpl-tabs { margin: 0 0 14px; display: inline-flex; }
.tpl-tabs a { text-decoration: none; }
.etpl-tools { margin-bottom: 10px; gap: 8px; }
.etpl-tools input[type=search] { max-width: 280px; }
.etpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.etpl-card { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--bg2, #121418); }
.etpl-cover { position: relative; background: #0b0c0f; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.etpl-cover video, .etpl-cover .etpl-ph { max-width: 100%; max-height: 100%; height: 100%; object-fit: contain; }
.etpl-ph { display: grid; place-items: center; width: 100%; font: 700 40px/1 var(--font-display, sans-serif); color: rgba(255,255,255,.55); background: linear-gradient(135deg, #2b2f3a, #14161a); }
.etpl-ph.a9x16 { aspect-ratio: 9 / 16; width: auto; }
.etpl-ph.a1x1 { aspect-ratio: 1; width: auto; }
.etpl-body { padding: 10px 12px 4px; display: grid; gap: 2px; min-width: 0; }
.etpl-actions { padding: 6px 12px 12px; gap: 6px; flex-wrap: wrap; }
.tpl-use-wrap { width: min(720px, 92vw); max-height: 86vh; overflow: auto; display: grid; gap: 8px; }
.tpl-use { display: grid; gap: 8px; }
.tpl-sec { font-weight: 600; margin-top: 6px; color: var(--muted, #aab); font-size: 13px; }
.tpl-slot { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line2); border-radius: 10px; min-width: 0; }
.tpl-slot.filled { border-color: var(--gold); }
.tpl-slot-thumb { width: 64px; height: 40px; border-radius: 6px; overflow: hidden; background: #0b0c0f; display: grid; place-items: center; flex: none; }
.tpl-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tpl-use-actions { margin-top: 6px; gap: 8px; }
.tpl-use-video { width: 100%; max-height: 50vh; background: #000; border-radius: 10px; }
.tpl-pick-head { gap: 8px; margin-bottom: 6px; }
.tpl-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); gap: 8px; margin-top: 8px; max-height: 52vh; overflow: auto; }
.tpl-pick { position: relative; display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 8px; background: #101216; cursor: pointer; text-align: left; min-width: 0; }
.tpl-pick.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tpl-pick img, .tpl-pick .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; display: grid; place-items: center; background: #0b0c0f; font-size: 22px; }
.tpl-pick-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-pick-n { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #111; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; }
.tpl-pick-dur { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.tpl-save { width: min(460px, 92vw); display: grid; gap: 8px; }
.qe-form { display: grid; gap: 10px; }

/* PIYASA-8 smart tools: short-clip candidates, text helpers */
.sc-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line2); border-radius: 10px; min-width: 0; }
.sc-card.on { border-color: var(--gold); }
.sc-card .sc-video, .modal-card .sc-card video.sc-video { width: 160px; max-width: 42%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.sc-card > .grow { min-width: 0; }
.sc-card input[type=text] { width: 100%; margin-top: 4px; }
.qe-confirm { gap: 8px; }
.ait-res { display: grid; gap: 6px; margin-top: 8px; }
.ait-item { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { .sc-card { flex-direction: column; } .sc-card .sc-video, .modal-card .sc-card video.sc-video { width: 100%; max-width: none; } }

/* PIYASA-9 export dialog groups / sections, share panel */
.exd-pgroup { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--muted, #9aa1ab); margin-top: 6px; }
.exd-chapters { white-space: pre-wrap; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; margin: 0; max-height: 180px; overflow: auto; }
.exd-notify, .exd-multi, .exd-gif { gap: 10px; display: grid; }
.sh-links { display: grid; gap: 6px; }
.sh-link { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line2); border-radius: 8px; min-width: 0; }
.sh-link.off { opacity: .55; }
.sh-link a { display: block; max-width: 100%; }
.mf-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
/* PIYASA-10 colour controls (Kurgu + photo editor) */
.lc-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 13px; }
.lc-val { text-align: right; color: var(--muted, #9aa1ab); font-variant-numeric: tabular-nums; }
.lc-band input[type=range] { accent-color: hsl(var(--lc-hue, 0) 80% 55%); }
.lc-curve { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 8px; touch-action: none; cursor: crosshair; display: block; }
.lc-curves, .lc-hsl, .lc-wheels, .lc-bw, .lc-lut { display: grid; gap: 8px; }
.lc-wheel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.lc-wheel-box { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.lc-wheel { width: 100%; max-width: 120px; aspect-ratio: 1; touch-action: none; cursor: crosshair; }
.lc-wheel-box .lc-row { grid-template-columns: 1fr; }
.lc-wheel-box .lc-row .lc-l, .lc-wheel-box .lc-row .lc-val { display: none; }
.lc-tabs button { min-width: 36px; }

/* ==========================================================================
   PIYASA-10 — photo editor (#/foto): full-screen like Kurgu (html.ed-mode). Grid: top bar · tool rail · stage · panel.
   < 900 px: stage on top, rail as a horizontal strip, panel as a bottom sheet.
   ========================================================================== */
.fx { position: fixed; inset: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr) 320px; grid-template-rows: 52px minmax(0, 1fr); grid-template-areas: "top top top" "rail stage panel"; background: var(--bg); z-index: 5; }
.fx-top { grid-area: top; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.fx-top .grow { flex: 1; }
.fx-name { max-width: 260px; min-width: 80px; background: transparent; border: 1px solid transparent; font-weight: 700; color: var(--text); }
.fx-name:hover, .fx-name:focus { border-color: var(--line); }
.fx-zoom { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.fx-rail { grid-area: rail; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg2); }
.fx-tool { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 11px; cursor: pointer; min-height: 44px; }
.fx-tool:hover { color: var(--text); background: var(--panel); }
.fx-tool.on { color: var(--gold-ink); background: var(--gold); }
.fx-ico { font-size: 17px; line-height: 1; }
.fx-stage { grid-area: stage; position: relative; overflow: hidden; background: repeating-conic-gradient(#15171b 0 25%, #1b1e22 0 50%) 0 0 / 20px 20px; touch-action: none; outline: none; }
.fx-cv { position: absolute; image-rendering: auto; box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.fx-ov { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.fx-panel { grid-area: panel; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); min-height: 0; }
.fx-histwrap { padding: 8px 10px 6px; border-bottom: 1px solid var(--line); }
.fx-hist { width: 100%; height: 64px; background: #0c0d10; border-radius: 6px; display: block; }
.fx-hist-info { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fx-hist-info .warn { color: var(--warn); }
.fx-body { flex: 1; overflow-y: auto; padding: 6px 12px 24px; }
.fx-body details.pfold { border-bottom: 1px solid var(--line); padding: 0 0 6px; margin-bottom: 4px; }
.fx-body details.pfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 36px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); user-select: none; }
.fx-body details.pfold > summary::-webkit-details-marker { display: none; }
.fx-body details.pfold > summary::before { content: "\25B8"; display: inline-block; transition: transform .15s; }
.fx-body details.pfold[open] > summary::before { transform: rotate(90deg); }
.pfold-body { display: flex; flex-direction: column; gap: 6px; }
.fx-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.fx-row.fx-color { grid-template-columns: 96px 44px; }
.fx-row select, .fx-row input[type=color] { min-width: 0; }
.fx-row input[type=range] { width: 100%; accent-color: var(--gold); }
.fx-l { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-num { width: 54px; padding: 3px 4px; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.fx-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chips .chip { cursor: pointer; font-size: 12.5px; color: var(--text); min-height: 30px; }
.fx-chips .chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.fx-grid-wide { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.fx-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); font-size: 11.5px; cursor: pointer; min-width: 0; }
.fx-tile canvas, .fx-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.fx-tile.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,255,23,.25); }
.fx-tile-ph { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--panel3); border-radius: 6px; font-size: 20px; }
.fx-emoji { font-size: 26px; font-family: MbsEmoji, sans-serif; aspect-ratio: 1; justify-content: center; }
.fx-elgrid { max-height: 70vh; overflow-y: auto; }
.fx-elgrid h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx-list { display: flex; flex-direction: column; gap: 2px; }
.fx-li { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; min-height: 34px; }
.fx-li:hover { background: var(--panel2); }
.fx-li.on { background: var(--panel3); outline: 1px solid var(--gold3); }
.fx-hint { margin-top: 10px; }
.fx-keys { line-height: 1.7; }
.fx-after { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fx-export { min-width: min(460px, 92vw); }
.fx-picker { min-width: min(720px, 94vw); }
.fx-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fx-design { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.fx-design:hover { border-color: var(--gold3); }
.fx-mini { position: relative; width: 100%; max-height: 180px; border-radius: 6px; overflow: hidden; }
.fx-mini span { position: absolute; box-sizing: border-box; border: 2px solid rgba(255,255,255,.9); background: linear-gradient(135deg, #6a7a99, #3d4a63); }
.fx-mini i { position: absolute; transform: translate(-50%, -50%); font-style: normal; font-weight: 800; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.fx-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fx-rcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); text-decoration: none; min-width: 0; }
.fx-rcard img, .fx-rcard .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--panel2); display: grid; place-items: center; font-size: 26px; }
.fx-rcard .btn { position: absolute; top: 12px; right: 12px; }
@media (max-width: 899px) {
  .fx { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr) 58px minmax(0, 42vh); grid-template-areas: "top" "stage" "rail" "panel"; }
  .fx-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); padding: 4px; }
  .fx-tool { min-width: 58px; }
  .fx-panel { border-left: 0; border-top: 1px solid var(--line); }
  .fx-histwrap { display: none; }
  .fx-name { max-width: 120px; }
  .fx-top { gap: 2px; padding: 0 4px; }
  .fx-top .fx-zoom, .fx-top .fx-save { display: none; }
  .fx-bl { display: none; }
  .fx-rail { scrollbar-width: none; }
}
.fx-body input.fx-num { padding: 3px 4px; min-height: 0; height: 28px; }
/* PIYASA-11: site footer (company details + legal links) and plan locks in the export dialog */
.site-foot { margin-top: 40px; padding: 18px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-foot-links a { color: var(--muted); }
.exd-preset.locked { opacity: .55; }
.exd-lock { display: inline-block; margin-top: 4px; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(212,255,23,.45); color: var(--gold2); text-decoration: none; }
.exd-plan { margin-top: 6px; }
.progress.warn i { background: var(--warn); }
/* PIYASA-12: phone / tablet editor toolbar (< 1024 px) */
.edx-mbar { display: none; }
@media (max-width: 1023px) {
  .edx-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line2); }
  .edx-mbtn { flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
  .edx-mbtn small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .edx-mbtn:active { background: var(--panel2); }
  .edx { padding-bottom: 64px; }
}
/* PIYASA-12 first-use tour */
.tour { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62); outline: 2px solid var(--gold); transition: all .2s ease; }
.tour-pop { position: fixed; pointer-events: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; }
.tour-pop p { margin: 0; color: var(--muted); font-size: 14px; }
.welcome-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid rgba(212,255,23,.35); border-radius: var(--radius); background: linear-gradient(120deg, rgba(212,255,23,.10), rgba(255,92,214,.06)); margin-bottom: 18px; }
.welcome-card .grow { flex: 1 1 260px; }
.welcome-card .pulse { box-shadow: 0 0 0 0 rgba(212,255,23,.6); animation: wpulse 1.8s infinite; }
@keyframes wpulse { 70% { box-shadow: 0 0 0 10px rgba(212,255,23,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,23,0); } }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } .welcome-card .pulse { animation: none; } }
/* PIYASA-12: error screen + offline banner + help page */
.err-screen { max-width: 560px; margin: 40px auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.err-screen h2 { margin: 0 0 8px; }
.err-screen .row { margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.net-bar { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 300; background: var(--warn); color: #1a1400; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.help-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; }
.help-sec { margin: 26px 0; }
.help-faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 14px; margin-bottom: 8px; }
.help-faq summary { cursor: pointer; padding: 10px 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.help-faq p { margin: 0 0 12px; color: var(--muted); }
.help-howto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-card ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.help-keys { margin: 10px 0; }
.help-keys td.keys, .help-sec td.keys { white-space: nowrap; width: 1%; }
/* AUDIT-1: key groups wrap between keys (never inside one) on phones and tablets — the row overflowed at 390 and 768 */
@media (max-width: 1023px) { .help-keys td, .help-sec td { white-space: normal; } .help-keys td.keys, .help-sec td.keys { width: auto; } .help-keys kbd, .help-sec kbd { white-space: nowrap; } }
kbd { display: inline-block; padding: 1px 7px; margin: 0 4px 2px 0; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel2); font: 600 12px/1.6 ui-monospace, monospace; }
.help-notes h3 { margin: 12px 0 6px; } .help-notes h4 { margin: 10px 0 4px; color: var(--muted); }
/* PIYASA-12: one-finger pan stays native, two-finger pinch zooms the timeline (timeline.js) */
.tlx-scroll { touch-action: pan-x pan-y; }

/* AUDIT-1: keyboard skip link (first Tab stop) — jumps past the top bar and sidebar to the page content */
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #0a0b0d; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ORTAK-1: partner page */
.ortak-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; }
.ortak-link code { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); word-break: break-all; }
.ortak-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ortak-stat { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.ortak-stat b { font-size: 20px; }
.ortak-disc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ortak-disc:first-of-type { border-top: 0; }

/* AUDIT-3: phone / tablet editor — tool rows stay one line and scroll sideways instead of wrapping into tall blocks
   (at 390 px the sticky header was 211 px, the transport row 163 px with zoom buttons off screen, timeline tools 144 px,
   so the tracks started below the fold; at 768 px "Dışa aktar" sat past the right edge). */
@media (max-width: 1099px) {
  .edx-tools { flex: 1 1 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
  .edx-tools .edx-export { position: sticky; right: 0; margin-left: auto; box-shadow: -10px 0 12px var(--bg2); }
  .edx-transport, .edx-tl .tl-tools { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
  .edx-transport > *, .edx-tl .tl-tools > * { flex: none; }
  .edx-transport .grow, .edx-tl .tl-tools .grow { flex: 1 0 0; min-width: 4px; }
  .tl-clock { white-space: nowrap; }
  .edx-zoom { flex-wrap: nowrap; }
  .edx-zoom button { white-space: nowrap; }
}
@media (max-width: 599px) {
  .edx-title { order: 1; flex: 1 1 0; width: auto; min-width: 0; }
  .edx-tools { order: 2; flex-wrap: nowrap; }
  .edx-tl .tl-tools { margin-bottom: 4px; }
  .edx-transport { padding: 4px 8px; }
}
/* AUDIT-3: touch on the timeline — a swipe over blocks or lanes scrolls (horizontally and the page vertically); a block body moves
   only after a hold (timeline.js TOUCH_HOLD_MS, .lift), the edges trim at once and the selected block's edges are finger-sized */
.lane, .blk { touch-action: pan-x pan-y; }
.blk-l, .blk-r { touch-action: none; }
.blk.lift { z-index: 6; box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(0,0,0,.6); transform: translateY(-2px); }
@media (pointer: coarse) {
  .blk.sel .blk-l, .blk.sel .blk-r { width: clamp(8px, 30%, 22px); }
  .blk.sel .blk-l::after, .blk.sel .blk-r::after { content: ''; position: absolute; top: 50%; left: 50%; width: 3px; height: 40%; max-height: 22px; transform: translate(-50%, -50%); border-radius: 2px; background: #0a0b0d; opacity: .7; }
  .tlx-ph-knob { width: 26px; height: 22px; left: -12px; }
}
/* AUDIT-3: photo editor header on phones — the name field (min 80 px) pushed "Dışa aktar" 3 px (390) / 33 px (360) past the edge */
@media (max-width: 899px) {
  .fx-name { flex: 1 1 0; width: 0; min-width: 0; }
  .fx-top > * { flex-shrink: 0; }
  .fx-top > .fx-name { flex-shrink: 1; }
  .fx-top > .grow { flex: 0 0 0; }
}
/* AUDIT-3: two-column library cards at 360 px are ~133 px wide; "🎨 Fotoğraf editörü" (151 px) was cut by the card */
@media (max-width: 599px) { .card .actions > .btn { max-width: 100%; min-width: 0; white-space: normal; text-align: center; } }
/* AJAN-0: named references on the Video form — number chip (inserts @referansN), role menu, optional name */
.thumb .ref-chip { display: block; width: 100%; min-height: 32px; padding: 5px 8px; border: 0; border-top: 1px solid var(--line); background: rgba(212,255,23,.10); color: var(--gold); font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: copy; }
.thumb .ref-chip::after { content: ' · @ ekle'; font-weight: 500; color: var(--muted); }
.thumb .ref-chip:hover { background: rgba(212,255,23,.18); }
.thumb .ref-ad { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 8px; font-size: 12px; background: transparent; }
.card .sub .err-details { margin-top: 6px; font-size: 12px; color: var(--muted); }
.card .sub .err-details code { display: block; white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
@media (max-width: 599px), (pointer: coarse) { .thumb .ref-chip, .thumb .ref-ad, .thumb select { min-height: 44px; } .err-details .btn { min-height: 44px; } }
/* AJAN-0.2: "@" reference picker (ref-mention.js) + references that are not sent while a frame image is set */
.ref-pop { position: fixed; z-index: 1500; max-height: min(280px, 50vh); overflow-y: auto; padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.ref-pop[hidden] { display: none; }
.ref-pop-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ref-pop-row img, .ref-pop-ph { flex: none; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: var(--panel2); display: grid; place-items: center; font-weight: 700; color: var(--gold); }
.ref-pop-row.on, .ref-pop-row:hover { background: rgba(212,255,23,.12); }
.ref-pop-empty { min-height: 44px; display: flex; align-items: center; padding: 4px 10px; color: var(--muted); font-size: 13.5px; }
.thumb.unsent img { opacity: .45; filter: grayscale(.6); }
.thumb.unsent .ref-chip { background: transparent; color: var(--muted); cursor: not-allowed; }
.thumb.unsent .ref-chip::after { content: ' · gönderilmez'; }
.thumb .tag.warn { color: #ffe2a8; background: rgba(120,70,0,.85); }
.ref-warn { margin-top: 10px; }

/* AJAN-1.1 — "Ajan" page as a conversation (public/js/ajan.js): flow + fixed composer on the left, model list + cost on the right;
   one column below 1024 px (model pill on top, cost line in the dock). Own design. Plan editor parts keep the aj- names. */
.nav-beta, .aj-beta { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid rgba(212,255,23,.45); border-radius: 999px; color: var(--gold); font-size: 10.5px; font-weight: 600; line-height: 16px; vertical-align: middle; letter-spacing: .03em; }
.aj-beta { font-size: 12px; line-height: 20px; }
html[data-sb-collapsed] .nav a .nav-beta { display: none; }
.aj-warn { color: #ffcf8a; }
.aj-warn a { color: inherit; text-decoration: underline; }
.aj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aj-kind { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: var(--gold2); font-size: 11.5px; }
.aj-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.aj-grid2 .field { margin: 0; min-width: 0; }
.aj-ent { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.aj-ent-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.aj-ent-row input[type=text] { flex: 1 1 auto; min-width: 0; }
.aj-ent-row select { flex: 0 1 200px; min-width: 0; }
.aj-scene { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.aj-scene-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aj-scene-head input[type=text] { flex: 1 1 200px; min-width: 0; }
.aj-scene-head input[type=number] { width: 72px; }
.aj-inline { display: inline-flex; align-items: center; gap: 4px; }
.aj-moves { display: flex; gap: 4px; margin-left: auto; }
.aj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); cursor: pointer; font-size: 13.5px; }
.aj-chip.on { border-color: var(--gold); color: var(--gold); }

.ajc-head { align-items: center; margin-bottom: 8px; }
.ajc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ajc-title h2 { margin: 0; }
.ajc-headrow { display: flex; align-items: center; gap: 10px; }
.ajc-save { min-width: 7em; }
.ajc-recent { display: grid; gap: 4px; max-width: 640px; margin: 0 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ajc-recent[hidden] { display: none; }
.ajc-recent-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 2px 6px; border-radius: 8px; }
.ajc-recent-row.on { background: rgba(212,255,23,.08); }
.ajc-recent-row a { flex: 1; min-width: 0; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.ajc-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 190px); }
.ajc-flow { display: grid; gap: 14px; align-content: start; flex: 1; padding-bottom: 16px; }
.ajc-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; }
.ajc-msg.user { justify-content: flex-end; margin-left: auto; max-width: 640px; }
.ajc-msg.user .ajc-body { background: rgba(212,255,23,.08); border-color: rgba(212,255,23,.3); border-radius: 16px 16px 4px 16px; }
.ajc-msg.wide { max-width: none; }
.ajc-avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #0a0b0d; font-size: 15px; }
.ajc-body { display: grid; gap: 8px; min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: var(--panel); }
.ajc-body p { margin: 0; }
.ajc-msg.typing .ajc-body { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ajc-konu-text { white-space: pre-wrap; }
.ajc-detail-tag { color: var(--muted); font-size: 13px; }
.ajc-plan { display: grid; gap: 8px; }
.ajc-plan-h b { font-size: 16px; }
.ajc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ajc-badge { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12.5px; }
.ajc-badge.k-character { border-color: rgba(212,255,23,.45); }
.ajc-badge.k-location { border-color: rgba(127,178,255,.5); }
.ajc-badge.k-object { border-color: rgba(255,159,67,.5); }
.ajc-strip { display: flex; gap: 6px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.ajc-strip li { flex: none; display: grid; gap: 1px; min-width: 120px; max-width: 180px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.ajc-n { font-weight: 700; color: var(--gold); font-size: 12px; }
.ajc-d { color: var(--muted); font-size: 12px; }
.ajc-st { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajc-editor { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.ajc-editor h4 { margin: 0; }
.ajc-editor textarea { resize: none; overflow: hidden; min-height: 40px; }
.ajc-ed-sec { display: grid; gap: 8px; }
.ajc-cards-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ajc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ajc-look button { min-height: 36px; padding: 6px 12px; }
.ajc-fine { color: var(--muted); font-size: 12px; opacity: .85; }
.ajc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ajc-tile { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); min-width: 0; }
.ajc-pic { position: relative; aspect-ratio: 16 / 9; min-height: 130px; border-radius: 10px; overflow: hidden; background: #0f1012; }
.ajc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ajc-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.ajc-tile-b { display: grid; gap: 2px; min-width: 0; }
.ajc-name, .ajc-desc { padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: text; min-width: 0; }
.ajc-name { font-weight: 700; }
.ajc-desc { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajc-name:disabled, .ajc-desc:disabled { cursor: default; }
.ajc-name-in, .ajc-desc-in { width: 100%; }
.ajc-desc-in { resize: none; overflow: hidden; font-size: 13px; }
.ajc-src { color: var(--muted); font-size: 11.5px; }
.ajc-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.ajc-act { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.ajc-act:hover:not(:disabled) { border-color: rgba(212,255,23,.5); }
.ajc-act:disabled { opacity: .45; cursor: not-allowed; }
.ajc-actbar { position: sticky; bottom: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(20,22,25,.96); box-shadow: 0 8px 24px rgba(0,0,0,.45); }

.ajc-dock { position: sticky; bottom: 0; z-index: 20; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 18px); }
.ajc-dock.slim { padding: 0; background: none; }
.ajc-composer { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line2); border-radius: 18px; background: var(--panel); box-shadow: 0 -6px 24px rgba(0,0,0,.35); }
.ajc-refs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ajc-refs:empty { display: none; }
.ajc-chip { position: relative; display: inline-flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel2); font-size: 13px; }
.ajc-refs.mini .ajc-chip { align-items: center; gap: 6px; padding: 2px 10px 2px 2px; font-size: 12px; }
.ajc-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.ajc-chip.up { opacity: .6; }
.ajc-chip-main { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 10px 3px 4px; border: 0; background: none; color: var(--text); font: inherit; cursor: copy; }
.ajc-chip-menu { min-width: 30px; border: 0; border-left: 1px solid var(--line2); border-radius: 0 999px 999px 0; background: none; color: var(--muted); cursor: pointer; }
.ajc-menu { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; display: grid; gap: 6px; width: 220px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.ajc-menu .l { margin: 0; font-size: 12px; }
.ajc-add, .ajc-link { min-height: 34px; padding: 3px 12px; border: 1px dashed var(--line2); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ajc-link { border: 0; padding: 0; min-height: 28px; color: var(--gold); }
.ajc-detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.ajc-detail .ajc-detail-tag { max-width: 100%; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--muted); font: inherit; font-size: 12.5px; text-align: left; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajc-detail-in { flex: 1 1 100%; resize: none; overflow: hidden; border-radius: 14px 14px 14px 4px; background: var(--panel2); font-size: 14px; }
.ajc-box textarea.ajc-input { width: 100%; min-height: 60px; max-height: 40vh; resize: none; overflow-y: auto; border: 0; background: transparent; padding: 4px 2px; font-size: 15px; box-shadow: none; }
.ajc-box textarea.ajc-input:focus { outline: none; }
.ajc-box { border-top: 1px solid var(--line); padding-top: 6px; }
.ajc-sets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ajc-set { display: inline-flex; align-items: center; gap: 4px; padding: 0 0 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); font-size: 12.5px; color: var(--muted); }
.ajc-set select, .ajc-set input { min-height: 32px; width: auto; max-width: 120px; padding: 2px 8px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; }
.ajc-set input { width: 90px; }
.ajc-send { white-space: nowrap; }

.ajc-side { position: sticky; top: 76px; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.ajc-side-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ajc-models { display: grid; gap: 6px; }
.ajc-model { display: grid; gap: 4px; padding: 6px 8px; border-radius: 10px; }
.ajc-model.on { background: rgba(212,255,23,.08); }
.ajc-model > button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.ajc-model > button:disabled { cursor: default; opacity: .8; }
.ajc-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); }
.ajc-model.on .ajc-dot { border-color: var(--gold); background: radial-gradient(var(--gold) 45%, transparent 50%); }
.ajc-jeton { justify-self: start; margin-left: 22px; padding: 3px 9px; border-radius: 999px; background: rgba(212,255,23,.12); color: var(--gold); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ajc-res { margin-left: 22px; min-height: 32px; font-size: 13px; }
.ajc-cost { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ajc-costline { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.ajc-costline b { color: var(--text); font-variant-numeric: tabular-nums; }
.ajc-costdet summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.ajc-pill { display: none; }
.only-narrow { display: none; }
@media (max-width: 1023px) {
  .ajc { grid-template-columns: minmax(0, 1fr); }
  .ajc-side { display: none; }
  .only-narrow { display: block; }
  .ajc-pill { display: grid; gap: 6px; margin-bottom: 10px; }
  .ajc-pillbtn { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
  .ajc-pill .ajc-models { padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .ajc-main { min-height: 0; }
  .ajc-dock .ajc-cost { padding-top: 6px; }
  .ajc-dock .ajc-cost .ajc-fine, .ajc-dock .ajc-costdet { display: none; }
  .ajc-dock.slim .only-narrow { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel); }
}
@media (max-width: 599px) {
  .page-head.ajc-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .ajc-head > .btn { flex: none; min-height: 44px; }
  .ajc-dock { bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .ajc-dock.kb { bottom: var(--ajc-kb, 0px); }
  .ajc-msg { max-width: 100%; }
  .ajc-msg.user { max-width: 92%; }
  .ajc-avatar { width: 26px; height: 26px; font-size: 13px; }
  .ajc-body { padding: 10px 12px; }
  .ajc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ajc-pic { min-height: 0; }
  .ajc-act, .ajc-chip-main, .ajc-chip-menu, .ajc-add, .ajc-link, .ajc-set select, .ajc-set input, .ajc-look button, .ajc-name, .ajc-desc, .ajc-recent-row, .ajc-model > button { min-height: 44px; }
  .ajc-chip-menu { min-width: 44px; }
  .ajc-actbar { bottom: calc(var(--bnav-h) + 8px + env(safe-area-inset-bottom)); }
  .aj-grid2 { grid-template-columns: minmax(0, 1fr); }
  .aj-chip, .aj-moves .btn, .aj-ent-row .btn, .ajc-editor select, .ajc-editor input { min-height: 44px; }
  .aj-moves .btn, .aj-ent-row .btn { min-width: 44px; }
  .aj-ent-row { flex-wrap: wrap; }
  .aj-ent-row input[type=text] { flex: 1 1 100%; }
  .aj-ent-row select { flex: 1 1 0; }
  .ajc-menu { width: min(260px, calc(100vw - 32px)); }
}

/* AJAN-0.3: written dialogue suggestion, events-vs-duration note, corner-logo tip */
.yaz-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.yaz-switch .muted { flex-basis: 100%; padding-left: 28px; }
.tag.sugg { position: static; display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(243,183,77,.14); color: #ffe2a8; border: 1px solid rgba(243,183,77,.35); vertical-align: 1px; }
.enh-warn { margin-top: 8px; }
.ref-tip { margin-top: 6px; }
.ajc-tip { flex-basis: 100%; font-size: 11.5px; color: var(--muted, #9aa3b2); line-height: 1.35; }

/* AJAN-2: scenes step, folding composer settings, room under the cards for the sticky bar */
.ajc-body:has(.ajc-actbar) .ajc-cards { padding-bottom: 64px; }
.ajc-badge.k-frame { border-style: dashed; color: var(--muted); }
.ajc-setfold { min-width: 0; }
.ajc-setfold > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); cursor: pointer; list-style: none; font-size: 12.5px; }
.ajc-setfold > summary::-webkit-details-marker { display: none; }
.ajc-setfold > summary::after { content: '▾'; color: var(--muted); }
.ajc-setfold[open] > summary::after { content: '▴'; }
.ajc-sets-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ajc-setrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ajc-yaz { padding: 0 10px; min-height: 32px; cursor: pointer; }
.ajc-yaz input { width: auto; min-height: 0; }
.ajs-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ajs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ajs-scene { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); min-width: 0; }
.ajs-scene.st-generating { border-color: rgba(127,178,255,.45); }
.ajs-scene.st-failed { border-color: rgba(255,120,120,.45); }
.ajs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ajs-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajs-badge { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--muted); }
.ajs-badge.b-ready { color: var(--gold); border-color: rgba(212,255,23,.45); }
.ajs-badge.b-generating { color: #cfe0ff; border-color: rgba(127,178,255,.5); }
.ajs-badge.b-failed { color: #ffb3b3; border-color: rgba(255,120,120,.5); }
.ajs-refs { display: flex; flex-wrap: wrap; gap: 4px; }
.ajs-refs .ajc-badge { font-size: 11.5px; padding: 2px 8px; }
.ajs-video, .ajs-ph { width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 10px; background: #000; }
.ajs-ph { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.03); border: 1px dashed var(--line); }
.ajs-takes { display: grid; gap: 4px; }
.ajs-take { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; }
.ajs-take.on { border-color: rgba(212,255,23,.45); }
.ajs-sel { color: var(--gold); }
.ajs-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ajs-confirm { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid rgba(243,183,77,.4); border-radius: 12px; background: rgba(243,183,77,.07); }
.ajs-prompt { white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; margin: 6px 0 0; font-size: 12px; }
@media (max-width: 599px) {
  .ajs-acts .btn, .ajs-confirm .btn { min-height: 44px; }
}
.ajc-toprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ajc-toprow > .ajc-refs { flex: 0 1 auto; min-width: 0; }
.ajc-toprow > .ajc-detail:has(textarea) { flex-basis: 100%; }
@media (max-width: 599px) {
  .ajc-setfold > summary > .muted { display: none; }
  .ajc-sets { flex-wrap: nowrap; }
  .ajc-sets > .grow { display: none; }
  .ajc-setfold { flex: 1 1 0; min-width: 0; }
  .ajc-setfold > summary { max-width: 100%; overflow: hidden; }
  .ajc-sets-sum { max-width: none; min-width: 0; }
  .ajc-send { flex: none; }
  .ajc-sets:has(.ajc-setfold[open]) { flex-wrap: wrap; }
  .ajc-sets:has(.ajc-setfold[open]) > .ajc-setfold { flex-basis: 100%; }
  .ajc-sets:has(.ajc-setfold[open]) > .ajc-send { margin-left: auto; }
  .ajc-send { padding-inline: 14px; white-space: nowrap; }
}
.ajs-scene.st-pending .ajs-ph, .ajs-scene.st-failed .ajs-ph { aspect-ratio: auto !important; min-height: 72px; }

/* ---- AJAN-0.4: pronunciation pairs, subtitle choice, "Altyazı ekle" dialog */
.oku-rows { display: grid; gap: 6px; margin: 6px 0; }
.oku-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.sub-pick { gap: 8px; flex-wrap: wrap; }
.sub-pick select { flex: 1 1 160px; min-width: 0; }
.sub-dialog { display: grid; gap: 6px; max-width: 640px; }
.sub-dialog textarea { width: 100%; }
.sub-tr { min-height: 24px; margin-top: 4px; }
.sub-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sub-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }
.sub-head .btn { margin-left: auto; }
.sub-rows { display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.sub-row { display: grid; grid-template-columns: 20px 64px 10px 64px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.sub-row .sub-sec { text-align: center; padding-inline: 4px; }
@media (max-width: 599px) {
  .sub-row { grid-template-columns: 20px 56px 10px 56px auto; }
  .sub-row .sub-text { grid-column: 1 / -1; order: 9; }
  .sub-row > .btn { justify-self: end; }
}

/* ---- ÜRET-DURUM: running / failed / stopped generations */
.stop-btn.armed { border-color: var(--danger); color: var(--danger); white-space: normal; text-align: left; }
.gen-fail { grid-column: 1 / -1; display: grid; gap: 6px; padding: 8px 10px; margin-top: 6px; border-radius: 10px; background: rgba(240,113,107,.10); border: 1px solid rgba(240,113,107,.35); font-size: 13px; }
.gen-fail.stopped { background: rgba(255,255,255,.04); border-color: var(--line2); }
.gen-fail-msg { color: var(--text); overflow-wrap: anywhere; }
.src.src-fail { flex-wrap: wrap; }
.src.src-fail > .gen-fail { flex: 1 1 100%; }
.img-wait .imgcover { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
.img-fail { display: grid; gap: 6px; align-content: start; }
.img-fail .gen-fail { margin-top: 0; }

/* ---- GÖRSEL-ŞABLON: Karakter dönüşümü — video-safety badge, parameter input, agent look select */
.chip.ok.look-badge { background: rgba(80,200,120,.14); color: var(--ok); border-color: rgba(80,200,120,.35); }
.chip.warn.look-badge { white-space: normal; }
.look-badge { display: inline-block; margin-top: 4px; font-size: 12px; }
.look-param-l { display: grid; gap: 4px; margin-top: 8px; }
.look-param { width: 100%; }
.look-warn { margin-top: 8px; flex-basis: 100%; }
.tplbar:has(.look-warn) { flex-wrap: wrap; }
.ajc-look { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ajc-look-sel { min-height: 36px; max-width: 100%; }
@media (max-width: 599px) { .ajc-look-sel { min-height: 44px; flex: 1 1 100%; } }

/* ---- AJAN-2.2: Yönetim → Sağlayıcı kaybı */
.kayip-sum { gap: 10px; flex-wrap: wrap; }
.kayip-sum .card { min-width: 140px; }
.kayip-form { display: grid; gap: 6px; max-width: 520px; margin-top: 8px; }
.kayip-form input { width: 100%; }

/* ---- FİYAT-1: Yönetim → Fiyatlar */
.fiyat-admin h3 { margin: 18px 0 6px; }
.fy-bar { position: sticky; top: 0; z-index: 5; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); }
.fy-scroll { overflow-x: auto; max-width: 100%; }
.fy-table { border-collapse: collapse; width: 100%; min-width: 960px; font-size: 13px; }
.fy-table th, .fy-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; text-align: left; }
.fy-table th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.fy-table td.num { text-align: right; white-space: nowrap; }
.fy-log { min-width: 640px; }
.fy-in { width: 7.5em; }
.fy-in.fy-changed { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.fy-table tr.fy-low td { background: rgba(255,197,61,.10); }
.fy-table tr.fy-loss td { background: rgba(255,107,107,.14); }
.fy-grid { display: grid; grid-template-columns: minmax(0, 16em) minmax(0, 9em) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.fy-modal { max-width: 760px; }
.fy-preview td { vertical-align: top; }
@media (max-width: 599px) {
  .fy-grid { grid-template-columns: minmax(0, 1fr); }
  .fy-grid .fy-in { width: 100%; }
}

/* ---- AJAN-2.4: one spoken language per agent project */
.ajc-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.ajc-lang .ajc-set b { color: var(--text, #e8eaed); font-weight: 600; padding-right: 2px; }
.ajs-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ajc-badge.k-lang { border-color: var(--warn); color: var(--warn); }

/* ---- AJAN-3: Ajan → Kurgu (merge) */
.ajk-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.ajk-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ajk-bar { flex: 1 1 160px; height: 6px; border-radius: 999px; background: var(--panel3); overflow: hidden; }
.ajk-bar i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
.ajk-result { display: grid; gap: 8px; margin-top: 10px; }
.ajk-notes { margin: 6px 0 0; padding-left: 18px; }
.ajk-opts .ajc-set select { max-width: 260px; }

/* AJAN-4: product info, shot list, "Metin" step, end card */
.ajp { display: grid; gap: 6px; margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.ajp.wait { border-color: #ffcf8a; }
.ajp-sum { margin: 0; line-height: 1.5; }
.ajp-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 6px 0; }
.ajp-f { display: grid; gap: 4px; min-width: 0; }
.ajp-feats { display: grid; gap: 4px; }
.ajc-prodfold { margin-top: 6px; }
.ajc-shot { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line2); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ajc-sw { flex-basis: 100%; }
.ajc-strip li { flex-wrap: wrap; }
.aj-shot { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ajm-list { display: grid; gap: 10px; }
.ajm-scene { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); min-width: 0; }
.ajm-scene.ok { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.ajm-line { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.ajm-line textarea { width: 100%; }
.ajm-pron { display: grid; gap: 6px; }
.ajm-scene [data-script-warn]:empty { display: none; }
.ajk-end { display: grid; gap: 6px; margin: 4px 0 8px; }
.ajk-end-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ajk-end-row input[type="text"] { flex: 1 1 200px; min-width: 0; }
.ajk-end-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--panel3); }

/* MÜZİK-1: "Müzik üret" form (editor Ses tab, Ajan Kurgu) · MODEL-2 admin table */
.music-gen { gap: 8px; }
.music-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.music-row .ajc-set select { max-width: 170px; }
.music-gen input[type="text"], .music-gen textarea { width: 100%; min-width: 0; }
.music-status { display: grid; gap: 6px; }
.music-run { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.music-audio { width: 100%; }
.music-license { font-size: 11.5px; line-height: 1.45; }
.ajk-musicgen { display: grid; gap: 8px; margin: 4px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.model-admin td { vertical-align: top; }

.model-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.model-tr select { width: 140px; }
.model-tr input[type="text"] { flex: 1 1 180px; min-width: 0; }

/* AJAN-4.1: native dropdowns follow the dark theme everywhere (a transparent <select> — Ajan chips, editor — opened a white list
   with near-white text). color-scheme makes the browser draw its own popup / scrollbars dark; options get explicit colours. */
:root { color-scheme: dark; }
select option, select optgroup { background-color: var(--panel2); color: var(--text); }
select option:checked { background-color: var(--panel3); color: var(--gold); }
select option:hover, select option:focus { background-color: var(--panel3); color: var(--text); }
select option:disabled { color: var(--muted); }
.ajc-set select, .ajc-set select:focus { background-color: transparent; }
/* AJAN-4.1: real photo on a character card, card fixes inside a rejection message */
.ajc-tile.warn { border-color: rgba(255, 210, 122, .55); }
.ajc-photo-warn { display: grid; gap: 6px; padding: 8px 10px; margin: 0 10px 8px; border-radius: 10px; background: rgba(255, 207, 138, .07); }
.ajc-photo-warn .row { display: flex; flex-wrap: wrap; gap: 6px; }
.ajs-fix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ajc-tile { grid-template-columns: minmax(0, 1fr); } /* AJAN-4.1: a long button never widens the tile's track */
.ajc-photo-warn { margin: 0; min-width: 0; }
.ajc-photo-warn .btn, .ajs-fix .btn { white-space: normal; text-align: left; height: auto; line-height: 1.3; }

/* SES-TUTARLILIK-1: director row, character voice, scene voice line, admin sync test */
.ajc-dir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.ajc-dir .ajc-set { max-width: 100%; min-width: 0; }
.ajc-dir .ajc-set select { max-width: 240px; min-width: 0; }
.ajc-voice { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ajc-voice select { flex: 1 1 auto; min-width: 0; padding: 6px 28px 6px 8px; font-size: 13px; }
.ajc-voice.col { flex-direction: column; align-items: stretch; }
.ajc-voice.col label { display: grid; gap: 4px; }
.ajc-voice.col input { min-width: 0; padding: 6px 8px; font-size: 13px; }
.ajs-voice { align-items: center; }
.ajm-voice { display: grid; gap: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.ajm-voice .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sync-form { display: grid; gap: 6px; max-width: 520px; margin-top: 8px; }

/* SES-TEMİZ-1: "Temiz ses / Model sesi" switch and the sync-test results */
.voice-switch { display: grid; gap: 6px; margin: 6px 0; }
.voice-switch .seg button { padding: 6px 10px; font-size: 13px; }
.voice-switch.busy { opacity: .6; pointer-events: none; }
.sync-results { display: grid; gap: 12px; margin-top: 12px; }
.sync-result { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.sync-video { width: 100%; max-width: 420px; border-radius: 8px; background: #000; }
.ajc-set.chk { display: inline-flex; align-items: center; gap: 6px; }

/* SES-TR-1: Türkçe ses karşılaştırma */
.trv-rows { display: grid; gap: 6px; }
.trv-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.trv-row select { min-width: 0; }
.trv-lang { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.trv-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 10px; }
.trv-card { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.trv-card audio { width: 100%; }
@media (max-width: 599px) { .trv-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* GÖRSEL-YETENEK-1: options the selected image model does not take — dim, explained on hover (title), click says why */
.seg button.off { opacity: .38; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.cap-note { margin-top: 6px; }
.cap-off > .drop, .cap-off > .row { opacity: .4; pointer-events: none; }
.cap-ref { margin-top: 8px; }

/* LANDING-1: public homepage (#landing in "/" for signed-out visitors) and server-rendered legal pages (body.pp-page) */
html.lp-off #landing { display: none; }
#landing[hidden] { display: none; }
.pp { max-width: 1120px; margin: 0 auto; padding: 0 16px 32px; color: var(--text); }
.pp-page { background: var(--bg); }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.pp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.pp-brand b { color: var(--gold); }
.pp-brand img { border-radius: 50%; }
.pp-topnav { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.pp-topnav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.pp-topnav > a:not(.btn):hover { color: var(--text); }
.pp-hero { position: relative; padding: clamp(36px, 8vw, 96px) clamp(16px, 4vw, 48px); margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 90% at 10% 0%, rgba(212,255,23,.16), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(80,120,255,.14), transparent 60%), var(--panel); }
.pp-hero h1 { margin: 0 0 14px; font-size: clamp(30px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; max-width: 900px; }
.pp-lead { margin: 0 0 22px; max-width: 720px; font-size: clamp(16px, 1.6vw, 19px); color: #d9dde3; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-cta .btn { min-height: 44px; }
.pp-sec { margin: 0 0 28px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pp-sec h2 { margin: 0 0 12px; font-size: clamp(20px, 2.4vw, 26px); }
.pp-sec p, .pp-sec li { color: #d4d8de; line-height: 1.6; }
.pp-sec a, .pp-legal a, .pp-foot a { color: var(--gold2); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 12px; }
.pp-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.pp-card h3 { margin: 0 0 6px; font-size: 16px; }
.pp-card p { margin: 0; font-size: 14px; color: var(--muted); }
.pp-muted { color: var(--muted); font-size: 13px; }
.pp-foot { display: grid; gap: 8px; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pp-foot nav a { color: var(--muted); }
.pp-foot nav a:hover { color: var(--text); }
.pp-legal { display: grid; gap: 16px; margin-bottom: 28px; }
.pp-legal article { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); line-height: 1.65; }
.pp-legal h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); }
.pp-legal h3 { margin: 20px 0 6px; }
.pp-legalnav { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-legalnav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; }
.pp-legalnav a[aria-current="page"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.pp-kv { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 4px 12px; }
.pp-kv dt { color: var(--muted); }
.pp-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { .pp-kv { grid-template-columns: minmax(0, 1fr); } .pp-kv dd { margin-bottom: 6px; } .pp-topnav .btn { min-height: 44px; } }
