/* Lemonade Empire: panels.css */

.active-boosts{min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 4px;flex-wrap:wrap;font-size:10px;color:var(--muted)}

.active-boosts .active-chip{background:#e8eed9;border:1px solid #c5d3b7;padding:3px 9px;border-radius:20px;color:var(--green)}

.stat-progress,.boost-progress{height:5px;background:#dce0cc;border-radius:10px;overflow:hidden;margin-top:6px}

.stat-progress-bar,.boost-progress-bar{height:100%;width:100%;transform-origin:left;transform:scaleX(0);background:#ceac39}

.sell-progress .stat-progress-bar,.boost-progress-active .boost-progress-bar{background:#69905b}

.overlay{display:none;position:fixed;inset:0;z-index:200;max-width:1040px;margin:auto;padding:24px;align-items:center;justify-content:flex-end}

.overlay.is-open{display:flex}

.overlay-backdrop{position:absolute;inset:0;background:#17382380;backdrop-filter:blur(3px)}

.overlay-card{position:relative;display:flex;flex-direction:column;width:min(510px,100%);max-height:calc(100dvh - 48px);background:var(--paper);border:1px solid #e6e4d1;border-radius:20px;box-shadow:0 20px 60px #172e3950;overflow:hidden;animation:drawer-in .18s ease-out}

.overlay-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 22px 17px;border-bottom:1px solid var(--line);flex-shrink:0}

.overlay-head h2{font-size:30px;line-height:1.15;margin:7px 0 0}

.overlay-close{font-size:27px;background:#efeede;min-width:44px;height:44px;border-radius:50%;line-height:1}

.overlay-body{padding:18px 22px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-color:#b0ba99 transparent;scrollbar-width:thin}

.overlay-foot{padding:13px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;flex-shrink:0}

.panel-intro{font-size:12px;color:var(--muted);margin-bottom:15px}

.buy-qty-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}

.buy-qty-label{font-size:11px;color:var(--muted)}

.buy-qty-group{display:flex;gap:3px;background:#eaeade;padding:4px;border-radius:9px}

.buy-qty-chip{min-height:38px;padding:7px 13px;background:transparent;border-radius:6px;font-size:12px}

.buy-qty-chip.is-active{background:var(--green);color:#fffdea}

.upgrade-list{display:flex;flex-direction:column;gap:11px}

.upgrade{display:grid;grid-template-columns:43px minmax(0,1fr);gap:8px 12px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#f6f5eb}

.upgrade.is-affordable{border-color:#a7bc8e;background:#f3f6e9}

.upgrade-icon,.boost-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#edeccf;color:#6c793f}

.upgrade-title-compact{font-weight:bold;font-size:13px}

.upgrade-level{font-size:10px;font-weight:normal;color:#6c734a;margin-top:3px;display:block}

.upgrade-description{font-size:11px;color:var(--muted);grid-column:2;margin:0}

.upgrade-cost-compact{font-size:17px;font-weight:bold;overflow-wrap:anywhere}

.upgrade-actions{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px}

.buy-btn,.boost-use-btn{border-radius:8px;min-height:40px;padding:8px 14px;background:var(--green);color:#fffdec;font-size:11px;font-weight:bold;flex-shrink:0}

.upgrade-details{grid-column:2;font-size:10px;color:var(--muted)}

.upgrade-details summary{cursor:pointer;width:fit-content;padding:7px 0}

.upgrade-details p{margin:4px 0 0}

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

.boost{display:grid;grid-template-columns:43px 1fr;gap:9px 12px;padding:15px;background:#f5f3e5;border:1px solid var(--line);border-radius:13px}

.boost-top{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}

.boost-title{font-size:14px;font-weight:bold}

.boost-desc{grid-column:2;font-size:11px;color:var(--muted)}

.boost-bars{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:15px}

.boost-bar-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}

.boost-cost-note{grid-column:2;font-size:10px;color:var(--muted)}

.upgrade-tooltip{position:fixed;pointer-events:none;z-index:80;background:#244532;color:#fffbe8;max-width:min(320px,calc(100vw - 16px))!important;padding:15px;border-radius:12px;font-size:11px;box-shadow:var(--shadow)}

.tip-title{font-size:14px;font-weight:bold;margin-bottom:6px}

.tip-desc{color:#e0e7d3;margin-bottom:8px}

.tip-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}

.tip-span2{grid-column:1/-1}

.tip-muted{color:#d0dbbd}

#statsOverlay .overlay-card{width:690px}

.stats-section{margin-bottom:24px}

.stats-h3{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#54714c;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:10px}

.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}

.statrow{padding:12px;border-radius:9px;background:#f2f2e7;min-width:0}

.statrow-label{font-size:10px;color:var(--muted)}

.statrow-value{font-size:17px;font-weight:bold;margin:4px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

.statrow-help{font-size:9px;color:var(--muted)}

.motion-option{display:flex;align-items:center;gap:10px;font-size:13px;margin:25px 0}

.motion-option input{width:22px;height:22px;accent-color:var(--green)}

.danger-button{background:#8c3c2f;color:#fff8ed;border-radius:8px;padding:12px 18px;font-size:13px}

html.has-overlay,html.has-overlay body{overflow:hidden}

@keyframes drawer-in{from{opacity:0;transform:translateX(15px)}to{opacity:1;transform:none}}

.active-boosts.has-active{color:#28583b;font-weight:bold;background:#eaf0dd;border-radius:8px;margin:5px 0}

.buy-btn,.boost-use-btn,.buy-qty-chip{min-height:44px}

.upgrade-details summary{min-height:32px;display:list-item}

.active-boosts{overflow-wrap:anywhere}

.stage-tooltip-character {
    position: absolute;
    left: -15px;
    bottom: 0;
    display: block;
    width: 86px;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.stage-tooltip-content {
    display: block;
    min-width: 0;
}

.stage-tooltip-content strong {
    display: block;
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.2;
    color: var(--ink);
}

.stage-tooltip-content > span {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
}

#shopPanel,
#boostPanel,
#statsOverlay {
    align-items: flex-end;
    justify-content: center;
}

#shopPanel .overlay-card,
#boostPanel .overlay-card,
#statsOverlay .overlay-card {
    width: min(760px, 100%);
    height: min(800px, calc(100dvh - 100px));
    max-height: calc(100dvh - 90px);
    border-radius: 20px 20px 0 0;
}

.overlay.is-closing {
    display: flex;
}

#shopPanel.is-open .overlay-card,
#boostPanel.is-open .overlay-card,
#statsOverlay.is-open .overlay-card {
    animation: bottom-sheet-in .28s cubic-bezier(.22, .8, .32, 1) both;
}

#shopPanel.is-open .overlay-backdrop,
#boostPanel.is-open .overlay-backdrop,
#statsOverlay.is-open .overlay-backdrop {
    animation: bottom-backdrop-in .22s ease-out both;
}

#shopPanel.is-closing .overlay-card,
#boostPanel.is-closing .overlay-card,
#statsOverlay.is-closing .overlay-card {
    animation: bottom-sheet-out .24s ease-in both;
}

#shopPanel.is-closing .overlay-backdrop,
#boostPanel.is-closing .overlay-backdrop,
#statsOverlay.is-closing .overlay-backdrop {
    animation: bottom-backdrop-out .24s ease-in both;
}

@keyframes bottom-sheet-in {
    from {
        transform: translateY(calc(100% + 80px));
    }

    to {
        transform: translateY(0);
    }
}

@keyframes bottom-sheet-out {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(100% + 80px));
    }
}

@keyframes bottom-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bottom-backdrop-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

html.reduce-motion #shopPanel.is-open .overlay-card,
html.reduce-motion #boostPanel.is-open .overlay-card,
html.reduce-motion #statsOverlay.is-open .overlay-card,
html.reduce-motion #shopPanel.is-closing .overlay-card,
html.reduce-motion #boostPanel.is-closing .overlay-card,
html.reduce-motion #statsOverlay.is-closing .overlay-card,
html.reduce-motion #shopPanel.is-open .overlay-backdrop,
html.reduce-motion #boostPanel.is-open .overlay-backdrop,
html.reduce-motion #statsOverlay.is-open .overlay-backdrop,
html.reduce-motion #shopPanel.is-closing .overlay-backdrop,
html.reduce-motion #boostPanel.is-closing .overlay-backdrop,
html.reduce-motion #statsOverlay.is-closing .overlay-backdrop {
    animation: none !important;
}

.sale-unlock-shop{margin:0 0 20px;padding:0 0 18px;border-bottom:1px solid var(--line)}

.shop-subheading h3{margin:4px 0}

.shop-subheading p{font-size:10px;color:var(--muted)}

.sale-unlock-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}

.sale-unlock-row{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f6f5eb}

.sale-unlock-row.is-affordable{border-color:#a7bc8e;background:#f3f6e9}

.sale-unlock-title,.sale-unlock-desc{display:block}

.sale-unlock-desc{font-size:9px;color:var(--muted)}

.sale-unlock-action{display:flex;align-items:center;justify-content:space-between;gap:8px}

.sale-unlock-cost{font-weight:bold}

#prestigePanel {
    align-items: flex-end;
    justify-content: center;
}

#prestigePanel .overlay-card {
    width: min(820px, 100%);
    height: min(800px, calc(100dvh - 70px));
    max-height: calc(100dvh - 70px);
    border-radius: 20px 20px 0 0;
}

#prestigePanel.is-open .overlay-card {
    animation: bottom-sheet-in .28s cubic-bezier(.22,.8,.32,1) both;
}

#prestigePanel.is-closing .overlay-card {
    animation: bottom-sheet-out .24s ease-in both;
}

.prestige-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}

.prestige-empty svg{width:54px;height:54px;color:#a27831}

/* Storage bottom sheet. */
#storagePanel {
    align-items: flex-end;
    justify-content: center;
}

#storagePanel .overlay-card {
    width: min(760px, 100%);
    height: min(620px, calc(100dvh - 100px));
    max-height: calc(100dvh - 90px);
    border-radius: 20px 20px 0 0;
}

#storagePanel.is-open .overlay-card {
    animation: bottom-sheet-in .28s cubic-bezier(.22, .8, .32, 1) both;
}

#storagePanel.is-open .overlay-backdrop {
    animation: bottom-backdrop-in .22s ease-out both;
}

#storagePanel.is-closing .overlay-card {
    animation: bottom-sheet-out .24s ease-in both;
}

#storagePanel.is-closing .overlay-backdrop {
    animation: bottom-backdrop-out .24s ease-in both;
}

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

