:root {
    color-scheme: light;
    --bg: #fff;
    --fg: #111;
    --muted: #6d6d6d;
    --line: #e7e7e7;
    --line-strong: #d4d4d4;
    --on-muted: #d6d6d6;
    --now: #fce45c;
    --now-soft: #fcf4ac;
    --hover-solid: #2b2b2b;
    --lede: #3d3d3d;
    --goal-line: #efefef;
    --add: #8a8a8a;
    --placeholder: #b0b0b0;
    --track: #ececec;
    --seg-track: #e6e6ea;
    --seg-thumb: #fff;
    --seg-shadow: 0 1px 1px rgba(17, 17, 17, 0.05), 0 3px 8px rgba(17, 17, 17, 0.12);
    --knob: #161616;
    --knob-icon: #fff;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #181818;
    --panel: #141414;
    --fg: #f0f0f0;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --on-muted: #6a6a6a;
    --now: #f1b467;
    --now-soft: #3a2a16;
    --hover-solid: #87a6c4;
    --lede: #d6d6d6;
    --goal-line: #242424;
    --add: #8a8a8a;
    --placeholder: #8e8e8e;
    --track: #262626;
    --seg-track: #141414;
    --seg-thumb: #343434;
    --seg-shadow: 0 1px 1px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.45);
    --knob: #f0f0f0;
    --knob-icon: #141414;
    --accent: #81a1c1;
    --accent-ink: #191c22;
    --danger: #e34671;
    --ok: #3fa266;
    scrollbar-color: #3a3a3a #141414;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    transition: background-color 0.35s ease, color 0.35s ease;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
}

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 981px) {
    .app-main {
        margin-left: 248px;
        transition: margin-left 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    }

    html[data-nav="closed"] .app-main {
        margin-left: 0;
        transition: margin-left 0.26s cubic-bezier(0.4, 0, 1, 1);
    }
}

.drawer {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 248px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--fg) 3.5%, var(--bg));
    position: fixed;
    z-index: 25;
    left: 0;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 1px 0 0 var(--line), 18px 0 48px rgba(0, 0, 0, 0.06);
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition:
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.34s ease,
        visibility 0s;
}

html[data-nav="closed"] .drawer {
    transform: translate3d(-100%, 0, 0);
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.26s cubic-bezier(0.4, 0, 1, 1),
        box-shadow 0.2s ease,
        visibility 0s linear 0.26s;
}

.drawer-inner {
    width: 248px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 14px 12px 12px;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 44px;
    margin-bottom: 14px;
}

.drawer-top:has(.guest-join) { align-items: flex-start; }

.drawer-top > .nav-toggle { order: 1; }
.drawer-top > .play-leave { order: 2; }

.drawer-top:has(.guest-join) > .nav-toggle { margin-top: 2px; }

.who {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.who-open {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    height: 40px;
    padding: 0 6px 0 2px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    cursor: pointer;
}

.who-open:hover,
.who-open[aria-expanded="true"] { background: var(--track); }

.who-face {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fg);
    color: var(--bg);
    font-size: 12px;
    font-weight: 650;
    flex: none;
    object-fit: cover;
}

.who-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 650;
}

.who-open svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.who-pop {
    position: absolute;
    z-index: 6;
    top: calc(100% + 6px);
    left: 0;
    width: 210px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
}

.who-pop p {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

.who-mail {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 450;
    overflow-wrap: anywhere;
}

.who-pop a {
    display: inline-block;
    margin-top: 10px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
}

.who-guest {
    height: 40px;
    padding: 0 6px 0 2px;
    gap: 8px;
}

.who-guest .who-face {
    background: var(--track);
    color: var(--fg);
}

.who-guest .who-face svg {
    width: 16px;
    height: 16px;
}

.guest-join {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    flex: 1 0 100%;
    margin-top: 8px;
    padding: 3px;
    border-radius: 999px;
    background: var(--track);
}

.guest-join a {
    display: grid;
    place-items: center;
    min-height: 32px;
    border-radius: 999px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.guest-join a:hover { background: var(--bg); }

.guest-join .guest-up {
    background: var(--fg);
    color: var(--bg);
}

.guest-join .guest-up:hover { background: var(--hover-solid); }

.year-edge-head > .nav-toggle {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-nav="closed"] .year-edge-head > .nav-toggle {
    opacity: 1;
    pointer-events: auto;
}

.drawer-help {
    position: relative;
    flex: none;
    width: 248px;
    padding: 6px 10px 14px;
}

.drawer-spacer { flex: 1 1 auto; }

.account { position: relative; }

.account-open {
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 12px;
}

.account-open .who-face,
.account-head .who-face {
    background: #1f9d7a;
    color: #fff;
}

.account-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

.account-id strong,
.account-open .who-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
}

.account-id span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-pop {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    max-height: min(520px, calc(100vh - 96px));
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.16);
}

.account-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.account-head:hover,
.account-head[aria-expanded="true"] { background: var(--track); }

.account-head svg,
.account-go {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--muted);
}

.account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-item:hover,
.account-item[aria-expanded="true"] { background: var(--track); }

.account-fly {
    position: fixed;
    z-index: 80;
    width: 240px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.16);
}

.account-id-pop { width: 260px; }

.account-id-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
}

