:root {
  --bg: #0f0f0f;
  --bg-2: #141414;
  --surface: #1a1a1a;
  --surface-2: #212121;
  --surface-3: #262626;
  --border: #2e2e2e;
  --border-strong: #3d3d3d;
  --text: #fafafa;
  --text-2: #dbdbdb;
  --muted: #a3a3a3;
  --brand: #ff101b;
  --brand-dark: #d20d16;
  --success: #39d77b;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.6);
  --topbar-bg: rgba(15, 15, 15, 0.94);
}

:root[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-2: #e9ebef;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e5e8ed;
  --border: #d7dbe2;
  --border-strong: #b7bec9;
  --text: #15181d;
  --text-2: #2a3038;
  --muted: #66707d;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 10px 28px rgba(40, 47, 60, 0.12);
  --shadow-lg: 0 18px 60px rgba(40, 47, 60, 0.18);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
  font-size: 17px;
  font-weight: 700;
}
.brand span:last-child { font-size: 15px; letter-spacing: -0.3px; }
.brand b { color: var(--muted); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.theme-toggle { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); color: var(--text); }
.theme-toggle .icon { width: 15px; height: 15px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--text); background: #202020; }
.nav-link.active { color: #fff; background: #242424; }
.nav-icon { display: inline-flex; width: 15px; height: 15px; color: currentColor; }
.nav-icon svg, .icon svg { width: 100%; height: 100%; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-toggle button { border: 0; border-radius: 999px; padding: 5px 7px; color: var(--muted); background: transparent; font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 600; cursor: pointer; }
.lang-toggle button.active { color: #fff; background: var(--brand); }
.credits-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface); font-family: "Roboto Mono", monospace; font-size: 11px; }
.credits-pill .icon { width: 13px; height: 13px; color: var(--brand); }
.credits-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(57, 215, 123, .12); }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid #444; border-radius: 50%; color: #fff; background: #343434; font-size: 11px; font-weight: 700; }

