:root {
    font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
    color: #24342f;
    background: #f6f7f2;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 5% 30%, #e4eddf 0, transparent 45%), radial-gradient(ellipse at 90% 90%, #e9ede0 0, transparent 45%);
    min-height: 100vh
}

.shell {
    max-width: 1160px;
    margin: auto;
    padding: 32px 40px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 750
}

.logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #295b46;
    color: white;
    border-radius: 14px;
    font-size: 24px
}

.brand-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #63756a;
    margin-top: 3px
}

.chip {
    font-size: 11px;
    letter-spacing: 1.5px;
    border: 1px solid #d9e2d7;
    border-radius: 20px;
    padding: 8px 12px;
    color: #607165
}

main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
    padding: 64px 0 40px
}

.intro {
    padding-top: 54px;
    position: sticky;
    top: 40px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 650;
    color: #698273
}

h1 {
    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.45;
    letter-spacing: -2px;
    font-weight: 650;
    margin: 24px 0
}

h1 span {
    color: #4e7b5f
}

.intro p {
    font-size: 15px;
    line-height: 1.9;
    color: #708075
}

.workspace {
    background: #fff;
    border: 1px solid #e2e8dc;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 50px #31473608
}

.account {
    display: flex;
    align-items: center;
    gap: 12px
}

.avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2e7;
    color: #59744e
}

.account strong {
    font-size: 16px;
    overflow-wrap: anywhere
}

.muted {
    color: #829085;
    font-size: 11px;
    margin-top: 5px
}

.quiet {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #678072;
    cursor: pointer;
    padding: 8px
}

.stats {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    background: #f6f8f2;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 23px 0
}

.stats div+div {
    border-left: 1px solid #e1e7dc;
    padding-left: 20px
}

.stats span {
    display: block;
    font-size: 11px;
    color: #7d8d7c
}

.stats strong {
    display: block;
    font-size: 24px;
    font-weight: 550;
    margin-top: 5px
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
    margin: 21px 0 10px
}

.step {
    color: #809578;
    font-size: 10px;
    letter-spacing: 1px
}

.optional {
    margin-left: auto;
    color: #95a08e;
    font-size: 11px;
    font-weight: 400
}

select,
textarea {
    width: 100%;
    font: inherit;
    font-size: 14px;
    color: #354b3a;
    border: 1px solid #dce4d7;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px
}

textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.6
}

textarea:disabled {
    background: #f8f9f5;
    color: #7c8979
}

select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid #aeca9b;
    outline-offset: 3px
}

.field-note {
    font-size: 12px;
    line-height: 1.7;
    color: #7a8b74;
    min-height: 20px;
    margin: 8px 0 0
}

.primary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-radius: 10px;
    background: #315f46;
    color: white;
    padding: 14px 18px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    margin: 18px 0 24px;
    transition: background .2s
}

.primary:hover {
    background: #244d37
}

.primary:disabled {
    opacity: .55;
    cursor: wait
}

.result-panel {
    border-top: 1px solid #e9ede3;
    padding-top: 18px
}

.result-heading {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1px;
    color: #91a087
}

.dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #9db58c
}

#result {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.85;
    font-size: 13px;
    color: #526749;
    margin: 12px 0 0
}

#result.error {
    color: #a45138
}

.binding-note {
    padding: 12px;
    background: #fff7df;
    border-radius: 8px;
    font-size: 12px;
    color: #846c30;
    line-height: 1.7;
    margin-bottom: 18px
}

.table-wrap {
    overflow: auto;
    max-height: 470px;
    margin-top: 14px
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left
}

td,
th {
    padding: 10px 8px;
    border-bottom: 1px solid #e8eddf;
    overflow-wrap: anywhere
}

th {
    background: #f5f7ef;
    position: sticky;
    top: 0;
    color: #728269
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 10px;
    color: #8b9984;
    line-height: 1.8;
    border-top: 1px solid #dfe5d6;
    padding-top: 20px
}

@media(max-width:760px) {
    .shell {
        padding: 22px 18px
    }

    main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 0
    }

    .intro {
        padding: 0;
        position: static
    }

    .intro h1 {
        font-size: 30px;
        margin: 12px 0
    }

    .intro h1 br {
        display: none
    }

    .intro p {
        font-size: 13px;
        margin: 0
    }

    .eyebrow {
        font-size: 9px
    }

    .workspace {
        padding: 22px;
        border-radius: 18px
    }

    footer {
        flex-direction: column;
        gap: 3px
    }

    .stats strong {
        font-size: 21px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

/* Simplified single-column layout, including narrow phone screens. */
.shell {
    max-width: 640px;
    padding: 20px 16px
}

main {
    display: block;
    padding: 0
}

.workspace {
    min-width: 0;
    padding: 24px
}

.account>div {
    min-width: 0
}

.stats>div {
    min-width: 0
}

.stats strong {
    overflow-wrap: anywhere
}

select,
textarea {
    font-size: 16px
}

.primary,
.quiet {
    min-height: 44px
}

.table-wrap {
    max-width: 100%;
    overscroll-behavior: contain
}

@media(max-width:480px) {
    .shell {
        padding: 12px 10px
    }

    .workspace {
        padding: 18px 14px;
        border-radius: 16px
    }

    .stats {
        padding: 14px 12px;
        gap: 8px
    }

    .stats div+div {
        padding-left: 10px
    }

    .stats strong {
        font-size: 20px
    }

    .muted {
        line-height: 1.6
    }
}