:root {
    --ink: #273b38;
    --muted: #657774;
    --soft: #eef3ee;
    --paper: #f8f6f2;
    --white: #fff;
    --green: #547d6e;
    --green-dark: #3d6556;
    --peach: #f1d9c9;
    --rose: #b35f6c;
    --line: #e4e8e2;
    --shadow: 0 12px 35px rgba(50, 76, 67, .07);
    --radius: 20px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

.logo{
    width: 50px;

    display: block;
    max-width: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55
}

.site-header {
    min-height: 78px;
    padding: 14px clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    gap: 34px;
    border-bottom: 1px solid rgba(39, 59, 56, .08);
    background: rgba(248, 246, 242, .94)
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.04em;
    white-space: nowrap
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #e5eee6;
    border-radius: 50%;
    color: var(--green);
    font-size: 22px
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto
}

.main-nav a,
.account-nav a {
    /* color: var(--muted); */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600
}

.main-nav a:hover,
.main-nav a:focus-visible,
.text-link:hover {
    color: var(--green-dark)
}

.account-nav {
    display: flex;
    gap: 12px;
    align-items: center
}

.account-email {
    color: var(--muted);
    font-size: 13px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis
}

.inline-form {
    display: inline-flex
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 46px auto 72px;
    min-height: calc(100vh - 205px)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2 {
    letter-spacing: -.04em;
    line-height: 1.15
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 500;
    margin-bottom: 10px
}

h2 {
    font-size: 24px
}

h3 {
    font-size: 19px
}

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

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px
}

.page-heading p {
    margin-bottom: 0
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 10px 18px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font: 600 14px 'Trebuchet MS', Arial, sans-serif;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease
}

.button:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px)
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #a9c4b7;
    outline-offset: 3px
}

.button-small {
    min-height: 35px;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 9px
}

.button-wide {
    width: 100%;
    margin-top: 4px
}

.button-secondary {
    background: #edf3ee;
    color: var(--green-dark);
    border-color: #dce8dd
}

.button-secondary:hover {
    background: #dfeae0;
    border-color: #d0dfd3;
    color: var(--green-dark)
}

.button-quiet {
    background: transparent;
    color: var(--muted);
    border-color: var(--line)
}

.button-quiet:hover {
    color: var(--ink);
    background: #f3f5f1;
    border-color: #d7dfd9
}

.text-link {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none
}

.text-danger {
    border: 0;
    background: transparent;
    padding: 4px 0;
    color: var(--rose);
    font: 600 13px 'Trebuchet MS', Arial, sans-serif;
    cursor: pointer
}

.text-danger:hover {
    text-decoration: underline
}

.card {
    background: var(--white);
    border: 1px solid rgba(39, 59, 56, .07);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.alert {
    padding: 13px 16px;
    margin-bottom: 22px;
    border-radius: 12px;
    font-size: 14px
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px
}

.alert-error {
    background: #fff0ef;
    border: 1px solid #f3d2cf;
    color: #813d3d
}

.alert-success {
    background: #eaf4eb;
    border: 1px solid #d2e6d5;
    color: #365e43
}

.welcome-hero {
    min-height: 350px;
    border-radius: 28px;
    padding: clamp(30px, 6vw, 68px);
    background: #eaf0e8;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    overflow: hidden;
    position: relative
}

.hero-copy {
    max-width: 510px;
    position: relative;
    z-index: 1
}

.hero-copy p {
    max-width: 420px;
    color: var(--muted);
    margin: 16px 0 25px
}

.hero-art {
    height: 275px;
    position: relative;
    display: grid;
    place-items: center
}

.sun-disc {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: #f0d6c3;
    position: absolute;
    right: 16%;
    top: 18px;
    box-shadow: inset -15px -12px 0 rgba(199, 135, 114, .13)
}

.flower {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 155px;
    text-shadow: 0 12px 35px rgba(91, 116, 99, .17)
}

.art-caption {
    position: absolute;
    bottom: 0;
    right: 12%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #62766c
}

.notice-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-top: 26px;
    background: #f1eee7;
    border-radius: 14px;
    color: var(--muted);
    font-size: 13px
}

