/* Onboarding (Oct 2026): welcome card, 4-step tour, one-time tips. House style: navy, gold, Public Sans, line icons. */
.ez-svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Welcome card (homepage, first visit) */
.ez-welcome { position: relative; background: #fff; border: 1px solid #d2d8df; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; display: grid; gap: 12px; color: #15202c; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ez-welcome-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a7412; }
.ez-welcome h2 { font-size: 22px; line-height: 1.2; font-weight: 800; color: #1e3a5f; margin: 0; padding-right: 36px; text-wrap: balance; }
.ez-welcome p { margin: 0; color: #566271; max-width: 62ch; line-height: 1.5; }
.ez-starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ez-start { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; text-align: left; padding: 12px 14px; border: 1px solid #d2d8df; border-radius: 10px; background: #f3f5f7; color: #15202c; cursor: pointer; font: inherit; }
.ez-start:hover { border-color: #1e3a5f; }
.ez-start .ez-svg { color: #1e3a5f; margin-top: 2px; grid-row: span 2; }
.ez-start b { font-size: 15px; }
.ez-start small { font-size: 13px; color: #566271; }
.ez-welcome-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.ez-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #566271; cursor: pointer; }
.ez-x:hover { background: #eef0f3; }

/* Buttons */
.ez-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 700; font-size: 15px; padding: 9px 15px; border-radius: 8px; border: 1px solid #d2d8df; background: #fff; color: #15202c; cursor: pointer; text-decoration: none; }
.ez-btn.primary { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.ez-btn.primary:hover { background: #2c5687; }
.ez-btn.quiet { border-color: transparent; background: none; color: #1e3a5f; padding-inline: 6px; }
.ez-btn.small { font-size: 13px; padding: 6px 11px; }
.ez-welcome :focus-visible, .ez-coach :focus-visible, .ez-tip :focus-visible { outline: 3px solid #d8a62a; outline-offset: 2px; }

/* Tour: ring + scrim drawn on a fixed layer, so it works inside sticky headers and scroll containers */
.ez-ring { position: fixed; z-index: 9998; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 4px #d8a62a, 0 0 0 9999px rgba(21, 32, 44, .55); transition: top .2s, left .2s, width .2s, height .2s; }
.ez-flash { position: fixed; z-index: 9998; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 4px #d8a62a; animation: ez-flash 1.4s ease-out forwards; }
@keyframes ez-flash { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.ez-coach { position: fixed; z-index: 9999; width: min(360px, calc(100vw - 32px)); background: #fff; color: #15202c; border: 1px solid #d2d8df; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); padding: 14px 18px 16px; display: grid; gap: 10px; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ez-coach h3 { font-size: 18px; line-height: 1.25; color: #1e3a5f; margin: 0; }
.ez-coach p { font-size: 15px; line-height: 1.5; margin: 0; }
.ez-coach-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ez-coach .ez-x { position: static; }
.ez-coach [hidden] { display: none !important; }
.ez-count { font-size: 12px; font-weight: 700; color: #566271; letter-spacing: .04em; }
.ez-dots { display: flex; gap: 6px; }
.ez-dots i { width: 8px; height: 8px; border-radius: 99px; background: #d2d8df; }
.ez-dots i.on { background: #d8a62a; width: 20px; }
.ez-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ez-pill { font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.ez-pill.s { background: #e2f1e8; color: #1d7447; }
.ez-pill.o { background: #fbe6e3; color: #b3261e; }
@media (max-width: 640px) {
  .ez-coach { left: 16px !important; right: 16px; width: auto; top: auto !important; bottom: 16px; }
  .ez-coach.dock-top { top: 16px !important; bottom: auto; }
}

/* One-time tips */
.ez-tip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; background: #fbf3df; border: 1px solid #d8a62a; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #15202c; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ez-tip .ez-svg { color: #9a7412; margin-top: 2px; }
.ez-tip b { display: block; }
.ez-toast { position: fixed; z-index: 9997; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.ez-hint { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { .ez-ring { transition: none; } .ez-flash { animation: none; opacity: 0; } }

/* Bills could not load (year_loader.js showError, index.html spinner safety net) */
.bb-load-error { max-width: 520px; margin: 32px auto; padding: 24px; background: #fff; border: 1px solid #d2d8df; border-radius: 10px; text-align: left; color: #15202c; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.bb-load-error .bb-load-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6410; }
.bb-load-error h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 800; color: #1e3a5f; }
.bb-load-error p { margin: 0 0 16px; color: #566271; line-height: 1.5; }
.bb-load-error :focus-visible { outline: 3px solid #d8a62a; outline-offset: 2px; }