.storage-stat {
    padding: 14px;
    background: #f3f3e8;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.storage-stat span,
.storage-upgrade-card small {
    display: block;
    font-size: 9px;
    color: var(--muted);
}

.storage-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.storage-meter {
    height: 10px;
    margin: 18px 0 9px;
    overflow: hidden;
    background: #dce0cc;
    border-radius: 999px;
}

.storage-meter-fill {
    width: 100%;
    height: 100%;
    background: #69905b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease, background .18s ease;
}

.storage-meter-fill.is-overflowing {
    background: #b5673d;
}

.storage-loss-line {
    margin: 0 0 18px;
    font-size: 11px;
    color: var(--muted);
}

.storage-loss-line.is-overflowing {
    color: #8c3c2f;
    font-weight: 700;
}

.storage-upgrade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border: 1px solid #cdd7ba;
    border-radius: 12px;
    background: #f3f6e9;
}

.storage-upgrade-card strong {
    display: block;
    margin: 4px 0 3px;
    font-size: 16px;
}

.storage-upgrade-button {
    min-width: 150px;
}

/* First-run stand naming. */
/* Account registration / login. */
.stand-name-overlay{
    align-items:center;
    justify-content:center;
    max-width:none;
    padding:20px
}

.stand-name-overlay.is-open{display:flex}

