/* settings.css — Settings view (Account & Sync, Features) + sync badge */

.set-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.set-sec { display: flex; flex-direction: column; gap: 8px; }
.set-h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text, #23201b); }
.set-sub { margin: 0 0 4px; font-size: 14px; color: var(--muted, #6f6a60); }
.set-note { margin: 0; font-size: 14px; color: var(--muted, #6f6a60); line-height: 1.5; }
.set-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.set-links { margin-top: 2px; }
.set-form { display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.set-lbl { font-size: 13px; color: var(--muted, #6f6a60); margin-top: 6px; }
.set-in { border: 0; border-bottom: 1.5px solid var(--border, #e7e2d8); background: transparent; font: inherit; font-size: 16px; padding: 8px 2px; color: var(--text, #23201b); }
.set-in:focus { outline: none; border-bottom-color: var(--accent-strong, #c2634a); }
.set-msg { margin: 0; font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.set-msg--ok { background: #e6f0e8; color: #2c6342; }
.set-msg--err { background: #f8e9e3; color: #8f3f26; }
.set-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text, #23201b); }
.set-dot { width: 9px; height: 9px; border-radius: 50%; background: #b5ada0; flex: none; }
.set-status--synced .set-dot { background: #2c6342; }
.set-status--syncing .set-dot { background: #2f5d8a; animation: set-pulse 1s ease-in-out infinite; }
.set-status--offline .set-dot, .set-status--error .set-dot { background: #b26a12; }
@keyframes set-pulse { 50% { opacity: .35; } }
.set-steps { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; }

.set-feat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 2px; border-top: 1px dashed var(--border, #e7e2d8); }
.set-feat__n { font-size: 15.5px; }
.set-feat__n small { display: block; font-size: 13px; color: var(--muted, #6f6a60); }
.set-req { font-size: 13px; color: var(--muted, #6f6a60); }
.set-sw { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 0; background: #d9d1c4; cursor: pointer; flex: none; transition: background .15s; }
.set-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fffdfa; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.set-sw.is-on { background: #2c6342; }
.set-sw.is-on::after { left: 23px; }

/* little dot on your name in the sidebar: green synced, blue syncing, amber offline, grey not signed in */
.rail__sync { width: 8px; height: 8px; border-radius: 50%; background: #b5ada0; margin-left: auto; flex: none; }
.rail__sync[data-state="synced"] { background: #2c6342; }
.rail__sync[data-state="syncing"] { background: #2f5d8a; }
.rail__sync[data-state="offline"], .rail__sync[data-state="error"] { background: #b26a12; }

[data-feature][hidden] { display: none !important; }

/* Installed on a phone: respect the notch / home indicator. */
body.is-installed { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }

/* The "open in a tab" button only makes sense inside the Chrome extension. */
body.is-web .rail__popout { display: none; }
