@import url("/fonts/fonts.css");

/* =========================================================================
   Belirteçler
   ========================================================================= */
:root {
  --bg: #F3F4F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --sunken: #ECEEF4;
  --ink: #0D1530;
  --ink-2: #4F5877;
  --ink-3: #8990AA;
  --line: #E1E4ED;
  --line-2: #CBD0DF;
  --cobalt: #2B45F5;
  --cobalt-ink: #2B45F5;
  --cobalt-soft: rgba(43, 69, 245, .10);
  --on-cobalt: #FFFFFF;
  --marker: #FFE24A;
  --on-marker: #0D1530;
  --danger: #D22F3F;
  --ok: #138A4E;
  --love: #E5395A;
  --glass: rgba(255, 255, 255, .78);
  --shadow-1: 0 1px 2px rgba(13, 21, 48, .06);
  --shadow-2: 0 18px 40px -18px rgba(13, 21, 48, .28), 0 2px 6px rgba(13, 21, 48, .04);
  --shadow-3: 0 40px 100px -30px rgba(13, 21, 48, .55);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #090D1A;
  --surface: #10162B;
  --surface-2: #131A33;
  --sunken: #0C1226;
  --ink: #EDEFF8;
  --ink-2: #A3AAC4;
  --ink-3: #6D7594;
  --line: #1E2644;
  --line-2: #2D375C;
  --cobalt: #4A62FF;
  --cobalt-ink: #95A5FF;
  --cobalt-soft: rgba(90, 114, 255, .16);
  --danger: #FF6B78;
  --ok: #4ADE8B;
  --glass: rgba(16, 22, 43, .74);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-3: 0 40px 100px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* =========================================================================
   Temel
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 var(--display); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd, pre { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cobalt-ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--marker); color: var(--on-marker); }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transform: translateY(-150%); transition: transform .2s; }
.skip:focus { transform: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Değişken işareti: tasarımın imzası */
mark.slot { background: var(--marker); color: var(--on-marker); border-radius: 4px; padding: .05em .3em; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* =========================================================================
   Kontroller
   ========================================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 8px 20px -10px rgba(43, 69, 245, .8); }
.btn.primary:hover { background: color-mix(in srgb, var(--cobalt) 88%, #000); }
.btn.primary.done, .btn.done { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: transparent; }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn .i { width: 17px; height: 17px; }

:where(input, textarea, select) { width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
:where(input, textarea, select):hover { border-color: var(--line-2); }
:where(input, textarea, select):focus { outline: none; border-color: var(--cobalt-ink); box-shadow: 0 0 0 4px var(--cobalt-soft); }
:where(textarea) { resize: vertical; min-height: 96px; line-height: 1.6; }
:where(textarea.mono) { font: 13.5px/1.75 var(--mono); }
::placeholder { color: var(--ink-3); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600; display: inline-grid; place-items: center; transition: color .15s, background .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(13, 21, 48, .16); }
.seg.icons button { width: 36px; padding: 0; }
.seg .i { width: 17px; height: 17px; }
.select select { appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238990AA' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center; width: auto; }

.kind-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 620; background: rgba(9, 13, 26, .6); color: #fff; backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); }
.kind-chip .i { width: 14px; height: 14px; }
.kind-chip.plain { background: var(--sunken); color: var(--ink); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; height: 30px; padding: 0 12px 0 10px; font-size: 13px; }
.cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 580; color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(13, 21, 48, .15); flex: none; }

.wordmark { display: inline-flex; align-items: baseline; font-size: 19px; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; }
.wordmark i { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: .82em; color: var(--cobalt-ink); margin: 0 1px; }

/* =========================================================================
   Üst çubuk
   ========================================================================= */
.top { position: sticky; top: 0; z-index: 30; padding: 12px 0; pointer-events: none; }
.top-in { pointer-events: auto; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 9px 0 24px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); transition: box-shadow .25s, border-color .25s; }
.top.scrolled .top-in { box-shadow: 0 14px 36px -18px rgba(13, 21, 48, .38); border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.search { position: relative; flex: 1; max-width: 540px; margin-left: auto; }
.search > .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.search input { height: 42px; padding: 0 64px 0 44px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: transparent; font-size: 15px; }
.search input:hover { border-color: transparent; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.search input:focus { background: var(--surface); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 11.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; pointer-events: none; background: var(--surface); }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.saved { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--love) 13%, transparent); color: var(--love); font-weight: 680; font-size: 14px; flex: none; }
.saved:hover { background: color-mix(in srgb, var(--love) 20%, transparent); }
.saved .i { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================================
   Hero + canlı prompt sahnesi
   ========================================================================= */
.hero { padding: clamp(36px, 7vw, 92px) 0 clamp(48px, 7vw, 88px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(44px, 7.6vw, 108px); line-height: .94; letter-spacing: -.055em; font-weight: 780; }
.lead { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.stats { display: flex; gap: 30px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 32px; font-weight: 720; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13.5px; color: var(--ink-2); }

.stage-wrap { margin-top: clamp(36px, 5vw, 64px); }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-2); overflow: hidden; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); }
.stage-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 580; white-space: nowrap; transition: background .15s, color .15s; }
.stage-tabs button:hover { color: var(--ink); background: var(--sunken); }
.stage-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.stage-body { padding: clamp(24px, 4.2vw, 52px) clamp(22px, 4.5vw, 56px); }
.stage-body.with-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.stage-text { font-size: clamp(19px, 2.25vw, 29px); line-height: 1.62; letter-spacing: -.018em; font-weight: 440; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto; scrollbar-width: thin; }
.stage-text input.blank { font: inherit; letter-spacing: inherit; line-height: 1.25; width: auto; min-width: 3ch; field-sizing: content; padding: .02em .32em; margin: 0 .04em; border: 0; border-radius: 7px; color: var(--on-marker); background: var(--marker); background-image: linear-gradient(90deg, rgba(13, 21, 48, .35) 50%, transparent 50%); background-size: 8px 2px; background-repeat: repeat-x; background-position: 0 100%; vertical-align: baseline; transition: box-shadow .15s; }
.stage-text input.blank.on { background-image: none; font-weight: 560; }
.stage-text input.blank::placeholder { color: rgba(13, 21, 48, .5); }
.stage-text input.blank:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 40%, transparent); }
.stage-text input.blank:focus { outline: 2px solid var(--cobalt-ink); outline-offset: 3px; box-shadow: none; }
.stage-out { position: relative; border-radius: 16px; overflow: hidden; background: var(--sunken); }
.stage-out img { display: block; width: 100%; height: auto; }
.stage-out figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(9, 13, 26, .62); color: #fff; font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.stage-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.stage-meta .model { display: inline-flex; align-items: center; gap: 6px; }
.stage-meta .i { width: 15px; height: 15px; }
.stage-status.ok, .d-progress.ok { color: var(--ok); font-weight: 600; }

