完善智能称重终端界面与电子秤接入

This commit is contained in:
FinleyHsu
2026-08-06 10:48:47 +08:00
parent 839edd1e4a
commit 3b856f0c11
8 changed files with 967 additions and 181 deletions
+119 -55
View File
@@ -69,6 +69,7 @@ button:disabled { cursor: not-allowed; opacity: .55; }
.progress-item.active span { color: white; background: var(--green); border-color: var(--green); }
.content { flex: 1; display: grid; }
footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-top: 1px solid var(--line); color: #94a098; font-size: 12px; letter-spacing: .04em; }
.production-footer { justify-content: center; }
.home-view { padding: 46px clamp(36px, 6vw, 70px) 34px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(36px, 6vw, 74px); position: relative; }
.home-copy { min-width: 0; }
@@ -84,26 +85,32 @@ h1 em { font-style: normal; color: var(--green); }
@keyframes pulse { 50% { opacity: .45; transform: scale(.92); } }
.admin-link { min-width: 190px; display: flex; align-items: center; justify-content: space-between; margin-top: 30px; border: 1px solid #cbd8d1; border-radius: 11px; background: rgba(255,255,255,.78); color: #53625a; padding: 11px 14px; font-size: 13px; font-weight: 800; box-shadow: 0 6px 18px rgba(30,55,43,.05); }
.admin-link:hover { color: var(--green); border-color: #9fc5b5; background: white; }
.admin-link-fab { position: absolute; bottom: 22px; right: 32px; display: flex; align-items: center; gap: 8px; border: 1px solid #cbd8d1; border-radius: 12px; background: rgba(255,255,255,.95); color: #53625a; padding: 13px 20px; font-size: 14px; font-weight: 800; box-shadow: 0 6px 18px rgba(30,55,43,.1); z-index: 3; }
.admin-link-fab:hover { color: var(--green); border-color: #9fc5b5; background: white; }
.admin-link-fab span { color: var(--green); font-size: 16px; }
.back-button-fab { position: absolute; bottom: 18px; right: 28px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: white; padding: 10px 18px; font-size: 14px; font-weight: 800; box-shadow: 0 6px 16px rgba(0,127,95,.22); z-index: 3; }
.back-button-fab:hover, .back-button-fab:active { color: white; border-color: #006e53; background: #006e53; }
.identity-material-block { margin-top: 14px; }
.home-notice { width: min(390px, 100%); }
.home-stats { margin-top: 36px; display: flex; gap: 32px; color: #849088; font-size: 11px; }
.home-stats span { padding-left: 12px; border-left: 2px solid #e0e6e1; }
.home-stats b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.home-material-panel { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 23px; background: rgba(255,255,255,.7); box-shadow: 0 18px 50px rgba(30,56,43,.1), inset 0 1px #fff; }
.home-material-panel::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -55px; z-index: -1; border-radius: 50%; background: rgba(0,127,95,.08); box-shadow: 0 0 0 32px rgba(0,127,95,.025); }
.material-panel-heading h2 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -.035em; }
.material-panel-heading p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.home-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-material-grid .material-card { min-height: 100px; padding: 18px 17px; border-radius: 14px; }
.home-material-grid .material-card.selected { padding: 17px 16px; }
.home-material-grid .material-card b { font-size: 20px; }
.home-material-grid .material-card small { margin-top: 8px; font-size: 11px; }
.home-material-grid .material-card i { font-size: 14px; }
.material-panel-heading h2 { margin: 7px 0 5px; font-size: 32px; letter-spacing: -.035em; }
.material-panel-heading p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.home-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-material-grid .material-card { min-height: 120px; padding: 22px 20px; border-radius: 16px; }
.home-material-grid .material-card.selected { padding: 21px 19px; }
.home-material-grid .material-card b { font-size: 24px; }
.home-material-grid .material-card small { margin-top: 10px; font-size: 13px; }
.home-material-grid .material-card i { font-size: 18px; }
.material-selection-status { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px 11px; border-radius: 9px; background: #eef1ee; color: #7c8781; font-size: 11px; font-weight: 700; }
.material-selection-status span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #bfc8c2; border-radius: 50%; font-size: 10px; }
.material-selection-status.ready { background: var(--mint); color: var(--green); }
.material-selection-status.ready span { border-color: var(--green); background: var(--green); color: white; }
.panel-view { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0; }
.panel-view { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0; position: relative; }
.back-button {
min-height: 38px;
display: inline-flex;
@@ -121,64 +128,81 @@ h1 em { font-style: normal; color: var(--green); }
}
.back-button:hover, .back-button:active { color: white; border-color: #006e53; background: #006e53; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2, .result-view h2 { margin: 7px 0 7px; font-size: 30px; letter-spacing: -.035em; }
.section-heading h2, .result-view h2 { margin: 7px 0 7px; font-size: 32px; letter-spacing: -.035em; }
.section-heading p, .result-view > p { margin: 0; color: var(--muted); font-size: 14px; }
.refresh-button { border: 1px solid var(--line); border-radius: 10px; background: white; color: #53615a; font-size: 13px; padding: 10px 14px; }
.identity-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px; box-shadow: 0 8px 24px rgba(35,58,46,.05); }
.avatar { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: white; font-size: 22px; font-weight: 800; }
.identity-card small { color: #8c9791; font-size: 12px; }
.identity-card h3 { margin: 4px 0; font-size: 20px; }
.identity-card p { margin: 0; color: #66736c; font-size: 13px; }
.identity-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; box-shadow: 0 8px 24px rgba(35,58,46,.05); }
.avatar { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: white; font-size: 24px; font-weight: 800; }
.identity-card small { color: #8c9791; font-size: 14px; }
.identity-card h3 { margin: 4px 0; font-size: 22px; }
.identity-card p { margin: 0; color: #66736c; font-size: 15px; }
.verified { margin-left: auto; background: var(--mint); color: var(--green); padding: 8px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.verified.missing { color: #9b6b14; background: #fbf0d7; }
.identity-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--green); font-size: 14px; font-weight: 800; }
.identity-layout { display: flex; gap: 16px; }
.identity-person-panel, .identity-operation-panel { min-width: 0; padding: 16px 18px; border: 1px solid #b7d7c9; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #f4fbf7); box-shadow: 0 10px 28px rgba(35,58,46,.08); }
.identity-person-panel { flex: .9 1 0; }
.identity-operation-panel { flex: 1.1 1 0; }
.identity-person-panel .identity-card { min-height: 88px; padding: 13px; box-shadow: none; }
.identity-person-panel .identity-card h3 { font-size: 24px; }
.identity-operation-panel .machine-select-row { min-height: 72px; }
.identity-operation-panel .machine-select-row b { font-size: 20px; }
.identity-operation-panel .full-primary { margin-top: 14px; padding: 13px 16px; font-size: 15px; }
.identity-back { position: absolute; top: 0; left: 0; z-index: 1; }
.identity-material-compact { min-height: 42px; justify-content: flex-start; gap: 8px; margin: 0 0 12px; padding: 8px 12px; }
.identity-material-compact small, .identity-material-compact b, .identity-material-compact em { display: inline; }
.identity-material-compact small { font-size: 11px; }
.identity-material-compact b { margin: 0; font-size: 15px; }
.identity-material-compact em { margin-left: 3px; font-size: 10px; }
.identity-material-compact i { margin-left: auto; }
.field-label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 800; }
.machine-picker { height: 52px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfd8d2; border-radius: 12px; background: white; padding: 0 15px; }
.machine-picker:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,127,95,.08); }
.machine-picker input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.machine-picker b { color: var(--green); }
.machine-select-row { min-height: 62px; display: flex; align-items: center; gap: 12px; border: 1px solid #cfd8d2; border-radius: 12px; background: white; padding: 10px 12px; }
.machine-select-row { min-height: 68px; display: flex; align-items: center; gap: 12px; border: 1px solid #cfd8d2; border-radius: 12px; background: white; padding: 12px 14px; }
.machine-select-row.selected { border-color: #a9cbbb; background: #fbfefc; }
.machine-select-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e9f4ef; color: var(--green); }
.machine-select-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e9f4ef; color: var(--green); }
.machine-select-row > span:nth-child(2) { flex: 1; }
.machine-select-row small, .machine-select-row b { display: block; }
.machine-select-row small { color: #89948e; font-size: 10px; margin-bottom: 4px; }
.machine-select-row b { font-size: 14px; }
.machine-select-row > button { border: 0; border-radius: 8px; background: var(--green); color: white; padding: 9px 12px; font-size: 11px; font-weight: 800; }
.machine-select-row small { color: #89948e; font-size: 12px; margin-bottom: 4px; }
.machine-select-row b { font-size: 17px; }
.machine-select-row > button { border: 0; border-radius: 8px; background: var(--green); color: white; padding: 11px 14px; font-size: 13px; font-weight: 800; }
.machine-select-row > button.machine-refresh { border: 1px solid #cbd8d1; background: white; color: #65736b; }
.suggestions { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 5px; box-shadow: 0 15px 40px rgba(32,55,44,.1); }
.suggestions button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; padding: 10px; text-align: left; font-size: 14px; }
.suggestions button:hover { background: #eef7f2; color: var(--green); }
.suggestions button small { margin-left: auto; color: #95a099; }
.suggestions p { text-align: center; color: #7f8b84; font-size: 13px; }
.full-primary { width: 100%; margin-top: 22px; border: 0; border-radius: 12px; background: var(--green); color: white; padding: 15px 18px; font-size: 14px; font-weight: 800; box-shadow: 0 10px 25px rgba(0,127,95,.18); }
.full-primary { width: 100%; margin-top: 22px; border: 0; border-radius: 12px; background: var(--green); color: white; padding: 17px 18px; font-size: 16px; font-weight: 800; box-shadow: 0 10px 25px rgba(0,127,95,.18); }
.full-primary span { float: right; }
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f7edd8; color: #8b671e; font-size: 12px; }
.notice.compact { margin: 10px 0 -10px; }
.weigh-view { padding: 14px 32px 28px; }
.weigh-back { margin-bottom: 7px; }
.weigh-meta { display: flex; gap: 0; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; }
.weigh-meta > span { min-width: 170px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.weigh-view { padding: 14px 32px 28px; position: relative; }
.weigh-back { position: absolute; top: 14px; left: 32px; z-index: 1; margin: 0; }
.weigh-meta { display: flex; gap: 0; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 12px 16px; margin: 0 0 14px 92px; }
.weigh-meta > span { min-width: 170px; display: inline-flex; align-items: center; gap: 8px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.weigh-meta > span.material-meta { min-width: 230px; }
.weigh-meta small, .weigh-meta b { display: block; }
.weigh-meta small { color: #8a958f; font-size: 11px; margin-bottom: 4px; }
.weigh-meta b { font-size: 13px; }
.weigh-meta small, .weigh-meta b { display: inline; }
.weigh-meta small { color: #8a958f; font-size: 14px; margin: 0 10px 0 0; }
.weigh-meta b { font-size: 17px; }
.weigh-meta button { margin-left: auto; border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 800; }
.scale-display { border-radius: 18px; background: #112b23; color: white; padding: 17px 24px 15px; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 30px rgba(16,42,33,.17); }
.scale-display { min-height: 300px; display: flex; flex-direction: column; border-radius: 18px; background: #112b23; color: white; padding: 22px 28px 18px; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 30px rgba(16,42,33,.17); }
.display-top { display: flex; justify-content: space-between; align-items: center; }
.stable-badge { color: #e2c680; font-size: 12px; font-weight: 700; }
.stable-badge i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e4b64e; box-shadow: 0 0 0 4px rgba(228,182,78,.13); }
.stable-badge { color: #e2c680; font-size: 14px; font-weight: 700; }
.stable-badge i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e4b64e; box-shadow: 0 0 0 4px rgba(228,182,78,.13); }
.stable-badge.ready { color: #83dfb8; }
.stable-badge.ready i { background: #48c78e; box-shadow: 0 0 0 4px rgba(72,199,142,.13); }
.unit-switch { display: flex; background: rgba(255,255,255,.07); border-radius: 8px; padding: 3px; }
.unit-switch button { border: 0; border-radius: 6px; background: transparent; color: #849b91; font-size: 11px; padding: 5px 9px; }
.unit-switch button { border: 0; border-radius: 6px; background: transparent; color: #849b91; font-size: 13px; padding: 6px 11px; }
.unit-switch button.active { background: #e8f0ea; color: #15352a; font-weight: 800; }
.weight-number { display: flex; justify-content: center; align-items: baseline; gap: 13px; margin: 2px 0; }
.weight-number span { font-family: "Courier New", monospace; font-size: clamp(60px, 8vw, 84px); letter-spacing: -.08em; font-weight: 700; }
.weight-number b { color: #8da298; font-size: 15px; }
.stability-track { height: 3px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.weight-number { flex: 1; display: flex; justify-content: center; align-items: center; gap: 15px; margin: 6px 0; }
.weight-number span { font-family: "Courier New", monospace; font-size: clamp(88px, 13vw, 138px); letter-spacing: -.08em; font-weight: 700; }
.weight-number b { color: #8da298; font-size: 20px; }
.stability-track { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.stability-track span { display: block; height: 100%; background: #4bd19a; transition: width .25s; }
.display-details { display: flex; justify-content: center; gap: 0; margin-top: 12px; color: #789187; font-size: 11px; }
.display-details { display: flex; justify-content: center; gap: 0; margin-top: auto; padding-top: 14px; color: #789187; font-size: 14px; }
.display-details > span + span { margin-left: 42px; }
.display-details b { color: #dbe8e1; margin-left: 5px; }
.scale-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 11px 0 16px; }
@@ -202,12 +226,12 @@ h1 em { font-style: normal; color: var(--green); }
.material-card b { font-size: 17px; letter-spacing: -.02em; }
.material-card small { margin-top: 6px; color: #87928c; font-size: 10px; font-weight: 700; }
.material-card i { margin-left: auto; font-size: 12px; color: var(--green); font-style: normal; }
.selected-material-summary { display: flex; align-items: center; gap: 12px; border: 1px solid #bedacd; border-radius: 12px; background: #f3faf7; padding: 13px 16px; }
.selected-material-summary { display: flex; align-items: center; gap: 12px; border: 1px solid #bedacd; border-radius: 12px; background: #f3faf7; padding: 14px 16px; }
.selected-material-summary > span:nth-child(2) { flex: 1; }
.selected-material-summary small, .selected-material-summary b, .selected-material-summary em { display: block; }
.selected-material-summary small { color: #7a8a82; font-size: 10px; }
.selected-material-summary b { margin: 3px 0; font-size: 19px; }
.selected-material-summary em { color: #8c9891; font-size: 9px; font-style: normal; }
.selected-material-summary small { color: #7a8a82; font-size: 12px; }
.selected-material-summary b { margin: 3px 0; font-size: 21px; }
.selected-material-summary em { color: #8c9891; font-size: 11px; font-style: normal; }
.selected-material-summary > i { color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.full-primary.upload { margin-top: 18px; }
@@ -491,11 +515,11 @@ h1 em { font-style: normal; color: var(--green); }
.home-material-panel { padding: clamp(19px, 2.5vw, 24px); }
.material-panel-heading h2 { margin-top: 5px; font-size: 25px; }
.material-panel-heading p { margin-bottom: 12px; font-size: 13px; }
.home-material-grid { gap: 11px; }
.home-material-grid .material-card { min-height: 78px; padding: 13px 15px; }
.home-material-grid .material-card.selected { padding: 12px 14px; }
.home-material-grid .material-card b { font-size: 19px; }
.home-material-grid .material-card small { margin-top: 6px; font-size: 11px; }
.home-material-grid { gap: 12px; }
.home-material-grid .material-card { min-height: 92px; padding: 16px 18px; }
.home-material-grid .material-card.selected { padding: 15px 17px; }
.home-material-grid .material-card b { font-size: 22px; }
.home-material-grid .material-card small { margin-top: 8px; font-size: 13px; }
.material-selection-status { margin-top: 10px; padding: 8px 10px; }
.panel-view { width: min(900px, calc(100% - 40px)); padding: 12px 0; }
@@ -503,12 +527,12 @@ h1 em { font-style: normal; color: var(--green); }
.section-heading { margin-bottom: 12px; }
.section-heading h2, .result-view h2 { margin: 4px 0; font-size: 25px; }
.refresh-button { padding: 8px 12px; }
.identity-card { padding: 11px 14px; }
.avatar { width: 44px; height: 44px; border-radius: 11px; font-size: 19px; }
.identity-card h3 { margin: 2px 0; font-size: 18px; }
.identity-card { padding: 13px 16px; }
.avatar { width: 48px; height: 48px; border-radius: 11px; font-size: 21px; }
.identity-card h3 { margin: 2px 0; font-size: 20px; }
.field-label { margin: 12px 0 6px; }
.machine-select-row { min-height: 52px; padding: 7px 10px; }
.machine-select-icon { width: 32px; height: 32px; }
.machine-select-row { min-height: 56px; padding: 8px 12px; }
.machine-select-icon { width: 36px; height: 36px; }
.full-primary { margin-top: 12px; padding: 12px 16px; }
.weigh-view { position: relative; width: min(1180px, calc(100% - 36px)); padding: 7px 0 10px; }
@@ -516,10 +540,10 @@ h1 em { font-style: normal; color: var(--green); }
.weigh-meta { margin: 0 0 7px 84px; padding: 7px 12px; }
.weigh-meta > span { min-width: 150px; }
.weigh-meta > span.material-meta { min-width: 200px; }
.scale-display { padding: 10px 20px 9px; border-radius: 14px; }
.scale-display { padding: 14px 24px 12px; border-radius: 14px; }
.weight-number { margin: 0; }
.weight-number span { font-size: clamp(48px, 7vw, 70px); }
.display-details { margin-top: 6px; }
.weight-number span { font-size: clamp(56px, 9vw, 80px); }
.display-details { margin-top: 8px; }
.scale-tools { margin: 7px 0 8px; }
.scale-tools button { min-height: 42px; padding: 7px 11px; }
.selected-material-summary { padding: 8px 13px; }
@@ -713,7 +737,7 @@ h1 em { font-style: normal; color: var(--green); }
@media (orientation: landscape) and (max-height: 820px) {
.weight-number span {
font-size: 44px;
font-size: clamp(48px, 8vw, 68px);
font-weight: 900;
letter-spacing: -.05em;
}
@@ -755,3 +779,43 @@ h1 em { font-style: normal; color: var(--green); }
margin: 0;
}
}
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 700px) {
/* 1024×600 工业终端:首页仅保留废料选择,第二页按人员与操作两栏展示。 */
.home-view { display: flex; align-items: center; justify-content: center; padding: 18px 40px; }
.home-material-panel { width: min(720px, 100%); flex: 0 1 720px; padding: 22px 24px; }
.home-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-material-grid .material-card { width: auto; min-height: 88px; margin: 0; padding: 14px 17px; }
.home-material-grid .material-card:nth-child(odd), .home-material-grid .material-card:nth-child(n+3) { margin: 0; }
.material-panel-heading h2 { font-size: 27px; }
.home-material-grid .material-card.selected { padding: 13px 16px; }
.home-material-grid .material-card b { font-size: 21px; }
.identity-view { width: calc(100% - 48px); max-width: 960px; padding: 10px 0 14px; position: relative; }
.identity-view > .section-heading { min-height: 40px; margin-bottom: 10px; padding-left: 96px; }
.identity-view > .section-heading h2 { font-size: 26px; }
.identity-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(400px, 1.15fr); gap: 16px; }
.identity-person-panel, .identity-operation-panel { min-width: 0; min-height: 146px; padding: 16px 18px; border: 1px solid #b7d7c9; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #f4fbf7); box-shadow: 0 10px 28px rgba(35,58,46,.08); }
.identity-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: var(--green); font-size: 17px; font-weight: 800; }
.identity-panel-heading .refresh-button { padding: 6px 9px; font-size: 12px; }
.identity-person-panel .identity-card { min-height: 88px; padding: 13px; box-shadow: none; }
.identity-person-panel .identity-card h3 { font-size: 24px; }
.identity-person-panel .identity-card p { font-size: 16px; }
.identity-operation-panel .machine-select-row { min-height: 72px; }
.identity-operation-panel .machine-select-row b { font-size: 20px; }
.identity-operation-panel .full-primary { margin-top: 14px; padding: 13px 16px; font-size: 15px; }
.identity-material-compact { min-height: 36px; margin: 0 0 10px; padding: 7px 11px; border-radius: 10px; }
.identity-material-compact b { font-size: 14px; }
.identity-back { top: 10px; }
.weigh-view { width: min(1240px, calc(100% - 24px)); }
.scale-display { min-height: 280px; padding: 19px 36px 16px; border-radius: 18px; }
.weight-number { margin: 8px 0; }
.weight-number span { font-size: clamp(84px, 12vw, 128px); }
.weight-number b { font-size: 24px; }
.display-details { margin-top: 12px; font-size: 15px; }
}
@media (orientation: landscape) {
.weight-number span { font-size: 128px !important; }
}