.stand-name-card{
    position:relative;
    z-index:1;
    width:min(540px,100%);
    max-height:calc(100dvh - 40px);
    overflow:auto;
    padding:28px;
    background:var(--paper);
    border:1px solid #e2dfc9;
    border-radius:20px;
    box-shadow:0 24px 70px #13261b52
}

.stand-name-card h2{
    margin:8px 0 10px;
    font-size:32px;
    line-height:1.08
}

.stand-name-card>p,
.stand-name-card>.stand-account-security-note{
    color:var(--muted);
    font-size:12px;
    line-height:1.65
}

.stand-account-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin:22px 0 6px;
    padding:5px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#eeeee3
}

.stand-account-tab{
    min-height:42px;
    padding:8px 12px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--muted);
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer
}

.stand-account-tab.is-active{
    background:#fffef8;
    color:var(--green);
    box-shadow:0 2px 8px #2b432117
}

.stand-account-panel[hidden]{
    display:none!important
}

.stand-name-card form{
    display:grid;
    gap:9px;
    margin:16px 0
}

.stand-name-card label{
    margin-top:3px;
    font-size:11px;
    font-weight:700
}

.stand-name-card input{
    width:100%;
    min-height:50px;
    padding:11px 13px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fffef8;
    color:var(--ink);
    font-size:16px
}

