:root {
    --bg: #f6f1e8;
    --bg-strong:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%),
        linear-gradient(180deg, #f7f2ea 0%, #efe5d5 56%, #e8ddc8 100%);
    --card: rgba(255, 255, 255, 0.94);
    --line: rgba(70, 54, 33, 0.08);
    --text: #1d1a16;
    --muted: #867867;
    --brand: #0f9d58;
    --brand-dark: #0b7b45;
    --accent: #c58a2f;
    --warning: #e67f22;
    --radius: 26px;
    --shadow: 0 22px 48px rgba(65, 46, 22, 0.12);
    --shadow-soft: 0 10px 28px rgba(65, 46, 22, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", sans-serif;
    background: var(--bg-strong);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
}

.mobile-page {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 0 16px 48px;
}

.centered-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.fixed-top-header {
    position: fixed;
    top: 0;
    left: 50%;
    width: min(100%, 480px);
    transform: translateX(-50%);
    z-index: 10;
}

.page-header {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 0;
    align-items: center;
    min-height: 72px;
    margin: 0 -16px 16px;
    padding: 10px 16px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(29, 26, 22, 0.06);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.page-heading {
    min-width: 0;
    text-align: center;
}

.page-heading h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.page-heading p {
    display: none;
}

.back-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    justify-self: start;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 34px;
}

.back-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.more-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    color: var(--text);
    font-size: 30px;
}

.hero-top,
.admin-header,
.record-row,
.header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-header {
    align-items: flex-start;
}

.header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.hero-title,
.admin-header h1,
.success-card h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.hero-subtitle,
.admin-header p,
.hero-body p,
.success-card p,
.record-meta,
.empty-card,
.detail-list span,
.info-grid span {
    color: var(--muted);
}

.hero-badge,
.hero-icon,
.success-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.hero-badge {
    width: 52px;
    height: 52px;
    background: rgba(15, 157, 88, 0.1);
    color: var(--brand);
    font-size: 26px;
}

.hero-body {
    text-align: center;
    padding: 18px 6px 8px;
}

.hero-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    background: rgba(197, 138, 47, 0.12);
    color: var(--accent);
    font-size: 40px;
}

.hero-body h1 {
    margin: 8px 0 12px;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
}

.card {
    margin-top: 18px;
    padding: 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.brand-card,
.info-card,
.form-card,
.unified-card {
    position: relative;
    overflow: hidden;
}

.brand-card {
    margin-top: 0;
    padding: 22px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), transparent 32%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(237, 229, 217, 0.92));
}

.brand-card::after,
.info-card::after,
.form-card::after,
.unified-card::after {
    content: "";
    position: absolute;
    inset: auto 14px -14px 14px;
    height: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.42);
    z-index: -1;
    filter: blur(10px);
}

.info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.94));
}

.form-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 233, 0.95));
}

.unified-card {
    margin-top: 0;
    padding: 18px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 32%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(239, 231, 220, 0.94));
}

.card-title {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.info-grid,
.detail-list {
    display: grid;
    gap: 14px;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 157, 88, 0.12);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
}

.section-tag.soft {
    background: rgba(197, 138, 47, 0.14);
    color: #86612d;
}

.compact-top {
    margin-bottom: 6px;
}

.compact-hero {
    padding: 8px 4px 12px;
}

.compact-hero .hero-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 8px;
    font-size: 30px;
}

.compact-hero h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    letter-spacing: 1px;
}

.compact-hero p {
    margin: 0;
    font-size: 14px;
}

.sub-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(111, 93, 66, 0.08);
    box-shadow: var(--shadow-soft);
}

.compact-head {
    margin-bottom: 12px;
}

.compact-head .card-title {
    margin-bottom: 0;
    font-size: 20px;
}

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

.compact-tiles {
    gap: 10px;
}

.info-tile {
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252, 249, 244, 0.95), rgba(245, 238, 228, 0.92));
    border: 1px solid rgba(111, 93, 66, 0.08);
    box-shadow: var(--shadow-soft);
}

.info-tile span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.info-tile strong {
    display: block;
    font-weight: 800;
    line-height: 1.4;
}

.info-grid div,
.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.compact-rule-list {
    margin-bottom: 16px;
}

.record-detail-card {
    margin-top: 0;
}

