/* Hesap bölme deneyimi (Görev 33) — yalnızca .sd-page / .sd içinde geçerli, site renk değişkenlerini kullanır */
.sd-page { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
@media (min-width: 960px) { .sd-page { grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; } .sd-intro { position: sticky; top: 84px; } }
.sd-page > * { min-width: 0; }
.sd-intro h1 { text-wrap: balance; margin-top: 10px; }
.sd-points { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.sd-points li { padding-inline-start: 14px; border-inline-start: 3px solid var(--brand-soft); }
.sd-points strong { display: block; }
.sd-proto { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 5px 10px; border-radius: 999px; }

.sd { --muted: var(--ink-2); --ok: var(--good); --ok-soft: var(--good-soft); --r: 14px; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; width: 100%; max-width: 480px; justify-self: center; }
.sd > * { min-width: 0; }
.sd .card > * { min-width: 0; }
.sd button, .sd input, .sd select { font: inherit; color: inherit; }
.sd button { cursor: pointer; }
.sd .num { font-variant-numeric: tabular-nums; }
.sd-head { display: flex; align-items: center; justify-content: space-between; }
.sd-brand { display: flex; align-items: center; gap: 10px; }
.sd-brand small { display: block; color: var(--muted); font-size: 12.5px; }
.sd-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }

.sd-scen { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.sd-scen::-webkit-scrollbar { display: none; }
.sd .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.sd .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.sd .sd-card { padding: 14px; display: grid; gap: 12px; margin: 0; }
.sd .sd-card h2 { font-size: 16.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.sd .step { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.sd .hint { color: var(--muted); font-size: 13px; margin: 0; }

.sd .people { display: flex; flex-wrap: wrap; gap: 8px; }
.sd .person { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; background: var(--bg); font-weight: 600; font-size: 14px; }
.sd .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.sd .person .tag { font-size: 11px; color: var(--muted); font-weight: 600; }
.sd .add { border: 1px dashed var(--muted); background: transparent; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; color: var(--muted); }

.sd .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.sd .seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.sd .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.sd .forrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sd .forrow::-webkit-scrollbar { display: none; }
.sd .forrow .chip { padding: 6px 11px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.sd .forrow .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sd .dot { width: 9px; height: 9px; border-radius: 50%; }
.sd .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.sd .menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd .mi { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px; text-align: start; display: grid; gap: 2px; min-height: 58px; }
.sd .mi b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.sd .mi span { color: var(--muted); font-size: 13px; }
.sd .mi.custom { border-style: dashed; color: var(--muted); align-content: center; font-weight: 600; }

.sd .lines { display: grid; border-top: 1px solid var(--line); }
.sd .ln { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sd .ln .nm { font-weight: 600; }
.sd .ln .pr { font-weight: 700; text-align: end; }
.sd .ln .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.sd .own { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px 4px 6px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sd .own.shared { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); padding-inline-start: 10px; }
.sd .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-inline-start: auto; }
.sd .stepper button { border: 0; background: transparent; width: 34px; height: 32px; font-size: 17px; font-weight: 700; }
.sd .stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 13.5px; }
.sd .empty { color: var(--muted); text-align: center; padding: 14px 0; font-size: 14px; }

.sd .cov { display: grid; gap: 8px; }
.sd .covrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sd .covrow select, .sd .tipcustom select, .sd .tipcustom input { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; font-weight: 600; min-width: 0; width: 100%; }
.sd .switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sd .switch input { width: 18px; height: 18px; accent-color: var(--brand); }

.sd .tipgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sd .tipgrid button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 0; font-weight: 700; }
.sd .tipgrid button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sd .tipcustom { display: flex; align-items: center; gap: 8px; }
.sd .tipcustom .lbl { white-space: nowrap; }
.sd .tipcustom input, .sd .tipcustom select { flex: 1; }

.sd .sum { display: grid; gap: 10px; }
.sd .pc { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.sd .pc.covered { background: var(--bg); }
.sd .pc.done { border-color: var(--ok); }
.sd .pc .hd { display: flex; align-items: center; gap: 10px; }
.sd .pc .who { font-weight: 700; flex: 1; min-width: 0; }
.sd .pc .who small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.sd .pc .big { font-weight: 800; font-size: 21px; }
.sd .bd { display: grid; gap: 3px; font-size: 13.5px; }
.sd .bd div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sd .bd div b { color: var(--ink); font-weight: 600; }
.sd .bd .carry, .sd .bd .carry b { color: var(--brand-ink); }
.sd details summary { cursor: pointer; }
.sd .pay { border: 0; background: var(--brand); color: #fff; border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 15px; width: 100%; }
.sd .pay.ghost { background: var(--ok-soft); color: var(--ok); }
.sd .note { font-size: 12.5px; border-radius: 10px; padding: 8px 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; margin: 0; }
.sd .err { color: var(--bad); font-size: 13px; font-weight: 600; margin: 0; }

.sd .bar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); display: grid; gap: 7px; }
.sd .bar .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.sd .bar .lbl { white-space: nowrap; }
.sd .bar .kal { font-weight: 800; font-size: 21px; }
.sd .bar .stats { display: flex; gap: 10px; font-size: 12px; color: var(--muted); text-align: end; }
.sd .bar .stats span { display: grid; }
.sd .bar .stats b { color: var(--ink); }
.sd .prog { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.sd .prog i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .3s; }
.sd .chk { font-size: 12px; font-weight: 700; }
.sd .chk.good { color: var(--ok); }
.sd .chk.bad { color: var(--bad); }

.sd-dialog { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--ink); max-height: 88dvh; }
@media (min-width: 700px) { .sd-dialog { margin: auto; border-radius: 20px; } }
.sd-dialog::backdrop { background: rgba(0,0,0,.45); }
.sd .sheet { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sd .sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto; }
.sd .sheet h3 { font-size: 18px; margin: 0; }
.sd .opts { display: grid; gap: 8px; }
.sd .opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.sd .opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.sd .sharers { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 30px; }
.sd .sharers label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13.5px; font-weight: 600; }
.sd .sharers input { accent-color: var(--brand); }
.sd .field { display: grid; gap: 5px; }
.sd .field input { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-weight: 600; }
.sd .acts { display: flex; gap: 8px; }
.sd .acts button { flex: 1; border-radius: 12px; padding: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--bg); }
.sd .acts .primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.sd .acts .danger { color: var(--bad); }
.sd .methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sd .methods button { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 6px; font-weight: 700; font-size: 13.5px; }
.sd .methods button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.sd .paybig { text-align: center; font-weight: 800; font-size: 32px; }
html:has(.sd) { scroll-padding-bottom: 150px; }
