:root {
    --primary: #1677ff;
    --primary-dark: #0958d9;
    --primary-soft: #eaf3ff;
    --success: #16a36a;
    --warning: #e58b18;
    --danger: #d83b45;
    --ink: #172033;
    --muted: #687386;
    --line: #e6eaf0;
    --surface: #ffffff;
    --background: #f4f7fb;
    --shadow: 0 10px 30px rgba(28, 53, 87, .08);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--background);
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
    margin: 0;
    min-height: 100vh;
    font-size: 17px;
    line-height: 1.5;
    background:
        radial-gradient(circle at 100% 0, rgba(22, 119, 255, .10), transparent 32rem),
        var(--background);
}

button, input, textarea, select { font: inherit; }

a { color: var(--primary); text-decoration: none; }

.page-shell {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 16px calc(92px + env(safe-area-inset-bottom));
}

.auth-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
}

.brand { margin-bottom: 26px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 17px;
    color: #fff;
    font-size: 26px;
    background: linear-gradient(145deg, #2389ff, #075bcc);
    box-shadow: 0 12px 24px rgba(22, 119, 255, .24);
}
.brand h1, .page-header h1 { margin: 0; font-size: 26px; letter-spacing: -.5px; }
.brand p, .page-header p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.brand-inline { display: flex; align-items: center; justify-content: center; gap: 13px; }
.brand-inline .brand-mark { flex: 0 0 auto; margin-bottom: 0; }
.brand-inline h1 { line-height: 1.2; }

.card {
    padding: 22px;
    border: 1px solid rgba(230, 234, 240, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.required-mark { color: var(--danger); font-style: normal; }
.form-hint { margin: 7px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-link { margin: -2px 0 14px; text-align: right; font-size: 14px; }
.field-error { margin: 7px 2px 0; color: var(--danger); font-size: 15px; line-height: 1.5; }

.form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dce2ea;
    border-radius: 13px;
    padding: 12px 14px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #a6afbd; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 119, 255, .10); }
textarea.form-control { min-height: 128px; resize: vertical; line-height: 1.6; }
.area-picker { position: relative; }
.area-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 11px 14px;
    border: 1px solid #dce2ea;
    border-radius: 13px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    cursor: pointer;
}
.area-picker-trigger:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 119, 255, .10); outline: none; }
.area-picker-trigger:disabled { color: var(--muted); background: #f7f8fa; cursor: not-allowed; }
.area-picker-arrow { flex: 0 0 auto; width: 8px; height: 8px; margin-right: 3px; border-right: 2px solid #7d8795; border-bottom: 2px solid #7d8795; transform: rotate(45deg) translateY(-2px); }
.area-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: min(240px, 38vh);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(28, 53, 87, .16);
    overscroll-behavior: contain;
}
.area-picker-menu[hidden] { display: none; }
.picker-search { position: sticky; top: 0; z-index: 1; display: block; padding: 10px 11px; border-bottom: 1px solid var(--line); background: #fff; }
.picker-search > span:first-child { display: block; margin: 0 2px 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.picker-search-control { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid #dce2ea; border-radius: 10px; background: #f8fafc; }
.picker-search-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .09); background: #fff; }
.picker-search-control i { color: var(--muted); font-size: 18px; font-style: normal; }
.picker-search-control input { min-width: 0; width: 100%; height: 36px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.picker-search-control input::-webkit-search-cancel-button { display: none; }
.picker-options { max-height: min(184px, 30vh); overflow-y: auto; overscroll-behavior: contain; }
#areaPickerMenu { max-height: min(500px, 72vh); overflow: hidden; }
#areaPickerMenu .picker-options { max-height: min(400px, 58vh); }
.picker-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 15px; text-align: center; }
.area-picker-option { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 50px; padding: 11px 14px; border: 0; border-bottom: 1px solid #eef1f5; color: var(--ink); text-align: left; background: #fff; cursor: pointer; }
.area-picker-option[hidden] { display: none; }
.area-picker-option:last-child { border-bottom: 0; }
.area-picker-option:active, .area-picker-option[aria-selected="true"] { color: var(--primary); background: var(--primary-soft); }
.area-picker-option span, .area-picker-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-picker-option b { color: #a0a9b5; font-weight: 400; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
}
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-secondary { color: var(--primary); background: var(--primary-soft); }
.btn-danger { color: #b4232c; background: #fff0f0; }
.btn-small { min-height: 42px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
.btn:active { transform: translateY(1px); }

.auth-footer { margin-top: 20px; text-align: center; color: var(--muted); font-size: 16px; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 16px; line-height: 1.55; }
.alert-error { color: #a61d24; background: #fff1f0; border: 1px solid #ffccc7; }
.alert-success { color: #087443; background: #eafaf2; border: 1px solid #b7ebd1; }

.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 22px; padding: 4px; border-radius: 13px; background: #f0f3f7; }
.login-tab { min-height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.login-tab.active { color: var(--primary); background: #fff; box-shadow: 0 3px 10px rgba(28, 53, 87, .09); }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.verification-button { min-width: 116px; padding: 0 13px; white-space: nowrap; }
.verification-button:disabled { color: #8c96a5; background: #eef1f5; cursor: not-allowed; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 4px 2px 22px; }
.page-header h1 { font-size: 26px; }
.avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 800;
}

.management-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 2px 15px; }
.management-header h1 { display: inline-block; margin: 0 7px 0 0; font-size: 26px; letter-spacing: -.4px; vertical-align: middle; }
.header-user { min-width: 0; text-align: right; }
.header-user strong, .header-user span { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user strong { font-size: 17px; }
.header-user span { margin-top: 3px; color: var(--muted); font-size: 14px; }

.repair-search { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 13px; padding: 5px 6px 5px 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(28, 53, 87, .045); }
.repair-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 119, 255, .09); }
.search-icon { flex: 0 0 auto; color: var(--muted); font-size: 22px; line-height: 1; }
.repair-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.repair-search input::-webkit-search-cancel-button { display: none; }
.repair-search button { flex: 0 0 auto; min-height: 36px; border: 0; border-radius: 10px; padding: 0 14px; color: #fff; background: var(--primary); font-weight: 700; cursor: pointer; }
.search-clear { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; color: var(--muted); background: #edf1f5; font-size: 18px; line-height: 1; }

.summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(130deg, #176fdb, #1597cf);
    box-shadow: 0 12px 28px rgba(18, 111, 192, .18);
}
.summary strong { display: block; font-size: 28px; }
.summary span { font-size: 13px; opacity: .88; }

.repair-list { display: grid; gap: 13px; }
.repair-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(28, 53, 87, .045);
}
.repair-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.repair-title { margin: 0; font-size: 19px; line-height: 1.42; overflow-wrap: anywhere; }
.repair-meta { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.repair-content { margin: 13px 0 0; padding-top: 13px; border-top: 1px dashed var(--line); color: #495568; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-list { gap: 9px; }
.compact-card { padding: 13px 14px; border-radius: 15px; }
.compact-card .repair-title { font-size: 15px; }
.compact-card .badge { padding: 4px 8px; }
.compact-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.compact-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-meta time { flex: 0 0 auto; }
.compact-content { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: #495568; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-applicant { margin: 7px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.compact-pictures { display: flex; gap: 6px; margin-top: 8px; }
.compact-pictures a, .compact-pictures span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: #edf1f5; color: var(--muted); font-size: 12px; }
.compact-pictures img { width: 100%; height: 100%; object-fit: cover; }
.compact-actions { margin-top: 10px; padding-top: 10px; }
.compact-empty { padding: 36px 20px; }

.repair-list-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 10px;
    min-height: 80px;
    padding: 11px 12px 11px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 4px 13px rgba(28, 53, 87, .04);
}
.repair-list-item:active { border-color: #b8d6ff; background: #f8fbff; }
.repair-list-main { min-width: 0; }
.repair-list-main h2 { margin: 0; overflow: hidden; font-size: 18px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.repair-list-main span { display: block; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.repair-list-side { display: grid; justify-items: end; gap: 7px; }
.repair-list-side time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.repair-list-arrow { color: #a4adba; font-size: 24px; line-height: 1; }

.applicant-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--line);
}
.applicant-card div { min-width: 0; padding: 13px 15px; background: rgba(255,255,255,.97); }
.applicant-card span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 14px; }
.applicant-card strong { display: block; overflow: hidden; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }

.upload-box {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 92px;
    border: 1px dashed #a9bdd6;
    border-radius: 14px;
    color: var(--primary);
    background: #f7fbff;
    cursor: pointer;
}
.upload-box span { color: var(--muted); font-size: 14px; }
.upload-box.disabled { color: #8a94a3; background: #f2f4f7; cursor: not-allowed; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.picture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.picture-grid:empty { display: none; }
.picture-grid a, .picture-grid button { display: block; min-width: 0; }
.picture-grid img { display: block; width: 100%; aspect-ratio: 1; border-radius: 11px; object-fit: cover; background: #edf1f5; }
.picture-grid.compact { margin-top: 13px; grid-template-columns: repeat(4, 1fr); }
.picture-preview-item { position: relative; min-width: 0; }
.picture-preview-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 11px; background: transparent; cursor: zoom-in; }
.picture-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    background: rgba(20, 28, 40, .72);
    cursor: pointer;
}
.check-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.check-row input { margin-top: 3px; }

.image-preview-dialog { width: min(calc(100% - 24px), 680px); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 16px; overflow: visible; background: transparent; }
.image-preview-dialog::backdrop { background: rgba(7, 12, 20, .88); }
.image-preview-dialog img { display: block; width: 100%; max-height: calc(100vh - 40px); border-radius: 14px; object-fit: contain; background: #111827; }
.image-preview-close { position: absolute; top: -14px; right: -6px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; font-size: 25px; line-height: 1; background: rgba(13, 20, 31, .82); cursor: pointer; }

.detail-header { display: flex; align-items: center; min-height: 40px; margin-bottom: 12px; }
.detail-back { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px; border: 1px solid #cfe0f7; border-radius: 10px; color: var(--primary); background: #fff; font-size: 15px; font-weight: 700; }
.detail-back:active { background: #eef6ff; }
.detail-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.detail-fields > div { min-width: 0; padding: 12px 13px; background: #fff; }
.detail-fields .detail-field-wide { grid-column: 1 / -1; }
.detail-fields dt { margin-bottom: 5px; color: var(--muted); font-size: 14px; }
.detail-fields dd { margin: 0; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-content { white-space: pre-wrap; }
.detail-pictures { margin-top: 18px; }
.detail-pictures h2 { margin: 0; font-size: 17px; }
.repair-feedback { margin-top: 16px; }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.feedback-heading h2 { margin: 0; font-size: 18px; }
.feedback-status { padding: 5px 10px; border-radius: 8px; color: var(--primary); background: #eef6ff; font-size: 14px; line-height: 1.5; }
.feedback-refresh { margin-left: 8px; color: var(--primary); white-space: nowrap; }
.feedback-sync { margin-bottom: 14px; }
.feedback-order { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; margin-bottom: 20px; border-radius: 10px; background: #f4f8fd; }
.feedback-order > span { color: var(--muted); font-size: 13px; }
.feedback-order > strong { min-width: 0; color: var(--primary); font-size: 16px; overflow-wrap: anywhere; }
.feedback-stages { counter-reset: feedback-stage; }
.feedback-stage { position: relative; padding: 0 0 22px 32px; counter-increment: feedback-stage; }
.feedback-stage:last-child { padding-bottom: 0; }
.feedback-stage::before { content: counter(feedback-stage); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cfe0f7; border-radius: 50%; color: var(--primary); background: #eef6ff; font-size: 12px; font-weight: 700; }
.feedback-stage:not(:last-child)::after { content: ''; position: absolute; top: 28px; bottom: 6px; left: 11px; width: 1px; background: #e0e9f5; }
.feedback-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-bottom: 12px; }
.feedback-stage-heading h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.feedback-stage-heading > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.feedback-stage .feedback-stage-fields { gap: 12px 16px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.feedback-stage-fields > div { padding: 0; }
.feedback-stage-fields dt { margin-bottom: 3px; font-size: 12px; }
.feedback-stage-fields dd { font-size: 15px; }
.feedback-stage-fields > .feedback-note { padding: 10px 12px; border-radius: 8px; background: #f7f9fc; }
.feedback-stage > .form-hint { margin: 0; }
.feedback-completion, .feedback-materials { margin-top: 16px; }
.feedback-completion h4 { margin: 0; font-size: 14px; }
.completion-picture-pending { display: grid; place-content: center; gap: 4px; min-width: 0; aspect-ratio: 1; border: 1px dashed #d9e3ef; border-radius: 11px; color: var(--muted); background: #f7f9fc; text-align: center; }
.completion-picture-pending > span { font-size: 25px; line-height: 1; }
.completion-picture-pending small { font-size: 11px; }
.feedback-materials > summary { color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.feedback-materials > summary > span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.feedback-material-list { display: grid; gap: 8px; margin-top: 8px; }
.feedback-material { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.feedback-material-heading { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; background: #f7f9fc; }
.feedback-material-heading > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.feedback-material-heading > strong { min-width: 0; color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.feedback-material dl { margin: 0; padding: 7px 10px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .7fr); gap: 5px 12px; }
.feedback-material dl > div { min-width: 0; display: flex; align-items: baseline; gap: 6px; line-height: 1.6; }
.feedback-material dl > .feedback-material-wide { grid-column: 1 / -1; }
.feedback-material dt { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.feedback-material dd { min-width: 0; margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .feedback-material dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feedback-material dl > div:first-child { grid-column: 1 / -1; }
}
.submit-preview-dialog {
    width: min(calc(100% - 24px), 620px);
    max-height: min(88dvh, 780px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 27, 42, .28);
}
.submit-preview-dialog::backdrop { background: rgba(16, 27, 42, .55); backdrop-filter: blur(2px); }
.submit-preview-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(88dvh, 780px); }
.submit-preview-header { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.submit-preview-header h2 { margin: 0; font-size: 24px; }
.submit-preview-header p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.submit-preview-body { min-height: 0; padding: 16px 20px; overflow-y: auto; }
.submit-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
}
.badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.badge-admin { color: #6636a3; background: #f3eaff; }

.empty-state { padding: 46px 20px; text-align: center; border-radius: 20px; background: #fff; border: 1px dashed #ced6e0; }
.empty-icon { margin-bottom: 12px; font-size: 40px; }
.empty-state h2 { margin: 0; font-size: 21px; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 16px; }

.pagination { display: grid; justify-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 15px; }
.pagination-summary { line-height: 1.4; }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; }
.page-link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.page-link.active { color: #fff; border-color: var(--primary); background: var(--primary); font-weight: 700; }
.page-direction { min-width: 62px; }
.page-link.disabled { color: #b9c0ca; pointer-events: none; }

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: min(100%, 720px);
    transform: translateX(-50%);
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(224, 229, 236, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}
.nav-item { display: grid; place-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.nav-item strong { font-size: 22px; line-height: 1; }
.nav-item.active { color: var(--primary); font-weight: 700; }

.top-link { display: inline-flex; margin-bottom: 18px; align-items: center; gap: 5px; font-size: 16px; }
.section-title { margin: 0 0 18px; font-size: 20px; }
.error-code { margin: 0; color: var(--primary); font-size: 64px; line-height: 1; }
.error-shell { text-align: center; }
.error-shell h1 { margin: 16px 0 8px; font-size: 23px; }
.error-shell p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

.confirm-dialog { width: min(calc(100% - 36px), 390px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(16, 31, 52, .28); }
.confirm-dialog::backdrop { background: rgba(16, 27, 42, .48); backdrop-filter: blur(2px); }
.confirm-dialog form { padding: 23px; }
.confirm-dialog h2 { margin: 0; font-size: 22px; }
.confirm-dialog p { margin: 10px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 640px) {
    .page-shell { padding-top: 34px; }
    .card { padding: 28px; }
}
