:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #12203a;
  --muted: #6b7a90;
  --line: #e6eef7;
  --blue: #2f6bff;
  --blue-soft: #eef3ff;
  --teal: #1fc7b8;
  --violet: #6a5cff;
  --navy: #15224a;
  --shadow: 0 8px 22px rgba(18, 32, 58, 0.06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  background:
    radial-gradient(900px 280px at 80% -10%, #e7efff 0, transparent 55%),
    var(--bg);
  color: var(--ink);
  display: flex;
}

.side {
  width: 220px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 12px 12px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.brand strong { display: block; font-size: 12px; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 11px; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2f6bff, #79a4ff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.doc {
  display: flex; gap: 8px; align-items: center;
  background: #f7f9fd; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 14px;
}
.doc-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: #dbe7ff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.doc strong { display: block; font-size: 12px; }
.doc small { color: var(--muted); font-size: 11px; }
nav { display: flex; flex-direction: column; gap: 3px; }
nav a {
  text-decoration: none;
  color: #5b6b82;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a svg { width: 16px; height: 16px; flex: none; }
nav a.on { background: var(--blue-soft); color: var(--blue); }
nav a:hover { background: #f4f7ff; color: var(--blue); }
.side-wave { display: none; }

.wrap { flex: 1; padding: 16px 22px 28px; min-width: 0; }
.top { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.top > div { flex: 1; min-width: 0; }
h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.03em; }
.hello, .sub { margin: 0; color: var(--muted); font-size: 12px; }
.menu-btn, .menu-btn {
  display: none; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 16px; cursor: pointer;
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 10px; min-width: 200px; height: 36px;
  box-shadow: 0 4px 12px rgba(18, 32, 58, 0.04);
}
.search svg { width: 15px; height: 15px; color: var(--muted); }
.search input, label input, .form input {
  border: 0; background: transparent; font: inherit; outline: none; width: 100%;
  color: var(--ink);
}
label input, .form input, .search.wide input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.search.wide { margin-bottom: 12px; border: 0; box-shadow: none; padding: 0; height: auto; }
.search.wide input { flex: 1; min-width: 0; }

.btn, .snap {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  border-radius: 10px; padding: 8px 12px; white-space: nowrap; font-size: 13px;
  background: var(--blue); color: #fff;
}
.btn.dark { background: var(--navy); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #d7e3ff; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.flash { border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-weight: 600; }
.flash.ok { background: #e8fff8; color: #0f7a64; }
.flash.err { background: #ffecec; color: #b42318; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat {
  color: #fff; border-radius: 16px; padding: 12px 14px;
  min-height: 72px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: flex-end;
  overflow: hidden; position: relative;
}
.stat span { opacity: .9; font-size: 12px; font-weight: 600; }
.stat b { display: block; font-size: 26px; margin-top: 4px; letter-spacing: -0.04em; }
.stat.teal { background: linear-gradient(135deg, #14c4b8, #63e0c8); }
.stat.blue { background: linear-gradient(135deg, #3b78ff, #6ea0ff); }
.stat.violet { background: linear-gradient(135deg, #6a5cff, #9b8cff); }
.stat.navy { background: linear-gradient(135deg, #24357a, #4c63c7); }
.stat .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.18);
}

.hero {
  margin: 12px 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  box-shadow: var(--shadow);
  align-items: center;
  gap: 12px;
}
.hero.compact {
  grid-template-columns: 1fr auto;
  padding: 12px 16px;
}
.eyebrow { margin: 0 0 2px; color: var(--blue); font-weight: 700; font-size: 11px; }
.hero h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.03em; }
.hero p { color: var(--muted); max-width: 560px; line-height: 1.4; margin: 0; font-size: 12px; }
.hero-art { display: none; }

.block { margin-bottom: 4px; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 8px; }
.block-head h3 { margin: 0; font-size: 15px; }
.block-head a { color: var(--blue); font-weight: 700; text-decoration: none; font-size: 12px; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.appointments { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.appt {
  background: #fff; border-radius: 12px; padding: 8px 6px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; border: 1px solid var(--line);
}
.appt .avatar { width: 32px; height: 32px; font-size: 13px; }
.appt strong { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.appt small, .appt em { color: var(--muted); font-style: normal; font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.appt:nth-child(2) { border-top: 3px solid var(--teal); }
.appt:nth-child(3) { border-top: 3px solid var(--violet); }
.appt:nth-child(4) { border-top: 3px solid #f59e0b; }
.appt:first-child { border-top: 3px solid var(--blue); }
.appt:hover { transform: translateY(-1px); transition: .15s ease; }
.appointments .card.empty { grid-column: 1 / -1; aspect-ratio: auto; }

.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.card.empty { color: var(--muted); }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.muted { color: var(--muted); }
.barline { display: grid; grid-template-columns: 1fr 130px 22px; gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; }
.bar { height: 6px; background: #eef2f8; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #6ea0ff); }

.people a, .row-item {
  display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.people a:last-child, .row-item:last-child { border: 0; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e8efff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.chip { margin-left: auto; background: #eef3ff; color: var(--blue); border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.table .row-item { padding: 8px 4px; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav h3 { margin: 0; font-size: 15px; }
.cal-nav a {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  text-decoration: none; color: var(--ink); background: #f4f7fb; font-size: 18px; font-weight: 700;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.cal-day {
  position: relative;
  height: 34px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: inherit; font-family: inherit;
}
.cal-day:hover:not(:disabled) { background: #eef3ff; }
.cal-day.today { background: var(--blue); color: #fff; }
.cal-day.on:not(.today) { background: #dbe7ff; color: var(--blue); }
.cal-day.dim, .cal-day:disabled { color: #c3cedc; cursor: default; background: transparent; }
.cal-day.busy::after {
  content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--blue);
}
.cal-day.today.busy::after { background: #fff; }
.cal-day .tip {
  display: none; position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); white-space: nowrap;
  background: #15224a; color: #fff; font-size: 11px; font-weight: 600;
  padding: 6px 8px; border-radius: 8px; pointer-events: none;
}
.cal-day .tip b { display: block; font-size: 10px; opacity: .8; font-weight: 600; }
.cal-day:hover .tip { display: block; }
.cal-detail {
  margin-top: 10px; padding: 10px; border-radius: 12px; background: #f6f9ff;
  font-size: 12px; line-height: 1.45; min-height: 72px;
}
.cal-detail p { margin: 6px 0 0; color: var(--muted); }
.cal-detail strong { display: block; }

.form.slim, .form { max-width: 920px; }
.cols-3, .cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label { display: block; color: var(--muted); font-size: 11px; margin: 4px 0; font-weight: 600; }
label input, label select, .filters input, .filters select {
  width: 100%; margin-top: 3px; color: var(--ink); font-weight: 500;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 8px; font: inherit;
}
.treats, .treats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 12px; }
.treat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #f8fbff; }
.treat b { display: block; margin-bottom: 4px; font-size: 12px; }
.check { display: flex; gap: 6px; align-items: center; margin: 2px 0; color: var(--ink); font-weight: 500; font-size: 12px; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, .9fr) 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filter-actions { display: flex; gap: 6px; padding-bottom: 2px; }
.table-wrap { overflow: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 12px; }
table.grid th {
  text-align: left; font-size: 11px; color: var(--muted); font-weight: 700;
  padding: 6px 8px; border-bottom: 1px solid var(--line);
}
table.grid td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tbody tr { cursor: default; }
table.grid tbody tr:hover { background: #f6f9ff; }
.who { display: flex; gap: 8px; align-items: center; }
.who small { display: block; color: var(--muted); font-weight: 500; }
.prio {
  display: inline-block; border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 700;
}
.prio.p1 { background: #ffecec; color: #b42318; }
.prio.p2 { background: #eef3ff; color: #2f6bff; }
.prio.p3 { background: #eef2f6; color: #5b6b82; }

.form.slim, .form { max-width: 920px; }

.shoot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.live-card { min-width: 0; overflow: hidden; }
.shoot-side {
  min-width: 0;
  max-height: calc(100vh - 118px);
  overflow-x: hidden;
  overflow-y: auto;
}
.live-top { display: flex; justify-content: space-between; align-items: center; }
.shutter, .shutter { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 0 6px; }
.snap { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--blue); border: 5px solid #dbe6ff; }
.mode, .mode { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.center { text-align: center; }
.thumbs, .thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.thumbs img, .thumbs img { height: 76px; border-radius: 10px; object-fit: contain; background: #0e1624; }
.thumbs.big img, .thumbs.big img { height: 100px; }
.thumb-card, .thumb-plus {
  margin: 0; position: relative; width: 118px;
  border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
}
.thumbs.big .thumb-card, .thumbs.big .thumb-plus { width: 140px; }
.thumb-open {
  display: block; width: 100%; height: 76px; padding: 0; border: 0;
  background: #0e1624; cursor: zoom-in;
}
.thumbs.big .thumb-open { height: 100px; }
.thumb-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-card figcaption {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 5px 7px; font-size: 10px; color: var(--muted); background: #fff;
}
.thumb-card figcaption b { color: var(--ink); }
.thumb-plus {
  display: grid; place-items: center; cursor: pointer; height: 76px;
  border: 1.5px dashed #c5d3e8; background: #f7f9fd; color: var(--blue);
}
.thumb-plus span { font-size: 28px; font-weight: 700; line-height: 1; }
.thumb-plus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shot { margin: 0; background: #111827; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: #111827; cursor: zoom-in; }
.shot img { width: 100%; height: 160px; object-fit: contain; background: #111827; display: block; }
.shot figcaption { padding: 8px 10px; color: #c5d0e0; font-size: 12px; background: #fff; color: var(--muted); }
.shot figcaption a { color: var(--ink); font-weight: 700; text-decoration: none; }
.shot figcaption a:hover { color: var(--blue); }
.who-link { display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit; }
.who-link strong { color: var(--blue); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.dossier { display: grid; gap: 12px; max-width: 720px; }
.dossier-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.file-id { padding: 18px; }
.file-who { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.file-who h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.file-who p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.file-av {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, #2f6bff, #79a4ff); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.file-meta { display: grid; gap: 10px; margin: 0 0 14px; }
.file-meta div { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.file-meta dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.file-meta dd { margin: 0; font-weight: 700; font-size: 13px; }
.file-tx span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--blue-soft); color: var(--blue);
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.chip:hover { background: #dce6ff; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.file-main { display: grid; gap: 14px; min-width: 0; }
.album { padding: 16px; }
.album-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.album-head h3 { margin: 0; font-size: 15px; }
.album-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.album-grid .thumb-card {
  width: auto; height: auto; background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.album-grid .thumb-open { height: 132px; background: #0e1624; }
.album-grid .thumb-plus { width: auto; height: 132px; }
.album-grid figcaption {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 9px; background: #fff; font-size: 11px; color: var(--muted);
}
.album-grid figcaption b { color: var(--ink); }
.album-back { margin: 0 0 10px; }
.album-back a { color: var(--blue); font-weight: 700; text-decoration: none; }
.tx-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink);
  font-weight: 800; margin-bottom: 8px;
}
.tx-row em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12px; }
.tx-row::after { content: "›"; color: var(--muted); font-size: 20px; }
.tx-row:hover { border-color: #c9d8ff; box-shadow: var(--shadow); }
.tx-group { padding: 0; overflow: hidden; }
.tx-group summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 14px 16px; font-weight: 800; font-size: 14px;
}
.tx-group summary::-webkit-details-marker { display: none; }
.tx-group summary em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12px; }
.tx-group summary::after { content: "▸"; color: var(--muted); font-size: 14px; }
.tx-group[open] summary::after { content: "▾"; }
.tx-group .thumbs { padding: 0 14px 14px; }
.photo-viewer[hidden] { display: none !important; }
.photo-viewer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.pv-backdrop { position: absolute; inset: 0; border: 0; background: rgba(8, 14, 28, .72); cursor: pointer; }
.pv-box {
  position: relative; z-index: 1; width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); display: grid; grid-template-rows: 1fr auto;
  background: #0b1220; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.pv-img { width: 100%; max-height: min(72vh, 760px); object-fit: contain; background: #070b14; display: block; }
.pv-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff; flex-wrap: wrap;
}
.pv-title { font-size: 13px; }
.pv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status, .status {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef7ff; color: var(--blue); border-radius: 999px;
  padding: 5px 10px; font-weight: 700; font-size: 11px; margin: 0;
}
.status.off, .status.off { background: #fff4e8; color: #b25b00; }
body.klinik-desktop .desktop-hide,
body.klinik-desktop .desktop-hide { display: none !important; }

/* —— Yeni hasta kayıt —— */
.reg { max-width: 880px; display: grid; gap: 14px; }
.reg-card {
  background: #fff; border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: var(--shadow); border: 1px solid #edf2f8;
}
.reg-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.reg-head h3 { margin: 0; font-size: 16px; letter-spacing: -0.03em; }
.reg-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.reg-n {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
}
.reg-fields {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 10px;
}
.reg-fields label { margin: 0; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.reg-fields input, .reg-fields select {
  margin-top: 6px; height: 40px; border-radius: 11px; padding: 0 12px;
  border: 1px solid #dce6f2; background: #f8fbff; font-weight: 600;
}
.reg-fields input:focus, .reg-fields select:focus {
  outline: none; border-color: #8eb0ff; background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.tx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tx {
  border: 1px solid #e3ebf5; border-radius: 14px; padding: 12px 12px 10px;
  background: #fbfcff;
}
.tx:has(.tx-pill:has(input:checked)) {
  border-color: #9db8ff; background: #f3f7ff;
}
.tx b { display: block; font-size: 13px; margin-bottom: 8px; letter-spacing: -0.02em; }
.tx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-pill { margin: 0; }
.tx-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tx-pill span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid #d7e2f0; background: #fff;
  color: #3d4e68; font-size: 12px; font-weight: 700; cursor: pointer;
}
.tx-pill input:checked + span {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.tx-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 107, 255, .2); }
.reg-foot { display: flex; gap: 8px; align-items: center; }
.btn.lg { height: 44px; padding: 0 22px; border-radius: 12px; font-size: 14px; }

/* —— Canlı çekim —— */
.live-card { padding: 14px 14px 12px; position: sticky; top: 8px; }
.live-kicker { display: flex; align-items: center; gap: 8px; }
.live-kicker h3 { margin: 0; font-size: 15px; }
.rec {
  width: 8px; height: 8px; border-radius: 50%; background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .16);
  animation: rec 1.4s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: .35; } }
.viewfinder {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #070b14; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 100%;
  max-height: min(62vh, 720px);
  height: auto;
}
.viewfinder .stage {
  position: absolute; inset: 0;
  background: #070b14; border-radius: 16px; min-height: 0;
  overflow: hidden; display: grid; place-items: center;
}
.viewfinder .stage img,
.viewfinder .stage canvas,
.viewfinder .stage video {
  width: 100%; height: 100%; object-fit: contain; background: #070b14; display: block;
}
.stage-idle {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #9eb0c9; text-align: center;
  background: radial-gradient(500px 220px at 50% 40%, #152038, transparent 70%);
  pointer-events: none;
}
.stage-idle.hide { display: none; }
.stage-idle strong { color: #e8eef8; font-size: 16px; letter-spacing: -0.03em; }
.stage-idle small { color: #8ea0ba; font-size: 12px; max-width: 280px; line-height: 1.4; }
.cam-ico {
  width: 42px; height: 32px; border-radius: 8px; margin-bottom: 8px;
  border: 2px solid #5d7190; position: relative;
}
.cam-ico::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #5d7190; right: 8px; top: 7px;
}
.vf-marks {
  pointer-events: none; position: absolute; inset: 14px;
  border: 0;
  background:
    linear-gradient(#dbe7ff, #dbe7ff) top left / 18px 2px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) top left / 2px 18px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) top right / 18px 2px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) top right / 2px 18px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) bottom left / 18px 2px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) bottom left / 2px 18px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) bottom right / 18px 2px no-repeat,
    linear-gradient(#dbe7ff, #dbe7ff) bottom right / 2px 18px no-repeat;
}
.shoot-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 14px 8px 4px;
}
.kind-seg {
  display: flex; background: #eef2f8; border-radius: 999px; padding: 3px;
}
.kind { margin: 0; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span {
  display: block; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #5b6b82; cursor: pointer;
}
.kind input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(18,32,58,.1); }
.shutter-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: conic-gradient(from 180deg, #2f6bff, #79a4ff, #2f6bff);
  padding: 5px; box-shadow: 0 8px 20px rgba(47, 107, 255, .28);
}
.shutter-btn i {
  display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff;
}
.shutter-btn:active { transform: scale(.96); }
.live-hint { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.shoot-side .side-card { padding: 14px; }
.meta { display: grid; gap: 8px; margin: 0 0 10px; }
.meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.meta dt { color: var(--muted); font-weight: 600; }
.meta dd { margin: 0; font-weight: 700; }
.treat-line { margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.btn.danger { color: #b42318; border-color: #f3c4c0; }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.folder-card {
  display: grid;
  grid-template-rows: 120px auto;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.folder-card:hover { border-color: #c9d8ff; }
.folder-cover {
  display: block;
  background: #0e1624 center/cover no-repeat;
}
.folder-body { padding: 12px 14px 14px; }
.folder-body strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.folder-body small { color: var(--muted); font-weight: 600; }

@media (max-width: 900px) {
  .reg-fields, .tx-grid, .file { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .appointments { grid-template-columns: repeat(6, 1fr); }
  .hero.compact { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .stats, .grid-2, .shoot-grid, .shoot-grid, .cols-3, .cols-3, .treats, .treats, .masonry, .hero { grid-template-columns: 1fr; }
  .appointments { grid-template-columns: repeat(3, 1fr); }
  .side { display: none; position: fixed; height: 100vh; }
  .side.open { display: flex; }
  .menu-btn, .menu-btn { display: grid; place-items: center; }
  .wrap { padding: 12px; }
  .top { flex-wrap: wrap; }
  .search { min-width: 0; width: 100%; order: 5; }
  .shoot-side { max-height: none; overflow: visible; }
  .live-card { position: static; }
}