.detail-section-title {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.detail-section-split {
    display: flex;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.info-grid div:last-child,
.detail-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-grid strong,
.detail-list strong {
    font-weight: 700;
    text-align: right;
}

.mobile-form {
    display: grid;
    gap: 14px;
}

.compact-form {
    gap: 12px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(111, 93, 66, 0.12);
    border-radius: 18px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: rgba(251, 248, 242, 0.9);
    outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(15, 157, 88, 0.4);
    box-shadow: 0 0 0 4px rgba(15, 157, 88, 0.08);
}

.field-textarea textarea {
    resize: vertical;
}

.region-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.region-picker-error::after {
    content: "地区数据加载失败，请刷新页面重试";
    color: #b53333;
    font-size: 13px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #675947;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.highlight-pill i {
    color: var(--brand);
}

.service-state-card {
    overflow: hidden;
}

.service-state-active {
    background:
        radial-gradient(circle at top right, rgba(230, 127, 34, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.84);
}

.service-state-ready {
    background:
        radial-gradient(circle at top right, rgba(15, 157, 88, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.84);
}

.current-ticket > strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
}

.current-ticket p {
    margin: 8px 0 14px;
    color: #6e604f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

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

.ticket-meta-grid div,
.ticket-note {
    padding: 12px;
    border-radius: 18px;
    background: rgba(252, 249, 244, 0.82);
    border: 1px solid rgba(111, 93, 66, 0.08);
}

.ticket-meta-grid span,
.ticket-note span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ticket-meta-grid strong,
.ticket-note strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.ticket-note {
    margin-top: 10px;
}

.ready-ticket {
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 157, 88, 0.07);
}

.history-sub-card {
    margin-bottom: 4px;
}

.warranty-history-list {
    display: grid;
    gap: 10px;
}

.warranty-history-item {
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 246, 239, 0.84));
    border: 1px solid rgba(111, 93, 66, 0.08);
}

.history-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.history-item-head strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.warranty-history-item time,
.history-line {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    color: #5f5141;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.warranty-history-item time {
    margin-bottom: 8px;
    color: var(--muted);
}

.history-line {
    margin-top: 7px;
}

.warranty-history-item i {
    color: #8a7a65;
    text-align: center;
    line-height: 1.45;
}

.history-admin-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(111, 93, 66, 0.08);
    color: var(--brand-dark);
}

.compact-empty {
    margin: 0;
    padding: 16px;
    box-shadow: none;
}

.primary-button,
.ghost-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    border: 0;
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, var(--brand), #21c26d);
    color: #fff;
}

.ghost-button {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(111, 93, 66, 0.1);
    white-space: nowrap;
}

.danger-button {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(196, 55, 55, 0.1);
    color: #b53333;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px 2px;
}

.filter-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(111, 93, 66, 0.08);
    color: var(--muted);
}

.filter-tab.active,
.status-chip,
.status-处理中 {
    background: rgba(15, 157, 88, 0.12);
    color: var(--brand-dark);
}

.status-待处理 {
    background: rgba(230, 127, 34, 0.14);
    color: var(--warning);
}

.status-已处理 {
    background: rgba(26, 115, 232, 0.14);
    color: #1a73e8;
}

.status-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.record-board {
    margin-top: 4px;
    padding: 18px 14px 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.record-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 14px;
}

.record-board-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.record-board-head strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.record-board-head em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.record-filter-tabs {
    margin: 0 0 10px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.78);
    border: 1px solid rgba(111, 93, 66, 0.08);
}

.record-line {
    position: relative;
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(111, 93, 66, 0.07);
}

.record-line-link {
    display: block;
}

.record-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 46px;
    width: 3px;
    border-radius: 999px;
    background: rgba(15, 157, 88, 0.45);
}

.status-line-待处理::before {
    background: rgba(230, 127, 34, 0.78);
}

.status-line-已处理::before {
    background: rgba(26, 115, 232, 0.68);
}

.record-line-body {
    min-width: 0;
}

.record-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.record-main strong {
    display: block;
    font-size: 21px;
    line-height: 1.2;
}

.record-main time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.record-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    margin-top: 10px;
    color: #5f5141;
    font-size: 14px;
    font-weight: 700;
}

.record-field i {
    width: 20px;
    color: #8a7a65;
    text-align: center;
    line-height: 1.35;
}

.record-code {
    word-break: break-all;
}

.record-delete-form {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(111, 93, 66, 0.07);
}

.record-delete-button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b53333;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.record-delete-button::after {
    content: "删除";
}

.qr-card-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(111, 93, 66, 0.08);
}

.qr-card-preview img {
    width: 180px;
    max-width: 72%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    -webkit-touch-callout: default;
    user-select: auto;
}

.qr-card-preview span {
    color: var(--muted);
    font-size: 13px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

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

.compact-button {
    min-height: 42px;
    padding: 0 14px;
}

.card-actions form,
.inline-delete-form {
    margin: 0;
}

.inline-delete-form {
    margin-top: 12px;
}

.login-card,
.success-card {
    width: 100%;
}

.login-tip {
    margin: -4px 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.home-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 6px 0 18px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(111, 93, 66, 0.08);
    box-shadow: var(--shadow-soft);
}

.stat-item {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 82px;
    background: rgba(255, 255, 255, 0.82);
}

.stat-item strong {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.stat-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.home-menu-panel {
    display: grid;
    gap: 0;
    padding: 8px;
}

.home-menu-item {
    display: grid;
    grid-template-columns: 52px 1fr 30px;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px;
    border-radius: 20px;
}

.home-menu-item + .home-menu-item {
    border-top: 1px solid var(--line);
}

.home-menu-item > i {
    color: var(--muted);
    font-size: 24px;
}

.dashboard-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(15, 157, 88, 0.1);
    color: var(--brand);
    font-size: 28px;
    margin-bottom: 0;
}

.home-menu-item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 0;
}