.notice-card>span {
    color: var(--green);
    font-weight: bold
}

.notice-card p {
    margin: 0
}

.profile-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px
}

.profile-picker label {
    font-size: 13px;
    font-weight: 700
}

.profile-picker select {
    min-width: 190px
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.stat-card {
    min-height: 148px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    box-shadow: var(--shadow)
}

.stat-estimate {
    background: #edf3ee;
    border-color: #dce8de
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600
}

.stat-card strong {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2
}

.stat-detail {
    font-size: 11px;
    color: var(--muted)
}

.section-block {
    margin-top: 42px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 16px
}

.section-heading h2 {
    margin: 0
}

.timeline {
    padding: 25px 28px
}

.timeline-item {
    position: relative;
    padding: 0 0 24px 25px;
    border-left: 1px solid #d7e4da
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent
}

.timeline-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 3px solid #fff;
    background: var(--green);
    border-radius: 50%;
    left: -6px;
    top: 4px;
    box-shadow: 0 0 0 1px #c9d9cd
}

.timeline-date {
    font-weight: 700;
    font-size: 14px
}

.timeline-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px
}

.timeline-future .timeline-dot {
    background: #e0a88f;
    box-shadow: 0 0 0 1px #edcfbf
}

.empty-state {
    text-align: center;
    padding: 55px 24px
}

.empty-state.compact {
    padding: 38px 22px
}

.empty-state p {
    color: var(--muted)
}

.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #edf3ee;
    color: var(--green);
    font-size: 24px
}

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

.profile-card {
    padding: 23px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0 15px;
    align-items: start
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8efe6;
    display: grid;
    place-items: center;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 700
}

.profile-card-main h2 {
    font-family: Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 6px
}

.profile-card-main p {
    font-size: 12px;
    margin: 0 0 4px
}

.small-note {
    font-size: 11px;
    color: var(--muted)
}

.card-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 14px
}

.delete-form {
    grid-column: 2;
    margin-top: 12px
}

.narrow-page {
    max-width: 740px;
    margin: 0 auto
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px
}

.back-link:hover {
    color: var(--green-dark)
}

.form-card {
    padding: clamp(22px, 4vw, 36px)
}

.form-card h2 {
    margin: 0 0 20px
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.form-stack label,
.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink)
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dfd9;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: 400 14px 'Trebuchet MS', Arial, sans-serif
}

textarea {
    resize: vertical;
    line-height: 1.5
}

.form-stack small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400
}

.optional {
    color: var(--muted);
    font-weight: 400
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 7px
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 18px;
    background: #edf2ed;
    border-radius: 16px;
    margin: 0 0 22px
}

.filter-bar label {
    min-width: 150px;
    flex: 1
}

.filter-bar input,
.filter-bar select {
    min-height: 40px
}

.filter-actions {
    display: flex;
    gap: 7px
}

.export-link {
    padding: 10px 0 11px;
    white-space: nowrap
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 13px
}

.history-card {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 190px 1fr auto;
    gap: 18px;
    align-items: start
}

.history-date strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500
}

.history-date .small-note {
    display: block;
    margin-top: 5px
}

.history-details {
    font-size: 13px;
    color: var(--muted)
}

.history-details p {
    margin: 10px 0
}

.history-details p strong {
    color: var(--ink)
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f5eee8;
    color: #87634e;
    font-size: 11px;
    font-weight: 700
}

.history-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px
}

.auth-layout {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(32px, 8vw, 100px);
    max-width: 980px;
    margin: 0 auto
}

.auth-intro h1 {
    max-width: 490px
}

.auth-intro>p {
    max-width: 420px;
    color: var(--muted);
    font-size: 17px
}

