/* Settings pages: Live Wall header pattern (crumb + title), white cards, tokens only. */
.page-head{display:flex;align-items:center;gap:16px;padding:8px 32px 4px}
.page-head h1{font-size:30px;font-weight:900;letter-spacing:-.4px}
.crumb{font-weight:800;color:var(--hw-link);font-size:15px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.page-lede{padding:0 32px 18px;max-width:780px;color:var(--hw-muted);font-weight:600}
.card{background:var(--hw-card);border-radius:var(--r-card);box-shadow:var(--shadow);padding:18px 20px}
.card h2{font-size:20px;font-weight:900;letter-spacing:-.2px}
.card p{font-weight:600;margin-top:2px}
.cam-list{display:flex;flex-direction:column;gap:14px;padding:0 32px 32px;max-width:980px}
.settings-link{color:var(--hw-ink);text-decoration:none;min-height:44px}
.settings-link:hover{box-shadow:var(--shadow-lift)}
.empty-card{margin:0 32px;max-width:980px}

.cam-row{display:flex;align-items:center;gap:18px}
.cam-main{flex:1;min-width:0}
.cam-room{color:var(--hw-muted)}
.cam-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 6px;min-width:0}
.cam-chips .chip{box-shadow:inset 0 0 0 1.5px var(--hw-line);max-width:100%;white-space:normal;height:auto;line-height:1.3;text-align:left}
.status-monitored{background:var(--hw-green)}
.status-notmonitored{background:#fff}
.status-notingooglelist{background:var(--hw-yellow)}
.mode-chip{background:var(--hw-cream)}
.cam-traits,.cam-id{font-size:14px;color:var(--hw-ink)}
.cam-row .label{display:inline-block;min-width:78px;font-weight:800;color:var(--hw-muted)}
.cam-id code{font:700 13px ui-monospace,monospace;word-break:break-all}

/* Toggle switch: a submit button with role="switch"; 44px tap target (AC-66). */
.switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;min-width:44px;padding:0 4px;border:0;background:none;
 font:800 15px var(--font);color:var(--hw-ink);cursor:pointer;flex-shrink:0}
.switch .track{position:relative;width:56px;height:32px;border-radius:999px;background:#6B6472;transition:background-color .15s ease}
.switch .thumb{position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s ease}
.switch[aria-checked="true"] .track{background:var(--hw-green-text)}
.switch[aria-checked="true"] .thumb{transform:translateX(24px)}
.switch .switch-text{min-width:28px}
.switch:focus-visible{outline:3px solid var(--hw-link);outline-offset:3px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.switch .track,.switch .thumb{transition:none}}

.section-title{font-size:18px;font-weight:900;margin:8px 0 0}
.cam-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cam-title-row h2{min-width:0}
.monitor-form,.inline-form{display:flex;align-items:center;gap:8px;flex-shrink:0}
.switch-label{font-weight:800;font-size:14px}
.night-chip{background:var(--hw-sky)}
.battery-note{margin-top:8px;font-weight:700}
.edit-form{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.edit-form .field input,.edit-form select,.pasture-card .field input,.card .field input,.card .field select,select{
 min-height:44px;width:100%;max-width:100%;min-width:0;padding:0 12px;border-radius:14px;border:2px solid #8A8290;
 background:#fff;font:700 16px var(--font);color:var(--hw-ink)}
.mode-picker{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.mode-picker legend{font-weight:900;font-size:16px;margin-bottom:4px}
.mode-picker .check{align-items:flex-start}
.mode-picker .check{min-width:0}
.mode-picker .check span{font-weight:600;min-width:0;overflow-wrap:anywhere}
.mode-warn{background:var(--hw-yellow);color:var(--hw-ink);border-radius:14px;padding:12px 14px;font-weight:800}
.confirm-card{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--hw-cream);box-shadow:inset 0 0 0 2px var(--hw-line)}
.confirm-card p{font-weight:800}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.btn-inline{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 16px;
 border-radius:var(--r-pill);border:0;background:var(--hw-green);color:var(--hw-ink);font:800 15px var(--font);
 text-decoration:none;cursor:pointer}
.btn-quiet-link{background:#fff;box-shadow:inset 0 0 0 2px var(--hw-line)}
.banner-error{margin:0 32px 14px;max-width:980px;padding:12px 14px;border-radius:14px;background:#fff;color:var(--hw-red-text);
 font-weight:800;box-shadow:inset 0 0 0 2px var(--hw-red)}
.pasture-empty{padding:0 0 8px}
.copy-link{min-height:44px;width:100%;max-width:100%;min-width:0;padding:8px 12px;border-radius:14px;border:2px solid #8A8290;
 font:700 14px ui-monospace,monospace;color:var(--hw-ink);background:#fff}
.account-meta{color:var(--hw-muted);font-weight:700}
.account-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.account-actions select{width:auto;min-width:8rem;max-width:100%}
.account-actions form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}

@media (max-width:600px){
 .page-head{padding:4px 18px 2px}.page-head h1{font-size:24px}
 .page-lede{padding:0 18px 14px;font-size:15px}
 .cam-list{padding:0 18px 24px}.empty-card{margin:0 18px}
 .banner-error{margin:0 18px 14px}
 .card{padding:14px 14px}
 .cam-row{align-items:flex-start}
 .cam-row .label{display:block;min-width:0}
 .cam-title-row{flex-direction:column}
 .edit-grid{grid-template-columns:1fr}
 .account-actions select{width:100%}
}