.stand-name-card input:focus{
    border-color:#78956a;
    outline:3px solid #78956a2b;
    outline-offset:1px
}

.stand-account-field-note{
    margin:-3px 0 2px;
    color:var(--muted);
    font-size:10px
}

.stand-name-status{
    min-height:20px;
    margin:2px 0 0;
    font-size:10px
}

.stand-name-status[data-state="available"]{
    color:#2f6b43;
    font-weight:700
}

.stand-name-status[data-state="unavailable"],
.stand-name-status[data-state="error"]{
    color:#8c3c2f;
    font-weight:700
}

.stand-name-submit{
    min-height:48px;
    padding:10px 16px;
    border-radius:10px;
    background:var(--green);
    color:#fffdec;
    font-weight:700
}

.stand-name-submit:disabled{
    background:#e4e5db;
    color:#777d73
}

.stand-account-security-note{
    display:block;
    margin-top:5px
}

@media(max-width:560px){
    .stand-name-overlay{padding:12px}

    .stand-name-card{
        padding:22px 18px;
        max-height:calc(100dvh - 24px);
        border-radius:17px
    }

    .stand-name-card h2{
        font-size:28px
    }
}


/* =========================================================
   Prestige
   ========================================================= */

.prestige-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

/*
 * Every Prestige section is content-sized. The scroll container itself
 * handles overflow; individual sections must never be compressed to make
 * the complete panel fit its fixed height.
 */
.prestige-body > * {
    flex: 0 0 auto;
}

.prestige-body .panel-intro {
    margin: 0;
}

.prestige-summary-card {
    display: grid;
    grid-template-columns: .7fr 1.2fr 1fr;
    grid-auto-rows: auto;
    flex: 0 0 auto;
    min-height: 92px;
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 13px;
}

.prestige-summary-card > div {
    display: flex;
    min-width: 0;
    min-height: 92px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 15px 13px;
    background: #f7f4e5;
}

.prestige-big-value {
    display: block;
    margin-top: 5px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    line-height: 1.2;
    white-space: nowrap;
}

.prestige-gold {
    color: #8d6810;
}

.prestige-award-summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

.prestige-meter-card,
.prestige-bonus-card,
.prestige-action-card,
.prestige-confirm {
    padding: 14px 15px;
    background: #f7f4e5;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.prestige-meter-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 9px;
}

.prestige-meter-labels strong {
    color: #82671a;
}

.prestige-meter {
    position: relative;
    height: 10px;
    margin-top: 9px;
    overflow: hidden;
    background: #e4dfc4;
    border: 1px solid #d3c99b;
    border-radius: 999px;
}

.prestige-meter-fill {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #c79c29, #e1bb45 60%, #f0d875);
    border-radius: inherit;
    transition: transform .3s ease;
}

.prestige-meter-percent {
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
    text-align: right;
}

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

.prestige-list-card {
    padding: 14px 15px;
    background: #f7f4e5;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.prestige-list-card.is-keep {
    border-left: 4px solid #789566;
}

.prestige-list-card.is-reset {
    border-left: 4px solid #b38163;
}

.prestige-list-card h3,
.prestige-bonus-card h3 {
    margin: 4px 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
}

.prestige-list-card ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.prestige-list-card.is-keep li::before {
    content: '✓';
    margin-right: 7px;
    color: var(--green);
    font-weight: 800;
}

.prestige-list-card.is-reset li::before {
    content: '↻';
    margin-right: 7px;
    color: #9a6041;
    font-weight: 800;
}

.prestige-bonus-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: center;
}

.prestige-bonus-card p {
    margin: 0;
    color: var(--muted);
    font-size: 9px !important;
    line-height: 1.6;
}

.prestige-bonus-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid #ddd5b4;
    border-radius: 10px;
}

.prestige-bonus-stats > div {
    padding: 10px 7px;
    background: #fffbee;
    text-align: center;
}

.prestige-bonus-stats > div + div {
    border-left: 1px solid #ddd5b4;
}

.prestige-bonus-stats span,
.prestige-bonus-stats strong {
    display: block;
}

.prestige-bonus-stats span {
    color: var(--muted);
    font-size: 7px;
    text-transform: uppercase;
}

.prestige-bonus-stats strong {
    margin-top: 3px;
    color: #7c6119;
    font-family: Georgia, serif;
    font-size: 14px;
}

.prestige-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.prestige-action-card strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.prestige-button {
    min-height: 42px;
    padding: 10px 15px;
    color: #fffbea;
    background: #846817;
    border: 1px solid #6f5610;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
}

