/* Page 13 · Profile & settings (/settings). App shell from home.css; grouped list rows, bottom sheets. */

.settings { padding-top: 8px; padding-bottom: 24px; max-width: 640px; }
.settings h1 { font-size: 1.6rem; }

.profile { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; box-shadow: none; }
.profile .avatar { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.name-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.name-row b { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.name-form { display: flex; gap: 6px; }
.name-form .input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; font-size: 1rem; }
.name-form .btn { min-height: 40px; padding: 6px 14px; }
.who .sub { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px 14px; min-height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-size: 0.9rem; }
.plan-bar span { font-weight: 800; }
.plan-bar.plus { background: var(--teal-soft); color: var(--teal); }

.group-title { margin: 18px 2px 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.group { padding: 0 14px; box-shadow: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; text-align: left; color: inherit; text-decoration: none; cursor: pointer; }
.group > .row:last-child { border-bottom: 0; }
.row.static { cursor: default; }
.row .val { flex: none; color: var(--muted); font-size: 0.9rem; }
.row.danger { color: var(--bad); font-weight: 700; }
.row.danger .val { color: var(--bad); }
.row .sub { display: block; font-size: 0.8rem; color: var(--muted); }
.mini-seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); flex: none; }
.mini-seg button { min-height: 36px; min-width: 40px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.mini-seg button[aria-checked="true"], .mini-seg button.on { background: var(--ink); color: #fff; }

.switch-row { position: relative; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.2s; }
.track span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch-row input:checked + .track { background: var(--ok); }
.switch-row input:checked + .track span { transform: translateX(18px); }
.switch-row input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.time { min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 1rem; }

.logout { width: 100%; margin-top: 20px; }
.version { margin-top: 10px; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Bottom sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; background: rgba(31, 36, 64, 0.45); }
.sheet { width: 100%; max-width: 520px; margin: 0 auto; max-height: 92vh; overflow-y: auto; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px 22px 0 0; animation: up 0.25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: var(--line); }
.sheet h2 { font-size: 1.15rem; outline: none; }
.sheet .btn-block { width: 100%; margin-top: 10px; }
.options { display: grid; gap: 6px; margin-top: 12px; }
.option { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 700; text-align: left; }
.option[aria-checked="true"] { border-color: var(--ink); background: var(--paper-2); }
.option[aria-checked="true"]::after { content: "✓"; font-weight: 800; }
.option .tag { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; }
.pick-note { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

.del-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fbe6e6; color: var(--bad); margin-bottom: 10px; }
#del-text { margin-top: 4px; color: var(--ink-2); font-size: 0.9rem; }
.del-list { margin: 6px 0 0; padding-left: 20px; font-size: 0.9rem; color: var(--ink-2); }
.del-tip { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 0.88rem; }
.link { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 800; text-decoration: underline; cursor: pointer; }
.del-label { display: block; margin-top: 12px; font-size: 0.9rem; }
#del-input { width: 100%; margin-top: 4px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: 2px; }
#del-input:focus { outline: none; border-color: var(--bad); }
.del-btn { background: var(--bad); color: #fff; }
.del-btn:disabled { opacity: 0.45; }
.proto-note { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
@media (min-width: 900px) { .settings { padding-top: 32px; } .settings h1 { font-size: 2rem; } }