.page { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 78px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-family: "Roboto Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.04em; }
h1 { margin-bottom: 14px; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.2; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; color: var(--text); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 7px 22px rgba(255, 16, 27, .2); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { border-color: var(--border-strong); background: var(--surface-2); }
.button.secondary:hover { border-color: #555; background: var(--surface-3); }
.button.secondary.active { border-color: var(--brand); color: #fff; background: rgba(255, 16, 27, .14); }
.reference-mode-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mode-note { color: var(--muted); font-size: 11px; }
.button.ghost { color: var(--text-2); }
.button.ghost:hover { background: var(--surface); }
.button.full { width: 100%; }
.button .icon { width: 15px; height: 15px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.danger { color: #ff9a9f; border-color: rgba(255, 16, 27, .34); background: rgba(255, 16, 27, .08); }
.button.danger:hover { color: #fff; border-color: rgba(255, 16, 27, .65); background: rgba(255, 16, 27, .18); }

.landing-page { padding-top: 38px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); align-items: stretch; gap: 32px; min-height: 410px; padding: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background-color: var(--surface); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; box-shadow: var(--shadow-lg); }
.hero::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(90deg, rgba(26, 26, 26, .96) 0%, rgba(26, 26, 26, .76) 46%, rgba(26, 26, 26, .08) 100%); }
.hero-copy, .hero-media { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px 15px 20px 8px; }
.hero-copy h1 { max-width: 610px; margin-bottom: 20px; font-size: clamp(40px, 5vw, 68px); }
.hero-copy h1 span { color: var(--brand); }
.hero-copy p:not(.eyebrow) { max-width: 525px; margin-bottom: 23px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.free-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 18px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); background: rgba(17, 17, 17, .8); font-size: 11px; }
.free-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(57, 215, 123, .12); }
.hero-media { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-art { position: relative; width: min(100%, 500px); aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #4a4a4a; border-radius: 16px; background: #080808; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); transform: rotate(2deg); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .7)); }
.hero-art-caption { position: absolute; right: 16px; bottom: 14px; left: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-art-caption strong { font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.hero-art-caption small { color: var(--text-2); font-family: "Roboto Mono", monospace; font-size: 10px; }
.corner-mark { position: absolute; top: 12px; left: 12px; z-index: 2; width: 18px; height: 18px; border-top: 2px solid var(--brand); border-left: 2px solid var(--brand); }
.corner-mark.bottom { top: auto; right: 12px; bottom: 12px; left: auto; border-top: 0; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }

.section { margin-top: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading p { max-width: 570px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.format-card { position: relative; min-height: 155px; padding: 21px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.format-card:hover { border-color: var(--brand); background: #1c1c1c; transform: translateY(-2px); }
.format-card .format-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 19px; border: 1px solid #453134; border-radius: 11px; color: var(--brand); background: rgba(255, 16, 27, .1); }
.format-card h3 { margin-bottom: 6px; font-size: 19px; }
.format-card p { max-width: 325px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.format-ratio { position: absolute; top: 21px; right: 21px; padding: 5px 7px; border-radius: 7px; color: var(--brand); background: rgba(255, 16, 27, .1); font-family: "Roboto Mono", monospace; font-size: 10px; }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.how-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080808; }
.how-card-media img { width: 100%; height: 100%; object-fit: cover; }
.how-card-media .label { position: absolute; bottom: 12px; left: 12px; padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(15, 15, 15, .84); font-family: "Roboto Mono", monospace; font-size: 10px; }
.how-card-body { padding: 15px 17px 17px; }
.how-card-body strong { display: block; margin-bottom: 5px; font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.how-card-body p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.landing-note { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--brand); color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.6; }

.studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.studio-heading h1 { margin-bottom: 7px; font-size: 34px; }
.studio-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.selected-format { min-width: 166px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.selected-format span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.selected-format strong { color: var(--brand); font-family: "Roboto Mono", monospace; font-size: 11px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 17px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.studio-panel { padding: 18px 20px 20px; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.step-button { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 4px; border: 0; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.step-button:not(:last-child)::after { position: absolute; top: 16px; right: -8px; width: 17px; height: 1px; content: ""; background: var(--border-strong); }
.step-button .step-number { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 11px; }
.step-button strong { display: block; overflow: hidden; color: inherit; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.step-button small { display: block; margin-top: 2px; overflow: hidden; color: inherit; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.step-button.active { color: #fff; }
.step-button.active .step-number { border-color: var(--brand); color: #fff; box-shadow: 0 0 0 3px rgba(255, 16, 27, .12); }
.step-button.done .step-number { border-color: var(--brand); color: #fff; background: var(--brand); }
.step-content { padding-top: 21px; }
.step-title { margin-bottom: 6px; font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.step-desc { margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.format-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 25px; }
.choice-card { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.choice-card:hover { border-color: #5d5d5d; }
.choice-card.selected { border-color: var(--brand); background: rgba(255, 16, 27, .075); }
.choice-card .choice-icon { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: var(--brand); background: #281617; }
.choice-card strong { display: block; margin-bottom: 4px; font-size: 12px; }
.choice-card small { color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; }
.field-label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 132px; padding: 18px; border: 1px dashed #4a4a4a; border-radius: 14px; background: #181818; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: #201616; }
.dropzone .drop-icon { display: grid; place-items: center; width: 37px; height: 37px; margin: 0 auto 8px; border-radius: 50%; color: var(--brand); background: rgba(255, 16, 27, .12); }
.dropzone strong { display: block; margin-bottom: 5px; font-size: 12px; }
.dropzone small { color: var(--muted); font-size: 10px; }
.hidden-input { display: none; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: #777; font-family: "Roboto Mono", monospace; font-size: 9px; letter-spacing: .05em; }
.or-divider::before, .or-divider::after { flex: 1; height: 1px; content: ""; background: var(--border); }
.url-row { display: flex; gap: 8px; }
.input, .textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); background: var(--surface-2); font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.input { height: 40px; padding: 0 12px; }
.textarea { min-height: 108px; padding: 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #777; }
.input:focus, .textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(255, 16, 27, .1); }
.reference-preview { position: relative; display: grid; place-items: center; min-height: 160px; margin-top: 11px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #0a0a0a; }
.reference-preview img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.reference-preview .preview-chip { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 7px; color: #fff; background: rgba(15, 15, 15, .82); font-family: "Roboto Mono", monospace; font-size: 9px; }
.reference-preview .reference-clear { position: absolute; right: 9px; bottom: 9px; min-height: 28px; padding: 0 8px; color: #fff; background: rgba(15, 15, 15, .82); font-size: 10px; }
.photo-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.photo-toggle strong { display: block; margin-bottom: 3px; font-size: 12px; }
.photo-toggle small { color: var(--muted); font-size: 10px; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 42px; height: 23px; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #454545; cursor: pointer; transition: background .18s ease; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; content: ""; background: #fff; transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.photo-card { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #111; cursor: pointer; }
.photo-card:hover { border-color: #555; }
.photo-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255, 16, 27, .2); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-check { position: absolute; top: 5px; right: 5px; display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--brand); font-size: 10px; }
.photo-card.selected .photo-check { display: grid; }
.mini-drop { min-height: 88px; }
.mini-drop .drop-icon { width: 30px; height: 30px; margin-bottom: 4px; }
.mini-drop strong { font-size: 11px; }
.mini-drop small { font-size: 9px; }
.prompt-section { margin-top: 21px; }
.prompt-section + .prompt-section { margin-top: 19px; }
.helper { margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggestion { padding: 6px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface-2); font-size: 10px; cursor: pointer; }
.suggestion:hover { border-color: var(--brand); color: #fff; }
.fidelity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fidelity-card { min-height: 79px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.fidelity-card.selected { border-color: var(--brand); background: rgba(255, 16, 27, .075); }
.fidelity-card strong { display: block; margin-bottom: 5px; font-size: 12px; }
.fidelity-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.summary-box { padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.summary-box h3 { margin-bottom: 12px; font-size: 13px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #303030; font-size: 11px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.summary-actions { margin-top: 16px; }
.generation-live-status { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 9px 12px; border: 1px solid rgba(255, 16, 27, .28); border-radius: 10px; color: #ff9297; background: rgba(255, 16, 27, .08); font-size: 11px; text-align: center; }
.balance-line { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 10px; }
.balance-line strong { color: var(--brand); }
.persistent-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--success, #39c784); font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.persistent-badge .icon { width: 16px; height: 16px; }
.studio-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.preview-column { position: sticky; top: 85px; }
.preview-panel { padding: 13px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-head strong { font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.preview-head span { color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; }
.preview-frame { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: #101010; }
.preview-frame.empty { padding: 20px; color: #777; text-align: center; }
.preview-frame.empty strong { display: block; margin-bottom: 5px; color: var(--text-2); font-size: 12px; }
.preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.preview-frame .preview-empty-icon { width: 27px; height: 27px; margin: 0 auto 9px; color: #777; }
.preview-frame .preview-chip { position: absolute; right: 8px; bottom: 8px; padding: 4px 6px; border-radius: 6px; color: #fff; background: rgba(15, 15, 15, .78); font-family: "Roboto Mono", monospace; font-size: 8px; }
.preview-frame .result-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; color: #fff; background: rgba(12, 75, 38, .9); font-size: 9px; }
.preview-status { min-height: 29px; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.preview-status.ready { color: var(--success); }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 5px; }
.preview-actions .button { min-height: 34px; padding: 0 8px; font-size: 10px; }
.preview-actions .button:first-child { grid-column: span 2; }
.progress-bar { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #303030; }
.progress-bar span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--brand); animation: progress 1.5s ease-in-out infinite; }
@keyframes progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }

.subpage-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.subpage-heading h1 { margin-bottom: 7px; font-size: 34px; }
.subpage-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { position: relative; min-height: 103px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.stat-card span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.stat-card strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 27px; }
.stat-card .icon { position: absolute; top: 15px; right: 15px; width: 17px; height: 17px; color: var(--brand); }
.credits-panel { padding: 18px; margin-bottom: 16px; }
.credits-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.credits-panel-actions { display: flex; align-items: center; gap: 8px; }
.usage-refresh { min-height: 30px; padding: 0 10px; font-size: 10px; }
.credits-panel h2 { margin-bottom: 5px; font-size: 19px; }
.credits-panel p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.credit-meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.credit-stat { padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.credit-stat span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.credit-stat strong { display: block; color: var(--success); font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.credit-stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.usage-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 11px; }
.usage-history-head span { color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; }
.usage-history { display: grid; gap: 7px; margin-top: 9px; }
.usage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.usage-row strong { display: block; overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.usage-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.usage-badge { display: inline-grid; min-width: 31px; height: 23px; place-items: center; padding: 0 6px; border: 1px solid rgba(57, 215, 123, .25); border-radius: 999px; color: var(--success); background: rgba(57, 215, 123, .08); font-family: "Roboto Mono", monospace; font-size: 9px; }
.usage-empty { margin-top: 9px; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.sync-error { color: #ff6b6b; }
.coupon-box { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.coupon-box-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 11px; font-weight: 600; }
.coupon-box-head .icon { width: 14px; height: 14px; color: var(--brand); }
.coupon-box p { margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; font-family: "Roboto Mono", monospace; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0 0; color: var(--muted); font-size: 10px; }
.history-row strong { color: var(--success); font-family: "Roboto Mono", monospace; }
.account-photo-panel { padding: 18px; }
.account-photo-panel h2 { margin-bottom: 6px; font-size: 19px; }
.account-photo-panel > p { margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.account-photo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.account-photo-grid .photo-card { border-width: 1px; }

.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.gallery-toolbar p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gallery-card { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.gallery-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #090909; }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-media .gallery-type { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 6px; color: #fff; background: rgba(15, 15, 15, .83); font-family: "Roboto Mono", monospace; font-size: 9px; }
.gallery-card-body { padding: 12px; }
.gallery-card-body strong { display: block; margin-bottom: 6px; font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.gallery-card-body p { margin-bottom: 11px; color: var(--muted); font-size: 10px; }
.gallery-card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.gallery-card-actions .button { min-height: 32px; padding: 0 7px; font-size: 10px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.empty-state p { margin: 0 0 8px; font-size: 11px; }

.auth-page { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 42px 16px; }
.auth-card { width: min(420px, 100%); padding: 24px; }
.auth-card .brand { margin-bottom: 27px; }
.auth-card h1 { margin-bottom: 8px; font-size: 27px; }
.auth-card > p { margin-bottom: 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 7px; color: var(--text-2); font-size: 11px; font-weight: 600; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch button { border: 0; padding: 0; color: var(--brand); background: transparent; font-size: inherit; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 9px; margin: 17px 0; color: #717171; font-family: "Roboto Mono", monospace; font-size: 9px; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; content: ""; background: var(--border); }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; width: min(340px, calc(100% - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border: 1px solid var(--border-strong); border-radius: 11px; color: var(--text-2); background: #1d1d1d; box-shadow: var(--shadow-lg); font-size: 11px; line-height: 1.4; animation: toast-in .2s ease-out; }
.toast.success { border-color: rgba(57, 215, 123, .35); }
.toast.error { border-color: rgba(255, 16, 27, .45); }
.toast .icon { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: var(--success); }
.toast.error .icon { color: var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .topbar-inner { gap: 14px; }
  .main-nav { gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
  .nav-link { padding-right: 8px; padding-left: 8px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  .account-photo-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { position: static; height: auto; }
  .topbar-inner { flex-wrap: wrap; width: min(100% - 24px, 620px); padding: 11px 0; gap: 10px; }
  .topbar-spacer { display: none; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .nav-link { flex: 1 0 auto; justify-content: center; }
  .topbar-actions { margin-left: auto; }
  .page { width: min(100% - 24px, 620px); padding-top: 25px; }
  .hero { grid-template-columns: 1fr; min-height: unset; gap: 10px; padding: 20px; }
  .hero::after { background: linear-gradient(180deg, rgba(26, 26, 26, .91) 0%, rgba(26, 26, 26, .42) 100%); }
  .hero-copy { padding: 18px 5px 5px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-media { min-height: 220px; padding: 8px 5px 18px; }
  .hero-art { width: min(100%, 430px); transform: rotate(1deg); }
  .section { margin-top: 47px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 9px; }
  .format-grid, .how-grid { grid-template-columns: 1fr; }
  .studio-heading, .subpage-heading { align-items: start; flex-direction: column; }
  .studio-heading h1, .subpage-heading h1 { font-size: 31px; }
  .selected-format { width: 100%; }
  .studio-grid { grid-template-columns: 1fr; }
  .preview-column { position: static; order: -1; }
  .preview-panel { padding: 10px; }
  .preview-frame { max-height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card-actions .danger { grid-column: span 2; }
  .account-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  .brand span:last-child { font-size: 13px; }
  .credits-pill { padding: 7px 8px; }
  .avatar { display: none; }
  .studio-panel { padding: 14px; }
  .stepper { gap: 2px; }
  .step-button { display: block; text-align: center; }
  .step-button:not(:last-child)::after { top: 13px; right: -5px; width: 9px; }
  .step-button .step-number { width: 25px; height: 25px; margin: 0 auto 5px; }
  .step-button strong, .step-button small { max-width: 72px; margin-right: auto; margin-left: auto; }
  .format-select-grid, .fidelity-grid { grid-template-columns: 1fr; }
  .url-row, .coupon-row { flex-direction: column; }
  .url-row .button, .coupon-row .button { width: 100%; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; }
  .credits-panel-head { align-items: start; flex-direction: column; }
  .credits-panel-actions { width: 100%; justify-content: space-between; }
  .credits-panel-actions .usage-refresh { width: auto; }
  .credit-meter { grid-template-columns: 1fr; }
}

/* Kanal planı: the calendar remains one wide, scrollable surface on small screens. */
.checklist-page { padding-bottom: 92px; }
.checklist-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.checklist-heading h1 { margin-bottom: 8px; font-size: 35px; }
.checklist-heading p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.checklist-period { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); white-space: nowrap; }
.checklist-period strong { min-width: 112px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 13px; text-align: center; }
.checklist-icon-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.checklist-icon-button:hover { border-color: var(--border-strong); color: #fff; background: var(--surface-2); }
.checklist-icon-button .icon { width: 15px; height: 15px; }
.checklist-period [data-checklist-next] .icon { transform: rotate(0deg); }
.checklist-today { min-height: 31px; padding: 0 10px; font-size: 10px; }
.checklist-overview-band { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.35fr) minmax(210px, .85fr); gap: 12px; margin-bottom: 15px; }
.checklist-overview-card { min-height: 154px; padding: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.checklist-card-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.checklist-card-label .icon { width: 15px; height: 15px; color: var(--brand); }
.checklist-progress-value { display: flex; align-items: baseline; gap: 9px; }
.checklist-progress-value strong { font-family: "Space Grotesk", sans-serif; font-size: 31px; letter-spacing: -.04em; }
.checklist-progress-value span { color: var(--muted); font-size: 10px; }
.checklist-progress-track { height: 5px; margin: 16px 0 11px; overflow: hidden; border-radius: 999px; background: #303030; }
.checklist-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s ease; }
.checklist-overview-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.checklist-channel-summary-list { display: grid; gap: 7px; }
.checklist-channel-summary { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.checklist-channel-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #111; font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 700; }
.checklist-channel-avatar.orange { background: #e89b5f; }
.checklist-channel-avatar.teal { background: #55c8b2; }
.checklist-channel-avatar.violet { background: #9b91e4; }
.checklist-channel-avatar.rose { background: #e88796; }
.checklist-channel-copy { display: grid; min-width: 0; gap: 2px; }
.checklist-channel-copy strong { overflow: hidden; color: var(--text-2); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.checklist-channel-copy small { color: var(--muted); font-size: 9px; }
.checklist-channel-summary > b { color: var(--text-2); font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 600; }
.checklist-today-date { display: block; margin: 2px 0 14px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.checklist-today-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.checklist-today-stat b { color: var(--text-2); font-family: "Roboto Mono", monospace; font-size: 10px; }
.checklist-panel { overflow: hidden; }
.checklist-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.checklist-panel-head h2 { margin: 0 0 5px; font-size: 18px; }
.checklist-panel-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.checklist-start-badge { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(255, 16, 27, .28); border-radius: 7px; color: #ff8f95; background: rgba(255, 16, 27, .08); font-family: "Roboto Mono", monospace; font-size: 9px; }
.checklist-note { display: flex; align-items: center; gap: 8px; margin: 13px 18px; padding: 10px 11px; border: 1px solid rgba(255, 16, 27, .2); border-radius: 9px; color: var(--muted); background: rgba(255, 16, 27, .055); font-size: 10px; line-height: 1.4; }
.checklist-note strong { color: var(--text-2); }
.checklist-note-mark { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; border: 1px solid rgba(255, 16, 27, .42); border-radius: 50%; color: var(--brand); font-family: "Roboto Mono", monospace; font-size: 9px; font-weight: 700; }
.checklist-calendar-scroll { width: 100%; overflow-x: auto; border-top: 1px solid var(--border); scrollbar-color: var(--border-strong) var(--surface-2); scrollbar-width: thin; }
.checklist-calendar-scroll::-webkit-scrollbar { height: 8px; }
.checklist-calendar-scroll::-webkit-scrollbar-track { background: var(--surface-2); }
.checklist-calendar-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--surface-2); border-radius: 999px; background: var(--border-strong); }
.checklist-calendar-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.checklist-grid { width: max-content; min-width: calc(210px + (var(--checklist-day-count) * 44px)); }
.checklist-grid-head, .checklist-row { display: grid; grid-template-columns: 210px repeat(var(--checklist-day-count), 44px); }
.checklist-grid-head { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.checklist-channel-col, .checklist-row-channel { position: sticky; left: 0; z-index: 4; min-width: 0; border-right: 1px solid var(--border-strong); background: var(--surface-2); box-shadow: 8px 0 13px rgba(0, 0, 0, .2); }
.checklist-channel-col { display: flex; align-items: end; min-height: 55px; padding: 10px 13px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; letter-spacing: .05em; }
.checklist-day-head { display: grid; align-content: center; justify-items: center; min-height: 55px; padding: 7px 2px; border-right: 1px solid var(--border); color: var(--muted); text-align: center; }
.checklist-day-head.weekend { background: rgba(255, 255, 255, .018); }
.checklist-day-head span { font-family: "Roboto Mono", monospace; font-size: 8px; letter-spacing: .02em; text-transform: uppercase; }
.checklist-day-head strong { display: grid; place-items: center; width: 25px; height: 25px; margin-top: 4px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.checklist-day-head.today strong { border-radius: 50%; color: #fff; background: var(--brand); }
.checklist-row { min-height: 64px; border-bottom: 1px solid var(--border); }
.checklist-row:last-child { border-bottom: 0; }
.checklist-row-channel { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.checklist-row-channel > span:last-child { display: grid; min-width: 0; gap: 3px; }
.checklist-row-channel strong { overflow: hidden; color: var(--text-2); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.checklist-row-channel small { color: var(--muted); font-size: 8px; }
.checklist-day-cell { display: grid; place-items: center; min-height: 64px; border-right: 1px solid var(--border); background: var(--surface); }
.checklist-day-cell.inactive { background: #171717; }
.checklist-day-cell.inactive > span { color: #4a4a4a; font-family: "Roboto Mono", monospace; font-size: 10px; }
.checklist-slot { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid #454545; border-radius: 7px; color: transparent; background: #202020; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.checklist-slot:hover { border-color: var(--brand); transform: translateY(-1px); }
.checklist-slot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.checklist-slot.is-checked { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 5px 13px rgba(255, 16, 27, .2); }
.checklist-slot .icon { width: 14px; height: 14px; }
.checklist-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 49px; padding: 9px 18px 10px; border-top: 1px solid var(--border); color: var(--muted); background: var(--surface-2); font-size: 9px; }
.checklist-legend-label { margin-right: 2px; color: var(--text-2); font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.checklist-legend span:not(.checklist-legend-label) { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.checklist-legend i { display: inline-block; width: 9px; height: 9px; border: 1px solid #454545; border-radius: 3px; background: #202020; }
.checklist-legend i.ready { border-color: var(--brand); background: var(--brand); }
.checklist-legend i.inactive { border-color: #262626; background: #171717; }

:root[data-theme="light"] .checklist-calendar-scroll::-webkit-scrollbar-thumb { border-color: var(--surface-2); }
:root[data-theme="light"] .checklist-legend i { border-color: var(--border-strong); background: var(--surface-3); }
:root[data-theme="light"] .checklist-legend i.inactive { border-color: #c2c7cf; background: #e5e8ed; }

@media (max-width: 960px) {
  .checklist-overview-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .checklist-today-card { grid-column: 1 / -1; min-height: 0; }
  .checklist-today-card .checklist-today-date { display: inline-block; margin-right: 18px; margin-bottom: 0; }
  .checklist-today-card .checklist-today-stat { display: inline-flex; min-width: 155px; margin-left: 12px; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .checklist-heading { align-items: start; flex-direction: column; gap: 16px; }
  .checklist-heading h1 { font-size: 31px; }
  .checklist-period { width: 100%; justify-content: space-between; }
  .checklist-period strong { flex: 1; }
  .checklist-overview-band { grid-template-columns: 1fr; }
  .checklist-today-card { grid-column: auto; }
  .checklist-today-card .checklist-today-date { display: block; margin: 2px 0 14px; }
  .checklist-today-card .checklist-today-stat { display: flex; min-width: 0; margin: 0; padding: 8px 0; border-top: 1px solid var(--border); border-left: 0; }
  .checklist-panel-head { align-items: start; flex-direction: column; }
  .checklist-start-badge { align-self: flex-start; }
  .checklist-note { align-items: flex-start; }
}

/* Task board */
.tasks-page { padding-bottom: 92px; }
.tasks-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.tasks-heading h1 { margin-bottom: 8px; font-size: 35px; }
.tasks-heading p:not(.eyebrow) { max-width: 630px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.tasks-heading .button { flex: 0 0 auto; }
.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.task-toolbar-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; }
.task-toolbar-stats span { display: inline-flex; align-items: center; gap: 4px; }
.task-toolbar-stats b { color: var(--text-2); font-size: 11px; }
.task-search { display: flex; align-items: center; gap: 7px; width: min(260px, 100%); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); }
.task-search > span { display: inline-flex; width: 14px; height: 14px; color: var(--muted); }
.task-search input { width: 100%; height: 34px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.task-search input::placeholder { color: #777; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.task-owner-strip { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.task-owner-filter { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 600; cursor: pointer; }
.task-owner-filter b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; color: var(--text-2); background: var(--surface-2); font-family: "Roboto Mono", monospace; font-size: 9px; }
.task-owner-filter:hover, .task-owner-filter.active { border-color: var(--brand); color: var(--text); box-shadow: 0 5px 14px rgba(255, 16, 27, .08); }
.task-owner-filter.active b { color: #fff; background: var(--brand); }
.task-column { min-height: 415px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.task-column-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; min-height: 74px; padding: 15px; border-bottom: 1px solid var(--border); border-top: 2px solid #444; }
.task-column.blue .task-column-head { border-top-color: #4c8ed9; }
.task-column.amber .task-column-head { border-top-color: #d3a34b; }
.task-column.green .task-column-head { border-top-color: var(--success); }
.task-column-head h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.02em; }
.task-column-head p { margin: 0; color: var(--muted); font-size: 9px; }
.task-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text-2); background: var(--surface-2); font-family: "Roboto Mono", monospace; font-size: 9px; }
.task-column-body { display: grid; align-content: start; gap: 9px; min-height: 337px; padding: 11px; transition: background .16s ease; }
.task-column-body.is-dragover { background: rgba(255, 16, 27, .08); }
.task-card { padding: 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); cursor: grab; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.task-card:hover { border-color: #555; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.task-card.is-dragging { opacity: .45; }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.task-channel { overflow: hidden; max-width: calc(100% - 25px); padding: 4px 6px; border-radius: 5px; color: var(--muted); background: var(--surface-2); font-family: "Roboto Mono", monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-more { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.task-more:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.task-more .icon { width: 13px; height: 13px; }
.task-card h3 { margin: 0 0 7px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 13px; line-height: 1.28; letter-spacing: -.02em; }
.task-card p { display: -webkit-box; margin: 0 0 11px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.task-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--border); }
.task-priority, .task-due { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; }
.task-priority i { width: 7px; height: 7px; border-radius: 50%; background: #777; }
.task-priority.high { color: #ff8e94; }.task-priority.high i { background: var(--brand); }
.task-priority.medium { color: #e8bf67; }.task-priority.medium i { background: #d3a34b; }
.task-priority.low { color: #83c8a2; }.task-priority.low i { background: var(--success); }
.task-due { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-due .icon { flex: 0 0 auto; width: 11px; height: 11px; }
.task-card-owner { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 8px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; }
.task-card-owner > span { display: inline-flex; align-items: center; gap: 4px; }
.task-card-owner .icon { width: 10px; height: 10px; }
.task-card-owner a { margin-left: auto; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.task-checklist { padding: 3px 5px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }
.task-card-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 10px; }
.task-action { display: inline-flex; align-items: center; gap: 4px; min-height: 25px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface-2); font-size: 9px; cursor: pointer; }
.task-action:hover { border-color: var(--brand); color: var(--text); }.task-action.danger:hover { border-color: rgba(255,16,27,.55); color: #ff9a9f; }
.task-action .icon { width: 11px; height: 11px; }
.task-empty-column { display: grid; justify-items: center; gap: 8px; min-height: 145px; padding: 28px 12px; border: 1px dashed #373737; border-radius: 9px; color: #6e6e6e; text-align: center; }
.task-empty-column > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #3b3b3b; border-radius: 50%; color: #777; }
.task-empty-column .icon { width: 13px; height: 13px; }
.task-empty-column p { margin: 0; font-size: 10px; }
.task-modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .68); backdrop-filter: blur(5px); }
.task-modal-backdrop[hidden] { display: none; }
.task-modal { width: min(560px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 20px; border: 1px solid var(--border-strong); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-lg); }
.task-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.task-modal-head .eyebrow { margin-bottom: 6px; }.task-modal-head h2 { margin: 0; font-size: 22px; }
.task-modal-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; }.task-modal-close:hover { color: #fff; border-color: var(--border-strong); }
.task-modal-close .icon { width: 15px; height: 15px; }
.task-modal form { display: grid; gap: 13px; }.task-modal label { display: grid; gap: 7px; color: var(--text-2); font-size: 10px; font-weight: 600; }.task-modal .textarea { min-height: 95px; }
.task-modal select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); background: var(--surface-2); font-size: 12px; }
.task-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.task-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 15px; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .task-board { grid-template-columns: repeat(4, minmax(240px, 1fr)); } }
@media (max-width: 760px) { .tasks-heading { align-items: start; flex-direction: column; }.tasks-heading h1 { font-size: 31px; }.tasks-heading .button { width: 100%; }.task-toolbar { align-items: stretch; flex-direction: column; }.task-search { width: 100%; }.task-owner-strip { grid-template-columns: repeat(3, minmax(135px, 1fr)); overflow-x: auto; margin-right: -12px; padding-right: 12px; }.task-board { grid-template-columns: repeat(4, minmax(250px, 1fr)); margin-right: -12px; padding-right: 12px; }.task-form-grid { grid-template-columns: 1fr; } }

:root[data-theme="light"] .format-card:hover { background: var(--surface-2); }
:root[data-theme="light"] .channel-grid { background: var(--bg-2); }
:root[data-theme="light"] .landing-note, :root[data-theme="light"] .panel, :root[data-theme="light"] .how-card { box-shadow: var(--shadow); }
:root[data-theme="light"] .nav-link:hover { color: var(--text); background: var(--surface-2); }
:root[data-theme="light"] .nav-link.active { color: var(--text); background: var(--surface-3); }
:root[data-theme="light"] .task-column-head { background: var(--surface); }

/* Kanal keşfi: compact evidence cards that reuse the Thumbnailer surface language. */
.channel-page { padding-bottom: 92px; }
.channel-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: end; gap: 25px; margin-bottom: 16px; padding: 7px 2px 24px; border-bottom: 1px solid var(--border); }
.channel-hero h1 { max-width: 690px; margin-bottom: 13px; font-size: clamp(35px, 4.5vw, 58px); }
.channel-hero h1 span { color: var(--brand); }
.channel-hero p:not(.eyebrow) { max-width: 640px; margin-bottom: 0; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.channel-hero-note { padding: 15px 16px; border: 1px solid var(--border); border-left: 2px solid var(--brand); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.channel-note-kicker { display: block; margin-bottom: 8px; color: var(--brand); font-family: "Roboto Mono", monospace; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.channel-hero-note strong { display: block; margin-bottom: 7px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.channel-hero-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.channel-signal-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.channel-signal-strip article { min-height: 92px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.channel-signal-strip span, .channel-signal-strip small { display: block; color: var(--muted); font-size: 10px; }
.channel-signal-strip strong { display: block; margin: 9px 0 4px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 26px; letter-spacing: -.04em; }
.channel-discovery-panel { overflow: hidden; }
.channel-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 19px 20px 16px; border-bottom: 1px solid var(--border); }
.channel-panel-head .eyebrow { margin-bottom: 7px; }
.channel-panel-head h2 { margin-bottom: 5px; font-size: 22px; }
.channel-panel-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.channel-result-count { flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text-2); background: var(--surface-2); font-family: "Roboto Mono", monospace; font-size: 9px; }
.channel-toolbar { display: flex; align-items: end; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .012); }
.channel-toolbar label { display: grid; gap: 6px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.channel-search { flex: 1; min-width: 0; }
.channel-sort { width: 190px; flex: 0 0 190px; }
.channel-toolbar .input { height: 38px; font-family: Inter, sans-serif; font-size: 11px; text-transform: none; letter-spacing: 0; }
.channel-toolbar select.input { padding-right: 28px; cursor: pointer; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 14px; background: #151515; }
.channel-card { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.channel-card:hover { border-color: #555; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); transform: translateY(-1px); }
.channel-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.channel-avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid rgba(255, 16, 27, .35); border-radius: 11px; color: #fff; background: #311a1b; font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 700; }
.channel-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.channel-avatar span { position: relative; z-index: 0; }
.channel-card-title { min-width: 0; }
.channel-card-title h2 { overflow: hidden; margin: 0 0 4px; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.channel-card-title p { overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.channel-age { flex: 0 0 auto; margin-left: auto; padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; white-space: nowrap; }
.channel-age.fresh { border-color: rgba(57, 215, 123, .26); color: var(--success); background: rgba(57, 215, 123, .07); }
.channel-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 15px 0 10px; }
.channel-metrics div { min-width: 0; padding: 9px 9px 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.channel-metrics span { display: block; overflow: hidden; margin-bottom: 6px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.channel-metrics strong { display: block; overflow: hidden; color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.channel-evidence { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; }
.channel-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; }
.channel-signal { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 9px; }
.channel-signal i { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #d59a55; }
.channel-signal.steady i { background: var(--success); box-shadow: 0 0 0 3px rgba(57, 215, 123, .1); }
.channel-signal.mixed i { background: #d59a55; }
.channel-open { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: #ff8e93; font-size: 10px; font-weight: 600; }
.channel-open:hover { color: #fff; }
.channel-open .icon { width: 13px; height: 13px; }
.channel-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 7px; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: 11px; color: var(--muted); text-align: center; }
.channel-empty strong { color: var(--text-2); font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.channel-empty p { margin: 0; font-size: 10px; }
.channel-source-note { margin: 13px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.channel-source-note strong { color: var(--text-2); }

@media (max-width: 960px) {
  .channel-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); }
  .channel-signal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .channel-hero { align-items: start; grid-template-columns: 1fr; gap: 17px; padding-top: 0; }
  .channel-hero h1 { font-size: 35px; }
  .channel-panel-head { align-items: start; flex-direction: column; }
  .channel-toolbar { align-items: stretch; flex-direction: column; }
  .channel-sort { width: auto; flex-basis: auto; }
  .channel-grid { grid-template-columns: 1fr; padding: 10px; }
}
@media (max-width: 470px) {
  .channel-signal-strip { grid-template-columns: 1fr 1fr; gap: 7px; }
  .channel-signal-strip article { min-height: 84px; padding: 11px; }
  .channel-signal-strip strong { font-size: 22px; }
  .channel-card { padding: 13px; }
  .channel-card-top { align-items: start; }
  .channel-age { margin-left: auto; }
  .channel-metrics { gap: 5px; }
  .channel-metrics div { padding: 8px 7px; }
  .channel-metrics strong { font-size: 14px; }
  .channel-card-foot { align-items: start; flex-direction: column; }
  .channel-open { align-self: flex-end; }
}
