/* =====================================================================
   Koza — Hasta uygulaması ekranları (Yön C · Canlı ve modern)
   Kabuk ve ortak bileşenler app.css'te; burada yalnızca hasta ekranlarına özel düzen var.
   Kapsam: sayfa içi kurallar .p-app altında, alt pencere kuralları .pt-sheet altında
   (patient.js her sheet'e className 'pt-sheet' verir) — doktor paneline sızmaz.
   Yalnızca tokenlar kullanılır (ham renk yok). Cam YALNIZCA sekme çubuğu / sheet / topbar'da (app.css).
   İçindekiler: 1 kabuk ve başlıklar · 2 ana sayfa · 3 Haftam · 4 Kayıt + grafikler · 5 kayıt pencereleri
                6 ölçüm sonucu · 7 Takvim · 8 Mesajlar · 9 Profil · 10 iskelet / küçük ekran
   ===================================================================== */

/* ---------- 1. Kabuk ve başlıklar ---------- */
/* Mesh artık taşmıyor (app.css .p-app::before left/right: 0); clip yalnızca ek güvence (iOS 15'te desteklenmez) */
@media (max-width: 640px) { .p-app { overflow-x: clip; } }

/* Ana sayfa: tarih + selam, zil, avatar; altında "… ile takipte" hapı */
.p-app .home-head { flex-wrap: wrap; row-gap: 0; padding-bottom: 2px; }
.p-app .home-head > .grow { padding-top: 2px; }
.p-app .home-head .kicker { font-size: 13px; color: var(--ink-2); }
.p-app .care-row { flex-basis: 100%; min-width: 0; }
.p-app .care-pill {
  max-width: 100%; min-height: 40px; margin-top: 12px; padding: 0 14px 0 4px;
  font-size: 15px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.p-app .care-pill .avatar { width: 32px; height: 32px; font-size: 12px; }
.p-app .care-pill .cp-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sekme sayfaları: büyük başlık + sağda eylem(ler) + zil */
.p-app .pg-head { align-items: center; gap: 10px; padding-bottom: 4px; }
.p-app .pg-head h1 { font-size: 32px; line-height: 1.1; }
.p-app .pg-head .lead { margin-top: 3px; font-size: 16px; font-weight: 550; }
.p-app .pg-head > .btn, .p-app .pg-head > .chip { flex: none; }
.p-app .pg-head .lead .chip { margin-top: 2px; }
/* Profil girişi her sekmenin başlığında (zil yanında) */
.p-app .p-head > .avatar[data-profile] { flex: none; }
.p-app .topbar > .avatar[data-profile] { width: 40px; height: 40px; font-size: 14px; }

/* Kompakt yapışkan başlık (Mesajlar / Profil) */
.p-app .topbar .grow { min-width: 0; }
.p-app .topbar .grow h1 { display: block; }
.p-app .chat-head { gap: 12px; min-height: calc(64px + var(--safe-t)); padding-left: calc(var(--gutter) + var(--safe-l)); }
.p-app .chat-head h1 { font-size: 16.5px; }
.p-app .chat-head .sub { font-size: 14px; line-height: 1.25; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-app .disclaimer { padding: 2px 12px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.p-app .ok-text[hidden] { display: none; }
/* Satır içi not iki satıra taşarsa hap yerine yumuşak köşeli kutu */
.p-app .p-main .note { align-items: flex-start; border-radius: 12px; max-width: 100%; }
.p-app .p-main .note svg.i { margin-top: 1px; }
.p-app details > summary { list-style: none; cursor: pointer; }
.p-app details > summary::-webkit-details-marker { display: none; }
.p-app details .chev { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.p-app details[open] > summary .chev { transform: rotate(180deg); }

/* ---------- 2. Ana sayfa ---------- */
/* Kahraman bağlantıdır: odak halkası sayfa zemininde görünür olsun */
.p-app a.hero:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.p-app a.hero:active { transform: scale(.995); }
.p-app .hero .hero-size { max-width: calc(100% - 4px); }
.p-app .hero-pp .hero-text { max-width: 32ch; }
.p-app .hero-pp .progress { margin-top: 16px; }
.p-app .hero-pp .hero-unit .chip { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.p-app .urgent-acts.one { grid-template-columns: 1fr; }
.p-app .urgent + .hero-slim { margin-top: 12px; }

/* Seviye kartları: üstte seviye çipi + zaman */
.p-app .alert-card .ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.p-app .alert-card .ac-top time { font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.p-app .alert-card .ico { width: 44px; height: 44px; border-radius: var(--r-sm); }
.p-app .alert-card p { font-size: 15px; line-height: 1.45; }
.p-app .alert-card .ac-acts { margin-top: 12px; }
.p-app .alert-card h4 b { font-variant-numeric: tabular-nums; }
.p-app .alert-card .ac-sent { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--teal-ink); }
.p-app .alert-card .ac-sent svg.i { width: 16px; height: 16px; stroke-width: 2.6; }

/* Bugün */
.p-app .today { padding: 16px 16px 6px; }
.p-app .today .card-title { margin-bottom: 2px; }
.p-app .today .card-title h2 { font-size: 22px; letter-spacing: -.02em; }
.p-app .today .list-row { min-height: 68px; }
.p-app .med-row .m, .p-app .sug-row .m { color: var(--muted); }
.p-app .med-row .m b, .p-app .sug-row .m b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.p-app .med-row .ok-text { margin-right: 2px; }
.p-app .med-row .note { margin-top: 7px; }
.p-app .med-row .tick { align-self: center; }
.p-app .sug-row .gir { flex: none; padding: 0 16px 0 12px; }
.p-app .today-done { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; color: var(--ink-2); font-weight: 600; }

/* Sıradaki randevu */
.p-app .card.appt-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.p-app .appt-card .kicker { margin-bottom: 1px; }
.p-app .appt-card h3 { font-size: 18px; letter-spacing: -.015em; }
.p-app .appt-card .m { margin-top: 1px; font-size: 15px; color: var(--ink-2); }
.p-app .appt-card .chip, .p-app .appt-card .note { margin-top: 8px; }
.p-app .appt-card .chip + .note { margin-left: 4px; }

/* Doktorunuzdan */
.p-app .card.msg-card { padding: 14px 16px 16px; }
.p-app .msg-card .card-title { margin-bottom: 8px; }
.p-app .msg-card .card-title h2 { font-size: 20px; }
.p-app .msg-card .link { min-height: 32px; }
.p-app .msg-row { display: flex; align-items: flex-start; gap: 12px; }
.p-app .msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.p-app .msg-top b { min-width: 0; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-app .msg-top time { flex: none; font-size: 13px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-app .msg-row p {
  margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-app .msg-row .udot { margin-top: 8px; }

/* SOS (kırmızı bayraklar satır içinde + 112) */
.p-app .sos .sos-title { display: flex; align-items: center; gap: 6px; }
.p-app .sos .sos-title svg.i { width: 18px; height: 18px; flex: none; }
.p-app .sos .sos-flags { font-size: 15px; }
.p-app .sos .linkbtn { margin-top: 8px; }

/* ---------- 3. Haftam ---------- */
.p-app .weeks {
  margin: 2px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter) 12px; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black var(--gutter), black calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black var(--gutter), black calc(100% - var(--gutter)), transparent 100%);
}
.p-app .weeks button { position: relative; width: 52px; height: 58px; border-radius: 20px; font-size: 21px; letter-spacing: -.02em; }
.p-app .weeks button.past { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.p-app .weeks button.fut { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.p-app .weeks button.now { color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand-line), var(--shadow-1); }
.p-app .weeks button.sel { width: 64px; height: 74px; border-radius: 22px; font-size: 29px; background: var(--brand-solid); color: var(--on-brand); box-shadow: var(--shadow-hero); }
.p-app .weeks button small { font-size: 11px; line-height: 1; font-weight: 750; color: inherit; }

.p-app .scrub { display: flex; align-items: center; gap: 10px; margin: 0 2px; font-size: 12px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-app .scrub .track { position: relative; flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--surface-3); }
.p-app .scrub .track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--cur, 0%); border-radius: inherit; background: var(--brand-solid); opacity: .8; }
.p-app .scrub .track i { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px; background: var(--line-strong); }
.p-app .scrub .t1 { left: 25%; }
.p-app .scrub .t2 { left: 63.9%; }
.p-app .scrub .track b { position: absolute; top: 50%; left: var(--sel, 0%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--brand-solid); box-shadow: 0 0 0 3px var(--surface), var(--shadow-1); }

.p-app .weekcard { padding: 18px 18px 6px; }
.p-app .wc-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.p-app .wc-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-app .wc-title h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p-app .wc-top .m { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.p-app .wc-size { margin-top: 2px; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-app .wc-size b { font-weight: 800; }
.p-app .wc-size .sep { margin: 0 6px; color: var(--muted); }
/* Hafta kartındaki küçük meyve küresi: bu ekranın tek dekoratif gradyanı (kahraman yok) */
.p-app .wk-orb {
  flex: none; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--surface) 0%, var(--peach-soft) 58%, var(--brand-soft) 100%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.p-app .wk-orb span { font-family: var(--font-emoji); font-size: 44px; line-height: 1; transform: rotate(-12deg); }
.p-app .weekcard .sect p { font-size: 15px; }

/* Hatırlatma + bu haftanın testleri: tek sıcak kart */
/* Şeftali = sıcak bilgi; amber yalnızca "Bugün" seviyesine ayrıldı */
.p-app .tip-card { background: var(--peach-soft); box-shadow: inset 0 0 0 1px var(--peach-line); }
.p-app .tip-t { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--peach-ink); }
.p-app .tip-t svg.i { width: 20px; height: 20px; flex: none; }
.p-app .tip-card > p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.p-app .tests { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--peach-line); }
.p-app .tests .kicker { margin-bottom: 4px; color: var(--peach-ink); }
.p-app .trow { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.p-app .trow .tile { background: var(--surface); color: var(--accent-ink); }
.p-app .trow .t { font-size: 15px; font-weight: 750; line-height: 1.3; }
.p-app .trow .m { color: var(--ink-2); }

.p-app .pp-card p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.p-app .pp-card.now { box-shadow: inset 0 0 0 2px var(--brand-line), var(--shadow-1); }
.p-app .pp-card .card-title { margin-bottom: 6px; }

/* ---------- 4. Kayıt + grafikler ---------- */
.p-app .lt-grid { gap: 10px; }
.p-app .lt { min-height: 96px; padding: 12px 4px 10px; gap: 8px; font-size: 14px; transition: box-shadow var(--dur), transform .06s; }
.p-app .lt:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.p-app .lt:active { transform: scale(.97); }
.p-app .p-main > .section-title { margin: 24px 2px -2px; }
.p-app .section-title h2 { font-size: 20px; }
.p-app .stack-cards > * + * { margin-top: 14px; }

.p-app .cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.p-app .cc-head h3 { font-size: 17px; }
.p-app .cc-head .m { margin-top: 0; font-size: 13.5px; }
.p-app .cc-val { flex: none; text-align: right; line-height: 1; }
.p-app .cc-val b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-app .cc-val span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.p-app .chart-card { padding: 16px 16px 14px; }
.p-app .cc-foot { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.p-app .cc-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.p-app .cc-foot .sep { margin: 0 6px; color: var(--muted); }
.p-app .sym-row { min-height: 52px; font-size: 15px; }
.p-app .sym-row time { flex: none; }

/* ---------- 5. Kayıt pencereleri (.pt-sheet) ---------- */
.pt-sheet .log-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 48px; }
.pt-sheet.no-x .log-head { padding-right: 0; }
.pt-sheet .log-head .tile { width: 52px; height: 52px; border-radius: 17px; }
.pt-sheet .log-head .tile svg.i { width: 26px; height: 26px; }
.pt-sheet .log-head h2 { font-size: 22px; line-height: 1.15; }
.pt-sheet .log-head .m { margin-top: 3px; font-size: 15px; color: var(--ink-2); }
.pt-sheet textarea.input.note-input { min-height: 76px; }
.pt-sheet .log-form .btn.lg { margin-top: 18px; }
.pt-sheet .log-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.pt-sheet .log-form input[type="number"]::-webkit-inner-spin-button,
.pt-sheet .log-form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pt-sheet .log-form .hint { margin-top: 6px; }
.pt-sheet .targets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pt-sheet .seg.seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--r-md); }
.pt-sheet .seg.seg-grid label { min-height: 46px; border-radius: 14px; white-space: normal; }

.pt-sheet .sym-group, .pt-sheet .q { min-width: 0; margin: 0; padding: 0; border: 0; }
.pt-sheet .sym-group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 750; color: var(--ink-2); }
.pt-sheet .sym-group + .sym-group, .pt-sheet .q + .q { margin-top: 18px; }
.pt-sheet .opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-sheet .opt-grid .check { min-height: 50px; padding: 11px 12px; align-items: center; font-size: 15px; line-height: 1.25; }
/* Sıklık ölçeği (PHQ-2/GAD-2): tek sütun, eşit satırlar — uzun seçenekler kırılıp düzensiz karolar oluşturmaz */
.pt-sheet .opt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pt-sheet .opt-list .check { min-height: 48px; padding: 0 14px; align-items: center; font-size: 15.5px; line-height: 1.25; }
.pt-sheet .q legend { display: flex; align-items: flex-start; gap: 10px; padding: 0; margin-bottom: 10px; font-size: 15.5px; font-weight: 750; line-height: 1.35; color: var(--ink); }
.pt-sheet .q-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; }

.pt-sheet .sheet-lead { margin: -4px 0 14px; color: var(--ink-2); line-height: 1.5; }
.pt-sheet.flags-sheet .log-head h2 { font-size: 20px; }
.pt-sheet .flag-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-sheet .flag-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--acil-bg); color: var(--ink); font-weight: 650; line-height: 1.35; }
.pt-sheet .flag-list svg.i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--acil); }
.pt-sheet .kvkk-text.kvkk-full { max-height: none; margin-top: 10px; }

