/* Clineo — Psikolog + Psikiyatri yeni arayüzü (1 Eki 2026). Yalnız .psy kökü altında; başka ekranı etkilemez. */
.psy {
  --ink: #0e1f3b; --ink2: #3d4d66; --muted: #5a6880; --blue: #1b5faa; --blue-d: #12457f; --blue-s: #e3eefa;
  --ice: #eef4fb; --bg: #f6f9fd; --surf: #fff; --line: #dce5f0; --line2: #e9eff7;
  --ok: #1b7a57; --ok-s: #e4f4ec; --warn: #8a5200; --warn-s: #fdf1dc; --bad: #a8352f; --bad-s: #fbe8e6;
  --neo: #10284c; --sec: #5b4a9e; --sec-s: #f4f2fa; --sec-l: #ddd7ee;
  --c1: #1b5faa; --c2: #5b4a9e; --c3: #0f6f6b; --c4: #b0560a; --c5: #7b8798; --c6: #9a3d6b;
  color: var(--ink); font: 400 15px/1.5 "Work Sans", "Segoe UI", system-ui, sans-serif; padding-bottom: 80px;
}
html[data-theme="dark"] .psy {
  --ink: #e6edf7; --ink2: #b6c3d6; --muted: #93a3ba; --blue: #6aa8ec; --blue-d: #93c1f3; --blue-s: #16304f;
  --ice: #142640; --bg: #0f1e34; --surf: #0f1d33; --line: #213656; --line2: #1a2c47;
  --ok: #4cc393; --ok-s: #10301f; --warn: #f0b358; --warn-s: #33260f; --bad: #f08a83; --bad-s: #3a1717;
  --sec: #b3a6ec; --sec-s: #1d1a33; --sec-l: #352f5a;
}
.psy *, .psy *::before, .psy *::after { box-sizing: border-box; }
.psy h1, .psy h2, .psy h3, .psy h4 { font-family: Poppins, "Segoe UI", sans-serif; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.psy p { margin: 0; }
.psy button { font: inherit; color: inherit; cursor: pointer; }
.psy :focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.psy .num { font-variant-numeric: tabular-nums; }
.psy .mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-weight: 500; }
.psy .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.psy .psy-muted { color: var(--muted); }
.psy .psy-card { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; }
.psy .psy-eyebrow { font: 600 11.5px/1 Poppins, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.psy .psy-empty { padding: 18px; color: var(--muted); font-size: 14px; }
.psy a { color: var(--blue); }

/* Düğmeler */
.psy .pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surf); font: 500 14px/1 Poppins, sans-serif; color: var(--ink); white-space: nowrap; text-decoration: none; }
.psy .pbtn:hover { border-color: var(--blue); color: var(--blue); }
.psy .pbtn.p { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(27,95,170,.7); }
.psy .pbtn.p:hover { background: var(--blue-d); color: #fff; }
.psy .pbtn.sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.psy .pbtn:disabled { opacity: .55; cursor: default; }
.psy .lnk { border: 0; background: none; color: var(--blue); font-weight: 500; padding: 4px 0; }

/* Üst satır */
.psy-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 6px 0 20px; }
.psy-top h1 { font-size: 27px; font-weight: 600; line-height: 1.15; }
.psy-top p { color: var(--ink2); margin-top: 6px; }
.psy-top p b { color: var(--ink); font-weight: 600; }

.psy-grid3 { display: grid; grid-template-columns: 290px minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.psy-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.psy-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Gün şeridi */
.psy-day { padding: 16px 12px 12px; }
.psy-day-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 10px; }
.psy-slots { list-style: none; margin: 0; padding: 0; position: relative; }
.psy-slots::before { content: ""; position: absolute; left: 60px; top: 14px; bottom: 14px; width: 2px; background: var(--line2); }
.psy-slot { display: grid; grid-template-columns: 44px 18px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 6px; border-radius: 12px;
  position: relative; width: 100%; text-align: left; border: 0; background: none; }
