:root {
  --shield-navy: #0b1735;
  --shield-navy-2: #111f45;
  --shield-blue: #285cf4;
  --shield-violet: #7447ed;
  --shield-cyan: #42d6ef;
}

body[data-theme="cloud"] {
  --ink: #101a37;
  --muted: #65708b;
  --paper: #f5f7fd;
  --card: #ffffff;
  --line: #dce3f1;
  --green: #285cf4;
  --mint: #d9f6e7;
  --lime: #62e4f6;
  --coral: #ea625f;
  --peach: #ffe0dc;
  --gold: #eab637;
  --shadow: 0 12px 34px rgba(33, 56, 114, .08);
  background:
    radial-gradient(circle at 48% -10%, rgba(84, 123, 255, .12), transparent 31rem),
    radial-gradient(circle at 95% 12%, rgba(111, 224, 247, .09), transparent 25rem),
    var(--paper);
}

.shell { grid-template-columns: 232px minmax(0, 1fr); }

body[data-theme="cloud"] .sidebar {
  padding: 24px 17px 20px;
  background: linear-gradient(180deg, var(--shield-navy), #101f42 68%, #11254c);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 10px 0 32px rgba(12, 27, 63, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
}

.brand img {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.brand-name { color: #fff; font: 800 23px/1.2 Manrope, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.brand-name > span { color: #5680ff; background: linear-gradient(90deg, #168cf5, #8053ec); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.sidebar nav { margin: 37px 0 24px; gap: 6px; }

.nav-item {
  min-height: 45px;
  padding: 12px 13px;
  border-radius: 10px;
  color: #c9d2e8;
  font-weight: 600;
  letter-spacing: -.01em;
}

.nav-item span { color: #e7ecfa; font-size: 16px; }

body[data-theme="cloud"] .nav-item:hover,
body[data-theme="cloud"] .nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(91, 116, 178, .42), rgba(88, 105, 155, .27));
  box-shadow: inset 3px 0 0 #4fd8f3;
}

body[data-theme="cloud"] .level-card {
  padding: 16px;
  border-color: rgba(133, 163, 231, .28);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(72, 105, 181, .08));
}

.level-line { color: #eef4ff; }
body[data-theme="cloud"] .level-line b { color: #67e6f7; }
body[data-theme="cloud"] .level-card .progress { background: rgba(151, 173, 224, .22); }
body[data-theme="cloud"] .level-card p,
body[data-theme="cloud"] .privacy-note { color: #b9c6e2; }

body[data-theme="cloud"] .add-button {
  min-height: 50px;
  border-radius: 11px;
  background: linear-gradient(135deg, #51dff4, #58c9f2);
  color: #0c2148;
  box-shadow: 0 10px 24px rgba(70, 215, 242, .2);
}

main { max-width: 1660px; padding: 38px 34px 56px; }
.topbar { margin-bottom: 26px; }
.eyebrow, .section-kicker { color: #1f4ed2; }
.topbar h1 { margin-top: 6px; letter-spacing: -.045em; }

.style-button,
.score-pill {
  background: rgba(255, 255, 255, .9);
  border-color: #dbe2ef;
  box-shadow: 0 6px 20px rgba(36, 58, 113, .05);
}

.style-button:hover { border-color: #9fb4f1; color: #204bc7; }
.score-pill > span { color: #3971f5; }

.hero-grid { grid-template-columns: minmax(500px, 2fr) minmax(245px, .9fr) minmax(265px, .95fr); gap: 12px; }
.hero-card { min-height: 158px; border-radius: 16px; box-shadow: var(--shadow); }

body[data-theme="cloud"] .forecast {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0, rgba(67, 229, 246, .34), transparent 27%),
    linear-gradient(120deg, #2558db 0%, #4057e9 42%, #7843ed 100%);
  box-shadow: 0 18px 40px rgba(63, 70, 218, .22);
}

body[data-theme="cloud"] .forecast::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  top: -76px;
  border-radius: 50%;
  background: rgba(94, 229, 250, .16);
  box-shadow: 0 0 80px rgba(79, 225, 248, .55);
  pointer-events: none;
}

.forecast .hero-head,
.forecast-main small,
.forecast-main p { color: rgba(255, 255, 255, .78); }
.forecast-main strong,
.forecast-stat.cumulative-stat strong,
.forecast-stat .ahead { color: #fff; text-shadow: 0 4px 18px rgba(9, 18, 74, .2); }
.forecast-divider { background: rgba(255, 255, 255, .22); }
body[data-theme="cloud"] .status-dot { color: #75eef9; }

body[data-theme="cloud"] .ring {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 32px rgba(84, 225, 246, .26);
}

.next-up { background: linear-gradient(145deg, #fff, #fbfcff); }
.next-up strong { color: #ec625e; }
.streak { background: linear-gradient(145deg, #fffaf0, #fff5d9); }

.cash-strip,
.account-filter,
.account-forecast-tile,
.calendar-card,
.panel,
.transaction-table,
.transaction-stats article,
.need-want-card,
.rules-banner {
  border-color: #dce3f1;
  box-shadow: var(--shadow);
}

.cash-strip { margin-top: 16px; border-radius: 16px; }
.cash-strip strong { color: #172754; }
.cash-strip > div:first-child strong { color: #265cf0; }
.buffer-control { background: #f8faff; }

.account-filter {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .92);
}

.owner-switch button,
.manage-accounts { border-radius: 9px; }
.owner-switch button:nth-child(2) { color: #703ddd; }
.owner-switch button:nth-child(3) { color: #149cb6; }
.owner-switch button:nth-child(2).active { background: linear-gradient(135deg, #7546e7, #6a39d6); color: #fff; }
.owner-switch button:nth-child(3).active { background: linear-gradient(135deg, #36cfe8, #1cb2d2); color: #082945; }

.account-forecast-strip { gap: 10px; margin-top: 11px; }
.account-forecast-tile { border-radius: 14px; }
.account-forecast-tile.total {
  background: linear-gradient(135deg, #eef2ff, #fff);
  border-color: #cfd9fa;
}

.toolbar { margin-top: 28px; }
.month-switch h2 { letter-spacing: -.03em; }
.month-switch button { border-color: #d7dfed; box-shadow: 0 4px 12px rgba(29, 49, 98, .06); }
.calendar-card { border-radius: 15px; }
.weekdays { background: #fbfcff; }
.weekdays span { color: #53617f; }

body[data-theme="cloud"] .day {
  background: rgba(255, 255, 255, .96);
  border-color: #e5eaf3;
}
body[data-theme="cloud"] .day:hover { background: #f7f9ff; }
body[data-theme="cloud"] .day.outside { background: #f1f3f8; color: #9aa5ba; }
body[data-theme="cloud"] .day.today { box-shadow: inset 0 0 0 2px #3164f4, inset 0 0 30px rgba(49, 100, 244, .035); }
.event { border-radius: 6px; }
body[data-theme="cloud"] .event.posted.income { background: #d8f5e5; color: #07513b; border-color: #6bb893; box-shadow: inset 4px 0 0 #0b8a62; }
body[data-theme="cloud"] .event.posted.expense { background: #ffe0da; color: #7a2923; border-color: #e18d7d; box-shadow: inset 4px 0 0 #e35342; }
body[data-theme="cloud"] .event.predicted.income { background: #edf9f2; color: #0d7655; }
body[data-theme="cloud"] .event.predicted.expense { background: #fff4f1; color: #ad4b3f; }

.panel { border-radius: 15px; }
.bar-track i { background: linear-gradient(90deg, #ed625f, #fb9b86); }
.quest-button,
body[data-theme="cloud"] .primary { background: linear-gradient(135deg, #285cf4, #5b4ee8); box-shadow: 0 8px 20px rgba(45, 87, 228, .18); }

dialog::backdrop { background: rgba(8, 18, 43, .58); backdrop-filter: blur(3px); }
/* Keep the page still until the active modal is dismissed. */
html { scrollbar-gutter: stable; }
html:has(dialog:modal),
body:has(dialog:modal) { overflow: hidden; overscroll-behavior: none; }

#dayDialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#toast { background: #0c1a3b; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 80px 1fr; }
  .brand { min-height: 48px; justify-content: center; gap: 0; }
  .brand img { width: 42px; height: 44px; }
  .brand .brand-name { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .sidebar .brand { display: none; }
  body { background: #f5f7fd; }
  main { padding: 18px 12px 88px; }
  .sidebar { box-shadow: 0 -8px 25px rgba(9, 23, 55, .16); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .forecast-main { grid-template-columns: 1fr 1fr; }
  .topbar h1 { font-size: 27px; }
  .account-filter { margin-top: 16px; }
  .day { min-height: 106px; }
}

@media (max-width: 460px) {
  .forecast-main { grid-template-columns: 1fr; }
}

/* Cloud account and synchronization */
.sync-status-button,
.auth-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(36, 58, 113, .05);
}
.sync-status-button i { width: 8px; height: 8px; border-radius: 50%; background: #99a4b7; }
.sync-status-button.online i { background: #13a675; box-shadow: 0 0 0 4px rgba(19, 166, 117, .12); }
.sync-status-button.syncing i { background: #e7aa29; animation: sync-pulse 1s infinite; }
.sync-status-button.error i { background: #df534e; }
.sync-status-button span { font-weight: 800; font-size: 12px; }
@keyframes sync-pulse { 50% { opacity: .35; } }
.auth-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #2b66f5, #7447ed); color: #fff; font-size: 12px; font-weight: 900; }
.auth-avatar.large { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
.auth-button-copy { display: grid; text-align: left; line-height: 1.1; }
.auth-button-copy small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.auth-button-copy b { margin-top: 3px; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.premium-status { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 13px 7px 9px; border: 1px solid #e6c15b; border-radius: 14px; color: #4b3300; background: linear-gradient(135deg, #fff8d8, #f4c84a); box-shadow: 0 7px 20px rgba(168, 116, 0, .18), inset 0 1px rgba(255,255,255,.75); cursor: pointer; }
.premium-status[hidden] { display: none !important; }
.premium-status::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,.55); border-radius: 11px; pointer-events: none; }
.premium-status:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(168, 116, 0, .24), inset 0 1px rgba(255,255,255,.8); }
.premium-status:focus-visible { outline: 3px solid rgba(235, 180, 25, .35); outline-offset: 2px; }
.premium-crown { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff9dc; background: linear-gradient(145deg, #6e4b00, #a97500); font-size: 20px; line-height: 1; box-shadow: inset 0 1px rgba(255,255,255,.28); }
.premium-status>span:last-child { display: grid; text-align: left; line-height: 1; }
.premium-status small { font-size: 7px; letter-spacing: .16em; font-weight: 800; opacity: .72; }
.premium-status strong { margin-top: 4px; font: 900 11px Manrope, sans-serif; letter-spacing: .08em; }
.app-legal-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 12px;padding:0 8px 9px}.app-legal-links a{color:#9fb0d4;font-size:9px;text-decoration:none}.app-legal-links a:hover{text-decoration:underline}
.auth-agreement{margin:13px 0;color:var(--muted);font-size:11px;line-height:1.45}.auth-agreement a{color:#315bd6}
#billingCard.premium-active { position: relative; overflow: hidden; border-color: #e4c35b !important; background: linear-gradient(135deg, #fffdf4 0%, #fff8d9 52%, #f8e6a2 100%) !important; box-shadow: 0 16px 38px rgba(158, 112, 0, .12); }
#billingCard.premium-active::after { content: "♛"; position: absolute; right: 26px; top: 13px; color: rgba(154, 105, 0, .12); font-size: 88px; line-height: 1; pointer-events: none; }
#billingCard.premium-active #billingTitle { color: #5d3f00; }

.sync-intro { margin-bottom: 20px; }
.sync-health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sync-health-grid article { position: relative; min-height: 154px; padding: 20px 20px 18px 72px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.sync-health-grid small { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.sync-health-grid strong { display: block; margin-top: 9px; font: 800 21px Manrope; }
.sync-health-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sync-health-icon { position: absolute; left: 19px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; }
.sync-health-icon.cloud { background: #e1e9ff; color: #285cf4; }
.sync-health-icon.plaid { background: #111a36; color: #fff; }
.sync-health-icon.receipt { background: #e3f8f5; color: #108f79; }
.sync-log-card { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.usage-status-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 17px 20px; border: 1px solid #d7e1f4; border-radius: 16px; background: linear-gradient(135deg, #f9fbff, #eef4ff); box-shadow: var(--shadow); }
.usage-status-card h3 { margin: 4px 0; font: 800 16px Manrope; }
.usage-status-card p { margin: 0; color: var(--muted); font-size: 13px; }
.usage-status-card button { flex: 0 0 auto; }
.usage-status-card button[hidden] { display: none !important; }
.sync-log { display: grid; margin-top: 14px; }
.sync-log-empty { padding: 38px 16px; text-align: center; color: var(--muted); }
.sync-log-empty strong { color: var(--ink); }
.sync-log-empty p { margin: 5px 0 0; font-size: 13px; }
.sync-log-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.sync-log-row:first-child { border-top: 0; }
.sync-log-row time, .sync-log-row small { color: var(--muted); font-size: 12px; }
.sync-log-row strong { display: block; font-size: 13px; }
.sync-counts { display: flex; gap: 5px; }
.sync-counts i { padding: 4px 7px; border-radius: 99px; background: #edf1fb; color: #52617f; font-style: normal; font-size: 10px; font-weight: 800; }
.security-card { display: flex; justify-content: space-between; align-items: center; gap: 26px; margin-top: 14px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #101d41, #183064); color: #fff; }
.security-card .section-kicker { color: #65def2; }
.security-card h3 { margin: 5px 0; font: 800 18px Manrope; }
.security-card p { max-width: 700px; margin: 0; color: #c5d0e8; font-size: 13px; line-height: 1.5; }
.primary.compact { width: auto; min-width: 170px; }

.welcome-dialog{width:min(660px,calc(100% - 24px));padding:34px;border:1px solid #d7e0f5;border-radius:24px;background:#fff;color:var(--ink);box-shadow:0 30px 90px rgba(10,27,67,.28)}
.welcome-dialog::backdrop{background:rgba(9,20,48,.7);backdrop-filter:blur(8px)}
.welcome-brand{display:flex;align-items:center;gap:11px;margin-bottom:26px;font:800 24px Manrope,sans-serif;letter-spacing:-.04em}.welcome-brand img{width:48px;height:48px;object-fit:contain}.welcome-brand>span>span{color:#285cf4}
.welcome-dialog h2{margin:8px 0 10px;font:800 clamp(28px,5vw,40px)/1.06 Manrope,sans-serif;letter-spacing:-.045em}.welcome-dialog>p{margin:0;color:var(--muted);font-size:16px;line-height:1.55}
.welcome-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0 16px}.welcome-option{display:flex;min-height:150px;padding:20px;flex-direction:column;align-items:flex-start;gap:8px;border-radius:16px;text-align:left;cursor:pointer}.welcome-option strong{font-size:17px}.welcome-option span{font-size:14px;line-height:1.45}
.primary-option{border:1px solid transparent;background:linear-gradient(135deg,#285cf4,#7148ed);color:#fff;box-shadow:0 14px 28px rgba(48,79,211,.22)}.primary-option span{color:#e9edff}.demo-option{border:1px solid #cfd9ef;background:#f7f9ff;color:var(--ink)}.demo-option span{color:var(--muted)}
.welcome-dialog .welcome-note{padding:13px 15px;border:1px solid #cfe0f5;border-radius:12px;background:#f2f7ff;color:#33476f;font-size:13px}.welcome-links{display:flex;justify-content:center;gap:18px;margin-top:20px}.welcome-links a{color:#42557b;font-size:13px;font-weight:700}
.auth-dialog { width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; background: #fff; }
.auth-layout { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 570px; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: 38px; background: radial-gradient(circle at 60% 18%, rgba(72, 220, 244, .23), transparent 30%), linear-gradient(145deg, #0c1838, #1b3470); color: #fff; }
.auth-brand img { width: 90px; height: 96px; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .24); }
.auth-brand > span { margin-top: 26px; color: #67deef; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.auth-brand h2 { margin: 10px 0; font: 800 29px/1.08 Manrope; letter-spacing: -.04em; }
.auth-brand p { margin: 0; color: #c7d2e9; font-size: 14px; line-height: 1.55; }
.auth-panel { padding: 32px; }
.auth-setup-note { margin-bottom: 17px; padding: 13px 15px; border: 1px solid #cbd8fb; border-radius: 12px; background: #f1f5ff; color: #213d85; }
.auth-setup-note.configured { border-color: #bde9d8; background: #effaf6; color: #096b4e; }
.auth-setup-note p { margin: 4px 0 0; color: inherit; font-size: 12px; line-height: 1.45; }
.google-button { width: 100%; min-height: 47px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.google-button span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 8px; border-radius: 50%; background: #f2f4f8; color: #285cf4; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-actions .secondary, .invite-form .secondary, #signOutButton { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.signed-in-user { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.signed-in-user strong, .signed-in-user small { display: block; }
.signed-in-user small { margin-top: 3px; color: var(--muted); }
.cloud-chip { padding: 5px 8px; border-radius: 99px; background: #def6e9; color: #087353; font-size: 10px; font-weight: 900; }
.profile-form { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.profile-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-form-head small, .profile-form-head strong { display: block; }
.profile-form-head small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.profile-form-head strong { margin-top: 3px; font-size: 13px; }
.profile-edit-button { min-height: 34px; padding: 0 14px; border: 1px solid #cbd7ff; border-radius: 8px; background: #f3f6ff; color: #285cf4; font-weight: 800; cursor: pointer; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.profile-fields label { margin: 0; }
.profile-actions { display: flex; justify-content: flex-end; gap: 8px; grid-column: 1 / -1; }
.profile-actions button { min-height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.profile-actions .secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.profile-actions .primary { width: auto; min-width: 140px; }
.household-card { margin: 13px 0; padding: 15px; border-radius: 13px; background: #f5f7fc; }
.household-card > div:first-child small, .household-card > div:first-child strong, .household-card > div:first-child span { display: block; }
.household-card > div:first-child small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.household-card > div:first-child strong { margin-top: 4px; }
.household-card > div:first-child span { color: var(--muted); font-size: 11px; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dce3f1; font-size: 12px; }
.member-row span { color: var(--muted); }
.invite-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.invite-form label { margin: 0; }
.invite-form .secondary { padding: 0 14px; }
.auth-message { min-height: 18px; margin: 12px 0 0; color: #b34038; font-size: 12px; }
.developer-preview-actions { margin: 13px 0; padding: 14px; border: 1px solid #cbd7ff; border-radius: 13px; background: #f3f6ff; }
.developer-preview-actions strong { display: block; color: #153371; }
.developer-preview-actions p { margin: 4px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.developer-preview-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.developer-preview-buttons button { min-height: 40px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.developer-preview-buttons .secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
@media (max-width: 620px) { .developer-preview-buttons { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .sync-status-button span, .auth-button-copy { display: none; }
  .premium-status>span:last-child { display: none; }
  .premium-status { min-width: 44px; width: 44px; justify-content: center; padding: 6px; }
  .premium-crown { width: 30px; height: 30px; }
  .sync-status-button, .auth-button { width: 44px; justify-content: center; padding: 6px; }
}
@media (max-width: 760px) {
  .welcome-dialog{padding:24px}.welcome-options{grid-template-columns:1fr}.welcome-option{min-height:auto}.welcome-links{flex-wrap:wrap}
  .sync-status-button { display: none; }
  .sync-health-grid { grid-template-columns: 1fr; }
  .usage-status-card { align-items: stretch; flex-direction: column; }
  .security-card { align-items: stretch; flex-direction: column; }
  .primary.compact { width: 100%; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 22px; }
  .profile-fields { grid-template-columns: 1fr; }
  .sync-log-row { grid-template-columns: 82px 1fr; }
  .sync-counts { grid-column: 2; }
}