/* Sayaçlar (pencerenin tek kahraman anı .counter) */
.pt-sheet.counter-sheet .counter { width: 196px; height: 196px; margin: 6px auto 10px; }
.pt-sheet .counter .k-cnt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pt-sheet .counter .k-cnt > span { font-size: 15px; font-weight: 700; opacity: .95; }
.pt-sheet .pips { display: flex; justify-content: center; gap: 6px; margin: 2px 0 4px; }
.pt-sheet .pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); transition: background-color var(--dur); }
.pt-sheet .pips i.on { background: var(--brand-solid); }
.pt-sheet .kick-time { margin-top: 8px; }
.pt-sheet .kick-time .m { font-size: 13.5px; }
.pt-sheet .stat-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px; }
.pt-sheet .stat-trio > div { padding: 10px 6px; border-radius: var(--r-sm); background: var(--surface-2); text-align: center; }
.pt-sheet .stat-trio b { display: block; font-size: 20px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-sheet .stat-trio small { font-size: 12.5px; font-weight: 650; color: var(--muted); }
/* Son kasılmalar: ince çizgili yumuşak kap; süren kasılma nabızlı nokta + çip */
.pt-sheet .c-list:empty { display: none; }
.pt-sheet .c-list { margin: 4px 0 2px; padding: 6px 14px 4px; border-radius: var(--r-md); background: var(--surface-2); }
.pt-sheet .c-list .kicker { padding: 4px 0 2px; }
.pt-sheet .c-list .list-row { min-height: 44px; padding: 8px 0; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); }
.pt-sheet .c-list .kicker + .list-row { border-top: 0; }
.pt-sheet .c-list .c-t { font-weight: 750; font-variant-numeric: tabular-nums; }
.pt-sheet .c-list .c-d { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pt-sheet .c-gap { width: 84px; text-align: right; }
.pt-sheet .c-live { display: inline-flex; align-items: center; gap: 7px; }
.pt-sheet .c-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: koza-live 1.4s ease-in-out infinite; }
@keyframes koza-live { 50% { opacity: .35; } }
.pt-sheet .sheet-foot { margin-top: 12px; }

