:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: #202a2a; background: #f5f7f6; }
* { box-sizing: border-box; }
body { margin: 0; }
.layout { max-width: 1100px; min-height: 100vh; margin: auto; padding: 0 28px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 76px; border-bottom: 1px solid #dae3df; font-size: 16px; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; background: #0b8855; color: white; border-radius: 6px; font-weight: 700; }
.secure { margin-left: auto; color: #667b73; font-size: 13px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); gap: 7%; align-items: start; padding: 76px 0 60px; flex: 1; }
.entry { max-width: 470px; }
.eyebrow { color: #087c50; font-size: 13px; font-weight: 700; margin: 0 0 12px; }
h1 { margin: 0 0 42px; font-size: 30px; line-height: 1.3; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.amount-box { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #b9cbc3; border-radius: 6px; padding: 10px 18px; height: 72px; font-size: 30px; }
.amount-box:focus-within { border-color: #098752; box-shadow: 0 0 0 3px #09875222; }
.amount-box input { border: 0; outline: 0; width: 100%; min-width: 0; font: inherit; color: inherit; }
.amount-box input::placeholder { color: #b5c0bb; }
.muted { color: #71847c; font-size: 13px; line-height: 1.5; }
button { cursor: pointer; font: inherit; }
#submit { width: 100%; height: 52px; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border: 0; border-radius: 6px; background: #098752; color: white; font-weight: 650; }
#submit:hover { background: #076e43; }
#submit:disabled { opacity: .65; cursor: wait; }
#submit span { font-size: 22px; }
.message { margin-top: 18px; padding: 12px; color: #9d3b2b; background: #fff0ed; border-left: 3px solid #d65c46; font-size: 14px; }
.result { background: white; border: 1px solid #e0e9e4; border-radius: 8px; padding: 28px; text-align: center; box-shadow: 0 10px 35px #20382b0b; }
.result-heading { display: flex; align-items: center; justify-content: space-between; }
.result-heading .eyebrow { margin: 0; }
.pill { background: #edf4f0; color: #49695b; padding: 6px 10px; border-radius: 4px; font-size: 12px; }
.pill.success { color: #087c50; background: #dff5e8; }
.total { font-size: 34px; font-weight: 700; margin: 24px 0 14px; }
.qr-frame { min-height: 312px; display: grid; place-items: center; }
.qr-frame img { display: block; width: min(100%, 288px); height: auto; aspect-ratio: 1; }
.scan-hint { font-size: 15px; font-weight: 600; margin: 12px 0 20px; }
#order-line { overflow-wrap: anywhere; }
.secondary { border: 1px solid #b8c9c1; border-radius: 5px; background: white; color: #225a42; padding: 10px 18px; margin-top: 14px; }
.secondary:hover { background: #f1f7f3; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.actions .secondary { margin: 0; font-size: 14px; text-decoration: none; }
.share-label { margin: 22px 0 8px; text-align: left; }
.share-url { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #cbd9d1; border-radius: 4px; color: #46665a; background: #f7faf8; font: 12px system-ui, sans-serif; }
.text-action { border: 0; background: transparent; color: #225a42; padding: 12px; margin-top: 8px; }
.text-action:hover { text-decoration: underline; }
.logout { margin-left: 10px; }
.logout button { border: 0; background: transparent; color: #49695b; padding: 7px 3px; font-size: 13px; }
.login-panel { width: min(100%, 400px); margin: 70px auto; flex: 1; }
.login-panel h1 { margin-bottom: 38px; }
.password-input { width: 100%; height: 52px; border: 1px solid #b9cbc3; border-radius: 6px; padding: 0 15px; font: inherit; }
.password-input:focus { outline: 2px solid #098752; outline-offset: 2px; }
.customer-payment { width: min(100%, 440px); margin: 56px auto; flex: 1; text-align: center; }
.customer-payment h1 { margin-bottom: 18px; font-size: 24px; }
.customer-total { font-size: 38px; font-weight: 700; margin-bottom: 18px; }
.customer-payment .qr-frame { background: white; border: 1px solid #e0e9e4; border-radius: 6px; padding: 12px; }
.customer-payment .pill { display: inline-block; margin-bottom: 12px; }
.customer-payment .message { text-align: left; }
.back-link { margin-left: 16px; font-size: 13px; color: #176447; text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }
.settings-layout { width: min(100%, 760px); margin: 40px auto 72px; flex: 1; }
.settings-layout h1 { margin-bottom: 24px; }
.settings-form { display: grid; gap: 20px; }
.settings-form fieldset { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid #d5e1d9; }
.settings-form legend { float: left; width: 100%; margin-bottom: 18px; font-weight: 700; font-size: 16px; }
.settings-form label, .confirm-settings label { margin-top: 16px; }
.settings-form input:not([type=hidden]) { display: block; width: 100%; height: 44px; border: 1px solid #b9cbc3; border-radius: 5px; background: #fff; padding: 0 12px; font: inherit; font-size: 14px; }
.settings-form input[type=file] { height: auto; min-height: 44px; padding: 9px 12px; }
.settings-form input:focus { outline: 2px solid #098752; outline-offset: 1px; }
.field-state { float: right; font-size: 12px; font-weight: 400; color: #49695b; }
.confirm-settings { border-top: 1px solid #d5e1d9; padding-top: 12px; }
.notice { background: #e7f6ec; color: #176447; padding: 12px; border-left: 3px solid #098752; }
footer { border-top: 1px solid #dae3df; color: #82918a; font-size: 12px; padding: 22px 0; }
[hidden] { display: none !important; }
@media (max-width: 750px) { .layout { padding: 0 18px; } .workspace { grid-template-columns: 1fr; gap: 36px; padding: 38px 0; } h1 { margin-bottom: 30px; font-size: 26px; } .entry { max-width: none; } .result { padding: 20px; } .secure { font-size: 11px; } }
