@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2");
}

/* Canonical design tokens. Loaded first on every page so page-level :root
   blocks only need to match these values, never invent new ones. */
:root {
  --bg: #0f172a;
  --card-bg: rgba(30, 41, 59, .55);
  --surface: rgba(30, 41, 59, .55);
  --card-border: rgba(255, 255, 255, .1);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  /* Card radius ramp: large containers / standard cards / inner tiles */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  /* Canonical primary-button spec */
  --btn-radius: 10px;
  --btn-height: 44px;
  --btn-weight: 700;
}

html { color-scheme: dark; }

/* Single shared page background: one solid base + one ambient glow on every
   page, so all surfaces match. Delivered via body::before so no page needs its
   own glow element. (.ambient-glow divs left in some pages are now inert.) */
body { background: var(--bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 600px at 50% -60px, rgba(59,130,246,.12), transparent 70%);
}
/* Background themes, chosen in Account settings (html[data-bg=...] set from
   localStorage 'ss_bg_pref' on every page). Default (ocean) uses the rule above. */
html[data-bg="aurora"] body::before { background: radial-gradient(560px 520px at 15% -40px, rgba(37,99,235,.17), transparent 60%), radial-gradient(520px 480px at 90% 0, rgba(14,165,233,.12), transparent 60%); }
html[data-bg="emerald"] body::before { background: radial-gradient(620px 600px at 50% -60px, rgba(16,185,129,.14), transparent 68%); }
html[data-bg="violet"] body::before { background: radial-gradient(620px 560px at 25% -50px, rgba(139,92,246,.16), transparent 64%), radial-gradient(520px 480px at 88% 4%, rgba(59,130,246,.10), transparent 62%); }
html[data-bg="sunset"] body::before { background: radial-gradient(620px 560px at 18% -50px, rgba(244,114,182,.13), transparent 62%), radial-gradient(560px 520px at 92% 0, rgba(251,146,60,.10), transparent 60%); }
html[data-bg="flat"] body::before { background: none; }
body, button, input, select, textarea { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:focus-visible { outline: 3px solid rgba(96, 165, 250, .72); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Shared public navigation and footer. Keep these rules here so every public
   surface presents the same product chrome, even when a page owns its layout. */
.public-header {
  width: 100%; min-height: 80px; padding: 10px 0 0; display: flex;
  align-items: center; justify-content: space-between; gap: 24px;
}
.public-brand {
  display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto;
  color: #f1f5f9 !important; text-decoration: none !important;
  font-size: 20px; font-weight: 800; letter-spacing: -.5px;
}
.public-brand { gap: 12px !important; font-size: 20px !important; }
.public-brand svg { width: 28px !important; height: 28px !important; flex: 0 0 auto; }
.public-brand-mode {
  margin-left: 1px; padding-left: 12px; border-left: 1px solid rgba(148,163,184,.3);
  color: #93c5fd; font-size: 12px; font-weight: 750; letter-spacing: 0;
}
.public-nav { position:relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px !important; }
.public-nav-link {
  min-height: 38px !important; padding: 8px 20px !important; border: 0 !important; border-radius: 99px !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent !important; box-shadow: none !important;
  color: #94a3b8 !important; text-decoration: none !important;
  font-size: 13px !important; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.public-nav-link:hover { color: #fff !important; background: rgba(255,255,255,.055) !important; }
.public-nav-link.is-active { color:#fff !important; background:rgba(59,130,246,.13) !important; }
.public-nav-link.primary {
  padding-inline: 20px; background: #3b82f6 !important; color: #fff !important;
  box-shadow: 0 4px 12px rgba(59,130,246,.3) !important;
}
.public-nav-link.primary:hover { background: #2563eb !important; transform: translateY(-1px); }
.public-account-menu-wrap { position:relative; flex:0 0 auto; }
.public-nav-link.public-account-control { position: relative; }
.public-nav-link.public-account-control::after { content: none; }
.public-account-menu { position:absolute; top:calc(100% + 8px); right:0; z-index:100; width:220px; padding:7px; border:1px solid rgba(148,163,184,.25); border-radius:12px; background:#172033; box-shadow:0 18px 48px rgba(0,0,0,.46); }
.public-account-menu a,.public-account-menu button { width:100%; min-height:42px; padding:9px 11px; border:0; border-radius:8px; display:flex; align-items:center; gap:10px; background:transparent; color:#dbeafe; font-size:12px; font-weight:700; text-align:left; text-decoration:none; cursor:pointer; }
.public-account-menu a svg,.public-account-menu button svg { width:18px; height:18px; flex:0 0 auto; color:#93c5fd; }
.public-account-menu a span,.public-account-menu button span { min-width:0; }
.public-account-menu-separator { display:block; height:1px; margin:5px 7px; background:rgba(148,163,184,.18); }
.public-account-menu a:hover,.public-account-menu button:hover,.public-account-menu a:focus-visible,.public-account-menu button:focus-visible { background:rgba(59,130,246,.14); color:#fff; outline:none; }
.public-account-menu button { color:#fda4af; }
.public-account-menu button svg { color:#fb7185; }
.public-account-menu button:disabled { opacity:.65; cursor:wait; }
/* Notification center (bell + dropdown), injected by notifications.js */
.public-notif-wrap { position:relative; flex:0 0 auto; }
.public-notif-btn { position:relative; min-height:38px !important; padding:8px 10px !important; cursor:pointer; }
.public-notif-btn svg { width:20px; height:20px; }
.public-notif-badge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; border-radius:99px; background:#ef4444; color:#fff; font-size:10px; font-weight:800; line-height:1; }
.public-notif-panel { position:absolute; top:calc(100% + 8px); right:0; z-index:110; width:min(340px,calc(100vw - 28px)); max-height:min(460px,70vh); overflow-y:auto; padding:7px; border:1px solid rgba(148,163,184,.25); border-radius:12px; background:#172033; box-shadow:0 18px 48px rgba(0,0,0,.46); }
.public-notif-head { padding:8px 9px 6px; color:#f1f5f9; font-size:13px; font-weight:800; }
.public-notif-list { display:flex; flex-direction:column; gap:2px; }
.public-notif-item { position:relative; display:flex; gap:10px; align-items:flex-start; padding:9px 26px 9px 9px; border-radius:9px; color:#dbeafe; text-decoration:none; }
.public-notif-item:hover,.public-notif-item:focus-visible { background:rgba(59,130,246,.14); color:#fff; outline:none; }
.public-notif-item.is-unread { background:rgba(59,130,246,.08); }
.public-notif-item.is-unread::after { content:""; position:absolute; top:13px; right:10px; width:7px; height:7px; border-radius:50%; background:#38bdf8; }
.public-notif-avatar,.public-notif-typeicon { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; overflow:hidden; background:#334155; color:#fff; font-size:12px; font-weight:800; border-radius:50%; }
.public-notif-avatar img { width:100%; height:100%; object-fit:cover; }
.public-notif-typeicon { border-radius:9px; background:rgba(59,130,246,.14); color:#93c5fd; }
.public-notif-typeicon svg { width:18px; height:18px; }
.public-notif-typeicon.badge { background:rgba(251,191,36,.14); color:#fcd34d; }
.public-notif-typeicon.upcoming { background:rgba(52,211,153,.14); color:#6ee7b7; }
.public-notif-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.public-notif-text { color:#e2e8f0; font-size:12.5px; line-height:1.4; }
.public-notif-copy small { color:#8195ad; font-size:10.5px; }
.public-notif-empty { padding:22px 14px; color:#8195ad; font-size:12px; line-height:1.55; text-align:center; }
.public-primary-menu-toggle { display:none; min-height:38px; padding:8px 14px; border:1px solid rgba(148,163,184,.22); border-radius:99px; background:rgba(255,255,255,.045); color:#dbeafe; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.public-primary-menu { position:absolute; top:calc(100% + 9px); right:0; z-index:110; width:min(230px,calc(100vw - 28px)); padding:7px; border:1px solid rgba(148,163,184,.25); border-radius:14px; background:#172033; box-shadow:0 20px 55px rgba(0,0,0,.5); }
.public-primary-menu[hidden] { display:none; }
.public-primary-menu a { min-height:43px; padding:10px 12px; border-radius:9px; display:flex; align-items:center; color:#dbeafe; font-size:13px; font-weight:700; text-decoration:none; }
.public-primary-menu a:hover,.public-primary-menu a:focus-visible,.public-primary-menu a.is-active { background:rgba(59,130,246,.14); color:#fff; outline:none; }
.password-input-wrap { position:relative; display:block; width:100%; }
.password-input-wrap > input { padding-right:44px !important; }
.password-visibility-toggle { position:absolute !important; top:50%; right:5px; z-index:2; width:34px !important; min-width:34px !important; height:34px !important; min-height:34px !important; margin:0 !important; padding:7px !important; border:0 !important; border-radius:8px !important; display:grid !important; place-items:center; transform:translateY(-50%); background:transparent !important; box-shadow:none !important; color:#8fa2ba !important; cursor:pointer; }
.password-visibility-toggle:hover,.password-visibility-toggle:focus-visible { background:rgba(148,163,184,.1) !important; color:#dbeafe !important; outline:none; }
.password-visibility-toggle svg { width:18px; height:18px; }
.password-visibility-toggle .password-eye-closed { display:none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye-open { display:none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye-closed { display:block; }
.public-account-avatar {
  width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center;
  flex: 0 0 24px; overflow: hidden; object-fit: cover; background: #334155; color: #fff; font-size: 11px; font-weight: 800;
}
.public-account-avatar img { display:block; width:100% !important; height:100% !important; max-width:100%; border-radius:50%; object-fit:cover; }
.public-nav-link.is-signed-in .public-account-avatar { display: grid; }
.public-account-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.public-footer {
  width: 100%; margin-top: auto; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.12);
  color: #94a3b8; text-align: center; font-size: 13px;
}
.public-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-bottom: 12px; }
.public-footer a { color: #94a3b8; text-decoration: none; }
.public-footer a:hover { color: #fff; }

/* Reusable, in-page account prompt used by Planner and Explorer. */
.account-prompt { border: 1px solid rgba(148,163,184,.25); border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 28px)); background: #111c31; color: #f1f5f9; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.account-prompt::backdrop { background: rgba(2,6,23,.72); backdrop-filter: blur(5px); }
.account-prompt-card { padding: 24px; }
.account-prompt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-prompt h2 { margin: 0 0 8px; font-size: 23px; }
.account-prompt p { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.55; }
.account-prompt-close { border: 0; background: transparent; color: #94a3b8; font-size: 25px; line-height: 1; cursor: pointer; }
.account-prompt-google, .account-prompt-submit { width: 100%; min-height: var(--btn-height); border: 0; border-radius: var(--btn-radius); font-weight: var(--btn-weight); cursor: pointer; }
.account-prompt-google { margin-top: 20px; background: #fff; color: #172033; }
.account-prompt-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: #64748b; font-size: 12px; }
.account-prompt-divider::before, .account-prompt-divider::after { content: ''; height: 1px; flex: 1; background: rgba(148,163,184,.2); }
.account-prompt-form { display: grid; gap: 11px; }
.account-prompt-form label { display: grid; gap: 5px; color: #cbd5e1; font-size: 12px; font-weight: 700; }
.account-prompt-form input { width: 100%; border: 1px solid rgba(148,163,184,.26); border-radius: 10px; background: #0b1425; color: #fff; padding: 11px 12px; font-size: 14px; }
.account-prompt-submit { margin-top: 3px; background: #3b82f6; color: #fff; }
.account-prompt-status { min-height: 19px; margin-top: 10px; color: #fca5a5; font-size: 12px; }
.account-prompt-more { margin-top: 8px !important; font-size: 12px !important; text-align: center; }
.account-prompt-more a { color: #93c5fd; }

@media (max-width: 760px) {
  .public-header { min-height: 68px; gap: 10px; }
  .public-brand > span { display: none; }
  .public-nav { gap: 1px !important; min-width: 0; }
  .public-nav-link { min-height: 36px !important; padding: 7px 9px !important; font-size: 12px !important; }
  .public-nav-link.primary { padding-inline: 12px !important; }
  .public-account-label { max-width: 78px; }
}
@media (max-width: 470px) {
  .public-nav > .public-nav-link:not(.public-account-control) { display:none !important; }
  .public-primary-menu-toggle { display:inline-flex; align-items:center; justify-content:center; }
  .public-account-label { max-width: 68px; }
}
