:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #162a3b; background: #edf2f6; font-size: 16px; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
main { height: 100vh; height: 100dvh; width: min(100%, 1480px); margin: auto; padding: 24px 32px 18px; display: flex; flex-direction: column; gap: 20px; }
header { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 36px; flex-shrink: 0; }
.brand { font-weight: 750; font-size: 1.3rem; }.tag { font-size: .8125rem; padding: 5px 9px; color: #52677c; margin-left: 12px; background: #e0e8ef; border-radius: 6px; }
.workflow { display: flex; gap: 14px; color: #718391; font-size: .8125rem; }.workflow span:first-child { color: #175f9b; font-weight: 650; }
h1, h2, h3, p { margin: 0; }h1 { font-size: 1.8rem; line-height: 1.3; }h2 { font-size: 1.4rem; }h3 { font-size: 1.1rem; }p { line-height: 1.6; }
.workspace { display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); gap: 22px; flex: 1; min-height: 0; }
.receive, .photos-panel { padding: 24px; border-radius: 20px; background: white; border: 1px solid #dce4eb; display: flex; flex-direction: column; min-height: 0; }
.eyebrow { font-size: .8125rem; font-weight: 600; color: #617b90; margin-bottom: 7px; }
.connection-panel, .qr-panel { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; text-align: center; }.connection-panel p, .qr-panel p { color: #617284; font-size: .875rem; }.connection-panel h2 { font-size: 1.125rem; }
.connection-icon { width: 76px; height: 76px; border: 1px dashed #9fbbcf; border-radius: 16px; display: grid; place-content: center; color: #4c83ad; background: #f3f8fc; font-size: 2.2rem; }
.connect-button { position: relative; display: grid; align-items: center; width: 100%; min-height: 46px; padding: 10px; border-radius: 10px; background: #175f9b; color: white; font-weight: 650; cursor: pointer; }
.connect-button:disabled { opacity: .65; cursor: wait; }
.connect-button:focus-within, button:focus-visible { outline: 3px solid #93c9ff; outline-offset: 2px; }
.qr-frame { width: min(100%, 250px); aspect-ratio: 1; background: white; border: 1px solid #dae5ed; border-radius: 12px; padding: 8px; flex-shrink: 1; min-height: 0; }.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.small { font-size: .75rem !important; color: #7d8f9e !important; }
#console-notice { color: #315d7f; font-size: .8125rem; line-height: 1.5; margin-top: 12px; flex-shrink: 0; overflow-wrap: anywhere; }
button { min-height: 44px; border: 0; border-radius: 8px; font: inherit; cursor: pointer; touch-action: manipulation; flex-shrink: 0; }
.quiet { background: #f2f6fa; color: #246baf; font-size: .8125rem; padding: 0 14px; }.quiet:disabled { color: #99a7b5; cursor: default; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-shrink: 0; }#total { font-size: .875rem; font-weight: 500; color: #617284; margin-left: 8px; }
.photos-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; flex: 1; border: 1px dashed #d2dde7; border-radius: 14px; background: #fafcfe; }.photos-empty > div { font-size: 3rem; color: #aabecf; }.photos-empty p { font-size: .875rem; color: #718391; }
#photo-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; flex: 1; min-height: 0; }
#photo-jobs li { min-height: 0; min-width: 0; border: 1px solid #dce4eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
#photo-jobs img { width: 100%; min-height: 0; flex: 1; object-fit: contain; background: #f1f5f8; }
.photo-info { padding: 10px 12px; flex-shrink: 0; }.photo-info strong { font-size: .875rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.photo-info p { color: #45647e; font-size: .75rem; margin-top: 4px; }
#photo-jobs li[data-status=completed] p { color: #196e4c; }#photo-jobs li[data-status=needs_attention] p, #photo-jobs li[data-status=failed] p { color: #98501e; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: .8125rem; color: #718391; flex-shrink: 0; }
footer { display: flex; justify-content: space-between; gap: 16px; font-size: .75rem; color: #718391; flex-shrink: 0; }#worker-status[data-online=true] { color: #196e4c; }
@media (max-width: 1080px) { main { padding: 18px; gap: 14px; }.workspace { gap: 14px; grid-template-columns: 270px minmax(0, 1fr); }.receive, .photos-panel { padding: 18px; }#photo-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }.workflow { display: none; } }
@media (max-height: 680px) { main { gap: 12px; padding-block: 14px; }.receive, .photos-panel { padding: 16px; }.qr-panel, .connection-panel { gap: 8px; }.qr-frame { max-width: 190px; }.connection-icon { width: 48px; height: 48px; }.panel-heading { margin-bottom: 12px; }.pagination { margin-top: 8px; } }
@media (max-width: 660px) { main { padding: 12px; }.workspace { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, .85fr); }.receive { padding: 12px; }.receive > div:first-child { display: none; }.qr-panel { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }.qr-frame { width: 140px; height: 140px; }.qr-panel > p { display: none; }.connection-panel { gap: 6px; }.connection-icon { display: none; }.connection-panel p { font-size: .75rem; }.connection-panel .small { display: none; }#photo-jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }.photo-info { padding: 5px; }.photo-info p { font-size: .625rem; }.brand { font-size: 1.05rem; }.tag { font-size: .7rem; }.panel-heading { margin-bottom: 8px; }h2 { font-size: 1.1rem; }footer > span:last-child { display: none; } }
