:root { --ink: #1d2729; --muted: #637174; --line: #d8e0de; --paper: #f7faf8; --panel: #ffffff; --deep: #1b3134; --teal: #23777f; --green: #5d9f5e; --amber: #e7a23a; --red: #c9503f; --blue: #447ca7; --shadow: 0 14px 38px rgba(24, 40, 43, 0.12); } * { box-sizing: border-box; } html, body { min-height: 100%; } body { margin: 0; background: #e9eeec; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; } button, input, select { font: inherit; } button { cursor: pointer; } button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: 0.55; } .app-shell { width: min(100vw, 800px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 1px rgba(27, 49, 52, 0.08); overflow-x: hidden; } .screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 74px; padding: 14px 22px; background: var(--deep); color: #fff; } .brand { display: flex; align-items: center; gap: 12px; min-width: 0; } .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--deep); font-weight: 800; } .brand-title { margin: 0; font-size: 22px; line-height: 1.05; letter-spacing: 0; } .brand-subtitle { margin: 5px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 12px; } .topbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; } .pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.11); color: #fff; font-size: 12px; white-space: nowrap; } .pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); } .pill.warn::before { background: var(--amber); } .pill.bad::before { background: var(--red); } .content { flex: 1; padding: 22px; } .boot-screen { background: linear-gradient(rgba(27, 49, 52, 0.86), rgba(27, 49, 52, 0.86)), url("./assets/recycle-poster-1.png") center / cover; color: #fff; } .boot-panel { width: min(100%, 560px); margin: auto; padding: 28px; background: rgba(255, 255, 255, 0.96); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); } .boot-title { margin: 0 0 8px; font-size: 30px; letter-spacing: 0; } .boot-desc { margin: 0 0 20px; color: var(--muted); line-height: 1.7; } .check-list { display: grid; gap: 12px; margin: 22px 0; } .check-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); background: #fbfdfc; border-radius: 8px; } .check-name { font-weight: 700; } .check-meta { color: var(--muted); font-size: 13px; } .check-state { min-width: 76px; text-align: center; padding: 7px 10px; border-radius: 8px; color: #fff; background: var(--amber); font-size: 13px; font-weight: 700; } .check-state.ok { background: var(--green); } .check-state.bad { background: var(--red); } .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .btn { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; background: #fff; color: var(--ink); font-weight: 700; } .btn.primary { border-color: var(--teal); background: var(--teal); color: #fff; } .btn.success { border-color: var(--green); background: var(--green); color: #fff; } .btn.danger { border-color: var(--red); background: var(--red); color: #fff; } .btn.dark { border-color: var(--deep); background: var(--deep); color: #fff; } .btn.ghost { background: transparent; } .icon-btn { width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 800; } .home-main { flex: 1; display: block; padding: 22px; } .app-log-window { position: fixed; top: 84px; right: max(12px, calc((100vw - 800px) / 2 + 12px)); z-index: 80; width: min(430px, calc(100vw - 24px)); max-height: 220px; overflow: hidden; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(13, 22, 23, 0.9); color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); pointer-events: none; } .log-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 800; } .log-list { display: grid; gap: 5px; } .log-line { display: grid; grid-template-columns: 56px 42px minmax(0, 1fr); gap: 6px; align-items: start; font-size: 11px; line-height: 1.35; } .log-time { color: rgba(255, 255, 255, 0.55); } .log-kind { color: #9edfd6; font-weight: 800; } .log-message { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .log-empty { color: rgba(255, 255, 255, 0.68); font-size: 12px; } .home-lower { position: relative; min-height: calc(100vh - 118px); display: grid; grid-template-rows: 1fr auto; align-items: center; padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; } .home-prompt { text-align: center; } .prompt-title { margin: 0; font-size: 42px; font-size: clamp(30px, 6vw, 52px); line-height: 1.18; letter-spacing: 0; } .prompt-subtitle { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.7; } .home-status { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; max-width: min(86vw, 760px); min-height: 42px; padding: 10px 14px; border-radius: 8px; background: #eef6f2; color: #31543a; font-weight: 800; line-height: 1.45; } .home-status.bad { background: #f8e6e2; color: #833225; } .face-live-feedback { width: min(100%, 560px); margin: 12px auto 0; padding: 10px 14px; border-radius: 8px; background: #fff3d8; color: #79520c; text-align: center; font-size: 16px; font-weight: 800; } .face-live-feedback.bad { background: #f8e6e2; color: #833225; } .face-recognition-indicator { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 0; color: var(--teal); font-size: 20px; } .camera-preview-host { position: relative; display: grid; place-items: center; overflow: hidden; border: 4px solid #d9e5e2; border-radius: 12px; background: #11191b; color: rgba(255, 255, 255, 0.7); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); } .camera-preview-host::after { content: "USB CAMERA"; position: absolute; right: 10px; bottom: 8px; z-index: 2; padding: 4px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.48); color: rgba(255, 255, 255, 0.9); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; pointer-events: none; } .home-camera-preview { width: 100%; max-width: 560px; height: 420px; margin: 20px auto 0; } .settings-camera-preview { width: 100%; max-width: 480px; height: 360px; margin: 0 auto; } .face-preview-status { margin: 12px 0 0; text-align: center; font-weight: 700; } .face-enroll-button { min-width: 180px; min-height: 50px; } .face-enrollment-message { color: var(--teal); font-weight: 800; } .face-people-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; } .face-people-table { width: 100%; border-collapse: collapse; background: #fff; } .face-people-table th, .face-people-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; } .face-people-table th { color: var(--muted); font-size: 13px; font-weight: 800; } .face-registered-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #dff2e8; color: #256344; font-size: 12px; font-weight: 900; } .face-registered-badge.pending { background: #fff0d4; color: #8a5a11; } .face-person-actions { display: flex; flex-wrap: wrap; gap: 8px; } .face-person-actions .btn { min-height: 38px; padding: 7px 12px; } .face-capture-backdrop { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(12, 26, 28, 0.76); } .face-capture-dialog { width: min(94vw, 640px); max-height: 94vh; overflow-y: auto; padding: 18px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32); } .face-capture-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; } .face-capture-preview { width: 100%; height: 360px; margin-top: 12px; } .face-capture-inline { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f9f8; } .face-capture-inline h3 { margin: 0; font-size: 20px; } .face-capture-status { margin: 12px 0 0; color: var(--teal); text-align: center; font-weight: 800; } .face-capture-actions { justify-content: center; } .face-empty-row { padding: 28px 12px !important; color: var(--muted); text-align: center !important; } .face-frame { display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--teal); border-radius: 14px; font-size: 30px; animation: facePulse 1.6s ease-in-out infinite; } @keyframes facePulse { 50% { box-shadow: 0 0 0 8px rgba(35, 130, 122, 0.12); } } .home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; } .home-login-btn { min-width: 180px; min-height: 56px; font-size: 20px; } .admin-entry { position: absolute; right: 18px; bottom: 18px; } .flow-screen.white { background: #fff; color: #101517; } .flow-body { flex: 1; padding: 28px 26px; } .section-title { margin: 0 0 8px; font-size: 26px; letter-spacing: 0; } .section-desc { margin: 0 0 20px; color: var(--muted); line-height: 1.65; } .user-band { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfc; } .work-info-body { display: flex; flex-direction: column; } .work-form { width: min(100%, 620px); display: grid; gap: 16px; margin-top: 10px; } .work-field { margin-bottom: 0; } .work-field input { min-height: 58px; font-size: 20px; } .picker-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; align-items: stretch; } .picker-input-row input { min-width: 0; } .picker-button { min-height: 58px; font-size: 18px; } .work-picker-backdrop { position: fixed; /* Android 7 的旧版 WebView 不支持 inset,必须保留四边定位作为兼容写法。 */ top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(10, 28, 30, 0.38); } .employee-login-backdrop { width: 100vw; height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; z-index: 100; } .work-picker-dialog { width: min(92vw, 620px); max-height: min(72vh, 560px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); } .employee-login-dialog { width: min(92vw, 520px); max-height: calc(100dvh - 48px); margin: auto; } .employee-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; } .employee-choice { min-height: 76px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: #f8fbfa; color: var(--ink); display: grid; gap: 5px; text-align: left; } .employee-choice span { font-size: 20px; font-weight: 900; } .employee-choice strong { color: var(--muted); font-size: 15px; } .employee-choice.selected { border-color: var(--teal); background: #e5f4ef; } .employee-choice:disabled { background: #f1f3f2; color: #98a2a3; } .work-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .work-picker-head h3 { margin: 0; font-size: 24px; } .work-picker-table { width: 100%; border-collapse: collapse; table-layout: fixed; } .work-picker-table td { padding: 6px; } .work-picker-cell { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfa; color: var(--ink); font-size: 19px; font-weight: 900; } .work-picker-cell.selected, .work-picker-cell:active { border-color: var(--teal); background: #e5f4ef; color: #174f51; } .empty-work-picker-list { padding: 22px; color: var(--muted); text-align: center; } .work-actions { margin-top: 10px; } .work-actions .btn { min-height: 58px; padding: 0 24px; font-size: 18px; } .loading-panel { width: min(100%, 620px); } .work-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .work-summary-item { min-width: 0; } .work-summary-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 800; } .work-summary-item strong { display: block; overflow-wrap: anywhere; font-size: 24px; line-height: 1.25; } .user-band strong { font-size: 30px; line-height: 1.25; } .work-summary .work-summary-item strong { font-size: 24px; } .user-band .small { margin-top: 6px; font-size: 22px; } .balance { font-size: 30px; font-weight: 800; color: var(--teal); } .ports-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .ports-grid.port-count-1 { grid-template-columns: minmax(0, 1fr); } .ports-grid.port-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .ports-grid.port-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .port-card { min-height: 150px; padding: 18px; border: 2px solid var(--line); border-radius: 8px; background: #fff; text-align: left; } .ports-grid.compact .port-card { min-height: 136px; padding: 16px; } .port-card.available { border-color: rgba(35, 119, 127, 0.42); } .port-card.available:hover { border-color: var(--teal); box-shadow: 0 8px 18px rgba(35, 119, 127, 0.12); } .port-card.blocked { background: #f4f5f3; color: #7b8587; } .port-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; } .port-number { font-size: 28px; font-weight: 900; } .ports-grid.compact .port-number { font-size: 24px; } .port-head .small { margin-top: 6px; font-size: 16px; } .ports-grid.compact .port-head .small { font-size: 14px; } .type-chip { padding: 9px 13px; border-radius: 8px; background: #e9f4f1; color: #285c55; font-size: 22px; font-weight: 900; } .ports-grid.compact .type-chip { padding: 8px 11px; font-size: 19px; } .select-actions { margin-top: 20px; } .delivery-stage { min-height: 610px; display: grid; place-items: center; text-align: center; } .countdown { margin: 18px 0 8px; font-size: 120px; font-size: clamp(82px, 20vw, 170px); font-weight: 900; line-height: 0.95; letter-spacing: 0; } .phase { font-size: 44px; font-size: clamp(28px, 6vw, 54px); font-weight: 900; letter-spacing: 0; } .safety { min-height: 58px; margin: 18px auto 28px; max-width: 560px; color: #5d3528; font-size: 20px; line-height: 1.55; } .delivery-actions { justify-content: center; } .delivery-actions .btn { min-width: 150px; min-height: 54px; font-size: 18px; } .success-port-result-grid { width: min(100%, 760px); margin: 0 auto; display: grid; gap: 14px; } .success-port-result-grid.port-count-1 { max-width: 360px; grid-template-columns: 1fr; } .success-port-result-grid.port-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .success-port-result-grid.port-count-3, .success-port-result-grid.port-count-4 { width: min(100%, 920px); grid-template-columns: repeat(2, minmax(0, 1fr)); } .success-port-result-card { min-height: 168px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; gap: 12px; align-content: center; text-align: left; box-shadow: 0 10px 22px rgba(21, 55, 58, 0.08); } .success-port-result-title { color: var(--teal-dark); font-size: 22px; font-weight: 900; } .success-port-result-metric { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6faf8; } .success-port-result-metric span { color: var(--muted); font-size: 15px; font-weight: 800; } .success-port-result-metric strong { color: var(--ink); font-size: 24px; } .login-box { width: min(100%, 460px); margin: 54px auto 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); } .field { display: grid; gap: 7px; margin-bottom: 14px; } .field label { color: #334346; font-weight: 800; font-size: 13px; } .field input, .field select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); } .serial-path-field { grid-column: 1 / -1; } .serial-path-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; } .serial-path-row .btn { min-width: 104px; } .serial-path-hint { margin: 0; } .readonly-value { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9f7; color: #526467; font-weight: 800; } .pin-panel { display: grid; gap: 8px; margin: 16px 0 14px; } .pin-label { color: #334346; font-weight: 800; font-size: 13px; } .pin-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; } .pin-display { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: 0; } .pin-toggle-button { min-width: 96px; min-height: 58px; padding: 0 14px; white-space: nowrap; } .numeric-keypad { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; } .numeric-keypad .keypad-key { width: calc((100% - 20px) / 3); flex: 0 0 calc((100% - 20px) / 3); } .keypad-key { min-height: 62px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 24px; font-weight: 900; } .keypad-key:active { border-color: var(--teal); background: #e9f4f1; } .keypad-key.utility { font-size: 18px; color: #3e5559; background: #f4f7f6; } .password-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f0; } .compact-keypad { max-width: 420px; } .danger-text { color: var(--red); font-weight: 800; } .settings-screen { background: #f1f5f3; } .settings-layout { flex: 1; display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); } .settings-nav { padding: 14px; border-right: 1px solid var(--line); background: #fff; } .tab-button { width: 100%; height: 44px; min-height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 7px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font-weight: 800; line-height: 1.1; padding: 0 12px; white-space: nowrap; } .tab-button.active { background: var(--deep); color: #fff; } .settings-main { padding: 18px; overflow: auto; } .settings-section { display: grid; gap: 14px; } .panel { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; } .panel-title { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .port-settings-panel { padding: 12px; } .port-settings-panel .panel-title { margin-bottom: 8px; } .port-setting-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .port-setting-button { min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); display: grid; align-content: center; gap: 7px; text-align: left; box-shadow: 0 8px 18px rgba(18, 53, 55, 0.07); } .port-setting-button strong { font-size: 22px; } .port-setting-button span { color: var(--muted); font-size: 16px; font-weight: 800; } .port-setting-button:active { border-color: var(--teal); background: #e9f6f2; } .port-setting-button.disabled, .port-setting-button:disabled { background: #f2f4f3; color: #98a2a3; box-shadow: none; cursor: default; } .port-setting-button.disabled span, .port-setting-button:disabled span { color: #98a2a3; } .port-settings-backdrop { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 28, 30, 0.38); } .port-settings-dialog { width: min(92vw, 760px); max-height: min(78vh, 620px); margin: auto; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); } .port-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .port-settings-head h3 { margin: 0; font-size: 24px; } .port-settings-actions { justify-content: flex-end; margin-top: 14px; } .port-config-main, .port-config-readings { display: grid; gap: 8px; align-items: end; } .port-config-main { grid-template-columns: repeat(4, minmax(0, 1fr)); } .port-config-main .port-type-field { grid-column: span 2; } .port-config-readings { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; } .port-config-main .field, .port-config-readings .field { gap: 3px; margin-bottom: 0; } .port-config-main .field label, .port-config-readings .field label { font-size: 12px; } .port-config-main .field input, .port-config-main .field select, .port-config-main .readonly-value, .port-config-readings .field input, .port-config-readings .field select, .port-config-readings .readonly-value { min-height: 38px; padding: 0 9px; font-size: 14px; } .port-status-cell { min-height: 38px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; align-content: center; gap: 2px; } .port-status-cell span { color: var(--muted); font-size: 12px; } .port-status-cell strong { color: var(--ink); font-size: 15px; } .port-toggle-cell { min-width: 0; } .port-toggle-cell .toggle-row { min-height: 38px; padding: 0; border-bottom: 0; } .port-toggle-cell .toggle-row span { font-size: 14px; } .port-toggle-cell .toggle-row small { display: none; } .port-toggle-cell .small { margin: 4px 0 0; font-size: 11px; } .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid #eef2f0; } .toggle-row:last-child { border-bottom: 0; } .toggle-row span { font-weight: 800; } .toggle-row small { display: block; margin-top: 3px; color: var(--muted); } .switch { position: relative; width: 54px; min-width: 54px; height: 30px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; inset: 0; border-radius: 30px; background: #b9c4c0; transition: 0.18s; } .slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: 0.18s; } .switch input:checked + .slider { background: var(--teal); } .switch input:checked + .slider::before { transform: translateX(24px); } .cache-list { display: grid; gap: 8px; margin-top: 12px; } .cache-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfc; } .cache-item strong { display: block; margin-bottom: 4px; } .small { color: var(--muted); font-size: 13px; } .test-results { display: grid; gap: 8px; margin-top: 12px; } .result-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 8px; background: #f4f7f6; } .result-line.ok strong { color: var(--green); } .result-line.bad strong { color: var(--red); } .toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; min-width: 220px; max-width: min(92vw, 520px); transform: translate(-50%, 140%); padding: 12px 16px; border-radius: 8px; background: rgba(24, 40, 43, 0.94); color: #fff; text-align: center; font-weight: 800; transition: transform 0.2s ease; } .toast.show { transform: translate(-50%, 0); } @media (max-width: 720px) { .topbar { align-items: flex-start; flex-direction: column; } .topbar-actions { justify-content: flex-start; } .settings-screen .topbar { flex-direction: row; align-items: center; } .settings-screen .topbar-actions { margin-left: auto; justify-content: flex-end; } .home-main, .content, .flow-body { padding: 14px; } .app-log-window { top: 128px; right: 8px; width: calc(100% - 16px); max-height: 150px; padding: 8px; } .log-line { grid-template-columns: 52px 40px minmax(0, 1fr); } .home-lower { min-height: 420px; padding: 22px 16px 76px; } .home-camera-preview { width: calc(100% + 32px); max-width: none; height: 420px; margin-left: -16px; margin-right: -16px; } .settings-camera-preview { max-width: 420px; height: 315px; } .admin-entry { right: 12px; bottom: 12px; } .ports-grid, .form-grid, .work-summary { grid-template-columns: 1fr; } .ports-grid.port-count-2, .ports-grid.port-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ports-grid.port-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .success-port-result-grid.port-count-2, .success-port-result-grid.port-count-3, .success-port-result-grid.port-count-4 { grid-template-columns: 1fr; } .port-setting-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .port-settings-dialog { width: min(94vw, 620px); } .port-config-main, .port-config-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .port-config-main .port-type-field { grid-column: span 2; } .settings-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: start; } .settings-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; align-self: start; gap: 8px; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } .tab-button { width: 100%; min-width: 0; margin-bottom: 0; justify-content: center; text-align: center; font-size: 15px; padding: 0 6px; } .user-band, .cache-item { grid-template-columns: 1fr; } } @media (orientation: portrait) { .app-shell { width: 100vw; } .topbar, .settings-screen .topbar { min-height: 68px; padding: 10px 14px; flex-flow: row wrap; align-items: center; } .brand-mark { width: 38px; height: 38px; } .brand-title { font-size: 19px; } .topbar-actions { margin-left: auto; } .content, .home-main, .flow-body { padding: 12px; } .boot-panel, .panel, .login-box { padding: 16px; } .home-lower { min-height: calc(100dvh - 92px); padding: 22px 14px 76px; } .prompt-title { font-size: clamp(26px, 7vw, 38px); } .prompt-subtitle { margin-top: 10px; font-size: 15px; } .home-camera-preview { width: 100%; max-width: 620px; margin: 14px auto 0; } .face-recognition-indicator { margin-top: 14px; font-size: 17px; } .home-actions { justify-content: center; } .home-actions .btn { flex: 1 1 130px; } .ports-grid.port-count-3, .ports-grid.port-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .port-card, .ports-grid.compact .port-card { min-height: 126px; padding: 13px; } .port-head { align-items: flex-start; flex-direction: column; } .delivery-stage { min-height: calc(100dvh - 92px); } .delivery-actions .btn { flex: 1 1 135px; } .success-port-result-grid.port-count-2, .success-port-result-grid.port-count-3, .success-port-result-grid.port-count-4 { grid-template-columns: 1fr; } .settings-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); } .settings-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 7px; overflow-x: auto; padding: 9px 10px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; } .settings-nav::-webkit-scrollbar { display: none; } .tab-button { width: auto; min-width: 92px; margin: 0; justify-content: center; padding: 0 12px; } .settings-main { padding: 12px; } .face-settings-section, .form-grid { grid-template-columns: 1fr; } .settings-camera-preview { width: 100%; max-width: 620px; height: 420px; } .face-people-head { align-items: stretch; flex-direction: column; } .face-people-table { min-width: 620px; } }