/* =========================================================================
   Katalog
   ========================================================================= */
.catalog { padding-bottom: 110px; outline: none; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-title { display: flex; align-items: baseline; gap: 14px; }
.cat-title h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.04em; font-weight: 740; line-height: 1.1; }
.cat-title p { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; margin: 22px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 580; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.chip small { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sunken); font: 600 11.5px/22px var(--display); text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.chip.saved .i { width: 15px; height: 15px; color: var(--love); fill: var(--love); stroke: var(--love); }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.afilter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 13px; border-radius: 999px; border: 0; background: var(--marker); color: var(--on-marker); font-size: 13.5px; font-weight: 620; }
.afilter .i { width: 14px; height: 14px; }
.afilter:hover { filter: brightness(.95); }
.clear { border: 0; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 580; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.clear:hover { color: var(--ink); }

.masonry { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 26px; }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ---------- Kart ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.cover { position: relative; border-radius: 13px; overflow: hidden; background: var(--sunken); cursor: pointer; isolation: isolate; }
.cover.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .5s ease, transform .7s var(--ease); }
.card:hover .cover.pic img { transform: scale(1.035); }
.cover.multi img:not(.on) { opacity: 0; }
.cover.typo { background: var(--t-bg); color: var(--t-fg); padding: 50px 20px 20px; min-height: 176px; }
.cover.typo p { font: 13.5px/1.72 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 232px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }
.cover.typo mark.slot { background: var(--t-slot); color: var(--t-slot-fg); }
.media-top { position: absolute; z-index: 2; top: 10px; left: 10px; right: 54px; display: flex; gap: 6px; pointer-events: none; }
.media-btn { position: absolute; z-index: 3; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .95); color: #0D1530; box-shadow: 0 6px 18px -6px rgba(8, 12, 30, .45); transition: opacity .2s, transform .2s var(--ease), background .15s, color .15s; }
.media-btn .i { width: 16px; height: 16px; }
.media-btn.fav { top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; }
.media-btn.fav:hover { color: var(--love); }
.media-btn.fav[aria-pressed="true"] { background: var(--love); color: #fff; }
.media-btn.fav[aria-pressed="true"] svg, .fav-t[aria-pressed="true"] svg { fill: currentColor; }
.fav-t[aria-pressed="true"] { color: var(--love); }
.media-btn.copy { right: 10px; bottom: 10px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 640; }
.media-btn.copy:hover { background: #0D1530; color: #fff; }
.media-btn.copy.done { background: var(--ok); color: #fff; }
.dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: rgba(9, 13, 26, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .25s var(--ease), background .25s; }
.dots i.on { width: 16px; background: #fff; }
@media (hover: hover) and (min-width: 700px) {
  .card .media-btn.copy, .card .media-btn.fav[aria-pressed="false"] { opacity: 0; transform: translateY(4px); }
  .card:hover .media-btn, .card:focus-within .media-btn { opacity: 1; transform: none; }
}
.card-body { padding: 14px 10px 8px; }
.card-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.feat { display: inline-flex; align-items: center; gap: 4px; color: #A77500; font-weight: 620; }
:root[data-theme="dark"] .feat { color: #FFCF40; }
.feat .i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.new { height: 20px; padding: 0 7px; border-radius: 5px; background: var(--marker); color: var(--on-marker); font-size: 12px; font-weight: 700; line-height: 20px; }
.card h3 { font-size: 19.5px; line-height: 1.22; letter-spacing: -.025em; font-weight: 690; }
.card-link { background: none; border: 0; padding: 0; margin: 0; text-align: left; font: inherit; letter-spacing: inherit; color: inherit; transition: color .15s; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.card:hover .card-link { color: var(--cobalt-ink); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--cobalt-ink); outline-offset: 3px; }
.card-desc { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.card-foot > span { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px; border-radius: 7px; background: var(--sunken); font-size: 12.5px; font-weight: 560; color: var(--ink-2); min-width: 0; }
.card-foot .i { width: 13px; height: 13px; }
.card-foot .model { color: var(--ink); max-width: 100%; }
.card-foot .model span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot .slots { background: var(--marker); color: var(--on-marker); font-weight: 680; }
.card-foot .ready { background: var(--cobalt-soft); color: var(--cobalt-ink); font-weight: 650; }
.card-foot .copies { margin-left: auto; background: none; padding-right: 2px; font-variant-numeric: tabular-nums; }

/* Liste görünümü */
.masonry.list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.masonry.list .col { gap: 12px; }
.masonry.list .card { display: flex; gap: 22px; align-items: stretch; padding: 8px; }
.masonry.list .card:hover { transform: none; }
.masonry.list .cover { flex: 0 0 240px; align-self: flex-start; aspect-ratio: 4 / 3 !important; min-height: 0; }
.masonry.list .cover.typo { padding: 44px 16px 14px; }
.masonry.list .cover.typo p { font-size: 12px; max-height: 110px; }
.masonry.list .card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px 10px 0; }
.masonry.list .card h3 { font-size: 22px; }
.masonry.list .dots { display: none; }

.void { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--ink-2); }
.void-mark { font: 500 22px var(--mono); margin-bottom: 18px; }
.void h3 { color: var(--ink); font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.void .btn { margin-top: 20px; }
.skeleton { height: 330px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--sunken) 30%, var(--surface) 50%, var(--sunken) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s infinite; }
.skeleton.short { height: 240px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* =========================================================================
   Detay penceresi
   ========================================================================= */
dialog.detail { width: min(820px, calc(100vw - 32px)); height: min(900px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden; }
dialog.detail.has-media { width: min(1200px, calc(100vw - 32px)); }
dialog.detail[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: rise .28s var(--ease); }
dialog.detail.has-media[open] { grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); }
dialog.detail::backdrop { background: rgba(6, 9, 20, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
.d-media { position: relative; background: #070A14; min-height: 0; min-width: 0; }
.gallery { position: absolute; inset: 0; display: flex; flex-direction: column; }
.g-main { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.g-main::before { content: ""; position: absolute; inset: -60px; background: var(--src) center / cover no-repeat; filter: blur(48px) saturate(1.3); opacity: .5; }
.g-main img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0D1530; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.g-main:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
@media (hover: none) { .g-nav { opacity: 1; } }
.g-nav.prev { left: 14px; }
.g-nav.next { right: 14px; }
.g-count { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(9, 13, 26, .6); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: rgba(7, 10, 20, .9); scrollbar-width: thin; }
.g-thumb { flex: 0 0 68px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; background: none; transition: opacity .15s, border-color .15s; }
.g-thumb:hover { opacity: .9; }
.g-thumb[aria-current="true"] { border-color: #fff; opacity: 1; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.d-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.d-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 30px; border-bottom: 1px solid var(--line); }
.d-crumbs { display: flex; align-items: center; gap: 14px; font-size: 14px; min-width: 0; }
.d-pos { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.d-tools { display: flex; gap: 2px; }
.d-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 30px 30px 36px; }
.d-head h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.06; letter-spacing: -.04em; font-weight: 760; text-wrap: balance; }
.d-desc { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.model-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.model-pill b { color: var(--ink); font-weight: 650; }
.model-pill .i { width: 15px; height: 15px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.tag { border: 0; background: none; padding: 3px 8px; border-radius: 6px; font-size: 13.5px; color: var(--cobalt-ink); font-weight: 560; }
.tag:hover { background: var(--cobalt-soft); }
.d-sec { margin-top: 32px; }
.d-sec > h3, .d-sec-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.d-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.d-sec-head h3 { margin: 0; }
.vars { display: grid; gap: 14px; }
.var label { display: block; margin-bottom: 7px; font: 500 12.5px var(--mono); }
.var textarea { min-height: 88px; }
.code { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.8 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.code.neg { color: var(--ink-2); }
.params { display: flex; flex-wrap: wrap; gap: 8px; }
.params > span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.params small { font-size: 12.5px; color: var(--ink-3); }
.params b { font-weight: 650; }
.params code { font: 500 13px var(--mono); }
.example { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.example summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; font-weight: 640; }
.example summary::-webkit-details-marker { display: none; }
.example summary .i { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.example[open] summary .i { transform: rotate(90deg); }
.example summary:hover { background: var(--surface-2); }
.example .io { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.example .io > div { padding: 14px 16px; min-width: 0; }
.example .io > div + div { border-left: 1px solid var(--line); }
.example .io > div:only-child { grid-column: 1 / -1; }
.example .io .out { background: var(--surface-2); }
.example .lbl { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; }
.example pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 var(--mono); }
.related { display: grid; gap: 8px; }
.rel { display: flex; align-items: center; gap: 14px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: none; text-align: left; transition: border-color .15s, background .15s; }
.rel:hover { border-color: var(--line-2); background: var(--surface-2); }
.rel-thumb { flex: 0 0 64px; height: 48px; border-radius: 8px; overflow: hidden; position: relative; }
.rel-thumb .cover { position: absolute; inset: 0; aspect-ratio: auto !important; border-radius: 0; min-height: 0; padding: 5px 6px; }
.rel-thumb .cover.typo p { font-size: 4.5px; line-height: 1.5; max-height: none; }
.rel-t { display: flex; flex-direction: column; min-width: 0; }
.rel-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-t small { font-size: 12.5px; color: var(--ink-3); }
.d-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 30px; border-top: 1px solid var(--line); background: var(--surface); }
.d-progress { font-size: 13.5px; color: var(--ink-2); }

/* =========================================================================
   Toast, uçan tema düğmesi, alt bilgi
   ========================================================================= */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 16px; height: 16px; color: var(--ok); }
.toast[data-kind="err"] .i { color: var(--danger); }

.fab { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); background: var(--glass); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 14px 34px -12px rgba(8, 14, 40, .5); transition: transform .25s var(--ease), box-shadow .25s; }
.fab:hover { transform: translateY(-3px); }
.fab:active { transform: scale(.94); }
.fab > span { position: absolute; display: grid; place-items: center; transition: transform .5s cubic-bezier(.3, .9, .3, 1.2), opacity .3s; }
.fab .i { width: 21px; height: 21px; }
.fab[data-mode="dark"] .fab-sun { color: #FFD84A; }
.fab[data-mode="dark"] .fab-moon { transform: rotate(-90deg) scale(.3); opacity: 0; }
.fab[data-mode="light"] .fab-moon { color: var(--cobalt); }
.fab[data-mode="light"] .fab-sun { transform: rotate(90deg) scale(.3); opacity: 0; }
body:has(.sheet) .fab { display: none; }

.foot { border-top: 1px solid var(--line); padding: 30px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 20px; }
.foot-in p { flex: 1; color: var(--ink-2); font-size: 14px; }

/* =========================================================================
   Duyarlı düzen (vitrin)
   ========================================================================= */
@media (max-width: 960px) {
  .hero-copy { grid-template-columns: 1fr; align-items: start; }
  .stage-body.with-out { grid-template-columns: 1fr; }
  .stage-out { max-width: 360px; }
  dialog.detail.has-media[open] { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
}
@media (max-width: 780px) {
  dialog.detail, dialog.detail.has-media { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  dialog.detail.has-media[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 40dvh) minmax(0, 1fr); }
  .d-bar { padding-left: 18px; }
  .d-scroll { padding: 22px 18px 28px; }
  .d-action { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) 18px; }
  .example .io { grid-template-columns: 1fr; }
  .example .io > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .top { padding: 8px 0; }
  .top-in { gap: 10px; height: 54px; padding: 0 7px 0 18px; }
  .wordmark { font-size: 17px; }
  .search kbd { display: none; }
  .search input { padding-right: 14px; }
  .saved { padding: 0 12px; }
  .stats { gap: 22px; }
  .stage { border-radius: 20px; }
  .stage-foot { flex-wrap: wrap; padding-left: 16px; }
  .stage-out img { max-height: 200px; object-fit: cover; }
  .stage-body { padding: 22px 20px; }
  .stage-foot .btn { flex: 1; }
  .controls { width: 100%; }
  .controls #typeseg { flex: 1 0 100%; }
  .controls #typeseg button { flex: 1; }
  .controls .select { flex: 1; }
  .controls .select select { width: 100%; }
  .masonry.list .card { gap: 14px; }
  .masonry.list .cover { flex-basis: 108px; }
  .masonry.list .cover .media-top, .masonry.list .media-btn, .masonry.list .card-desc, .masonry.list .feat, .masonry.list .card-foot .meta { display: none; }
  .masonry.list .card-kicker { white-space: nowrap; overflow: hidden; margin-bottom: 4px; }
  .masonry.list .card-body { padding: 4px 6px 4px 0; }
  .masonry.list .card-foot { margin-top: 10px; }
  .masonry.list .card h3 { font-size: 17px; }
  .foot-in { flex-wrap: wrap; }
  .fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Yönetim paneli
   ========================================================================= */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate-box { width: min(400px, 100%); }
.gate-box .wordmark { font-size: 22px; margin-bottom: 40px; }
.gate-box h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.08; font-weight: 760; }
.gate-box .sub { color: var(--ink-2); margin: 10px 0 28px; }
.err { color: var(--danger); font-size: 14px; min-height: 22px; margin-top: 10px; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.side .wordmark { padding: 2px 12px 28px; }
.side .nav-item { display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 15px; font-weight: 580; color: var(--ink-2); transition: background .15s, color .15s; }
.side .nav-item:hover { background: var(--sunken); color: var(--ink); }
.side .nav-item.current { background: var(--sunken); color: var(--ink); }
.side .nav-item .count { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side .grow { flex: 1; }
.side .who { padding: 12px; margin-bottom: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.side .who b { display: block; color: var(--ink); font-size: 14px; }
.main { padding: 36px clamp(20px, 4vw, 56px) 110px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 38px; letter-spacing: -.045em; line-height: 1.05; font-weight: 760; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 30px 0 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.numbers > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.numbers > div:first-child { border-left: 0; }
.numbers b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; font-weight: 720; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 13.5px; color: var(--ink-2); }
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.find { position: relative; flex: 1; min-width: 220px; max-width: 440px; }
.find > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.find input { height: 42px; padding-left: 42px; border-radius: 999px; }
.rows { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.row-h, .row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 150px 96px 64px 40px 124px; gap: 16px; align-items: center; padding: 12px 18px; }
.row-h { padding-block: 11px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.row { border-top: 1px solid var(--line); transition: background .15s; }
.row-h + .row { border-top: 0; }
.row:hover { background: var(--surface-2); }
.thumb { position: relative; width: 88px; height: 64px; border-radius: 10px; overflow: hidden; }
.thumb .cover { position: absolute; inset: 0; aspect-ratio: auto !important; min-height: 0; border-radius: 0; cursor: default; padding: 7px 8px; }
.thumb .cover.typo p { font-size: 5.5px; line-height: 1.5; max-height: none; }
.thumb .cover img { transition: none; }
.row .title { font-weight: 680; font-size: 16px; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .num { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.row .acts { display: flex; justify-content: flex-end; gap: 2px; }
.tybadge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tybadge .i { width: 15px; height: 15px; color: var(--ink-3); }
.star-btn { color: var(--ink-3); }
.star-btn[aria-pressed="true"] { color: #D69A00; }
.star-btn[aria-pressed="true"] svg { fill: currentColor; }
.none { padding: 72px 20px; text-align: center; color: var(--ink-2); }
.none h3 { color: var(--ink); font-size: 21px; margin-bottom: 4px; }
.none .btn { margin-top: 18px; }

/* Düzenleyici */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 9, 20, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
.sheet { position: fixed; z-index: 41; inset: 0 0 0 auto; width: min(1160px, 100vw); display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "form prev" "foot foot"; background: var(--bg); box-shadow: -30px 0 80px -30px rgba(6, 10, 30, .55); animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-head h2 { font-size: 21px; letter-spacing: -.03em; font-weight: 720; }
.sheet-head .dirty { font-size: 13px; color: var(--ink-3); margin-left: 12px; font-weight: 500; }
.sheet-form { grid-area: form; overflow: auto; padding: 8px 30px 40px; }
.sheet-prev { grid-area: prev; overflow: auto; padding: 26px 24px; border-left: 1px solid var(--line); background: var(--sunken); }
.sheet-prev > p { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; }
.sheet-prev .card:hover { transform: none; }
.sheet-foot { grid-area: foot; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 14px 12px 30px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot .err { margin: 0; flex: 1; min-height: 0; }
.sheet-foot .keys { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.sheet-foot .keys kbd { font: 500 11.5px var(--mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.group { padding: 26px 0; border-bottom: 1px solid var(--line); }
.group:last-of-type { border-bottom: 0; }
.group > h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 4px; }
.group > .lede { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.group-head h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 620; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.found { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; color: var(--ink-3); }
.found mark.slot { font: 500 12px var(--mono); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.kind:hover { border-color: var(--line-2); }
.kind[aria-checked="true"] { border-color: var(--cobalt-ink); background: color-mix(in srgb, var(--cobalt) 7%, var(--surface)); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.kind .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--sunken); flex: none; transition: background .15s, color .15s; }
.kind[aria-checked="true"] .ic { background: var(--cobalt); color: #fff; }
.kind b { display: block; font-size: 16px; letter-spacing: -.01em; }
.kind .d { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.imgs.over { outline: 2px dashed var(--cobalt-ink); outline-offset: 6px; border-radius: 10px; }
.itile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); cursor: grab; }
.itile.dragging { opacity: .35; }
.itile.target { outline: 2px solid var(--cobalt-ink); outline-offset: 2px; }
.itile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.itile .badge { position: absolute; left: 7px; top: 7px; padding: 1px 8px; border-radius: 999px; background: var(--marker); color: var(--on-marker); font-size: 12px; font-weight: 700; }
.itile .ibtns { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.itile:hover .ibtns, .itile:focus-within .ibtns { opacity: 1; }
@media (hover: none) { .itile .ibtns { opacity: 1; } }
.itile .ibtns button { height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .96); color: #0D1530; font-size: 12px; font-weight: 640; display: inline-flex; align-items: center; gap: 4px; }
.itile .ibtns button.del { color: #C42B3A; }
.itile .ibtns .i { width: 13px; height: 13px; }
.itile.busy { cursor: default; }
.itile.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: var(--cobalt); transition: width .15s; }
.iadd { aspect-ratio: 4 / 3; border-radius: 10px; border: 1.5px dashed var(--line-2); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px; color: var(--ink-2); font-size: 12.5px; text-align: center; transition: border-color .15s, color .15s; }
.iadd:hover { border-color: var(--cobalt-ink); color: var(--ink); }
.iadd b { font-size: 13.5px; color: var(--ink); }
.iadd .i { width: 22px; height: 22px; color: var(--cobalt-ink); margin-bottom: 4px; }
.ex-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; background: var(--surface); }
.ex-edit .ex-head { display: flex; gap: 8px; margin-bottom: 10px; }
.ex-edit textarea { min-height: 76px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 620; user-select: none; }
.switch input { appearance: none; width: 42px; height: 24px; padding: 0; margin: 0; border-radius: 999px; background: var(--line-2); border: 0; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--cobalt); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus { box-shadow: 0 0 0 4px var(--cobalt-soft); }
dialog.confirm { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
dialog.confirm[open] { animation: rise .22s var(--ease); }
dialog.confirm::backdrop { background: rgba(6, 9, 20, .55); }
.confirm h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 8px; }
.confirm p { color: var(--ink-2); margin-bottom: 24px; }
.confirm .acts { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 1100px) {
  .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "foot"; }
  .sheet-prev { display: none; }
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numbers > div:nth-child(4) { border-left: 0; }
  .numbers > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .wordmark { padding: 0 10px 0 4px; }
  .side .grow, .side .who { display: none; }
  .side .nav-item { width: auto; white-space: nowrap; }
  .side .nav-item .count { margin-left: 6px; }
  .row-h { display: none; }
  .row { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .row .colcat, .row .coltype, .row .num, .row .star-btn { display: none; }
  .thumb { width: 72px; height: 54px; }
  .sheet-form { padding: 4px 18px 32px; }
  .sheet-head, .sheet-foot { padding-left: 18px; }
  .sheet-foot .keys { display: none; }
}
@media (max-width: 560px) {
  .two, .kinds { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div:nth-child(3), .numbers > div:nth-child(5) { border-left: 0; }
  .numbers > div:nth-child(4) { border-left: 1px solid var(--line); }
  .numbers > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .page-head h1 { font-size: 32px; }
}

/* Profil */
.side .nav-item[aria-current="page"] { background: var(--sunken); color: var(--ink); }
.view[hidden] { display: none; }
.profile-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel h2 { font-size: 21px; letter-spacing: -.03em; font-weight: 720; }
.panel .lede { margin: 6px 0 24px; max-width: 56ch; }
.muted { color: var(--ink-2); font-size: 14.5px; }
.identity { text-align: left; }
.avatar { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: var(--cobalt); color: #fff; font-size: 28px; font-weight: 720; letter-spacing: -.03em; box-shadow: 0 10px 24px -10px rgba(43, 69, 245, .8); }
.identity .muted { margin-top: 2px; }
.facts { margin: 22px 0 18px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 620; }
.pw-form { max-width: 460px; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); display: grid; place-items: center; }
.reveal:hover { color: var(--ink); background: var(--sunken); }
.divider { height: 1px; background: var(--line); margin: 6px 0 22px; }
.meter-row { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
.meter { display: flex; gap: 5px; flex: 1; }
.meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--sunken); transition: background .2s; }
.meter i.on.l1 { background: var(--danger); }
.meter i.on.l2 { background: #E39A1B; }
.meter i.on.l3 { background: #9AC02B; }
.meter i.on.l4 { background: var(--ok); }
.meter-label { min-width: 48px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: right; }
.rules { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.rules li { display: flex; align-items: center; gap: 9px; transition: color .15s; }
.rules .i { width: 16px; height: 16px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); stroke-width: 3; color: transparent; transition: all .15s; }
.rules li.ok { color: var(--ink); }
.rules li.ok .i { background: var(--ok); border-color: var(--ok); color: #fff; }
.form-actions { margin-top: 20px; }
@media (max-width: 1000px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .panel { padding: 22px 18px; } }
