:root, :root[data-theme="lovely"] {
  --bg: #021826; --bg-grad: radial-gradient(ellipse 90% 70% at 50% 40%, #0a3550 0%, #021826 70%); --c-rgb: 94, 231, 255;
  --card: #06283d; --card2: #0a3550; --line: rgba(245, 184, 28, .18);
  --gold: #F5B81C; --text: #eaf4fb; --muted: #8fb0c4; --green: #25d366; --red: #ff5a6a;
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
}
/* PC'deki temalar */
:root[data-theme="gece"] { --bg: #070f1b; --bg-grad: radial-gradient(ellipse 90% 70% at 50% 40%, #0c1a2c 0%, #070f1b 45%, #03060c 85%);
  --c-rgb: 94, 231, 255; --card: #0e1b2b; --card2: #15273c; --line: rgba(140, 200, 255, .14); --gold: #e9c46a; --muted: #7d93a8; }
:root[data-theme="okyanus"] { --bg: #062a55; --bg-grad: radial-gradient(ellipse 90% 70% at 50% 40%, #0d4a8c 0%, #082f62 45%, #04193a 85%);
  --c-rgb: 79, 216, 255; --card: #0a3a70; --card2: #0f4a88; --line: rgba(120, 210, 255, .22); --gold: #ffd257; --muted: #8fbde0; }
:root[data-theme="altin"] { --bg: #150e05; --bg-grad: radial-gradient(ellipse 90% 70% at 50% 40%, #2a1c08 0%, #150e05 50%, #070402 90%);
  --c-rgb: 255, 204, 102; --card: #26190a; --card2: #362410; --line: rgba(255, 200, 120, .16); --gold: #ff9f43; --muted: #b39a74; }
html { background: var(--bg); }
body { background: var(--bg-grad) fixed, var(--bg); }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.themes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); }
.themes button i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.themes button[data-t="lovely"] i { background: radial-gradient(circle at 40% 35%, #F5B81C, #0a3550 60%); }
.themes button[data-t="gece"] i { background: radial-gradient(circle at 40% 35%, #5ee7ff, #0c1a2c 60%); }
.themes button[data-t="okyanus"] i { background: radial-gradient(circle at 40% 35%, #ffd257, #0d4a8c 60%); }
.themes button[data-t="altin"] i { background: radial-gradient(circle at 40% 35%, #ff9f43, #2a1c08 60%); }
.engines { grid-template-columns: 1fr 1fr; }
.engines button i { border: 0; width: auto; height: auto; font-style: normal; font-size: 22px; }
.engines button small { color: var(--muted); font-size: 11px; }
.themes button.on { border-color: var(--gold); color: var(--gold); }
#v-power h3 { margin: 6px 2px 0; font-size: 13px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--text);
  font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overscroll-behavior: none; }
button, textarea, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Eşleşme */
.pair { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(var(--safe-t) + 24px) 24px 24px; text-align: center; }
.pair-logo { width: 88px; height: 88px; border-radius: 22px; }
.pair h1 { margin: 0; color: var(--gold); letter-spacing: .08em; }
.pair p { color: var(--muted); margin: 0; max-width: 320px; }
.pair input { width: 200px; text-align: center; font-size: 30px; letter-spacing: .3em; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); }
.pair button { padding: 12px 40px; border-radius: 24px; background: var(--gold); color: #021826; font-weight: 700; }
.pair small { color: var(--red); min-height: 1.2em; }

/* Uygulama iskeleti */
#app { height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 8px) 16px 10px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.top img { width: 34px; height: 34px; border-radius: 9px; }
.top div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.top b { color: var(--gold); letter-spacing: .06em; }
.top small { color: var(--muted); font-size: 13px; }
.dot { margin-right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.sleep { background: #7a8cff; } .dot.bad { background: var(--red); }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tabs { display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 20px;
  opacity: .55; }
.tabs button small { font-size: 11px; color: var(--muted); }
.tabs button.on { opacity: 1; } .tabs button.on small { color: var(--gold); }

/* Mesajlar */
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.b { max-width: 86%; padding: 9px 12px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.35;
  background: var(--card2); align-self: flex-start; border-bottom-left-radius: 4px; }
.b.user { align-self: flex-end; background: #1b4d6b; border-radius: 16px 16px 4px 16px; }
.b.report { background: #0c3a2a; } .b.system { background: #3a1820; } .b.reminder { background: #3d3410; }
.b time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.b .tr { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(255,255,255,.18); color: #cfe8d8; font-size: 14px; }
.b.out { align-self: flex-end; background: #0f5134; border-radius: 16px 16px 4px 16px; }
.typing { align-self: flex-start; color: var(--muted); font-size: 14px; padding: 2px 6px; }
.confirm { align-self: stretch; background: #3d3410; border: 1px solid var(--gold); border-radius: 14px; padding: 12px; }
.confirm p { margin: 0 0 8px; white-space: pre-wrap; }
.confirm textarea { width: 100%; min-height: 70px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 8px; margin-bottom: 8px; }
.confirm .row { display: flex; gap: 8px; }
.confirm .row button { flex: 1; padding: 10px; border-radius: 10px; background: var(--green); color: #021826; font-weight: 700; }
.confirm .row button.no { background: var(--card2); color: var(--text); }
.composer, .wa-out-row { display: flex; gap: 8px; padding: 8px 10px; align-items: flex-end; }
.composer textarea, .wa-compose textarea { flex: 1; resize: none; max-height: 140px; padding: 10px 12px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); outline: none; }
.composer button, #wa-send { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #021826; font-size: 18px; flex: none; }
#wa-send:disabled { opacity: .4; }

/* Sesli konuşma */
.composer .mic { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); flex: none;
  display: grid; place-items: center; color: var(--gold); }
.composer .mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top-live { margin-right: 10px; padding: 7px 12px; border-radius: 18px; background: var(--card2); border: 1px solid var(--line);
  color: inherit; text-decoration: none; font-size: 14px; white-space: nowrap; }
.top-talk { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding: 0; }
.top-talk img { width: 34px; height: 34px; border-radius: 9px; }
.top-talk div { display: flex; flex-direction: column; line-height: 1.15; }
.orb { cursor: pointer; } .orb-hint { opacity: .7; }
.voice { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(var(--safe-t) + 20px) 24px calc(var(--safe-b) + 24px); background: var(--bg-grad); text-align: center; animation: vin .25s both; }
.voice[hidden] { display: none; }
@keyframes vin { from { opacity: 0; transform: scale(1.04); } }
.v-orb { --o: var(--c-rgb); position: relative; width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 42%, rgba(var(--o), .75), rgba(var(--o), .18) 55%, rgba(0, 0, 0, 0) 72%);
  box-shadow: 0 0 calc(30px + var(--lvl, 0) * 70px) rgba(var(--o), .55);
  transform: scale(calc(.92 + var(--lvl, 0) * .22)); transition: transform .07s, box-shadow .07s; }
.v-orb span { position: absolute; inset: 8%; border-radius: 50%; border: 2px solid rgba(var(--o), .55); border-top-color: transparent; border-left-color: transparent;
  animation: spin 5s linear infinite; }
.v-orb span:nth-child(2) { inset: 18%; animation-duration: 3.4s; animation-direction: reverse; border-color: rgba(var(--o), .4); border-bottom-color: transparent; }
.v-orb span:nth-child(3) { inset: -4%; animation-duration: 9s; border-width: 1px; border-color: rgba(var(--o), .3); border-right-color: transparent; }
.v-orb i { width: 34%; height: 34%; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 30px rgba(var(--o), .9); }
.voice[data-s="listen"] .v-orb { --o: 255, 90, 106; }
.voice[data-s="wait"] .v-orb, .voice[data-s="think"] .v-orb { --o: 245, 184, 28; animation: breathe 1.1s ease-in-out infinite; }
.voice[data-s="wait"] .v-orb span, .voice[data-s="think"] .v-orb span { animation-duration: .9s; }
.voice[data-s="speak"] .v-orb { --o: 69, 255, 176; animation: breathe .8s ease-in-out infinite; }
.voice b { font-size: 20px; letter-spacing: .06em; color: var(--gold); }
.v-you { margin: 0; color: var(--text); font-size: 17px; min-height: 1.3em; max-width: 340px; }
.v-ben { margin: 0; color: var(--muted); font-size: 15px; max-width: 340px; max-height: 26vh; overflow-y: auto; white-space: pre-wrap; }
.v-hint { color: var(--muted); font-size: 12px; opacity: .8; }
#v-end { margin-top: 6px; padding: 12px 34px; border-radius: 26px; background: var(--card2); border: 1px solid var(--line); font-weight: 600; }

/* Dosyalar */
.composer .att { background: var(--gold); color: #021826; border-color: var(--gold); }
.composer .att svg { stroke-width: 2.6; }
.fcard { align-self: flex-start; display: flex; align-items: center; gap: 10px; max-width: 90%; padding: 10px 12px; border-radius: 14px;
  background: var(--card2); border: 1px solid var(--line); }
.fcard.mine { align-self: flex-end; }
.fcard > span { font-size: 28px; }
.fcard div { display: flex; flex-direction: column; min-width: 0; }
.fcard b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.fcard small { color: var(--muted); font-size: 12px; }
.fcard nav { display: flex; gap: 6px; margin-left: auto; }
.fcard nav a, .fcard nav button { padding: 7px 10px; border-radius: 10px; background: var(--gold); color: #021826; font-size: 13px; font-weight: 700; text-decoration: none; }
.fcard nav button { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.fcard img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.b a { color: var(--gold); word-break: break-all; }
.b img.pic { display: block; max-width: 100%; max-height: 340px; border-radius: 10px; margin-bottom: 4px; }

/* Öneriler */
#v-home h3 { display: flex; align-items: center; justify-content: space-between; }
.mini { font-size: 11px; letter-spacing: 0; text-transform: none; padding: 4px 9px; border-radius: 10px; background: var(--card2); color: var(--text); }
.ideas { display: flex; flex-direction: column; gap: 8px; }
.lead-sum { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.idea { background: var(--card); border-radius: 14px; padding: 11px 12px; border-left: 3px solid var(--ac, var(--gold)); }
.idea .who { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.idea h4 { margin: 4px 0 2px; font-size: 15px; }
.idea p { margin: 0; font-size: 13.5px; color: var(--muted); }
.idea details { margin-top: 6px; font-size: 13.5px; }
.idea summary { color: var(--gold); font-size: 12.5px; }
.idea details div { margin-top: 4px; padding: 8px; border-radius: 8px; background: var(--bg); white-space: pre-wrap; }
.idea .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.idea .acts button, .idea .acts a { padding: 7px 10px; border-radius: 10px; background: var(--card2); font-size: 12.5px; color: var(--text); text-decoration: none; }
.idea .acts .go { background: var(--green); color: #021826; font-weight: 700; }
.idea .res { margin-top: 6px; font-size: 13px; color: var(--green); }

/* WhatsApp */
.list { flex: 1; overflow-y: auto; }
.row-wa { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.row-wa .t { display: flex; justify-content: space-between; gap: 8px; }
.row-wa b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-wa time { color: var(--muted); font-size: 12px; flex: none; }
.row-wa span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-wa.pending b::before { content: "● "; color: var(--green); }
.empty { color: var(--muted); text-align: center; padding: 40px 20px; }
.wa-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.wa-head button { font-size: 30px; line-height: 1; padding: 0 8px; color: var(--gold); }
.wa-head div { display: flex; flex-direction: column; }
.wa-head small { color: var(--muted); font-size: 12px; }
.wa-compose { border-top: 1px solid var(--line); padding-top: 6px; }
.wa-compose > textarea { display: block; width: calc(100% - 20px); margin: 0 10px; }
.wa-compose small { display: block; padding: 0 14px 6px; color: var(--muted); font-size: 12px; min-height: 1em; }

/* Bugün */
.view#v-home, .view#v-power { overflow-y: auto; padding: 14px; gap: 10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; }
.tile b { display: block; font-size: 26px; color: var(--gold); }
.tile small { color: var(--muted); font-size: 12px; }
.tile.hot b { color: var(--green); }
.wide { padding: 12px; border-radius: 12px; background: var(--card2); }
.report { white-space: pre-wrap; background: var(--card); border-radius: 12px; padding: 12px; margin: 0; font: 14px/1.4 inherit; }

/* Ana ekran */
#v-home h3 { margin: 6px 2px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 4px; }
.orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(var(--c-rgb), .55), rgba(6, 40, 61, .9) 65%);
  box-shadow: 0 0 30px rgba(var(--c-rgb), .35), inset 0 0 20px rgba(var(--c-rgb), .3); animation: breathe 4s ease-in-out infinite; }
.orb i { width: 70%; height: 70%; border-radius: 50%; border: 2px solid rgba(var(--c-rgb), .55); border-top-color: transparent; animation: spin 6s linear infinite; }
.orb.thinking, .orb.working { background: radial-gradient(circle at 50% 40%, rgba(245, 184, 28, .7), rgba(6, 40, 61, .9) 65%); box-shadow: 0 0 36px rgba(245, 184, 28, .5); }
.orb.thinking i, .orb.working i { border-color: var(--gold); border-top-color: transparent; animation-duration: 1s; }
.orb.speaking, .orb.listening { background: radial-gradient(circle at 50% 40%, rgba(69, 255, 176, .6), rgba(6, 40, 61, .9) 65%); box-shadow: 0 0 36px rgba(69, 255, 176, .45); }
.orb.speaking i, .orb.listening i { border-color: #45ffb0; border-top-color: transparent; animation-duration: 2s; }
.orb.alert { background: radial-gradient(circle at 50% 40%, rgba(255, 90, 106, .7), rgba(6, 40, 61, .9) 65%); box-shadow: 0 0 36px rgba(255, 90, 106, .5); }
.orb.sleep { background: radial-gradient(circle at 50% 40%, rgba(122, 140, 255, .45), rgba(6, 40, 61, .95) 65%); box-shadow: 0 0 20px rgba(122, 140, 255, .3); animation-duration: 8s; }
.orb.sleep i { border-color: rgba(122, 140, 255, .5); border-top-color: transparent; animation-duration: 14s; }
.orb-wrap b { color: var(--gold); letter-spacing: .08em; }
.orb-wrap small { color: var(--muted); font-size: 13px; text-align: center; min-height: 1em; }
@keyframes breathe { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.03); } }
@keyframes spin { to { transform: rotate(360deg); } }
.agents { display: flex; flex-direction: column; gap: 6px; }
.agent { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid transparent; }
.agent > span { font-size: 22px; }
.agent div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agent b { font-size: 15px; }
.agent small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent em { font-style: normal; font-size: 12px; color: var(--muted); flex: none; }
.agent .xp { flex: none; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 5px; }
.agent .xp i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #45ffb0, var(--gold)); transition: width .8s; }
.agent .lv { font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 4px; }
.agent .xpn { font-size: 11px; }
.agent.working { border-color: var(--gold); } .agent.working em { color: var(--gold); }
.agent.done em { color: var(--green); }
.feed { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: 12px; padding: 8px 12px; }
.feed div { display: flex; gap: 8px; font-size: 13.5px; } .feed time { color: var(--muted); flex: none; }
.feed .empty { padding: 8px; }

/* Ofis */
#v-office { overflow-y: auto; padding: 0 0 12px; gap: 8px; }
#office-frame { width: 100%; height: 72vh; height: 72dvh; border: 0; background: #071321; flex: none; }   /* 2026-11-06: dikeyde ince şerit kalıyordu, 3D bina görünmüyordu */
#v-office .hint { color: var(--muted); font-size: 12px; padding: 0 14px; }
#v-office .agents { padding: 0 12px; }
@media (orientation: landscape) {
  #v-office { padding: 0; }
  #office-frame { aspect-ratio: auto; height: 100%; }
  #v-office .hint, #v-office .agents { display: none; }
  #app:has(#v-office:not([hidden])) .top { display: none; }
}

/* Güç */
.power-state { text-align: center; color: var(--muted); padding: 8px; }
.pw { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); font-size: 18px; }
.pw small { color: var(--muted); font-size: 13px; }
.pw.danger { border-color: rgba(255, 90, 106, .5); }
.pw:active, .tile:active, .row-wa:active { filter: brightness(1.3); }

/* 2026-11-04: PC kamerası + sade Ana ekran */
.cam-row { display: flex; gap: 8px; }
.cam-row .wide { flex: 1; }
.cam-row .wide:disabled { opacity: .5; }
.cam-out { margin: 0; padding: 8px; background: var(--card); border-radius: 12px; color: var(--muted); font-size: 13px; }
.cam-out img, .cam-out video { display: block; width: 100%; border-radius: 8px; margin-bottom: 6px; }
details.more { margin: 4px 0; color: var(--muted); }
details.more summary { cursor: pointer; padding: 8px 0; font-size: 14px; }
#v-power .hint { display: block; color: var(--muted); font-size: 12px; padding: 0 2px; }

/* 🧠 Beyin sekmesi: PC'deki beyin tam ekran (2026-11-04) */
#v-brain { padding: 0; overflow: hidden; }
#brain-frame { width: 100%; height: 100%; border: 0; background: #030a14; display: block; }
/* ✅ Onay bekleyenler */
.appr { border-left: 3px solid #F5B81C; }
.appr .txt { white-space: pre-wrap; font-size: 13.5px; margin: 6px 0; }
.appr .tr { display: block; color: var(--muted); font-size: 12px; white-space: pre-wrap; margin-bottom: 6px; }
.appr .row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.appr .row-acts button { flex: 1 1 auto; padding: 10px; border-radius: 10px; font-weight: 700; }
.appr .row-acts button:first-child { background: #F5B81C; color: #021826; }
.appr .res { font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: pre-wrap; }
/* 🧪 Lab ekranı (2026-11-04) */
.labp { margin: 6px 0 12px; }
.labp .lsec { margin: 14px 2px 6px; font-size: 13px; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.labp .lsec small { color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.labp .lj { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.labp .lj.ready { border-left-color: var(--green); }
.labp .lj.late { border-left-color: var(--red); }
.labp .lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.labp .lh b { font-size: 15px; }
.labp .due { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(245, 184, 28, .14); color: var(--gold); }
.labp .lj.ready .due { background: rgba(37, 211, 102, .15); color: var(--green); }
.labp .lj.late .due { background: rgba(255, 90, 106, .15); color: var(--red); }
.labp .lt { color: var(--muted); font-size: 12.5px; margin: 3px 0 8px; }
.labp .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.labp .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--green)); }
.labp .ls { font-size: 12px; margin-top: 5px; }
.labp .ln { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: pre-wrap; }
.labp .lq { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 6px; font-size: 14px; }
.labp .lq .ic { font-size: 18px; line-height: 1.2; }
.labp .lq small { color: var(--muted); }
.labp .ans { font-size: 12.5px; margin-top: 3px; color: var(--green); }
.labp .lm { background: var(--card2); border-radius: 12px; padding: 8px 11px; margin-bottom: 6px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.labp .lm small { color: var(--muted); margin-right: 4px; }
.labp .names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.labp .names span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--c-rgb), .14); color: rgb(var(--c-rgb)); }
/* 🧪 Lab sekmesi (2026-11-04): şablonlar + RU/AZ önizleme + kesin onay */
#v-lab { position: relative; }
.lab-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; }
.lab-title b { display: block; font-size: 17px; }
.lab-title small { color: var(--muted); font-size: 12px; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { padding: 7px 11px; border-radius: 9px; font-size: 13px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--gold); color: #021826; }
/* 🖼 Montaj sekmesi */
.mk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mk-chips button { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); }
.mk-chips button.on { background: var(--gold); border-color: var(--gold); color: #021826; }
.mk-row { display: flex; gap: 8px; } .mk-row input { min-width: 0; }
.mk-hint { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mk-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-pic, .mk-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.mk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-pic.off { opacity: .35; }
.mk-pic i { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 8px; background: var(--gold); color: #021826; font: 700 11px/1.5 inherit; font-style: normal; }
.mk-pic button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; }
.mk-add { border: 1.5px dashed var(--gold); color: var(--gold); font-size: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mk-add small { font-size: 11.5px; font-weight: 600; }
.mk-out { display: flex; flex-direction: column; gap: 10px; }
.mk-out img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.mk-out a.wide { text-align: center; text-decoration: none; }
#mk-res.bad { border-color: var(--red); color: var(--red); }
.lab-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 24px; display: flex; flex-direction: column; gap: 10px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.lf { font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin-top: 2px; }
.lf small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.lf.out { margin: 4px 2px -4px; }
.lcard input, .lcard textarea, .lang textarea { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 11px; font-size: 15px; outline: none; resize: none; }
.lcard input:focus, .lcard textarea:focus, .lang textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(var(--c-rgb), .12); color: rgb(var(--c-rgb)); }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl { position: relative; display: flex; align-items: center; gap: 8px; text-align: left; padding: 11px 10px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); min-height: 52px; transition: transform .12s; }
.tpl:active { transform: scale(.97); }
.tpl .ti { font-size: 20px; flex: none; }
.tpl .tl { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tpl .tu { position: absolute; top: 5px; right: 8px; font-size: 10px; color: var(--muted); }
.tpl .tx { position: absolute; bottom: 4px; right: 7px; font-style: normal; font-size: 11px; color: var(--muted); padding: 2px 4px; }
.tpl.mine { border-style: dashed; }
.tpl.on { border-color: var(--gold); background: linear-gradient(135deg, rgba(245, 184, 28, .18), var(--card) 70%); box-shadow: 0 0 0 1px var(--gold) inset; }
.prev { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.prev-h { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.prev-h small { color: var(--green); font-weight: 600; }
.lang span { display: block; font-size: 11.5px; color: var(--muted); margin: 0 0 4px 2px; font-weight: 600; }
.lang textarea { font-size: 14.5px; line-height: 1.4; }
.sig { font-size: 12.5px; color: var(--muted); text-align: right; }
.trm { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; white-space: pre-wrap; }
.trm b { color: var(--text); font-weight: 600; }
.tog { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 2px 4px; }
.tog input { width: 20px; height: 20px; accent-color: var(--gold); }
.lab-send { padding: 15px; border-radius: 16px; font-size: 16px; font-weight: 800; background: linear-gradient(135deg, #F5B81C, #ffd76a); color: #021826;
  box-shadow: 0 6px 18px rgba(245, 184, 28, .25); }
.lab-send:active { transform: scale(.98); }
.lab-res { font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--card); white-space: pre-wrap; }
.lab-res.ok { color: var(--green); } .lab-res.bad { color: var(--red); }
.sheet { position: absolute; inset: 0; background: rgba(0, 8, 16, .72); display: flex; align-items: flex-end; z-index: 20; }
.sheet[hidden] { display: none; }
.sheet-box { width: 100%; max-height: 88%; overflow-y: auto; background: var(--card); border-top: 2px solid var(--gold); border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-h { font-size: 17px; color: var(--gold); }
.sheet-box small { color: var(--muted); font-size: 12.5px; }
.sheet-box pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 12px; margin: 4px 0; }
.sheet-acts { display: flex; gap: 10px; }
.sheet-acts button { flex: 1; padding: 14px; border-radius: 14px; font-weight: 700; background: var(--card2); }
.sheet-acts #lab-sh-yes { background: var(--green); color: #02210f; flex: 1.4; }
.sheet-acts button:disabled { opacity: .6; }
/* ⚡ Hızlı mesajlar */
.quick { display: flex; flex-wrap: wrap; gap: 7px; }
.qk { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(135deg, rgba(37, 211, 102, .16), var(--card)); border: 1px solid rgba(37, 211, 102, .35); }
.qk span { font-size: 16px; }
.qk:active { transform: scale(.96); }
.qk.busy { opacity: .5; }
.sheet-box pre .sg { display: block; margin-top: 10px; font-weight: 700; color: var(--gold); }
/* 👑 Ekip yönetimi bağlantısı (ana ekran) */
.team-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); font-weight: 700; text-align: center;
  border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(245, 184, 28, .16), var(--card2)); }
.team-link small { color: var(--muted); font-weight: 500; font-size: 12px; }