.psy-slot:hover { background: var(--bg); }
.psy-slot .t { font: 500 13.5px/20px "Work Sans", sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.psy-dot { width: 12px; height: 12px; border-radius: 50%; margin: 4px 0 0 3px; background: var(--surf); border: 2px solid var(--line); position: relative; z-index: 1; }
.psy-dot.ok { background: var(--ok); border-color: var(--ok); }
.psy-dot.warn { border-color: var(--warn); background: var(--warn-s); }
.psy-dot.miss { background: #c3ccd8; border-color: #c3ccd8; }
.psy-dot.next { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(27,95,170,.16); }
.psy-slot b { display: block; font-weight: 600; font-size: 14.5px; line-height: 20px; }
.psy-slot small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.psy-slot small.w { color: var(--warn); }
.psy-slot .on { color: var(--blue); font-weight: 500; }
.psy-slot.sel { background: var(--ice); box-shadow: inset 0 0 0 1.5px var(--blue); }
.psy-slot.miss b { color: var(--muted); text-decoration: line-through; }
.psy-day-f { margin-top: 8px; padding: 10px 6px 2px; border-top: 1px solid var(--line2); display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }

/* Seans öncesi dosya */
.psy-brief { padding: 20px 22px 18px; }
.psy-who { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.psy-av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font: 600 16px/1 Poppins, sans-serif; background: var(--blue-s); color: var(--blue); flex: none; }
.psy-who h2 { font-size: 23px; font-weight: 600; line-height: 1.15; }
.psy-who p { color: var(--ink2); font-size: 14px; margin-top: 3px; }
.psy-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 Poppins, sans-serif; color: var(--blue-d); background: var(--blue-s); padding: 9px 13px; border-radius: 99px; }
.psy-modebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.psy-modebar p { font-size: 13px; color: var(--muted); }
.psy-mode { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; }
.psy-mode button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; border-radius: 9px; padding: 0 13px; min-height: 36px; font: 500 13.5px/1 Poppins, sans-serif; color: var(--ink2); }
.psy-mode button[aria-pressed="true"] { background: var(--surf); color: var(--blue-d); box-shadow: 0 1px 2px rgba(14,31,59,.08), 0 0 0 1px var(--line); }
.psy-line { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 13px; }
.psy-line b { color: var(--ink); font-weight: 600; }
.psy-line .pbtn, .psy-line .lnk { margin-left: auto; }
.psy-line.warn { background: var(--warn-s); border-color: transparent; color: var(--warn); }
.psy-line.bad { background: var(--bad-s); border-color: transparent; color: var(--bad); }
.psy-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line2); }
.psy-q { padding: 16px 18px 16px 0; min-width: 0; }
.psy-q:nth-child(even) { padding: 16px 0 16px 18px; border-left: 1px solid var(--line2); }
.psy-q:nth-child(n+3) { border-top: 1px solid var(--line2); }
.psy-q h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.psy-q .src { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.psy-q .txt { font-size: 14.5px; color: var(--ink2); white-space: pre-line; max-height: 168px; overflow: auto; }
.psy-hw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.psy-hw li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink2); }
.psy-tag { display: inline-block; font: 600 11.5px/1 "Work Sans", sans-serif; padding: 5px 8px; border-radius: 99px; white-space: nowrap; }
.psy-tag.ok { background: var(--ok-s); color: var(--ok); }
.psy-tag.warn { background: var(--warn-s); color: var(--warn); }
.psy-tag.bad { background: var(--bad-s); color: var(--bad); }
.psy-tag.n { background: var(--bg); color: var(--ink2); border: 1px solid var(--line); }
.psy-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.psy-score strong { font: 600 34px/1 Poppins, sans-serif; letter-spacing: -.03em; }
.psy-score span { font-size: 14px; color: var(--ink2); }
.psy-spark { width: 100%; height: 64px; margin: 10px 0 2px; display: block; }
.psy-goal { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.psy-goal div { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 4px 10px; font-size: 13.5px; color: var(--ink2); align-items: center; }
.psy-goal em { font-style: normal; text-align: right; font-weight: 600; color: var(--ink); }
.psy-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line2); overflow: hidden; }
.psy-bar i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.psy-secret { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 15px; border-radius: 14px; background: var(--sec-s); border: 1px solid var(--sec-l); }
.psy-secret > .ic { color: var(--sec); width: 20px; height: 20px; }
.psy-secret div { flex: 1; min-width: 200px; }
.psy-secret b { display: block; font-weight: 600; color: var(--ink); }
.psy-secret small { font-size: 13px; color: var(--ink2); }
.psy-foot { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.psy-foot .pay { font-size: 14px; color: var(--ink2); margin-right: auto; }

/* Sağ ray */
.psy-box { padding: 15px 16px; }
.psy-box h3 { font-size: 15.5px; font-weight: 600; margin: 2px 0 10px; display: flex; align-items: center; gap: 8px; }
.psy-box h3 .ic { color: var(--blue); }
.psy-todo { list-style: none; margin: 0; padding: 0; }
.psy-todo li { display: flex; flex-direction: column; gap: 7px; padding: 11px 0; border-top: 1px solid var(--line2); font-size: 14px; color: var(--ink2); }
.psy-todo li:first-child { border-top: 0; padding-top: 2px; }
.psy-todo li b { color: var(--ink); font-weight: 600; }
.psy-todo li .pbtn { align-self: flex-start; }
.psy-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 15%, #24497d 0%, #10284c 55%, #0a1628 100%); display: grid; place-items: center; }
.psy-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.psy-tile .face { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font: 600 20px/1 Poppins, sans-serif; }
.psy-tile .st { position: absolute; left: 10px; top: 10px; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.35); padding: 5px 9px; border-radius: 99px; z-index: 1; }
.psy-tile .cam { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1; }
.psy-tile .cam button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; }
.psy-vnext { margin-top: 12px; font-size: 14px; color: var(--ink2); }
.psy-vnext b { color: var(--ink); font-weight: 600; }
.psy-vact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.psy-vact .pbtn.p { grid-column: 1 / -1; }
.psy-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.psy-neo { background: var(--neo); color: #fff; border-radius: 18px; padding: 16px; }
.psy-neo .h { display: flex; align-items: center; gap: 10px; font: 600 15px/1 Poppins, sans-serif; }
.psy-neo .d { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--neo); display: grid; place-items: center; font: 700 12px/1 Poppins, sans-serif; }
.psy-neo p { font-size: 13.5px; color: #c6d3e8; margin: 10px 0 12px; }
.psy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.psy-chips button { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; border-radius: 99px; padding: 7px 12px; font-size: 13px; min-height: 34px; }
.psy-wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.psy-wk div { background: var(--bg); border-radius: 12px; padding: 11px; }
.psy-wk strong { display: block; font: 600 21px/1.1 Poppins, sans-serif; }
.psy-wk span { font-size: 12.5px; color: var(--muted); }

/* Psikiyatri sıra şeridi */
.psy-queue { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.psy-qp { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line); background: var(--surf); border-radius: 99px; padding: 0 14px; min-height: 38px; font-size: 13.5px; color: var(--ink2); }
.psy-qp .num { color: var(--muted); }
.psy-qp.done { color: var(--muted); }
.psy-qp.now { background: var(--blue); border-color: var(--blue); color: #fff; }
.psy-qp.now .num { color: #cfe0f5; }

/* Muayene ekranı */
.psy-hd { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
.psy-hd .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink2); }
.psy-hd .meta b { color: var(--ink); font-weight: 600; }
.psy-icds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.psy-icd { display: inline-flex; align-items: center; gap: 8px; background: var(--ice); border-radius: 10px; padding: 6px 6px 6px 11px; font-size: 13.5px; }
.psy-icd .mono { color: var(--blue-d); }
.psy-icd button { border: 0; background: none; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.psy-icd button:hover { color: var(--bad); }
.psy-hd .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.psy-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 18px 6px; }
.psy-ch h2 { font-size: 17px; font-weight: 600; }
.psy-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.psy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.psy-legend i { display: inline-block; width: 16px; border-top: 2.5px solid var(--blue); }

/* Seyir çizelgesi */
.psy-scroll { overflow-x: auto; padding: 0 18px 16px; }
.psy-seyir { min-width: 640px; }
.psy-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.psy-row .k { font-size: 13px; color: var(--ink2); padding: 6px 10px 6px 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.3; min-width: 0; }
.psy-row .k b { font-weight: 600; color: var(--ink); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psy-row .k small { color: var(--muted); font-size: 12px; }
.psy-plot { position: relative; background-image: linear-gradient(to right, var(--line2) 1px, transparent 1px); background-size: calc(100% / 6) 100%; border-right: 1px solid var(--line2); }
.psy-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--blue); opacity: .5; }
.psy-r-scale .psy-plot { height: 160px; border-bottom: 1px solid var(--line); }
.psy-r-scale svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.psy-pd { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--surf); border: 2.5px solid var(--blue); transform: translate(-50%, -50%); }
.psy-pv { position: absolute; transform: translate(-50%, -150%); font: 600 12px/1 "Work Sans", sans-serif; color: var(--blue-d); }
.psy-r-med .psy-plot { height: 36px; border-bottom: 1px solid var(--line2); }
.psy-seg { position: absolute; top: 6px; height: 24px; border-radius: 7px; color: #fff; font: 500 12px/24px "IBM Plex Mono", Consolas, monospace; padding: 0 7px; white-space: nowrap; overflow: hidden; border-right: 2px solid var(--surf); }
.psy-stop { position: absolute; top: 9px; font-size: 12px; color: var(--bad); white-space: nowrap; padding-left: 4px; }
.psy-r-lab .psy-plot { height: 44px; border-bottom: 1px solid var(--line2); }
.psy-ld { position: absolute; top: 26px; width: 11px; height: 11px; border-radius: 3px; background: var(--c4); transform: translate(-50%, -50%) rotate(45deg); }
.psy-lv { position: absolute; top: 4px; transform: translateX(-50%); font: 500 11.5px/1 "IBM Plex Mono", Consolas, monospace; color: var(--c4); white-space: nowrap; }
.psy-r-axis .psy-plot { height: 28px; background: none; border-right: 0; }
.psy-r-axis .psy-plot span { position: absolute; top: 7px; font-size: 12px; color: var(--muted); transform: translateX(4px); }
.psy-tlabel { position: absolute; top: 4px; transform: translateX(-50%); background: var(--blue); color: #fff; font: 600 11px/1 Poppins, sans-serif; padding: 5px 8px; border-radius: 99px; }

/* Tablolar */
.psy-tbl { overflow-x: auto; padding: 0 18px 6px; }
.psy table { width: auto; min-width: 100%; border-collapse: collapse; font-size: 14px; }
.psy th { text-align: left; font: 600 11.5px/1 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; background: none; }
.psy td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; color: var(--ink2); vertical-align: middle; }
.psy td b { color: var(--ink); font-weight: 600; }
.psy td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.psy tr.off td { color: var(--muted); }
.psy tr.off b { color: var(--muted); text-decoration: line-through; }
.psy td .acts { display: flex; gap: 6px; }
.psy-flags { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 16px; }

/* Fiziksel izlem kutuları */
.psy-vit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 6px 18px 16px; }
.psy-vit div { background: var(--bg); border-radius: 12px; padding: 11px; min-width: 0; }
.psy-vit span { display: block; font-size: 12.5px; color: var(--muted); }
.psy-vit strong { display: block; font: 600 19px/1.2 Poppins, sans-serif; color: var(--ink); margin-top: 2px; }
.psy-vit small { font-size: 12px; color: var(--ink2); }