.floating-add-button {
    position: fixed;
    right: max(18px, calc((100vw - 480px) / 2 + 18px));
    bottom: 30px;
    z-index: 30;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #21c26d);
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 157, 88, 0.28);
    font-size: 30px;
}

.success-card,
.empty-card {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: rgba(15, 157, 88, 0.12);
    color: var(--brand);
    font-size: 38px;
}

.danger-icon {
    background: rgba(196, 55, 55, 0.12);
    color: #b53333;
}

.warning-icon {
    background: rgba(230, 127, 34, 0.14);
    color: var(--warning);
}

.activation-card {
    width: 100%;
    text-align: center;
}

.activation-card h1 {
    margin: 8px 0 10px;
    font-size: 30px;
}

.activation-card p {
    color: var(--muted);
    line-height: 1.7;
}

.compact-detail {
    margin: 18px 0;
    text-align: left;
}

.flash-stack {
    position: fixed;
    left: 50%;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 40;
    width: min(100% - 48px, 360px);
    transform: translateX(-50%);
    pointer-events: none;
}

.flash-message {
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(28, 28, 28, 0.9);
    color: #fff;
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 700;
    animation: toast-in-out 3.2s ease forwards;
}

@keyframes toast-in-out {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    12%,
    82% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.qr-preview {
    display: block;
    width: 220px;
    max-width: 100%;
    margin: 18px auto 0;
    border-radius: 20px;
    background: #fff;
    padding: 12px;
}

.break-all {
    word-break: break-all;
}

.confirm-open {
    overflow: hidden;
}

.mobile-confirm {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: end center;
    z-index: 80;
    padding: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-confirm.show {
    pointer-events: auto;
    opacity: 1;
}

.mobile-confirm-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 82%, rgba(197, 138, 47, 0.18), transparent 30%),
        rgba(29, 26, 22, 0.34);
    backdrop-filter: blur(10px);
}

.mobile-confirm-panel {
    position: relative;
    width: min(100%, 420px);
    padding: 24px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 239, 0.96));
    box-shadow: 0 28px 70px rgba(48, 34, 15, 0.24);
    text-align: center;
    transform: translateY(28px) scale(0.98);
    opacity: 0;
    transition:
        transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
        opacity 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-confirm.show .mobile-confirm-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-confirm-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(198, 49, 49, 0.12), rgba(198, 49, 49, 0.04));
    color: #c63131;
    font-size: 28px;
}

.mobile-confirm-panel h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mobile-confirm-panel p {
    margin: 10px auto 20px;
    max-width: 310px;
    color: #766957;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

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

.mobile-confirm-actions button {
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    transition:
        transform 180ms cubic-bezier(0.32, 0.72, 0, 1),
        opacity 180ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-confirm-actions button:active {
    transform: scale(0.98);
}

.mobile-confirm-cancel {
    background: rgba(111, 93, 66, 0.08);
    color: #3a3127;
}

.mobile-confirm-submit {
    background: linear-gradient(135deg, #d94040, #b91f1f);
    color: #fff;
    box-shadow: 0 14px 28px rgba(185, 31, 31, 0.22);
}

@media (max-width: 420px) {
    .mobile-page {
        padding: 0 12px 28px;
    }

    .hero-body h1 {
        font-size: 38px;
    }

    .hero-title,
    .admin-header h1,
    .success-card h1 {
        font-size: 26px;
    }

    .page-header {
        grid-template-columns: 50px 1fr 50px;
        min-height: 66px;
        margin: 0 -12px 14px;
        padding: 8px 12px 10px;
        border-radius: 0;
    }

    .page-heading h1 {
        font-size: 16px;
    }

    .back-button {
        width: 46px;
        height: 46px;
        font-size: 32px;
    }

    .more-button {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .ghost-button,
    .danger-button {
        min-height: 38px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 14px;
    }

    .card-title {
        font-size: 22px;
    }

    .info-tiles {
        grid-template-columns: 1fr;
    }

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

    .date-filter-grid {
        grid-template-columns: 1fr;
    }

    .compact-hero h1 {
        font-size: 30px;
    }

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

    .dashboard-card {
        min-height: 168px;
        padding: 14px;
    }

    .dashboard-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .dashboard-card strong {
        font-size: 18px;
    }

    .dashboard-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .dashboard-stats {
        margin-top: 10px;
        font-size: 12px;
    }

    .floating-add-button {
        right: 18px;
        bottom: 24px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }

    .mobile-confirm {
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    }

    .mobile-confirm-panel {
        border-radius: 28px;
    }
}
