/* TÜRGEV · GİF Giriş-Çıkış Sistemi
   Renkler logolardan alınmıştır: TÜRGEV yeşili #4B776A, GİF yeşili #46B485 */
:root {
  --turgev: #4b776a;
  --turgev-dark: #2f5248;
  --turgev-deep: #223d35;
  --gif: #46b485;
  --gif-dark: #2f9468;
  --gif-soft: #e6f5ee;
  --ink: #1f2a26;
  --muted: #66766f;
  --line: #dde6e1;
  --bg: #f3f6f4;
  --card: #ffffff;
  --danger: #b4423a;
  --danger-soft: #fbecea;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --info-soft: #e8f1f8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 4px 16px rgba(20, 40, 30, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--turgev); }
h1, h2, h3 { line-height: 1.25; color: var(--turgev-deep); }
h2 { font-size: 1.2rem; margin: 0 0 .9rem; }
h3 { font-size: 1.02rem; margin: 1.2rem 0 .5rem; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86rem; }
[hidden] { display: none !important; }

/* ---------- Butonlar & formlar ---------- */
.btn { display: inline-flex; align-items: center; gap: .45rem; justify-content: center; border: 0; border-radius: 10px; padding: .62rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; background: var(--turgev); color: #fff; text-decoration: none; min-height: 42px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--turgev-dark); }
.btn:active { transform: translateY(1px); }
.btn-gif { background: var(--gif); } .btn-gif:hover { background: var(--gif-dark); }
.btn-light { background: #fff; color: var(--turgev-dark); border: 1px solid var(--line); } .btn-light:hover { background: var(--gif-soft); }
.btn-danger { background: var(--danger); } .btn-danger:hover { background: #8f3029; }
.btn-sm { padding: .35rem .7rem; min-height: 32px; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.08rem; min-height: 54px; width: 100%; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: .4rem; align-items: center; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; color: var(--turgev-deep); }
.field { margin-bottom: 1rem; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: .25rem; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid #c9d6cf; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(70, 180, 133, .3); border-color: var(--gif); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--gif); flex: none; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filters .field.grow { flex: 2 1 220px; }

/* ---------- Uyarılar & rozetler ---------- */
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: var(--gif-soft); border-color: #b9e3cf; color: #1f5d43; }
.alert-error { background: var(--danger-soft); border-color: #efc7c3; color: #7f2b25; }
.alert-warn { background: var(--warn-soft); border-color: #f0dbb0; color: #7a4f12; }
.alert-info { background: var(--info-soft); border-color: #c9dceb; color: #234a68; }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef2f0; color: var(--muted); white-space: nowrap; }
.badge-in { background: var(--gif-soft); color: #1f6b4b; }
.badge-out { background: #eef1f5; color: #4b5563; }
.badge-auto { background: var(--warn-soft); color: #7a4f12; }
.badge-off { background: var(--danger-soft); color: #7f2b25; }

/* ---------- Kartlar & tablolar ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid #e7eeea; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.card-head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); border: 1px solid #e7eeea; border-top: 4px solid var(--gif); }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--turgev-deep); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .86rem; }
.stat.t2 { border-top-color: var(--turgev); }
.stat.t3 { border-top-color: #8fb9a8; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: .6rem; border-bottom: 1px solid #edf2ef; vertical-align: middle; }
table.t tr:hover td { background: #f8fbf9; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.pager a, .pager span.cur { padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; }
.pager span.cur { background: var(--turgev); color: #fff; border-color: var(--turgev); }
.pager .muted { margin-left: auto; font-size: .85rem; }

/* ---------- Çubuk grafikler ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 1.2rem; border-bottom: 1px solid var(--line); }
.bars .b { flex: 1; background: var(--gif); border-radius: 5px 5px 0 0; position: relative; min-height: 2px; }
.bars .b:hover { background: var(--turgev); }
.bars .b span { position: absolute; top: -1.15rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bar-labels { display: flex; gap: 4px; }
.bar-labels span { flex: 1; text-align: center; font-size: .68rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: .6rem; align-items: center; margin-bottom: .45rem; font-size: .9rem; }
.hbar .track { background: #edf3f0; border-radius: 99px; height: 12px; overflow: hidden; }
.hbar .fill { background: var(--turgev); height: 100%; border-radius: 99px; }
.hbar:nth-child(2n) .fill { background: var(--gif); }

/* ---------- Yönetim düzeni ---------- */
body.admin { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex: none; background: linear-gradient(180deg, var(--turgev) 0%, var(--turgev-deep) 100%); color: #e8f2ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { padding: 1.2rem 1.2rem .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-turgev { width: 100%; max-width: 190px; display: block; }
.brand-sub { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .8rem; line-height: 1.2; opacity: .95; }
.brand-gif { height: 34px; }
.sidebar nav { padding: .8rem .6rem; flex: 1; }
.sidebar nav a, .sidebar-foot a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; color: #dbeae4; text-decoration: none; border-radius: 9px; margin-bottom: 2px; font-weight: 500; }
.sidebar nav a:hover, .sidebar-foot a:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar nav a.active { background: var(--gif); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sidebar-foot { padding: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot small { display: block; opacity: .7; font-size: .76rem; font-weight: 400; }
.sidebar-foot form { padding: .4rem .8rem; }
.sidebar-foot .linklike { color: #cfe2da; font-size: .88rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gif); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.6rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.25rem; margin: 0; flex: 1; }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; padding: .3rem; cursor: pointer; color: var(--turgev); }
.menu-btn .ic { width: 24px; height: 24px; }
.content { padding: 1.5rem 1.6rem; flex: 1; }
.foot { padding: 1rem 1.6rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 24px rgba(0,0,0,.2); }
  body.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: .7rem 1rem; }
}

/* Giriş ekranı */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; width: 100%; }
.auth-art { background: linear-gradient(150deg, var(--gif) 0%, var(--turgev) 70%, var(--turgev-deep) 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; }
.auth-art img.g { width: min(380px, 80%); }
.auth-art p { opacity: .9; max-width: 380px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; background: #fff; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form .tl { width: 200px; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { padding: 2rem 1rem; } .auth-art img.g { width: 200px; } .auth-art p { display: none; } }

/* ---------- Misafir sayfaları ---------- */
body.public { background: #f2f7f4; min-height: 100vh; display: flex; flex-direction: column; }
.pub-head { background: var(--gif); padding: 1.1rem 1rem 3.2rem; text-align: center; }
.pub-gif { height: 74px; }
.pub-main { flex: 1; width: 100%; max-width: 520px; margin: -2.4rem auto 0; padding: 0 1rem 1.5rem; }
.pub-card { background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(31, 80, 60, .12); padding: 1.5rem 1.3rem; }
.pub-card h1 { font-size: 1.35rem; margin: 0 0 .3rem; }
.pub-card .campus { color: var(--gif-dark); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.pub-foot { text-align: center; padding: 1rem 1rem 1.6rem; font-size: .84rem; color: var(--muted); }
.pub-turgev { height: 40px; display: block; margin: 0 auto .6rem; }
.pub-foot a { color: var(--muted); }
.result { text-align: center; padding: .6rem 0 .2rem; }
.result .ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.result .ring svg { width: 52px; height: 52px; }
.result.in .ring { background: var(--gif-soft); color: var(--gif-dark); }
.result.out .ring { background: #eaf0ee; color: var(--turgev); }
.result.wait .ring { background: var(--warn-soft); color: var(--warn); }
.result.err .ring { background: var(--danger-soft); color: var(--danger); }
.result h1 { font-size: 1.6rem; }
.result .big-time { font-size: 2.6rem; font-weight: 800; color: var(--turgev-deep); font-variant-numeric: tabular-nums; margin: .2rem 0; }
.result .meta { color: var(--muted); }
.result .actions { margin-top: 1.4rem; display: grid; gap: .6rem; }
.purpose-pick { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .6rem; }
.purpose-pick button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .45rem .9rem; font: inherit; font-size: .9rem; cursor: pointer; }
.purpose-pick button.on { background: var(--gif); color: #fff; border-color: var(--gif); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid #c9d6cf; border-radius: 99px; padding: .5rem .95rem; cursor: pointer; background: #fff; font-size: .92rem; }
.chips input:checked + span { background: var(--gif); color: #fff; border-color: var(--gif); }
.chips input:focus-visible + span { outline: 3px solid rgba(70, 180, 133, .35); }
.consent { background: #f6faf8; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; margin: 1rem 0; display: grid; gap: .8rem; }
.policy { background: #fff; border-radius: 18px; padding: 1.4rem; box-shadow: 0 8px 30px rgba(31, 80, 60, .1); }
.policy h3 { color: var(--turgev); }
.cookie-note { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 520px; margin: 0 auto; background: var(--turgev-deep); color: #fff; padding: .9rem 1rem; border-radius: 14px; display: flex; gap: .8rem; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: .86rem; z-index: 50; }
.cookie-note p { margin: 0; }
.cookie-note a { color: #bdf0d6; }
.cookie-note .btn { background: var(--gif); flex: none; }

/* ---------- Danışma (kiosk) ekranı ---------- */
body.kiosk { margin: 0; height: 100vh; overflow: hidden; background: radial-gradient(circle at 20% 10%, #56c493 0%, var(--gif) 35%, var(--gif-dark) 100%); color: #fff; display: grid; grid-template-columns: 1fr minmax(380px, calc(46vh + 140px)); }
.kiosk-left { display: flex; flex-direction: column; justify-content: space-between; padding: 4vh 4vw; }
.kiosk-left .gif { width: min(38vw, 520px); }
.kiosk-left h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 4rem); margin: 0; line-height: 1.05; }
.kiosk-left .campus { font-size: clamp(1.1rem, 2vw, 1.8rem); opacity: .95; margin-top: .6rem; font-weight: 600; }
.kiosk-steps { display: grid; gap: .9rem; margin-top: 3vh; font-size: clamp(1rem, 1.5vw, 1.35rem); }
.kiosk-steps div { display: flex; gap: .9rem; align-items: center; }
.kiosk-steps b { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kiosk-foot { display: flex; align-items: center; gap: 2rem; }
.kiosk-foot .tg { height: 52px; }
.kiosk-foot .stat-k { font-size: 1rem; opacity: .9; }
.kiosk-foot .stat-k strong { display: block; font-size: 2.2rem; line-height: 1; }
.kiosk-right { background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3vh 2vw; border-radius: 32px 0 0 32px; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.qr-box { width: min(46vh, 34vw); aspect-ratio: 1; position: relative; }
.qr-box canvas, .qr-box img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.qr-box.stale { opacity: .25; filter: blur(2px); }
.qr-caption { font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 700; color: var(--turgev-deep); margin-top: 2vh; text-align: center; }
.qr-sub { color: var(--muted); text-align: center; margin-top: .3rem; }
.countdown { width: min(46vh, 34vw); height: 8px; background: #e6efeb; border-radius: 99px; overflow: hidden; margin-top: 2vh; }
.countdown div { height: 100%; background: var(--gif); width: 100%; transition: width 1s linear; }
.kiosk-clock { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.kiosk-err { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: var(--danger); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
@media (orientation: portrait), (max-width: 900px) {
  body.kiosk { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; height: auto; min-height: 100vh; }
  .kiosk-right { border-radius: 32px 32px 0 0; }
  .qr-box, .countdown { width: min(80vw, 60vh); }
  .kiosk-left .gif { width: 60vw; }
}

/* Yazdırma */
@media print {
  .sidebar, .topbar, .filters, .no-print, .foot, .pager { display: none !important; }
  body.admin { display: block; background: #fff; }
  .card, .stat { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .content { padding: 0; }
}
.split { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
table.t th.right, table.t td.right { text-align: right; }
.btn { white-space: nowrap; }
.filters select[data-autosubmit] { max-width: 340px; }
.brand-gif { height: 40px; }
.otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.linklike { color: var(--turgev); text-decoration: underline; }

/* ---------- Sürüm 2 ---------- */
.sess-list { display: grid; gap: .4rem; }
.sess { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #c9d6cf; border-radius: 12px; padding: .55rem .75rem; cursor: pointer; font-weight: 400; margin: 0; background: #fff; }
.sess input { margin-top: .25rem; accent-color: var(--gif); width: 18px; height: 18px; flex: none; }
.sess small { display: block; color: var(--muted); font-size: .8rem; }
.sess:has(input:checked) { border-color: var(--gif); background: var(--gif-soft); }
.sess.full { opacity: .55; cursor: not-allowed; }
.after-form { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .2rem; }
.badge-win { display: flex; gap: .9rem; align-items: center; background: linear-gradient(135deg, #fff7e0, #fdecc0); border: 1px solid #f0d28a; border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0 .4rem; font-size: .92rem; }
.badge-win .medal { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; flex: none; background: radial-gradient(circle at 30% 30%, #e8a95a, #a8641f); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.badge-gumus .medal { background: radial-gradient(circle at 30% 30%, #e6ebef, #8e9aa5); }
.badge-altin .medal { background: radial-gradient(circle at 30% 30%, #ffe27a, #c79400); }
.survey { text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.survey.done { color: var(--gif-dark); }
.stars { display: flex; gap: .35rem; justify-content: center; }
.stars button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .45rem .2rem; cursor: pointer; flex: 1; max-width: 72px; display: grid; gap: .15rem; justify-items: center; }
.stars button:hover { border-color: var(--gif); background: var(--gif-soft); }
.stars small { font-size: .68rem; color: var(--muted); }
.face { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.f1 { background: #c0533f; } .f2 { background: #d98a3d; } .f3 { background: #d6b443; } .f4 { background: #7cbf6d; } .f5 { background: #3fa877; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: baseline; line-height: 1.2; }
.tc { color: var(--turgev); font-weight: 600; }
.tc small { color: var(--muted); font-weight: 400; font-size: .7em; }
.tc1 { font-size: .85rem; opacity: .75; } .tc2 { font-size: 1rem; } .tc3 { font-size: 1.25rem; color: var(--gif-dark); } .tc4 { font-size: 1.55rem; } .tc5 { font-size: 1.95rem; color: var(--turgev-deep); }
.notif-list { display: grid; gap: .5rem; }
.notif { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.notif.warn { background: var(--warn-soft); border-color: #f0dbb0; }
.notif.danger { background: var(--danger-soft); border-color: #efc7c3; }
.notif.success { background: var(--gif-soft); border-color: #b9e3cf; }
.notif .when { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.notif form { margin-left: auto; }
.live-toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 380px; z-index: 80; display: grid; gap: .5rem; }
.live-toast div { background: var(--turgev-deep); color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .9rem; }
.live-toast div.warn { background: #8a5a12; } .live-toast div.danger { background: #8f3029; }
.alert-danger { background: var(--danger-soft); border-color: #efc7c3; color: #7f2b25; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .3rem; vertical-align: middle; }
.dot.ok { background: var(--gif); } .dot.bad { background: var(--danger); } .dot.idle { background: #b8c4be; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
select[multiple] { min-height: 160px; }
select.listbox { min-height: 220px; padding: .3rem; }
select.listbox optgroup { font-weight: 700; color: var(--turgev); }
select.listbox option { font-weight: 400; color: var(--ink); padding: .2rem .4rem; }
.report-cover { background: #fff; border-radius: var(--radius); border: 1px solid #e7eeea; padding: 1.4rem; margin-bottom: 1.25rem; border-top: 6px solid var(--gif); }
.report-cover h1 { font-size: 1.6rem; margin: 1rem 0 .3rem; }
@media print {
  @page { size: A4; margin: 12mm; }
  .report .stats { grid-template-columns: repeat(4, 1fr); }
  .report .grid.g2 { grid-template-columns: 1fr 1fr; }
  .report .card { page-break-inside: avoid; }
  .live-toast { display: none; }
}

/* ---------- Sürüm 2.1: telefonda kaydırmasız misafir formu ---------- */
body.compact .pub-head { padding: .55rem 1rem 1.7rem; }
body.compact .pub-gif { height: 44px; }
body.compact .pub-main { margin-top: -1.2rem; padding-bottom: .6rem; }
body.compact .pub-card { padding: .95rem .95rem 1rem; border-radius: 16px; }
body.compact .pub-card h1 { font-size: 1.2rem; margin-bottom: .55rem; }
body.compact .pub-card .campus { font-size: .78rem; }
body.compact .field { margin-bottom: .6rem; }
body.compact label { font-size: .84rem; margin-bottom: .2rem; }
body.compact input[type=text], body.compact input[type=tel], body.compact input[type=email] { min-height: 40px; padding: .45rem .65rem; font-size: 16px; }
body.compact .grid.tight { gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.compact .chips { gap: .3rem; }
body.compact .chips span { padding: .34rem .7rem; font-size: .84rem; }
body.compact .other-text { margin-top: .45rem; }
body.compact .consent { margin: .55rem 0 .7rem; padding: .6rem .7rem; gap: .45rem; }
body.compact .check { font-size: .8rem; line-height: 1.35; gap: .5rem; }
body.compact .check input { width: 18px; height: 18px; }
body.compact .btn-lg { min-height: 48px; }
body.compact .pub-foot { padding: .4rem 1rem 1rem; font-size: .76rem; }
body.compact .pub-turgev { height: 30px; margin-bottom: .3rem; }
body.compact .alert { padding: .5rem .7rem; font-size: .84rem; margin-bottom: .6rem; }
details.after-form summary { cursor: pointer; color: var(--turgev); font-weight: 600; text-align: center; padding: .3rem; }
details.after-form[open] summary { margin-bottom: .6rem; }
body.compact .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .45rem; }
body.compact .title-row h1 { margin: 0; }
body.compact .chips span { padding: .3rem .62rem; }
body.compact .consent { gap: .38rem; }
@media (max-height: 700px) { body.compact .pub-head { padding: .4rem 1rem 1.4rem; } body.compact .pub-gif { height: 36px; } body.compact .field { margin-bottom: .5rem; } }
.preview-frame { width: 100%; max-width: 390px; height: 700px; border: 8px solid #1d2b26; border-radius: 28px; display: block; margin: 0 auto; background: #fff; }
.preview-banner { background: var(--warn-soft); color: #6e4a12; text-align: center; font-size: .8rem; padding: .3rem; }
.ff-grid { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
@media (max-width: 1280px) { .ff-grid { grid-template-columns: 1fr; } }
.ff-table td { padding: .45rem .4rem; }
.ff-table input[type=text], .ff-table input[type=number], .ff-table textarea { min-height: 36px; padding: .35rem .5rem; font-size: .88rem; }
.ff-table td:nth-child(2) input { width: 100%; }

/* Ana sayfa yönetimi (v2.3) */
.hp-table td { vertical-align: top; }
.hp-table textarea { margin-top: .4rem; min-width: 200px; font-size: .86rem; }
.hp-img { min-width: 180px; }
.hp-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .3rem; border: 1px solid var(--line); }
.hp-img input[type=file] { font-size: .8rem; max-width: 200px; }
