@import url('/site-ui.css?v=20261103-fun');

.savings-shell { padding-top: 32px; padding-bottom: 32px; }
.savings-topline, .savings-actions, .section-label, .spotlight-top, .spotlight-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.savings-topline .breadcrumbs { margin: 0; }
.quiet-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 10px 4px; font: inherit; font-size: .78rem; font-weight: 500; }
.quiet-button:hover { color: var(--accent); }
.quiet-button:focus-visible, .goal-selector:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.savings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 52px 0 44px; }
.savings-heading .eyebrow { font-size: .65rem; letter-spacing: .19em; }
.savings-heading h1 { margin: 12px 0 18px; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.08; }
.savings-heading h1 span { color: var(--accent); }
.savings-heading p { color: var(--muted); font-size: .88rem; line-height: 1.85; margin: 0; }
.heading-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; padding-bottom: 5px; font-size: .69rem; color: var(--muted); }
.public-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); background: #ffffff85; border-radius: 50px; font-size: .69rem; color: var(--ink); }
.public-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #398463; }
.savings-shell .button { min-height: 44px; padding: 11px 18px; font-size: .78rem; cursor: pointer; }
.section-label { margin-bottom: 18px; }
.section-label h2 { font-size: .9rem; font-weight: 500; margin: 0; letter-spacing: -.02em; }
.section-label h2 > span { margin-left: 7px; color: var(--muted); font-size: .7rem; }
.section-label > span { font-size: .67rem; color: var(--muted); }
.goal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }
.goal-selector { display: flex; align-items: center; gap: 13px; padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #ffffff80; text-align: left; cursor: pointer; color: var(--ink); transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.goal-selector[aria-pressed="true"] { border-color: var(--accent); background: #eeedff; box-shadow: 0 0 0 1px #5551ff15; }
.goal-selector:hover { background: white; border-color: rgba(85,81,255,.3); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,24,34,.06); }
.goal-selector:active { transform: translateY(0) scale(.99); }
.goal-symbol { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-soft); color: var(--accent); font-size: 1.25rem; }
.goal-selector-copy { flex: 1; min-width: 0; }
.goal-selector strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; font-weight: 500; }
.goal-selector small { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; }
.goal-selector > span:last-child { color: var(--muted); font-size: .72rem; }
.savings-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); gap: 22px; }
.goal-spotlight { position: relative; overflow: hidden; border-radius: 26px; padding: 30px; background: radial-gradient(ellipse at 100% 0%, #54458b85, transparent 65%), #20202f; color: #f9f8ff; box-shadow: 0 18px 45px #25213e16; }
.spotlight-label { color: #d0c8ed; font-size: .63rem; text-transform: uppercase; letter-spacing: .14em; }
.goal-status { border: 1px solid #c9f2df40; background: #c9f2df12; color: #ceefdf; border-radius: 40px; padding: 6px 11px; font-size: .62rem; white-space: nowrap; }
.goal-status.needs-attention, .goal-status.overdue { border-color: #e7c19640; color: #f1d4b5; background: #e7c19615; }
.spotlight-main { display: flex; align-items: center; gap: 24px; padding: 25px 0 30px; min-height: 255px; }
.goal-copy { flex: 1; min-width: 0; }
.goal-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -.045em; font-weight: 500; margin: 0 0 10px; overflow-wrap: anywhere; }
.goal-copy p { font-size: .75rem; color: #c2bfce; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.saved-label { margin-top: 25px; font-size: .64rem; color: #bbb7ca; }
.saved-amount { font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.4; letter-spacing: -.055em; overflow-wrap: anywhere; }
.target-caption { color: #bbb7ca; font-size: .72rem; }
.progress-ring { width: 157px; height: 157px; flex-shrink: 0; padding: 9px; border-radius: 50%; background: conic-gradient(from -90deg, #c9f2df var(--progress, 0%), #ffffff13 0); }
.progress-ring > div { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: #282536; box-shadow: 0 0 0 6px #282536 inset; }
.progress-ring strong { font-size: 2.1rem; line-height: 1.4; font-weight: 500; letter-spacing: -.05em; }
.progress-ring span { color: #c2bfce; font-size: .61rem; }
.spotlight-bottom { border-top: 1px solid #ffffff18; padding-top: 23px; flex-wrap: wrap; }
.spotlight-bottom > div > span { display: block; color: #bbb7ca; font-size: .61rem; margin-bottom: 5px; }
.spotlight-bottom strong { display: block; font-weight: 500; font-size: .79rem; }
.mint-button { background: #c9f2df; color: #19372d; border-color: #c9f2df; }
.savings-plan { padding: 27px; border: 1px solid var(--line); border-radius: 26px; background: #ffffffba; }
.savings-plan .section-label { margin-bottom: 28px; }
.plan-label { color: var(--muted); font-size: .67rem; margin: 0 0 5px; }
.plan-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-amount strong { font-size: 1.8rem; font-weight: 500; letter-spacing: -.06em; overflow-wrap: anywhere; }
.plan-amount span { color: var(--muted); font-size: .71rem; }
.plan-details { margin: 23px 0; }
.plan-details > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; font-size: .7rem; }
.plan-details dt { color: var(--muted); }
.plan-details dd { margin: 0; text-align: right; font-weight: 500; }
.plan-note { display: flex; gap: 9px; padding: 13px; border-radius: 12px; background: #efeee9; color: #4e5260; }
.note-dot { flex-shrink: 0; margin-top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan-note p { font-size: .66rem; line-height: 1.8; margin: 0; }
.plan-disclaimer { color: var(--muted); font-size: .61rem; line-height: 1.8; margin: 14px 0 0; }
.savings-journey { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #ffffff70; margin-top: 22px; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 25px; }
.milestone { min-width: 0; border-top: 3px solid #dddde1; padding-top: 12px; }
.milestone.reached { border-color: #6960d9; }
.milestone strong { display: block; font-weight: 500; font-size: .8rem; }
.milestone span { color: var(--muted); font-size: .64rem; overflow-wrap: anywhere; }
.milestone strong i { color: var(--accent); font-size: .65rem; margin-left: 4px; font-style: normal; }
.savings-history { padding: 32px 0 12px; }
.history-row { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.history-icon { width: 36px; height: 36px; border-radius: 50%; background: #e0ece2; color: #40704f; display: grid; place-items: center; flex-shrink: 0; }
.history-copy { flex: 1; min-width: 0; }
.history-copy strong { font-size: .76rem; font-weight: 500; display: block; overflow-wrap: anywhere; }
.history-copy small { font-size: .65rem; color: var(--muted); }
.history-amount { font-weight: 500; font-size: .8rem; text-align: right; }
.history-note { color: var(--muted); font-size: .65rem; margin: 20px 0; }
.history-empty { padding: 30px 0; color: var(--muted); font-size: .83rem; }
.savings-empty { border: 1px solid var(--line); border-radius: 26px; text-align: center; padding: 44px 24px; background: radial-gradient(ellipse at top, #e7e3ff70, transparent 65%), #ffffffa0; }
.savings-empty h2 { margin: 12px 0; font-size: 1.8rem; font-weight: 500; letter-spacing: -.05em; }
.savings-empty p:not(.eyebrow) { max-width: 440px; margin: 0 auto 22px; color: var(--muted); font-size: .82rem; }
.empty-symbol { position: relative; display: flex; flex-direction: column-reverse; align-items: center; width: 110px; height: 110px; margin: 0 auto 25px; }
.empty-symbol i { display: block; width: 84px; height: 20px; border-radius: 50%; background: #b9b5f2; border-bottom: 4px solid #928be1; margin-top: -5px; transform: rotate(-12deg); }
.empty-symbol i:nth-child(3) { width: 72px; background: #cbc7ff; }
.empty-symbol i:nth-child(4) { width: 60px; background: #dedbff; }
.empty-symbol > span { position: absolute; right: -3px; top: -4px; font-size: 3rem; color: var(--accent); }
.savings-dialog:not(.site-confirm-dialog) { width: min(540px, calc(100% - 32px)); }
.savings-dialog.goal-dialog { width: min(720px, calc(100% - 32px)); }
.savings-dialog .site-dialog-body > p { font-size: .78rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 22px; }
.full-field { grid-column: 1 / -1; }
.savings-dialog label { display: block; color: var(--ink); font-size: .82rem; font-weight: 400; }
.savings-dialog input, .savings-dialog select, .savings-dialog textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; font: inherit; font-size: .86rem; color: var(--ink); background: rgba(255,255,255,.7); transition: border-color 160ms ease, box-shadow 160ms ease; }
.savings-dialog textarea { resize: vertical; }
.savings-dialog input:focus, .savings-dialog textarea:focus, .savings-dialog select:focus { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }
.savings-dialog label small { display: block; font-size: .6rem; line-height: 1.6; color: var(--muted); margin-top: 5px; font-weight: 400; }
.dialog-actions .danger { margin-right: auto; }
.danger { color: #a23d37; }
.plan-preview { border-radius: 12px; padding: 13px 15px; background: #eeedff; color: #454184; margin-top: 22px; font-size: .76rem; }
.savings-dialog .form-note { font-size: .66rem; }
.savings-dialog button:disabled, .savings-shell button:disabled { opacity: .5; cursor: wait; }
.tools-feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 40px; background: #ffffffa0; border: 1px solid var(--line); border-radius: 26px; text-decoration: none; margin: 16px 0 70px; transition: border-color 180ms; }
.tools-feature:hover { border-color: var(--accent); }
.tools-feature h2 { font-size: 2.2rem; letter-spacing: -.05em; font-weight: 500; margin: 12px 0; }
.tools-feature p { color: var(--muted); max-width: 430px; font-size: .88rem; }
.tools-feature .card-link { margin-top: 24px; }
.tool-preview { padding: 30px; border-radius: 21px; background: #252334; color: #fafaff; transform: rotate(-2deg); box-shadow: 0 14px 35px #25233420; }
.tool-preview .preview-lines { display: flex; gap: 9px; align-items: flex-end; height: 100px; padding: 18px 0; }
.preview-lines span { flex: 1; background: #c9f2df; border-radius: 5px; height: 25%; }
.preview-lines span:nth-child(2) { height: 42%; }.preview-lines span:nth-child(3) { height: 58%; }.preview-lines span:nth-child(4) { height: 73%; }.preview-lines span:nth-child(5) { height: 90%; }
.tool-preview > span { font-size: .62rem; color: #cbc5e6; letter-spacing: .13em; text-transform: uppercase; }
.tool-preview strong { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
.tool-preview small { color: #cbc5e6; font-size: .7rem; }
.savings-shell [hidden], .savings-dialog [hidden] { display: none !important; }
@media (max-width: 1000px) { .savings-grid { grid-template-columns: minmax(0, 1fr); }.savings-plan { display: grid; grid-template-columns: 1fr 1fr; column-gap: 35px; }.savings-plan .section-label { grid-column: 1 / -1; margin-bottom: 12px; }.plan-details { grid-column: 2; grid-row: 2 / 5; margin: 0; }.plan-note { margin-top: 15px; }.plan-disclaimer { grid-column: 2; }.savings-plan > .quiet-button { text-align: left; }.goal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .savings-shell { width: calc(100% - 32px); padding-top: 24px; }.savings-heading { align-items: flex-start; flex-direction: column; padding: 34px 0; gap: 24px; }.heading-aside { align-items: flex-start; }.savings-heading h1 { font-size: 2.8rem; }.savings-heading p br { display: none; }.savings-actions { gap: 12px; }.section-label > span { display: none; }.goal-list { display: flex; overflow-x: auto; padding: 3px 3px 12px; margin-inline: -3px; scroll-snap-type: x mandatory; }.goal-selector { min-width: 230px; scroll-snap-align: start; }.goal-spotlight { padding: 24px; }.spotlight-main { flex-wrap: wrap; gap: 20px; padding-top: 25px; }.progress-ring { width: 112px; height: 112px; padding: 7px; }.progress-ring strong { font-size: 1.65rem; }.progress-ring span { font-size: .55rem; }.goal-copy { min-width: 140px; }.saved-amount { font-size: 1.9rem; }.spotlight-bottom { gap: 20px; }.savings-plan { display: block; padding: 24px; }.savings-plan .section-label { margin-bottom: 20px; }.plan-details { margin: 20px 0; }.savings-journey { padding: 24px; }.milestones { gap: 10px; }.milestone span { font-size: .58rem; }.history-row { gap: 10px; flex-wrap: wrap; }.history-amount { font-size: .74rem; }.form-grid { gap: 15px; }.dialog-actions { flex-wrap: wrap; }.tools-feature { padding: 25px; grid-template-columns: 1fr; }.tool-preview { margin: 10px; }.savings-heading h1 { overflow-wrap: anywhere; } }
@media (max-width: 380px) { .form-grid { grid-template-columns: 1fr; }.progress-ring { width: 94px; height: 94px; }.goal-spotlight { padding: 20px; }.spotlight-main { gap: 12px; }.goal-copy { min-width: 125px; }.saved-amount { font-size: 1.65rem; }.savings-heading h1 { font-size: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .goal-selector, .tools-feature, .savings-shell section { animation: none !important; transition: none !important; } }

.savings-dialog .site-dialog-body > p:first-child { margin-top: 0; }
.savings-dialog .site-dialog-footer { justify-content: flex-end; }
.savings-dialog .site-dialog-footer .danger { margin-right: auto; }
.savings-dialog input[aria-invalid="true"] { border-color: #a54c49; outline-color: #f6d8d6; }
.savings-shell > section, .goal-spotlight, .savings-plan, .savings-journey, .savings-history { animation: site-card-enter 420ms cubic-bezier(.22,1,.36,1) both; }
.site-loading-screen[popover] { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; }
