/* GMC Fight Club — tasarım sistemi: siyah zemin, kırmızı vurgu, kalın başlık yazısı. Telefon önce. */
:root {
  --bg: #0a0a0c; --bg-2: #111115; --card: #16161b; --card-2: #1d1d24; --line: #2a2a33; --line-2: #34343f;
  --ink: #f5f5f7; --muted: #a0a0ab; --dim: #6e6e7a;
  --red: #e5202e; --red-2: #b8121e; --red-soft: rgba(229,32,46,.14);
  --ok: #22c55e; --ok-soft: rgba(34,197,94,.14); --warn: #f59e0b; --warn-soft: rgba(245,158,11,.15);
  --bad: #ef4444; --bad-soft: rgba(239,68,68,.15); --info: #60a5fa; --info-soft: rgba(96,165,250,.15);
  --violet: #c084fc; --violet-soft: rgba(192,132,252,.15);
  --r: 16px; --r-sm: 12px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --display: "Anton", "Impact", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bnav-h: 68px; --safe-b: max(env(safe-area-inset-bottom, 0px), 14px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 var(--sans); -webkit-text-size-adjust: 100%; min-height: 100dvh; }
body.has-bnav { padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 8px); }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
h1, h2, h3 { margin: 0; letter-spacing: .01em; }
h2 { font: 400 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 700; margin: 4px 0 10px; color: var(--ink); }
a { color: var(--red); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.dim { color: var(--dim); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { min-width: 0; }
.spacer { flex: 1; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- üst bar + logo ---- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(10,10,12,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { height: 44px; width: auto; flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(229,32,46,.25)); }
.brand .word { display: flex; flex-direction: column; line-height: .95; }
.brand .word b { font: 400 19px/1 var(--display); letter-spacing: .04em; }
.brand .word span { font: 400 11px/1.2 var(--display); letter-spacing: .32em; color: var(--red); }
.bar .who { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); line-height: 1.2; }
.bar .who b { display: block; color: var(--ink); font-size: 14px; }
.page-title { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 14px; }

/* ---- kart ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.card.flat { background: transparent; border: 0; padding: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* ---- form ---- */
label, .label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { color-scheme: dark; min-height: 48px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.grid .wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--bg-2); cursor: pointer; text-transform: none; letter-spacing: 0; }
.checks label:has(input:checked) { background: var(--red); color: #fff; border-color: var(--red); }
.checks input { display: none; }
/* tek dokunuşla seçim (1/2/3 ay, Nakit/IBAN/POS) */
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 10px 8px; min-height: 40px; border-radius: 9px; font-size: 15px; }
.seg button:hover { background: var(--card-2); color: var(--ink); }
.seg button.on { background: var(--red); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); margin: 0; }
.consent input { margin-top: 2px; flex: none; }
details.more { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; background: var(--bg-2); }
details.more summary { cursor: pointer; font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; color: var(--red); font-weight: 800; }
details.more[open] summary::before { content: "– "; }
.loc-select { width: auto; min-height: 40px; padding: 8px 32px 8px 12px; font-size: 14px; font-weight: 700; background-color: var(--card-2); }