.account-id-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.account-id-card strong {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.theme-pop {
    width: 292px;
    padding: 14px 12px 12px;
}

.theme-pop-title {
    margin: 2px 6px 0;
    font-size: 14px;
    font-weight: 650;
}

.theme-pop-note {
    margin: 2px 6px 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.theme-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-choice:hover { background: var(--track); }

.theme-choice.is-on {
    border-color: var(--fg);
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--fg);
}

.theme-stage {
    display: grid;
    grid-template-columns: 22px 1fr;
    height: 76px;
    overflow: hidden;
    border-radius: 9px;
}

.theme-stage.is-light {
    background: #f4f4f2;
    box-shadow: inset 0 0 0 1px #e6e6e6;
}

.theme-stage.is-dark {
    background: #181818;
    box-shadow: inset 0 0 0 1px #2a2a2a;
}

.theme-rail {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.theme-stage.is-light .theme-rail { background: #fff; box-shadow: inset -1px 0 #ececec; }

.theme-stage.is-dark .theme-rail { background: #141414; }

.theme-rail i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.theme-stage.is-light .theme-rail i { background: #111; }

.theme-stage.is-dark .theme-rail i { background: #f5f5f5; }

.theme-sheet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 9px;
}

.theme-sheet > span {
    display: block;
    height: 5px;
    border-radius: 99px;
}

.theme-stage.is-light .theme-sheet > span { background: #dedede; }

.theme-stage.is-light .theme-sheet > span:first-child {
    width: 72%;
    background: #161616;
}

.theme-stage.is-dark .theme-sheet > span { background: #2c2c2c; }

.theme-stage.is-dark .theme-sheet > span:first-child {
    width: 72%;
    background: #f3f3f3;
}

.theme-sheet .is-short { width: 48%; }

.theme-choice-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 1px;
    font-size: 13px;
    font-weight: 650;
}

.theme-check {
    width: 14px;
    height: 14px;
    opacity: 0;
}

.theme-choice.is-on .theme-check { opacity: 1; }

.account-item svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.account-item span { flex: 1 1 auto; min-width: 0; }

.account-rule {
    height: 1px;
    margin: 6px 8px;
    background: var(--line);
}

.account-key {
    flex: none;
    color: var(--muted);
    font-size: 13px;
}

.account-keys {
    margin: 0 8px 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-keys p { margin: 0; }

.help-open {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.help-open svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.help-open:hover,
.help-open[aria-expanded="true"] { background: var(--track); }

.help-pop {
    position: absolute;
    z-index: 40;
    left: 8px;
    right: 8px;
    bottom: calc(100% - 4px);
    max-height: min(560px, calc(100vh - 72px));
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.14);
}

.help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.help-item:hover { background: var(--track); }

.help-item svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--muted);
}

.help-item span {
    flex: 1 1 auto;
    min-width: 0;
}

.help-go,
.help-mark { margin-left: auto; }

.help-rule {
    height: 1px;
    margin: 6px 6px;
    background: var(--line);
}

.help-detail { padding: 6px 8px 10px; }

.help-back {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.help-back:hover { color: var(--fg); }

.help-detail h2 {
    margin: 10px 0 6px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.help-detail p {
    margin: 0;
    color: var(--lede);
    font-size: 13px;
    line-height: 1.45;
}

.help-keys {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.help-keys li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.help-keys kbd {
    flex: none;
    padding: 1px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--track);
    font-family: inherit;
    font-size: 12px;
}

.drawer-label {
    margin: 18px 10px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-label:first-child { margin-top: 6px; }

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
    text-align: left;
    text-decoration: none;
    font-size: 14px;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.nav-link:hover { background: var(--track); }

.nav-link.is-current {
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
}

.nav-backdrop {
    display: none;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    flex: none;
}

.nav-toggle:hover { border-color: var(--fg); }

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--fg);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}

html:not([data-nav="closed"]) .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

html:not([data-nav="closed"]) .nav-toggle span:nth-child(2) { opacity: 0; }

html:not([data-nav="closed"]) .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.top {
    position: relative;
    z-index: 20;
    display: block;
    padding: 10px 22px 14px;
    background: var(--bg);
    border: 0;
    box-shadow: none;
}

.top-chrome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.brand {
    display: inline-block;
    min-width: 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    flex: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.brand-edit svg { width: 13px; height: 13px; }
.brand-edit:hover { color: var(--fg); background: var(--track); }

.brand-input {
    width: min(280px, 46vw);
    margin: 0;
    padding: 0 0 1px;
    border: 0;
    border-bottom: 1px solid var(--fg);
    border-radius: 0;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    outline: none;
}

.date-line {
    margin: 0;
    color: var(--fg);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.top-tools {
    display: flex;
    align-items: center;
    flex: none;
}

.year-edge {
    position: sticky;
    top: 0;
    z-index: 21;
    margin: 0;
    padding: 10px 22px 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 6%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 4%, transparent);
}

.year-edge-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    min-width: 0;
}

.year-edge-copy {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.year-edge-side {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.year-edge-side strong {
    flex: none;
    color: var(--fg);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.year-edge-side span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: -0.011em;
    line-height: 1.2;
}

.year-edge-side.is-right {
    justify-content: flex-end;
    text-align: right;
}

.year-edge-side.is-right strong {
    font-size: 15px;
    letter-spacing: -0.03em;
}

.year-edge-side b {
    color: var(--fg);
    font-weight: 650;
}

.year-edge-track {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--fg) 10%, var(--bg));
}

.year-edge-spent {
    flex: 0 0 var(--year-pct);
    border-radius: 999px;
    background: color-mix(in srgb, var(--fg) 28%, var(--bg));
    transform-origin: left center;
    animation: year-grow 1.1s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.year-edge-left {
    flex: 1 1 auto;
    background: transparent;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    padding: 22px 32px 56px;
}

@media (min-width: 981px) {
    .layout,
    .habit-page,
    .project-page,
    .cal-page {
        width: min(1280px, 100%);
        margin-inline: auto;
        padding-left: 40px;
        padding-right: 40px;
    }
}

.planner-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.planner-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    flex-wrap: wrap;
}

.planner-title h1 { white-space: nowrap; }

.planner-title .ghost { min-height: 32px; }

.planner-head h1,
.side h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 460px;
    flex-wrap: wrap;
}

.range {
    margin: 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.pager {
    display: flex;
    border: 1px solid var(--fg);
}

.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-left: 1px solid var(--fg);
    color: var(--fg);
    text-decoration: none;
}

.pager a:first-child { border-left: 0; }

.pager a:hover {
    background: var(--fg);
    color: var(--bg);
}

.seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: none;
    width: 208px;
    min-height: 48px;
    padding: 4px;
    border-radius: 14px;
    background: var(--seg-track);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.seg-thumb {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 11px;
    background: var(--seg-thumb);
    box-shadow: var(--seg-shadow);
    transform: translateX(0);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.seg[data-on="week"] .seg-thumb {
    transform: translateX(100%);
}

.seg a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.22s ease;
}

.seg a.on,
.seg a:hover {
    color: var(--fg);
    background: transparent;
}

.seg a:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: -2px;
}

.planner.is-leaving[data-leave="week"] .strip-row,
.planner.is-leaving[data-leave="week"] .grid-wrap,
.planner.is-leaving[data-leave="week"] .day-board {
    animation: view-out-left 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.planner.is-leaving[data-leave="day"] .strip-row,
.planner.is-leaving[data-leave="day"] .grid-wrap,
.planner.is-leaving[data-leave="day"] .day-board {
    animation: view-out-right 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

html.view-enter[data-view-from="day"] .strip-row,
html.view-enter[data-view-from="day"] .grid-wrap,
html.view-enter[data-view-from="day"] .day-board {
    animation: view-in-right 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}

html.view-enter[data-view-from="week"] .strip-row,
html.view-enter[data-view-from="week"] .grid-wrap,
html.view-enter[data-view-from="week"] .day-board {
    animation: view-in-left 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes view-out-left {
    to { opacity: 0; transform: translateX(-16px); }
}

@keyframes view-out-right {
    to { opacity: 0; transform: translateX(16px); }
}

@keyframes view-in-right {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes view-in-left {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .seg-thumb { transition: none; }

    .planner.is-leaving .strip-row,
    .planner.is-leaving .grid-wrap,
    .planner.is-leaving .day-board,
    html.view-enter .strip-row,
    html.view-enter .grid-wrap,
    html.view-enter .day-board {
        animation: none;
    }
}

.strip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
    padding: 7px 8px 6px;
    border: 1px solid var(--line-strong);
    color: var(--fg);
    text-decoration: none;
}

.pill span {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.pill strong {
    font-size: 16px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.pill.is-today:not(.is-on) strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pill.is-on {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

.pill.is-on span { color: var(--on-muted); }

.ghost {
    border: 1px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    min-height: 36px;
    padding: 0 12px;
}

.ghost:hover {
    background: var(--fg);
    color: var(--bg);
}

.grid-wrap { overflow-x: auto; }

.week {
    width: 100%;
    min-width: 820px;
    border: 1px solid var(--line);
    border-collapse: collapse;
    table-layout: fixed;
}

.week th,
.week td {
    border: 1px solid var(--line);
    vertical-align: middle;
    font-weight: 500;
}

.time-col {
    width: 76px;
    padding: 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 550;
    text-align: left;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.week thead th {
    padding: 8px 4px;
    text-align: center;
    background: var(--bg);
}

.week thead th span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.week thead th strong {
    display: block;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.week thead th.is-selected {
    background: var(--fg);
    color: var(--bg);
}

.week thead th.is-selected span { color: var(--on-muted); }

.band th,
.band-title {
    padding: 11px 8px 6px;
    background: var(--bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
}

td.slot {
    display: table-cell;
    padding: 0;
    height: 40px;
    vertical-align: top;
}

.slot-inner,
.day-board .slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    min-height: 40px;
    padding: 4px 6px;
}

.slot.has-block .slot-inner { justify-content: flex-start; }

.day-board .slot { min-height: 48px; padding: 8px 10px; }

.add,
.block {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.add {
    width: 100%;
    padding: 6px 2px;
    color: var(--add);
}

.add:hover { color: var(--fg); }

.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.task {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 2px 2px;
    cursor: grab;
}

.task.is-dragging {
    opacity: 0.35;
}

.task.is-drop-before {
    box-shadow: inset 0 2px 0 var(--fg);
}

.task.is-drop-after {
    box-shadow: inset 0 -2px 0 var(--fg);
}

.slot.is-drop {
    background: color-mix(in srgb, var(--fg) 4%, transparent);
}

.task-check,
.task-icon { cursor: pointer; }

.task label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.task-check {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: none;
    accent-color: var(--fg);
}

.task-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-board .task-title {
    white-space: normal;
    overflow: visible;
}

.task.is-done .task-title {
    color: var(--muted);
    text-decoration: line-through;
}

.task-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
}

.task:hover .task-actions,
.task:focus-within .task-actions {
    opacity: 1;
    pointer-events: auto;
}

.task-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
}

.task-icon svg {
    width: 15px;
    height: 15px;
}

.task-icon:hover { background: var(--track); }

.task-compose {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 2px 0;
}

.task-compose input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    border: 2px solid var(--fg);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    padding: 8px 12px;
    outline: none;
}

.task-compose input::placeholder { color: var(--placeholder); }

.task-compose button {
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 18px;
    line-height: 1;
}

.task-compose button:hover { border-color: var(--fg); }

.week .task { min-height: 28px; gap: 4px; }

.week .task label { gap: 6px; }

.week .task-icon { width: 22px; height: 22px; }

.week .task-compose { gap: 4px; }

.week .task-compose input {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
}

.week .task-compose button {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.day-row:has(.task-list .task:nth-child(2)) .hour {
    align-items: flex-start;
    padding-top: 16px;
}

.slot-actions {
    display: flex;
    flex: none;
    gap: 3px;
}

.icon-btn,
.goal-del {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--fg);
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
}

.goal-del {
    border: 0;
    width: auto;
    color: var(--muted);
    font-size: 16px;
}

.icon-btn:hover,
.goal-del:hover {
    background: var(--fg);
    color: var(--bg);
}

.composer {
    width: 100%;
    border: 1px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    padding: 6px 8px;
    outline: none;
}

th.time-col.is-now,
.day-row.is-now .hour {
    background: var(--now);
    color: #111;
    font-weight: 700;
}

.slot.is-now {
    background: var(--now-soft);
    color: #111;
}

.slot.is-now .add:hover { color: #111; }

.slot.is-now .task-icon,
.slot.is-now .task-compose button {
    color: #111;
    background: transparent;
}

.slot.is-now .task-icon:hover { background: rgba(17, 17, 17, 0.08); }

.slot.is-now .task-check { accent-color: #111; }

.slot.is-now .task-compose input,
.slot.is-now .task-compose button {
    background: #fff;
    color: #111;
    border-color: #111;
}

.day-board { border: 1px solid var(--line); }

.band-title {
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.day-board .band-title + .day-row,
.day-row + .band-title { border-top: 0; }

.day-row + .band-title { border-top: 1px solid var(--line); }

.day-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 48px;
    border-bottom: 1px solid var(--line);
}

.day-row:last-child { border-bottom: 0; }

.hour {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.side { position: sticky; top: 16px; }

.notes-title { margin-top: 22px; }

.goal-card {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
    background: var(--bg);
}

.goal-card summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 8px;
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
}

.goal-card summary::-webkit-details-marker { display: none; }

.goal-card summary:hover { background: var(--goal-line); }

.chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.goal-card:not([open]) .chevron { transform: rotate(-90deg); }

.goal-card:not([open]) summary { padding-bottom: 16px; }

.goal-card-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.goal-card-dates {
    color: var(--muted);
    font-size: 12px;
}

.range-del {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    flex: none;
}

.range-del:hover { color: var(--fg); }

.custom-goal {
    display: block;
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font-weight: 400;
}

.custom-goal:hover { background: var(--goal-line); }

.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-card {
    position: relative;
    width: min(420px, 100%);
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
}

.modal-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.modal-lede {
    margin: 8px 0 0;
    color: var(--muted);
}

.modal-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
}

.modal-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-card input {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    padding: 10px 12px;
    outline: none;
}

.modal-card input:focus { border-color: var(--fg); }

.modal-error {
    margin: 12px 0 0;
    color: var(--fg);
    font-size: 13px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.modal-actions button[type="submit"] {
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    min-height: 36px;
    padding: 0 14px;
}

.modal-actions button[type="submit"]:hover,
#remove-goal-confirm:hover { background: var(--hover-solid); }

#remove-goal-confirm {
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    min-height: 36px;
    padding: 0 14px;
}

#remove-goal-confirm:disabled { opacity: 0.55; }

.modal-rise .modal-card {
    animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#remove-goal-modal .modal-card { width: min(380px, 100%); }

#hours-modal .modal-card {
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.modal-rise .modal-backdrop { animation: modal-fade 0.28s ease; }

.hour-band {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}

.hour-band label { margin-top: 0; }

.hour-remove {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 18px;
    line-height: 1;
}

.hour-remove[hidden] { display: none; }

.hour-remove:hover { background: var(--goal-line); }

.add-hour-part {
    display: block;
    width: 100%;
    margin-top: 14px;
    min-height: 44px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
}

.add-hour-part:hover { background: var(--goal-line); }

.add-hour-part:disabled { opacity: 0.45; }

.modal-card select {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    padding: 8px 10px;
    outline: none;
}

.modal-card select:focus { border-color: var(--fg); }

.hour-total {
    margin: 16px 0 0;
    font-variant-numeric: tabular-nums;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.goals {
    list-style: none;
    margin: 0;
    padding: 0 16px;
}

.goals:empty { display: none; }

.goal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--goal-line);
}

.goal label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.goal input {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 2px 0 0;
    border: 1px solid var(--fg);
    background: transparent;
    display: grid;
    place-items: center;
    flex: none;
}

.goal input:checked { background: var(--fg); }

.goal input:checked::after {
    content: "";
    width: 7px;
    height: 4px;
    border-left: 1.5px solid var(--bg);
    border-bottom: 1.5px solid var(--bg);
    transform: translateY(-1px) rotate(-45deg);
}

.goal.is-done span {
    color: var(--muted);
    text-decoration: line-through;
}

.goal-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 14px;
}

.goal-form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 8px;
}

.goal-form input::placeholder { color: var(--placeholder); }

.goal-form button {
    flex: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 22px;
    line-height: 1;
}

.goal-form button:hover {
    border-color: var(--fg);
    background: var(--bg);
    color: var(--fg);
}

.goal-form input,
.stack input,
.notes textarea {
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--fg);
    padding: 10px 12px;
    outline: none;
}

.goal-form input:focus,
.stack input:focus,
.notes textarea:focus {
    border-color: var(--fg);
}

.notes { border: 1px solid var(--line); }

.notes textarea {
    display: block;
    width: 100%;
    min-height: 200px;
    border: 0;
    resize: vertical;
}

.save-state {
    min-height: 1.2em;
    margin: 0;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 12px;
}

#toast[hidden] { display: none; }

#toast {
    position: fixed;
    z-index: 5;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg);
    color: var(--bg);
    padding: 8px 14px;
}

.noscript {
    margin: 0;
    padding: 0 32px 32px;
}

body.auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
}

.auth-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--lede);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-nav a:hover,
.auth-nav a[aria-current="page"]:not(.home-fill) {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.auth-nav .home-fill {
    min-height: 36px;
    padding: 0 14px;
    color: var(--bg);
    font-size: 14px;
}

.auth-nav .home-fill:hover {
    background: var(--hover-solid);
    color: var(--bg);
}

.auth-nav .theme-switch { margin-left: 6px; }

@media (max-width: 720px) {
    .auth-nav a:not(.home-fill) { display: none; }
}

.auth-card {
    width: min(400px, calc(100% - 32px));
    margin: 7vh auto 48px;
}

.auth-card h1 { font-size: clamp(32px, 5vw, 40px); }

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.google-btn:hover { border-color: var(--fg); }

.g-mark { width: 18px; height: 18px; flex: none; }

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

body.auth .stack input {
    min-height: 46px;
    border-radius: 12px;
}

body.auth .solid {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
}

.auth-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font-size: 13px;
    line-height: 1.45;
}

body.auth .switch { margin: 14px 0 0; font-size: 14px; }

.auth-forgot {
    margin: 14px 0 0;
    font-size: 14px;
}

.auth-forgot a,
.auth-legal a,
.auth-foot a {
    color: var(--fg);
    font-weight: 650;
}

.auth-legal {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-rule {
    height: 1px;
    margin: 22px 0 18px;
    background: var(--line);
}

.auth-foot {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.geo-card { width: min(480px, calc(100% - 32px)); margin-top: 6vh; }
.geo-card h1 { font-size: clamp(30px, 5vw, 38px); line-height: 1.12; letter-spacing: -0.03em; }
.geo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px 12px 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.geo-flag { font-size: 17px; line-height: 1; }
.geo-box {
    margin: 26px 0 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel, #fafafa);
}
.geo-box h2 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.geo-box > p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.geo-form { display: grid; gap: 10px; }
.geo-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
}
.geo-form input:focus { outline: none; border-color: var(--fg); }
.geo-form .solid { width: 100%; min-height: 46px; border-radius: 12px; }
.geo-done { display: flex; gap: 12px; align-items: flex-start; }
.geo-done strong { display: block; font-size: 15px; }
.geo-done p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.geo-check {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--fg);
    color: var(--bg);
}
.geo-check svg { width: 16px; height: 16px; }
.geo-label {
    margin: 26px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.geo-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.geo-list li + li { border-top: 1px solid var(--line); }
.geo-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--fg); text-decoration: none; }
.geo-list a:hover { background: var(--track); }
.geo-list strong { display: block; font-size: 14.5px; }
.geo-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.geo-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.geo-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
.geo-ico svg { width: 18px; height: 18px; }
.geo-go { color: var(--muted); font-size: 18px; transition: transform .15s; }
.geo-list a:hover .geo-go { transform: translateX(3px); color: var(--fg); }
.geo-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.geo-note a { color: var(--fg); font-weight: 650; }

.legal {
    width: min(720px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 88px;
}

.legal .kicker {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 720;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.legal .lede { max-width: 38rem; }

.legal h2 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.legal p,
.legal li {
    color: var(--lede);
    font-size: 15px;
    line-height: 1.6;
}

.legal ul { margin: 8px 0 0; padding-left: 18px; }

.legal-links {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    font-size: 14px;
}

.legal-links a { color: var(--fg); font-weight: 650; }

.support-bar {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
}

.support-error {
    margin: 0 0 16px;
    color: #9f1239;
    font-size: 14px;
}

.support-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.support-form legend {
    margin-bottom: 10px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
}

.support-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.support-topic {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.support-topic input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
}

.support-topic span {
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
}

.support-topic small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.support-topic:has(input:checked) {
    border-color: var(--fg);
    background: var(--fg);
}

.support-topic:has(input:checked) span,
.support-topic:has(input:checked) small { color: var(--bg); }

.support-topic:hover { border-color: var(--fg); }

.support-form label[for] {
    display: block;
    margin: 18px 0 8px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
}

.support-form label[for] span {
    color: var(--muted);
    font-weight: 450;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
}

.support-form textarea { resize: vertical; min-height: 140px; }

.support-form input:focus,
.support-form textarea:focus {
    outline: 2px solid var(--fg);
    outline-offset: 1px;
}

.support-from {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.support-form button {
    margin-top: 18px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
}

.support-form button:hover { background: var(--hover-solid); }

.support-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .support-topics { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .auth-bar { padding: 0 16px; }
}

.kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.lede {
    margin: 0 0 22px;
    color: var(--lede);
}

.stack { display: grid; gap: 14px; }

.stack label { display: grid; gap: 6px; }

.stack label span {
    color: var(--muted);
    font-size: 12px;
}

.solid {
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    padding: 12px 14px;
    font-weight: 650;
}

.solid:hover { background: var(--hover-solid); }

.switch { color: var(--muted); }

.switch a { color: var(--fg); }

.error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--fg);
}

.setup-facts {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.setup-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.setup-facts dt { color: var(--muted); }

.setup-facts dd { margin: 0; }

.fine { color: var(--muted); }

:focus-visible {
    outline: 1px solid var(--fg);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .drawer,
    .app-main,
    .nav-toggle span,
    .top { transition: none; }
}

@media (max-width: 980px) {
    .drawer {
        z-index: 30;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.14);
    }

    html[data-nav="closed"] .drawer { box-shadow: none; }

    .nav-backdrop {
        display: block;
        position: fixed;
        z-index: 24;
        inset: 0;
        background: rgba(17, 17, 17, 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.34s ease;
    }

    html:not([data-nav="closed"]) .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .layout { grid-template-columns: 1fr; }
    .side { position: static; }
    .planner-head { align-items: flex-start; flex-direction: column; }
    .controls { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .top,
    .layout { padding-left: 16px; padding-right: 16px; }
    .year-edge { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .year-edge-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
    .year-edge-side.is-right { justify-content: flex-start; text-align: left; }
    .year-edge-side strong { font-size: 18px; }
    .date-line { font-size: 18px; }
    .brand { font-size: 15px; }
    .noscript { padding-left: 16px; padding-right: 16px; }
}

.theme-dock {
    position: fixed;
    z-index: 6;
    top: 18px;
    right: 18px;
}

.theme-switch {
    position: relative;
    width: 64px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--track);
    color: var(--knob-icon);
    box-shadow: inset 0 0 0 1px transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.theme-switch:hover { border-color: var(--fg); }

.theme-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--knob);
    color: var(--knob-icon);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1), background-color 0.35s ease, color 0.35s ease;
}

html[data-theme="dark"] .theme-knob { transform: translateX(30px); }

.theme-knob svg {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
    transition: opacity 0.3s ease, transform 0.45s ease;
}

.theme-knob .sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-knob .moon {
    opacity: 0;
    transform: rotate(30deg) scale(0.6);
}

html[data-theme="dark"] .theme-knob .sun {
    opacity: 0;
    transform: rotate(-50deg) scale(0.6);
}

html[data-theme="dark"] .theme-knob .moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    body,
    .theme-switch,
    .theme-knob,
    .theme-knob svg {
        transition: none;
    }

    .modal-rise .modal-card,
    .modal-rise .modal-backdrop { animation: none; }
}

.pomo-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pomo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0;
    transform: scale(0.6);
}

.pomo-launch.is-running .pomo-dot,
.pomo-launch.is-paused .pomo-dot,
.pomo-launch.is-done .pomo-dot {
    opacity: 1;
    transform: scale(1);
}

.pomo-launch.is-paused .pomo-dot {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--fg);
}

.pomo-launch.is-running .pomo-dot {
    animation: pomo-pulse 1.6s ease-in-out infinite;
}

.pomo-launch.is-done {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

.pomo-launch.is-done:hover {
    background: var(--hover-solid);
    color: var(--bg);
}

.pomo-launch.is-done .pomo-dot {
    background: var(--bg);
    animation: none;
}

@keyframes pomo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.4; }
}

.pomo-card {
    width: min(440px, 100%);
    padding: 22px 22px 18px;
}

.pomo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pomo-card h3 { margin: 0; }

