body.commerce { min-height: 100dvh; background: var(--page); }
.commerce-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.commerce-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 20px;
    border-bottom: 1px solid var(--border);
}
.commerce-bar .brand { margin: 0; gap: 8px; }
.commerce-bar .brand > span { font-size: 30px; }
.commerce-bar .brand img { width: 32px; height: 32px; }
.commerce-bar nav, .commerce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.commerce-bar nav :is(a, button):not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 7px;
    color: var(--green-dark);
    font-weight: 550;
}
.commerce-bar nav :is(a, button):hover, .commerce-bar nav [aria-current="page"] { background: #e6eee6; }
.commerce-main { display: grid; gap: 20px; min-width: 0; padding-block: clamp(32px, 5vw, 64px) 48px; }
.commerce-heading { display: grid; gap: 10px; }
.commerce-heading h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.commerce-heading p, .commerce-muted { color: #53665b; }
.commerce-heading p { max-width: 68ch; }
.commerce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.commerce-card, .commerce-stats > * {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}
.commerce-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: clamp(18px, 2.5vw, 32px);
    overflow-wrap: anywhere;
}
.commerce-card h2 { font-size: clamp(20px, 2vw, 24px); }
.commerce-card:has(.plan-price) { border-color: #aac3ae; background: #f0f6ee; }
.plan-price {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.plan-price :is(small, span) { font-size: 1rem; letter-spacing: normal; font-weight: 500; color: #53665b; }
.commerce-facts { margin: 0; padding-left: 1.2em; }
.commerce-facts li { padding-left: .2em; }
.commerce-facts li + li { margin-top: 7px; }
.commerce-facts li::marker { color: #528361; }
.commerce-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.commerce-stats > * { display: grid; align-content: start; gap: 5px; padding: 16px 18px; }
.commerce-stats :is(small, dt, span) { color: #53665b; font-size: .9rem; }
.commerce-stats :is(strong, b, dd) { margin: 0; color: var(--green-dark); font-size: clamp(23px, 3vw, 31px); font-variant-numeric: tabular-nums; }
.commerce-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.commerce-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.commerce-table-wrap :is(th, td) { padding: 11px 14px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.commerce-table-wrap th { background: #f2f5ef; color: #43574a; font-size: .88rem; font-weight: 600; }
.commerce-table-wrap td { font-variant-numeric: tabular-nums; }
.commerce-table-wrap tbody tr:last-child td { border-bottom: 0; }
.commerce-table-wrap form { margin: 0; }
.commerce-form, .commerce-fields { display: grid; align-items: end; gap: 13px; }
.commerce-fields { grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr)); }
.commerce .field { min-width: 0; margin: 0; }
.commerce .field :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-width: 0; font-size: 1rem; }
.commerce .btn { min-height: 42px; white-space: normal; text-align: center; }
.commerce-actions { row-gap: 10px; }
.commerce-actions a:not(.btn), .commerce-card p a:not(.btn), .commerce-auth a:not(.brand, .btn) {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: .15em;
}
.commerce-auth { width: min(100%, 480px); margin-inline: auto; }
.commerce-notice, .commerce-error, .commerce-empty {
    margin: 0;
    border-radius: 9px;
    padding: 12px 15px;
    overflow-wrap: anywhere;
}
.commerce-notice { background: #e8f1e7; color: #315940; }
.commerce-error { background: #fbebe6; color: #862f25; }
.commerce-empty { color: #53665b; background: #f5f7f3; }
.commerce :is(.commerce-notice, .commerce-error):empty { display: none; }
@media (max-width: 680px) {
    .commerce-shell { width: calc(100% - 28px); }
    .commerce-bar { gap: 6px 12px; padding-block: 12px; }
    .commerce-bar nav { gap: 2px 6px; }
    .commerce-bar nav :is(a, button):not(.btn) { padding-inline: 5px; }
    .commerce-main { gap: 14px; padding-block: 26px 36px; }
    .commerce-grid { grid-template-columns: 1fr; gap: 12px; }
    .commerce-table-wrap :is(th, td) { padding: 10px 8px; }
    .commerce-table-wrap td { min-width: 6rem; }
}
