﻿:root {
    --bg: #edf2f8;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --text: #1f2937;
    --text-soft: #6b7280;
    --line: #dbe3ef;
    --primary: #1677ff;
    --primary-hover: #0f66df;
    --danger: #e5484d;
    --danger-hover: #cf3f44;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    --radius: 4px;
    --maxw: 730px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.page {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top) + 10px) 10px calc(env(safe-area-inset-bottom) + 16px);
}

.topbar {
    padding: 12px 14px;
    background: linear-gradient(180deg, #1d84ff 0%, #1677ff 100%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar-left {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-right {
    flex: 0 0 auto;
}

.hero-actions {
    position: relative;
    z-index: 20;
}

.hero-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    color: #eff6ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-menu-icon {
    font-size: 13px;
    line-height: 1;
}

.hero-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 154px;
    padding: 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 224, 234, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-menu-item {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.hero-menu-item:hover {
    background: #eff6ff;
    color: var(--primary);
}

.page-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
}

.page-subtitle {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255,255,255,.88);
}

.filter-card,
.summary-card,
.list-wrap {
    margin-top: 10px;
    background: var(--panel);
    border: 1px solid #dfe7f2;
    border-radius: var(--radius);
}

.filter-card,
.list-wrap {
    padding: 12px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.list-wrap {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.summary-card {
    padding: 12px 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8fe 100%);
    border-color: #d9e4f2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}

.summary-item {
    min-width: 110px;
    flex: 1 1 140px;
    padding: 4px 0;
}

.summary-label {
    font-size: 12px;
    color: #627188;
    line-height: 1.2;
}

.summary-value {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
    color: #162338;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.compact-filter-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.filter-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.form-row {
    min-width: 0;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #475467;
    font-weight: 600;
    line-height: 1.2;
}

.input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 13px;
}

.input:focus {
    border-color: #7fb2ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.filter-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-toolbar {
    padding-bottom: 2px;
}

.section-head-main {
    min-width: 0;
    flex: 1 1 auto;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-cate-name {
    min-height: 20px;
    font-size: 12px;
    line-height: 1.4;
    color: #66758a;
}

.section-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: #738297;
}

.plan-toolbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
}

.plan-toolbar-actions #btnCreatePlan {
    min-width: 98px;
}

.state-box {
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-soft);
    background: #fafcff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e1ee;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.shoted::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cf3c4a !important;
}

.pending-review::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d79a1e !important;
}

.plan-item:hover {
    border-color: #bfd2ed;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.plan-head {
    padding: 12px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.plan-head-left {
    min-width: 0;
    flex: 1 1 auto;
}

.plan-date {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.3;
}

.plan-title {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    color: var(--text);
}

.plan-subline {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-soft);
}

.plan-head-right {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.action-icon-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
}

.action-icon {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.action-delete-btn {
    border-color: #f0d2d5;
    background: #fff6f7;
    color: var(--danger);
}

.action-delete-btn:hover {
    background: #ffe4e6;
    border-color: #efb4b7;
    color: var(--danger-hover);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid #dbe7ff;
    background: #f4f8ff;
    color: #245bba;
    line-height: 1;
}

.tag.success {
    background: #eef7f2;
    border-color: #d3e8dc;
    color: #2f6d47;
}

.tag.danger {
    background: #fff2f3;
    border-color: #f4d0d6;
    color: #b42341;
}

.tag.warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.plan-body {
    padding: 0 14px 14px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid #ecf1f7;
    background: transparent;
    border-radius: 4px;
}

.data-box {
    min-width: 0;
    padding: 0 2px;
}

.data-label {
    font-size: 11px;
    color: var(--text-soft);
    line-height: 1.2;
}

.data-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    color: #182539;
}

.data-value.positive {
    color: #c23a4a;
}

.data-value.negative {
    color: #2f6d47;
}

.plan-error {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.5;
}

.plan-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: .18s ease;
    user-select: none;
    font-size: 13px;
    line-height: 1;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-light {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}

.btn-light:hover {
    background: #f7faff;
}

.btn-danger {
    background: #fff5f5;
    color: var(--danger);
    border-color: #f3c7c9;
}

.btn-danger:hover {
    background: #ffeaea;
    color: var(--danger-hover);
    border-color: #efb4b7;
}

.dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.dialog {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.18);
    overflow: hidden;
}

.dialog-sm {
    max-width: 360px;
}

