:root {
    --ink: #14201c;
    --muted: #66736d;
    --paper: #f4f1e9;
    --card: #fffdf7;
    --line: #dedbd0;
    --green: #173e33;
    --green2: #245d4d;
    --mint: #b9dac8;
    --gold: #d99d35;
    --red: #b44d43;
    --shadow: 0 12px 32px rgba(20, 32, 28, 0.08);
    font-family:
            Inter,
            ui-sans-serif,
            system-ui,
            -apple-system,
            "Segoe UI",
            sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: radial-gradient(circle at 90% 0, rgba(218, 157, 53, 0.1), transparent 28rem), var(--paper);
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a {
    touch-action: manipulation;
}
.app-shell {
    min-height: 100vh;
    padding-bottom: 90px;
}
.topbar {
    height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 241, 233, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #f8e6b7;
    background: var(--green);
    clip-path: polygon(50% 0, 88% 22%, 88% 78%, 50% 100%, 12% 78%, 12% 22%);
}
.life-chip {
    font-size: 12px;
    font-weight: 750;
    color: var(--green2);
    background: #e1ebe4;
    padding: 8px 11px;
    border-radius: 30px;
}
.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4e9c73;
    border-radius: 50%;
    margin-right: 5px;
}
.hero {
    background: var(--green);
    padding: 22px 18px 26px;
    color: #f8f5e9;
    position: relative;
    overflow: hidden;
}
.hero:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -100px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transform: rotate(45deg);
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    font-weight: 850;
    color: #a6beb4;
    margin-bottom: 7px;
}
.status-grid {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    padding: 16px;
}
.stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.1em;
}
.stat-label strong {
    font-size: 14px;
    letter-spacing: 0;
}
.hp-track {
    height: 9px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin: 13px 0 9px;
    overflow: hidden;
}
.hp-track i {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #77b68d, #c4dfb6);
    box-shadow: 0 0 16px rgba(164, 219, 177, 0.5);
}
.stat-card small {
    color: #9fb4ab;
}
.gold-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
.coin {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #4d3510;
    background: linear-gradient(145deg, #f0c76d, #c58524);
    font-size: 17px;
}
.gold-card span {
    display: block;
    color: #a9bdb4;
    font-size: 10px;
    letter-spacing: 0.14em;
    font-weight: 800;
}
.gold-card strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 29px;
    color: #f5d68e;
}
.gold-card em {
    font:
            800 11px Inter,
            system-ui;
    letter-spacing: 0.12em;
}
.pause-banner {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f3c969;
    color: #3b2c10;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.pause-banner button {
    float: right;
    border: 0;
    background: none;
    text-decoration: underline;
    font-weight: 800;
}
.intro,
.page-head {
    padding: 28px 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
}
.intro h1,
.page-head h1 {
    font:
            700 33px/1.05 Georgia,
            serif;
    margin: 0;
}
.intro p,
.page-head p {
    color: var(--muted);
    margin: 7px 0 0;
}
.intro .eyebrow,
.page-head .eyebrow {
    color: #8b672c;
}
.income-pill {
    text-align: right;
    border-left: 1px solid var(--line);
    padding-left: 14px;
    white-space: nowrap;
}
.income-pill span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
}
.income-pill strong {
    font: 700 17px Georgia;
    color: #926924;
}
.task-section,
.manage-section {
    padding: 14px 18px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.section-title h2 {
    font:
            700 20px Georgia,
            serif;
    margin: 0;
}
.section-title > span,
.section-title a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}
.card-list,
.habit-grid {
    display: grid;
    gap: 9px;
}
.task-card {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 12px rgba(20, 32, 28, 0.025);
}
.task-card.completed {
    opacity: 0.55;
}
.complete-ring {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 2px solid #aac4b8;
    background: transparent;
    border-radius: 50%;
    color: var(--green2);
    font-weight: 900;
    font-size: 18px;
}
.complete-ring:not(:disabled):active {
    transform: scale(0.9);
}
.task-content {
    min-width: 0;
    flex: 1;
}
.task-top {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}
.task-card h3,
.habit-card h3 {
    font-size: 14px;
    margin: 2px 0 4px;
}
.task-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 8px;
}
.difficulty {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 4px 6px;
    border-radius: 4px;
    background: #edf0eb;
    color: #52605b;
    white-space: nowrap;
}
.difficulty.hard,
.difficulty.very_hard {
    background: #f1ddd5;
    color: #914a3e;
}
.difficulty.medium {
    background: #f3e8cd;
    color: #8a682c;
}
.task-meta {
    display: flex;
    gap: 13px;
    font-size: 10px;
    color: #7b867f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.task-meta span:first-child {
    color: #946c24;
    font-weight: 800;
}
.checkpoints {
    border-top: 1px dashed var(--line);
    padding: 8px 0 5px;
    margin-top: 8px;
    display: grid;
    gap: 5px;
}
.checkpoints label {
    font-size: 12px;
    color: #58665f;
    display: flex;
    gap: 7px;
}
.habit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e5ede7;
    border: 1px solid #ccdbd1;
    border-radius: 11px;
    padding: 13px 12px;
}
.habit-card span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.habit-actions {
    display: flex;
    gap: 7px;
}
.habit-actions button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 9px;
    font-size: 25px;
}
.plus {
    background: var(--green2);
    color: #fff;
}
.minus {
    background: #f0deda;
    color: var(--red);
}
.empty {
    border: 1px dashed #c9c7bd;
    border-radius: 12px;
    padding: 25px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
}
.bottom-nav a {
    text-decoration: none;
    color: #7a837f;
    text-align: center;
    padding: 5px 2px;
    border-radius: 8px;
}
.bottom-nav span {
    display: block;
    font-size: 20px;
    height: 23px;
}
.bottom-nav small {
    font-size: 9px;
}
.bottom-nav a.active {
    color: var(--green);
    background: #e8eee8;
    font-weight: 800;
}
.primary,
.secondary,
.text-button {
    border: 0;
    border-radius: 9px;
    padding: 12px 16px;
    font-weight: 800;
}
.primary {
    background: var(--green);
    color: white;
}
.primary:disabled {
    opacity: 0.35;
}
.secondary {
    background: #e2e7e1;
    color: var(--green);
}
.text-button {
    background: transparent;
    color: var(--green2);
    padding: 7px;
}
.reward-grid {
    padding: 12px 18px;
    display: grid;
    gap: 12px;
}
.reward-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    box-shadow: var(--shadow);
}
.reward-glyph {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #f3e6c5;
    color: #9d6c18;
    border-radius: 50%;
}
.reward-card h3 {
    margin: 2px 0 4px;
    font: 700 18px Georgia;
}
.reward-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.reward-price,
.afford {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 11px;
}
.reward-price strong {
    font: 700 22px Georgia;
    color: #946a22;
}
.reward-price span {
    color: #367559;
    font-weight: 800;
}
.afford {
    border: 0;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
}
.afford small {
    font-size: 10px;
}
.buy {
    grid-column: 1/-1;
}
.manage-list,
.stat-panels {
    display: grid;
    gap: 9px;
}
.manage-row,
.settings-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.manage-row strong,
.manage-row span {
    display: block;
}
.manage-row span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.manage-row button {
    border: 0;
    background: transparent;
    color: var(--green2);
    font-size: 12px;
    padding: 8px;
}
.manage-row .danger-link {
    color: var(--red);
}
.settings-card {
    display: block;
}
.settings-card p {
    color: var(--muted);
    font-size: 13px;
}
.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filters {
    padding: 8px 18px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.filters label {
    font-size: 10px;
    color: var(--muted);
}
.filters input,
.filters select {
    width: 100%;
    margin-top: 4px;
}
.timeline {
    padding: 4px 18px;
    display: grid;
}
.timeline article {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    gap: 9px;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    align-items: start;
}
.event-dot {
    width: 9px;
    height: 9px;
    background: #4a9670;
    border-radius: 50%;
    margin-top: 4px;
}
.event-dot.bad {
    background: var(--red);
}
.timeline strong {
    font-size: 13px;
}
.timeline p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 12px;
}
.timeline time {
    font-size: 10px;
    color: #8a918d;
}
.stat-panels {
    padding: 12px 18px;
}
.stat-panels section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 17px;
}
.stat-panels h2 {
    font: 700 19px Georgia;
    margin: 0 0 14px;
}
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.metric-grid strong,
.metric-grid span {
    display: block;
}
.metric-grid strong {
    font: 700 26px Georgia;
    color: var(--green2);
}
.metric-grid span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.death-panel {
    text-align: center;
    background: var(--card);
    margin: 24px 18px;
    padding: 38px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.skull {
    font-size: 46px;
}
.death-panel h1 {
    font: 700 32px Georgia;
    margin: 7px;
}
.death-panel p {
    color: var(--muted);
    max-width: 430px;
    margin: 8px auto 22px;
}
.dangerous {
    background: #763b35;
}
dialog {
    width: min(94vw, 520px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
dialog::backdrop {
    background: rgba(11, 22, 18, 0.65);
    backdrop-filter: blur(3px);
}
#item-form {
    padding: 20px;
    display: grid;
    gap: 13px;
}
.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.dialog-head h2 {
    font: 700 25px Georgia;
    margin: 0;
}
.close-dialog {
    border: 0;
    background: none;
    font-size: 27px;
}
.field,
label {
    display: grid;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #5e6964;
}
input,
select,
textarea {
    border: 1px solid #cbcfc8;
    background: #fff;
    padding: 11px;
    border-radius: 8px;
    color: var(--ink);
    width: 100%;
}
.inline-check {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
}
.inline-check input {
    width: auto;
}
.type-fields {
    display: none;
    gap: 13px;
}
.type-fields.visible {
    display: grid;
}
.wide {
    width: 100%;
    margin-top: 5px;
}
#toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    z-index: 50;
    transform: translate(-50%, 20px);
    background: #13251f;
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    box-shadow: var(--shadow);
    white-space: nowrap;
}
#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
#toast.error {
    background: #7f3a34;
}
@media (min-width: 760px) {
    .app-shell {
        padding: 0 0 30px 190px;
        /*max-width: 1500px;*/
        margin: auto;
    }
    .topbar {
        margin-left: -190px;
        padding: 0 32px;
    }
    .bottom-nav {
        top: 68px;
        bottom: 0;
        right: auto;
        width: 190px;
        grid-template-columns: 1fr;
        align-content: start;
        padding: 24px 13px;
        border-top: 0;
        border-right: 1px solid var(--line);
        gap: 6px;
    }
    .bottom-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 11px 15px;
    }
    .bottom-nav span {
        font-size: 19px;
    }
    .bottom-nav small {
        font-size: 12px;
    }
    .hero {
        padding: 28px 38px;
    }
    .status-grid {
        grid-template-columns: 2fr 1fr;
    }
    .intro,
    .page-head,
    .task-section,
    .manage-section,
    .reward-grid,
    .stat-panels,
    .timeline,
    .filters {
        padding-left: 38px;
        padding-right: 38px;
    }
    .habit-grid,
    .reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-list.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .intro h1,
    .page-head h1 {
        font-size: 40px;
    }
    .stat-panels {
        grid-template-columns: repeat(3, 1fr);
    }
    .filters {
        grid-template-columns: repeat(4, 1fr);
        align-items: end;
    }
}
@media (min-width: 1120px) {
    .habit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reward-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.login {
    width: min(92%, 390px);
    margin: 12vh auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.login .brand {
    margin-bottom: 44px;
}
.login h1 {
    font: 700 34px Georgia;
    margin: 4px 0;
}
.login p {
    color: var(--muted);
    margin: 0 0 24px;
}
.login form {
    display: grid;
    gap: 15px;
}
.login-error {
    background: #f1deda;
    color: #873d36;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 14px;
}
.expense-list {
    display: grid;
    gap: 9px;
}
.expense-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.expense-list strong {
    color: #914a3e;
}
.muted {
    color: var(--muted);
    font-size: 12px;
}
.daily-card.not-due {
    border-color: #d6ddd8;
    background: #fbfcf8;
}
.daily-card.not-due .complete-ring {
    border-color: #c5d1cb;
}
.daily-card.is-due {
    border-left: 3px solid var(--green2);
}
.daily-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 5px 0 2px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #edf0ec;
    color: #637069;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.daily-status.due {
    background: #dcebe2;
    color: #246148;
}
.checkpoints {
    gap: 0;
    padding: 6px 0 4px;
}
.checkpoints .checkpoint-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 7px 4px;
    border-radius: 8px;
    cursor: pointer;
    color: #58665f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.checkpoints .checkpoint-row:active {
    background: #edf1ec;
}
.checkpoints .checkpoint-row input {
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #9fafa7;
    border-radius: 5px;
    background: #fff;
    display: grid;
    place-items: center;
    flex: none;
}
.checkpoints .checkpoint-row input:checked {
    background: var(--green2);
    border-color: var(--green2);
}
.checkpoints .checkpoint-row input:checked:after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}
.checkpoints .checkpoint-row input:checked + span {
    text-decoration: line-through;
    color: #89928d;
}
.checkpoints .checkpoint-row input:disabled {
    opacity: 0.65;
    cursor: default;
}
.checkpoints .checkpoint-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.habit-content {
    min-width: 0;
    flex: 1;
}
.habit-content p {
    margin: 4px 12px 7px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.habit-actions {
    flex: none;
}
.bottom-nav {
    grid-template-columns: repeat(6, 1fr);
}
.calendar-head {
    margin: 8px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calendar-head a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--green);
    text-decoration: none;
}
.calendar-head strong {
    font: 700 19px Georgia;
}
.calendar {
    margin: 0 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
}
.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.weekdays span {
    text-align: center;
    padding: 9px 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
}
.calendar-grid article {
    min-height: 61px;
    padding: 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.calendar-grid article:nth-child(7n) {
    border-right: 0;
}
.calendar-grid b {
    font-size: 11px;
}
.calendar-grid .outside {
    opacity: 0.3;
}
.calendar-grid .today b {
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: -2px;
}
.calendar-grid article div {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.calendar-grid i,
.calendar-legend i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a9670;
}
.calendar-grid i.bad,
.calendar-legend i.bad {
    background: var(--red);
}
.calendar-grid i.gold,
.calendar-legend i.gold {
    background: var(--gold);
}
.calendar-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 11px;
    color: var(--muted);
    font-size: 9px;
}
.calendar-legend i {
    margin-right: 4px;
}
@media (min-width: 760px) {
    .bottom-nav {
        grid-template-columns: 1fr;
    }
    .calendar,
    .calendar-head {
        margin-left: 38px;
        margin-right: 38px;
    }
    .calendar-grid article {
        min-height: 95px;
        padding: 9px;
    }
}
.schedule-examples {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f4f4ee;
}
.schedule-examples summary {
    padding: 11px 12px;
    cursor: pointer;
    color: var(--green2);
    font-size: 12px;
    font-weight: 800;
}
.schedule-example-grid {
    padding: 0 11px 11px;
    display: grid;
    gap: 8px;
}
.schedule-example-grid article {
    background: #fff;
    border: 1px solid #e2e1d9;
    border-radius: 7px;
    padding: 9px;
}
.schedule-example-grid strong {
    font-size: 11px;
}
.schedule-example-grid pre {
    margin: 6px 0;
    padding: 7px;
    border-radius: 5px;
    background: #14201c;
    color: #dbe9df;
    overflow: auto;
    font:
            10px/1.4 ui-monospace,
            monospace;
}
.schedule-example-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}
@media (min-width: 520px) {
    .schedule-example-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.frequency-field > small {
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
}
.frequency-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid #cbcfc8;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.frequency-input input {
    border: 0;
    border-radius: 0;
    min-width: 0;
}
.frequency-input span {
    padding: 0 11px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}
.frequency-projection {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.frequency-projection span {
    padding: 5px 8px;
    border-radius: 20px;
    background: #e7eee9;
    color: var(--green2);
    font-size: 10px;
    font-weight: 800;
}
.frequency-field details {
    border-top: 1px dashed var(--line);
    padding-top: 7px;
}
.frequency-field summary {
    cursor: pointer;
    color: var(--green2);
    font-size: 10px;
}
.frequency-field details div {
    padding-top: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
}
.frequency-field code {
    color: var(--ink);
    font-weight: 800;
}
.frequency-comparison {
    padding: 8px 18px;
}
.frequency-table {
    display: grid;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.frequency-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}
.frequency-table > div:last-child {
    border-bottom: 0;
}
.frequency-table strong {
    grid-row: 1/3;
    font-size: 12px;
    align-self: center;
    overflow-wrap: anywhere;
}
.frequency-table span {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}
.frequency-table span:last-child {
    color: var(--green2);
    font-weight: 800;
}
.frequency-table > .muted {
    padding: 14px;
}
@media (min-width: 760px) {
    .frequency-comparison {
        padding-left: 38px;
        padding-right: 38px;
    }
    .frequency-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .frequency-table > div:nth-last-child(2) {
        border-bottom: 0;
    }
}
