/* ZenOne.Space — sade, sıcak, sanatsal bir stüdyo yüzeyi. */
:root {
  --paper: #f5f1ea; --surface: #fffcf7; --raised: #ffffff; --ink: #1d1a17; --ink-2: #4a443d;
  --mute: #8a8176; --line: #e6dfd4; --line-2: #d8cfc1;
  --accent: #b4532a; --accent-ink: #fff8f2; --accent-soft: #f4e3d8;
  --sage: #56715f; --sage-soft: #e3ebe4; --amber: #a36a14; --amber-soft: #f6ead3;
  --rose: #a4433b; --rose-soft: #f5e1de; --ocean: #33566b; --ocean-soft: #dfe8ee;
  --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 8px 24px -12px rgba(40, 30, 20, .12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210; --surface: #1b1917; --raised: #221f1c; --ink: #efe8dd; --ink-2: #c9c0b3;
    --mute: #8f867a; --line: #2e2a26; --line-2: #3b3631;
    --accent: #e2875c; --accent-ink: #1b1109; --accent-soft: #3a261c;
    --sage: #9fbea8; --sage-soft: #1f2b23; --amber: #e0b163; --amber-soft: #33291a;
    --rose: #e79a90; --rose-soft: #3a211e; --ocean: #9cc0d6; --ocean-soft: #1c2a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

/* Yerleşim: solda sakin bir kenar çubuğu, sağda nefes alan içerik. */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 18px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px; background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background:
  radial-gradient(circle at 35% 35%, var(--accent) 0 38%, transparent 39%), conic-gradient(from 200deg, var(--sage), var(--ocean), var(--accent), var(--sage)); }
.brand-name { font: 500 19px/1 var(--serif); letter-spacing: .01em; }
.brand-name i { font-style: italic; color: var(--mute); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav span { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px;
  border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.nav span { color: var(--mute); cursor: default; }
.nav .soon { font-size: 11px; letter-spacing: .04em; color: var(--mute); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.count { font-size: 12px; color: var(--accent); font-weight: 600; }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--mute); line-height: 1.5; }
.side-foot b { display: block; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 6px; vertical-align: 1px; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.main { padding: 44px clamp(20px, 5vw, 64px) 96px; max-width: 1180px; width: 100%; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
h1 { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; margin: 6px 0 10px; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font: 500 22px/1.2 var(--serif); margin: 0; }
h3 { font: 600 14px/1.3 var(--sans); margin: 0; }
.lede { color: var(--ink-2); max-width: 62ch; margin: 0; }
.muted { color: var(--mute); font-size: 13px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

/* Proje kartları: üretken kapak + sakin bilgi satırı. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); }
.pcard .cover { height: 138px; display: block; }
.pcard .cover svg { width: 100%; height: 100%; display: block; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard .title { font: 500 19px/1.25 var(--serif); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--mute); font-size: 12.5px; }
.pcard.new { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; min-height: 220px; }
.pcard.new summary { list-style: none; cursor: pointer; padding: 22px; text-align: center; color: var(--ink-2); }
.pcard.new summary::-webkit-details-marker { display: none; }
.plus { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  margin: 0 auto 10px; font: 300 24px/1 var(--sans); color: var(--accent); }
.pcard.new[open] { border-style: solid; background: var(--surface); }
.pcard.new form { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }

/* Proje başlığı */
.hero { position: relative; border-radius: calc(var(--r) + 4px); overflow: hidden; min-height: 210px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .veil { position: relative; width: 100%; padding: 26px 30px; color: #fff;
  background: linear-gradient(to top, rgba(18, 14, 10, .62), rgba(18, 14, 10, 0)); }
.hero h1 { color: #fff; margin: 4px 0 4px; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 70ch; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }

.tabs { display: flex; gap: 4px; margin: 22px 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 500; }
.tabs .n { font-size: 11px; color: var(--accent); margin-left: 4px; font-weight: 600; }

/* Yüzeyler */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* Çıktı kartı */
.out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.out-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.out-title { font: 500 17px/1.3 var(--serif); word-break: break-word; }
.wave { display: flex; align-items: center; gap: 12px; }
.play { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.play svg { width: 14px; height: 14px; }
.play.on { background: var(--accent); }
.wave-bars { flex: 1; height: 44px; display: block; cursor: pointer; }
.wave-bars rect { fill: var(--line-2); transition: fill .1s; }
.wave-bars rect.p { fill: var(--accent); }
.doc { font: 15px/1.7 var(--serif); color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 14px 16px;
  max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.thumb { max-width: 100%; border-radius: 10px; display: block; }
.provenance { font-size: 12px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.provenance code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }

/* Durum rozetleri */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-aday { background: var(--ocean-soft); color: var(--ocean); }
.b-incelemede, .b-queued, .b-leased, .b-retry_wait { background: var(--amber-soft); color: var(--amber); }
.b-running, .b-persisting, .b-validating { background: var(--amber-soft); color: var(--amber); }
.b-running::before, .b-persisting::before, .b-validating::before, .b-leased::before { animation: pulse 1.2s infinite; }
.b-kabul, .b-succeeded { background: var(--sage-soft); color: var(--sage); }
.b-revizyon_istendi, .b-failed { background: var(--rose-soft); color: var(--rose); }
.b-arsiv, .b-cancelled { background: var(--paper); color: var(--mute); }

/* İnceleme eylemleri */
.review { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.review input[name=note] { flex: 1; min-width: 160px; }
.history { font-size: 12.5px; color: var(--mute); }
.history summary { cursor: pointer; }
.history ol { margin: 8px 0 0; padding-left: 18px; }

/* İş satırları */
.jobs { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.job:last-child { border-bottom: 0; }
.job .what { font-weight: 500; }
.job .err { grid-column: 1 / -1; font-size: 12.5px; color: var(--rose); }
.job .actions { display: flex; gap: 8px; align-items: center; }

/* Formlar */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.short { min-height: 80px; }
textarea { min-height: 140px; resize: vertical; font: 15px/1.7 var(--serif); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--mute); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.row > button, .row > .btn { flex: none; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 99px; padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--accent); color: var(--accent-ink); transition: filter .15s, background .15s; }
.btn:hover, button:hover { filter: brightness(1.06); }
.btn.ghost, button.ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn.ghost:hover, button.ghost:hover { background: var(--paper); filter: none; }
.btn.small, button.small { padding: 6px 13px; font-size: 13px; }
button.ok { background: var(--sage); color: #fff; }
button.warn { background: transparent; color: var(--rose); border-color: var(--rose-soft); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; text-align: center; color: var(--mute); }
.drop input[type=file] { border: 0; background: transparent; padding: 8px 0; }

/* Yardımcılar */
.empty { text-align: center; padding: 38px 20px; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h3 { font: 500 18px var(--serif); color: var(--ink-2); margin-bottom: 4px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; }
.kanban .col { display: flex; flex-direction: column; gap: 12px; }
.kanban .col-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); padding: 0 4px; }
.notice { padding: 14px 18px; border-radius: var(--r); background: var(--rose-soft); color: var(--rose); }
.honest { font-size: 12px; color: var(--mute); border-left: 2px solid var(--line-2); padding-left: 10px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.strip .out { min-width: 300px; max-width: 340px; }

/* Giriş yüzeyi */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-art { position: fixed; inset: 0; opacity: .55; }
.auth-art svg { width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) { .auth-art { opacity: .28; } }
.auth-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 32px 26px; box-shadow: 0 30px 80px -30px rgba(30, 20, 10, .35); display: flex; flex-direction: column; gap: 14px; }
.auth-card .brand { padding: 0; margin-bottom: 10px; }
.auth-card h1 { font-size: 34px; margin: 0; }
.auth-card form.stack { margin-top: 6px; }
.auth-card button { width: 100%; padding: 11px 18px; }
.auth-card .resend { display: flex; gap: 12px; align-items: center; }
.auth-card .resend button { width: auto; }
.otp { font: 600 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4em; text-align: center; padding: 14px; }
.auth-foot { margin: 8px 0 0; font: italic 14px var(--serif); color: var(--mute); text-align: center; }
.signout { margin-top: 10px; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .nav { flex-direction: row; }
  .nav span { display: none; }
  .side-foot { display: none; }
  .main { padding: 26px 16px 80px; }
  .cols { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(4, 78vw); }
  .hero .veil { padding: 20px; }
}