.dialog-head {
    padding: 10px 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.dialog-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.dialog-body {
    padding: 12px;
}

.dialog-foot {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #475467;
}

.confirm-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.form-tip {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-soft);
}

.poster-template-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.poster-template-item {
    display: block;
    cursor: pointer;
}

.poster-template-preview {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    transition: .18s ease;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.poster-template-item.active .poster-template-preview {
    border-color: #7fb2ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.poster-mini-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.poster-mini-desc {
    margin-top: 4px;
    font-size: 11px;
    opacity: .86;
}

.export-amount-row {
    margin-top: 10px;
}

.poster-thumb-sheet {
    height: 82px;
    border: 1px solid #2f2f2f;
    background: #d9e4ef;
    position: relative;
}

.poster-thumb-head {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 24px;
    border-bottom: 1px solid #2f2f2f;
    background: inherit;
}

.poster-thumb-head::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 52px;
    height: 8px;
    background: #c71a1a;
}

.poster-thumb-head::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 5px;
    width: 28px;
    height: 14px;
    border: 1px solid rgba(199, 26, 26, 0.5);
}

.poster-thumb-body {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 32px;
    bottom: 8px;
    border: 1px solid #2f2f2f;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 13px,
            rgba(47, 47, 47, 0.9) 13px,
            rgba(47, 47, 47, 0.9) 14px
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 32%,
            rgba(47, 47, 47, 0.9) 32%,
            rgba(47, 47, 47, 0.9) calc(32% + 1px)
        ),
        #d9e4ef;
}

.poster-thumb-body::before,
.poster-thumb-body::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: rgba(199, 26, 26, 0.92);
}

.poster-thumb-body::before {
    top: 18px;
}

.poster-thumb-body::after {
    top: 42px;
}

.poster-thumb-warm .poster-thumb-sheet,
.poster-thumb-warm .poster-thumb-head,
.poster-thumb-warm .poster-thumb-body {
    background-color: #e7dcc8;
}

.poster-thumb-bold .poster-thumb-sheet,
.poster-thumb-bold .poster-thumb-head,
.poster-thumb-bold .poster-thumb-body {
    background-color: #d3dfeb;
}

.poster-thumb-bold .poster-thumb-head::before {
    width: 64px;
    height: 10px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 18px);
    transform: translateX(-50%) translateY(20px);
    min-width: 120px;
    max-width: calc(100vw - 24px);
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: all .22s ease;
    z-index: 1200;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.poster-render-root {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 1080px;
    pointer-events: none;
    opacity: 0;
}

.poster-sheet {
    width: 1080px;
    padding: 48px;
    border-radius: 0;
    background: #fff;
    color: #111827;
}