.quote-card {
    margin-top: 40px;
    padding: 17px 20px;
    border-left: 3px solid #d59b7f;
    color: #7a6c5f;
    font-family: Georgia, serif;
    font-size: 17px;
    background: #f1eee7;
    border-radius: 0 12px 12px 0;
    max-width: 370px
}

.auth-card {
    padding: clamp(24px, 4vw, 38px)
}

.auth-card h2 {
    margin-bottom: 8px
}

.auth-card>.muted {
    font-size: 13px;
    margin-bottom: 24px
}

.auth-switch {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px
}

.auth-switch a {
    color: var(--green-dark);
    font-weight: 700
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px
}

.feature-pills span {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600
}

.privacy-card {
    margin-top: 20px;
    padding: 20px 22px;
    background: #f0eee8;
    border-radius: 16px
}

.privacy-card h2 {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    margin-bottom: 7px
}

.privacy-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 11px !important;
    padding: 13px;
    background: #f6f7f4;
    border-radius: 12px
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--green)
}

.check-row span {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.check-row small {
    line-height: 1.45
}

.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
    color: #83918b;
    font-size: 11px;
    text-align: center
}

@media(max-width:850px) {
    .site-header {
        gap: 16px;
        flex-wrap: wrap
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
        padding: 7px 0 2px;
        gap: 20px
    }

    .account-nav {
        margin-left: auto
    }

    .page-shell {
        margin-top: 32px
    }

    .auth-layout {
        gap: 30px
    }

    .history-card {
        grid-template-columns: 150px 1fr auto
    }

    .filter-bar {
        flex-wrap: wrap
    }

    .filter-bar label {
        min-width: 135px
    }
}

@media(max-width:620px) {
    .site-header {
        padding: 12px 18px
    }

    .brand {
        font-size: 18px
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 18px
    }

    .main-nav a {
        white-space: nowrap;
        font-size: 13px
    }

    .account-email {
        display: none
    }

    .page-shell {
        width: calc(100% - 28px);
        margin: 26px auto 50px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
        gap: 16px
    }

    .page-heading>.button {
        width: 100%
    }

    .welcome-hero {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        min-height: unset
    }

    .hero-art {
        height: 200px;
        margin-top: 18px
    }

    .sun-disc {
        width: 160px;
        height: 160px;
        right: 20%;
        top: 10px
    }

    .flower {
        font-size: 110px
    }

    .art-caption {
        right: 12%;
        bottom: 0
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .stat-card {
        min-height: unset;
        padding: 17px
    }

    .stat-card strong {
        font-size: 21px
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .timeline {
        padding: 20px
    }

    .profile-picker {
        flex-wrap: wrap
    }

    .profile-picker select {
        flex: 1;
        min-width: 180px
    }

    .profile-grid {
        grid-template-columns: 1fr
    }

    .history-card {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .history-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .filter-bar label {
        min-width: 0
    }

    .filter-actions {
        grid-column: 1/-1
    }

    .export-link {
        grid-column: 1/-1;
        padding: 0
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .form-actions {
        flex-direction: column-reverse
    }

    .form-actions .button {
        width: 100%
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .auth-intro h1 {
        font-size: 39px
    }

    .quote-card {
        margin-top: 20px
    }

    .auth-card {
        padding: 23px
    }

    .narrow-page .page-heading {
        margin-bottom: 20px
    }

    .site-footer {
        width: calc(100% - 28px)
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

@media (min-width: 851px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 621px) and (max-width: 850px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.confirm-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25
}

.confirm-check input {
    width: 15px;
    min-height: 15px;
    accent-color: var(--green)
}

.history-hint {
    margin: -5px 0 22px;
    padding: 12px 15px;
    border-left: 3px solid #d59b7f;
    border-radius: 0 10px 10px 0;
    background: #f1eee7;
    color: #6e675f;
    font-size: 13px
}