:root {
  color: #202a3a;
  background: #f4f6fa;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  --primary: #147dbd;
  --primary-soft: #eaf5fc;
  --ink: #17263a;
  --muted: #64748b;
  --line: #dfe7ef;
  --surface: #fff;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 100%; overflow: hidden; }
body { position: relative; height: 100dvh; min-width: 320px; margin: 0; color: var(--ink); background: #f4f6fa; }
button, input, select { font: inherit; }
button, a, select, label { cursor: pointer; }
.icon-button svg, .back svg, .bottom-nav svg, .module-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.app-shell { height: 100dvh; min-height: 0; max-width: 620px; margin: 0 auto; padding: env(safe-area-inset-top) 0 calc(92px + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.topbar { display: none; }
.bottom-nav[hidden] { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #1278b8; font-size: 25px; font-weight: 750; text-decoration: none; }
.brand-mark { position: relative; display: inline-flex; align-items: end; width: 27px; height: 37px; border: 3px solid currentColor; border-top-width: 5px; border-radius: 2px 2px 0 0; }
.brand-mark i { display: block; width: 4px; margin-left: 3px; background: currentColor; }
.brand-mark i:nth-child(1) { height: 17px; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 12px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 6px; color: #788491; background: transparent; }
.view { padding: 20px 16px 12px; }
.auth-mode .app-shell { display: block; min-height: 100dvh; padding: 0; }
.auth-mode .view { width: 100%; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 15px; color: #775f1c; background: #fff9dd; border: 1px solid #ead573; border-radius: 9px; font-size: 15px; font-weight: 600; }
.notice-icon { display: grid; place-items: center; width: 22px; height: 22px; color: #927621; flex: 0 0 auto; }
.notice-icon svg, .section-icon svg, .empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.user-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; color: #516174; background: #fff; border: 1px solid #e2e9f0; border-radius: 10px; font-size: 13px; font-weight: 750; }
.user-strip button { min-height: 32px; padding: 6px 10px; color: #1678b8; background: #edf6fd; border: 0; border-radius: 7px; font-size: 12px; font-weight: 750; }
.auth-card { width: min(100%, 430px); margin: 0 auto; padding: 22px 18px; background: #fff; border: 1px solid #dfe7ef; border-radius: 12px; box-shadow: 0 8px 24px #1b2d4214; }
.auth-head { text-align: center; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; color: #147dbd; background: #eaf5fc; border-radius: 14px; }
.auth-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.auth-head h1 { margin: 0; color: #17263a; font-size: 24px; }
.auth-head p { margin: 8px 0 18px; color: #697686; font-size: 13px; line-height: 1.5; }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 7px; color: #506174; font-size: 13px; font-weight: 750; }
.auth-card input { min-height: 44px; padding: 10px 12px; color: #263346; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; outline: none; }
.auth-card input:focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.auth-switch { margin-top: 14px; text-align: center; }
.auth-switch a { color: #147dbd; font-size: 13px; font-weight: 750; text-decoration: none; }
.tag-editor-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: #17263a73; }
.tag-editor { width: min(100%, 340px); padding: 20px; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; box-shadow: 0 18px 42px #17263a40; }
.tag-editor h2 { margin: 0 0 16px; color: #17263a; font-size: 19px; }
.tag-editor input { width: 100%; min-height: 44px; padding: 10px 12px; color: #263346; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; outline: none; }
.tag-editor input:focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.tag-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tag-editor-actions button { min-height: 40px; color: #fff; background: #147dbd; border: 0; border-radius: 8px; font-size: 14px; font-weight: 750; }
.tag-editor-actions .secondary { color: #1678b8; background: #eef6fc; }
.app-message-backdrop { position: fixed; z-index: 210; inset: 0; display: grid; place-items: center; padding: 20px; background: #17263a73; }
.app-message { width: min(100%, 340px); overflow: hidden; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; box-shadow: 0 18px 42px #17263a40; }
.app-message p { min-height: 94px; display: grid; place-items: center; margin: 0; padding: 24px 20px; color: #334155; text-align: center; font-size: 16px; line-height: 1.55; }
.app-message button { width: 100%; min-height: 48px; color: #1678b8; background: #f5f9fc; border: 0; border-top: 1px solid #e3ebf2; font-size: 16px; font-weight: 800; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0 24px; }
.summary-card { min-height: 100px; padding: 15px 6px 10px; text-align: center; background: #fff; border: 1px solid #edf0f4; border-radius: 11px; box-shadow: 0 2px 6px #1a2a4010; }
.summary-card strong { display: block; font-size: 27px; line-height: 1.05; color: #177ebd; }
.summary-card:nth-child(2) strong { color: #e18b27; }
.summary-card:nth-child(3) strong { color: #1caa5b; }
.summary-card:nth-child(4) strong { color: #d74a48; }
.summary-card span { display: block; margin-top: 9px; color: #66717f; font-size: 13px; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 5px 0 15px; font-size: 24px; }
.section-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #167dbd; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module-card { position: relative; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 19px 8px; color: #202a3a; text-align: center; text-decoration: none; background: #fff; border: 1px solid #e9eef3; border-radius: 11px; box-shadow: 0 2px 8px #1a2a4010; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.module-card:hover { border-color: #a9cfe7; box-shadow: 0 8px 18px #1a2a4018; transform: translateY(-2px); }
.module-card .badge { position: absolute; top: 13px; right: 13px; min-width: 28px; padding: 4px 7px; color: #fff; background: #db4e49; border-radius: 15px; font-size: 14px; font-weight: 700; }
.module-icon { width: 63px; height: 63px; display: grid; place-items: center; border-radius: 17px; }
.module-icon svg { width: 34px; height: 34px; stroke-width: 1.7; }
.module-card:nth-child(1) .module-icon { color: #197abb; background: #e8f2fb; }
.module-card:nth-child(2) .module-icon { color: #de8b24; background: #fff3df; }
.module-card:nth-child(3) .module-icon { color: #25a35b; background: #e4f7ed; }
.module-card:nth-child(4) .module-icon { color: #8247be; background: #f0e8fa; }
.module-card strong { font-size: 22px; }
.module-card small { color: #6b7583; font-size: 14px; }
.page-head { display: flex; align-items: center; gap: 12px; margin: -2px 0 12px; }
.back { display: grid; place-items: center; width: 45px; height: 45px; color: #263346; background: #fff; border: 1px solid #e4e9ef; border-radius: 10px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.back:hover { background: #f7fbfe; border-color: #a9cfe7; }
.page-head h1 { margin: 0; font-size: 25px; }
.module-page-head { margin-bottom: 18px; }
.module-intro { margin: -2px 0 0 57px; padding: 0; }
.module-intro .overline { display: none; }
.module-intro p { margin: 0; color: #6b7786; font-size: 14px; line-height: 1.5; }
.module-summary { margin: 0 0 16px; }
.filters { display: flex; gap: 9px; margin: 13px 0 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters select, .filters input[type=search] { min-width: 132px; padding: 10px 11px; color: #344052; background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; outline: none; }
.filters input[type=search] { flex: 1 0 160px; }
.filters input[type=search]::placeholder { color: #8a96a5; }
.filters :is(select, input[type=search]):focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.module-filters { margin: 0 0 16px; padding: 10px; background: #eef3f8; border: 1px solid #e1e8ef; border-radius: 10px; }
.module-filters select { flex: 1 0 132px; min-width: 132px; }
.equipment-search { align-items: center; }
.equipment-search button { flex: 0 0 auto; min-height: 38px; padding: 8px 15px; color: #fff; background: #147dbd; border: 0; border-radius: 7px; font-size: 14px; font-weight: 750; white-space: nowrap; }
.distance-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 11px 12px; color: #516174; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; font-size: 13px; }
.distance-toolbar button { min-height: 38px; padding: 8px 12px; color: #fff; background: #147dbd; border: 0; border-radius: 7px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.inspection-filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; padding: 10px; background: #eef3f8; border: 1px solid #e1e8ef; border-radius: 10px; }
.inspection-filter-row select { min-width: 0; padding: 10px 8px; color: #344052; background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; outline: none; }
.inspection-search-filter { display: flex; gap: 8px; margin: 0 0 16px; }
.inspection-search-filter input[type=search] { width: 100%; min-width: 0; flex: 1 1 auto; }
.inspection-search-filter button { flex: 0 0 auto; min-height: 42px; padding: 8px 16px; color: #fff; background: #147dbd; border: 0; border-radius: 8px; font-size: 14px; font-weight: 750; white-space: nowrap; }
.import-panel { margin: 0 0 14px; padding: 0; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; box-shadow: 0 2px 8px #1a2a4010; overflow: hidden; }
.import-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; min-height: 64px; padding: 10px 14px; color: #24364b; list-style: none; cursor: pointer; }
.import-summary::-webkit-details-marker { display: none; }
.import-summary-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #147dbd; background: #eaf5fc; border-radius: 8px; }
.import-summary-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.import-summary strong, .import-summary small { display: block; }
.import-summary strong { font-size: 15px; }
.import-summary small { margin-top: 3px; color: #7b8794; font-size: 12px; }
.import-summary-action { padding: 6px 9px; color: #1678b8; background: #edf6fd; border-radius: 6px; font-size: 12px; font-weight: 700; }
.import-panel[open] .import-summary { border-bottom: 1px solid #e4ebf2; }
.import-panel[open] .import-summary-action { color: #fff; background: #177ebd; }
.import-body { padding: 14px; }
.import-body p { margin: 0 0 12px; color: #66717f; font-size: 13px; line-height: 1.55; }
.import-panel textarea { display: block; width: 100%; min-height: 118px; padding: 11px; color: #263346; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; outline: none; resize: vertical; font: 13px/1.45 Consolas, "Microsoft YaHei", monospace; }
.import-panel textarea:focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.import-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-top: 11px; }
.import-actions input[type=file] { min-width: 0; padding: 8px; color: #5f6b78; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; font-size: 13px; }
.import-actions button { min-height: 44px; padding: 9px 12px; color: #fff; background: #177ebd; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s ease, box-shadow .2s ease; }
.import-actions button:hover { background: #106a9f; box-shadow: 0 4px 10px #177ebd30; }
.import-actions button[data-template-download] { color: #1678b8; background: #edf6fd; }
.import-result { min-height: 20px; margin-top: 9px; color: #66717f; font-size: 13px; }
.ok-text { color: #138b48; }
.error-text { color: #c63e45; }
.module-list { display: grid; gap: 10px; }
.list-card { margin: 0 0 12px; padding: 17px; background: #fff; border: 1px solid #e8edf2; border-left: 4px solid #e3a22c; border-radius: 10px; box-shadow: 0 2px 8px #1a2a4010; }
.module-list .list-card { margin: 0; }
.module-list .list-card:hover { border-color: #b6d7ea; box-shadow: 0 6px 16px #1a2a4015; }
.list-card.maintenance { border-left-color: #dd514c; }
.list-card.disabled { border-left-color: #9aa5b2; }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.row h2 { margin: 0; color: #17263a; font-size: 19px; line-height: 1.35; }
.status { flex: 0 0 auto; padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.status.normal, .status.completed { color: #138b48; background: #e6f6ed; }
.status.maintenance, .status.in_progress { color: #d47a19; background: #fff1dd; }
.status.disabled, .status.overdue { color: #cc4848; background: #fdeaea; }
.status.pending, .status.planned { color: #477493; background: #e8f1f7; }
.details { display: grid; gap: 7px; margin: 13px 0; color: #687382; font-size: 14px; }
.inspection-details { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.inspection-details span { min-width: 0; overflow-wrap: anywhere; }
.equipment-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #e8edf2; }
.equipment-field-grid div { min-width: 0; padding: 10px; background: #f8fbfd; border: 1px solid #e3ebf2; border-radius: 8px; }
.equipment-field-grid span { display: block; margin-bottom: 6px; color: #718092; font-size: 12px; }
.equipment-field-grid strong { display: block; color: #253448; font-size: 13px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.equipment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; color: #5f6f82; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; font-size: 13px; }
.equipment-toolbar div { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.equipment-toolbar button { min-height: 34px; padding: 7px 10px; color: #1678b8; background: #edf6fd; border: 0; border-radius: 7px; font-size: 12px; font-weight: 750; }
.equipment-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.equipment-table-wrap { overflow: auto; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; box-shadow: 0 4px 16px #1a2a4010; }
.equipment-table { min-width: 620px; }
.equipment-table-row { display: grid; grid-template-columns: minmax(155px, .95fr) minmax(210px, 1.35fr) minmax(96px, .62fr) minmax(92px, .58fr); align-items: center; gap: 0; min-height: 48px; border-top: 1px solid #edf2f6; }
.equipment-table-row:first-child { border-top: 0; }
.equipment-table-head { position: sticky; top: 0; z-index: 1; min-height: 42px; color: #516172; background: #f6f9fc; font-size: 12px; font-weight: 800; }
.equipment-table-head div, .equipment-cell { min-width: 0; padding: 10px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-cell { color: #263346; font-size: 12px; font-weight: 650; }
.equipment-sn, .equipment-store { color: #263346; font-weight: 650; }
.equipment-table-row:not(.equipment-table-head):hover { background: #f8fbfd; }
.equipment-pager { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0 0; }
.equipment-pager button { min-height: 36px; padding: 8px 13px; color: #1678b8; background: #edf6fd; border: 0; border-radius: 8px; font-size: 13px; font-weight: 750; }
.equipment-pager button:disabled { opacity: .45; cursor: not-allowed; }
.inline-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #e8edf2; }
.actions :is(button, a) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 12px; color: #1678b8; background: #edf6fd; border: 0; border-radius: 6px; font-size: 13px; font-weight: 650; text-decoration: none; }
.actions .secondary { color: #d34d4d; background: #ffebeb; }
.actions .danger { color: #b92f36; background: #fff0f0; }
.inspection-actions { align-items: center; justify-content: space-between; gap: 10px; }
.action-main { display: flex; flex-wrap: wrap; gap: 8px; }
.store-tag { max-width: 170px; min-height: 36px !important; padding: 7px 10px !important; color: #6d7784 !important; background: #f4f7fa !important; border: 1px solid #e1e8ef !important; border-radius: 8px !important; font-size: 12px !important; font-weight: 700 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-tag span { margin-right: 4px; }
.store-tag.has-tag { color: #0f6fa8 !important; background: #eaf6fd !important; border-color: #bfe2f5 !important; }
.assign-panel { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 12px; padding: 12px; background: #fff; border: 1px solid #dfe7ef; border-radius: 10px; }
.assign-panel select { min-height: 42px; padding: 9px 10px; color: #344052; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; }
.assign-panel button { min-height: 42px; padding: 9px 13px; color: #fff; background: #147dbd; border: 0; border-radius: 8px; font-size: 13px; font-weight: 800; }
.assign-search { grid-column: 1 / -1; display: flex; gap: 8px; }
.assign-search input { min-width: 0; min-height: 42px; flex: 1 1 auto; padding: 9px 11px; color: #344052; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; outline: none; }
.assign-search input:focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.assign-search button { flex: 0 0 auto; }
.assign-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.assign-row input { width: 18px; height: 18px; }
.assign-row strong, .assign-row small { display: block; }
.assign-row strong { color: #17263a; font-size: 15px; }
.assign-row small { margin-top: 5px; color: #687382; font-size: 12px; }
.progress-report { display: grid; gap: 24px; }
.progress-section { margin: 0; }
.progress-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 8px; }
.progress-group-title strong { color: #12213a; font-size: 17px; font-weight: 850; }
.progress-group-title span { color: #667386; font-size: 12px; font-weight: 700; }
.progress-table { overflow: auto; background: #fff; border: 1px solid #cfdde9; border-radius: 8px; box-shadow: 0 4px 16px #1a2a4010; }
.progress-row { display: grid; min-width: 560px; border-top: 1px solid #dfe8f1; }
.progress-report-table .progress-row { grid-template-columns: minmax(120px, 1.15fr) minmax(110px, 1.1fr) 68px 68px 68px 72px; }
.progress-row:first-child { border-top: 0; }
.progress-row span { display: flex; flex-direction: column; justify-content: center; min-height: 38px; padding: 8px 10px; color: #263346; font-size: 13px; white-space: nowrap; border-left: 1px solid #e6eef5; }
.progress-row span:first-child { border-left: 0; }
.progress-row strong { color: #17263a; font-size: 13px; font-weight: 750; }
.progress-row small { margin-top: 2px; color: #7a8795; font-size: 11px; font-weight: 600; }
.progress-head { background: #cfefff; }
.progress-head span { color: #0b3b57; font-size: 13px; font-weight: 850; }
.progress-total-row { background: #f2f8fc; }
.progress-total-row span { color: #d71935; font-weight: 850; }
.progress-total-row strong { color: #d71935; font-weight: 850; }
.progress-empty { min-width: 560px; padding: 18px; color: #7a8795; font-size: 13px; text-align: center; border-top: 1px solid #edf2f6; }
.detail-card { margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid #e8edf2; border-radius: 10px; box-shadow: 0 2px 8px #1a2a4010; }
.detail-card h2 { margin: 0 0 8px; font-size: 22px; }
.detail-meta { display: grid; gap: 8px; color: #687382; font-size: 14px; }
.detail-meta strong { color: #202a3a; }
.task-hero { margin: 0 0 14px; padding: 18px; background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); border: 1px solid #e0e8f1; border-radius: 10px; box-shadow: 0 6px 18px #1b2d4212; }
.task-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.task-hero h2 { margin: 4px 0 0; color: #12213a; font-size: 23px; line-height: 1.25; }
.overline { color: #147dbd; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.task-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-meta-grid div { min-height: 66px; padding: 11px; background: #fff; border: 1px solid #e7edf3; border-radius: 8px; }
.task-meta-wide { grid-column: 1 / -1; }
.task-meta-grid span { display: block; margin-bottom: 7px; color: #7a8795; font-size: 12px; }
.task-meta-grid strong { display: block; color: #263346; font-size: 14px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.run-list { display: grid; gap: 12px; }
.run-card { padding: 16px; background: #fff; border: 1px solid #e3eaf1; border-radius: 10px; box-shadow: 0 4px 14px #1b2d4210; }
.run-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.run-card h3 { margin: 0; color: #17263a; font-size: 17px; line-height: 1.3; }
.run-card p { margin: 4px 0 0; color: #778390; font-size: 13px; }
.step-index { display: grid; place-items: center; width: 36px; height: 36px; color: #147dbd; background: #eaf5fc; border-radius: 8px; font-size: 13px; font-weight: 800; }
.situation-input { display: block; width: 100%; min-height: 120px; margin-top: 14px; padding: 12px; color: #263346; background: #f8fbfd; border: 1px solid #d5e1eb; border-radius: 8px; outline: none; resize: vertical; font: 14px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.situation-input:focus { border-color: #147dbd; box-shadow: 0 0 0 3px #147dbd18; }
.situation-readonly { margin-top: 14px; padding: 12px; color: #5d6b7a; background: #f7fafc; border: 1px solid #e2eaf1; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.checklist { display: grid; gap: 12px; margin-top: 14px; }
.check-item { padding: 14px; background: #fff; border: 1px solid #e5ebf2; border-radius: 10px; box-shadow: 0 2px 8px #1a2a4010; }
.check-item-top { display: flex; align-items: center; gap: 10px; }
.check-item-top input { width: 18px; height: 18px; }
.check-item-title { flex: 1; font-size: 16px; font-weight: 650; }
.check-item textarea { display: block; width: 100%; min-height: 72px; margin-top: 10px; padding: 10px; color: #263346; background: #f8fafc; border: 1px solid #dfe6ee; border-radius: 8px; resize: vertical; font: inherit; }
.upload-box, .location-box { margin-top: 14px; }
.upload-box input[type=file] { display: none; }
.upload-trigger, .location-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 14px; color: #fff; background: #177ebd; border: 0; border-radius: 8px; font-size: 13px; font-weight: 750; }
.image-preview, .location-result { margin-top: 11px; padding: 14px; color: #617082; background: #f8fbfd; border: 1px dashed #cfdce8; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.image-preview { min-height: 96px; display: grid; place-items: center; text-align: center; }
.image-preview img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; }
.location-result { border-style: solid; background: #f7fafc; }
.run-footer { position: sticky; z-index: 4; bottom: calc(72px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-top: 16px; padding: 12px; background: #ffffffea; border: 1px solid #e2e9f0; border-radius: 10px; box-shadow: 0 8px 24px #1b2d421a; backdrop-filter: blur(10px); }
.primary-action, .ghost-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 800; text-decoration: none; }
.primary-action { color: #fff; background: #137dbd; border: 0; }
.ghost-action { color: #1678b8; background: #eef6fc; }
.primary-action:disabled { opacity: .7; cursor: wait; }
.toolbar-note { margin: 0 0 12px; color: #687382; font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 10px; color: #4a5b6d; background: #f2f6fa; border-radius: 999px; font-size: 13px; }
.route-map-shell { margin: 0 0 14px; background: #fff; border: 1px solid #dde7ef; border-radius: 12px; box-shadow: 0 4px 16px #162a4114; overflow: hidden; }
.route-map-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; padding: 12px; border-bottom: 1px solid #e5edf4; }
.route-map-head div { min-height: 54px; padding: 8px 10px; background: #f6f9fc; border: 1px solid #e6edf4; border-radius: 8px; }
.route-map-head strong { display: block; color: #147dbd; font-size: 22px; line-height: 1.05; }
.route-map-head span { display: block; margin-top: 5px; color: #697686; font-size: 12px; }
.route-map-head a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 10px; color: #fff; background: #147dbd; border-radius: 8px; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.route-location-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #516174; background: #f8fbfd; border-bottom: 1px solid #e5edf4; font-size: 13px; }
.route-location-bar span { min-width: 0; overflow-wrap: anywhere; }
.route-location-bar button { min-height: 36px; padding: 8px 12px; color: #fff; background: #147dbd; border: 0; border-radius: 8px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.route-tag-filter { min-height: 54px; padding: 8px 10px; background: #f6f9fc; border: 1px solid #e6edf4; border-radius: 8px; }
.route-tag-filter label { display: grid; gap: 3px; color: #697686; font-size: 12px; font-weight: 700; }
.route-tag-filter select { width: 100%; min-width: 0; padding: 0; color: #147dbd; background: transparent; border: 0; outline: none; font-size: 14px; font-weight: 800; }
.route-tag-filter select:focus { border-color: #5ca8d6; box-shadow: 0 0 0 3px #167dbd18; }
.route-map { position: relative; width: 100%; height: min(64dvh, 560px); min-height: 430px; background: #dbe8ef; }
.route-map .leaflet-control-container .leaflet-control { border: 0; box-shadow: 0 4px 14px #1b2d4224; }
.store-marker-shell, .my-marker-shell { background: transparent; border: 0; }
.store-marker { position: relative; width: 34px; height: 44px; filter: drop-shadow(0 7px 8px #044a8648); }
.store-marker::before { content: ""; position: absolute; left: 5px; top: 2px; width: 24px; height: 24px; background: linear-gradient(135deg, #00b7ff, #006dff); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: inset 0 2px 5px #ffffff45; }
.store-marker span { position: absolute; left: 50%; top: 14px; width: 8px; height: 8px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px #0077e6; transform: translateX(-50%); z-index: 1; }
.store-marker::after { content: ""; position: absolute; left: 11px; bottom: 1px; width: 12px; height: 5px; background: #0057a833; border-radius: 50%; filter: blur(1px); }
.store-marker.completed { filter: drop-shadow(0 7px 8px #a3112148); }
.store-marker.completed::before { background: linear-gradient(135deg, #ff4b5f, #d71935); }
.store-marker.completed span { box-shadow: 0 0 0 2px #d71935; }
.store-marker.completed::after { background: #a90f2638; }
.my-marker { position: relative; width: 38px; height: 46px; filter: drop-shadow(0 7px 9px #0879364d); }
.my-marker::before { content: ""; position: absolute; left: 3px; top: 3px; width: 32px; height: 32px; background: #16a34a; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: inset 0 2px 5px #ffffff40; }
.person-head { position: absolute; left: 50%; top: 9px; width: 10px; height: 10px; background: #fff; border-radius: 50%; transform: translateX(-50%); z-index: 2; }
.person-body { position: absolute; left: 50%; top: 21px; width: 16px; height: 10px; background: #fff; border-radius: 9px 9px 4px 4px; transform: translateX(-50%); z-index: 2; }
.my-marker::after { content: ""; position: absolute; left: 9px; bottom: 0; width: 20px; height: 6px; background: #0f8d3b40; border-radius: 50%; filter: blur(1px); animation: my-marker-pulse 1.8s ease-out infinite; }
@keyframes my-marker-pulse { 0% { box-shadow: 0 0 0 0 #16a34a55; } 70% { box-shadow: 0 0 0 14px #16a34a00; } 100% { box-shadow: 0 0 0 0 #16a34a00; } }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #5d6a78; text-align: center; background: linear-gradient(135deg, #eaf3ee, #dbe7f2); font-size: 14px; }
.map-popup { display: grid; gap: 5px; min-width: 170px; color: #263346; font: 13px/1.45 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.map-popup strong { color: #14243a; font-size: 15px; }
.map-popup span { color: #5f6e7e; }
.map-popup a { display: inline-flex; justify-content: center; margin-top: 4px; padding: 7px 9px; color: #fff; background: #147dbd; border-radius: 6px; text-decoration: none; font-weight: 700; }
.route-task-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid #9fc6e1; border-radius: 9px; box-shadow: 0 3px 12px #1a496611; }
.route-task-detail.is-empty { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 92px; color: #718093; border-style: dashed; box-shadow: none; }
.route-task-detail-hint { font-size: 13px; }
.route-task-detail-content { display: grid; min-width: 0; gap: 9px; }
.route-task-detail h2 { margin: 0; color: #17263a; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.route-task-detail-address { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; color: #97a1ad; font-size: 14px; line-height: 1.4; }
.route-task-detail-address strong { color: #405167; font-size: 15px; }
.route-task-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #586a7d; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.route-task-tag { display: inline-flex; align-items: center; gap: 4px; }
.route-task-detail-meta b { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; color: #0f6fa8; background: #eaf6fd; border: 1px solid #bfe2f5; border-radius: 999px; font-size: 12px; }
.route-task-detail-actions { display: flex; align-items: center; gap: 10px; }
.route-task-navigation { display: grid; place-items: center; width: 38px; height: 38px; color: #287cf1; background: #fff; border: 1px solid #d7e6f3; border-radius: 50%; box-shadow: 0 2px 7px #1a496610; }
.route-task-navigation svg { width: 19px; height: 19px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.route-task-detail-action { display: inline-flex; align-items: center; justify-content: center; min-width: 98px; min-height: 38px; padding: 8px 15px; color: #fff; background: #287cf1; border-radius: 20px; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 9px #287cf136; }
.route-task-detail-action:hover { background: #1268df; }
.route-store-list, .route-missing { margin: 0 0 14px; padding: 14px; background: #fff; border: 1px solid #dde7ef; border-radius: 12px; box-shadow: 0 2px 10px #162a4110; }
.route-store-list h2, .route-missing h2 { margin: 0 0 11px; color: #17263a; font-size: 18px; }
.route-store-card { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #edf2f6; }
.route-store-card:first-of-type { border-top: 0; }
.route-pin { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: #1682c1; border-radius: 999px; font-size: 12px; font-weight: 800; box-shadow: 0 3px 8px #147dbd35; }
.route-store-card.completed .route-pin { background: #dc2339; box-shadow: 0 3px 8px #dc233940; }
.route-store-card strong, .route-store-card span { display: block; overflow-wrap: anywhere; }
.route-store-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #17263a; font-size: 15px; }
.route-store-card strong em { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; color: #c91f33; background: #fff0f2; border: 1px solid #ffd2d8; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 850; }
.route-store-card span { margin-top: 4px; color: #647386; font-size: 12px; line-height: 1.35; }
.route-store-card a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; color: #1678b8; background: #edf6fd; border-radius: 7px; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.route-missing p { margin: 0 0 10px; color: #697686; font-size: 13px; line-height: 1.5; }
.route-missing div { display: flex; flex-wrap: wrap; gap: 7px; }
.route-missing span { max-width: 100%; padding: 6px 9px; color: #755921; background: #fff7df; border: 1px solid #f0dfaa; border-radius: 999px; font-size: 12px; overflow-wrap: anywhere; }
.empty { display: grid; place-items: center; gap: 12px; padding: 70px 20px; color: #98a2af; text-align: center; font-size: 16px; }
.empty-icon { color: #8ba0b3; }
.loading, .error { margin: 35px 0; padding: 22px; color: #6c7785; text-align: center; background: #fff; border-radius: 10px; }
.error { color: #c63e45; }
.bottom-nav { position: absolute !important; z-index: 2147483000; top: auto; right: 0; bottom: 0; left: 0; display: grid; grid-auto-rows: 53px; grid-template-columns: repeat(5, 1fr); align-content: start; width: min(620px, 100%); height: calc(72px + env(safe-area-inset-bottom)); min-height: 72px; max-height: calc(72px + env(safe-area-inset-bottom)); margin: 0 auto; padding: 9px 4px calc(8px + env(safe-area-inset-bottom)); overflow: hidden; background: #fff; border-top: 1px solid #dfe5ec; transform: none; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 53px; color: #87909d; font-size: 12px; font-weight: 650; text-decoration: none; }
.bottom-nav svg { width: 24px; height: 24px; }
.bottom-nav a.active { color: #147dbd; }
.bottom-nav a:hover { color: #147dbd; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 440px) { .import-actions { grid-template-columns: 1fr; } .import-actions button { width: 100%; } }
@media (max-width: 440px) { .equipment-field-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .equipment-toolbar { align-items: stretch; flex-direction: column; } .equipment-toolbar div { display: grid; grid-template-columns: 1fr 1fr; } .equipment-table-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; } .equipment-table { display: grid; gap: 10px; min-width: 0; } .equipment-table-head { display: none; } .equipment-table-row { display: grid; grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 12px; background: #fff; border: 1px solid #e1e9f1; border-radius: 10px; box-shadow: 0 3px 12px #1a2a400c; } .equipment-cell { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; } .equipment-cell::before { content: attr(data-label); color: #7a8795; font-size: 12px; font-weight: 750; } .equipment-pager { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .route-map-head { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 9px; } .route-map-head div, .route-tag-filter { min-width: 0; padding: 7px; } .route-map-head strong { font-size: 19px; } .route-map-head span, .route-tag-filter label { font-size: 11px; } .route-tag-filter select { font-size: 12px; } .route-location-bar { align-items: stretch; flex-direction: column; } .route-location-bar button { width: 100%; } .route-map { min-height: 480px; height: 62dvh; } .route-task-detail { grid-template-columns: 1fr; gap: 13px; } .route-task-detail-actions { justify-content: space-between; } .route-task-detail-action { flex: 1; } .route-store-card { grid-template-columns: auto 1fr; } .route-store-card a { grid-column: 2; justify-self: start; } }
@media (max-width: 440px) { .inspection-actions { align-items: stretch; flex-direction: column; } .action-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .store-tag { max-width: none; justify-self: end; } }
@media (max-width: 440px) { .task-meta-grid { grid-template-columns: 1fr; } .run-footer { grid-template-columns: 1fr; } .ghost-action { min-height: 38px; } }
@media (max-width: 380px) { .brand { font-size: 22px; } .summary-card strong { font-size: 23px; } .summary-card span { font-size: 12px; } .module-card { min-height: 170px; } .task-hero h2 { font-size: 21px; } }
@media (max-width: 440px) {
  .app-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .view { padding: 10px 10px 8px; }
  .user-strip { margin-bottom: 8px; padding: 8px 10px; }
  .summary-grid { gap: 6px; margin: 10px 0 14px; }
  .summary-card { min-height: 68px; padding: 10px 3px 7px; border-radius: 9px; }
  .summary-card strong { font-size: 21px; }
  .summary-card span { margin-top: 5px; font-size: 11px; }
  .section-title { gap: 7px; margin: 4px 0 9px; font-size: 20px; }
  .section-icon { width: 23px; height: 23px; }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .module-card { min-height: 104px; gap: 6px; padding: 10px 4px; border-radius: 9px; }
  .module-icon { width: 40px; height: 40px; border-radius: 11px; }
  .module-icon svg { width: 23px; height: 23px; }
  .module-card strong { font-size: 14px; }
  .module-card small { font-size: 10px; line-height: 1.2; }
  .module-page-head { margin-bottom: 10px; }
  .page-head { gap: 8px; margin-bottom: 7px; }
  .back { width: 36px; height: 36px; }
  .page-head h1 { font-size: 21px; }
  .module-intro { margin-left: 44px; }
  .module-intro p { font-size: 12px; }
  .route-map-shell { margin-bottom: 8px; }
  .route-map { height: clamp(240px, 34dvh, 300px); min-height: 240px; }
  .route-task-detail { margin-bottom: 8px; padding: 12px; }
  .route-task-detail h2 { font-size: 18px; }
  .route-task-detail-content { gap: 6px; }
  .route-task-detail-address { gap: 5px 10px; font-size: 12px; }
  .route-task-detail-address strong { font-size: 13px; }
  .route-task-detail-meta { gap: 5px 10px; font-size: 12px; }
  .route-task-detail-action { min-height: 36px; font-size: 14px; }
  .route-task-navigation { width: 36px; height: 36px; }
  .inspection-filter-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .inspection-filter-row select { padding: 9px 4px; font-size: 12px; }
  .inspection-search-filter { gap: 7px; padding: 8px; margin-bottom: 10px; }
  .inspection-search-filter input[type=search] { min-width: 0; flex-basis: auto; }
  .inspection-search-filter button { min-width: 66px; padding: 8px 12px; }
  .inspection-details { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 6px; }
  .inspection-details span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
  .inspection-details span:first-child { grid-column: 1 / -1; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .inspection-details span:nth-child(3) { color: #7a8795; font-size: 11px; }
  .inspection-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .action-main { display: contents; }
  .inspection-actions :is(a, button) { width: 100%; min-width: 0; min-height: 40px; padding: 6px 5px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .inspection-actions .store-tag { max-width: none; min-height: 40px !important; justify-content: center; }
  .equipment-page .module-summary { display: none; }
  .equipment-table-row.equipment-table-head { display: none !important; }
  .equipment-table-row { gap: 6px; padding: 12px 14px; }
  .equipment-cell { grid-template-columns: 78px minmax(0, 1fr); font-size: 13px; }
  .equipment-sn { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal !important; }
  .auth-mode .view { padding: 12px; }
  .auth-card { padding: 20px 16px; }
  .progress-report { gap: 18px; }
  .progress-group-title { margin-bottom: 7px; }
  .progress-group-title strong { font-size: 16px; }
  .progress-table { overflow: hidden; border-radius: 7px; }
  .progress-report-table .progress-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) repeat(4, minmax(0, .64fr)); min-width: 0; }
  .progress-row span { min-width: 0; min-height: 48px; padding: 6px 4px; font-size: 11px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
  .progress-row strong { font-size: 11px; }
  .progress-head span { font-size: 11px; }
}
@media (max-width: 440px) and (max-height: 740px) {
  .module-card { min-height: 92px; }
  .module-icon { width: 34px; height: 34px; }
  .module-icon svg { width: 20px; height: 20px; }
  .route-map { height: 28dvh; min-height: 210px; }
}