/* ---------- 6. Ölçüm sonucu (.pt-sheet.result-sheet) ---------- */
.pt-sheet.result-sheet .result-head h2 { letter-spacing: -.02em; }
.pt-sheet.result-sheet .reading .r-val b { font-size: 48px; }
.pt-sheet.result-sheet .reading + .chip { margin-top: 12px; }
.pt-sheet.result-sheet .chip-row { margin-top: 14px; }
.pt-sheet.result-sheet .remind { margin-top: 12px; padding: 2px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.pt-sheet .acts-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.pt-sheet .acts-split > .btn:last-child { padding: 0 26px; }
.pt-sheet .sheet-acts > .acts-split .btn { min-height: 50px; font-size: 16px; }

/* ---------- 7. Takvim ---------- */
.p-app .datetile.sm { width: 52px; height: 64px; border-radius: 16px; }
.p-app .datetile.sm b { font-size: 24px; }
.p-app .datetile.sm small { font-size: 10.5px; }
.p-app .appt-row { align-items: flex-start; }
.p-app .appt-row .m { color: var(--ink-2); }
.p-app .appt-row .chip, .p-app .appt-row .note { margin-top: 8px; }
.p-app .appt-row .chip + .note { margin-left: 4px; }
.p-app details.more { margin-top: 4px; border-top: 1px solid var(--line); }
.p-app details.more > summary, .p-app .bag-grp > summary { display: flex; align-items: center; gap: 10px; min-height: 50px; font-weight: 700; color: var(--ink-2); }
.p-app .past-row { min-height: 44px; padding: 8px 0; font-size: 15px; }
.p-app .res-row { border-top: 1px solid var(--line); }
.p-app .card-title + .res-row { border-top: 0; }
.p-app .res-row > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; }
.p-app .res-row > summary .t { display: block; font-weight: 750; line-height: 1.3; }
.p-app .res-row > summary .m { display: block; margin-top: 1px; }
.p-app .res-sum { margin: 0 0 12px 56px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); white-space: pre-wrap; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.p-app .timeline .tl-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.p-app .timeline .tl-t b { font-size: 15.5px; }
.p-app .timeline .m { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.p-app .tl-item.past b, .p-app .tl-item.past .m { color: var(--muted); }

/* ---------- 8. Mesajlar ---------- */
/* Yazma alanının yüksekliği (--composer-h, patient.js ResizeObserver) + sekme çubuğu boşluğu */
.p-app.on-chat { padding-bottom: calc(var(--composer-h, 60px) + 124px + var(--safe-b)); }
.p-app .chat-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); background: var(--bilgi-bg); color: var(--bilgi-ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.p-app .chat-note svg.i { flex: none; width: 18px; height: 18px; }
.p-app .chat-note a { color: inherit; }
.p-app .day-sep { display: flex; justify-content: center; margin: 8px 0 2px; }
.p-app .day-sep span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.p-app .chat .bubble { max-width: 84%; font-size: 16px; }
.p-app .chat .bubble time { text-align: right; }
.p-app .chat .bubble.them time { text-align: left; color: var(--muted); opacity: 1; }

/* Yazma alanı: sekme çubuğunun üstünde sabit; klavye açıkken (.kb) klavyenin hemen üstünde. Düz yüzey (cam değil). */
.p-app .composer {
  position: fixed; z-index: var(--z-tabbar);
  left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r));
  bottom: calc(108px + var(--safe-b)); /* ortadaki "+" düğmesinin üstünde */
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 6px; border-radius: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
}
.p-app .composer textarea.input {
  min-height: 48px; max-height: 140px; padding: 13px 16px;
  border-radius: 22px; background: var(--surface-2); box-shadow: none; resize: none;
}
.p-app .composer textarea.input:focus { box-shadow: inset 0 0 0 2px var(--focus); }
.p-app .composer .send { width: 48px; min-height: 48px; border-radius: 50%; }
.p-app.kb .tabbar, .p-app.kb::after { display: none; }
.p-app.kb .composer { bottom: max(calc(var(--kb, 0px) + 8px), calc(8px + var(--safe-b))); }