.pomo-guide {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.pomo-x {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.pomo-x:hover {
    background: var(--goal-line);
    color: var(--fg);
}

.pomo-modes {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 18px;
    padding: 4px;
    border-radius: 12px;
    background: var(--seg-track);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.pomo-modes-thumb {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    border-radius: 9px;
    background: var(--seg-thumb);
    box-shadow: var(--seg-shadow);
    transform: translateX(0);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.pomo-modes[data-on="short"] .pomo-modes-thumb { transform: translateX(100%); }
.pomo-modes[data-on="long"] .pomo-modes-thumb { transform: translateX(200%); }

.pomo-modes button {
    position: relative;
    z-index: 1;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.pomo-modes button.on,
.pomo-modes button:hover { color: var(--fg); }

.pomo-modes.is-locked button { cursor: default; }

.pomo-face {
    position: relative;
    width: 232px;
    height: 232px;
    margin: 22px auto 8px;
}

.pomo-ring {
    width: 100%;
    height: 100%;
    display: block;
}

.pomo-ring-track,
.pomo-ring-value {
    fill: none;
    stroke-width: 4;
}

.pomo-ring-track { stroke: var(--line); }

.pomo-ring-value {
    stroke: var(--fg);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
}

.pomo-readout {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px;
}

.pomo-clock {
    margin: 0;
    font-size: 52px;
    font-weight: 560;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pomo-phase {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.pomo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 16px;
}

.pomo-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.pomo-dots span.is-on { background: var(--fg); }

.pomo-intention {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.pomo-card .pomo-intention input {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    padding: 8px 0 10px;
    font-size: 15px;
    color: var(--fg);
}

.pomo-card .pomo-intention input:focus {
    outline: none;
    border-bottom-color: var(--fg);
}

.pomo-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.pomo-primary {
    flex: 1;
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.pomo-primary:hover { background: var(--hover-solid); }

.pomo-actions .ghost {
    min-height: 48px;
    border-radius: 12px;
}

.pomo-settings {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.pomo-settings summary {
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.pomo-lengths {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pomo-card .pomo-lengths label,
.pomo-card .pomo-notify {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: var(--muted);
    font-size: 14px;
}

.pomo-card .pomo-notify { margin-top: 12px; color: var(--fg); }

.pomo-lengths input[type="number"] {
    width: 64px;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--fg);
    border-radius: 8px;
    min-height: 36px;
    padding: 0 8px;
    font-variant-numeric: tabular-nums;
}

.pomo-card .pomo-notify input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--fg);
}

.pomo-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .pomo-modes-thumb,
    .pomo-launch.is-running .pomo-dot { animation: none; transition: none; }
}

.habit-page {
    padding: 8px 8px 48px;
}

.habit-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.habit-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.col-num { width: 52px; }
.col-name { width: 280px; }
.col-day { width: 64px; }

.habit-table th,
.habit-table td {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-weight: 500;
}

.habit-table th:last-child,
.habit-table td:last-child { border-right: 0; }

.habit-banner th {
    background: var(--track);
    padding: 18px 12px;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.habit-week-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.habit-week-title span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.habit-week-title strong {
    font-weight: 650;
    letter-spacing: 0.16em;
}

.habit-week-title em {
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.habit-week-title a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    text-decoration: none;
    color: var(--fg);
    font-size: 22px;
    line-height: 1;
}

.habit-week-title a:hover { background: var(--bg); }

.habit-days th {
    padding: 10px 4px 12px;
    background: var(--bg);
}

.habit-days th.is-today,
.habit-table td.is-today { background: var(--now-soft); }

.habit-letter,
.habit-date {
    display: block;
}

.habit-letter {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.habit-date {
    margin-top: 4px;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.habit-days th.is-today .habit-date { font-weight: 700; }

.habit-num {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.habit-name {
    text-align: left;
    padding: 10px 14px;
}

.habit-name span {
    display: block;
    padding-right: 28px;
    line-height: 1.35;
    text-align: left;
}

.habit-table tbody td {
    height: 64px;
    vertical-align: middle;
}

.habit-name {
    position: relative;
}

.habit-del {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    opacity: 0;
    pointer-events: none;
    font-size: 18px;
    line-height: 1;
}

tr:hover .habit-del,
tr:focus-within .habit-del {
    opacity: 1;
    pointer-events: auto;
}

.habit-del:hover { background: var(--track); }

.tick {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tick svg { width: 16px; height: 16px; }

.tick.is-on {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

.habit-table td.is-today .tick { background: #fff; }
.habit-table td.is-today .tick.is-on {
    background: #111;
    border-color: #111;
    color: #fff;
}

.habit-empty td {
    height: auto;
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
}

.habit-add {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    max-width: 520px;
}

.habit-add input {
    flex: 1;
    min-height: 44px;
    border: 2px solid var(--fg);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    padding: 0 14px;
    font: inherit;
}

.habit-add button {
    width: 44px;
    min-height: 44px;
    border: 2px solid var(--fg);
    border-radius: 12px;
    background: var(--fg);
    color: var(--bg);
    font-size: 22px;
    line-height: 1;
}

.habit-error {
    margin: 10px 0 0;
    color: var(--fg);
    font-size: 14px;
}

.habit-jump {
    margin: 14px 0 0;
}

.habit-jump a { color: var(--fg); }

.insight {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.insight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 0;
}

.insight-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.insight-seg {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 392px);
    min-height: 44px;
    padding: 4px;
    border-radius: 14px;
    background: var(--seg-track, var(--track));
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.insight-thumb {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    border-radius: 11px;
    background: var(--seg-thumb, var(--bg));
    box-shadow: var(--seg-shadow, 0 1px 2px rgba(0, 0, 0, 0.12));
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.insight[data-view="month"] .insight-thumb { transform: translateX(100%); }
.insight[data-view="year"] .insight-thumb { transform: translateX(200%); }

.insight-seg button {
    position: relative;
    z-index: 1;
    min-height: 36px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
}

.insight[data-view="week"] .insight-seg button[data-period="week"],
.insight[data-view="month"] .insight-seg button[data-period="month"],
.insight[data-view="year"] .insight-seg button[data-period="year"] {
    color: var(--fg);
}

.insight-panel { display: none; padding: 8px 18px 18px; }
.insight[data-view="week"] .insight-panel[data-panel="week"],
.insight[data-view="month"] .insight-panel[data-panel="month"],
.insight[data-view="year"] .insight-panel[data-panel="year"] { display: block; }

.insight-copy h2 {
    margin: 8px 0 4px;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.insight-copy p,
.insight-note,
.insight-delta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.insight-delta { margin-top: 4px; }
.insight-delta.is-up { color: var(--fg); }

.insight-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.insight-metrics article {
    padding: 14px 16px 16px;
    border-right: 1px solid var(--line);
}

.insight-metrics article:last-child { border-right: 0; }

.insight-metrics strong {
    display: block;
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.insight-metrics small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 550;
}

.insight-metrics span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.insight-day {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
}

.insight-ring {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto;
}

.insight-ring svg { width: 100%; height: 100%; }

.ring-track,
.ring-value {
    fill: none;
    stroke-width: 10;
}

.ring-track { stroke: var(--track); }
.ring-value {
    stroke: var(--fg);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
}

.insight-ring strong {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.insight-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.insight-checks li,
.insight-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
}

.insight-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.insight-mark svg { width: 12px; height: 12px; }

.insight-checks li.is-kept .insight-mark {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.insight-check-state,
.insight-check-streak,
.insight-pct,
.insight-streak {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.insight-checks li.is-kept .insight-check-state { color: var(--fg); font-weight: 650; }

.insight-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 188px;
    margin-top: 18px;
}

.insight-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.insight-col-track {
    flex: 1;
    width: 100%;
    max-width: 42px;
    display: flex;
    align-items: flex-end;
    border-radius: 9px;
    background: var(--track);
    overflow: hidden;
}

.insight-col-fill {
    display: block;
    width: 100%;
    background: var(--fg);
    border-radius: 9px 9px 0 0;
}

.insight-col.is-today .insight-col-track { background: var(--now-soft); }
.insight-col.is-today .insight-col-fill { background: #111; }
.insight-col.is-future .insight-col-track,
.insight-col.is-off .insight-col-track {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
}

.insight-col-label,
.insight-col-sub {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.insight-col-label { margin-top: 8px; font-weight: 650; }
.insight-col-sub { color: var(--muted); }
.insight-col.is-today .insight-col-label { background: var(--now); color: #111; border-radius: 999px; padding: 0 6px; }

.heat-wrap { margin-top: 18px; }

.heat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.heat,
.heat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.heat-label {
    min-height: 22px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.heat.is-empty { background: var(--track); color: var(--muted); }
.heat.is-partial { background: color-mix(in srgb, var(--fg) 45%, var(--track)); color: var(--fg); }
.heat.is-full { background: var(--fg); color: var(--bg); }
.heat.is-future,
.heat.is-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.heat.is-today { outline: 2px solid var(--now); outline-offset: 1px; }
.heat-blank { background: transparent; }

.insight-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.insight-list li {
    grid-template-columns: minmax(140px, 1.3fr) minmax(80px, 1fr) 52px 72px;
}

.insight-meter {
    height: 8px;
    border-radius: 999px;
    background: var(--track);
    overflow: hidden;
}

.insight-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fg);
}

.insight-quiet {
    display: block;
    padding: 14px 0;
    color: var(--muted);
}

.insight-note { margin-top: 12px; }

@media (max-width: 800px) {
    .insight-head { align-items: stretch; flex-direction: column; }
    .insight-metrics { grid-template-columns: 1fr 1fr; }
    .insight-metrics article:nth-child(odd) { border-right: 1px solid var(--line); }
    .insight-metrics article:nth-child(1),
    .insight-metrics article:nth-child(2) { border-bottom: 1px solid var(--line); }
    .insight-day { grid-template-columns: 1fr; }
    .insight-list li { grid-template-columns: minmax(0, 1fr) 48px; }
    .insight-meter,
    .insight-streak { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .insight-thumb { transition: none; }
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.project-page { padding: 8px 8px 48px; }

.project-list,
.project-board {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    overflow: hidden;
}

.project-banner {
    padding: 18px 16px;
    background: var(--track);
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-list li {
    position: relative;
    border-top: 1px solid var(--line);
}

.project-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 56px;
    padding: 0 48px 0 16px;
    color: var(--fg);
    text-decoration: none;
}

.project-list a:hover { background: var(--track); }

.project-hash,
.project-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.project-list-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-del,
.item-edit,
.item-del,
.item-save,
.item-cancel {
    border: 0;
    background: transparent;
    color: var(--fg);
    font: inherit;
}

.project-del {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    opacity: 0;
}

.project-list li:hover .project-del,
.project-list li:focus-within .project-del { opacity: 1; }

.project-del:hover,
.item-edit:hover,
.item-del:hover { background: var(--track); }

.project-empty,
.project-missing {
    margin: 0;
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
}

.project-add,
.item-add {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.project-add input,
.item-add input,
.item-add select,
.project-table td input,
.project-table td select {
    min-height: 40px;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    padding: 0 10px;
}

.project-add input {
    flex: 1;
    border-width: 2px;
    border-color: var(--fg);
}

.project-add button,
.item-add button[type="submit"] {
    min-height: 40px;
    padding: 0 14px;
    border: 2px solid var(--fg);
    border-radius: 10px;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    font-weight: 650;
}

.project-error { margin: 0; padding: 0 16px 16px; }

.project-board-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 18px 16px 12px;
}

.project-back {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.project-board-head h1 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.project-scroll { overflow-x: auto; }

.project-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.project-table th,
.project-table td {
    padding: 12px;
    border-top: 1px solid var(--line);
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.project-table tbody tr { transition: background 0.22s ease; }
.project-table tbody tr:hover { background: color-mix(in srgb, var(--track) 65%, transparent); }

.choice { position: relative; display: inline-flex; }

.choice .pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: none;
    min-width: 0;
    min-height: 32px;
    padding: 0 6px 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--track);
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.choice .pill span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: inherit;
    line-height: 1;
}

.choice .pill svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    padding: 3px;
    flex: none;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), background 0.22s ease;
}

.choice .pill:hover svg,
.choice.is-open .pill svg { background: color-mix(in srgb, currentColor 22%, transparent); }
.choice.is-open .pill svg { transform: rotate(180deg); }
.choice.is-open .pill { box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 28%, transparent); }
.choice.is-saving .pill { transform: scale(0.97); }

.pill.is-status.is-not_started { background: #ececec; color: #3f3f46; }
.pill.is-status.is-in_progress { background: #dbeafe; color: #1e3a8a; }
.pill.is-status.is-hold { background: #fef3c7; color: #92400e; }
.pill.is-status.is-completed { background: #dcfce7; color: #166534; }
.pill.is-status.is-cancelled { background: #fee2e2; color: #991b1b; }

.pill.is-priority.is-high { background: #ffe4e6; color: #9f1239; }
.pill.is-priority.is-medium { background: #ffedd5; color: #9a3412; }
.pill.is-priority.is-low { background: #e7e5e4; color: #44403c; }

html[data-theme="dark"] .pill.is-status.is-not_started { background: #262626; color: #f0f0f0; }
html[data-theme="dark"] .pill.is-status.is-in_progress { background: #243244; color: #87c3ff; }
html[data-theme="dark"] .pill.is-status.is-hold { background: #3a2e16; color: #f1b467; }
html[data-theme="dark"] .pill.is-status.is-completed { background: #1c3326; color: #70b489; }
html[data-theme="dark"] .pill.is-status.is-cancelled { background: #3a1c24; color: #fc6b83; }
html[data-theme="dark"] .pill.is-priority.is-high { background: #3a1c24; color: #fc6b83; }
html[data-theme="dark"] .pill.is-priority.is-medium { background: #3a2e16; color: #f1b467; }
html[data-theme="dark"] .pill.is-priority.is-low { background: #262626; color: #d6d6dd; }
html[data-theme="dark"] .pill-swatch.is-status.is-not_started { background: #9a9a9a; }
html[data-theme="dark"] .pill-swatch.is-status.is-in_progress { background: #81a1c1; }
html[data-theme="dark"] .pill-swatch.is-status.is-hold { background: #d2943e; }
html[data-theme="dark"] .pill-swatch.is-status.is-completed { background: #3fa266; }
html[data-theme="dark"] .pill-swatch.is-status.is-cancelled { background: #e34671; }
html[data-theme="dark"] .pill-swatch.is-priority.is-high { background: #e34671; }
html[data-theme="dark"] .pill-swatch.is-priority.is-medium { background: #d2943e; }
html[data-theme="dark"] .pill-swatch.is-priority.is-low { background: #9a9a9a; }

.pill-swatch {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: none;
}

.pill-swatch.is-status.is-not_started { background: #a1a1aa; }
.pill-swatch.is-status.is-in_progress { background: #2563eb; }
.pill-swatch.is-status.is-hold { background: #d97706; }
.pill-swatch.is-status.is-completed { background: #16a34a; }
.pill-swatch.is-status.is-cancelled { background: #dc2626; }
.pill-swatch.is-priority.is-high { background: #e11d48; }
.pill-swatch.is-priority.is-medium { background: #ea580c; }
.pill-swatch.is-priority.is-low { background: #78716c; }

.pill-menu {
    position: fixed;
    z-index: 40;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    animation: pill-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.pill-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.pill-option:hover,
.pill-option[aria-selected="true"] { background: var(--track); }

.pill-option[aria-selected="true"]::after {
    content: "";
    margin-left: auto;
    width: 6px;
    height: 10px;
    border-right: 1.6px solid var(--fg);
    border-bottom: 1.6px solid var(--fg);
    transform: rotate(45deg) translateY(-1px);
}

tr.is-saved .pill { animation: pill-pop 0.45s ease; }

@keyframes pill-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@keyframes pill-pop {
    0% { transform: scale(0.94); }
    45% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .pill,
    .pill svg,
    .project-table tbody tr { transition: none; }
    .pill-menu,
    tr.is-saved .pill { animation: none; }
}

.project-table thead th {
    background: var(--fg);
    color: var(--bg);
    border-top: 0;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.project-cell-title { font-weight: 600; }

.project-action-col { width: 110px; }

.project-actions {
    opacity: 0;
    white-space: nowrap;
}

tr:hover .project-actions,
tr:focus-within .project-actions,
.project-actions.is-open { opacity: 1; }

.item-edit,
.item-save,
.item-cancel {
    margin-right: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.item-del { font-size: 18px; line-height: 1; }

.item-add {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1fr 0.8fr 1.1fr auto;
    align-items: center;
}

.project-table td input,
.project-table td select { width: 100%; }

@media (max-width: 900px) {
    .item-add { grid-template-columns: 1fr 1fr; }
    .item-add button[type="submit"] { grid-column: 1 / -1; }
}

.cal-page {
    container-name: calendar;
    container-type: inline-size;
    padding: 12px 20px 56px;
}

.year-pulse {
    margin: 4px 0 26px;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--now) 55%, transparent), transparent 46%),
        var(--bg);
}

.year-pulse-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.year-pulse-hero {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 6px 0 0;
}

.year-pulse-hero strong {
    color: var(--fg);
    font-size: 72px;
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
}

.year-pulse-hero span {
    color: var(--fg);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.year-pulse-line {
    max-width: 38rem;
    margin: 10px 0 0;
    color: var(--lede);
    font-size: 16px;
    line-height: 1.45;
}

.year-track {
    display: flex;
    height: 18px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--now);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #111 12%, transparent);
}

.year-spent {
    flex: 0 0 var(--year-pct);
    background: var(--fg);
    transform-origin: left center;
    animation: year-grow 1.15s cubic-bezier(0.32, 0.72, 0, 1) both;
}

html[data-theme="dark"] .year-spent { background: #3a3a3a; }

.year-left {
    flex: 1 1 auto;
    background: var(--now);
    animation: year-remain 2.6s ease-in-out 1.15s infinite;
}

.year-pulse-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.year-pulse-meta span:last-child {
    color: #111;
    font-weight: 650;
}

html[data-theme="dark"] .year-pulse-meta span:last-child { color: var(--now); }

@keyframes year-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes year-remain {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}

.cal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cal-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cal-head h1 {
    margin: 2px 0 0;
    font-size: 40px;
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cal-head .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-left: 1px solid var(--fg);
    color: var(--line-strong);
}

.cal-head .pager span:first-child { border-left: 0; }

.cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    gap: 16px;
    align-items: start;
}

.cal-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}

.cal-month {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    animation: cal-rise 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.cal-month:nth-child(2) { animation-delay: 0.04s; }
.cal-month:nth-child(3) { animation-delay: 0.08s; }
.cal-month:nth-child(4) { animation-delay: 0.12s; }
.cal-month:nth-child(5) { animation-delay: 0.05s; }
.cal-month:nth-child(6) { animation-delay: 0.09s; }
.cal-month:nth-child(7) { animation-delay: 0.13s; }
.cal-month:nth-child(8) { animation-delay: 0.17s; }
.cal-month:nth-child(9) { animation-delay: 0.06s; }
.cal-month:nth-child(10) { animation-delay: 0.1s; }
.cal-month:nth-child(11) { animation-delay: 0.14s; }
.cal-month:nth-child(12) { animation-delay: 0.18s; }

.cal-month h2 {
    margin: 0;
    padding: 7px 8px;
    background: var(--fg);
    color: var(--bg);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.cal-grid {
    --cal-gap: 5px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--cal-gap);
    padding: 12px 10px 14px;
}

.cal-dow {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: center;
}

.cal-day {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 550;
}

button.cal-day { cursor: pointer; }

.cal-day.is-weekend { color: var(--muted); }
.cal-day.is-pad { visibility: hidden; }
.cal-day.is-past { position: relative; color: #b91c1c; }
.cal-day.is-past::after {
    content: "";
    position: absolute;
    left: calc(var(--cal-gap) / -2);
    right: calc(var(--cal-gap) / -2);
    top: 50%;
    height: 1.5px;
    background: #dc2626;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
html[data-theme="dark"] .cal-day.is-past { color: #fc6b83; }
html[data-theme="dark"] .cal-day.is-past::after { background: #e34671; }
.cal-day.is-today {
    box-shadow: inset 0 0 0 2px var(--now);
    background: var(--now-soft);
    color: #111;
}
.cal-day.is-holiday {
    background: var(--hbg);
    color: var(--hfg);
    font-weight: 700;
}
.cal-day.is-holiday.is-today { box-shadow: inset 0 0 0 2px var(--now); }

html[data-theme="dark"] .cal-day.is-holiday {
    background: var(--hbg-dark);
    color: var(--hfg-dark);
}
html[data-theme="dark"] .cal-day.is-today { color: #141414; }

.cal-day.is-event {
    box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--fg) 78%, transparent);
}
.cal-day.is-today.is-event,
.cal-day.is-holiday.is-today.is-event {
    box-shadow: inset 0 0 0 2px var(--now), inset 0 -3px 0 color-mix(in srgb, var(--fg) 78%, transparent);
}
.cal-day.is-remind::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--now);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 40%, transparent);
    z-index: 2;
}
.cal-day.is-hot,
.cal-key-item.is-hot,
.cal-observe.is-hot,
.cal-event-open.is-hot {
    animation: cal-hot 0.55s ease;
    box-shadow: 0 0 0 2px var(--fg);
}
.cal-day.is-event.is-hot {
    box-shadow: 0 0 0 2px var(--fg), inset 0 -3px 0 color-mix(in srgb, var(--fg) 78%, transparent);
}

.cal-key {
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 14px 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.cal-key h2,
.cal-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 8px 10px 8px 12px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.cal-fold > summary::-webkit-details-marker,
.cal-more > summary::-webkit-details-marker { display: none; }

.cal-fold > summary::marker,
.cal-more > summary::marker { content: ""; }

.cal-fold > summary em,
.cal-more > summary em {
    margin-left: 6px;
    color: color-mix(in srgb, var(--bg) 72%, transparent);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
}

.cal-chevron {
    width: 16px;
    height: 16px;
    flex: none;
    transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.cal-fold[open] > summary .cal-chevron,
.cal-more[open] > summary .cal-chevron { transform: rotate(90deg); }

.cal-fold > summary { margin-bottom: 10px; }
.cal-fold:not([open]) > summary { margin-bottom: 0; }

.cal-events { margin-bottom: 16px; }
.cal-event-banner {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--now);
    color: #111;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}
.cal-event-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cal-event-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cal-event-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cal-event-field > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cal-event-field input {
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 13px;
}
.cal-event-kinds {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cal-kind { position: relative; }
.cal-kind input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cal-kind span {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}
.cal-kind input:checked + span {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}
.cal-kind input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.cal-event-remember {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 620;
    line-height: 1.35;
}
.cal-event-remember input { margin-top: 2px; }
.cal-event-hint,
.cal-event-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}
.cal-event-error {
    margin: 0;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.4;
}
.cal-event-actions { display: flex; gap: 8px; }
.cal-event-save,
.cal-event-cancel {
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.cal-event-save {
    flex: 1;
    padding: 8px 10px;
    border: 0;
    background: var(--fg);
    color: var(--bg);
}
.cal-event-cancel {
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--fg);
}
.cal-event-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.cal-event { margin: 0 0 6px; }
.cal-event.is-past { opacity: 0.62; }
.cal-event-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.cal-event-open:hover,
.cal-event-open[aria-pressed="true"] { background: var(--track); }
.cal-event-open strong {
    font-size: 13px;
    font-weight: 650;
}
.cal-event-kicker,
.cal-event-when,
.cal-event-note,
.cal-event-flag,
.cal-event-open > span {
    color: var(--muted);
    font-size: 12px;
}
.cal-event-flag { color: var(--fg); font-weight: 650; }
.cal-event-tools {
    display: flex;
    gap: 10px;
    padding: 0 8px 4px;
}
.cal-event-edit,
.cal-event-delete {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.cal-event-delete[data-armed="1"] { color: #b91c1c; }

.cal-key-list,
.cal-more ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cal-key-item,
.cal-observe {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 4px;
    padding: 7px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cal-key-item:hover,
.cal-observe:hover,
.cal-key-item[aria-pressed="true"],
.cal-observe[aria-pressed="true"] { background: var(--track); }

.cal-swatch {
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 4px;
    background: var(--hbg);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hfg) 25%, transparent);
}

html[data-theme="dark"] .cal-swatch { background: var(--hbg-dark); }

.cal-key-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.cal-key-copy strong {
    font-size: 13px;
    font-weight: 620;
    letter-spacing: -0.01em;
}

.cal-key-copy span,
.cal-observe > span {
    color: var(--muted);
    font-size: 12px;
}

.cal-observe { gap: 8px; font-size: 13px; }
.cal-observe > span { width: 42px; flex: none; }

.cal-more { margin-top: 12px; }
.cal-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}
.cal-more summary em {
    color: var(--muted);
    font-weight: 500;
}
.cal-more ul { margin-top: 8px; }

.cal-source,
.cal-empty {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

@keyframes cal-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes cal-hot {
    0% { transform: scale(0.96); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@container calendar (max-width: 860px) {
    .year-pulse { padding: 18px 16px 14px; }
    .year-pulse-hero strong { font-size: 56px; }
    .cal-layout { grid-template-columns: 1fr; }
    .cal-key { position: static; max-height: none; }
}

@container calendar (max-width: 560px) {
    .year-pulse-hero { flex-wrap: wrap; gap: 4px; }
    .year-pulse-hero strong { font-size: 44px; }
    .year-pulse-hero span { font-size: 18px; }
    .year-pulse-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .cal-head { align-items: flex-start; flex-wrap: wrap; }
    .cal-head h1 { font-size: 32px; }
    .cal-day { font-size: 15px; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .cal-month,
    .cal-day.is-hot,
    .cal-key-item.is-hot,
    .cal-observe.is-hot,
    .cal-event-open.is-hot,
    .year-spent,
    .year-left,
    .year-edge-spent { animation: none; }
    .cal-key-item,
    .cal-observe,
    .cal-chevron { transition: none; }
}

.home-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.home-logo {
    display: block;
    width: auto;
    height: 28px;
}

html[data-theme="dark"] .home-logo {
    filter: invert(1);
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--lede);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-nav a:hover { color: var(--fg); }

.home-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--fg);
    color: var(--bg);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.home-nav .home-fill {
    min-height: 36px;
    padding: 0 14px;
    color: var(--bg);
    font-size: 14px;
}

.home-fill:hover,
.home-nav .home-fill:hover {
    background: var(--hover-solid);
    color: var(--bg);
}

.home-nav .theme-switch { margin-left: 6px; }

.home-hero {
    padding: 88px 24px 80px;
    text-align: center;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
}

.home-badge {
    display: inline-flex;
    margin: 0 0 22px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    color: var(--muted);
    font-size: 13px;
}

.home-hero h1 {
    max-width: 16ch;
    margin: 0 auto;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.home-hero h1 span {
    display: block;
    color: #9a9a9a;
}

html[data-theme="dark"] .home-hero h1 span { color: #9a9a9a; }

.home-lede {
    max-width: 38rem;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.home-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.home-ghost:hover { border-color: var(--fg); }

.play-banner {
    margin: 0;
    padding: 10px 20px;
    background: var(--fg);
    color: var(--bg);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.play-banner a {
    color: inherit;
    font-weight: 650;
}

.play-leave {
    margin-left: auto;
    color: var(--fg);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.home-play {
    padding: 28px 28px 64px;
}

.home-play-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-play h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 680;
    letter-spacing: -0.04em;
}

.home-play-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.home-chip {
    flex: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--now-soft);
    color: #111;
    font-size: 12px;
    font-weight: 650;
}

.home-foot {
    padding: 48px 40px 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.foot-main {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr);
    gap: 40px 32px;
    align-items: start;
}

.foot-brand .home-brand {
    display: inline-flex;
    align-items: center;
    color: var(--fg);
    font-size: 18px;
}

.foot-brand .home-logo {
    height: 28px;
    width: auto;
}

.foot-brand p {
    max-width: 22rem;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 24px 20px;
}

.foot-cols p {
    margin: 0 0 12px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 680;
    letter-spacing: -0.01em;
}

.foot-cols a {
    display: block;
    margin: 0 0 8px;
    color: var(--lede);
    font-size: 14px;
    text-decoration: none;
}

.foot-cols a:hover { color: var(--fg); }

.foot-base {
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.foot-base p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    font-size: 13px;
}

.foot-base a { color: var(--muted); text-decoration: none; }
.foot-base a:hover { color: var(--fg); }

@media (max-width: 860px) {
    .home-bar { padding: 0 16px; }
    .home-hero { padding: 56px 16px 48px; }
    .home-lede { font-size: 16px; }
    .home-play { padding: 8px 16px 40px; }
    .home-play-head { align-items: flex-start; flex-direction: column; }
    .home-foot { padding: 32px 16px 20px; }
    .foot-main,
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .home-nav a:not(.home-fill) { display: none; }
    .home-brand { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
}

html { scroll-behavior: smooth; }
.lp [id] { scroll-margin-top: 84px; }

.member {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 64px;
}

.member-hero {
    position: relative;
    overflow: hidden;
    margin: 0 -24px;
    padding: 72px 24px 40px;
    text-align: center;
}

.member-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, color-mix(in srgb, var(--now) 40%, transparent), transparent 70%),
        radial-gradient(circle, color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    pointer-events: none;
    animation: plans-hero-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.member-kicker {
    position: relative;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.02em;
    animation: plans-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.member-hero h1 {
    position: relative;
    margin: 0 auto;
    max-width: 12ch;
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 0.98;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.member-lede {
    position: relative;
    max-width: 34rem;
    margin: 16px auto 0;
    color: var(--lede);
    font-size: 17px;
    line-height: 1.55;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.member-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.member-cta {
    min-width: 200px;
    min-height: 48px;
    font-size: 16px;
}

.member-plan {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.member-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a7f4b;
    box-shadow: 0 0 0 4px color-mix(in srgb, #1a7f4b 18%, transparent);
}

.member-apps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.member-app {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--fg) 1.5%, var(--bg));
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease;
}

.member-app:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: var(--bg);
}

.member-app strong {
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.member-app span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.member-foot {
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
}

.member-foot .foot-base {
    justify-content: center;
    text-align: center;
}

@media (max-width: 800px) {
    .member { width: min(640px, calc(100% - 32px)); }
    .member-hero { margin: 0 -16px; padding: 56px 16px 32px; }
    .member-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .member-apps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .member-hero-bg,
    .member-kicker,
    .member-hero h1,
    .member-lede,
    .member-actions,
    .member-plan,
    .member-apps {
        animation: none;
    }
    .member-app:hover { transform: none; }
}

html[data-theme="dark"] .member-plan-dot {
    background: #3fa266;
    box-shadow: 0 0 0 4px color-mix(in srgb, #3fa266 22%, transparent);
}

.lp svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-hero {
    padding: 88px 24px 40px;
    text-align: center;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
}

.lp-hero h1 {
    max-width: 18ch;
    margin: 0 auto;
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.lp-hero h1 span {
    display: block;
    color: var(--muted);
}

.lp-hero-lede {
    max-width: 36rem;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.lp-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.lp-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-points svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    stroke-width: 3;
}

.lp-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.lp-shot {
    max-width: 1040px;
    margin: 56px auto 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.lp-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--track);
}

.lp-shot-bar i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--line-strong);
}

.lp-shot-bar span {
    margin: 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.lp-shot-body {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 240px;
    min-height: 330px;
}

.lp-shot-side,
.lp-shot-goals {
    padding: 18px 16px;
    font-size: 13px;
}

.lp-shot-side { border-right: 1px solid var(--line); }
.lp-shot-goals { border-left: 1px solid var(--line); }

.lp-shot-side b,
.lp-shot-goals b {
    display: block;
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.lp-shot-goals b:not(:first-child) { margin-top: 20px; }

.lp-shot-side p {
    margin: 0 0 4px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--muted);
}

.lp-shot-side p.is-on {
    background: var(--fg);
    color: var(--bg);
    font-weight: 650;
}

.lp-shot-goals p {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.lp-shot-goals p.is-done {
    color: var(--muted);
    text-decoration: line-through;
}

.lp-lines { border: 0 !important; }

.lp-lines i {
    display: block;
    height: 8px;
    margin: 6px 0 10px;
    border-radius: 999px;
    background: var(--track);
}

.lp-lines i:nth-child(2) { width: 80%; }
.lp-lines i:nth-child(3) { width: 55%; }

.lp-shot-day { padding: 12px 18px; }

.lp-slot {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.lp-slot span {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.lp-slot em {
    padding: 8px 12px;
    border-radius: 10px;
    font-style: normal;
    font-weight: 600;
}

.lp-slot.is-solid em {
    background: var(--fg);
    color: var(--bg);
}

.lp-slot.is-now em {
    border: 2px solid var(--fg);
    background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--fg) 7%, transparent) 6px 12px);
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    margin: 48px auto 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.lp-stats div {
    padding: 20px 16px;
}

.lp-stats div + div { border-left: 1px solid var(--line); }

.lp-stats dt {
    font-size: 34px;
    font-weight: 740;
    letter-spacing: -0.05em;
    line-height: 1;
}

.lp-stats dd {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.lp-quote {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}

.lp-quote p {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.lp-quote cite {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.lp-quote-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lp-quote-cta p { text-wrap: balance; }

.lp-quote-cta span {
    color: var(--muted);
    font-size: 16px;
}

.lp-quote-cta .home-fill { margin-top: 10px; }

.lp-quote-franklin {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}

.lp-quote-franklin blockquote {
    margin: 0;
}

.lp-quote-franklin p {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.3;
    text-wrap: balance;
}

.lp-quote-franklin cite {
    margin-top: 18px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lp-quote-portrait {
    position: relative;
    width: 200px;
    aspect-ratio: 1;
}

.lp-quote-portrait::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.lp-quote-portrait img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: 50%;
    filter: grayscale(1) contrast(1.05);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transition: filter 600ms ease;
}

.lp-quote-franklin:hover .lp-quote-portrait img {
    filter: grayscale(0.2) contrast(1.02);
}

.lp-highlight {
    padding: 0 0.12em;
    color: inherit;
    background-color: transparent;
    background-image: linear-gradient(transparent 12%, #ffe14d 12%, #ffe14d 90%, transparent 90%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 1.1s cubic-bezier(0.65, 0, 0.35, 1), color 0.4s ease;
}

.lp-highlight.is-lit {
    background-size: 100% 100%;
    color: #111;
}

@media (prefers-reduced-motion: reduce) {
    .lp-highlight { transition: none; }
}

@media (max-width: 680px) {
    .lp-quote-franklin {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        text-align: center;
    }

    .lp-quote-portrait { width: 150px; }
}

.lp-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 28px;
    border-top: 1px solid var(--line);
}

.lp-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.lp-kicker {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lp-head h2,
.lp-story h2,
.lp-final h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 720;
    letter-spacing: -0.05em;
    line-height: 1.05;
    text-wrap: balance;
}

.lp-nowrap { white-space: nowrap; }

.lp-head > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.lp-offer {
    display: inline-block;
    margin-top: 18px !important;
    padding: 8px 14px;
    border: 1px solid var(--fg);
    border-radius: 999px;
    color: var(--fg) !important;
    font-size: 13px !important;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.lp-head a,
.lp-fine a { color: var(--fg); font-weight: 650; }

.lp-versus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lp-vs {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.lp-vs h3 {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.lp-vs ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-vs li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.lp-vs svg {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 999px;
}

.lp-vs.is-without { color: var(--muted); }
.lp-vs.is-without h3 { color: var(--fg); }
.lp-vs.is-without svg { background: var(--track); color: var(--muted); }

.lp-vs.is-with {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.lp-vs.is-with svg { background: var(--bg); color: var(--fg); stroke-width: 3; }

.lp-vs li svg { flex: none; }

.lp-versus-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    text-align: center;
}

.lp-versus-cta p {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 620;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lp-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
    padding: 36px 0;
}

.lp-feature.is-flip .lp-copy { order: 2; }

.lp-num {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-feature-cta { margin-top: 26px; }

.lp-copy h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.lp-copy > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.lp-copy ul,
.lp-plan ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.lp-copy li,
.lp-plan li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 560;
}

.lp-art {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background-color: var(--track);
    background-image: radial-gradient(circle, color-mix(in srgb, var(--fg) 10%, transparent) 1px, transparent 1px);
    background-size: 16px 16px;
}

.lp-art > div {
    width: min(100%, 380px);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
    font-size: 14px;
}

.art-day p {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    margin: 0;
    padding: 5px 0;
}

.art-day span { color: var(--muted); font-size: 12px; }

.art-day b {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
}

.art-day b.is-solid { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.art-day b.is-now { border: 2px solid var(--fg); }

.art-session {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.art-session .art-timer { width: 150px; }
.art-session .art-timer b { font-size: 30px; }

.art-session-task {
    display: grid;
    gap: 4px;
    margin: 0;
}

.art-session-task span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.art-session-task b { font-size: 16px; }

.art-session-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.art-session-dots i {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--fg);
    border-radius: 999px;
}

.art-session-dots i.is-on { background: var(--fg); }

.art-session-dots span {
    margin-left: 6px;
    color: var(--muted);
    font-size: 12px;
}

.art-goals p,
.art-today p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.art-goals p i,
.art-today p i {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--fg);
    border-radius: 6px;
}

.art-goals p.is-done { color: var(--muted); text-decoration: line-through; }
.art-goals p.is-done i,
.art-today p.is-done i { background: var(--fg); }

.art-today p span {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.art-progress {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
}

.art-progress span { color: var(--muted); }

.art-progress em {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(var(--fg), var(--fg)) 0 0 / var(--fill) 100% no-repeat, var(--track);
}

.art-progress b { text-align: right; }

.art-goals .art-tabs {
    gap: 4px;
    padding: 0 0 12px;
    text-decoration: none;
}

.art-tabs span {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.art-tabs span.is-on { background: var(--fg); color: var(--bg); }

.art-today > b {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.art-habits p {
    display: grid;
    grid-template-columns: 70px repeat(7, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 0;
}

.art-habits span { font-weight: 600; }

.art-habits i {
    aspect-ratio: 1;
    border: 1.5px solid var(--line-strong);
    border-radius: 7px;
}

.art-habits i.is-on { border-color: var(--fg); background: var(--fg); }

.art-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 18px;
}

.art-year {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}

.art-year i {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--track);
}

.art-year i.is-past { background: var(--line-strong); }
.art-year i.is-today { background: var(--fg); }

.art-timer {
    display: grid;
    place-content: center;
    aspect-ratio: 1;
    border: 6px solid var(--fg);
    border-right-color: var(--track);
    border-radius: 999px;
    text-align: center;
}

.art-timer b {
    font-size: 22px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.art-timer span { color: var(--muted); font-size: 11px; }


.lp-center {
    margin: 28px 0 0;
    text-align: center;
}

.lp-center .home-ghost,
.lp-center .home-fill { display: inline-flex; }

.lp-uses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.lp-uses article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.lp-uses article:hover {
    border-color: var(--fg);
    transform: translateY(-2px);
}

.lp-uses h3 {
    margin: 0 0 8px;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.lp-uses p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.lp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 780px;
    margin: 0 auto;
}

.lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.lp-plan.is-featured {
    border: 2px solid var(--fg);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.4);
}

.lp-flag {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
}

.lp-plan h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.lp-plan-kicker {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.lp-price {
    margin: 18px 0 0;
    font-size: 44px;
    font-weight: 740;
    letter-spacing: -0.05em;
    line-height: 1;
}

.lp-price span {
    margin-left: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.lp-plan-eq {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.lp-plan ul { flex: 1 1 auto; margin-bottom: 26px; }
.lp-plan li { align-items: flex-start; font-size: 14px; }
.lp-plan li svg { margin-top: 1px; }
.lp-plan .home-fill,
.lp-plan .home-ghost { width: 100%; }

.lp-fine {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.lp-table-wrap {
    max-width: 820px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.lp-table th,
.lp-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.lp-table tbody tr:last-child > * { border-bottom: 0; }

.lp-table thead th {
    background: var(--track);
    font-size: 14px;
    font-weight: 700;
}

.lp-table-text thead th:nth-child(3),
.lp-table:not(.lp-table-text) thead th:nth-child(2) {
    background: var(--fg);
    color: var(--bg);
}

.lp-table tbody th { font-weight: 560; }

.lp-table td { width: 160px; }

.lp-table-text td { width: auto; }

.lp-table-text td.is-without { color: var(--muted); }

.lp-table-text td.is-with {
    color: var(--fg);
    font-weight: 600;
}

.lp-table td svg {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 999px;
}

.lp-table td.is-yes svg { background: var(--fg); color: var(--bg); stroke-width: 3; }
.lp-table td.is-no svg { background: var(--track); color: var(--muted); }

#compare .lp-versus-cta { margin-top: 36px; }

.lp-faq {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.lp-faq details { border-bottom: 1px solid var(--line); }

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.lp-faq details[open] summary::after {
    transform: rotate(45deg);
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.lp-faq details p {
    margin: 0;
    padding: 0 48px 22px 4px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.lp-story-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.lp-story-mark {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--fg);
    color: var(--bg);
    font-size: 44px;
    font-weight: 740;
}

.lp-story h2 { font-size: clamp(26px, 3vw, 34px); }

.lp-story-card p:not(.lp-kicker) {
    margin: 14px 0 0;
    color: var(--lede);
    font-size: 16px;
    line-height: 1.65;
}

.lp-final {
    margin: 24px 28px 72px;
    padding: 80px 24px;
    border-radius: 28px;
    background: var(--fg);
    color: var(--bg);
    text-align: center;
}

.lp-final-kicker {
    margin: 0 0 14px;
    color: color-mix(in srgb, var(--bg) 62%, var(--fg));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lp-final > p:not(.lp-final-kicker):not(.lp-final-note) {
    margin: 14px 0 0;
    color: color-mix(in srgb, var(--bg) 70%, var(--fg));
    font-size: 17px;
    text-wrap: balance;
}

.lp-final-note {
    margin: 18px 0 0;
    color: color-mix(in srgb, var(--bg) 58%, var(--fg));
    font-size: 14px;
    font-weight: 550;
}

.lp-final .home-fill { background: var(--bg); color: var(--fg); }
.lp-final .home-fill:hover { background: color-mix(in srgb, var(--bg) 86%, var(--fg)); }
.lp-final .home-ghost { border-color: color-mix(in srgb, var(--bg) 40%, var(--fg)); background: transparent; color: var(--bg); }
.lp-final .home-ghost:hover { border-color: var(--bg); }

@media (max-width: 900px) {
    .lp-shot-body { grid-template-columns: minmax(0, 1fr); }
    .lp-shot-side,
    .lp-shot-goals { display: none; }
    .lp-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lp-feature.is-flip .lp-copy { order: 0; }
    .lp-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .lp-hero { padding: 56px 16px 32px; }
    .lp-hero-lede { font-size: 16px; }
    .lp-points { flex-direction: column; align-items: center; }
    .lp-stats { grid-template-columns: minmax(0, 1fr); }
    .lp-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
    .lp-section { padding: 56px 16px; }
    .lp-versus,
    .lp-uses { grid-template-columns: minmax(0, 1fr); }
    .lp-art { min-height: 0; padding: 18px; }
    .lp-story-card { grid-template-columns: minmax(0, 1fr); padding: 28px; }
    .lp-final { margin: 16px 16px 48px; padding: 56px 20px; }
    .lp-table th,
    .lp-table td { padding: 12px 14px; }
    .lp-table td { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-uses article,
    .lp-faq summary::after { transition: none; }
}

.home-nav a[aria-current="page"] {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.plans {
    position: relative;
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 96px;
}

.plans svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plans-hero {
    position: relative;
    overflow: hidden;
    margin: 0 -24px;
    padding: 72px 24px 48px;
    text-align: center;
}

.plans-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, color-mix(in srgb, var(--now) 42%, transparent), transparent 70%),
        radial-gradient(circle at 15% 80%, color-mix(in srgb, var(--fg) 5%, transparent), transparent 42%),
        radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--fg) 4%, transparent), transparent 40%),
        radial-gradient(circle, color-mix(in srgb, var(--fg) 10%, transparent) 1px, transparent 1px);
    background-size: auto, auto, auto, 18px 18px;
    pointer-events: none;
    animation: plans-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plans-kicker {
    position: relative;
    display: inline-flex;
    margin: 0 0 18px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plans-hero h1 {
    position: relative;
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 0.96;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.plans-hero h1 span {
    display: block;
    color: color-mix(in srgb, var(--fg) 62%, var(--muted));
}

.plans-lede {
    position: relative;
    max-width: 36rem;
    margin: 18px auto 0;
    color: var(--lede);
    font-size: 17px;
    line-height: 1.55;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.plans-hero-points {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    animation: plans-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.plans-hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lede);
    font-size: 14px;
    font-weight: 600;
}

.plans-hero-points svg { width: 16px; height: 16px; }

.plan-alert,
.plan-wait,
.plans-empty {
    margin: 0 auto 18px;
    max-width: 42rem;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--fg) 2.5%, var(--bg));
    color: var(--lede);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.plan-alert.is-ok {
    border-color: color-mix(in srgb, #1a7f4b 28%, var(--line));
    background: color-mix(in srgb, #1a7f4b 7%, var(--bg));
}

.plan-alert.is-bad {
    border-color: color-mix(in srgb, #9f1239 30%, var(--line));
    background: color-mix(in srgb, #9f1239 7%, var(--bg));
    color: #9f1239;
}

.plan-wait { color: var(--muted); }

.plan-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 780px;
    margin: 0 auto 28px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--fg) 2.5%, var(--bg));
}

.plan-status-label {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-status-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-status-copy {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.plan-status-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.plan-status-link:hover { background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 8px auto 0;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 26px 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 4%, transparent);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    animation: plans-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.18s; }
.plan-card:nth-child(3) { animation-delay: 0.26s; }

.plan-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.35);
}

.plan-card.is-featured {
    border: 2px solid var(--fg);
    box-shadow: 0 24px 56px -32px rgba(0, 0, 0, 0.4);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--now) 14%, var(--bg)), var(--bg) 42%);
}

.plan-card.is-open {
    outline: 2px solid var(--now);
    outline-offset: 3px;
}

.plan-card.is-current:not(.is-featured) {
    border-color: color-mix(in srgb, var(--fg) 28%, var(--line));
}

.plan-flag {
    position: absolute;
    top: -12px;
    left: 24px;
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-flag.is-current {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
}

.plan-card-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 720;
    letter-spacing: -0.04em;
}

.plan-summary {
    margin: 8px 0 0;
    min-height: 2.6em;
    color: var(--lede);
    font-size: 14px;
    line-height: 1.45;
}

.plan-price-block { margin-top: 22px; }

.plan-price {
    margin: 0;
    font-size: clamp(40px, 5vw, 48px);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 1;
}

.plan-price span {
    margin-left: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 550;
    letter-spacing: 0;
}

.plan-eq,
.plan-save {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.plan-eq { color: var(--muted); }

.plan-save {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--now) 55%, var(--bg));
    color: #111;
    font-weight: 700;
}

.plan-features {
    flex: 1 1 auto;
    margin: 22px 0 24px;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 11px;
    font-size: 14px;
    line-height: 1.4;
}

.plan-features li svg {
    margin-top: 1px;
    width: 17px;
    height: 17px;
}

.plan-cta { margin-top: auto; }

.plan-card form { margin: 0; }

.plan-card button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    font-size: 15px;
    font-weight: 680;
    transition: background 0.2s ease, transform 0.2s ease;
}

.plan-card button:hover { background: var(--hover-solid); }

.plan-card.is-featured button {
    background: var(--fg);
    color: var(--bg);
}

.plan-card.is-featured button:hover {
    background: var(--hover-solid);
}

.plan-card button:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

.plan-cancel {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plans-fine {
    margin: 22px auto 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.plans-fine a {
    color: var(--fg);
    font-weight: 650;
    text-underline-offset: 2px;
}

.plan-section-head {
    max-width: 36rem;
    margin: 0 auto 28px;
    text-align: center;
}

.plan-section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.plan-section-head > p:not(.plans-kicker) {
    margin: 12px auto 0;
    color: var(--lede);
    font-size: 16px;
    line-height: 1.5;
}

.plan-included,
.plan-trust {
    margin-top: 88px;
}

.plan-included-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.plan-included-grid article {
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--fg) 1.8%, var(--bg));
    transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-included-grid article:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.plan-included-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--fg) 6%, var(--bg));
    color: var(--fg);
}

.plan-included-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
}

.plan-included-grid h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-included-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.plan-trust .plan-agree {
    max-width: 34rem;
}

.plan-agree,
.plan-pay-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.plan-agree a {
    color: var(--fg);
    font-weight: 650;
    text-underline-offset: 2px;
}

.plan-assure {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-assure li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
    text-align: left;
}

.plan-assure svg {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    stroke-width: 1.6;
}

.plan-assure strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.plan-assure span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.plan-pay {
    margin-top: 28px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--fg) 2%, var(--bg));
    text-align: center;
}

.plan-pay-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.plan-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-methods li {
    min-width: 78px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.plan-pay-note {
    max-width: 36rem;
    margin: 16px auto 0;
    font-size: 13px;
}

@keyframes plans-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes plans-hero-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .plans { width: min(640px, calc(100% - 32px)); }
    .plans-hero { margin: 0 -16px; padding: 56px 16px 36px; }
    .plan-grid,
    .plan-included-grid,
    .plan-assure { grid-template-columns: 1fr; }
    .plan-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .plans-hero-points { flex-direction: column; align-items: center; gap: 10px; }
    .plan-card { padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .plans-hero-bg,
    .plans-hero h1,
    .plans-lede,
    .plans-hero-points,
    .plan-card {
        animation: none;
    }
    .plan-card:hover,
    .plan-included-grid article:hover {
        transform: none;
    }
}

.pay-panel button,
.pay-launch-retry {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
}

.pay-panel button:hover,
.pay-launch-retry:hover { background: var(--hover-solid); }

.pay-launch {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    min-height: calc(100vh - 24px);
    padding: 32px 20px;
    text-align: center;
}

.pay-launch-copy {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.pay-launch .plan-alert {
    max-width: 28rem;
    margin: 0;
}

.pay-back { margin-top: 16px; font-size: 14px; }
.pay-back a { color: var(--fg); font-weight: 650; }

.pay-success {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 20px;
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, var(--now) 28%, transparent), transparent 70%),
        radial-gradient(circle, color-mix(in srgb, var(--fg) 8%, transparent) 1px, transparent 1px);
    background-size: auto, 18px 18px;
}

.pay-success-card {
    width: min(420px, 100%);
    text-align: center;
    animation: plans-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pay-success-mark {
    display: inline-flex;
    margin-bottom: 22px;
}

.pay-success-mark svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pay-success-mark circle {
    stroke: color-mix(in srgb, var(--fg) 18%, transparent);
    animation: pay-success-ring 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pay-success-mark path {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: pay-success-check 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.pay-success-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pay-success h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.pay-success-lede {
    margin: 14px auto 0;
    max-width: 28ch;
    color: var(--lede);
    font-size: 16px;
    line-height: 1.5;
}

.pay-success-cta {
    margin-top: 28px;
    min-width: 200px;
}

.pay-success-redirect {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@keyframes pay-success-ring {
    from {
        opacity: 0;
        transform: scale(0.86);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: scale(1);
        transform-origin: center;
    }
}

@keyframes pay-success-check {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pay-success-card,
    .pay-success-mark circle,
    .pay-success-mark path {
        animation: none;
    }
    .pay-success-mark path { stroke-dashoffset: 0; }
}

.who-pop a { display: block; }

.bill {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 80px;
}

.bill h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 5vw, 44px);
    font-weight: 680;
    letter-spacing: -0.045em;
}

.bill-card {
    margin-top: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
}

.bill-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.bill-plan {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bill-plan h2 {
    margin: 4px 0;
    font-size: 28px;
    font-weight: 680;
    letter-spacing: -0.04em;
}

.bill-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bill-plan p,
.bill-note,
.bill-empty,
.bill-cancel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.bill-pill {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--track);
    color: var(--fg);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.bill-text {
    display: inline-block;
    margin-top: 16px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.bill-text:hover { text-decoration: underline; }

.bill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bill-table th {
    padding: 0 12px 10px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.bill-table td {
    padding: 12px 12px 12px 0;
    border-top: 1px solid var(--line);
}

.bill-table th:last-child,
.bill-table td:last-child { text-align: right; padding-right: 0; }

.bill-facts { margin: 0; }

.bill-facts div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.bill-facts div:first-child { padding-top: 0; border-top: 0; }

.bill-facts dt { color: var(--muted); font-size: 14px; }

.bill-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.bill-method {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bill-method span { color: var(--muted); font-size: 14px; }

.bill-note { margin-top: 12px; }

.bill-cancel p { max-width: 40rem; margin-bottom: 16px; }

.bill-danger {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 16px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.bill-danger:hover { background: #be123c; }

html[data-theme="dark"] .bill-danger { background: #e34671; }
html[data-theme="dark"] .bill-danger:hover { background: #fc6b83; }

.bill-modal {
    position: relative;
    width: min(440px, calc(100% - 32px));
    padding: 22px 22px 18px;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    background: #141414;
    color: #f0f0f0;
}

.bill-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.bill-modal h2 {
    margin: 0 36px 12px 0;
    color: #f0f0f0;
    font-size: 22px;
    font-weight: 680;
    letter-spacing: -0.03em;
}

.bill-modal p {
    margin: 0;
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1.45;
}

.bill-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bill-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.bill-modal-stop,
.bill-modal-back {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.bill-modal-stop { background: #e34671; color: #f0f0f0; }
.bill-modal-stop:hover { background: #fc6b83; }
.bill-modal-back { background: #626262; color: #f0f0f0; }
.bill-modal-back:hover { background: #818181; }

@media (max-width: 640px) {
    .bill { width: min(640px, calc(100% - 32px)); }
    .bill-plan,
    .bill-method { display: block; }
    .bill-pill { display: inline-block; margin-top: 12px; }
    .bill-facts div { grid-template-columns: 1fr; gap: 2px; }
    .bill-table { display: block; overflow-x: auto; }
}

html[data-theme="dark"] .drawer {
    background: #141414;
    border-right-color: #2a2a2a;
    box-shadow: 1px 0 0 #2a2a2a;
}

html[data-theme="dark"] .nav-link.is-current,
html[data-theme="dark"] .week thead th.is-selected {
    background: #343434;
    color: #f0f0f0;
}

html[data-theme="dark"] .week thead th.is-selected span { color: #9a9a9a; }

html[data-theme="dark"] .icon-btn:hover,
html[data-theme="dark"] .goal-del:hover,
html[data-theme="dark"] .pager a:hover {
    background: #343434;
    color: #f0f0f0;
}

html[data-theme="dark"] .slot.is-now,
html[data-theme="dark"] .slot.is-now .add,
html[data-theme="dark"] .slot.is-now .add:hover,
html[data-theme="dark"] .slot.is-now .task-icon,
html[data-theme="dark"] .slot.is-now .task-compose button {
    color: #f0f0f0;
}

html[data-theme="dark"] .slot.is-now .task-compose input,
html[data-theme="dark"] .slot.is-now .task-compose button {
    background: #202020;
    color: #f0f0f0;
    border-color: #3a3a3a;
}

html[data-theme="dark"] th.time-col.is-now,
html[data-theme="dark"] .day-row.is-now .hour,
html[data-theme="dark"] .insight-col.is-today .insight-col-label {
    color: #141414;
}

html[data-theme="dark"] .insight-col.is-today .insight-col-fill { background: #f1b467; }

html[data-theme="dark"] .habit-table td.is-today .tick { background: #202020; }

html[data-theme="dark"] .account-pop,
html[data-theme="dark"] .account-fly,
html[data-theme="dark"] .help-pop,
html[data-theme="dark"] .modal-card {
    background: #141414;
    border-color: #2a2a2a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .account-open .who-face,
html[data-theme="dark"] .account-head .who-face {
    background: #88c0d0;
    color: #141414;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #202020;
    border-color: #2e2e2e;
    color: #f0f0f0;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8e8e8e; }

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { border-color: #81a1c1; }

html[data-theme="dark"] .solid,
html[data-theme="dark"] .home-fill,
html[data-theme="dark"] .guest-join .guest-up,
html[data-theme="dark"] .modal-actions button[type="submit"],
html[data-theme="dark"] .pay-panel button,
html[data-theme="dark"] .pay-launch-retry,
html[data-theme="dark"] .plan-card button,
html[data-theme="dark"] .plan-card.is-featured button {
    background: #81a1c1;
    border-color: #81a1c1;
    color: #191c22;
}

html[data-theme="dark"] .solid:hover,
html[data-theme="dark"] .home-fill:hover,
html[data-theme="dark"] .home-nav .home-fill:hover,
html[data-theme="dark"] .guest-join .guest-up:hover,
html[data-theme="dark"] .modal-actions button[type="submit"]:hover,
html[data-theme="dark"] .pay-panel button:hover,
html[data-theme="dark"] .pay-launch-retry:hover,
html[data-theme="dark"] .plan-card button:hover,
html[data-theme="dark"] .plan-card.is-featured button:hover {
    background: #87a6c4;
    border-color: #87a6c4;
    color: #191c22;
}

html[data-theme="dark"] .plan-card.is-featured {
    border-color: #81a1c1;
    background:
        linear-gradient(180deg, color-mix(in srgb, #f1b467 12%, #181818), #181818 48%);
    box-shadow: 0 24px 56px -32px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .plan-flag {
    background: #81a1c1;
    color: #191c22;
}

html[data-theme="dark"] .plan-save {
    background: color-mix(in srgb, #f1b467 45%, #181818);
    color: #f0f0f0;
}

html[data-theme="dark"] .plan-alert.is-bad { color: #e34671; }

html[data-theme="dark"] .play-banner {
    background: #141414;
    color: #f0f0f0;
}

html[data-theme="dark"] .legal a,
html[data-theme="dark"] .auth-legal a,
html[data-theme="dark"] .plan-agree a,
html[data-theme="dark"] .foot-cols a,
html[data-theme="dark"] .foot-base a,
html[data-theme="dark"] .switch a { color: #81a1c1; }

html[data-theme="dark"] ::selection {
    background: rgba(64, 64, 64, 0.85);
    color: #f0f0f0;
}

html[data-theme="dark"] .bill-modal-x { color: #f0f0f0; }

.pf {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 96px;
}

.pf-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.pf-kicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pf-top h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.pf-lede {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.pf-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.pf-badge div { display: flex; flex-direction: column; min-width: 0; }

.pf-badge strong { font-size: 14px; font-weight: 650; }

.pf-badge span { color: var(--muted); font-size: 12px; }

.pf-badge-face { width: 36px; height: 36px; font-size: 13px; }

.pf-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, #3fa266 35%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, #3fa266 8%, var(--bg));
    color: var(--fg);
    font-size: 14px;
}

.pf-notice svg { width: 16px; height: 16px; flex: none; color: #3fa266; }

.pf-notice.is-bad {
    border-color: color-mix(in srgb, #e34671 35%, var(--line));
    background: color-mix(in srgb, #e34671 8%, var(--bg));
}

.pf-notice.is-bad svg { color: #e34671; }

.pf-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    margin-top: 28px;
}

.pf-nav {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: start;
}

.pf-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.pf-nav a:hover { background: var(--track); color: var(--fg); }

.pf-nav a.is-on {
    background: var(--track);
    color: var(--fg);
    font-weight: 650;
}

.pf-nav-rule { height: 1px; margin: 8px 12px; background: var(--line); }

.pf-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.pf-card {
    scroll-margin-top: 92px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.pf-card-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.pf-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.pf-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.pf-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0;
    padding: 20px 22px;
}

.pf-row + .pf-row { border-top: 1px solid var(--line); }

.pf-label h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.pf-label p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.pf-field { min-width: 0; }

.pf-inline { display: flex; gap: 10px; max-width: 460px; }

.pf-inline .pf-input { flex: 1 1 auto; }

.pf-stack { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }

.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pf-sub { display: flex; flex-direction: column; gap: 6px; }

.pf-sub span { color: var(--muted); font-size: 12px; font-weight: 550; }

.pf-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-input:focus {
    border-color: var(--fg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent);
}

.pf-actions { display: flex; justify-content: flex-end; }

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--fg);
    border-radius: 8px;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pf-btn:hover { background: var(--hover-solid); border-color: var(--hover-solid); }

.pf-btn-ghost {
    border-color: var(--line-strong);
    background: var(--bg);
    color: var(--fg);
}

.pf-btn-ghost:hover { background: var(--track); border-color: var(--line-strong); }

.pf-btn-text {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.pf-btn-text:hover { background: var(--track); border-color: transparent; color: #e34671; }

.pf-btn-danger { border-color: #e34671; background: #e34671; color: #fff; }

.pf-btn-danger:hover { border-color: #c7335c; background: #c7335c; }

.pf-avatar { display: flex; align-items: center; gap: 12px; }

.pf-avatar form { margin: 0; }

.pf-face { width: 56px; height: 56px; font-size: 18px; }

.pf-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pf-avatar label.pf-btn { position: relative; }

.pf-avatar label.pf-btn:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 14%, transparent); }

.pf-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 460px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--track);
    font-size: 14px;
}

.pf-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.pf-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pf-connect-id { display: flex; align-items: center; gap: 14px; min-width: 0; }

.pf-connect-id h3 { margin: 0; font-size: 14px; font-weight: 600; }

.pf-connect-id p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.pf-connect-logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
}

.pf-connect-logo .g-mark { width: 18px; height: 18px; }

.pf-connect-act { display: flex; align-items: center; gap: 12px; flex: none; }

.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.pf-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.pf-status.is-on { color: #2f8a55; }

.pf-status.is-on::before { background: #3fa266; }

.pf-modal {
    width: min(420px, calc(100% - 32px));
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--fg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.pf-modal::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }

.pf-modal-head { display: flex; align-items: flex-start; justify-content: space-between; }

.pf-modal h2 {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.pf-modal > form > p {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.pf-modal .pf-stack { max-width: none; }

.pf-modal-x {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.pf-modal-x:hover { background: var(--track); color: var(--fg); }

.pf-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.nl-modal { width: min(400px, calc(100% - 32px)); }

.nl-body > p,
.nl-done > p {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.nl-body > .nl-error {
    margin: 12px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.nl-modal.is-done .nl-logo { visibility: hidden; }

.nl-done { text-align: center; padding: 4px 0 2px; }

.nl-done h2 { margin-top: 12px; }

.nl-done .pf-modal-actions { justify-content: center; }

.nl-check {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(63, 162, 102, 0.12);
    color: #2f8a55;
}

.nl-check svg,
.nl-logo svg { width: 20px; height: 20px; }

html[data-theme="dark"] .pf-card,
html[data-theme="dark"] .pf-modal { background: #141414; border-color: #2a2a2a; }

html[data-theme="dark"] .pf-input { background: #1c1c1c; border-color: #2e2e2e; }

html[data-theme="dark"] .pf-input:focus { border-color: #81a1c1; box-shadow: 0 0 0 3px rgba(129, 161, 193, 0.18); }

html[data-theme="dark"] .pf-btn:not(.pf-btn-ghost):not(.pf-btn-text):not(.pf-btn-danger) {
    border-color: #81a1c1;
    background: #81a1c1;
    color: #191c22;
}

html[data-theme="dark"] .pf-btn:not(.pf-btn-ghost):not(.pf-btn-text):not(.pf-btn-danger):hover {
    border-color: #87a6c4;
    background: #87a6c4;
}

html[data-theme="dark"] .pf-btn-ghost { background: #1c1c1c; border-color: #2e2e2e; }

html[data-theme="dark"] .pf-status.is-on { color: #70b489; }

.bl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bl-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.bl-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.bl-state.is-on { color: #2f8a55; border-color: color-mix(in srgb, #3fa266 35%, var(--line)); }

.bl-state.is-on::before { background: #3fa266; }

.bl-state.is-warn { color: #a86b1c; border-color: color-mix(in srgb, #d2943e 40%, var(--line)); }

.bl-state.is-warn::before { background: #d2943e; }

.bl-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: end;
    padding: 22px;
}

.bl-plan-name {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.bl-plan-price { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.bl-plan-price strong { color: var(--fg); font-size: 16px; font-weight: 650; }

.bl-period-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.bl-period-top span:nth-child(2) { color: var(--fg); font-weight: 650; }

.bl-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
}

.bl-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fg);
}

.bl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.bl-stats div { padding: 16px 22px; }

.bl-stats div + div { border-left: 1px solid var(--line); }

.bl-stats dt { color: var(--muted); font-size: 12px; font-weight: 550; }

.bl-stats dd {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.bl-card-logo,
.bl-warn-logo { color: var(--fg); }

.bl-card-logo svg,
.bl-warn-logo svg { width: 20px; height: 20px; }

.bl-warn-logo { color: #e34671; }

.bl-total { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

.bl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 36px 22px;
    text-align: center;
}

.bl-empty svg { width: 28px; height: 28px; margin-bottom: 6px; color: var(--muted); }

.bl-empty strong { font-size: 14px; font-weight: 650; }

.bl-empty span { color: var(--muted); font-size: 13px; }

.bl-table-wrap { overflow-x: auto; }

.bl-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.bl-table th {
    padding: 10px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.bl-table td { padding: 14px 22px; border-bottom: 1px solid var(--line); }

.bl-table tbody tr:last-child td { border-bottom: 0; }

.bl-table tbody tr:hover td { background: var(--track); }

.bl-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

.bl-value { padding-top: 1px; font-size: 14px; font-weight: 550; }

.bl-danger-card { border-color: color-mix(in srgb, #e34671 30%, var(--line)); }

.pf-btn-danger-ghost {
    border-color: color-mix(in srgb, #e34671 45%, var(--line));
    background: var(--bg);
    color: #d03a63;
}

.pf-btn-danger-ghost:hover { border-color: #e34671; background: #e34671; color: #fff; }

html[data-theme="dark"] .pf-btn-danger-ghost { background: #1c1c1c; color: #fc6b83; }

html[data-theme="dark"] .pf-btn-danger-ghost:hover { background: #e34671; color: #fff; }

html[data-theme="dark"] .bl-track span { background: #81a1c1; }

html[data-theme="dark"] .bl-state.is-on { color: #70b489; }

html[data-theme="dark"] .bl-state.is-warn { color: #f1b467; }

@media (max-width: 860px) {
    .bl-plan { grid-template-columns: 1fr; gap: 18px; }
    .bl-stats { grid-template-columns: 1fr; }
    .bl-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
    .pf { width: min(1040px, calc(100% - 32px)); padding-top: 28px; }
    .pf-top { flex-direction: column; align-items: flex-start; }
    .pf-layout { grid-template-columns: 1fr; gap: 16px; }
    .pf-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .pf-nav a { white-space: nowrap; }
    .pf-nav-rule { display: none; }
    .pf-row { grid-template-columns: 1fr; gap: 12px; }
    .pf-connect { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .pf-pair { grid-template-columns: 1fr; }
    .pf-inline { flex-direction: column; }
}


.money-page {
    --m-in: #17834a;
    --m-out: #cf3654;
    --m-in-soft: #e5f4ec;
    --m-out-soft: #fbe9ed;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(1280px, 100%);
    max-width: 1280px;
    min-width: 0;
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 22px 32px 72px;
    box-sizing: border-box;
    overflow-x: clip;
}

@media (min-width: 981px) {
    .money-page {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.app-main:has(> .money-page),
.app-main:has(> .play-banner + .money-page),
.app-main:has(> .top + .money-page),
.app-main:has(> .top + .year-edge + .money-page),
.app-main:has(> .play-banner + .top + .money-page),
.app-main:has(> .play-banner + .top + .year-edge + .money-page) {
    display: block;
}

#money-dash {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#money-dash > .finance-dash {
    flex: 1 1 auto;
}

#money-dash,
#money-view,
.finance-dash,
.money-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

html[data-theme="dark"] .money-page {
    --m-in: #4fc283;
    --m-out: #ff6f8a;
    --m-in-soft: #17301f;
    --m-out-soft: #3a1c24;
}

.money-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.finance-banner {
    --fb-ink: #f5f5f5;
    --fb-soft: rgba(245, 245, 245, 0.62);
    --fb-line: rgba(255, 255, 255, 0.12);
    --fb-chip: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: nowrap;
    margin: 0 0 22px;
    padding: 18px 20px;
    min-height: 72px;
    border: 1px solid #1a1a1a;
    border-radius: 18px;
    background: #111;
    color: var(--fb-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.finance-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.finance-nav-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-color: var(--fb-line);
    background: var(--fb-chip);
}

.finance-nav-toggle span {
    background: var(--fb-ink);
}

.finance-banner-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--fb-line);
    border-radius: 9px;
    background: var(--fb-chip);
    flex: 0 0 auto;
}

.finance-banner-ico svg {
    width: 17px;
    height: 17px;
}

.finance-banner-copy {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.finance-banner-copy h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.15;
    white-space: nowrap;
}

.finance-banner-tag {
    margin: 0;
    color: var(--fb-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.finance-banner-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.finance-banner-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--fb-line);
    border-radius: 999px;
    background: var(--fb-chip);
    color: var(--fb-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.finance-banner-date svg {
    width: 13px;
    height: 13px;
    opacity: 0.75;
}

.finance-banner-tools {
    display: flex;
    align-items: center;
}

.finance-banner-tools .theme-switch {
    width: 34px;
    height: 34px;
    border-color: var(--fb-line);
    background: var(--fb-chip);
    color: var(--fb-ink);
    box-shadow: none;
}

.finance-banner-tools .theme-switch:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.finance-dash {
    display: grid;
    gap: 16px;
    align-content: start;
    margin: 0;
    padding: 18px;
    border-radius: 22px;
    background: #ececec;
    container-type: inline-size;
    container-name: finance;
    min-width: 0;
    min-height: 100%;
}

.finance-top,
.finance-mid {
    display: grid;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.finance-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container finance (max-width: 920px) {
    .finance-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container finance (max-width: 620px) {
    .finance-top,
    .finance-mid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.finance-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    min-height: 220px;
    padding: 22px 22px 18px;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
    container-type: inline-size;
    container-name: fcard;
}

.finance-card.finance-net {
    min-height: 0;
}

.finance-mid .finance-card {
    min-height: 280px;
}

.finance-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.finance-card-head.is-tools {
    align-items: flex-start;
}

.finance-card-head.is-split {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.finance-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.finance-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.finance-card-tools {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 0 0 auto;
}

.finance-tool {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #f7f7f7;
    color: #444;
    cursor: pointer;
}

.finance-tool svg {
    width: 15px;
    height: 15px;
}

.finance-tool:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

html[data-theme="dark"] .finance-tool {
    border-color: #333;
    background: #1c1c1c;
    color: #ddd;
}

html[data-theme="dark"] .finance-tool:hover {
    border-color: #f2f2f2;
    background: #f2f2f2;
    color: #111;
}

.finance-card-head h2,
.finance-net-left h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.finance-card-head p,
.finance-net-left p {
    margin: 2px 0 0;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.finance-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f3f3;
    color: #111;
    flex: 0 0 auto;
}

.finance-ico svg {
    width: 18px;
    height: 18px;
}

.finance-big {
    margin: 2px 0 0;
    font-size: clamp(24px, 4.2cqi, 36px);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.finance-big.is-neg {
    color: #cf3654;
}

.finance-muted {
    margin: -4px 0 0;
    color: #6b6b6b;
    font-size: 13px;
}

.finance-bar {
    height: 10px;
    border-radius: 999px;
    background: #e8e8e8;
    overflow: hidden;
}

.finance-bar > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #111;
}

.finance-split {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
}

.finance-split span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.finance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 2px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #333;
    font-size: 12px;
    font-weight: 650;
}

.finance-pill svg {
    width: 14px;
    height: 14px;
}

.finance-pill.is-link {
    padding: 0;
    background: none;
}

.finance-pill.is-link a,
.finance-pill.is-link button {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f1;
    color: inherit;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.finance-pill.is-link a:hover,
.finance-pill.is-link button:hover {
    background: #e5e5e5;
}

.finance-pill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.finance-pace {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.finance-pace li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    min-width: 0;
}

.finance-pace li span {
    color: #6b6b6b;
}

.finance-pace li b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

html[data-theme="dark"] .finance-pace li span {
    color: #9a9a9a;
}

.goal-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
}

.goal-modal[hidden] {
    display: none;
}

.goal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: goal-modal-fade 0.2s ease;
}

.goal-modal-panel {
    --goal-panel-pad: 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(90vh, 760px);
    overflow: hidden;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(0, 0, 0, 0.04), transparent 55%),
        linear-gradient(180deg, #fafafa 0%, #fff 38%);
    color: #111;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 28px 70px rgba(0, 0, 0, 0.24);
    animation: goal-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.goal-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px var(--goal-panel-pad) 0;
}

.goal-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.goal-modal-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.goal-modal-mark svg {
    width: 20px;
    height: 20px;
}

.goal-modal-kicker {
    margin: 0 0 3px;
    color: #7a7a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.goal-modal-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.goal-modal-x {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.goal-modal-x:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

.goal-modal-x svg {
    width: 14px;
    height: 14px;
}

.goal-modal-lede {
    margin: 10px 0 0;
    padding: 0 var(--goal-panel-pad);
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.goal-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 18px var(--goal-panel-pad) 0;
    border: 0;
    background: none;
    overflow: auto;
}

.goal-modal-section {
    margin: 0 0 16px;
}

.goal-modal-section:last-of-type {
    margin-bottom: 10px;
}

.goal-modal-label {
    margin: 0 0 8px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.goal-modal-kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.goal-modal-kinds .goal-kind {
    position: relative;
    margin: 0;
    min-width: 0;
}

.goal-modal-kinds input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goal-modal-kinds span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    height: 100%;
    min-height: 112px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.goal-modal-kinds i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 10px;
    background: #f4f4f4;
    color: #222;
    font-style: normal;
}

.goal-modal-kinds i svg {
    width: 17px;
    height: 17px;
}

.goal-modal-kinds b {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.goal-modal-kinds small {
    color: #6d6d6d;
    font-size: 12px;
    line-height: 1.35;
}

.goal-modal-kinds label:hover span {
    border-color: #cfcfcf;
    transform: translateY(-1px);
}

.goal-modal-kinds input:checked + span {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.goal-modal-kinds input:checked + span i {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.goal-modal-kinds input:checked + span small {
    color: rgba(255, 255, 255, 0.72);
}

.goal-modal-kinds input:focus-visible + span {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.goal-modal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.goal-modal-fields .is-wide {
    grid-column: 1 / -1;
}

.goal-modal .goal-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.goal-modal .goal-field > span:first-child {
    color: #666;
    font-size: 12px;
    font-weight: 650;
}

.goal-modal .goal-field em {
    font-style: normal;
    font-weight: 400;
    color: #999;
}

.goal-modal .goal-field > input,
.goal-modal .goal-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.goal-modal .goal-field > input {
    padding: 0 12px;
    color: #111;
    font: inherit;
    font-size: 14px;
}

.goal-modal .goal-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0 12px 0 0;
    overflow: hidden;
}

.goal-modal .goal-input em {
    display: grid;
    place-items: center;
    width: 40px;
    height: 100%;
    border-right: 1px solid #eee;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    background: #f7f7f7;
}

.goal-modal .goal-input input {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.goal-modal .goal-field > input:focus,
.goal-modal .goal-input:focus-within {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.goal-modal .goal-input input:focus {
    outline: none;
}

.goal-modal-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.goal-modal-date-sep {
    display: grid;
    place-items: center;
    width: 28px;
    height: 46px;
    color: #aaa;
    font-size: 16px;
    line-height: 1;
}

.goal-modal-help {
    margin: 0 0 4px;
    color: #6d6d6d;
    font-size: 13px;
    line-height: 1.4;
}

.goal-modal-error {
    margin: 8px 0 0;
}

.goal-modal-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    margin-left: calc(-1 * var(--goal-panel-pad));
    margin-right: calc(-1 * var(--goal-panel-pad));
    padding: 14px var(--goal-panel-pad) 18px;
    border-top: 1px solid #ececec;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #fff 40%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.goal-modal-actions .money-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
}

@keyframes goal-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes goal-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

html[data-theme="dark"] .goal-modal-panel {
    border-color: #2a2a2a;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #171717 0%, #121212 40%);
    color: #f2f2f2;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .goal-modal-mark,
html[data-theme="dark"] .goal-modal-x,
html[data-theme="dark"] .goal-modal-kinds span,
html[data-theme="dark"] .goal-modal .goal-field > input,
html[data-theme="dark"] .goal-modal .goal-input {
    background: #1a1a1a;
    border-color: #333;
    color: #f2f2f2;
}

html[data-theme="dark"] .goal-modal-kicker,
html[data-theme="dark"] .goal-modal-lede,
html[data-theme="dark"] .goal-modal-help,
html[data-theme="dark"] .goal-modal-kinds small,
html[data-theme="dark"] .goal-modal .goal-field > span:first-child {
    color: #9a9a9a;
}

html[data-theme="dark"] .goal-modal-label {
    color: #b0b0b0;
}

html[data-theme="dark"] .goal-modal-kinds i,
html[data-theme="dark"] .goal-modal .goal-input em {
    background: #222;
    color: #eee;
    border-color: #333;
}

html[data-theme="dark"] .goal-modal .goal-input em {
    border-right-color: #333;
}

html[data-theme="dark"] .goal-modal-kinds input:checked + span {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: #111;
}

html[data-theme="dark"] .goal-modal-kinds input:checked + span i {
    background: rgba(0, 0, 0, 0.08);
    color: #111;
}

html[data-theme="dark"] .goal-modal-kinds input:checked + span small {
    color: #555;
}

html[data-theme="dark"] .goal-modal-x:hover {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: #111;
}

html[data-theme="dark"] .goal-modal-actions {
    border-top-color: #2a2a2a;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.88), #121212 40%);
}

html[data-theme="dark"] .goal-modal .goal-field > input:focus,
html[data-theme="dark"] .goal-modal .goal-input:focus-within {
    border-color: #f2f2f2;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .goal-modal-date-sep {
    color: #666;
}

.finance-foot,
.finance-net-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    min-width: 0;
}

.finance-foot > span,
.finance-net-tip > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.finance-foot svg,
.finance-net-tip svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.finance-progress {
    display: grid;
    grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.finance-donut {
    position: relative;
    width: 100%;
    max-width: 96px;
    aspect-ratio: 1;
    justify-self: center;
}

.finance-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.finance-donut .track {
    fill: none;
    stroke: #e8e8e8;
    stroke-width: 10;
}

.finance-donut .fill {
    fill: none;
    stroke: #111;
    stroke-width: 10;
    stroke-linecap: round;
}

.finance-donut strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(16px, 18cqi, 22px);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.finance-progress ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.finance-progress li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    min-width: 0;
}

.finance-progress li span {
    color: #6b6b6b;
    min-width: 0;
}

.finance-progress li b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.finance-total {
    text-align: right;
    min-width: 0;
    flex: 0 1 auto;
}

.finance-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
}

.finance-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.finance-add-btn:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

.finance-total span {
    display: block;
    color: #6b6b6b;
    font-size: 12px;
    font-weight: 600;
}

.finance-total strong {
    display: block;
    margin-top: 2px;
    font-size: clamp(15px, 4cqi, 18px);
    font-weight: 760;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.ledger-modal-panel {
    width: min(480px, 100%);
}

.ledger-modal-actions {
    align-items: center;
}

.ledger-modal-spacer {
    flex: 1 1 auto;
}

.money-btn.is-danger {
    border-color: #e5c4c4;
    background: #fff5f5;
    color: #9b2c2c;
}

.money-btn.is-danger:hover {
    border-color: #9b2c2c;
    background: #9b2c2c;
    color: #fff;
}

html[data-theme="dark"] .finance-add-btn {
    background: #1a1a1a;
    border-color: #333;
    color: #f2f2f2;
}

html[data-theme="dark"] .finance-add-btn:hover {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: #111;
}

html[data-theme="dark"] .money-btn.is-danger {
    border-color: #5a2a2a;
    background: #241414;
    color: #f0a0a0;
}

.finance-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.finance-list li + li {
    border-top: 1px solid #ececec;
}

.finance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 2px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.finance-row:hover {
    background: #fafafa;
}

.finance-row span {
    color: #222;
    font-size: 14px;
    font-weight: 550;
    min-width: 0;
    overflow-wrap: anywhere;
}

.finance-row b {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.finance-row svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex: 0 0 auto;
}

.finance-income-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.finance-income-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0;
}

.finance-income-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.finance-income-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: #f3f3f3;
    color: #111;
}

.finance-income-mark svg {
    width: 18px;
    height: 18px;
}

.finance-income-brand h2 {
    margin: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.finance-income-brand p {
    margin: 2px 0 0;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.35;
}

.finance-income-hero {
    display: grid;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 16px 18px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.finance-income-label {
    color: #6b6b6b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.finance-income-value {
    color: inherit;
    font-size: clamp(24px, 4.2cqi, 36px);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.finance-income-period {
    color: #6b6b6b;
    font-size: 13px;
}

.finance-income-hero:hover .finance-income-value {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.finance-income-body {
    display: grid;
    gap: 12px;
    padding: 0 18px 4px;
}

.finance-income-track {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fafafa;
}

.finance-income-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b6b6b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.finance-income-track-head b {
    color: #111;
    font-size: 13px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.finance-income-split {
    color: #6b6b6b;
}

.finance-income-meta {
    margin: 0;
    color: #6b6b6b;
    font-size: 12px;
}

.finance-income-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-income-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.finance-income-btn:hover {
    border-color: #111;
    background: #f7f7f7;
}

.finance-income-btn.is-solid {
    border-color: #111;
    background: #111;
    color: #fff;
}

.finance-income-btn.is-solid:hover {
    background: #222;
}

.finance-income-btn.is-wide {
    width: 100%;
}

.finance-goal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.finance-income-win {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #d8e8d8;
    border-radius: 14px;
    background: #f4faf4;
}

.finance-income-win-kicker {
    margin: 0;
    color: #2f5d2f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.finance-income-win-title {
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 740;
    letter-spacing: -0.03em;
}

.finance-income-win-line {
    margin: 0 0 6px;
    color: #4a6a4a;
    font-size: 12px;
    line-height: 1.4;
}

.finance-income-tip {
    margin: 0;
    padding: 12px 18px 16px;
    color: #6b6b6b;
    font-size: 12px;
    line-height: 1.4;
}

.finance-income-edit,
.finance-income-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.finance-income-edit:hover .finance-big,
.finance-income-open:hover .finance-big {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Legacy month-plan styles kept for safety if reused elsewhere */
.finance-month-plan {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 14px 0 0;
    padding: 14px 14px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
    color: #111;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.finance-month-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.finance-month-plan-kicker {
    color: #7a7a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.finance-month-plan-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 700;
}

.finance-month-plan-amount {
    font-size: 26px;
    font-weight: 760;
    letter-spacing: -0.045em;
}

.finance-month-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #666;
    font-size: 12px;
}

.finance-month-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid #ececec;
    font-size: 13px;
    font-weight: 650;
}

.finance-month-plan-cta svg {
    width: 14px;
    height: 14px;
}

.finance-card.is-won {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 0, 0, 0.04), transparent 55%),
        #fff;
}

.finance-win {
    display: grid;
    gap: 6px;
    margin-top: 2px;
    min-width: 0;
}

.finance-win-kicker {
    margin: 0;
    color: #6f6f6f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.finance-win-title {
    margin: 0;
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.finance-win .finance-big {
    margin: 4px 0 2px;
}

.finance-win-line {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.finance-win-actions {
    display: flex;
    margin-top: 8px;
}

.finance-win-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.finance-win-btn:hover {
    background: #000;
}

.remove-goal-panel {
    width: min(420px, 100%);
    overflow: auto;
}

.goal-modal-mark.is-warn {
    background: #fff7f7;
    border-color: #efd0d0;
    color: #9b2c2c;
}

.remove-goal-summary {
    display: grid;
    gap: 4px;
    margin: 0 var(--goal-panel-pad, 26px);
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
}

.remove-goal-summary span {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.remove-goal-summary strong {
    font-size: 15px;
    font-weight: 720;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.money-remove-modal .goal-modal-lede {
    margin-bottom: 14px;
}

.money-remove-modal .goal-modal-actions {
    position: static;
    margin: 18px var(--goal-panel-pad, 26px) 0;
    padding: 0 0 22px;
    border-top: 0;
    background: none;
    backdrop-filter: none;
}

html[data-theme="dark"] .finance-card.is-won {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
        #141414;
}

html[data-theme="dark"] .finance-win-kicker,
html[data-theme="dark"] .finance-win-line {
    color: #9a9a9a;
}

html[data-theme="dark"] .finance-win-btn {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: #111;
}

html[data-theme="dark"] .goal-modal-mark.is-warn {
    background: #241414;
    border-color: #5a2a2a;
    color: #f0a0a0;
}

html[data-theme="dark"] .remove-goal-summary {
    background: #1a1a1a;
    border-color: #333;
}

html[data-theme="dark"] .remove-goal-summary span {
    color: #9a9a9a;
}

.finance-month-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px dashed #ddd;
    border-radius: 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.finance-month-note.is-done {
    border-style: solid;
    border-color: #d8e8d8;
    background: #f4faf4;
    color: #2f5d2f;
}

html[data-theme="dark"] .finance-income-brand p,
html[data-theme="dark"] .finance-income-label,
html[data-theme="dark"] .finance-income-period,
html[data-theme="dark"] .finance-income-tip,
html[data-theme="dark"] .finance-income-meta,
html[data-theme="dark"] .finance-income-split,
html[data-theme="dark"] .finance-income-track-head {
    color: #b0b0b0;
}

html[data-theme="dark"] .finance-income-track {
    border-color: #2a2a2a;
    background: #161616;
}

html[data-theme="dark"] .finance-income-track-head b,
html[data-theme="dark"] .finance-income-win-title {
    color: #f2f2f2;
}

html[data-theme="dark"] .finance-income-btn {
    border-color: #333;
    background: #1c1c1c;
    color: #f2f2f2;
}

html[data-theme="dark"] .finance-income-btn:hover {
    border-color: #f2f2f2;
    background: #222;
}

html[data-theme="dark"] .finance-income-btn.is-solid {
    border-color: #f2f2f2;
    background: #f2f2f2;
    color: #111;
}

html[data-theme="dark"] .finance-income-btn.is-solid:hover {
    background: #fff;
}

html[data-theme="dark"] .finance-income-win {
    border-color: #2a4a2a;
    background: #142014;
}

html[data-theme="dark"] .finance-income-win-kicker {
    color: #9dca9d;
}

html[data-theme="dark"] .finance-income-win-line {
    color: #9a9a9a;
}

html[data-theme="dark"] .finance-month-note {
    border-color: #333;
    color: #aaa;
}

html[data-theme="dark"] .finance-month-note.is-done {
    border-color: #2a4a2a;
    background: #142014;
    color: #9dca9d;
}

.income-modal-panel,
.progress-modal-panel {
    width: min(480px, 100%);
    max-height: min(88vh, 640px);
}

.progress-modal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.progress-modal-hero > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.progress-modal-hero span,
.progress-modal-goal-name {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-modal-hero strong,
.progress-modal-hero b {
    color: #111;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 760;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.progress-modal-hero-left {
    text-align: right;
}

.progress-modal-goal-name {
    margin: 10px 2px 0;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    overflow-wrap: anywhere;
}

.progress-modal-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
}

.progress-modal-summary > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.progress-modal-summary span {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.progress-modal-summary strong {
    font-size: 15px;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.progress-modal-preview {
    margin: 10px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

html[data-theme="dark"] .progress-modal-summary,
html[data-theme="dark"] .progress-modal-hero {
    background: #1a1a1a;
    border-color: #333;
}

html[data-theme="dark"] .progress-modal-hero strong,
html[data-theme="dark"] .progress-modal-hero b {
    color: #f2f2f2;
}

html[data-theme="dark"] .progress-modal-summary span,
html[data-theme="dark"] .progress-modal-hero span,
html[data-theme="dark"] .progress-modal-goal-name,
html[data-theme="dark"] .progress-modal-preview {
    color: #9a9a9a;
}

.income-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.income-preset {
    min-height: 42px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #e5e5e5;
    border-radius: 11px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.income-preset:hover {
    border-color: #111;
    transform: translateY(-1px);
}

.income-preset.is-on {
    border-color: #111;
    background: #111;
    color: #fff;
}

.income-modal .goal-field.is-wide {
    display: grid;
}

html[data-theme="dark"] .income-preset {
    background: #1a1a1a;
    border-color: #333;
    color: #f2f2f2;
}

html[data-theme="dark"] .income-preset:hover,
html[data-theme="dark"] .income-preset.is-on {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: #111;
}

.finance-net {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px 20px;
    min-width: 0;
}

.finance-net-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.finance-net .finance-big {
    padding: 0 8px;
    border-left: 1px solid #e5e5e5;
    white-space: nowrap;
}

.finance-net-tip {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-self: end;
    max-width: 100%;
}

@container finance (max-width: 720px) {
    .finance-net {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .finance-net .finance-big {
        padding: 0;
        border-left: 0;
        white-space: normal;
    }

    .finance-net-tip {
        justify-self: start;
        padding-top: 12px;
        border-top: 1px solid #eee;
        width: 100%;
    }
}

@container fcard (max-width: 300px) {
    .finance-progress {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 14px;
    }

    .finance-donut {
        max-width: 110px;
    }

    .finance-progress ul {
        width: 100%;
    }
}

@container fcard (max-width: 220px) {
    .finance-card-head {
        flex-wrap: wrap;
    }

    .finance-progress {
        grid-template-columns: minmax(0, 1fr);
    }
}

html[data-theme="dark"] .finance-dash {
    background: #141414;
}

html[data-theme="dark"] .finance-card {
    background: #1a1a1a;
    border-color: #2e2e2e;
    color: #f2f2f2;
    box-shadow: none;
}

html[data-theme="dark"] .finance-ico,
html[data-theme="dark"] .finance-income-mark {
    background: #2a2a2a;
    color: #f2f2f2;
}

html[data-theme="dark"] .finance-pill,
html[data-theme="dark"] .finance-pill.is-link a,
html[data-theme="dark"] .finance-pill.is-link button {
    background: #2a2a2a;
    color: #e8e8e8;
}

html[data-theme="dark"] .finance-pill.is-link a:hover,
html[data-theme="dark"] .finance-pill.is-link button:hover {
    background: #353535;
    color: #fff;
}

html[data-theme="dark"] .finance-bar {
    background: #2a2a2a;
}

html[data-theme="dark"] .finance-bar > i {
    background: #f2f2f2;
}

html[data-theme="dark"] .finance-donut .fill {
    stroke: #f2f2f2;
}

html[data-theme="dark"] .finance-card-head h2,
html[data-theme="dark"] .finance-net-left h2,
html[data-theme="dark"] .finance-big,
html[data-theme="dark"] .finance-pace li b,
html[data-theme="dark"] .finance-progress li b,
html[data-theme="dark"] .finance-total strong,
html[data-theme="dark"] .finance-donut strong,
html[data-theme="dark"] .finance-row b {
    color: #f5f5f5;
}

html[data-theme="dark"] .finance-card-head p,
html[data-theme="dark"] .finance-net-left p,
html[data-theme="dark"] .finance-muted,
html[data-theme="dark"] .finance-split,
html[data-theme="dark"] .finance-progress li span,
html[data-theme="dark"] .finance-total span,
html[data-theme="dark"] .finance-pace li span {
    color: #b5b5b5;
}

html[data-theme="dark"] .finance-foot,
html[data-theme="dark"] .finance-net-tip {
    color: #cfcfcf;
}

html[data-theme="dark"] .finance-foot svg,
html[data-theme="dark"] .finance-net-tip svg {
    color: #e0e0e0;
}

html[data-theme="dark"] .finance-list li + li,
html[data-theme="dark"] .finance-foot,
html[data-theme="dark"] .finance-net .finance-big {
    border-color: #2e2e2e;
}

html[data-theme="dark"] .finance-row {
    color: #f2f2f2;
}

html[data-theme="dark"] .finance-row span {
    color: #e4e4e4;
}

html[data-theme="dark"] .finance-row svg {
    color: #a8a8a8;
}

html[data-theme="dark"] .finance-row:hover {
    background: #222;
}

html[data-theme="dark"] .finance-donut .track {
    stroke: #333;
}

html[data-theme="dark"] .finance-big.is-neg {
    color: #ff6f8a;
}

.money-kicker {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.money-month {
    display: flex;
    align-items: center;
    gap: 6px;
}

.money-month h1 {
    min-width: 0;
    margin: 0 4px;
    font-size: 30px;
    font-weight: 680;
    letter-spacing: -0.045em;
}

.money-month > a:not(.money-this) {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg);
    font-size: 20px;
    text-decoration: none;
}

.money-month > a:not(.money-this):hover { border-color: var(--fg); }

.money-this {
    margin-left: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.money-currency {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.money-select,
.money-field input,
.money-budget-form input,
.money-search input {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 14px;
}

.money-select:focus,
.money-field input:focus,
.money-budget-form input:focus,
.money-search input:focus,
.money-amount input:focus { outline: 2px solid var(--fg); outline-offset: -1px; }

.money-add {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
}

.money-add.is-editing { border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent); }

.money-add-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.money-kind {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 12px;
    background: var(--track);
}

.money-kind input { position: absolute; opacity: 0; pointer-events: none; }

.money-kind span {
    display: block;
    min-width: 104px;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
}

.money-kind input:checked + span { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.money-add[data-kind="expense"] .money-kind input:checked + span { color: var(--m-out); }
.money-add[data-kind="income"] .money-kind input:checked + span { color: var(--m-in); }
.money-kind input:focus-visible + span { outline: 2px solid var(--fg); }

.money-edit-flag {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.money-edit-flag button {
    border: 0;
    background: none;
    color: var(--fg);
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    cursor: pointer;
}

.money-add-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2fr) minmax(150px, 0.9fr);
    gap: 12px;
    align-items: end;
}

.money-amount input {
    width: 100%;
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--m-out);
    font: inherit;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.money-add[data-kind="income"] .money-amount input { color: var(--m-in); }

.money-field { display: grid; gap: 6px; }

.money-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.money-field input { width: 100%; min-height: 44px; }

.money-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
}

.money-add[data-kind="expense"] .money-chips[data-for="income"],
.money-add[data-kind="income"] .money-chips[data-for="expense"] { display: none; }

.money-chips label { position: relative; flex: 0 0 auto; }
.money-chips input { position: absolute; opacity: 0; pointer-events: none; }

.money-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.money-chips i { font-style: normal; }
.money-chips span:hover { border-color: var(--line-strong); }
.money-chips input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.money-chips input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.money-add-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 16px;
}

.money-error { margin: 0 auto 0 0; color: var(--m-out); font-size: 14px; font-weight: 600; }
.money-hint { margin: 0; color: var(--muted); font-size: 12px; }

.money-hint kbd {
    padding: 1px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    font: inherit;
    font-size: 11px;
}

.money-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.money-btn:hover { border-color: var(--fg); }
.money-btn.is-solid { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.money-btn.is-solid:hover { background: var(--hover-solid); }
.money-btn.is-big { min-height: 46px; padding: 0 22px; font-size: 15px; }
.money-btn:disabled { opacity: 0.6; cursor: progress; }

.money-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.money-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.money-card.is-balance { border-color: var(--fg); background: var(--fg); color: var(--bg); }

.money-card > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.money-card.is-balance > span,
.money-card.is-balance em { color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }

.money-card strong {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money-card.is-balance strong.is-neg { color: #ff8fa3; }

.money-card em {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money-card em.is-warn { color: var(--m-out); font-weight: 600; }

.money-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.money-dot.is-in { background: var(--m-in); }
.money-dot.is-out { background: var(--m-out); }

.money-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
    margin-top: 12px;
}

.money-grid + .money-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }

.money-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.money-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.money-panel h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.money-sub,
.money-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.money-legend .money-dot:last-of-type { margin-left: 6px; }

.money-link {
    border: 0;
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    cursor: pointer;
}

.money-budget-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.money-budget-form[hidden] { display: none; }
.money-budget-form input { flex: 1 1 auto; min-width: 0; }

.money-budget-line {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.money-budget-line strong {
    color: var(--fg);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.money-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
}

.money-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fg);
    transition: width 0.4s ease;
}

.money-meter.is-near i { background: #d98a1f; }
.money-meter.is-over i { background: var(--m-out); }

.money-facts {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.money-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.money-facts span { color: var(--muted); }
.money-facts strong { font-variant-numeric: tabular-nums; }
.money-facts .is-neg,
.money-day b.is-neg { color: var(--m-out); }

.money-facts.is-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.money-facts.is-row li {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 0;
}

.money-facts.is-row span { font-size: 12px; }

.money-empty-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.money-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 150px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line-strong);
}

.money-bars span {
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    height: 100%;
    border-radius: 4px 4px 0 0;
}

.money-bars span:hover { background: var(--track); }

.money-bars i {
    display: block;
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: color-mix(in srgb, var(--fg) 78%, transparent);
}

.money-bars span.is-today i { background: var(--m-out); }

.money-bars span.is-today.is-zero::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--m-out);
}

.money-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.money-cats {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.money-cats button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.money-cats button:hover { background: var(--track); }
.money-cats button.is-active { border-color: var(--fg); }

.money-cat-icon,
.money-row-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--track);
    font-size: 18px;
}

.money-cat-copy { display: grid; flex: 1 1 auto; gap: 5px; min-width: 0; }

.money-cat-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.money-cat-top b { font-weight: 620; }
.money-cat-top strong { font-variant-numeric: tabular-nums; }

.money-cat-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
}

.money-cats button:hover .money-cat-bar { background: var(--bg); }

.money-cat-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fg);
}

.money-cat-meta { color: var(--muted); font-size: 12px; }

.money-minor-title {
    margin: 18px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.money-sources {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.money-sources li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.money-sources strong { color: var(--m-in); font-variant-numeric: tabular-nums; }

.money-year {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    height: 170px;
}

.money-year a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 6px 2px 4px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.money-year a:hover { background: var(--track); }
.money-year a.is-on { background: var(--track); color: var(--fg); }

.money-year-bars {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.money-year-bars i {
    display: block;
    width: 38%;
    max-width: 10px;
    border-radius: 3px 3px 0 0;
}

.money-year-bars i.is-in { background: var(--m-in); }
.money-year-bars i.is-out { background: var(--m-out); }

.money-year-label {
    font-size: 11px;
    font-weight: 650;
    text-align: center;
}

.money-list-panel { margin-top: 12px; }

.money-list-head {
    flex-wrap: wrap;
}

.money-count {
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--track);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    vertical-align: 2px;
}

.money-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.money-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--track);
}

.money-seg button {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.money-seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.money-search {
    position: relative;
    display: flex;
    align-items: center;
}

.money-search svg {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
    color: var(--muted);
    pointer-events: none;
}

.money-search input { width: 180px; padding-left: 32px; }

.money-filter-sum {
    margin: -4px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--track);
    font-size: 13px;
    font-weight: 600;
}

.money-days { display: grid; gap: 14px; }

.money-day h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 4px;
    padding: 0 8px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 680;
}

.money-day h3 em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.money-day h3 b {
    margin-left: auto;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.money-day b.is-pos,
.money-row-amount.is-pos { color: var(--m-in); }

.money-day ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.money-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
}

.money-row[hidden] { display: none; }

.money-row:hover { background: var(--track); }
.money-row:hover .money-row-icon { background: var(--bg); }

.money-row-copy {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.money-row-copy strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money-row-copy span { color: var(--muted); font-size: 12px; }

.money-row-amount {
    flex: none;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.money-row-actions {
    display: flex;
    flex: none;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.money-row:hover .money-row-actions,
.money-row:focus-within .money-row-actions { opacity: 1; }

.money-row-actions button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.money-row-actions button:hover { background: var(--bg); color: var(--fg); }
.money-row-actions button[data-money-action="delete"]:hover { color: var(--m-out); }
.money-row-actions svg { width: 16px; height: 16px; }

.money-empty {
    padding: 36px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    text-align: center;
}

.money-empty strong { font-size: 16px; }
.money-empty p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.money-goals { margin-bottom: 12px; }
.money-goals > header > div { display: grid; gap: 2px; }

.money-goal-starters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.money-goal-starters button {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: none;
    color: var(--fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.money-goal-starters button:hover { border-style: solid; border-color: var(--fg); transform: translateY(-1px); }
.money-goal-starters i { font-size: 24px; font-style: normal; }
.money-goal-starters b { font-size: 15px; }
.money-goal-starters span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.money-goal-form {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
}

.money-goal-form[hidden] { display: none; }

.money-goal-kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.money-goal-kinds label { position: relative; }
.money-goal-kinds input { position: absolute; opacity: 0; pointer-events: none; }

.money-goal-kinds span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.money-goal-kinds i { grid-row: span 2; font-size: 20px; font-style: normal; }
.money-goal-kinds b { font-size: 14px; }
.money-goal-kinds small { color: var(--muted); font-size: 12px; }
.money-goal-kinds input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.money-goal-kinds input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.money-goal-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.money-goal-fields .is-wide { grid-column: 1 / -1; }
.money-goal-fields em { font-style: normal; font-weight: 400; }
.money-goal-help { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.money-goal-form .money-add-foot { margin-top: 0; }

.money-goal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 10px;
}

.money-goal {
    --goal-tone: var(--fg);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.money-goal.is-done,
.money-goal.is-ahead { --goal-tone: var(--m-in); }
.money-goal.is-behind { --goal-tone: var(--m-out); }
.money-goal.is-fresh,
.money-goal.is-upcoming,
.money-goal.is-ended { --goal-tone: var(--muted); }
.money-goal.is-done { border-color: var(--m-in); background: var(--m-in-soft); }

.money-goal-ring { position: relative; width: 76px; height: 76px; }
.money-goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.money-goal-ring circle { fill: none; stroke-width: 6; }
.money-goal-ring .track { stroke: var(--line); }
.money-goal-ring .fill { stroke: var(--goal-tone); stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }

.money-goal-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 720;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.money-goal-ring small { font-size: 11px; font-weight: 600; }
.money-goal-ring i { font-size: 28px; font-style: normal; }

.money-goal-body { display: grid; gap: 8px; min-width: 0; }

.money-goal-top {
    padding-right: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.money-goal-top h3 { margin: 0; font-size: 15px; font-weight: 680; overflow-wrap: anywhere; }

.money-goal-status {
    padding: 2px 8px;
    border: 1px solid var(--goal-tone);
    border-radius: 999px;
    color: var(--goal-tone);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.money-goal-amounts { margin: 0; color: var(--muted); font-size: 14px; }
.money-goal-amounts strong { color: var(--fg); font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.money-goal-amounts em { display: block; font-size: 12px; font-style: normal; }

.money-goal-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.money-goal-steps li { display: grid; gap: 4px; }
.money-goal-steps li::before { content: ""; height: 5px; border-radius: 999px; background: var(--line); }
.money-goal-steps li.is-on::before { background: var(--goal-tone); }
.money-goal-steps span { color: var(--muted); font-size: 10px; font-weight: 650; text-align: right; }
.money-goal-steps li.is-on span { color: var(--fg); }

.money-goal-message { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.45; }

.money-goal-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.money-goal-facts li { display: grid; gap: 1px; }
.money-goal-facts span { color: var(--muted); font-size: 11px; }
.money-goal-facts strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.money-goal-facts strong.is-pos { color: var(--m-in); }
.money-goal-facts strong.is-neg { color: var(--m-out); }

.money-goal-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.money-goal:hover .money-goal-actions,
.money-goal:focus-within .money-goal-actions { opacity: 1; }

.money-goal-actions button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.money-goal-actions button:hover { background: var(--line); color: var(--fg); }
.money-goal-actions button[data-goal-action="delete"]:hover { color: var(--m-out); }
.money-goal-actions svg { width: 15px; height: 15px; }

.money-confetti {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.money-confetti i {
    position: absolute;
    top: -16px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: #111;
    animation: money-confetti-fall linear forwards;
}

.money-confetti i:nth-child(4n + 1) { background: #17834a; }
.money-confetti i:nth-child(4n + 2) { background: #cf3654; }
.money-confetti i:nth-child(4n + 3) { background: #d4a72c; width: 6px; height: 6px; border-radius: 50%; }
html[data-theme="dark"] .money-confetti i:nth-child(4n) { background: #f5f5f5; }

@keyframes money-confetti-fall {
    to { top: 105%; rotate: 540deg; opacity: 0.2; }
}

#toast .money-undo {
    margin-left: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .money-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .money-grid,
    .money-grid + .money-grid { grid-template-columns: minmax(0, 1fr); }
    .money-goal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .finance-banner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .finance-banner-right {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .finance-banner-tag {
        display: none;
    }

    .goal-modal {
        padding: 0;
        align-items: end;
    }

    .goal-modal-panel {
        --goal-panel-pad: 18px;
        width: 100%;
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
    }

    .goal-modal-head {
        padding-top: 18px;
    }

    .goal-modal-head h2 {
        font-size: 21px;
    }

    .goal-modal-kinds {
        grid-template-columns: minmax(0, 1fr);
    }

    .goal-modal-kinds span {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
        min-height: 0;
        padding: 12px 14px;
    }

    .goal-modal-kinds i {
        grid-row: 1 / span 2;
    }

    .goal-modal-kinds b,
    .goal-modal-kinds small {
        grid-column: 2;
    }

    .goal-modal-fields,
    .goal-modal-dates {
        grid-template-columns: minmax(0, 1fr);
    }

    .goal-modal-date-sep {
        display: none;
    }

    .goal-modal-actions {
        flex-wrap: wrap;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .goal-modal-actions .money-btn {
        flex: 1 1 auto;
    }

    .income-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .money-page {
        min-height: calc(100vh - 160px);
        padding: 16px 16px 56px;
    }
    .finance-card,
    .finance-mid .finance-card {
        min-height: 0;
    }
    .money-add { padding: 14px; }
    .money-add-row { grid-template-columns: minmax(0, 1fr); }
    .money-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .money-chips span { white-space: nowrap; }
    .money-hint { display: none; }
    .money-add-foot .money-btn { flex: 1 1 auto; }
    .money-card strong { font-size: 22px; }
    .money-tools { width: 100%; }
    .money-search { flex: 1 1 100%; }
    .money-search input { width: 100%; }
    .money-row-actions { opacity: 1; }
    .money-goal-starters,
    .money-goal-kinds { grid-template-columns: minmax(0, 1fr); }
    .money-goal-list { grid-template-columns: minmax(0, 1fr); }
    .money-goal { grid-template-columns: minmax(0, 1fr); }
    .money-goal-ring { width: 64px; height: 64px; }
    .money-goal-actions { opacity: 1; }
    .finance-banner {
        top: 6px;
        border-radius: 12px;
    }
    .finance-banner-copy h1 { font-size: 15px; }
    .finance-dash { padding: 10px; border-radius: 16px; }
    .finance-card { padding: 16px 14px 14px; border-radius: 16px; }
    .finance-card-head.is-split { flex-direction: column; align-items: stretch; }
    .finance-total { text-align: left; }
    .finance-top,
    .finance-mid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Homepage checkout modal */
button.home-fill,
button.home-ghost {
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

html.ck-open {
    overflow: hidden;
}

.ck[hidden] {
    display: none;
}

.ck {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px 16px;
}

.ck-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(2px);
}

.ck-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    padding: 28px 26px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--bg);
    color: var(--fg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    animation: ck-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ck-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.ck-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ck-x:hover {
    background: var(--track);
    color: var(--fg);
}

.ck-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ck-card h2 {
    margin: 0 40px 8px 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ck-lede {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.ck-plans {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
}

.ck-plan {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ck-plan input {
    margin: 0;
    accent-color: var(--fg);
}

.ck-plan-name {
    font-size: 14px;
    font-weight: 650;
}

.ck-plan-price {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ck-plan-price em {
    font-style: normal;
    font-weight: 500;
}

.ck-plan.is-on,
.ck-plan:hover {
    border-color: var(--fg);
    background: color-mix(in srgb, var(--fg) 4%, var(--bg));
}

.ck-plan.is-featured.is-on {
    box-shadow: inset 0 0 0 1px var(--fg);
}

.ck-form {
    display: grid;
    gap: 12px;
}

.ck-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.ck-form label[hidden] {
    display: none;
}

.ck-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
}

.ck-form input:focus {
    outline: none;
    border-color: var(--fg);
}

.ck-form input.is-bad {
    border-color: #b42318;
}

.ck-form input.is-ok {
    border-color: color-mix(in srgb, var(--fg) 55%, #2f6b3a);
}

.ck-field-hint {
    margin: 2px 0 0;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.ck-field-hint[hidden] {
    display: none;
}

.ck-error {
    margin: 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.4;
}

.ck-pay {
    width: 100%;
    margin-top: 4px;
    border: 0;
}

.ck-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.ck-google:hover {
    border-color: var(--fg);
}

.ck-google[aria-busy="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.ck-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
}

.ck-link:hover {
    color: var(--fg);
}

@media (max-width: 480px) {
    .ck-card {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .ck-card h2 {
        font-size: 22px;
    }

    .ck-plan {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .ck-plan-price {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ck-card {
        animation: none;
    }
}