button, .btn { font: 600 15px/1 var(--sans); padding: 13px 18px; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .15s, transform .06s, border-color .15s; }
button:hover, .btn:hover { background: var(--red-2); border-color: var(--red-2); }
button:active, .btn:active { transform: scale(.98); }
button.secondary, .btn.secondary { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
button.secondary:hover, .btn.secondary:hover { background: #262630; border-color: var(--line-2); }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { background: var(--card-2); color: var(--ink); }
button.small, .btn.small { padding: 8px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
button.danger, .btn.danger { background: transparent; color: var(--bad); border-color: rgba(239,68,68,.4); }
button.danger:hover { background: var(--bad-soft); }
button.big { font-size: 18px; padding: 16px 26px; min-height: 56px; }
button.block, .btn.block { width: 100%; }
button:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 44px; min-height: 44px; padding: 0; }

/* yüzen ekle düğmesi */
.fab { position: fixed; right: 18px; bottom: calc(var(--bnav-h) + var(--safe-b) + 18px); width: 58px; height: 58px; min-height: 58px; border-radius: 50%; padding: 0; z-index: 25; box-shadow: 0 10px 24px rgba(229,32,46,.45); }
.fab svg.i { width: 26px; height: 26px; }
@media (min-width: 861px) { .fab { bottom: 28px; right: 28px; } }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.pill.red { background: var(--red-soft); color: #ff6b75; border-color: transparent; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.msg { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-soft); color: #fca5a5; margin: 10px 0; }

/* ---- gezinme: masaüstünde üst sekme, telefonda alt menü ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 12px 14px; min-height: 0; font-size: 15px; }
.tabs button:hover { background: transparent; color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.tabs .more-btn { display: none; }
.tabs .more-sheet { display: contents; }
@media (max-width: 860px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; border: 0; border-top: 1px solid var(--line); background: rgba(14,14,18,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 8px calc(4px + var(--safe-b)); overflow: visible; justify-content: space-around; }
  .tabs > button { flex: 1; flex-direction: column; gap: 4px; padding: 8px 2px; min-height: 56px; font-size: 11.5px; font-weight: 600; border: 0; border-radius: 12px; color: var(--dim); }
  .tabs > button svg.i { width: 23px; height: 23px; }
  .tabs > button.on { color: var(--ink); background: transparent; }
  .tabs > button.on svg.i { color: var(--red); }
  .tabs .more-btn { display: flex; }
  .tabs .more-sheet { display: none; position: absolute; right: 8px; bottom: calc(100% + 8px); background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; min-width: 220px; box-shadow: var(--shadow); flex-direction: column; }
  .tabs .more-sheet.open { display: flex; }
  .tabs .more-sheet button { justify-content: flex-start; font-size: 15px; padding: 12px; border: 0; border-radius: 10px; color: var(--ink); gap: 12px; }
  .tabs .more-sheet button.on { background: var(--red-soft); color: #fff; }
}

/* ---- istatistik ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: relative; overflow: hidden; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat b { display: block; font: 400 34px/1.05 var(--display); letter-spacing: .01em; margin-top: 6px; }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.bad b { color: var(--bad); } .stat.info b { color: var(--info); } .stat.red b { color: var(--red); }
.stat b span { font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; }
.stat.hero { background: linear-gradient(135deg, #2a0b0f, var(--card) 70%); border-color: rgba(229,32,46,.35); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 28px; } }

/* ---- liste ---- */
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li > .body, .li > div:not(.right):not(.avatar) { flex: 1; min-width: 0; }
.li b, .li .title { display: block; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.li .sub { font-size: 13px; color: var(--muted); display: flex; gap: 6px 10px; flex-wrap: wrap; margin-top: 3px; }
.li .right { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.li.click { cursor: pointer; border-radius: 12px; } .li.click:hover { background: var(--card-2); }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 400 17px/1 var(--display); letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #3a3a46, #24242c); border: 1px solid var(--line-2); }
.avatar.red { background: linear-gradient(135deg, var(--red), #7a0a12); border-color: transparent; }
/* Telefonda: etiketli satırlarda etiketler alta iner; tek düğmeli satırlar tek satırda kalır. */
@media (max-width: 620px) { .li { flex-wrap: wrap; } .li > .right { margin-left: auto; } .li:has(> .right .pill) > .right { width: 100%; justify-content: flex-start; padding-left: 54px; } .li.noav:has(> .right .pill) > .right, .li:not(:has(> .avatar)):has(> .right .pill) > .right { padding-left: 0; } }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty svg.i { width: 36px; height: 36px; color: var(--dim); display: block; margin: 0 auto 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
.search { position: relative; flex: 1; min-width: 200px; }
.search input { padding-left: 42px; }
.search svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px 0 6px; padding-bottom: 2px; }
.chip { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line-2); padding: 8px 14px; min-height: 0; border-radius: 99px; font-size: 14px; font-weight: 600; flex: none; }
.chip:hover { background: var(--card-2); border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { opacity: .65; margin-left: 5px; font-weight: 700; }

/* ---- haftalık program ---- */
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; overflow-x: auto; }
.week .day h4 { margin: 0 0 8px; font: 400 15px/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.week .day.today h4 { color: var(--red); }
@media (max-width: 860px) { .week { grid-template-columns: 1fr; } .week .day.empty { display: none; } }
.cls { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--card-2); font-size: 14px; }
.cls.click { cursor: pointer; } .cls.click:hover { border-color: var(--line-2); background: #23232c; }
.cls b { display: block; font-size: 15px; } .cls span { color: var(--muted); font-size: 13px; }
.cls .time { font: 400 18px/1 var(--display); letter-spacing: .03em; margin-right: 6px; }

/* ---- pencere: telefonda tam ekran sayfa ---- */
dialog { border: 1px solid var(--line-2); border-radius: 20px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
dialog .dlg { padding: 0 18px 20px; }
dialog .dlg-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 14px 0 12px; margin-bottom: 8px; background: var(--card); border-bottom: 1px solid var(--line); }
dialog .dlg-head h2 { margin: 0; font-size: 24px; }
dialog section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
@media (max-width: 620px) {
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  dialog .dlg { padding: 0 16px calc(24px + var(--safe-b)); }
  /* iPhone: başlık ve Kapat düğmesi saat/Dynamic Island altına girmesin */
  dialog .dlg-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  dialog .dlg-head .ghost, .chat-head [data-close] { min-width: 44px; min-height: 44px; }
}
.actions-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.actions-bar button, .actions-bar .btn { flex-direction: column; gap: 6px; padding: 12px 8px; font-size: 13px; min-height: 72px; }
.actions-bar svg.i { width: 22px; height: 22px; }

/* ---- tarayıcı ---- */
.viewer { position: relative; width: 100%; aspect-ratio: 1; max-width: 520px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.viewer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer .frame { position: absolute; inset: 14%; border-radius: 22px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); outline: 3px solid var(--red); outline-offset: -3px; }
.viewer .start { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; background: radial-gradient(circle at 50% 40%, #1d1d24, #000); }
.viewer .start svg.i { width: 56px; height: 56px; color: var(--red); }
.manual { margin: 14px auto 0; display: flex; gap: 8px; max-width: 520px; }
.manual input { text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
.result { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.result.ok { background: radial-gradient(circle at 50% 35%, #1fb257, #0d6b32); } .result.bad { background: radial-gradient(circle at 50% 35%, #e5323c, #8c0f17); }
.result.warn { background: radial-gradient(circle at 50% 35%, #e08a12, #8a4b05); } .result.info { background: radial-gradient(circle at 50% 35%, #3b82f6, #1e3a8a); }
.result.neutral { background: radial-gradient(circle at 50% 35%, #3a3a46, #15151b); }
.result .icon { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 64px; font-weight: 800; margin-bottom: 18px; }
.result .title { font: 400 44px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.result .name { font-size: 28px; font-weight: 800; margin-top: 14px; }
.result .name .badge { background: rgba(255,255,255,.22); color: #fff; }
.result .detail { font-size: 18px; margin-top: 10px; opacity: .95; max-width: 520px; }
.result .banner { margin-top: 18px; background: #facc15; color: #111; font-weight: 800; font-size: 19px; padding: 12px 18px; border-radius: 14px; }
.result .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; width: min(380px, 100%); }
.result .actions button { font-size: 18px; min-height: 58px; background: #fff; color: #111; border-color: #fff; }
.result .actions button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.result .tap { position: absolute; bottom: calc(28px + var(--safe-b)); left: 0; right: 0; font-size: 14px; opacity: .8; }

#toast { position: fixed; left: 50%; bottom: calc(var(--bnav-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); background: #fff; color: #111; padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; transition: .2s; z-index: 80; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--bad); color: #fff; }
@media (min-width: 861px) { #toast { bottom: 28px; } }

/* giriş kapısı */
.gate { max-width: 420px; margin: 8vh auto; text-align: center; }
.gate .mark { height: 120px; width: auto; margin: 0 auto 14px; display: block; }
@media (max-width: 620px) { .li.stack > .right { width: 100%; justify-content: flex-start; padding-left: 0; } }
/* Telefonda iki ya da daha fazla düğmeli satırlarda düğmeler alta iner; ad ve bilgi tam satır okunur. */
@media (max-width: 620px) { .li:has(> .right > :nth-child(2)) > .right { width: 100%; justify-content: flex-start; padding-left: 54px; } .li:not(:has(> .avatar)):has(> .right > :nth-child(2)) > .right { padding-left: 0; } }
@media (max-width: 440px) { .brand .word b { font-size: 15px; white-space: nowrap; } .brand .mark { height: 38px; } .bar .loc-select { max-width: 130px; } }
/* sohbet */
dialog.chat { width: min(560px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 32px)); display: none; flex-direction: column; padding: 0; overflow: hidden; }
dialog.chat[open] { display: flex; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.bubble { max-width: 82%; align-self: flex-start; background: var(--card-2); border: 1px solid var(--line-2); padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: 15px; line-height: 1.4; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--red); border-color: var(--red); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--card); }
.chat-input textarea { min-height: 46px; max-height: 120px; resize: none; }
.chat-input button { width: 48px; padding: 0; flex: none; }
.chat-ro { text-align: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.tabs > button { position: relative; }
.tabs .dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 620px) { dialog.chat { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; } .chat-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); } }
/* öğrenci seçici listesi */
.pick-list { max-height: 260px; overflow-y: auto; margin-top: 6px; -webkit-overflow-scrolling: touch; }
.pick-list:empty { display: none; }
dialog .search input { scroll-margin-top: 96px; }
.stack-btns { display: grid; gap: 8px; margin-top: 14px; }
.stack-btns .btn, .stack-btns button { width: 100%; white-space: normal; }