.poster-sheet.blue {
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.poster-sheet.dark {
    background: linear-gradient(180deg, #0f172a 0%, #172033 100%);
    color: #f8fafc;
}

.poster-sheet.orange {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.poster-header {
    padding: 28px 32px;
    border-radius: 4px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.poster-sheet.dark .poster-header {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.poster-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.poster-subtitle {
    margin-top: 12px;
    font-size: 22px;
    opacity: .84;
}

.poster-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.poster-stat {
    padding: 22px 20px;
    border-radius: 4px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.poster-sheet.dark .poster-stat {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.poster-stat-label {
    font-size: 18px;
    opacity: .8;
}

.poster-stat-value {
    margin-top: 10px;
    font-size: 34px;
    font-weight: 800;
}

.poster-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poster-item {
    padding: 22px 24px;
    border-radius: 4px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.poster-sheet.dark .poster-item {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.poster-item-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.poster-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
}

.poster-item-date {
    flex: 0 0 auto;
    font-size: 20px;
    opacity: .82;
}

.poster-item-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.poster-box {
    padding: 14px 16px;
    border-radius: 4px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(203, 213, 225, .8);
}

.poster-sheet.dark .poster-box {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.poster-box-label {
    font-size: 16px;
    opacity: .8;
}

.poster-box-value {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
}

.poster-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 18px;
    opacity: .72;
}

@media (max-width: 620px) {
    .page {
        padding: calc(env(safe-area-inset-top) + 6px) 8px calc(env(safe-area-inset-bottom) + 10px);
    }

    .topbar {
        padding: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .topbar-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar-right {
        flex: 0 0 auto;
    }

    .hero-menu-btn {
        min-width: 96px;
        min-height: 40px;
        padding: 0 14px;
    }

    .topbar-right .btn {
        width: auto;
        min-width: 96px;
        padding: 0 14px;
    }

    .page-title {
        font-size: 17px;
    }

    .page-subtitle {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.25;
    }

    .filter-card,
    .summary-card,
    .list-wrap {
        margin-top: 8px;
        padding: 8px;
    }

    .summary-card {
        gap: 10px 12px;
    }

    .summary-item {
        min-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }

    .summary-value {
        font-size: 18px;
    }

    .section-title {
        font-size: 14px;
    }

    .filter-main {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) auto;
        gap: 8px;
        align-items: end;
    }

    .form-label {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .input {
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .filter-actions {
        grid-column: auto;
        justify-content: flex-end;
    }

    .filter-actions .btn {
        min-width: 96px;
    }

    .plan-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 8px;
    }

    .plan-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .plan-toolbar-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .plan-toolbar-actions #btnCreatePlan {
        grid-column: 1 / -1;
    }

    .state-box {
        padding: 14px 8px;
        font-size: 12px;
    }

    .plan-list {
        gap: 8px;
    }

    .plan-head {
        align-items: flex-start;
        gap: 8px;
        padding: 10px 10px 8px;
    }

    .plan-head-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .plan-head-right {
        width: auto;
        justify-content: flex-end;
    }

    .plan-title {
        font-size: 15px;
        line-height: 1.35;
    }

    .plan-body {
        padding: 0 10px 10px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding-top: 10px;
    }

    .data-box {
        min-width: 0;
    }

    .data-label {
        font-size: 10px;
    }

    .data-value {
        margin-top: 2px;
        font-size: 14px;
    }

    .plan-error {
        margin-top: 6px;
        padding: 7px 8px;
        font-size: 11px;
        line-height: 1.45;
    }

    .btn {
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .dialog-mask {
        align-items: flex-end;
        padding: 12px 0 0;
    }

    .dialog {
        max-width: none;
        max-height: min(88vh, 760px);
        border-radius: 8px 8px 0 0;
        overflow-y: auto;
    }

    .dialog-head {
        padding: 8px 10px 7px;
    }

    .dialog-title {
        font-size: 14px;
    }

    .dialog-body {
        padding: 10px;
    }

    .dialog-foot {
        padding: 8px 10px calc(env(safe-area-inset-bottom) + 10px);
        gap: 6px;
        flex-wrap: wrap;
    }

    .dialog-foot .btn {
        flex: 1 1 calc(50% - 3px);
    }

    .icon-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .confirm-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .form-tip {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.45;
    }

    .poster-template-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .poster-template-preview {
        min-height: 136px;
        padding: 8px 10px;
    }

    .poster-mini-title {
        font-size: 13px;
    }

    .poster-mini-desc {
        margin-top: 3px;
        font-size: 10px;
    }

    .toast {
        bottom: calc(env(safe-area-inset-bottom) + 12px);
        padding: 7px 10px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .topbar {
        padding: 8px;
    }

    .filter-card,
    .summary-card,
    .list-wrap {
        padding: 6px;
    }

    .filter-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) auto;
        gap: 6px;
    }

    .summary-card {
        gap: 8px 10px;
    }

    .summary-item {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
    }

    .plan-head {
        padding: 8px 8px 7px;
        gap: 6px;
    }

    .plan-body {
        padding: 0 8px 8px;
    }

    .plan-grid {
        grid-template-columns: 1fr 1fr;
        padding-top: 8px;
        gap: 8px 10px;
    }

    .data-box {
        min-width: 0;
    }

    .btn {
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .hero-menu {
        width: 146px;
    }

    .dialog-foot {
        flex-direction: column-reverse;
    }

    .dialog-foot .btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .page {
        padding: 8px 6px 12px;
    }

    .list-wrap,
    .section-head,
    .sheet-header,
    .sheet-content,
    .sheet-footer {
        padding-left: 8px;
        padding-right: 8px;
    }

    .section-head,
    .plan-toolbar,
    .hero-actions,
    .plan-meta,
    .plan-actions {
        gap: 6px;
    }

    .page-title {
        font-size: 18px;
        font-weight: 600;
    }

    .page-subtitle,
    .plan-desc,
    .plan-meta {
        font-size: 11px;
        line-height: 1.45;
    }
}