/* ---------- 9. Profil ---------- */
.p-app .profile-card .pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.p-app .profile-card h2 { font-size: 21px; }
.p-app .profile-card .kv { padding-top: 14px; border-top: 1px solid var(--line); gap: 10px 16px; font-size: 15px; }
.p-app .bag-card .cc-head { margin-bottom: 4px; }
.p-app .bag-grp { border-top: 1px solid var(--line); }
.p-app .bag-grp > summary { color: var(--ink); }
.p-app .bag-grp .stack-sm { padding-bottom: 12px; }
.p-app .bag-grp .check { min-height: 48px; padding: 11px 14px; font-size: 15px; }
.p-app .priv-text { margin: -2px 0 12px; font-size: 15px; line-height: 1.5; }
.p-app .priv-acts { display: grid; gap: 8px; }
.p-app .priv-acts .btn { width: 100%; }
.p-app .theme-pick { margin-top: 2px; }

/* ---------- 10. İskelet ve küçük ekran ---------- */
.p-app .home-skel .hero-skel { height: 268px; border-radius: 32px; margin-bottom: 14px; }
@media (max-width: 600px) {
  .p-app .disclaimer { font-size: 15px; }
}
@media (max-width: 380px) {
  .p-app .pg-head h1 { font-size: 28px; }
  .p-app .sos { padding-right: 12px; }
  .p-app .sos .sos-call { min-width: 80px; padding: 0 12px; }
  .p-app .lt-grid { gap: 8px; }
  .p-app .lt { font-size: 13.5px; }
  .pt-sheet .opt-grid .check { padding: 10px; }
  .pt-sheet .acts-split > .btn:last-child { padding: 0 18px; }
}
@media (max-width: 359px) {
  .pt-sheet .opt-grid { grid-template-columns: 1fr; }
  .p-app .care-pill { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-app a.hero:active, .p-app .lt:active { transform: none; }
  .pt-sheet .c-live::before { animation: none; }
}