.prestige-button:hover:not(:disabled) {
    filter: brightness(1.08);
}

.prestige-button:disabled {
    cursor: not-allowed;
    opacity: .46;
}

.prestige-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff6d7;
    border-color: #d8c16d;
}

.prestige-confirm[hidden] {
    display: none;
}

.prestige-confirm strong,
.prestige-confirm p {
    display: block;
}

.prestige-confirm strong {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 15px;
}

.prestige-confirm p {
    max-width: 480px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px !important;
    line-height: 1.5;
}

.prestige-confirm-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.secondary-button {
    min-height: 42px;
    padding: 10px 13px;
    color: var(--ink);
    background: #fffdf4;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}

.prestige-action-status {
    min-height: 16px;
    margin: 0;
    color: #715817;
    font-size: 9px !important;
    text-align: center;
}

html.reduce-motion .prestige-meter-fill {
    transition: none;
}

/* =========================================================
   Statistics tabs
   ========================================================= */

.stats-tabs {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    gap: 7px;
    margin: -2px 0 18px;
    padding: 4px 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    background: var(--paper, #fffdf2);
}

.stats-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f1f1e6;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.stats-tab:hover {
    color: var(--green);
    border-color: #aac19f;
    transform: translateY(-1px);
}

.stats-tab.is-active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 3px 0 rgba(31, 75, 45, .18);
}

.stats-tab:focus-visible {
    outline: 3px solid rgba(229, 183, 65, .45);
    outline-offset: 2px;
}

.stats-tab-panel[hidden] {
    display: none !important;
}

.stats-tab-panel {
    min-width: 0;
}

.stats-tab-panel .stats-section:last-child {
    margin-bottom: 4px;
}

@media (max-width: 620px) {
    .stats-tabs {
        margin-left: -2px;
        margin-right: -2px;
    }

    .stats-tab {
        padding: 8px 11px;
        font-size: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Reset Save confirmation
   ========================================================= */

#resetConfirmPanel {
    z-index: 420;
    max-width: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#resetConfirmPanel .overlay-backdrop {
    background: rgba(18, 39, 25, .7);
    backdrop-filter: blur(5px);
}

#resetConfirmPanel .reset-confirm-card {
    position: relative;
    width: min(470px, 100%);
    height: auto;
    max-height: calc(100dvh - 40px);
    padding: 30px 30px 26px;
    overflow: auto;
    border: 1px solid #ded8bf;
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(20, 44, 27, .34);
    text-align: center;
    animation: reset-confirm-in .2s cubic-bezier(.22, .8, .32, 1) both;
}

.reset-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.reset-confirm-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 2px auto 18px;
    border: 1px solid #d9b6a8;
    border-radius: 50%;
    background: #f7e6df;
    color: #8c3c2f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1;
}

.reset-confirm-card h2 {
    margin: 7px 42px 13px;
    font-size: 31px;
    line-height: 1.08;
}

.reset-confirm-card > p:not(.reset-confirm-status) {
    margin: 0 auto 18px;
    max-width: 390px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.reset-confirm-kept {
    display: grid;
    gap: 5px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #c9d7b8;
    border-radius: 12px;
    background: #eff4e6;
    text-align: left;
}

.reset-confirm-kept strong {
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.reset-confirm-kept span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.reset-confirm-status {
    min-height: 18px;
    margin: 0 0 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.reset-confirm-status[hidden] {
    display: block;
    visibility: hidden;
}

.reset-confirm-status.is-error {
    color: #8c3c2f;
}

.reset-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.reset-confirm-cancel,
.reset-confirm-submit {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.reset-confirm-cancel {
    border: 1px solid var(--line);
    background: #efeee2;
}

.reset-confirm-submit {
    background: #8c3c2f;
    color: #fff8ed;
}

.reset-confirm-submit:not(:disabled):hover {
    background: #763126;
}

@keyframes reset-confirm-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.975);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    #resetConfirmPanel {
        padding: 14px;
    }

    #resetConfirmPanel .reset-confirm-card {
        padding: 26px 20px 20px;
        border-radius: 17px;
    }

    .reset-confirm-card h2 {
        margin-left: 35px;
        margin-right: 35px;
        font-size: 27px;
    }

    .reset-confirm-actions {
        grid-template-columns: 1fr;
    }

    .reset-confirm-submit {
        order: -1;
    }
}