/* Muayene formu */
.psy-exam { padding: 18px 20px 20px; }
.psy-exam h2 { font-size: 17px; font-weight: 600; }
.psy-exam .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.psy-blk { margin-top: 16px; }
.psy-blk > .t { font: 600 11.5px/1 Poppins, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.psy-mse { display: flex; flex-direction: column; gap: 9px; }
.psy-mse > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; align-items: start; }
.psy-mse > div > span { font-size: 13.5px; color: var(--ink2); padding-top: 6px; }
.psy-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.psy-opts button { border: 1px solid var(--line); background: var(--surf); border-radius: 99px; padding: 0 11px; min-height: 31px; font-size: 13px; color: var(--ink2); }
.psy-opts button:hover { border-color: var(--blue); }
.psy-opts button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 500; }
.psy-opts button.risk[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); }
.psy-opts button.good[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.psy textarea, .psy input[type="text"], .psy input[type="date"], .psy input[type="number"], .psy select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surf); }
.psy textarea { min-height: 76px; resize: vertical; }
.psy-secretbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 13px; border-radius: 14px; background: var(--sec-s); border: 1px solid var(--sec-l); }
.psy-secretbox .h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.psy-secretbox .h .ic { color: var(--sec); }
.psy-secretbox small { font-size: 12.5px; color: var(--ink2); }
.psy-secretbox textarea { background: var(--surf); border-color: var(--sec-l); min-height: 60px; }
.psy-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.psy-checks label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.psy-checks input { width: 17px; height: 17px; accent-color: var(--blue); }
.psy-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.psy-rx { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.psy-rx li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 6px; align-items: center; }
.psy-rx li input { padding: 7px 9px; font-size: 13.5px; }
.psy-rx li .x { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 0 6px; }
.psy-rxkind { font-size: 12px; color: var(--warn); margin-top: 6px; }
.psy-save { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.psy-save .pbtn { width: 100%; }
.psy-hint { font-size: 12.5px; color: var(--muted); }
.psy-hist { list-style: none; margin: 0; padding: 0 18px 14px; }
.psy-hist li { padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14px; color: var(--ink2); }
.psy-hist li b { color: var(--ink); }

/* Anamnez */
.psy-anam { padding: 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.psy-anam label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.psy-anam .wide { grid-column: 1 / -1; }

/* ICD seçici */
.psy-icdlist { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.psy-icdlist button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line2); background: none; padding: 9px 12px; font-size: 14px; color: var(--ink); }
.psy-icdlist button:hover { background: var(--ice); }
.psy-icdlist .mono { color: var(--blue-d); min-width: 52px; }

@media (max-width: 1320px) { .psy-grid3 { grid-template-columns: 270px minmax(0, 1fr); } .psy-grid3 > .psy-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 1180px) { .psy-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .psy-grid3 { grid-template-columns: 1fr; } .psy-grid3 > .psy-rail { grid-template-columns: 1fr; }
  .psy-qs { grid-template-columns: 1fr; } .psy-q, .psy-q:nth-child(even) { padding: 14px 0; border-left: 0; } .psy-q:nth-child(n+2) { border-top: 1px solid var(--line2); }
  .psy-vit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .psy-mse > div { grid-template-columns: 1fr; } .psy-mse > div > span { padding-top: 0; }
  .psy-anam { grid-template-columns: 1fr; } .psy-pill { margin-left: 0; } .psy-hd .acts { margin-left: 0; }
  .psy-rx li { grid-template-columns: 1fr 1fr; } .psy-rx li .x { justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) { .psy-dot.next { animation: psyPulse 2.4s ease-in-out infinite; } }
@keyframes psyPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(27,95,170,.22); } 50% { box-shadow: 0 0 0 8px rgba(27,95,170,.06); } }
.psy-who > div:not(.psy-av) { flex: 1; min-width: 180px; }
.psy-line > span { flex: 1; min-width: 160px; }
.psy-line > .ic { flex: none; }

/* 2. paket (1 Eki 2026): gün şeridi etiketleri, paket kutusu, çift/aile listesi */
.psy-slot .psy-minis { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.psy-mini { display: inline-block; font: 600 11px/1 "Work Sans", sans-serif; padding: 4px 7px; border-radius: 99px; background: var(--ice); color: var(--blue-d); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psy-mini.c { background: var(--sec-s); color: var(--sec); }
.psy-mini.w { background: var(--warn-s); color: var(--warn); }
.psy .psy-pk { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); margin-bottom: 6px; }
.psy .psy-pk .psy-bar { display: block; }
.psy-cl { list-style: none; margin: 0; padding: 0; }
.psy-cl li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e3e8ef; font-size: 14px; }
html[data-theme="dark"] .psy-cl li { border-color: #213656; }
.psy .psy-foot { flex-wrap: wrap; }
/* Pencere içinde sayfa boşluğu olmasın (paket, tanı seçimi) */
.modal-body .psy { padding: 0; }
