@font-face { font-family: "Orbitron"; src: url("/fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #02070d;
  --cyan: #3ad6ff;
  --cyan-2: #8ff3ff;
  --faint: rgba(58, 214, 255, 0.1);
  --line: rgba(58, 214, 255, 0.25);
  --amber: #ffb547;
  --green: #4dffb0;
  --red: #ff4d61;
  --text: #cfefff;
  --muted: #6fa3b8;
  --glow: 0 0 14px rgba(58, 214, 255, 0.6);
  --accent: var(--cyan);
  --level: 0;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(ellipse 55% 30% at 50% 38%, rgba(88, 70, 190, 0.28), transparent 70%),
    radial-gradient(ellipse at 50% 42%, rgba(20, 90, 130, 0.3), transparent 62%),
    linear-gradient(rgba(58, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(58, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--bg);
  color: var(--text);
  font-family: "Rajdhani", -apple-system, system-ui, sans-serif;
  font-weight: 500;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 8px);
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}
[hidden] { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.logo { font-family: "Orbitron", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 0.3em; color: var(--cyan-2); text-shadow: var(--glow); }
.status { display: flex; align-items: center; gap: 8px; font-family: "Orbitron", sans-serif; font-size: 14px; color: var(--cyan-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.bad { background: var(--red); box-shadow: 0 0 8px var(--red); }
.wx { text-align: center; padding-top: 8px; font-size: 14px; letter-spacing: 0.08em; color: var(--muted); min-height: 1.6em; }
.wx b { color: var(--cyan-2); font-family: "Orbitron", sans-serif; font-weight: 600; }

/* ---------- Reaktör = mikrofon butonu ---------- */
.app { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.reactor {
  position: relative;
  width: min(84vw, 46vh, 420px);
  aspect-ratio: 1;
  margin: 2vh auto 0;
  border: 0;
  background: none;
  border-radius: 50%;
  touch-action: none;
  -webkit-touch-callout: none;
  flex-shrink: 0;
}
.reactor-svg, .fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { fill: none; stroke: var(--accent); }
.ring circle { fill: none; }
.r1 circle { stroke-width: 2; stroke-dasharray: 3 9; opacity: 0.55; }
.r2 { opacity: 0.75; }
.r2 line { stroke-width: 2; }
.r2 line.major { stroke-width: 4; }
.r3 circle { stroke-width: 8; stroke-dasharray: 160 30 40 30 90 50; opacity: 0.9; }
.r4 circle { stroke-width: 2; opacity: 0.6; }
.r4 .r4b { stroke-width: 3; stroke-dasharray: 2 14; opacity: 0.9; }
.r6 path { fill: rgba(58, 214, 255, 0.16); stroke: var(--accent); stroke-width: 2; }
.core { transform: scale(calc(1 + var(--level) * 0.25)); transition: transform 0.08s linear; }
.core-halo { opacity: calc(0.55 + var(--level) * 0.45); }
.core-ring { fill: none; stroke: #e8fbff; stroke-width: 3; }
.mic { fill: none; stroke: #02233a; stroke-width: 2.2; stroke-linecap: round; opacity: 0.85; }
.mic rect { fill: rgba(2, 35, 58, 0.15); }

body.state-listening { --accent: var(--amber); }
body.state-listening .core-ring { stroke: #fff1dc; }
body.state-thinking { --accent: var(--cyan-2); }
body.state-error { --accent: var(--red); }
.reactor:active .core-ring { stroke-width: 5; }

.state { margin-top: 1.4vh; font-weight: 600; font-size: 17px; letter-spacing: 0.55em; padding-left: 0.55em; color: var(--cyan-2); text-shadow: var(--glow); }
body.state-listening .state { color: var(--amber); text-shadow: 0 0 14px rgba(255, 181, 71, 0.6); }
body.state-thinking .state::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.hint { margin-top: 4px; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); text-align: center; min-height: 1.2em; padding: 0 10px; }

/* ---------- Son soru / cevap ---------- */
.dialog { width: 100%; flex: 1; min-height: 0; overflow-y: auto; margin-top: 1.6vh; padding: 0 4px; -webkit-overflow-scrolling: touch; -webkit-user-select: text; user-select: text; }
.q { color: #ffe3bb; font-size: 16px; text-align: center; min-height: 1.2em; }
.q:not(:empty)::before { content: "“"; } .q:not(:empty)::after { content: "”"; }
.a { margin-top: 10px; font-size: 18px; line-height: 1.4; text-align: center; color: var(--text); white-space: pre-wrap; }

/* ---------- Yazarak sorma ---------- */
.ask { width: 100%; display: flex; border: 1px solid var(--line); background: rgba(6, 26, 38, 0.6); border-radius: 22px; overflow: hidden; margin-top: 8px; flex-shrink: 0; }
.ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 10px 14px; -webkit-user-select: text; user-select: text; }
.ask input::placeholder { color: var(--muted); }
.send { border: 0; background: var(--cyan); color: var(--bg); font-family: "Orbitron", sans-serif; font-size: 22px; width: 46px; }

/* ---------- Eşleştirme ---------- */
.pair { text-align: center; padding: 40px 6px; }
.pair h1 { font-size: 22px; letter-spacing: 0.2em; color: var(--cyan-2); margin: 10px 0; text-transform: uppercase; }
.pair p { color: var(--muted); font-size: 16px; line-height: 1.4; margin: 8px 0; }
.pair p b { color: var(--text); }
#pair-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; align-items: center; }
#pair-code { width: 220px; text-align: center; font-family: "Orbitron", sans-serif; font-size: 34px; letter-spacing: 0.3em; padding: 12px; background: rgba(6, 26, 38, 0.6); border: 1px solid var(--line); color: var(--cyan-2); border-radius: 10px; -webkit-user-select: text; user-select: text; }
.btn { font: inherit; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; background: var(--cyan); color: var(--bg); border: 0; padding: 12px 28px; border-radius: 22px; box-shadow: var(--glow); }
.err { color: var(--red) !important; min-height: 1.2em; }

/* Bildirim zili */
.bell { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--faint); color: var(--muted); display: grid; place-items: center; margin-right: 4px; }
.bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bell.on { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 10px rgba(255, 181, 71, 0.5); }
.bell.off { animation: nudge 2.4s ease-in-out infinite; color: var(--cyan-2); border-color: var(--cyan); }
@keyframes nudge { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

/* Mod seçimi: Jarvis (mavi) / Sosyal (SelfAnket turuncusu) */
.modes { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.modes button { font: inherit; font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--faint); color: var(--muted); }
.modes button.on { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow); }
body.mode-sosyal { --cyan: #fc6601; --cyan-2: #ffb27a; --line: rgba(252, 102, 1, 0.3); --faint: rgba(252, 102, 1, 0.1); --glow: 0 0 14px rgba(252, 102, 1, 0.55); --accent: var(--cyan); }
body.mode-sosyal .a { text-align: left; font-size: 16px; }

/* Cevabı kopyala / paylaş */
.acts { display: flex; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.acts button { font: inherit; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; padding: 7px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--faint); color: var(--cyan-2); }
.acts button.done { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }

/* Görsel ekleme */
.clip { border: 0; background: transparent; font-size: 20px; width: 42px; color: var(--cyan-2); }
.tray { display: flex; gap: 8px; width: 100%; padding: 8px 2px 0; overflow-x: auto; flex-shrink: 0; }
.att { position: relative; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 22px; padding: 0; }

/* Üretilen görseller */
.imgs { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; align-items: center; }
.gimg { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--faint); }
.gimg img { width: 100%; display: block; -webkit-touch-callout: default; }
.gimg button { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--cyan-2); font: inherit; font-weight: 600; letter-spacing: .08em; padding: 10px; }

/* ---------- Sosyal modu: sohbet görünümü ---------- */
.chat, .mini-mic { display: none; }
body.mode-sosyal .reactor, body.mode-sosyal .state, body.mode-sosyal .dialog { display: none; }
body.mode-sosyal .hint { margin-top: 6px; min-height: 0; }
body.mode-sosyal .chat { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding: 10px 2px 6px; -webkit-overflow-scrolling: touch; -webkit-user-select: text; user-select: text; }
body.mode-sosyal .mini-mic { display: block; border: 0; background: transparent; font-size: 20px; width: 42px; }
body.mode-sosyal.state-listening .mini-mic { background: var(--amber); border-radius: 50%; }
.bubble { max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 16px; line-height: 1.45; word-wrap: break-word; }
.bubble.user { align-self: flex-end; background: rgba(252, 102, 1, 0.18); border: 1px solid rgba(252, 102, 1, 0.35); color: #ffe7d6; white-space: pre-wrap; }
.bubble.assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); }
.bubble.typing { color: var(--muted); font-style: italic; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
.bubble h4 { margin: 10px 0 6px; font-size: 16px; color: var(--cyan-2); }
.bubble ul, .bubble ol { margin: 4px 0 8px 20px; }
.bubble li { margin: 2px 0; }
.bubble code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; font-size: 14px; }
.bubble blockquote { border-left: 3px solid var(--cyan); margin: 6px 0; padding: 2px 10px; color: var(--muted); }
.bubble hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.bubble .code { position: relative; margin: 8px 0; }
.bubble .code pre { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 34px 10px 10px; overflow-x: auto; white-space: pre-wrap; font-size: 14px; }
.bubble .code code { background: none; padding: 0; }
.bubble .cp, .bubble .msg-cp { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--faint); color: var(--cyan-2); border-radius: 10px; padding: 4px 10px; }
.bubble .cp { position: absolute; top: 6px; right: 6px; }
.bubble .msg-cp { margin-top: 8px; }
.bubble .cp.done, .bubble .msg-cp.done { background: var(--cyan); color: var(--bg); }
.bubble .tbl { overflow-x: auto; margin: 8px 0; }
.bubble table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.bubble th, .bubble td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
.bubble th { color: var(--cyan-2); }
.bubble .gimg { margin-top: 10px; }
.hist .bubble.user { background: rgba(58, 214, 255, .12); border-color: rgba(58, 214, 255, .35); color: #dff6ff; }
.hday { align-self: center; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 8px 0 2px; }
.bubble .time { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Sosyal modu düzeltmeleri: ekrana tam otursun, yatay taşma ve kaydırma çubuğu olmasın */
body.mode-sosyal .wx { display: none; }
body.mode-sosyal .app { align-items: stretch; width: 100%; min-width: 0; }
body.mode-sosyal .chat { overflow-x: hidden; scrollbar-width: none; padding-left: 0; padding-right: 0; }
body.mode-sosyal .chat::-webkit-scrollbar { display: none; }
.bubble { min-width: 0; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; }
.bubble.assistant { max-width: 100%; width: 100%; }
.bubble.user { max-width: 85%; }
.bubble .code, .bubble .code pre, .bubble .tbl, .bubble .gimg { max-width: 100%; box-sizing: border-box; }
.bubble .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble img { max-width: 100%; height: auto; }
.bubble table { min-width: 0; width: max-content; max-width: none; }

/* Spotify: cihaz görünmüyorsa uygulamayı açma düğmesi */
.spot { display: block; width: 100%; margin-top: 8px; padding: 12px; border-radius: 22px; background: #1db954; color: #041a0c; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; letter-spacing: .04em; flex-shrink: 0; }

/* Bildirim geçmişi paneli */
.bell { position: relative; }
.bell-badge { position: absolute; top: -2px; right: -2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--amber, #ffb547); color: #1a1205; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.notif { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 13, 0.92); backdrop-filter: blur(6px); display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); }
.notif-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 600; color: var(--cyan-2, #bfefff); padding: 4px 2px 12px; }
.notif-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--faint); color: var(--muted); font-size: 16px; }
.notif-enable { padding: 0 0 10px; }
.notif-enable button { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--cyan); background: transparent; color: var(--cyan-2); font-size: 15px; }
.notif-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; }
.notif-item { border: 1px solid var(--line); border-radius: 12px; background: var(--faint); padding: 10px 12px; }
.notif-item .nt { font-size: 14px; font-weight: 600; color: var(--text, #dff); margin-bottom: 3px; }
.notif-item .nb { font-size: 13px; color: var(--muted); line-height: 1.4; white-space: pre-wrap; }
.notif-item .na { font-size: 11px; color: var(--muted); opacity: 0.7; margin-top: 5px; }
.ndays { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ndays::-webkit-scrollbar { display: none; }
.nday-chip { flex: none; font: inherit; font-size: 13px; color: var(--muted); background: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.nday-chip.on { color: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.nday-chip .c { opacity: .65; margin-left: 6px; font-size: 11px; }
.notif-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Saha özeti (iControl) — kompakt */
.msaha-toggle { display: block; margin: 0 auto 6px; padding: 5px 14px; font: inherit; font-size: 12px; letter-spacing: 0.1em; color: var(--cyan-2); background: rgba(6, 26, 38, 0.6); border: 1px solid var(--line, rgba(58,214,255,.22)); border-radius: 14px; }
.msaha-toggle[aria-expanded="true"] { border-color: var(--cyan); }
.msaha { margin: 0 12px 8px; padding: 10px 12px; background: rgba(6, 26, 38, 0.6); border: 1px solid var(--line, rgba(58,214,255,.22)); border-radius: 10px; }
.msaha[hidden] { display: none; }
.msaha-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.msaha-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.msaha-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.msaha-list li b { font-variant-numeric: tabular-nums; color: var(--cyan-2); white-space: nowrap; }
.msaha-list li.late b { color: var(--red); }
.msaha-list li.soon b { color: var(--amber); }
.msaha-list li.muted { color: var(--muted); justify-content: center; }

body.mode-sosyal .msaha-toggle, body.mode-sosyal .msaha { display: none; }

/* ================= Gezinme: 📊 Saha · 📋 Bugün ================= */
.mnav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 2px; } /* 4 düğme dar ekranda da tek satır */
.mnav button { position: relative; font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 26, 38, .6); color: var(--cyan-2); }
.mnav button:active { background: var(--faint); }
.mbadge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: #1a1205; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; letter-spacing: 0; }
body.mode-sosyal .mnav { display: none; }

/* ================= Tam ekran sayfalar ================= */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(2, 8, 13, .97); display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom)); -webkit-user-select: text; user-select: text; }
.sheet.top { z-index: 45; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 10px; border-bottom: 1px solid var(--line); }
.sheet-t { font-family: "Orbitron", sans-serif; font-size: 16px; letter-spacing: .25em; color: var(--cyan-2); text-shadow: var(--glow); }
.sheet-acts { display: flex; gap: 8px; align-items: center; }
.sclose { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--faint); color: var(--muted); font-size: 16px; flex: none; }
.sbtn { font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .06em; padding: 7px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--faint); color: var(--cyan-2); min-width: 92px; }
.sbtn:disabled { opacity: .8; color: var(--amber); border-color: rgba(255, 181, 71, .45); }
.sheet-meta { font-size: 12px; color: var(--muted); padding: 8px 2px 4px; }
.sheet-meta.stale { color: var(--red); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ilerleme çubuğu */
.mbar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 4px; background: var(--cyan); }
.mbar.full i { background: var(--green); }

/* ================= Saha: proje kartları ================= */
.pcard { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 11px 12px 10px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; background: rgba(6, 26, 38, .55); }
.pcard:active { background: rgba(58, 214, 255, .1); }
.pcard.moved { border-left-color: var(--cyan); background: rgba(58, 214, 255, .07); }
.pcard.soon { border-left-color: var(--amber); }
.pcard.late { border-left-color: var(--red); }
.pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pc-code { font-family: "Orbitron", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--cyan-2); }
.pcard.late .pc-code { color: #ff8a98; }
.pc-flag { font-family: -apple-system, system-ui, sans-serif; font-size: 13px; }
.pc-pct { font-family: "Orbitron", sans-serif; font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.pc-name { font-size: 13px; color: var(--muted); margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: #b8dceb; }
.pc-nums .w { color: var(--amber); }
.dl { margin-left: 4px; font-size: 12px; font-weight: 700; }
.dl.g { color: var(--green); }
.dl.b { color: var(--red); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); }
.chip.g { color: var(--green); border-color: rgba(77, 255, 176, .35); }
.chip.w { color: var(--amber); border-color: rgba(255, 181, 71, .4); }
.chip.b { color: #ff8a98; border-color: rgba(255, 77, 97, .45); font-weight: 600; }

/* ================= Proje sayfası ================= */
.pj-code { font-family: "Orbitron", sans-serif; font-size: 17px; letter-spacing: .05em; color: var(--cyan-2); text-shadow: var(--glow); }
.pj-name { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pj-cell { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgba(6, 26, 38, .5); display: flex; flex-direction: column; gap: 2px; }
.pj-cell small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pj-cell b { font-size: 15.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.pj-cell.w b { color: var(--amber); }
.pj-cell.b b { color: #ff8a98; }
.pj-risk { color: #ff8a98; font-size: 13.5px; line-height: 1.4; }
.pj-h { margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 5px; }

/* SSI barları (Complete / Incomplete / Diskalifiye) */
.ssi { display: flex; justify-content: space-around; align-items: flex-end; padding: 4px 0 2px; }
.ssi .sb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 30%; }
.ssi .sv { font-family: "Orbitron", sans-serif; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ssi .sbar { width: 52px; height: 76px; display: flex; align-items: flex-end; }
.ssi .sbar i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.ssi .c .sbar i { background: var(--green); }
.ssi .i .sbar i { background: rgba(230, 240, 245, .75); }
.ssi .d .sbar i { background: var(--red); }
.ssi .sl { font-size: 12.5px; color: #cfe8f2; }
.ssi small { font-size: 11px; color: var(--muted); margin-top: -3px; }

/* gönderimler */
/* sohbet gönder düğmesi: eskiden saha kartının .send kuralı da ona uygulanıyordu; alışılmış görünüm korunur */
button.send { padding: 9px 11px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(58, 214, 255, .03); }
.fsend { padding: 9px 11px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(58, 214, 255, .03); }
.fsend.live { border-color: rgba(77, 255, 176, .45); background: rgba(77, 255, 176, .05); }
.send-h { display: flex; align-items: baseline; gap: 4px; font-size: 14px; }
.send-h .send-st { margin-left: auto; font-size: 12px; color: var(--muted); }
.fsend.live .send-st { color: var(--green); }
.send-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: 8px 0 6px; }
.send-bar i { display: block; height: 100%; }
.send-bar i.c { background: var(--green); } .send-bar i.d { background: var(--red); } .send-bar i.i { background: rgba(230, 240, 245, .55); }
.send-n { display: flex; gap: 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.send-n .c { color: var(--green); } .send-n .d { color: #ff8a98; } .send-n .i { color: #c9d9e0; }
.send-sum { margin: 0 0 8px; font-size: 13px; color: var(--cyan-2); font-variant-numeric: tabular-nums; }
.send-n .inc { margin-left: auto; color: var(--cyan-2); font-weight: 600; }

/* kota hücreleri */
.qleg { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.qleg span { display: inline-flex; align-items: center; gap: 5px; }
.qleg i { width: 13px; height: 8px; border-radius: 3px; display: inline-block; }
.qleg i.full { background: var(--red); } .qleg i.prog { background: var(--green); } .qleg i.open { background: rgba(255, 255, 255, .25); }
.q-g { margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); opacity: .85; }
.q-r { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 6px; border-bottom: 1px solid rgba(58, 214, 255, .07); }
.q-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.q-n { color: #d6ecf5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-v { font-variant-numeric: tabular-nums; color: #d6ecf5; white-space: nowrap; }
.q-r.full .mbar i { background: var(--red); }
.q-r.prog .mbar i { background: var(--green); }
.q-r.open .mbar i { background: rgba(255, 255, 255, .22); }
.q-r.open .q-v { color: var(--muted); }

/* ================= Bugün ================= */
.td-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.td-list li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.35; padding: 6px 8px; border-radius: 8px; }
.td-list li.tap { background: rgba(255, 181, 71, .06); border: 1px solid rgba(255, 181, 71, .2); }
.td-tag { font-size: 12px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.td-list li.todo .td-tag { color: var(--amber); font-weight: 600; }
.td-t { color: var(--text); overflow-wrap: anywhere; }
.td-list li.auto .td-t::after { content: " · oto"; color: var(--muted); font-size: 11.5px; }
.td-list li.fail .td-t { color: #ff9aa5; }
.td-empty { color: var(--muted); font-size: 13.5px; padding: 4px 2px; }

/* ================= Bildirim sekmeleri + dokununca git ================= */
.ntabs { display: flex; gap: 6px; padding: 0 0 10px; overflow-x: auto; }
.ntabs button { flex: none; font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .06em; padding: 6px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--faint); color: var(--muted); }
.ntabs button.on { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.notif-item.tap { position: relative; padding-right: 26px; }
.notif-item.tap::after { content: "›"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--cyan); }
.notif-item.report { border-color: rgba(77, 255, 176, .3); }
.notif-item.field .nt { color: #ffd9a0; }

/* hedefli gönderim önerisi (telefon) */
.tp-note { font-size: 12px; color: var(--muted); }
.tp-ok { font-size: 14px; color: var(--green); }
.tp-lead { font-size: 14px; color: #ffd9a0; }
.tp-g { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid rgba(58, 214, 255, .08); }
.tp-g b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-2); font-weight: 600; }
.tp-g span { font-size: 14px; color: #ffb3bd; font-variant-numeric: tabular-nums; line-height: 1.4; }
.tp-full { font-size: 13px; color: var(--muted); }
.tp-zero { font-size: 13px; color: var(--amber); }
.q-short { font-size: 12px; font-weight: 700; color: #ff8a98; }

/* Nöral çekirdek reaktör (telefon): kenarlar yumuşak daire maskesiyle zemine karışır; eski SVG/kanvas gizlenir */
.reactor .neural { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 72%, transparent 100%); }
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reactor.neural-on .reactor-svg, .reactor.neural-on .fx { display: none; }

/* Toplantı modu düğmesi + menüsü */
.mute-btn { font-size: 14px; line-height: 1; padding: 0; }
.mute-btn.muted { border-color: var(--amber); box-shadow: 0 0 10px rgba(255, 181, 71, 0.45); }
.mute-menu { position: fixed; z-index: 95; min-width: 230px; max-width: calc(100vw - 16px); background: #07111c; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 4px; }
.mute-menu[hidden] { display: none; }
.mute-head { font-size: 12px; color: var(--muted); padding: 4px 6px 8px; white-space: pre-line; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mute-menu button { text-align: left; font: inherit; font-size: 14px; color: inherit; background: none; border: 0; border-radius: 8px; padding: 10px 8px; }
.mute-menu button:active { background: var(--faint); }
#pj-body { align-self: stretch; } /* içerik kadar daralmasın: Kotalar ↔ Mailler geçişinde genişlik zıplamasın */
.pj-flags { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid rgba(255, 181, 71, .5); border-radius: 12px; background: rgba(255, 181, 71, .07); color: #ffd9a0; font-size: 13px; line-height: 1.45; }
.pj-flags b { display: block; margin-bottom: 4px; }
.pj-tabs { display: flex; gap: 8px; margin: 16px 0 6px; }
.pj-tab { flex: 1; font: inherit; font-size: 14px; padding: 9px; color: var(--muted); background: var(--faint); border: 1px solid var(--line); border-radius: 10px; }
.pj-tab.on { color: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.pm-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm { border: 1px solid var(--line); border-radius: 12px; background: var(--faint); padding: 10px 12px; }
.pm.sent { border-color: rgba(77, 255, 176, .35); }
.pm-top { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.pm-top time { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pm-subj { font-size: 13px; color: var(--cyan); margin-top: 3px; }
.pm-prev { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pm-body { font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.pm-body a, .pm-open { color: var(--cyan); }
.pm-open { display: inline-block; margin-top: 8px; font-size: 13px; }
.pm-note { color: var(--muted); font-size: 12px; text-align: center; margin: 10px 0; }
.pj-close-btn { display: block; width: 100%; margin: 18px 0 6px; padding: 13px; font: inherit; font-size: 15px; color: #4dffb0; background: rgba(77, 255, 176, .08); border: 1px solid rgba(77, 255, 176, .45); border-radius: 12px; }
.pj-close-btn:disabled { opacity: .6; }
.pj-close-btn.done { color: #021; background: #4dffb0; }

/* Kişiler (Ipsos) */
.fu { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(6, 26, 38, .55); display: flex; flex-direction: column; gap: 5px; transition: opacity .3s; }
.fu.gone { opacity: .25; }
.fu.k-ask { border-left-color: var(--amber); }
.fu.k-data { border-left-color: var(--cyan); }
.fu.k-gift { border-left-color: var(--green); }
.fu-top { display: flex; gap: 8px; align-items: baseline; }
.fu-top b { color: var(--cyan-2); font-size: 14.5px; }
.fu-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.k-ask .fu-k { color: var(--amber); border-color: rgba(255, 181, 71, .45); }
.k-data .fu-k { color: var(--cyan-2); }
.k-gift .fu-k { color: var(--green); }
.fu-ago { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fu-s { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.fu-w { font-size: 13px; color: var(--text); opacity: .8; overflow-wrap: anywhere; }
.fu-a { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.fu-st { color: var(--amber); font-size: 12px; }
.fu-open { margin-left: auto; color: var(--cyan); }
.fu-done { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 10px; border: 1px solid rgba(77, 255, 176, .4); background: none; color: var(--green); }
.pp { border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 26, 38, .45); }
.pp.wait { border-left: 3px solid var(--amber); }
.pp-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font: inherit; color: var(--text); background: none; border: 0; text-align: left; }
.pp-n b { display: block; color: var(--cyan-2); font-size: 15px; }
.pp-n small { color: var(--muted); font-size: 12px; }
.pp-ch { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.pp-d { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.pp-d[hidden] { display: none; }
.pp-meta { font-size: 12px; color: var(--muted); }
.pp-proj { display: flex; justify-content: space-between; gap: 8px; font: inherit; font-size: 13px; color: var(--text); padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(58, 214, 255, .05); text-align: left; }
.pp-proj b { color: var(--cyan-2); }
.pp-th { font-size: 13px; color: var(--cyan); overflow-wrap: anywhere; }

/* Saha: henüz başlamayan projeler — en altta ayrı grup, soluk */
/* Saha araması: takipteki çalışmalar + kapalılar (arşiv, bütün aylar) */
.saha-q { margin-top: 8px; width: 100%; background: rgba(6, 26, 38, 0.6); border: 1px solid var(--line); border-radius: 18px; color: var(--text); font: inherit; font-size: 16px; padding: 8px 14px; outline: 0; -webkit-user-select: text; user-select: text; }
.saha-q:focus { border-color: var(--cyan-2); }
.saha-grp { margin: 16px 2px 2px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pcard.waiting { opacity: .6; border-style: dashed; }

/* ---------------- Pandos telefon ekleri ---------------- */
.dot.warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.asst-view, .noasst-view { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.noasst-view { align-items: stretch; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
/* giriş */
.mauth { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.mauth form { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); background: rgba(6, 26, 38, .6); border-radius: 16px; padding: 20px 18px; }
.mauth h1 { font: 700 15px "Orbitron", sans-serif; letter-spacing: .25em; color: var(--cyan); text-transform: uppercase; }
.mauth h1 small { font: 600 11px "Rajdhani", sans-serif; letter-spacing: .15em; color: var(--muted); margin-left: 8px; }
.mauth label, .macct label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mauth input, .macct input { font: 500 17px "Rajdhani", sans-serif; color: var(--text); background: rgba(2, 10, 16, .8); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; -webkit-user-select: text; user-select: text; }
.mauth input:focus, .macct input:focus { outline: 1px solid var(--cyan); }
.code-in { font: 700 26px "Orbitron", monospace !important; letter-spacing: .4em; text-align: center; }
.mnote { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mnote.warn { color: var(--amber); }
label.mcheck { flex-direction: row; align-items: center; gap: 9px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }
.mcheck input { width: 18px; height: 18px; accent-color: var(--cyan); padding: 0; }
.mrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.mauth .btn, .macct .btn { align-self: flex-start; }
.err .ok, .mauth .ok, .macct .ok { color: var(--green); }
/* asistansız ana ekran: özet kartlar */
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.mcard { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 26, 38, .55); padding: 11px 12px; }
.mcard small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mcard b { font: 700 26px "Orbitron", sans-serif; color: var(--cyan-2); text-shadow: var(--glow); }
.mcard span { font-size: 13px; color: var(--muted); }
.mcard.w b { color: var(--amber); text-shadow: 0 0 12px rgba(255, 181, 71, .5); }
.mcard.b b { color: var(--red); text-shadow: 0 0 12px rgba(255, 77, 97, .5); }
.mproj-h { margin-top: 14px; }
.mproj-h span { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.mproj { display: flex; flex-direction: column; gap: 10px; }
/* hesabım */
.macct { display: flex; flex-direction: column; gap: 14px; }
.mbox { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 26, 38, .45); padding: 12px; }
.mcats { display: flex; flex-direction: column; gap: 6px; }
a.sbtn { text-decoration: none; display: inline-block; }
/* asistanlı ana ekran: reaktör · durum · cevap · yazı kutusu dikeyde ortalı tek grup (Kaan: alt boşluk çok uzundu) */
.asst-view { justify-content: center; }
.asst-view .reactor { margin: 0 auto; width: min(80vw, 44vh, 400px); }
.asst-view .dialog { flex: 0 1 auto; max-height: 24vh; min-height: 2.6em; margin-top: 1.2vh; }
.asst-view .ask { margin-top: 12px; }
/* üst şerit daha net (parlama yazıyı bulanık gösteriyordu) */
.top .logo { text-shadow: 0 0 5px rgba(58, 214, 255, .45); }
#clock { text-shadow: none; }
/* iPhone ana ekran: sayfa alt güvenli alana kadar uzansın (altta düz koyu şerit kalıyordu); arka plan html'de de */
/* Arka plan tuvalde (html): iPhone ana ekranda sayfa kutusunun altında kalan alan da aynı ızgarayla dolsun (düz şerit kalıyordu) */
html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 55% 30% at 50% 38%, rgba(88, 70, 190, 0.28), transparent 70%),
    radial-gradient(ellipse at 50% 42%, rgba(20, 90, 130, 0.3), transparent 62%),
    linear-gradient(rgba(58, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(58, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--bg);
  background-attachment: fixed;
}
body { background: transparent; height: 100vh; height: 100dvh; }
/* telefonda saat yok (iOS durum çubuğu zaten gösteriyor) → üst şerit sıkışmasın */
#clock { display: none; }
/* asistanlı: reaktör ekranı doldursun, grup dengeli dursun */
.asst-view .reactor { width: min(90vw, 50vh, 460px); }
/* iPhone ana ekran uygulaması (ölçüm 2026-10-09: ekran 852, innerHeight 793 = üst güvenli alan 59 eksik): sayfa ve tam ekran
   paneller ekranın altına kadar uzansın — yoksa altta 59 px'lik düz şerit kalıyor. */
@media (display-mode: standalone) {
  html { height: calc(100% + env(safe-area-inset-top)); overflow: hidden; }
  body { height: 100%; }
  .sheet, .notif { bottom: calc(-1 * env(safe-area-inset-top)); }
}

/* Çalışmalar (yönetici) + proje sayfasında "Sahayı kapattım" */
.st-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.st-row.closed { opacity: 0.6; }
.st-info { display: grid; gap: 2px; min-width: 0; }
.st-info b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-info small { color: var(--muted); font-size: 12px; }
.sbtn.armed { color: #02070d; background: var(--amber, #ffb547); border-color: transparent; }
.pj-done { margin: 6px 0 2px; }


/* Hatırlatmalarım (Hesabım) */
.rem-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.rem-form input { background: rgba(4, 18, 28, .7); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 6px; color-scheme: dark; }
.rem-form input[name="text"] { flex: 1 1 200px; min-width: 0; }
.rem-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.rem-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rem-item.past { opacity: .55; }
.rem-t { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.rem-t b { white-space: nowrap; font-weight: 600; }
.rem-t span { overflow-wrap: anywhere; }
.rem-empty { color: var(--muted); font-size: 13px; }

/* Çalışmalar: link / kodla ekleme */
.calis-add { display: flex; gap: 8px; margin-top: 8px; }
.calis-add input { flex: 1; min-width: 0; background: rgba(6, 26, 38, 0.6); border: 1px solid var(--line); border-radius: 18px; color: var(--text); font: inherit; font-size: 16px; padding: 8px 14px; outline: 0; -webkit-user-select: text; user-select: text; }
.calis-add input:focus { border-color: var(--cyan-2); }

/* Mailler sekmesi: tıklayınca açılan metin (o an Gmail'den, saklanmaz) */
.qm-body { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: var(--text); cursor: text; -webkit-user-select: text; user-select: text; }
