:root { font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172133; background: #eef2f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 28px 16px; }
button, input { font: inherit; }
a { color: #315f82; font-weight: 750; text-decoration: none; }
.settings-shell { width: min(780px, 100%); margin: 0 auto; }
.topline { display: flex; justify-content: space-between; align-items: center; }
header { margin: 34px 0 24px; }
.eyebrow { margin: 0 0 6px; color: #8190a1; font-size: 12px; font-weight: 850; letter-spacing: .16em; }
h1, h2 { margin: 0; letter-spacing: -.03em; }
h1 { font-size: 42px; }
h2 { font-size: 25px; }
header p:last-child, .muted, .note { color: #69798b; line-height: 1.5; }
.card { background: white; border-radius: 22px; padding: 22px; margin: 14px 0; box-shadow: 0 7px 24px rgba(41, 57, 73, .07); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.badge { padding: 7px 10px; background: #eef2f5; border-radius: 999px; color: #6b7b8b; font-size: 12px; font-weight: 800; }
.badge.connected { background: #e5f2e8; color: #357046; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.primary-button, .quiet-button { min-height: 44px; border: 0; border-radius: 13px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; background: #315f82; color: white; }
.quiet-button { background: #e7edf2; color: #34475b; }
.note { margin-bottom: 0; font-size: 13px; }
.calendar-list { display: grid; gap: 8px; margin: 16px 0; }
.calendar-choice { display: grid; grid-template-columns: 24px 15px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #e0e6ec; border-radius: 14px; }
.calendar-choice input { width: 19px; height: 19px; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.calendar-name { font-weight: 720; }
.calendar-meta { display: block; color: #8996a4; font-size: 11px; margin-top: 2px; }
.hidden { display: none !important; }
.overlay { position: fixed; inset: 0; background: rgba(26, 37, 48, .5); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(6px); }
.login-card { width: min(420px, 94vw); background: white; padding: 24px; border-radius: 22px; box-shadow: 0 20px 60px rgba(31, 45, 59, .25); }
.login-card input { width: 100%; height: 50px; margin: 14px 0; border: 1px solid #ccd6df; border-radius: 12px; padding: 0 13px; }
.login-card .primary-button { width: 100%; }
.error { color: #b44747; font-size: 13px; min-height: 18px; }
@media (max-width: 600px) { body { padding: 18px 12px; } h1 { font-size: 34px; } .card { padding: 18px; } }
.display-settings-grid { display: grid; gap: 14px; margin: 16px 0; }
.setting-field { display: grid; gap: 7px; color: #44566a; font-weight: 760; }
.setting-field select { min-height: 46px; border: 1px solid #d7e0e7; border-radius: 12px; background: white; padding: 0 12px; color: #172133; font: inherit; }
.toggle-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1px solid #e0e6ec; border-radius: 14px; cursor: pointer; }
.toggle-row input { width: 20px; height: 20px; margin-top: 2px; }
.toggle-row span { display: grid; gap: 3px; }
.toggle-row small { color: #7a8999; line-height: 1.4; font-weight: 500; }

/* v9 family colours */
.people-settings { display: grid; gap: 10px; margin: 14px 0 18px; }
.person-setting { display: grid; grid-template-columns: minmax(100px,1fr) 56px 86px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #dfe6ed; border-radius: 12px; background: #f8fafc; }
.person-setting-name { font-weight: 800; }
.person-setting input[type="color"] { width: 52px; height: 38px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.person-color-value { color: #6b7888; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 560px) { .person-setting { grid-template-columns: minmax(80px,1fr) 48px 76px; gap: 8px; } }
