:root {
    --ink: #1b2624; --muted: #5a6b68; --bg: #f3f1ec; --card: #fff; --line: #d9e0e8;
    --nav: #17383a; --nav-ink: #dcebe8; --accent: #1f6f69; --accent-d: #17564f; --accent-soft: #e0f0ee;
    --pos: #1a7f4b; --neg: #b3261e; --warn: #b45f06; --warn-bg: #fff2dc; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1 { font-size: 1.5rem; margin: 0 0 .15rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-d); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pos { color: var(--pos); font-weight: 600; }
.neg { color: var(--neg); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

.demo-bar { background: #fff2dc; color: #6a3d00; text-align: center; padding: .4rem .75rem; font-size: .85rem; border-bottom: 1px solid #f0d49b; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--nav); color: var(--nav-ink); padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.2; }
.brand .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: .65rem; color: var(--nav-ink); text-decoration: none; padding: .6rem .7rem; border-radius: 8px; min-height: 44px; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.who { margin-top: auto; font-size: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.who small { display: block; color: #9fb0c3; }
.who a, .who .link { color: var(--nav-ink); }
.badge { background: #f5b400; color: #2a1c00; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; min-width: 1.35rem; text-align: center; font-weight: 700; margin-left: auto; }
.main { padding: 1.25rem 1.5rem 3rem; max-width: 1100px; width: 100%; }
.tabbar { display: none; }

.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pagehead p { margin: 0; }
.crumb { font-size: .85rem; margin-bottom: .2rem !important; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions.wrap { align-items: flex-start; }
.actions form { margin: 0; }
.right { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.narrow { max-width: 560px; }
.card.empty { text-align: center; padding: 2rem 1rem; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 { margin-bottom: 1rem; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-d); color: #fff; }
.btn.alt { background: var(--accent-soft); color: var(--accent-d); border-color: #bcd3f2; }
.btn.alt:hover { background: #d3e5fa; color: var(--accent-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f1f4f8; color: var(--ink); }
.btn.danger { background: var(--neg); border-color: var(--neg); }
.btn.small { min-height: 36px; padding: .25rem .7rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: .5rem; min-height: 44px; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--neg); }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: #e6f5ec; border-color: #a9d9bc; color: #14532d; }
.flash.error { background: #fdecea; border-color: #f2b8b5; color: #7a1712; }
.flash.info { background: #e8f0fb; border-color: #bcd3f2; color: #123c78; }

.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field.grow { flex: 1 1 220px; }
.field.wide, .wide { grid-column: 1 / -1; flex-basis: 100%; }
.field.check { justify-content: flex-end; }
.field.check label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.sechead a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 16px; padding: .55rem .65rem; border: 1px solid #b7c2cf; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
input[type=file] { padding: .4rem; }
textarea { min-height: 70px; resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
small { color: var(--muted); }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
legend { font-weight: 700; padding: 0 0 .5rem; font-size: 1.02rem; grid-column: 1 / -1; }
.form-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: .75rem; }
.form-inline .field { flex: 1 1 170px; }
.formbar { display: flex; gap: .6rem; flex-wrap: wrap; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filters .field { flex: 0 1 190px; }
.filters .field.grow { flex: 1 1 240px; }

details.act { margin: .6rem 0; }
details.act > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.act > summary::-webkit-details-marker { display: none; }
details.act[open] > summary { margin-bottom: .4rem; }
details.act > form { background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin-top: 0; }
.danger-zone { border-color: #f0c4c1; }
.danger-zone summary { cursor: pointer; color: var(--neg); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; vertical-align: middle; }
.stage-new { background: #e1e8f5; color: #1f3a6b; } .stage-contacted { background: #e8f0fb; color: #123c78; } .stage-shown { background: #fff0cc; color: #6a4300; }
.stage-offer { background: #fde4c4; color: #7a3d00; } .stage-bought { background: #e1f3e8; color: #14532d; } .stage-lost { background: #e8e8ea; color: #454a52; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 6px; background: #eef1f5; color: var(--ink); text-decoration: none; }
.tag.late { background: var(--warn-bg); color: var(--warn); }
.days.long { color: var(--warn); font-weight: 700; }

.tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: .75rem; padding-bottom: 2px; }
.tabs a { white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
.tabs a.on { background: var(--nav); color: #fff; border-color: var(--nav); }
.tabs a small { color: inherit; opacity: .7; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .1rem; }
a.kpi:hover { border-color: var(--accent); }
.kpi .n { font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .n.sm { font-size: 1.2rem; }
.kpi .n.warn { color: var(--warn); }
.kpi .l { color: var(--muted); font-size: .84rem; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows > li:first-child { border-top: 0; }
.rows > li > div:first-child { flex: 1 1 220px; min-width: 0; }
.rows > li > span:not(.tag):not(.muted):not(.badge) { min-width: 6.5rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows > li > a:first-child { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 220px; }
.rows > li > a:first-child b { color: var(--accent-d); }
.rows.card { padding: .3rem 1.1rem; }
.plain { margin: 0; padding-left: 1.1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; flex-direction: column; padding: .7rem 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.menu-list li:first-child a { border-top: 0; }

.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vthumb { display: block; }
.nophoto { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.vtop { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.vtitle { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.vtitle:hover { color: var(--accent); }
.vnums { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .4rem; }
.vnums span { display: flex; flex-direction: column; font-size: .92rem; }
.vnums small { font-size: .74rem; }

.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.statline > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; display: flex; flex-direction: column; }
.statline small { font-size: .78rem; }
.statline b { font-size: 1.15rem; }
.statline.slim { grid-template-columns: repeat(3, 1fr); }
.statline.slim > div { background: #f6f8fb; }


.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: .5rem .5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: none; color: var(--muted); border-top: 0; font-weight: 600; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl.compact { max-width: 520px; }
tr.longrow td { background: #fffaf0; }

.timeline { list-style: none; margin: .75rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr auto; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); align-items: start; }
.timeline .when { white-space: nowrap; }
.timeline li.note { background: #fbfcfe; }
.checks { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.checks li { padding: .3rem 0; }
.checks label { font-weight: 500; display: flex; gap: .6rem; align-items: center; min-height: 40px; }
.checks input { width: 22px; height: 22px; }

.center { max-width: 460px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.login h1 { margin-bottom: .25rem; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.login .btn { width: 100%; }

@media (max-width: 860px) {
    .shell { display: block; }
    .side { display: none; }
    .main { padding: 1rem 1rem 6rem; }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--nav); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
    .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #b6c3d2; text-decoration: none; font-size: .72rem; min-height: 56px; padding: .35rem 0; }
    .tabbar a.on { color: #fff; font-weight: 700; }
    .tabbar .badge { position: absolute; top: 4px; left: 54%; margin: 0; }
    .grid2 { grid-template-columns: 1fr; }
    .vnums { gap: .3rem 1rem; }
    .timeline li { grid-template-columns: 1fr; gap: .1rem; }
    .statline.slim { grid-template-columns: 1fr; }
    h1 { font-size: 1.3rem; }
    .tbl thead { display: none; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl tr { border-top: 2px solid var(--line); padding: .35rem 0; }
    .tbl td { border: 0; padding: .15rem 0; text-align: left !important; display: flex; justify-content: space-between; gap: .75rem; }
    .tbl td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .8rem; flex: none; }
    .tbl td.num:not([data-l]) { flex-wrap: wrap; justify-content: flex-start; gap: .4rem; }
    .tbl.compact { max-width: none; }
    .tbl.compact tr { border-top: 0; display: table-row; }
    .tbl.compact, .tbl.compact tbody { display: table; }
    .tbl.compact tbody { width: 100%; }
    .tbl.compact tr { display: table-row; }
    .tbl.compact td { display: table-cell; padding: .4rem; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
    .actions .btn { flex: 1 1 auto; }
}

/* ----- yazdırma */
.printpage { background: #eef1f5; }
.printbar { display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem; max-width: 820px; margin: 0 auto; }
.sheet { background: #fff; max-width: 820px; margin: 0 auto 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .75rem; }
.sheet-head .gal { font-size: 1.2rem; font-weight: 700; }
.sheet-head .right { display: block; text-align: right; }
.sheet h1 { font-size: 1.6rem; margin: .25rem 0 .6rem; }
.sheet h2 { margin-top: 1.1rem; font-size: 1.05rem; }
.spec { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.spec th, .spec td { border: 1px solid #c9d2dc; padding: .4rem .6rem; text-align: left; font-size: .95rem; }
.spec th { background: #f1f4f8; width: 22%; font-weight: 600; }
.spec tr.sum td, .spec tr.sum th { font-weight: 700; background: #f8fafc; }
.price { margin: .8rem 0; font-size: 1.4rem; padding: .6rem .9rem; border: 2px solid var(--ink); display: flex; justify-content: space-between; }
@media screen and (max-width: 600px) {
    .sheet { padding: 1rem .75rem; }
    .spec { table-layout: fixed; }
    .spec th, .spec td { padding: .35rem .25rem; font-size: .82rem; overflow-wrap: anywhere; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    body, .printpage { background: #fff; }
    .noprint, .demo-bar { display: none !important; }
    .sheet { border: 0; margin: 0; padding: 0; max-width: none; }
    a { color: inherit; text-decoration: none; }
}

/* ----- ortak yardımcılar */
.warnx { color: var(--warn); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre { white-space: pre-line; }
.topbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.topsearch { display: flex; gap: .5rem; flex: 1 1 320px; max-width: 520px; }
.topsearch input { flex: 1; }
.totals { max-width: 420px; margin-left: auto; }
.totals th { width: 55%; }
.totals td { text-align: right; }
details.act.inl { margin: 0; }
details.act.inl > form { margin-bottom: .4rem; }
.form-inline .wide { flex: 1 1 100%; }
.kpi .n.neg { color: var(--neg); }
.printchecks { list-style: none; margin: .3rem 0 .8rem; padding: 0; columns: 2; }
.printchecks li { padding: .15rem 0; }
.printchecks .box { font-size: 1.15rem; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.2rem; font-size: .9rem; }
.signs span { display: block; border-bottom: 1px solid #17212c; height: 2.4rem; }
.spec.items thead th { background: #f1f4f8; width: auto; }
@media (max-width: 860px) {
    .topbar { flex-direction: column; align-items: stretch; }
    .topsearch { max-width: none; flex: 0 0 auto; }
    .totals { max-width: none; }
    .printchecks { columns: 1; }
}
@media print {
    .topbar, .tabbar { display: none !important; }
    .signs { break-inside: avoid; }
}

.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; }

/* Demo giriş kutusu (yalnız demo kipinde) */
.demo-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.demo-box { margin-top: 1rem; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: .75rem; }
.demo-box h2 { margin: 0 0 .25rem; font-size: 1.05rem; }

/* Excel/CSV'den öğrenci listesi alma */
.help { padding: .25rem 1.1rem; }
.help summary { font-weight: 700; color: var(--accent-d); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.import-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; margin: .5rem 0; }
.import-counts .tag { font-size: .95rem; padding: .3rem .75rem; margin-right: .35rem; }
.tag.import-ok { background: #e6f5ec; color: #14532d; }
.import-scroll { margin: .6rem 0; }
.import-table { min-width: 760px; }
.import-table input[type="checkbox"] { width: 24px; height: 24px; }
.import-table tr.import-error td { background: #fdecea; }
.import-table tr.import-exists td, .import-table tr.import-dup td { color: var(--muted); background: #f3f5f8; }
#import-form .btn { min-height: 48px; font-size: 1.05rem; }
@media (max-width: 860px) { .import-table { min-width: 0; } }

/* ---- kurulum rehberi, telefona ekle, kurulum kartı ---- */
.setupbar { background: var(--accent-soft); border-bottom: 1px solid var(--line); padding: .5rem 1rem; }
.setupbar .in { max-width: 1100px; margin: 0 auto; }
.setupbar a { display: block; text-decoration: none; margin-bottom: .35rem; padding: .35rem 0; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .35rem 0 .75rem; }
.setupbar .progress { margin-bottom: 0; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.a2hs { background: var(--warn-bg); border-bottom: 1px solid var(--warn); padding: .6rem 1rem; }
.a2hs .in { max-width: 1100px; margin: 0 auto; }
.a2hs ol { margin: .5rem 0 0 1.2rem; }
.a2hs[hidden], ol[hidden], p[hidden] { display: none; }
.step.next { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card .row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: center; }
.card.demo-box { background: #e8f0fb; margin-top: 0; }
.poster { border: 3px solid var(--ink); border-radius: 16px; padding: 2rem 1rem; text-align: center; margin: 1rem 0; }
.poster h3 { font-size: 2rem; margin: 0 0 .5rem; }
.posterlink { font-size: 1.1rem; font-weight: 800; word-break: break-all; }
.posterqr { display: flex; justify-content: center; margin: 1rem 0; }
.posterqr svg { width: 240px; height: 240px; max-width: 100%; }
.card.big { font-size: 1.1rem; }
.btn.full { display: flex; width: 100%; justify-content: center; margin-bottom: .6rem; }
.wide-input { width: 100%; }
.login-foot { text-align: center; margin-top: 1rem; }
@media print {
    .demo-bar, .setupbar, .a2hs, .side, .tabbar, .topbar, .help, .row, .btn, .flash { display: none !important; }
    main > h1, main > p, main > .card:not(.print-card), main > form { display: none !important; }
    .print-card h2, .print-card > p.small { display: none; }
    .posterqr svg { width: 9cm; height: 9cm; }
    body { background: #fff; }
    main > h2.share-sub { display: none !important; }
    body[data-print-only="book"] .print-card[data-poster="install"], body[data-print-only="install"] .print-card[data-poster="book"] { display: none !important; }
}


.btn.big { min-height: 56px; font-size: 1.05rem; padding: 0 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.btn.full { width: 100%; }
.plain { margin: .3rem 0; padding-left: 1.1rem; }

/* ---- Kreş: yoklama, günlük rapor seçimleri, durum rozetleri ---- */
.attlist { list-style: none; margin: 0; padding: 0; }
.att-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.att-row:first-child { border-top: 0; }
.att-name { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.att-form { display: flex; gap: .4rem; }
.att-btn { min-height: 48px; min-width: 88px; padding: 0 .9rem; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.att-btn:hover { border-color: var(--accent); }
.att-btn.att-geldi.on { background: var(--pos); border-color: var(--pos); color: #fff; }
.att-btn.att-gelmedi.on { background: var(--neg); border-color: var(--neg); color: #fff; }
.att-btn.att-izinli.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.att-detail { flex: 1 0 100%; }
.allbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .25rem 0 1rem; }
.chip.att-geldi { background: #dff3e8; color: var(--pos); }
.chip.att-gelmedi { background: #fbe4e2; color: var(--neg); }
.chip.att-izinli { background: var(--warn-bg); color: var(--warn); }
.chip.att-none { background: #eceff1; color: var(--muted); }
.choice { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice label { position: relative; display: inline-block; margin: 0; font-weight: 400; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid #f5b400; outline-offset: 2px; }
.choice .none span { color: var(--muted); border-style: dashed; }
@media (max-width: 520px) { .att-form { width: 100%; } .att-btn { flex: 1; min-width: 0; } }

/* ---- Faz 2 / 3: veli sayfası, ön kayıt formu, kartlar, kiosk, yemek listesi, anket ---- */
.grow { flex: 1 1 220px; min-width: 0; }
.daychecks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.daychecks label { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pmain { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 3rem; font-size: 1.08rem; }
.pmain .card { padding: 1.1rem 1.2rem; }
.pmain h2 { font-size: 1.25rem; }
.pmain .btn { min-height: 52px; font-size: 1.05rem; }
.phead { margin-bottom: 1rem; }
.phead h1 { font-size: 1.9rem; }
.pbig { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pstate { font-size: 1.2rem; margin: .2rem 0 .6rem; }
.chip.big { font-size: 1.05rem; padding: .2rem .8rem; }
.prow { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.prow:first-of-type { border-top: 0; }
.plabel { color: var(--muted); font-size: .95rem; flex: 0 0 auto; max-width: 48%; }
.pval { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pincident, .pitem { border-top: 1px solid var(--line); padding: .8rem 0 .2rem; }
.pincident:first-of-type, .pitem:first-of-type { border-top: 0; }
.pincident h3, .pitem h3 { margin-top: 0; }
.pincident form { margin-top: .6rem; }
.pmenu { border-top: 1px solid var(--line); padding: .5rem 0; }
.pmenu:first-of-type { border-top: 0; }
.pform .field label { font-size: 1rem; }
.pmain .stack .btn.full { margin-bottom: 0; }
.maker { text-align: center; margin-top: 2rem; font-size: .8rem; }
.maker a { color: var(--muted); text-decoration: none; }
.maker a:hover { text-decoration: underline; }
.a2hs.parent { border-radius: 10px; }
.parentpage .a2hs { border: 1px solid var(--warn); border-radius: 10px; margin-bottom: 1rem; }
.pollbars { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.pollrow { display: flex; justify-content: space-between; gap: 1rem; }
.pollbars .progress { margin: .2rem 0 0; }
.menuday { margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.menuday:last-of-type { border-bottom: 0; }
.progress[role=img] { margin: .35rem 0 0; }
td.num.tight, th.num.tight { white-space: nowrap; }

/* A4 veli kartları */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 820px; margin: 0 auto 2rem; padding: 0 .75rem; }
.pcards.single { grid-template-columns: 1fr; max-width: 480px; }
.pcard { background: #fff; border: 2px dashed #8a9a97; border-radius: 12px; padding: 1rem; text-align: center; break-inside: avoid; }
.pcard h2 { margin: .1rem 0; font-size: 1.35rem; }
.pcard-shop { margin: 0; font-weight: 700; color: var(--accent-d); }
.pcard-do { font-size: .9rem; margin: .4rem 0; }
.pcard .posterqr svg { width: 180px; height: 180px; }
.pcard .posterlink { font-size: .72rem; font-weight: 600; word-break: break-all; margin: .3rem 0; }
@media print {
    .pcards { grid-template-columns: 1fr 1fr; gap: 6mm; max-width: none; padding: 0; margin: 0; }
    .pcards.single { grid-template-columns: 1fr; }
    .pcard { border: 1px dashed #666; padding: 5mm; }
    .pcard .posterqr svg { width: 5.2cm; height: 5.2cm; }
    .pcards.single .pcard .posterqr svg { width: 9cm; height: 9cm; }
}

/* Kiosk (tam ekran tablet) */
.kioskpage { background: #17383a; color: #fff; min-height: 100vh; }
.kioskpage .card { background: #fff; color: var(--ink); }
.kioskpage .card.help { margin-top: 1rem; }
.khead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: #0f2b2c; flex-wrap: wrap; }
.khead .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.khead .btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.kmain { max-width: 1100px; margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.ktabs a { font-size: 1.1rem; min-height: 52px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: .6rem; }
.kgrid form { margin: 0; display: block; }
.kbtn { width: 100%; min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; text-align: left; padding: .8rem 1rem; border: 3px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.kbtn b { font-size: 1.15rem; }
.kbtn span { font-size: .9rem; color: var(--muted); }
button.kbtn:hover, a.kbtn:hover { border-color: var(--accent); }
.kbtn.in { background: #dff3e8; border-color: var(--pos); }
.kbtn.gone { background: #eceff1; border-style: dashed; cursor: default; }
.kout { border: 3px solid var(--accent); }
@media (max-width: 520px) { .kgrid { grid-template-columns: 1fr; } .pcards { grid-template-columns: 1fr; } }
