/* One black, white, gray and cyan palette for merchant menu panels. */
#modal:has(.fund-balance),#modal:has(#fund-request-form),#modal:has(#buyer-events),#modal:has(#workflow-notices),#modal:has(#greeting-form),#modal:has(#profileform){box-sizing:border-box;width:min(500px,calc(100vw - 24px));padding:24px;border:1px solid #e5e5e5;border-radius:16px;background:#fff;color:#111;box-shadow:0 16px 48px #0002}
#modal .dialoghead h2{font-family:inherit;color:#111;font-weight:600;line-height:1.4}
#modal .dialoghead .close{color:#777;background:transparent;box-shadow:none;border:0}
#merchant-menu #menu-alert-host button{box-shadow:none!important;border:1px solid #e5e5e5!important;border-radius:8px;color:#111!important}
#merchant-menu .support-channels h2{color:#777}
.fund-balance{padding:20px;border:1px solid #e5e5e5;border-radius:12px;background:#f7f7f7}
.fund-balance small{color:#777;font-size:12px}.fund-balance strong{color:#111;font-family:inherit;font-weight:600;font-size:clamp(25px,5vw,31px);overflow-wrap:anywhere}
.fund-actions{gap:10px;margin-bottom:20px}.fund-actions button{min-height:46px;padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#111;font-size:13px;font-weight:600;line-height:1.6}
.fund-actions button:first-child{background:#00cfc8;border-color:#00cfc8}
.workflow-records{display:grid;gap:10px;margin-top:14px}
.fund-request{padding:16px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;gap:10px;color:#111;margin-bottom:10px}
.fund-request small,.fund-request p{color:#888}.fund-request b{font-weight:500}.fund-request p{font-size:11px}
.fund-state{justify-self:start;background:#f1f1f1;border-radius:4px;padding:3px 7px;color:#666;font-size:10px}
.fund-state[data-state=approved]{background:#e7f9f8;color:#008f8b}.fund-state[data-state=rejected]{background:#f1f1f1;color:#555}
.proof-upload{border-color:#c9c9c9;background:#fafafa;border-radius:10px}.proof-upload small{color:#777}.proof-picker .proof-picker-button{border-color:#ddd;border-radius:7px;background:#f5f5f5;color:#111}.proof-picker .proof-file-name{color:#777}
.workflow-success .workflow-check{background:#e7f9f8;color:#008f8b}.workflow-success h3,.workflow-success strong{color:#111}.workflow-success p{color:#666}
.workflow-empty{box-sizing:border-box;display:grid;place-items:center;min-height:150px;margin:0;padding:35px 20px;border:1px solid #e7e7e7;border-radius:10px;background:#fafafa;color:#888;font-size:13px;line-height:1.8}
.buyer-event{padding:16px;border:1px solid #e5e5e5;border-radius:10px;gap:12px;background:#fff;color:#111;grid-template-columns:32px minmax(0,1fr) auto}
.buyer-event strong{font-size:13px;color:#111}.buyer-event small,.buyer-event time{color:#888}.buyer-event p{color:#333;line-height:1.7}.event-symbol,.event-symbol[data-action=cancelled]{background:#f3f3f3;color:#111;border-radius:8px}.event-symbol[data-action=paid]{background:#e7f9f8;color:#008f8b}
.system-notice{padding:16px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;color:#111}
.system-notice.unread{border-inline-start:3px solid #00cfc8;background:#fff}.system-notice p{margin:0;color:#333;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.system-notice time{display:block;margin-top:10px;color:#999;font-size:10px}
.greeting-intro,.greeting-hint{color:#888}.greeting-toggle{border-color:#e5e5e5;color:#111}.greeting-message-label{color:#111}.greeting-message-label small,.greeting-tools small{color:#999}
#greeting-message{border:1px solid #ccc;border-radius:9px;background:#fafafa;color:#111;font-family:inherit;font-size:14px;line-height:1.8;min-height:220px}
.greeting-tools button{border-color:#ddd;border-radius:6px;background:#fff;color:#555}.greeting-preview{padding:17px;border:1px solid #e5e5e5;border-radius:10px;background:#f7f7f7}.greeting-preview>small{color:#888;font-size:10px}.greeting-preview p{color:#333;font-size:12px;line-height:1.8}
#greeting-form .dialogactions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:16px;border-top:1px solid #eee;background:#fff}#greeting-form .dialogactions button{min-height:46px;padding:11px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#111;font-size:13px}#greeting-form .dialogactions button.primary{background:#00cfc8;border-color:#00cfc8;color:#111}
#profileform>label{color:#555;font-size:12px}#profileform input{box-sizing:border-box;min-width:0;width:100%;min-height:48px;border:1px solid #ccc;border-radius:8px;background:#fafafa;color:#111;font-family:inherit;font-size:16px}
#profileform .row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}#profileform .row button{min-height:46px;padding:11px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#111;font-size:13px}#profileform .row button.primary{background:#00cfc8;border-color:#00cfc8}
.profile-editor-head .immutable-id small{color:#888}.profile-editor-head .immutable-id strong{color:#111}.profile-editor-head .avatar-letter{background:#f1f1f1;color:#555}.profile-editor-head .avatar-upload>span:last-child{background:#111;color:#fff;box-shadow:none}
#merchant-accounts{border:1px solid #e5e5e5;border-radius:16px;color:#111;max-width:calc(100vw - 24px)}
.merchant-accounts-heading h2{color:#111;font-weight:600}.merchant-accounts-heading small,.merchant-account-info small,.merchant-account-note{color:#888}.merchant-accounts-heading>button{background:#f5f5f5;color:#111;font-weight:400}
#merchant-accounts .merchant-account-row{position:relative;display:block;padding:0;margin:0 0 10px;border:1px solid #eee;border-radius:9px;overflow:hidden;background:#f6f6f6}
#merchant-accounts .merchant-account-select{display:flex;align-items:center;width:100%;min-height:100px;padding:16px 58px 16px 12px;margin:0;border:0;border-radius:9px;background:transparent;color:#111;text-align:start}
#merchant-accounts .merchant-account-select:disabled{opacity:.7}
.merchant-account-avatar{background:#eee;color:#777}.merchant-account-state{position:absolute;top:13px;right:12px;font-size:10px;max-width:70px}.merchant-account-state.current{background:#e5f9f8;color:#008f8b;font-size:10px;padding:4px 6px}
#merchant-accounts .merchant-account-manage{position:absolute;inset:auto 9px 12px auto;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #ddd;border-radius:50%;background:#fff;color:#555;font-size:24px;font-weight:400;line-height:1;touch-action:manipulation}
#merchant-accounts .merchant-account-row:has(.merchant-account-remove-panel:not([hidden])) .merchant-account-manage{bottom:65px}
#merchant-accounts .merchant-account-remove-panel{padding:0 12px 12px;text-align:end}
#merchant-accounts .merchant-account-remove{position:static;width:auto;height:auto;min-height:40px;padding:9px 16px;border:1px solid #111;border-radius:7px;background:#111;color:#fff;font-size:12px;font-weight:500;opacity:1;pointer-events:auto}
#merchant-accounts [hidden]{display:none!important}
#merchant-accounts .merchant-accounts-heading>button{width:auto;height:auto;padding:8px 12px;border-radius:7px;font-size:12px}
.merchant-account-actions button{border:1px solid #ddd;border-radius:8px;background:#fff;color:#111;font-size:13px}.merchant-account-actions button:first-child{background:#00cfc8;border-color:#00cfc8;color:#111}.merchant-account-actions button:disabled{opacity:.45}
@media(max-width:600px){#modal:has(.fund-balance),#modal:has(#fund-request-form),#modal:has(#buyer-events),#modal:has(#workflow-notices),#modal:has(#greeting-form),#modal:has(#profileform),#merchant-accounts{padding:20px}#greeting-message,#fund-request-form input:not([type=file]),#fund-request-form select,#profileform input{font-size:16px}.buyer-event{grid-template-columns:30px minmax(0,1fr)}.buyer-event time{grid-column:2;font-size:10px}.merchant-account-info strong{font-size:13px}.merchant-account-state.current{max-width:64px;white-space:normal;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.merchant-account-surface,#merchant-accounts .merchant-account-remove{transition:none}}

#fund-request-form>label{display:grid;gap:9px;color:#555;font-size:12px}#fund-request-form input:not([type=file]){box-sizing:border-box;width:100%;min-height:48px;border:1px solid #ccc;border-radius:8px;background:#fafafa;color:#111;font-size:16px}#fund-request-form button[type=submit]{min-height:46px;border:1px solid #00cfc8;border-radius:8px;background:#00cfc8;color:#111;font-size:13px}
.settings{gap:22px}.shop-shortcuts{padding-top:20px}.shop-shortcuts h2{font-size:18px;margin-bottom:14px}.shop-shortcuts .quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-shortcuts .quick button{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:16px;min-height:82px;border:1px solid #e8e8e8;border-radius:10px;background:#f7f7f7;color:#111;text-align:start;font-size:13px;font-weight:500;line-height:1.6}.shop-shortcuts .quick .qicon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:8px;background:#e3f8f6;color:#008f8b}.shop-shortcuts .quick .qicon svg{width:20px;height:20px;color:inherit}.shop-shortcuts .quick button:hover{background:#eefbfa;border-color:#bdece8}.shop-shortcuts .quick button:disabled{color:#aaa;background:#f7f7f7;border-color:#eee}.shop-shortcuts .quick button:disabled .qicon{color:#aaa;background:#eee}
.home-live .sectionhead{margin-bottom:14px}.home-live h2{font-size:19px;margin:6px 0 0}.home-live .eyebrow{font-size:9px;color:#999;letter-spacing:1px}.live-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;border-radius:0;overflow:visible}.live-metric{position:relative;min-height:126px;padding:18px;border:1px solid #e8e8e8;border-radius:10px;background:#f7f7f7;box-shadow:none}.live-metric:first-child{background:#edfbfa;border-color:#c9eeeb}.live-metric>svg{position:absolute;inset:16px 16px auto auto;width:18px;height:18px;margin:0;color:#777}.live-metric:first-child>svg{color:#008f8b}.live-metric small{max-width:calc(100% - 26px);color:#777;font-size:11px;line-height:1.5}.live-metric strong{margin-top:13px;font-size:29px;font-weight:600;line-height:1.3;letter-spacing:-.5px;color:#111}.live-metric .live-unit{color:#999;font-size:9px}.live-updated{margin-top:12px;font-size:10px;color:#999}.live-status{font-size:10px;color:#999}
@media(max-width:760px){.live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-metric{min-height:118px;padding:16px}.live-metric strong{font-size:27px}.shop-shortcuts .quick button{padding:14px 12px;gap:10px;min-height:78px;font-size:12px}.home-live h2{font-size:18px}.home-live .sectionhead{gap:8px}}
