/* Merchant overview follows the compact hierarchy of the headquarters dashboard. */
.ops-home.merchant-account #overview{min-height:156px;padding:24px 28px;border-radius:14px;box-shadow:0 8px 24px rgba(23,58,48,.09)}
.ops-home.merchant-account #overview .eyebrow{font-size:10px;letter-spacing:.16em}
.ops-home.merchant-account #overview h1{max-width:100%;margin:11px 0 9px;font-size:24px;font-weight:650;letter-spacing:-.02em;line-height:1.4;overflow-wrap:anywhere}
.ops-home.merchant-account #overview p{font-size:12px;line-height:1.7}
.ops-home.merchant-account #companyStats{gap:12px;margin:14px 0}
.ops-home.merchant-account #companyStats article{min-height:104px;padding:16px 18px;border-radius:12px}
.ops-home.merchant-account #companyStats span{font-size:11px;font-weight:550}
.ops-home.merchant-account #companyStats strong{margin:9px 0 4px;font-size:30px;font-weight:550;line-height:1.15;font-variant-numeric:tabular-nums}
.ops-home.merchant-account #companyStats small{font-size:11px;line-height:1.5}
@media(max-width:720px){.ops-home.merchant-account #overview{min-height:0;padding:20px}.ops-home.merchant-account #overview h1{font-size:22px}.ops-home.merchant-account #companyStats article{padding:14px}.ops-home.merchant-account #companyStats strong{font-size:28px}}

#merchants>.page-head{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0;padding:2px 0 17px;border-bottom:1px solid #e8ede9}
#merchants>.page-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:18px;row-gap:5px}
#merchants>.page-head .eyebrow{grid-column:1/-1}
#merchants>.page-head h2{margin:0;color:#263a32;font-size:32px;font-weight:760;letter-spacing:-.035em;line-height:1.15}
#merchants>.page-head p{margin:0;color:#74817b;font-size:15px;line-height:1.7}
#merchants .merchant-create{flex:0 0 auto}
#merchants .merchant-create .primary-button{min-width:108px;min-height:42px}
#merchants .merchant-create .header-back{padding-left:9px;border-color:transparent;background:transparent;color:#697871;box-shadow:none}
#merchants .merchant-create .header-back:hover{border-color:#d7e0da;background:#f5f8f6;color:#24483e}
#merchants .merchant-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:14px 0 12px}
#merchants .merchant-toolbar h3{margin:0;color:#2b4037;font-size:24px;font-weight:620}
#merchants .merchant-count{padding:6px 10px;border-radius:999px;background:#eef3ef;color:#66746d;font-size:12px;font-weight:700}
#merchants .merchant-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#merchants .merchant-table-shell{overflow:auto;border:1px solid #e1e7e2;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(36,72,62,.035)}
#merchants .merchant-table{width:100%;border-collapse:collapse;background:#fff}
#merchants .merchant-table th,#merchants .merchant-table td{padding:20px 16px;border-bottom:1px solid #edf1ee;text-align:left;font-size:14px;vertical-align:middle}
#merchants .merchant-table th{background:#f5f7f5;color:#65726c;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#merchants .merchant-table tr:last-child td{border-bottom:0}
#merchants .merchant-table tbody tr{transition:background .18s,box-shadow .18s}
#merchants .merchant-table tbody tr:hover{background:#f9fbf9}
#merchants .merchant-table tbody tr.is-selected{background:#f0f7f3;box-shadow:inset 3px 0 #315f50}
#merchants .row-actions{display:flex;flex-wrap:wrap;gap:6px}
#merchants .merchant-table:not(.staff-table) th:last-child,#merchants .merchant-table:not(.staff-table) td:last-child{width:1%;white-space:nowrap}
#merchants .merchant-table:not(.staff-table) .row-actions{flex-wrap:nowrap}
#merchants .staff-table th:last-child,#merchants .staff-table td:last-child{width:1%;white-space:nowrap}
#merchants .staff-table .row-actions{flex-wrap:nowrap}
#merchants .row-actions button,#merchants .merchant-actions button{min-height:38px;padding:8px 13px;border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#394b43;font-size:13px;cursor:pointer;transition:border-color .18s,background .18s,color .18s,transform .18s}
#merchants .row-actions button:hover,#merchants .merchant-actions button:hover{border-color:#aebfb5;background:#f5f8f6;color:#24483e;transform:translateY(-1px)}
#merchants .row-actions .primary-button,#merchants .merchant-actions .primary-button{border-color:#24483e;background:#24483e;color:#fff;box-shadow:0 5px 13px rgba(36,72,62,.14)}
#merchants .row-actions button:disabled,#merchants .merchant-actions button:disabled{cursor:not-allowed;opacity:.45;transform:none}
#merchants .row-actions .is-warning{color:#8a6438}
#merchants .row-actions .is-success{border-color:#bfd2c7;background:#edf5f0;color:#2f6652}
#merchants .row-actions .is-success:hover{border-color:#8eae9d;background:#e3f0e8;color:#214d3d}
#merchants .row-actions .is-danger{border-color:transparent;color:#a05249}
#merchants .row-actions .is-danger:hover{border-color:#ead2cf;background:#fff5f3;color:#8f342b}
#merchants .merchant-dialog{position:fixed;inset:0;display:grid;padding:24px;place-items:center;background:rgba(23,32,28,.56);backdrop-filter:blur(8px);z-index:120}
#merchants .merchant-dialog form{width:min(520px,calc(100% - 32px));padding:20px;border-radius:16px;background:#fff}
#merchants .merchant-dialog form .merchant-actions{justify-content:center;margin-top:10px}
#merchants .merchant-dialog form.skill-dialog{display:flex;flex-direction:column;width:min(1040px,calc(100% - 32px));max-height:min(860px,calc(100vh - 48px));padding:0;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:#f5f8f6;box-shadow:0 36px 110px rgba(15,32,25,.32);overflow:hidden}
#merchants .skill-dialog-head{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px;padding:23px 26px 21px;border-bottom:1px solid #dde6e0;background:linear-gradient(132deg,#edf5f0 0%,#fff 56%,#fbf2e7 100%)}
#merchants .skill-dialog-mark{display:grid;width:50px;height:50px;place-items:center;border-radius:14px;background:#264f40;color:#fff;font-family:Georgia,serif;font-size:18px;font-weight:800;box-shadow:0 10px 24px rgba(38,79,64,.2)}
#merchants .skill-dialog-head .eyebrow{display:block;color:#9c7757;font-size:9px;font-weight:800;letter-spacing:.17em}
#merchants .skill-dialog-head h3{margin:5px 0 4px;color:#21372e;font-size:23px;font-weight:740;letter-spacing:-.025em;line-height:1.25}
#merchants .skill-dialog-head p{margin:0;color:#74827b;font-size:12px;line-height:1.6}
#merchants .skill-dialog-close{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid #d8e2dc;border-radius:11px;background:rgba(255,255,255,.82);color:#64736c;font-size:22px;line-height:1;cursor:pointer;transition:.18s ease}
#merchants .skill-dialog-close:hover{border-color:#b5c6bd;background:#fff;color:#264f40;transform:translateY(-1px)}
#merchants .skill-dialog-body{min-height:0;padding:22px 26px 26px;overflow:auto;background:#f5f8f6;scrollbar-color:#b9c8c0 transparent;scrollbar-width:thin}
#merchants .skill-dialog-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
#merchants .skill-dialog-summary>div{display:flex;align-items:center;gap:10px}
#merchants .skill-dialog-summary strong{color:#34483f;font-size:13px}
#merchants .skill-dialog-summary>span{color:#7e8c85;font-size:10px;font-variant-numeric:tabular-nums}
#merchants .skill-mode-badge{padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
#merchants .skill-mode-badge.is-inherit,#merchants .skill-mode-badge.is-company{background:#e4f0e9;color:#32634b}
#merchants .skill-mode-badge.is-custom{background:#f6eadb;color:#8c6338}
#merchants .merchant-skill-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:0}
#merchants .merchant-dialog .merchant-skill-option{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:11px;min-height:58px;margin:0;padding:11px 13px;border:1px solid #dfe7e2;border-radius:12px;background:#fff;color:#43554d;cursor:pointer;transition:border-color .17s,background .17s,box-shadow .17s,transform .17s}
#merchants .merchant-dialog .merchant-skill-option:hover{border-color:#b6c8be;background:#fbfdfb;box-shadow:0 6px 16px rgba(38,79,64,.06);transform:translateY(-1px)}
#merchants .merchant-dialog .merchant-skill-option:has(input:checked){border-color:#89a999;background:#f1f7f3;box-shadow:inset 0 0 0 1px rgba(49,95,80,.08)}
#merchants .merchant-dialog .merchant-skill-option input{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none}
#merchants .skill-option-check{display:grid;width:20px;height:20px;place-items:center;border:1.5px solid #aebbb4;border-radius:6px;background:#fff;transition:.16s ease}
#merchants .merchant-skill-option input:checked+.skill-option-check{border-color:#315f50;background:#315f50;box-shadow:0 3px 8px rgba(49,95,80,.2)}
#merchants .merchant-skill-option input:checked+.skill-option-check:after{color:#fff;font-size:12px;font-weight:900;content:'✓'}
#merchants .skill-option-copy strong,#merchants .skill-option-copy small{display:block}
#merchants .skill-option-copy strong{overflow:hidden;color:#3b4d45;font-size:13px;font-weight:680;text-overflow:ellipsis;white-space:nowrap}
#merchants .skill-option-copy small{margin-top:3px;color:#929d97;font-size:9px}
#merchants .merchant-skill-empty{grid-column:1/-1;display:flex;min-height:180px;padding:28px;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px dashed #cad6cf;border-radius:14px;background:#fbfcfb;text-align:center}
#merchants .merchant-skill-empty strong{color:#4b5d54;font-size:14px}
#merchants .merchant-skill-empty span{color:#8a9690;font-size:10px}
#merchants .staff-skill-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#merchants .staff-skill-toolbar>strong{color:#345c4c;font-size:14px}
#merchants .staff-skill-toolbar>div{display:flex;flex-wrap:wrap;gap:8px}
#merchants .staff-skill-toolbar button{padding:10px 14px;border:1px solid #cbdcd2;border-radius:10px;background:#fff;color:#285843;font-size:13px;cursor:pointer}
#merchants .staff-skill-toolbar button:disabled{opacity:.5;cursor:default}
#merchants .staff-skill-edit-note{margin:0 0 16px;color:#65796e;font-size:13px;line-height:1.6}
#merchants .staff-skill-dialog [hidden]{display:none!important}
#merchants .staff-skill-dialog [data-staff-skill-error]{margin:12px 0 0;color:#a84a3e;font-size:13px}
#merchants .staff-skill-dialog .industry-template-list small{font-size:12px;line-height:1.6}
#merchants .staff-skill-dialog .industry-skill-block{padding:16px;border:1px solid #cfdfd5;border-radius:12px;background:#fff}
#merchants .staff-skill-dialog .industry-skill-block>label{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:5px 10px;margin:0}
#merchants .staff-skill-dialog .industry-skill-block>label>input{grid-row:1/3;width:18px;height:18px;margin:0;padding:0;accent-color:#315f50}
#merchants .staff-skill-dialog .industry-skill-block strong{font-size:15px;color:#284c3b}
#merchants .staff-skill-dialog .industry-skill-block>label>small{grid-column:2;font-size:12px;color:#75877d}
#merchants .staff-skill-dialog .industry-template-list{margin:10px 0 0 30px}
#merchants .staff-skill-dialog .skill-dialog-head p,#merchants .staff-skill-dialog .skill-dialog-footer p{font-size:13px}
@media(max-width:700px){#merchants .staff-skill-toolbar{align-items:flex-start;flex-direction:column}}
#merchants .skill-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none;padding:15px 26px 18px;border-top:1px solid #dfe7e2;background:#fff;box-shadow:0 -10px 28px rgba(31,54,44,.045)}
#merchants .skill-dialog-footer p{display:flex;align-items:center;gap:9px;max-width:360px;margin:0;color:#74827b;font-size:10px;line-height:1.5}
#merchants .skill-dialog-footer p span{display:grid;flex:0 0 23px;width:23px;height:23px;place-items:center;border-radius:50%;background:#e8f1eb;color:#35664f;font-weight:800}
#merchants .skill-dialog-footer .merchant-actions{flex-wrap:nowrap;justify-content:flex-end;margin:0}
#merchants .skill-dialog-footer .merchant-actions button{min-width:88px;min-height:40px;padding:9px 16px;border-radius:10px;white-space:nowrap}
#merchants .merchant-script-mark{background:#8a6542;box-shadow:0 10px 24px rgba(91,61,35,.2)}
#merchants .merchant-script-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:14px 16px;border:1px solid #d8e3dd;border-radius:14px;background:#fff}
#merchants .merchant-script-summary>div{display:flex;align-items:center;gap:10px}
#merchants .merchant-script-summary strong{color:#31473d;font-size:14px}
#merchants .merchant-script-summary span{color:#7c8983;font-size:11px}
#merchants .merchant-script-summary span b{color:#315f50;font-size:15px}
#merchants .merchant-script-summary button{min-height:34px;padding:7px 12px;border:1px solid #d4dfd9;border-radius:9px;background:#f8faf8;color:#4d6057;cursor:pointer}
#merchants .merchant-script-board{display:grid;gap:18px}
#merchants .merchant-script-section{padding:16px;border:1px solid #dfe7e2;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(35,66,53,.035)}
#merchants .merchant-script-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
#merchants .merchant-script-section>header strong,#merchants .merchant-script-section>header small{display:block}
#merchants .merchant-script-section>header strong{color:#31483e;font-size:14px}
#merchants .merchant-script-section>header small{margin-top:3px;color:#8a9690;font-size:10px}
#merchants .merchant-script-section>header>span{padding:5px 9px;border-radius:999px;background:#edf3ef;color:#60736a;font-size:9px;font-weight:750}
#merchants .merchant-script-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#merchants .merchant-dialog label.merchant-script-card{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:11px;min-height:66px;margin:0;padding:12px 13px;border:1px solid #e0e7e3;border-radius:12px;background:#fbfcfb;cursor:pointer;transition:.17s ease}
#merchants .merchant-dialog label.merchant-script-card:hover{border-color:#b9cbc1;background:#fff;transform:translateY(-1px)}
#merchants .merchant-dialog label.merchant-script-card:has(input:checked){border-color:#8da99a;background:#eff6f2;box-shadow:inset 0 0 0 1px rgba(49,95,80,.07)}
#merchants .merchant-script-card input{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none}
#merchants .merchant-script-check{display:grid;width:20px;height:20px;place-items:center;border:1.5px solid #aebbb4;border-radius:6px;background:#fff}
#merchants .merchant-script-card input:checked+.merchant-script-check{border-color:#315f50;background:#315f50}
#merchants .merchant-script-card input:checked+.merchant-script-check:after{color:#fff;font-size:12px;font-weight:900;content:'✓'}
#merchants .merchant-script-copy{min-width:0}
#merchants .merchant-script-copy strong,#merchants .merchant-script-copy small{display:block}
#merchants .merchant-script-copy strong{overflow:hidden;color:#344b41;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
#merchants .merchant-script-copy small{margin-top:4px;color:#89968f;font-size:9px}
#merchants .merchant-script-empty{display:flex;min-height:210px;padding:30px;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px dashed #c8d5ce;border-radius:15px;background:#fbfcfb;text-align:center}
#merchants .merchant-script-empty strong{color:#43574e;font-size:15px}
#merchants .merchant-script-empty span{color:#88958e;font-size:11px}
@media(max-width:620px){#merchants .merchant-dialog form.skill-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:18px}#merchants .skill-dialog-head{grid-template-columns:42px minmax(0,1fr) auto;gap:11px;padding:16px 14px}#merchants .skill-dialog-mark{width:42px;height:42px;border-radius:12px;font-size:15px}#merchants .skill-dialog-head h3{font-size:18px}#merchants .skill-dialog-head p{font-size:10px}#merchants .skill-dialog-close{width:32px;height:32px}#merchants .skill-dialog-body{padding:14px}#merchants .skill-dialog-summary{align-items:flex-start;flex-direction:column;gap:8px}#merchants .merchant-skill-list{grid-template-columns:1fr}#merchants .skill-dialog-footer{align-items:stretch;flex-direction:column;padding:13px 14px 15px}#merchants .skill-dialog-footer p{max-width:none}#merchants .skill-dialog-footer .merchant-actions{display:grid;grid-template-columns:1fr 1fr}#merchants .skill-dialog-footer .merchant-actions .primary-button{grid-column:1/-1}}
@media(max-width:620px){#merchants .merchant-script-summary{align-items:flex-start;flex-direction:column}#merchants .merchant-script-grid{grid-template-columns:1fr}}
#merchants .merchant-dialog label{display:flex;flex-direction:column;gap:6px;margin-top:10px;font-size:13px;color:#52615b}
#merchants .miniapp-search{display:flex;gap:8px;align-items:center}
#merchants .miniapp-search input{flex:1;min-width:0}
#merchants .miniapp-hit{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 0;padding:10px 12px;border:1px solid #d5e3db;border-radius:10px;background:#f4faf6;color:#24483e;font-size:13px;line-height:1.5}
#merchants .miniapp-hit button{flex:none}
#merchants .field-note{margin:8px 0 0;color:#7b8a83;font-size:12px;line-height:1.5}
#merchants .merchant-dialog input,#merchants .merchant-dialog textarea,#merchants .merchant-dialog select{padding:8px 10px;border:1px solid #d5ded8;border-radius:8px;font:inherit}
#merchants .merchant-dialog form.import-result,#merchants .merchant-dialog form.failure-dialog{width:min(720px,calc(100% - 32px))}
#merchants .merchant-dialog form.staff-import-dialog{display:flex;flex-direction:column;width:min(780px,calc(100% - 32px));max-height:min(850px,calc(100vh - 32px));padding:0;border:1px solid rgba(255,255,255,.82);border-radius:22px;background:#f8faf8;box-shadow:0 30px 90px rgba(19,38,30,.25);overflow:hidden}
#merchants .import-dialog-head{display:grid;grid-template-columns:52px minmax(0,1fr) 38px;align-items:center;gap:15px;flex:none;padding:23px 26px 21px;border-bottom:1px solid #e0e8e3;background:linear-gradient(132deg,#edf5f0 0%,#fff 56%,#fbf2e7 100%)}
#merchants .import-dialog-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:#264f40;color:#fff;font-family:Georgia,serif;font-size:11px;font-weight:800;letter-spacing:.08em;box-shadow:0 10px 24px rgba(38,79,64,.2)}
#merchants .import-dialog-head .eyebrow{display:block;color:#a07955;font-size:8px;font-weight:800;letter-spacing:.18em}
#merchants .import-dialog-head h3{margin:4px 0 3px;color:#263a32;font-size:22px;line-height:1.2}
#merchants .import-dialog-head p{margin:0;color:#78857f;font-size:11px;line-height:1.55}
#merchants .import-dialog-close{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid #d8e2dc;border-radius:11px;background:rgba(255,255,255,.82);color:#64736c;font-size:22px;line-height:1;cursor:pointer;transition:.18s ease}
#merchants .import-dialog-close:hover{border-color:#b5c6bd;background:#fff;color:#264f40;transform:translateY(-1px)}
#merchants .import-dialog-body{display:grid;gap:16px;min-height:0;padding:20px 26px;overflow:auto;background:#f8faf8}
#merchants .import-demo-card,#merchants .import-upload-section{padding:18px 20px;border:1px solid #dfe7e2;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(36,72,62,.035)}
#merchants .import-demo-heading,#merchants .import-step-title{display:flex;align-items:center;justify-content:space-between;gap:18px}
#merchants .import-demo-heading>div,#merchants .import-step-title{display:flex;align-items:center;gap:11px}
#merchants .import-demo-heading>div>span,#merchants .import-step-title>span{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:#e9f2ed;color:#315f50;font-family:Georgia,serif;font-size:10px;font-weight:800}
#merchants .import-demo-heading strong,#merchants .import-demo-heading small,#merchants .import-step-title strong,#merchants .import-step-title small{display:block}
#merchants .import-demo-heading strong,#merchants .import-step-title strong{color:#30443b;font-size:14px}
#merchants .import-demo-heading small,#merchants .import-step-title small{margin-top:3px;color:#87928c;font-size:10px;line-height:1.45}
#merchants .import-download{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:38px;padding:8px 13px;border:1px solid #c9d8d0;border-radius:10px;background:#f3f8f5;color:#285440;font-size:11px;font-weight:750;text-decoration:none;transition:.18s ease}
#merchants .import-download span{font-size:16px;line-height:1}
#merchants .import-download:hover{border-color:#91aa9d;background:#e9f3ed;transform:translateY(-1px)}
#merchants .import-sheet-preview{display:grid;grid-template-columns:34px minmax(150px,.72fr) minmax(190px,1.28fr);margin-top:15px;overflow:hidden;border:1px solid #d9e1dc;border-radius:11px;background:#fff;color:#53615a;font-size:11px}
#merchants .import-sheet-preview>*{display:flex;align-items:center;min-height:34px;padding:7px 11px;border-right:1px solid #e4e9e6;border-bottom:1px solid #e4e9e6}
#merchants .import-sheet-preview>*:nth-child(3n){border-right:0}
#merchants .import-sheet-preview>*:nth-last-child(-n+3){border-bottom:0}
#merchants .import-sheet-preview .sheet-corner,#merchants .import-sheet-preview .sheet-column,#merchants .import-sheet-preview .sheet-row{justify-content:center;padding:0;background:#f3f5f3;color:#8b958f;font-family:Georgia,serif;font-size:9px}
#merchants .import-sheet-preview>strong{background:#315f50;color:#fff;font-size:11px;font-weight:750}
#merchants .import-sheet-preview>span:not(.sheet-row){font-variant-numeric:tabular-nums}
#merchants .import-demo-note{display:flex;align-items:flex-start;gap:8px;margin:11px 0 0;color:#7d8983;font-size:10px;line-height:1.55}
#merchants .import-demo-note>span{display:grid;flex:0 0 17px;width:17px;height:17px;margin-top:1px;place-items:center;border-radius:50%;background:#f2eadf;color:#9b744f;font-family:Georgia,serif;font-size:10px;font-weight:800}
#merchants .import-upload-section{display:grid;gap:14px}
#merchants .import-dropzone{position:relative;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:82px;margin:0!important;padding:15px 16px!important;border:1px dashed #b8c9bf!important;border-radius:13px!important;background:#f8fbf9!important;color:#66756e!important;cursor:pointer;overflow:hidden;transition:border-color .18s,background .18s,box-shadow .18s}
#merchants .import-dropzone:hover{border-color:#739584!important;background:#f1f7f3!important;box-shadow:inset 0 0 0 1px rgba(49,95,80,.04)}
#merchants .import-dropzone.has-file{border-style:solid!important;border-color:#75a087!important;background:#f0f8f3!important}
#merchants .import-dropzone input{position:absolute;inset:0;width:100%;height:100%;padding:0!important;border:0!important;opacity:0;cursor:pointer}
#merchants .import-file-icon{position:relative;display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#e4efe8;color:#315f50}
#merchants .import-file-icon:before{display:block;width:18px;height:22px;border:2px solid currentColor;border-radius:3px;content:''}
#merchants .import-file-icon:after{position:absolute;top:19px;left:17px;width:8px;height:2px;background:currentColor;box-shadow:0 5px currentColor;content:''}
#merchants .import-dropzone.has-file .import-file-icon{background:#315f50;color:#fff}
#merchants .import-file-copy{min-width:0}
#merchants .import-file-copy strong,#merchants .import-file-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#merchants .import-file-copy strong{color:#374a41;font-size:12px}
#merchants .import-file-copy small{margin-top:4px;color:#8a958f;font-size:9px}
#merchants .import-browse{padding:7px 10px;border:1px solid #d5dfd9;border-radius:8px;background:#fff;color:#42564d;font-size:10px;font-weight:700}
#merchants .import-password-note{display:flex;align-items:center;gap:7px;margin:0;color:#6b7872;font-size:10px}
#merchants .import-password-note>span{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#e8f2eb;color:#2f6b4e;font-size:9px;font-weight:800}
#merchants .import-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:none;padding:15px 26px 18px;border-top:1px solid #e2e9e4;background:#fff}
#merchants .merchant-dialog form.staff-import-dialog .merchant-actions{margin:0}
#merchants .import-dialog-footer button{min-width:96px;min-height:40px;padding:8px 15px;border:1px solid #d7e0da;border-radius:9px;background:#fff;color:#394b43;font-size:12px;cursor:pointer;transition:.18s ease}
#merchants .import-dialog-footer button:hover:not(:disabled){border-color:#aebfb5;background:#f5f8f6;transform:translateY(-1px)}
#merchants .import-dialog-footer .primary-button{border-color:#24483e;background:#24483e;color:#fff;box-shadow:0 5px 13px rgba(36,72,62,.14)}
#merchants .import-dialog-footer button:disabled{cursor:not-allowed;opacity:.42;box-shadow:none;transform:none}
@media(max-width:620px){#merchants .merchant-dialog form.staff-import-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:18px}#merchants .import-dialog-head{grid-template-columns:42px minmax(0,1fr) 34px;gap:11px;padding:17px 15px}#merchants .import-dialog-icon{width:42px;height:42px;border-radius:12px;font-size:9px}#merchants .import-dialog-head h3{font-size:19px}#merchants .import-dialog-body{gap:12px;padding:14px}#merchants .import-demo-card,#merchants .import-upload-section{padding:15px 13px}#merchants .import-demo-heading{align-items:flex-start;flex-direction:column}#merchants .import-download{width:100%;justify-content:center}#merchants .import-sheet-preview{grid-template-columns:28px minmax(100px,.75fr) minmax(135px,1.25fr);font-size:10px}#merchants .import-sheet-preview>*{min-height:32px;padding:6px 8px}#merchants .import-dropzone{grid-template-columns:38px minmax(0,1fr)!important;min-height:86px;padding:13px!important}#merchants .import-file-icon{width:38px;height:38px}#merchants .import-browse{display:none}#merchants .import-dialog-footer{padding:13px 14px 15px}#merchants .import-dialog-footer button{flex:1}}
#merchants .merchant-dialog form.plan-dialog{display:flex;flex-direction:column;width:min(1040px,calc(100% - 40px));max-height:min(760px,calc(100vh - 40px));padding:0;border:1px solid rgba(255,255,255,.78);border-radius:22px;background:#f8faf8;box-shadow:0 30px 90px rgba(19,38,30,.26);overflow:hidden}
#merchants .plan-dialog-head{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:15px;flex:none;padding:22px 24px 20px;border-bottom:1px solid #e0e8e3;background:linear-gradient(132deg,#edf5f0 0%,#fff 56%,#fcf3e8 100%)}
#merchants .plan-dialog-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:#264f40;color:#fff;font-family:Georgia,serif;font-size:12px;font-weight:800;letter-spacing:.08em;box-shadow:0 10px 24px rgba(38,79,64,.2)}
#merchants .plan-dialog-head .eyebrow{display:block;color:#a07955;font-size:8px;font-weight:800;letter-spacing:.18em}
#merchants .plan-dialog-head h3{margin:4px 0 3px;color:#263a32;font-size:22px;line-height:1.2}
#merchants .plan-dialog-head p{margin:0;color:#78857f;font-size:11px;line-height:1.55}
#merchants .plan-dialog-close{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid #d8e2dc;border-radius:11px;background:rgba(255,255,255,.8);color:#64736c;font-size:22px;line-height:1;cursor:pointer;transition:.18s ease}
#merchants .plan-dialog-close:hover{border-color:#b5c6bd;background:#fff;color:#264f40;transform:translateY(-1px)}
#merchants .plan-picker{min-height:0;padding:18px 24px 10px;overflow:hidden;background:#f8faf8}
#merchants .plan-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px}
#merchants .plan-picker-toolbar>div:first-child{display:flex;align-items:baseline;gap:10px}
#merchants .plan-picker-toolbar strong{color:#33483f;font-size:14px}
#merchants .plan-picker-toolbar>div:first-child span{color:#98a29d;font-size:9px}
#merchants .plan-carousel-controls{display:flex;align-items:center;gap:7px}
#merchants .plan-carousel-controls>span{min-width:42px;color:#78857f;font-family:Georgia,serif;font-size:11px;text-align:center}
#merchants .plan-carousel-controls button{display:grid;width:31px;height:31px;padding:0;place-items:center;border:1px solid #d6e0da;border-radius:9px;background:#fff;color:#3e594e;font-size:14px;cursor:pointer;transition:.18s ease}
#merchants .plan-carousel-controls button:hover:not(:disabled){border-color:#9fb5aa;background:#eef5f1;transform:translateY(-1px)}
#merchants .plan-carousel-controls button:disabled{cursor:not-allowed;opacity:.35}
#merchants .plan-carousel-frame{position:relative;min-width:0}
#merchants .plan-carousel-frame:after{position:absolute;top:0;right:-1px;bottom:12px;width:36px;background:linear-gradient(90deg,rgba(248,250,248,0),#f8faf8);pointer-events:none;content:''}
#merchants .plan-grid{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 28px)/3);gap:14px;margin:0;padding:4px 2px 14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-color:#b7c7be transparent;scrollbar-width:thin}
#merchants .plan-grid:focus-visible{outline:2px solid #8fb09f;outline-offset:3px;border-radius:15px}
#merchants .plan-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;width:100%;min-height:293px;padding:16px 14px;border:1px solid #e3ebe6;border-radius:12px;background:#fff;color:#3f5048;text-align:left;scroll-snap-align:start;cursor:pointer}
#merchants .plan-card.is-selected{border-color:#1f6b45;box-shadow:0 0 0 1px #1f6b45}
#merchants .plan-badge{min-height:16px;color:#9a6a32;font-size:12px}
#merchants .plan-card small{color:#66756d;font-size:12px;line-height:1.45}
#merchants .plan-price{color:#1f6b45;font-size:22px}
#merchants .plan-card s,#merchants .plan-card em{color:#8b978f;font-size:12px;font-style:normal}
#merchants .plan-card ul{margin:6px 0 0;padding:0;color:#66756d;font-size:12px;list-style:none}
#merchants .plan-card:nth-child(odd){background:#f4faf6}
#merchants .plan-card:nth-child(even){background:#fffaf4}
#merchants .plan-paybar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:24px;flex:none;margin-top:0;padding:15px 24px 18px;border-top:1px solid #dfe7e2;background:#fff;box-shadow:0 -10px 26px rgba(35,61,50,.045)}
#merchants .plan-paybar .merchant-actions{flex-wrap:nowrap;justify-content:flex-end;margin:0}
#merchants .plan-paybar .merchant-actions button{min-height:40px;padding:8px 16px;white-space:nowrap}
#merchants .plan-total{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
#merchants .plan-total span,#merchants .plan-total small{flex-basis:100%;color:#66756d;font-size:12px}
#merchants .plan-total strong{color:#1f6b45;font-size:24px;line-height:1.2}
#merchants .plan-total s,#merchants .import-summary s,#orders .import-summary s{margin-left:8px;color:#8b978f;font-size:14px;font-weight:400}
#merchants .merchant-dialog label.pay-method,#merchants .pay-method{flex-direction:row;align-items:center;gap:8px;margin:0;padding:7px 10px;border-radius:999px;background:#eef5f1;color:#315f50;font-size:10px;font-weight:700;white-space:nowrap}
#merchants .merchant-dialog form.confirm-dialog{display:flex;flex-direction:column;width:min(700px,calc(100% - 32px));max-height:min(760px,calc(100vh - 48px));padding:0;border:1px solid rgba(255,255,255,.7);border-radius:20px;box-shadow:0 28px 80px rgba(22,42,34,.24);overflow:hidden}
#merchants .confirm-order-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;padding:22px 24px 19px;border-bottom:1px solid #e5ebe7;background:linear-gradient(135deg,#f3f8f5 0%,#fff 60%,#fbf4eb 100%)}
#merchants .confirm-order-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:#24483e;color:#fff;font-size:21px;font-weight:800;box-shadow:0 8px 18px rgba(36,72,62,.18)}
#merchants .confirm-order-head .eyebrow{display:block;margin-bottom:4px;font-size:8px}
#merchants .confirm-order-head h3{margin:0;color:#24372f;font-size:20px;line-height:1.25}
#merchants .confirm-order-head .confirm-order-lead{margin:5px 0 0;color:#718079;font-size:11px;line-height:1.55}
#merchants .confirm-order-head .pay-countdown{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin:0;padding:9px 11px;border:1px solid #ecd9d3;border-radius:10px;background:#fff8f6;color:#9b3b2f;font-size:9px;font-weight:600}
#merchants .confirm-order-head .pay-countdown b{font-size:18px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.03em}
#merchants .confirm-order-body{min-height:0;padding:18px 24px 20px;overflow:auto;background:#fff}
#merchants .confirm-lines{display:grid;gap:10px;margin:0;padding:0;list-style:none}
#merchants .confirm-lines li{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.75fr) minmax(235px,1.25fr);align-items:center;gap:14px;padding:14px 15px;border:1px solid #dfe7e2;border-radius:13px;background:#f8faf8}
#merchants .confirm-member{display:flex;align-items:center;gap:10px;min-width:0}
#merchants .confirm-member>span{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:10px;background:#e6efe9;color:#315f50;font-weight:800}
#merchants .confirm-member small,#merchants .confirm-member strong,#merchants .confirm-plan small,#merchants .confirm-plan strong{display:block}
#merchants .confirm-member small,#merchants .confirm-plan small{margin-bottom:3px;color:#8b9791;font-size:8px;letter-spacing:.08em}
#merchants .confirm-member strong,#merchants .confirm-plan strong{overflow:hidden;color:#33463e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#merchants .confirm-term{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;color:#66756d;font-size:9px;font-variant-numeric:tabular-nums}
#merchants .confirm-term span{display:block}
#merchants .confirm-term i{color:#b4bdb8;font-size:12px;font-style:normal}
#merchants .confirm-order-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:14px;padding:15px 17px;border:1px solid #eadfce;border-radius:13px;background:#fffaf3}
#merchants .confirm-order-summary>div>span,#merchants .confirm-order-summary small{display:block;color:#85786c;font-size:9px}
#merchants .confirm-price{display:flex;align-items:baseline;gap:8px;margin-top:5px}
#merchants .confirm-price strong{color:#24483e;font-size:27px;line-height:1}
#merchants .confirm-price s{color:#9a9f9b;font-size:12px}
#merchants .confirm-method{padding:6px 9px;border-radius:999px;background:#eaf3ed;color:#3d6c56!important;font-weight:700}
#merchants .confirm-order-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 24px 18px;border-top:1px solid #e8ede9;background:#fbfcfb;box-shadow:0 -8px 20px rgba(35,61,50,.035)}
#merchants .confirm-assurance{display:flex;align-items:center;gap:9px;color:#66756d}
#merchants .confirm-assurance>span{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:#e7f1eb;color:#35664f;font-size:12px;font-weight:800}
#merchants .confirm-assurance strong,#merchants .confirm-assurance small{display:block}
#merchants .confirm-assurance strong{color:#405149;font-size:10px}
#merchants .confirm-assurance small{margin-top:2px;font-size:8px}
#merchants .confirm-order-footer .merchant-actions{flex-wrap:nowrap}
#merchants .pay-countdown,#orders .pay-countdown{color:#9b3b2f;font-weight:700}
#merchants .order-lines{margin:8px 0 0;padding-left:18px}
#orders .order-dialog{position:fixed;inset:0;display:grid;padding:24px;place-items:center;background:rgba(20,33,28,.58);backdrop-filter:blur(7px);z-index:80}
#orders .order-detail{width:min(560px,calc(100% - 32px));padding:20px;border-radius:16px;background:#fff}
#orders .order-detail.order-adjust{display:flex;flex-direction:column;width:min(1040px,100%);max-height:min(880px,calc(100vh - 48px));padding:0;border:1px solid rgba(255,255,255,.76);border-radius:22px;background:#f6f8f6;box-shadow:0 32px 90px rgba(17,34,27,.3);overflow:hidden}
#orders .order-adjust-head{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:15px;flex:none;padding:21px 64px 19px 24px;border-bottom:1px solid #e1e8e3;background:linear-gradient(135deg,#eef5f1 0%,#fff 58%,#fbf2e7 100%)}
#orders .order-adjust-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#294f42;color:#fff;font-size:16px;font-weight:800;box-shadow:0 9px 22px rgba(41,79,66,.2)}
#orders .order-adjust-head .eyebrow{display:block;color:#9b7858;font-size:9px;font-weight:800;letter-spacing:.17em}
#orders .order-adjust-head h3{margin:4px 0 3px;color:#263a32;font-size:21px;line-height:1.25}
#orders .order-adjust-head p{margin:0;color:#7e8b84;font-size:11px}
#orders .order-adjust-head>.order-status{align-self:start;margin-top:2px}
#orders .order-adjust-close,#orders .order-summary-close{position:absolute;top:17px;right:18px;display:grid;width:34px;height:34px;padding:0;place-items:center;border:1px solid #dbe3de;border-radius:10px;background:rgba(255,255,255,.72);color:#697870;font-size:22px;line-height:1;transition:.18s}
#orders .order-adjust-close:hover,#orders .order-summary-close:hover{border-color:#b9c9c0;background:#fff;color:#294f42;transform:translateY(-1px)}
#orders .order-scroll{flex:1;min-height:0;padding:18px 20px 24px;overflow:auto}
#orders .order-adjust-section{padding:17px 18px 19px;border:1px solid #e1e8e3;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(32,63,51,.035)}
#orders .order-adjust-section+.order-adjust-section{margin-top:14px}
#orders .order-adjust-section>header{display:flex;align-items:center;gap:11px}
#orders .order-adjust-section>header>span{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:#e8f0eb;color:#315f50;font-family:inherit;font-size:11px;font-weight:700}
#orders .order-adjust-section h4,#orders .order-adjust-section p{margin:0}
#orders .order-adjust-section h4{color:#30443b;font-size:14px}
#orders .order-adjust-section header p{margin-top:3px;color:#8a9690;font-size:10px}
#orders .order-plan-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:14px}
#orders .plan-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:178px;padding:13px;border:1px solid #e0e7e2;border-radius:12px;background:#fbfcfb;color:#4d5f56;text-align:left;cursor:pointer;transition:.18s ease}
#orders .plan-card:hover{border-color:#aebfb5;background:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(41,79,66,.08)}
#orders .plan-card.is-selected{border-color:#315f50;background:#f2f7f4;box-shadow:inset 0 0 0 1px #315f50,0 7px 18px rgba(49,95,80,.09)}
#orders .plan-card.is-selected:after{position:absolute;top:10px;right:10px;display:grid;width:19px;height:19px;place-items:center;border-radius:50%;background:#315f50;color:#fff;font-size:11px;content:'✓'}
#orders .plan-card small,#orders .plan-card s,#orders .plan-card em{color:#8b978f;font-size:10px;font-style:normal;line-height:1.45}
#orders .plan-card .plan-price{margin-top:3px;color:#1f6043;font-family:inherit;font-size:20px}
#orders .plan-card ul{margin:5px 0 0;padding:0;color:#66756d;font-size:10px;line-height:1.55;list-style:none}
#orders .order-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
#orders .order-detail label.order-person{position:relative;display:grid;grid-template-columns:22px 38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:76px;margin:0;padding:11px 13px;border:1px solid #e0e7e2;border-radius:12px;background:#fbfcfb;color:#53635b;cursor:pointer;transition:.16s ease}
#orders .order-detail label.order-person:hover{border-color:#b4c5bb;background:#fff}
#orders .order-person>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#orders .order-person-check{display:grid;width:20px;height:20px;place-items:center;border:1.5px solid #aab8b0;border-radius:6px;background:#fff}
#orders .order-person>input:checked+.order-person-check{border-color:#315f50;background:#315f50;color:#fff}
#orders .order-person>input:checked+.order-person-check:after{font-size:12px;font-style:normal;font-weight:800;content:'✓'}
#orders .order-person-avatar{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#edf2ef;color:#496459;font-size:13px;font-weight:800}
#orders .order-person-copy{min-width:0}
#orders .order-person strong,#orders .order-person small,#orders .order-person em{display:block}
#orders .order-person strong{overflow:hidden;color:#34483f;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
#orders .order-person small{margin-top:2px;color:#89958f;font-size:10px}
#orders .order-person em{margin-top:4px;color:#63746b;font-size:9px;font-style:normal;font-variant-numeric:tabular-nums}
#orders .order-person>b{align-self:start;padding:5px 7px;border-radius:999px;background:#f0f2f0;color:#77857e;font-size:9px;font-weight:700;white-space:nowrap}
#orders .order-person.is-selected{border-color:#5f8a76;background:#f2f7f4;box-shadow:inset 0 0 0 1px rgba(49,95,80,.14)}
#orders .order-person.is-selected .order-person-avatar{background:#dfece4;color:#2e6049}
#orders .order-person.is-selected>b{background:#dfece4;color:#315f50}
#orders .order-dock{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;align-items:center;gap:22px;flex:none;padding:14px 20px 16px;border-top:1px solid #dfe7e2;background:#fff;border-radius:0 0 22px 22px;box-shadow:0 -10px 25px rgba(28,51,42,.05)}
#orders .order-dock-summary>span{display:block;margin-bottom:5px;color:#8a9690;font-size:9px;font-weight:750;letter-spacing:.08em}
#orders .order-dock .import-summary{margin:0;color:#42564d;font-size:12px;white-space:nowrap}
#orders .order-dock .import-summary strong{color:#294f42;font-size:17px}
#orders .order-dock .import-summary i{padding:0 5px;color:#b0bab5;font-style:normal}
#orders .order-dock .import-summary em{margin-left:13px;color:#7f8d86;font-size:10px;font-style:normal}
#orders .order-dock .import-summary b{margin-left:5px;color:#245a40;font-family:inherit;font-size:20px}
#orders .order-dock .import-summary s{font-size:11px}
#orders .order-dock-meta{display:flex;align-items:center;gap:12px;padding-left:20px;border-left:1px solid #e3e9e5}
#orders .order-dock-meta .pay-countdown{display:flex;align-items:center;gap:7px;margin:0;padding:7px 10px;border-radius:9px;background:#fff2ee;color:#a34236;font-size:9px;white-space:nowrap}
#orders .order-dock-meta .pay-countdown b{font-size:14px;font-variant-numeric:tabular-nums}
#orders .order-dock-meta small{max-width:128px;color:#8a9690;font-size:9px;line-height:1.45}
#orders .order-dock .merchant-actions{justify-content:flex-end;margin:0}
#orders .order-dock .merchant-actions button{min-height:38px;padding:8px 13px;white-space:nowrap}
@media(max-width:1100px){#orders .order-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#orders .order-dock{grid-template-columns:1fr auto}#orders .order-dock-meta{grid-row:2;padding:0;border:0}#orders .order-dock .merchant-actions{grid-column:2;grid-row:1/3}}
@media(max-width:760px){#orders .order-dialog{padding:10px}#orders .order-detail.order-adjust{max-height:calc(100vh - 20px)}#orders .order-adjust-head{grid-template-columns:42px 1fr;padding:17px 50px 16px 17px}#orders .order-adjust-icon{width:42px;height:42px}#orders .order-adjust-head>.order-status{grid-column:1/-1;width:max-content;margin:0}#orders .order-scroll{padding:12px}#orders .order-adjust-section{padding:14px}#orders .order-plan-grid,#orders .order-people{grid-template-columns:1fr}#orders .order-dock{grid-template-columns:1fr;gap:11px;padding:13px 15px}#orders .order-dock-meta{grid-row:auto}#orders .order-dock .merchant-actions{grid-column:auto;grid-row:auto;justify-content:stretch}#orders .order-dock .merchant-actions button{flex:1}#orders .order-dock .import-summary{white-space:normal}}
#orders .order-detail label{display:flex;flex-direction:column;gap:6px;margin-top:10px;font-size:13px;color:#52615b}
#orders .order-detail label.pay-method{flex-direction:row;align-items:center;margin:0}
#orders .order-detail select{padding:8px 10px;border:1px solid #d5ded8;border-radius:8px;font:inherit}
#orders .order-detail:not(.order-adjust) .merchant-actions{justify-content:center;margin-top:16px}
#orders .import-summary{color:#24483e;font-size:15px}
#orders .merchant-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe5e0;border-radius:14px;overflow:hidden}
#orders .merchant-table th,#orders .merchant-table td{padding:12px 14px;border-bottom:1px solid #edf0ed;text-align:left;font-size:13px}
#orders .merchant-table th{background:#f7f3ee;color:#52615b}
#orders .order-id{max-width:120px;word-break:break-all;font-size:12px}
#orderBoard{overflow:auto}
#orders .merchant-actions{display:flex;flex-wrap:nowrap;gap:8px;margin:0}
#orders .merchant-actions button{padding:6px 10px;border-radius:8px;border:1px solid #d5ded8;background:#fff;cursor:pointer}
#orders .merchant-actions .primary-button{border-color:#24483e;background:#24483e;color:#fff}
@media(max-width:900px){#merchants .plan-grid{grid-auto-columns:calc((100% - 14px)/2)}#merchants .plan-paybar{grid-template-columns:1fr auto;gap:14px}#merchants .plan-paybar .pay-method{grid-row:2}#merchants .plan-paybar .merchant-actions{grid-column:2;grid-row:1/3}}
@media(max-width:620px){#merchants .merchant-dialog form.plan-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:18px}#merchants .plan-dialog-head{grid-template-columns:42px minmax(0,1fr) auto;gap:11px;padding:16px 14px}#merchants .plan-dialog-icon{width:42px;height:42px;border-radius:12px;font-size:10px}#merchants .plan-dialog-head h3{font-size:18px}#merchants .plan-dialog-head p{font-size:10px}#merchants .plan-dialog-close{width:32px;height:32px}#merchants .plan-picker{padding:14px 14px 8px}#merchants .plan-picker-toolbar>div:first-child span{display:none}#merchants .plan-grid{grid-auto-columns:88%;gap:10px}#merchants .plan-card{min-height:285px}#merchants .plan-paybar{grid-template-columns:1fr;padding:13px 14px 15px}#merchants .plan-paybar .pay-method{display:none}#merchants .plan-paybar .merchant-actions{grid-column:auto;grid-row:auto;justify-content:stretch}#merchants .plan-paybar .merchant-actions button{flex:1}}
#merchants .import-summary{margin:8px 0 0;font-size:15px;color:#24483e}
#merchants .failure-table{max-height:420px;overflow:auto;margin-top:12px}
#merchants .failure-dialog .merchant-table input{width:100%}
#merchants .is-error{color:#9b3b2f}
#merchants .merchant-sub{margin-top:16px;padding:16px;border:1px solid #dfe5e0;border-radius:14px;background:#fff}

#merchants .staff-list-toolbar{margin-top:18px}
#merchants .staff-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:12px 14px;border:1px solid #e2e8e4;border-radius:11px;background:#fafbfa}
#merchants .staff-pagination p{margin:0;color:#7d8983;font-size:12px}
#merchants .staff-pagination p strong{color:#405149;font-variant-numeric:tabular-nums}
#merchants .staff-pagination-controls,#merchants .staff-page-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#merchants .staff-pagination label{display:flex;align-items:center;gap:8px;margin-right:10px;color:#65766d;font-size:12px}
#merchants .staff-pagination button,#merchants .staff-pagination select{min-width:34px;height:34px;padding:0 10px;border:1px solid #d9e2dc;border-radius:7px;background:#fff;color:#53645c;font:inherit;font-size:12px;cursor:pointer}
#merchants .staff-pagination button:hover:not(:disabled){border-color:#9fb3a8;background:#f3f7f4;color:#24483e}
#merchants .staff-pagination button[aria-current="page"]{border-color:#315f50;background:#315f50;color:#fff}
#merchants .staff-pagination button:disabled{cursor:not-allowed;opacity:.38}
#merchants .staff-page-buttons>span{color:#929e97;font-size:12px}
@media(max-width:760px){#merchants .staff-pagination{align-items:flex-start;flex-direction:column}#merchants .staff-pagination-controls{gap:10px}#merchants .staff-pagination label{margin-right:0}}
#merchants .staff-search{margin:0 0 14px;padding:12px 14px;border:1px solid #e1e7e2;border-radius:12px;background:#f8faf8}
#merchants .staff-search label{margin:0;color:#56645e;font-size:12px;font-weight:700}
#merchants .staff-search input{box-sizing:border-box;width:250px;max-width:100%;min-width:0;height:38px;padding:8px 11px;border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#263a32;font:inherit;font-size:13px}
#merchants .staff-search input:focus{outline:2px solid #a4c1b2;outline-offset:1px;border-color:#315f50}
@media(max-width:620px){#merchants .staff-search label{width:100%}#merchants .staff-search input{width:100%;flex-basis:100%}#merchants .staff-search button{flex:1}}
#merchants .staff-list-title{display:flex;align-items:center;gap:10px}
#merchants .staff-list-title h3{color:#263a32;font-size:15px}
#merchants .staff-list-title span{color:#9a795f;font-size:8px;font-weight:800;letter-spacing:.16em}
#merchants .staff-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 0}
#merchants .staff-overview article{position:relative;min-height:96px;padding:15px 17px;border:1px solid #e3e9e5;border-radius:12px;background:linear-gradient(145deg,#fff 25%,#f8faf8);overflow:hidden}
#merchants .staff-overview article:after{position:absolute;right:-24px;bottom:-32px;width:88px;height:88px;border:18px solid rgba(49,95,80,.04);border-radius:50%;content:''}
#merchants .staff-overview span,#merchants .staff-overview small{display:block}
#merchants .staff-overview span{color:#697871;font-size:10px;font-weight:700;letter-spacing:.03em}
#merchants .staff-overview strong{display:block;margin:7px 0 3px;color:#24483e;font-family:Georgia,serif;font-size:26px;line-height:1}
#merchants .staff-overview small{color:#9aa49f;font-size:9px}
#merchants .staff-table{min-width:1260px}
#merchants .staff-table .staff-check{width:46px;text-align:center}
#merchants .staff-table th:nth-child(2){min-width:180px}
#merchants .staff-table th:nth-child(3){min-width:135px}
#merchants .staff-table th:nth-child(4){min-width:112px}
#merchants .staff-table th:nth-child(5){min-width:112px}
#merchants .staff-table th:nth-child(6){min-width:150px}
#merchants .staff-table th:last-child{min-width:390px}
#merchants .merchant-dialog form.persona-staff-dialog{display:flex;flex-direction:column;width:min(840px,calc(100% - 32px));max-height:min(860px,calc(100vh - 48px));padding:0;border-radius:22px;background:#f7faf8;overflow:hidden;box-shadow:0 30px 90px rgba(19,38,30,.26)}
#merchants .persona-staff-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 8px}
#merchants .persona-staff-dialog h3{margin:6px 0 0;color:#314338}
#merchants .persona-staff-dialog header p{max-width:620px;margin:8px 0 0;color:#738274;font-size:13px;line-height:1.6}
#merchants .persona-staff-dialog header button{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:#fff;color:#3d5344;font-size:20px;cursor:pointer}
#merchants .persona-tabs{display:flex;gap:8px;margin:4px 22px 0;padding:4px;border:1px solid #e3eadf;border-radius:12px;background:#fff}
#merchants .persona-tabs button{flex:1;min-height:36px;border:0;border-radius:9px;background:transparent;color:#738274;font-size:13px;font-weight:650;cursor:pointer}
#merchants .persona-tabs button[aria-selected="true"]{background:#24483e;color:#fff}
#merchants .persona-staff-body{overflow:auto;padding:8px 22px 18px}
#merchants .persona-profile-block[hidden]{display:none}
#merchants .persona-profile-block>p{margin:0 0 12px;color:#738274;font-size:13px;line-height:1.6}
#merchants .persona-staff-body .persona-profile-block{margin-top:12px;padding:16px;border:1px solid #e3eadf;border-radius:16px;background:#fff}
#merchants .persona-staff-body h4{margin:0 0 12px;color:#3d5344;font-size:14px}
#merchants .persona-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
#merchants .persona-expression-list,#merchants .persona-question-list{display:flex;flex-direction:column;gap:10px}
#merchants .persona-expression-list{margin-top:10px}
#merchants .persona-staff-dialog label{margin-top:0}
#merchants .persona-staff-dialog textarea{min-height:76px;resize:vertical}
#merchants .persona-question-empty{margin:0;color:#8b9a86}
#merchants .persona-staff-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px 16px;border-top:1px solid #e3eadf;background:#fff}
#merchants .persona-staff-dialog footer span{color:#738274;font-size:13px}
#merchants .persona-staff-dialog footer div{display:flex;gap:8px}
#merchants .persona-staff-dialog footer button{min-height:38px;padding:8px 14px;border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#394b43;cursor:pointer}
#merchants .persona-staff-dialog footer .primary-button{border-color:#24483e;background:#24483e;color:#fff}
@media(max-width:720px){#merchants .persona-field-grid{grid-template-columns:1fr}}
#merchants .staff-table input[type="checkbox"]{width:15px;height:15px;margin:0;accent-color:#315f50}
#merchants .staff-person{display:flex;align-items:center;gap:11px}
#merchants .staff-person>span{display:grid;flex:0 0 35px;width:35px;height:35px;place-items:center;border-radius:10px;background:#e8f0eb;color:#315f50;font-size:13px;font-weight:800}
#merchants .staff-person strong,#merchants .staff-person small,.membership-state strong,.membership-state small{display:block}
#merchants .staff-person strong{color:#2c3934;font-size:12px}
#merchants .staff-person small{margin-top:3px;color:#9aa39f;font-size:9px}
#merchants .staff-phone{color:#56645e;font-variant-numeric:tabular-nums;letter-spacing:.02em}
#merchants .staff-content-count{display:flex;align-items:baseline;gap:4px;color:#315f50;font-variant-numeric:tabular-nums}
#merchants .staff-content-count strong{font-size:18px;line-height:1}
#merchants .staff-content-count small{color:#89958f;font-size:9px}
#merchants .staff-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700}
#merchants .staff-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
#merchants .staff-status.is-active{background:#eaf4ee;color:#367050}
#merchants .staff-status.is-closed{background:#f1f2f1;color:#858e89}
#merchants .staff-table tr.is-closed{opacity:.65}
#merchants .membership-state{padding-left:10px;border-left:2px solid #dce4df}
#merchants .membership-state strong{color:#405149;font-size:11px}
#merchants .membership-state small{margin-top:4px;color:#8c9993;font-size:9px;font-variant-numeric:tabular-nums}
#merchants .membership-state.is-formal{border-left-color:#315f50}
#merchants .membership-state.is-formal strong{color:#315f50}
#merchants .membership-state.is-trial{border-left-color:#b78a55}
#merchants .membership-state.is-trial strong{color:#946a3d}
#merchants .membership-state.is-expired strong{color:#9b5a52}
#merchants .membership-state.is-empty strong{color:#8a938f;font-weight:500}
#merchants .bulk-toolbar{position:sticky;bottom:14px;z-index:3;display:grid;grid-template-columns:minmax(230px,1fr) auto;align-items:center;gap:20px;margin-top:14px;padding:13px 16px;border-color:#dce5df;background:rgba(249,251,249,.96);box-shadow:0 10px 28px rgba(35,61,50,.1);backdrop-filter:blur(12px)}
#merchants .bulk-summary>span,#merchants .bulk-summary>strong,#merchants .bulk-summary>small{display:block}
#merchants .bulk-summary>span{color:#9a795f;font-size:8px;font-weight:800;letter-spacing:.16em}
#merchants .bulk-summary>strong{margin:4px 0 2px;color:#32443c;font-size:12px}
#merchants .bulk-summary>strong b{color:#315f50;font-size:15px}
#merchants .bulk-summary>small{color:#89958f;font-size:9px}
#merchants .trial-date{display:flex;align-items:center;gap:8px;margin:0;padding:0 10px;border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#68766f;font-size:9px}
#merchants .trial-date input{width:168px;min-height:32px;border:0;outline:0;background:transparent;color:#34473f;font-size:11px;font-variant-numeric:tabular-nums}
#merchants .customer-dialog{display:flex;flex-direction:column;width:min(1120px,calc(100% - 32px));max-height:min(780px,calc(100vh - 48px));border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(24,43,35,.22);overflow:hidden}
#merchants .customer-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid #e8ede9;background:linear-gradient(135deg,#f7faf8,#fffaf5)}
#merchants .customer-dialog-head .eyebrow{display:block;margin-bottom:5px}
#merchants .customer-dialog-head h3{margin:0;color:#263a32;font-size:20px}
#merchants .customer-dialog-head p{margin:5px 0 0;color:#7a8781;font-size:11px}
#merchants .customer-dialog-close{display:grid;width:34px;height:34px;padding:0;place-items:center;border:1px solid #d9e2dc;border-radius:9px;background:#fff;color:#65736c;font-size:20px;line-height:1}
#merchants .customer-dialog-close:hover{border-color:#b5c6bd;background:#f8faf8;color:#264f40}
#merchants .customer-dialog-body{min-height:180px;padding:18px 22px 22px;overflow:auto;background:#f7f9f7}
#merchants .customer-list-shell{overflow:auto;border:1px solid #dfe7e2;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(36,72,62,.035)}
#merchants .customer-table{min-width:940px;border:0}
#merchants .customer-table th,#merchants .customer-table td{padding:15px 14px}
#merchants .customer-table th:first-child{min-width:185px}
#merchants .customer-table th:nth-child(2){min-width:120px}
#merchants .customer-table th:nth-child(3){min-width:220px}
#merchants .customer-table th:nth-child(4){min-width:100px}
#merchants .customer-table th:nth-child(5){min-width:135px}
#merchants .customer-person{display:flex;align-items:center;gap:10px}
#merchants .customer-person>span,#merchants .customer-avatar{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:10px;background:#e8f0eb;color:#315f50;font-size:13px;font-weight:800}
#merchants .customer-person strong,#merchants .customer-person small,#merchants .customer-need strong,#merchants .customer-need small{display:block}
#merchants .customer-person strong{color:#2c3934;font-size:12px}
#merchants .customer-person small{margin-top:3px;color:#9aa39f;font-size:9px}
#merchants .customer-phone,#merchants .customer-region{color:#56645e;font-size:11px;font-variant-numeric:tabular-nums}
#merchants .customer-need{max-width:260px}
#merchants .customer-need strong{overflow:hidden;color:#405149;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
#merchants .customer-need small{margin-top:4px;color:#8b9791;font-size:9px}
#merchants .customer-message-summary{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:5px;color:#315f50}
#merchants .customer-message-summary strong{font-family:Georgia,serif;font-size:20px;line-height:1}
#merchants .customer-message-summary span{font-size:9px}
#merchants .customer-message-summary small{grid-column:1/-1;margin-top:4px;color:#919c96;font-size:8px;font-variant-numeric:tabular-nums}
#merchants .customer-editor-layer{z-index:130;background:rgba(20,32,27,.58)}
#merchants .merchant-dialog form.customer-edit-dialog{display:flex;flex-direction:column;width:min(900px,calc(100% - 32px));max-height:min(820px,calc(100vh - 40px));padding:0;border:1px solid rgba(255,255,255,.78);border-radius:20px;background:#f7f9f7;box-shadow:0 32px 90px rgba(18,35,28,.3);overflow:hidden}
#merchants .customer-edit-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:13px;flex:none;padding:20px 22px 18px;border-bottom:1px solid #e1e8e3;background:linear-gradient(132deg,#edf5f0 0%,#fff 58%,#fbf2e7 100%)}
#merchants .customer-edit-head .customer-avatar{width:46px;height:46px;border-radius:13px;font-size:16px}
#merchants .customer-edit-head .eyebrow{display:block;color:#9c7757;font-size:8px;font-weight:800;letter-spacing:.17em}
#merchants .customer-edit-head h3{margin:4px 0 3px;color:#263a32;font-size:20px}
#merchants .customer-edit-head p{margin:0;color:#7a8781;font-size:10px}
#merchants .customer-edit-body{min-height:0;padding:18px 22px 22px;overflow:auto}
#merchants .customer-profile-section{padding:16px;border:1px solid #e0e7e2;border-radius:13px;background:#fff}
#merchants .customer-profile-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
#merchants .customer-profile-heading strong{color:#405149;font-size:12px}
#merchants .customer-profile-heading small{color:#8b9791;font-size:9px}
#merchants .customer-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
#merchants .merchant-dialog .customer-field-grid label{display:flex;flex-direction:column;gap:6px;margin:0;color:#66746d;font-size:10px}
#merchants .customer-field-grid input{width:100%;height:36px;padding:0 10px;border:1px solid #d9e2dc;border-radius:8px;outline:0;background:#fbfcfb;color:#33443d;font-size:11px}
#merchants .customer-field-grid input:focus{border-color:#86a295;box-shadow:0 0 0 3px rgba(49,95,80,.09)}
#merchants .customer-history{margin-top:15px;padding:13px 14px;border:1px solid #e2e8e4;border-radius:11px;background:#f7f9f7}
#merchants .customer-history>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e3e9e5}
#merchants .customer-history>header strong,#merchants .customer-history>header small{display:block}
#merchants .customer-history>header strong{color:#405149;font-size:11px}
#merchants .customer-history>header small{margin-top:2px;color:#909b95;font-size:8px}
#merchants .customer-history>header>span{padding:4px 7px;border-radius:999px;background:#e7efe9;color:#416454;font-size:9px;font-weight:700}
#merchants .customer-history ol{display:grid;gap:8px;max-height:220px;margin:10px 0 0;padding:0;overflow:auto;list-style:none}
#merchants .customer-history li{padding:9px 10px;border-radius:8px;background:#fff;color:#68766f;font-size:10px;line-height:1.55}
#merchants .customer-message-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
#merchants .customer-message-meta strong{color:#405149}
#merchants .customer-message-meta time{color:#98a29d;font-size:8px;font-variant-numeric:tabular-nums}
#merchants .customer-history li p{margin:5px 0 0;color:#5f6f67}
#merchants .customer-history-empty{margin:10px 0 0;color:#8a9690;font-size:10px}
#merchants .customer-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:14px 22px 17px;border-top:1px solid #e2e8e4;background:#fff;box-shadow:0 -8px 22px rgba(31,54,44,.035)}
#merchants .customer-edit-footer>div{display:flex;align-items:center;gap:9px}
#merchants .customer-edit-footer button{min-height:38px;padding:8px 13px;border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#394b43;font-size:12px;cursor:pointer}
#merchants .customer-edit-footer .primary-button{border-color:#24483e;background:#24483e;color:#fff}
#merchants .customer-save-state{color:#7a8781;font-size:10px}
#merchants .customer-empty{display:grid;min-height:180px;place-items:center;border:1px dashed #d8e1db;border-radius:13px;background:#fff;color:#8a9690;text-align:center}

@media(max-width:1000px){
  #merchants>.page-head{align-items:flex-start}
  #merchants .merchant-create{justify-content:flex-end}
  #merchants .staff-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  #merchants .bulk-toolbar{grid-template-columns:1fr;position:static}
}
@media(max-width:640px){
  #merchants>.page-head{align-items:flex-start;flex-direction:column;gap:14px}
  #merchants>.page-head>div:first-child{display:block}
  #merchants>.page-head h2{margin:6px 0 3px;font-size:23px}
  #merchants>.page-head p{font-size:13px}
  #merchants .merchant-toolbar h3{font-size:20px}
  #merchants .merchant-create,#merchants .merchant-create .primary-button{width:100%}
  #merchants .staff-overview{grid-template-columns:1fr 1fr;gap:8px}
  #merchants .staff-overview article{min-height:96px;padding:14px}
  #merchants .bulk-toolbar .merchant-actions{width:100%}
  #merchants .bulk-toolbar .merchant-actions button{flex:1}
  #merchants .trial-date{width:100%;justify-content:space-between}
  #merchants .customer-dialog-head{padding:17px}
  #merchants .customer-dialog-body{padding:12px}
  #merchants .merchant-dialog form.customer-edit-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px)}
  #merchants .customer-edit-head{grid-template-columns:40px minmax(0,1fr) auto;padding:16px 14px}
  #merchants .customer-edit-head .customer-avatar{width:40px;height:40px}
  #merchants .customer-edit-body{padding:12px}
  #merchants .customer-profile-section{padding:13px}
  #merchants .customer-field-grid{grid-template-columns:1fr}
  #merchants .customer-edit-footer{align-items:stretch;flex-direction:column;padding:12px 14px 14px}
  #merchants .customer-edit-footer>div{display:grid;grid-template-columns:1fr 1fr}
  #merchants .confirm-order-head{grid-template-columns:40px 1fr;padding:18px}
  #merchants .confirm-order-icon{width:40px;height:40px}
  #merchants .confirm-order-head .pay-countdown{grid-column:1/-1;align-items:center;flex-direction:row;justify-content:space-between}
  #merchants .confirm-order-body{padding:14px}
  #merchants .confirm-lines li{grid-template-columns:1fr 1fr}
  #merchants .confirm-term{grid-column:1/-1}
  #merchants .confirm-order-footer{align-items:stretch;flex-direction:column;padding:14px 18px 18px}
  #merchants .confirm-order-footer .merchant-actions button{flex:1}
}

/* Order workspace */
#orders>.page-head{padding-bottom:20px;border-bottom:1px solid #e7ebe8}
#orders>.page-head h2{margin-bottom:7px;color:#263a32}
#orders .order-page-status:empty{display:none}
#orders .order-page-status{margin:0 0 12px;padding:10px 12px;border:1px solid #dfe7e2;border-radius:9px;background:#f6f9f7;color:#496057;font-size:10px}
#orders .order-page-status.is-error{border-color:#ecd7d3;background:#fff7f5;color:#9b4a40}
#orderBoard{overflow:visible}
#orders .order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 18px}
#orders .order-overview article{position:relative;min-height:104px;padding:17px 18px;border:1px solid #e2e9e4;border-radius:12px;background:linear-gradient(145deg,#fff 28%,#f7faf8);overflow:hidden}
#orders .order-overview article:after{position:absolute;right:-20px;bottom:-34px;width:88px;height:88px;border:18px solid rgba(49,95,80,.04);border-radius:50%;content:''}
#orders .order-overview article.is-pending{border-color:#eadfce;background:linear-gradient(145deg,#fff 24%,#fff9f1)}
#orders .order-overview article.is-pending:after{border-color:rgba(173,119,61,.055)}
#orders .order-overview span,#orders .order-overview small{display:block}
#orders .order-overview span{color:#687770;font-size:10px;font-weight:700;letter-spacing:.03em}
#orders .order-overview strong{display:block;margin:9px 0 3px;color:#24483e;font-family:inherit;font-size:27px;line-height:1}
#orders .order-overview article.is-pending strong{color:#9b683d}
#orders .order-overview small{color:#99a39e;font-size:9px}
#orders .order-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 13px}
#orders .order-toolbar>div:first-child>span{display:block;color:#9a795f;font-size:8px;font-weight:800;letter-spacing:.17em}
#orders .order-toolbar h3{margin:5px 0 2px;color:#2b4037;font-size:15px}
#orders .order-toolbar p{margin:0;color:#929c97;font-size:9px}
#orders .order-filters{display:flex;gap:5px;padding:4px;border:1px solid #e0e7e2;border-radius:10px;background:#f5f7f5}
#orders .order-filters button{display:flex;min-height:31px;align-items:center;gap:7px;padding:6px 11px;border:0;border-radius:7px;background:transparent;color:#6c7a73;font-size:10px}
#orders .order-filters button b{display:grid;min-width:18px;height:18px;padding:0 4px;place-items:center;border-radius:999px;background:#e7ece8;color:#65736c;font-size:8px}
#orders .order-filters button[aria-pressed="true"]{background:#fff;color:#294a3e;box-shadow:0 3px 10px rgba(36,72,62,.08)}
#orders .order-filters button[aria-pressed="true"] b{background:#dceae1;color:#315f50}
#orders .order-table-shell{overflow:auto;border:1px solid #e1e7e2;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(36,72,62,.035)}
#orders .merchant-table.order-table{min-width:1180px;border:0;border-radius:0;table-layout:fixed}
#orders .order-table th,#orders .order-table td{padding:15px 13px;border-bottom:1px solid #edf1ee;vertical-align:middle;font-size:11px}
#orders .order-table th{background:#f5f7f5;color:#65726c;font-size:9px;font-weight:800;letter-spacing:.08em}
#orders .order-table tbody tr{transition:background .18s,box-shadow .18s}
#orders .order-table tbody tr:hover{background:#f9fbf9}
#orders .order-table tbody tr.is-pending{background:#fffdf9;box-shadow:inset 3px 0 #b58a5b}
#orders .order-table tbody tr:last-child td{border-bottom:0}
#orders .order-table th:nth-child(1){width:155px}
#orders .order-table th:nth-child(2){width:145px}
#orders .order-table th:nth-child(3){width:210px}
#orders .order-table th:nth-child(4){width:145px}
#orders .order-table th:nth-child(5){width:120px}
#orders .order-table th:nth-child(6){width:130px}
#orders .order-table th:nth-child(7){width:130px}
#orders .order-table th:nth-child(8){width:110px}
#orders .order-code,#orders .order-merchant{display:flex;align-items:center;gap:9px}
#orders .order-code>span{display:grid;flex:0 0 29px;width:29px;height:29px;place-items:center;border-radius:8px;background:#eef3ef;color:#61756b;font-family:inherit;font-weight:700}
#orders .order-code strong,#orders .order-code small,#orders .order-staff strong,#orders .order-staff small,#orders .order-plan strong,#orders .order-plan small,#orders .order-money strong,#orders .order-money small,#orders .order-payment small,#orders .order-time strong,#orders .order-time small{display:block}
#orders .order-code strong{max-width:94px;overflow:hidden;color:#3f5149;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
#orders .order-code small{margin-top:2px;color:#a0aaa5;font-size:8px}
#orders .order-merchant>span{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border-radius:9px;background:#e8f0eb;color:#315f50;font-weight:800}
#orders .order-merchant strong{max-width:96px;overflow:hidden;color:#33463e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
#orders .order-staff{min-width:0;max-width:182px}
#orders .order-staff strong,#orders .order-plan strong{overflow:hidden;color:#36473f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
#orders .order-staff small,#orders .order-plan small{margin-top:4px;color:#929d97;font-size:9px;line-height:1.4}
#orders .order-staff small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#orders .order-money strong{color:#294b3f;font-family:inherit;font-size:15px;font-variant-numeric:tabular-nums}
#orders .order-money small{margin-top:4px;color:#9aa39f;font-size:8px}
#orders .order-payment{display:flex;align-items:flex-start;flex-direction:column;gap:5px}
#orders .order-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:750}
#orders .order-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
#orders .order-status.is-pending{background:#fff0df;color:#a66d32}
#orders .order-status.is-paid{background:#e8f3ec;color:#32704f}
#orders .order-status.is-expired,#orders .order-status.is-closed{background:#f0f1f0;color:#7f8984}
#orders .order-payment>small{color:#8d9892;font-size:8px}
#orders .order-payment .pay-countdown{padding:2px 0;color:#aa4438;font-size:11px;font-variant-numeric:tabular-nums}
#orders .order-time strong{color:#43534c;font-size:10px;font-variant-numeric:tabular-nums}
#orders .order-time small{margin-top:3px;color:#96a09b;font-size:8px;font-variant-numeric:tabular-nums}
#orders .order-table .merchant-actions button{min-height:32px;padding:6px 10px;border-color:#d7e0da;border-radius:8px;color:#3f5149;font-size:10px;white-space:nowrap;transition:.18s}
#orders .order-table .merchant-actions button:hover{border-color:#aebfb5;background:#f5f8f6;color:#24483e;transform:translateY(-1px)}
#orders .order-table .merchant-actions button.is-primary{border-color:#315f50;background:#315f50;color:#fff;box-shadow:0 5px 12px rgba(49,95,80,.15)}
#orders .order-empty{display:grid;min-height:210px;place-items:center;align-content:center;gap:6px;color:#8c9892;text-align:center}
#orders .order-empty>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#edf3ef;color:#527061;font-size:15px;font-weight:800}
#orders .order-empty strong{color:#52635b;font-size:12px}
#orders .order-empty small{font-size:9px}
#orders .order-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:12px 14px;border:1px solid #e2e8e4;border-radius:11px;background:#fafbfa}
#orders .order-pagination p{margin:0;color:#7d8983;font-size:9px}
#orders .order-pagination p strong{color:#405149;font-size:10px}
#orders .order-pagination>div{display:flex;align-items:center;gap:5px}
#orders .order-pagination button{display:grid;min-width:30px;height:30px;padding:0 7px;place-items:center;border:1px solid #d9e2dc;border-radius:7px;background:#fff;color:#53645c;font-size:9px;transition:.18s}
#orders .order-pagination button:hover:not(:disabled){border-color:#9fb3a8;background:#f3f7f4;color:#24483e;transform:translateY(-1px)}
#orders .order-pagination button[aria-current="page"]{border-color:#315f50;background:#315f50;color:#fff;box-shadow:0 4px 10px rgba(49,95,80,.14)}
#orders .order-pagination button:disabled{cursor:not-allowed;opacity:.38}
#orders .order-pagination span{padding:0 2px;color:#a3ada8;font-size:10px}

@media(max-width:1000px){
  #orders .order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  #orders .order-toolbar{align-items:flex-start;flex-direction:column}
}
@media(max-width:640px){
  #orders .order-overview{gap:8px}
  #orders .order-overview article{min-height:94px;padding:14px}
  #orders .order-filters{width:100%;overflow:auto}
  #orders .order-filters button{flex:0 0 auto}
  #orders .order-pagination{align-items:flex-start;flex-direction:column}
}

/* Read-only order details */
#orders .order-dialog{background:rgba(25,37,32,.48);backdrop-filter:blur(5px)}
#orders .order-detail.order-summary-dialog{width:min(720px,calc(100% - 32px));padding:0;border:1px solid rgba(255,255,255,.76);border-radius:20px;background:#fff;box-shadow:0 28px 85px rgba(19,35,28,.28);overflow:hidden}
#orders .order-summary-head{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:22px 68px 19px 24px;border-bottom:1px solid #e4ebe6;background:linear-gradient(135deg,#f2f7f4 0%,#fff 62%,#fbf4eb 100%)}
#orders .order-summary-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#294e41;color:#fff;font-size:17px;font-weight:800;box-shadow:0 8px 18px rgba(41,78,65,.2)}
#orders .order-summary-title>span{display:block;color:#a27b59;font-size:8px;font-weight:800;letter-spacing:.17em}
#orders .order-summary-title h3{margin:4px 0 3px;color:#263a32;font-size:20px;line-height:1.2}
#orders .order-summary-title p{max-width:260px;margin:0;overflow:hidden;color:#85918b;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
#orders .order-summary-head>.order-status{align-self:start;margin-top:2px}
#orders .order-summary-body{padding:20px 24px 22px;background:#f7f9f7}
#orders .order-summary-merchant{display:flex;align-items:center;gap:11px;padding:14px 15px;border:1px solid #dfe7e2;border-radius:13px;background:#fff}
#orders .order-summary-merchant>span{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:10px;background:#e5eee8;color:#315f50;font-size:13px;font-weight:800}
#orders .order-summary-merchant small,#orders .order-summary-merchant strong{display:block}
#orders .order-summary-merchant small{margin-bottom:3px;color:#95a09a;font-size:8px;letter-spacing:.07em}
#orders .order-summary-merchant strong{color:#33473e;font-size:12px}
#orders .order-summary-merchant em{margin-left:auto;padding:5px 9px;border-radius:999px;background:#f2eee8;color:#876e58;font-size:9px;font-style:normal}
#orders .order-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 0}
#orders .order-summary-grid>div{min-width:0;padding:14px 15px;border:1px solid #e0e7e2;border-radius:12px;background:#fff}
#orders .order-summary-grid dt{margin-bottom:7px;color:#8d9993;font-size:8px;font-weight:700;letter-spacing:.08em}
#orders .order-summary-grid dd{margin:0;color:#34473f;font-size:12px;font-weight:700}
#orders .order-summary-grid>div>small{display:block;margin-top:5px;color:#929d97;font-size:9px}
#orders .order-summary-grid .order-summary-people{grid-column:1/-1}
#orders .order-summary-people dd{display:flex;flex-wrap:wrap;gap:6px}
#orders .order-summary-people dd span{display:grid;gap:2px;padding:6px 9px;border-radius:7px;background:#eaf2ed;color:#3b6753;font-size:10px;font-weight:650}
#orders .order-summary-people dd b{font-size:inherit}
#orders .order-summary-people dd small{color:#6f8178;font-size:9px;font-weight:500}
#orders .order-summary-payment{display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;gap:20px;margin-top:11px;padding:17px 18px;border:1px solid #eadfce;border-radius:13px;background:linear-gradient(120deg,#fffaf3,#fff)}
#orders .order-summary-payment>i{width:1px;height:40px;background:#e7ddd0}
#orders .order-summary-payment span,#orders .order-summary-payment strong{display:block}
#orders .order-summary-payment span{margin-bottom:6px;color:#8d7e70;font-size:9px}
#orders .order-summary-payment strong{color:#6f655c;font-family:inherit;font-size:22px;line-height:1;font-variant-numeric:tabular-nums}
#orders .order-summary-payment .is-actual{text-align:right}
#orders .order-summary-payment .is-actual strong{color:#294e41;font-size:27px}
#orders .order-summary-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 24px 18px;border-top:1px solid #e7ece9;background:#fff}
#orders .order-summary-footer p{display:flex;align-items:center;gap:8px;margin:0;color:#78857f;font-size:9px}
#orders .order-summary-footer p span{display:grid;width:23px;height:23px;place-items:center;border-radius:50%;background:#e7f1eb;color:#35664f;font-weight:800}
#orders .order-summary-footer .primary-button{min-width:106px;border-color:#294e41;background:#294e41;color:#fff}

@media(max-width:640px){
  #orders .order-summary-head{grid-template-columns:42px minmax(0,1fr);padding:18px 58px 18px 18px}
  #orders .order-summary-icon{width:42px;height:42px}
  #orders .order-summary-head>.order-status{grid-column:1/-1;width:max-content;margin:0}
  #orders .order-summary-body{padding:14px}
  #orders .order-summary-grid{grid-template-columns:1fr}
  #orders .order-summary-grid .order-summary-people{grid-column:auto}
  #orders .order-summary-payment{gap:12px;padding:14px}
  #orders .order-summary-footer{align-items:stretch;flex-direction:column;padding:14px 18px 18px}
  #orders .order-summary-footer .primary-button{width:100%}
}

/* Order typography: readable at standard desktop scale */
#orders .order-overview article{min-height:112px;padding:19px 20px}
#orders .order-overview span{font-size:12px}
#orders .order-overview strong{margin:10px 0 5px;font-size:31px}
#orders .order-overview small{font-size:11px}
#orders .order-toolbar>div:first-child>span{font-size:9px}
#orders .order-toolbar h3{font-size:18px}
#orders .order-toolbar p{font-size:11px}
#orders .order-filters button{min-height:37px;padding:8px 14px;font-size:13px}
#orders .order-filters button b{min-width:20px;height:20px;font-size:10px}
#orders .order-table th,#orders .order-table td{padding:20px 14px}
#orders .order-table th{font-size:12px}
#orders .order-code strong{font-size:13px}
#orders .order-code small{font-size:11px}
#orders .order-merchant strong{font-size:14px}
#orders .order-staff strong,#orders .order-plan strong{font-size:14px}
#orders .order-staff small,#orders .order-plan small{font-size:12px}
#orders .order-money strong{font-size:20px}
#orders .order-money small{font-size:11px}
#orders .order-status{padding:6px 10px;font-size:12px}
#orders .order-payment>small{font-size:11px}
#orders .order-payment .pay-countdown{font-size:13px}
#orders .order-time strong{font-size:13px}
#orders .order-time small{font-size:11px}
#orders .order-table .merchant-actions button{min-height:38px;padding:8px 13px;font-size:13px}
#orders .order-pagination p{font-size:12px}
#orders .order-pagination p strong{font-size:12px}
#orders .order-pagination button{min-width:34px;height:34px;font-size:11px}
#orders .order-summary-title>span{font-size:9px}
#orders .order-summary-title h3{font-size:22px}
#orders .order-summary-title p{font-size:11px}
#orders .order-summary-merchant small,#orders .order-summary-grid dt{font-size:10px}
#orders .order-summary-merchant strong,#orders .order-summary-grid dd{font-size:14px}
#orders .order-summary-merchant em,#orders .order-summary-grid>div>small{font-size:11px}
#orders .order-summary-people dd span{font-size:12px}
#orders .order-summary-payment span{font-size:11px}
#orders .order-summary-payment strong{font-size:24px}
#orders .order-summary-payment .is-actual strong{font-size:30px}
#orders .order-summary-footer p{font-size:11px}
#merchants .industry-access{max-height:360px;overflow:auto;margin-top:12px}
#merchants .industry-checks,#merchants .industry-template-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#merchants .industry-skill-block{margin-top:10px;padding:10px;border:1px solid #e3ebe6;border-radius:12px;background:#f7fbf8}
#merchants .industry-skill-block small{display:block;color:#8b978f}
#merchants .merchant-skill-domain{margin:0}
#merchants .merchant-skill-overview{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:17px 19px;overflow:hidden;border:1px solid #cdded5;border-radius:16px;background:linear-gradient(125deg,#eaf3ee,#f7faf8 66%,#f7efe4);box-shadow:0 7px 22px rgba(39,75,60,.045)}
#merchants .merchant-skill-overview:after{position:absolute;right:21%;bottom:-44px;width:100px;height:100px;border:18px solid rgba(53,101,79,.05);border-radius:50%;content:''}
#merchants .merchant-skill-overview>div>span{display:block;margin-bottom:4px;color:#9a7452;font-size:8px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}
#merchants .merchant-skill-overview>div>strong{color:#2b4439;font-size:14px;font-weight:700}
#merchants .merchant-skill-overview dl{position:relative;z-index:1;display:flex;gap:8px;margin:0}
#merchants .merchant-skill-overview dl>div{display:grid;min-width:76px;grid-template-columns:auto 1fr;align-items:baseline;gap:5px;padding:9px 11px;border:1px solid rgba(104,139,122,.16);border-radius:11px;background:rgba(255,255,255,.72)}
#merchants .merchant-skill-overview dt{color:#285a45;font-size:20px;font-weight:780;line-height:1}
#merchants .merchant-skill-overview dd{margin:0;color:#7a8981;font-size:9px;white-space:nowrap}
#merchants .merchant-skill-group{margin:0 0 24px}
#merchants .merchant-skill-group:last-child{margin-bottom:0}
#merchants .merchant-skill-group-head{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:10px;padding:0 2px}
#merchants .merchant-skill-group-head>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#e4eee8;color:#315f50;font-family:Georgia,serif;font-size:10px;font-weight:800}
#merchants .merchant-skill-group h4{margin:0;color:#28463a;font-size:14px;font-weight:760}
#merchants .merchant-skill-group-head p{margin:3px 0 0;color:#89958f;font-size:9px;line-height:1.4}
#merchants .merchant-skill-group-head>em{padding:5px 8px;border-radius:999px;background:#edf2ef;color:#64776d;font-size:9px;font-style:normal;font-weight:700}
#merchants .merchant-subclass{margin:0 0 14px}
#merchants .merchant-subclass h5{margin:0 0 8px;color:#3e5c4c;font-size:13px}
#merchants .merchant-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#merchants .skill-dialog .industry-skill-block{margin-top:0}
#merchants .company-skill-dialog .industry-skill-block{margin:0;padding:0;overflow:hidden;border:1px solid #dfe8e2;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(35,66,53,.035);transition:border-color .18s,box-shadow .18s,transform .18s}
#merchants .company-skill-dialog .industry-skill-block:hover{border-color:#bfd0c7;box-shadow:0 9px 24px rgba(35,66,53,.065);transform:translateY(-1px)}
#merchants .company-skill-dialog .industry-skill-block.is-enabled{border-color:#8eae9d;box-shadow:inset 0 0 0 1px rgba(49,95,80,.08),0 8px 22px rgba(35,66,53,.06)}
#merchants .company-skill-dialog .merchant-skill-check{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:66px;margin:0;padding:13px 14px;color:#40544a;cursor:pointer}
#merchants .company-skill-dialog .merchant-skill-check>input,#merchants .company-skill-dialog .company-industry>input{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none}
#merchants .merchant-skill-toggle,#merchants .company-choice-check{display:grid;place-items:center;border:1.5px solid #aab9b1;background:#fff;transition:.16s ease}
#merchants .merchant-skill-toggle{width:20px;height:20px;border-radius:6px}
#merchants .merchant-skill-check>input:checked+.merchant-skill-toggle{border-color:#315f50;background:#315f50;box-shadow:0 3px 8px rgba(49,95,80,.2)}
#merchants .merchant-skill-check>input:checked+.merchant-skill-toggle:after{color:#fff;font-size:12px;font-weight:900;content:'✓'}
#merchants .merchant-skill-title{min-width:0}
#merchants .merchant-skill-title strong,#merchants .merchant-skill-title small{display:block}
#merchants .merchant-skill-title strong{color:#344b41;font-size:13px;font-weight:740}
#merchants .merchant-skill-title small{margin-top:3px;color:#97a19c;font-size:9px;font-weight:400}
#merchants .merchant-skill-state{padding:5px 8px;border-radius:999px;background:#f0f2f1;color:#89948e;font-size:8px;font-style:normal;font-weight:750;white-space:nowrap}
#merchants .is-enabled .merchant-skill-state{background:#e2eee7;color:#35644f}
#merchants .company-industry-panel{margin:0;padding:12px 14px 14px;border-top:1px solid #e7ece9;background:#f8faf9}
#merchants .company-choice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
#merchants .company-choice-heading>span{color:#53675d;font-size:9px;font-weight:800;letter-spacing:.08em}
#merchants .company-choice-heading>small{color:#99a39e;font-size:8px}
#merchants .company-choice-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#merchants .company-choice{display:inline-flex;min-height:34px;align-items:center;gap:5px;padding:4px 5px 4px 8px;border:1px solid #dce5df;border-radius:10px;background:#fff;transition:.16s ease}
#merchants .company-choice:has(input:checked){border-color:#9eb8aa;background:#f0f6f2;box-shadow:inset 0 0 0 1px rgba(49,95,80,.06)}
#merchants .skill-dialog .company-industry{display:flex;min-height:24px;align-items:center;flex-direction:row;gap:7px;margin:0;color:#4d6157;font-size:11px;cursor:pointer}
#merchants .company-choice-check{width:16px;height:16px;border-radius:5px}
#merchants .company-industry>input:checked+.company-choice-check{border-color:#39705a;background:#39705a}
#merchants .company-industry>input:checked+.company-choice-check:after{color:#fff;font-size:9px;font-weight:900;content:'✓'}
#merchants .industry-edit{min-height:25px;padding:2px 8px;border:1px solid #cfdbd4;border-radius:7px;background:#fff;color:#315f50;font-size:10px;font-weight:700;line-height:1;cursor:pointer}
#merchants .industry-edit[hidden]{display:none}
#merchants .industry-edit:hover{border-color:#8eae9d;background:#f3f8f5}
#merchants .company-industry-hint{margin:8px 0 0;color:#8b978f;font-size:10px;line-height:1.5}
#industryPromptDialog{z-index:160}
#merchants .merchant-dialog form.industry-prompt-dialog{display:flex;flex-direction:column;width:min(980px,calc(100% - 32px));max-height:min(880px,calc(100vh - 40px));padding:0;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:#f5f8f6;box-shadow:0 34px 100px rgba(16,35,27,.32);overflow:hidden}
#merchants .industry-prompt-fields{display:flex;flex-direction:column;gap:16px;padding:20px 24px 24px}
#merchants .industry-prompt-fields>#industryPromptInput,#merchants .industry-prompt-fields>.merchant-option-grid{flex:none}
#merchants .industry-prompt-fields label{margin-top:0}
#merchants .industry-prompt-fields textarea{box-sizing:border-box;width:100%;min-height:156px;padding:14px 16px;border:1px solid #d7e1db;border-radius:13px;background:#fff;color:#263a32;font:inherit;font-size:13px;line-height:1.65;resize:vertical;transition:border-color .18s,box-shadow .18s}
#merchants .industry-prompt-fields textarea:focus{border-color:#8dac9c;box-shadow:0 0 0 3px rgba(78,125,103,.09);outline:0}
#merchants .merchant-prompt-label{display:flex;align-items:center;justify-content:space-between;gap:16px}
#merchants .merchant-prompt-label label,#merchants .merchant-prompt-label small{display:block}
#merchants .merchant-prompt-label label{color:#304b3f;font-size:13px;font-weight:780}
#merchants .merchant-prompt-label small{margin-top:5px;color:#98a39d;font-size:9px}
#merchants .merchant-prompt-source{display:flex!important;align-items:center;gap:6px}
#merchants .merchant-prompt-source i{width:6px;height:6px;border-radius:50%;background:#7c8b83;box-shadow:0 0 0 3px rgba(124,139,131,.1)}
#merchants .merchant-prompt-source.is-inherited{color:#668175}
#merchants .merchant-prompt-source.is-inherited i{background:#3f735d;box-shadow:0 0 0 3px rgba(63,115,93,.1)}
#merchants .merchant-prompt-source.is-custom{color:#98704d}
#merchants .merchant-prompt-source.is-custom i{background:#b17d3f;box-shadow:0 0 0 3px rgba(177,125,63,.11)}
#merchants .merchant-prompt-source button{padding:0;border:0;border-bottom:1px solid #b9c9c0;background:transparent;color:#315f50;font:inherit;font-size:9px;line-height:1.35;cursor:pointer}
#merchants .merchant-prompt-source button[hidden]{display:none}
#merchants .merchant-ai-distill-toggle{display:inline-flex;min-height:36px;align-items:center;gap:7px;padding:0 13px;border:1px solid #c7d8cf;border-radius:10px;background:linear-gradient(135deg,#edf6f1,#fff8ee);color:#285945;font:inherit;font-size:11px;font-weight:780;cursor:pointer;box-shadow:0 5px 14px rgba(42,83,65,.07)}
#merchants .merchant-ai-distill-toggle span{color:#b17d3f;font-size:15px}
#merchants .merchant-ai-distill-toggle:hover,#merchants .merchant-ai-distill-toggle[aria-expanded="true"]{border-color:#86aa98;background:linear-gradient(135deg,#e1f0e8,#fff3df)}
#choiceDistillDialog{z-index:180;background:rgba(18,31,25,.68)}
#merchants .merchant-distill-dialog[hidden]{display:none}
#merchants .merchant-dialog form.merchant-prompt-distill{position:relative;display:flex;width:min(900px,calc(100% - 32px));max-height:min(820px,calc(100vh - 40px));flex-direction:column;gap:0;padding:0;overflow:hidden;border:1px solid #bad0c4;border-radius:22px;background:linear-gradient(145deg,#ecf5f0 0%,#f8faf8 56%,#fff7eb 100%);box-shadow:0 34px 100px rgba(16,35,27,.36)}
#merchants .merchant-prompt-distill:before{position:absolute;top:-55px;right:-40px;width:150px;height:150px;border:24px solid rgba(177,125,63,.045);border-radius:50%;content:'';pointer-events:none}
#merchants .merchant-prompt-distill>header{position:relative;display:flex;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid rgba(186,208,196,.72);background:rgba(255,255,255,.38)}
#merchants .merchant-prompt-distill>header .skill-dialog-close{margin-left:4px;flex:0 0 auto}
#merchants .merchant-prompt-distill-body{position:relative;display:grid;gap:14px;padding:18px 22px 22px;overflow:auto}
#merchants .merchant-prompt-distill-mark{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:12px;background:linear-gradient(145deg,#376d58,#285442);color:#fff;font-size:10px;font-weight:850;letter-spacing:.08em;box-shadow:0 7px 16px rgba(47,96,76,.2)}
#merchants .merchant-prompt-distill-copy{min-width:0;flex:1}
#merchants .merchant-prompt-distill>header strong,#merchants .merchant-prompt-distill>header small{display:block}
#merchants .merchant-prompt-distill>header strong{color:#294b3d;font-size:13px}
#merchants .merchant-prompt-distill>header small{margin-top:3px;color:#7e8e86;font-size:10px;line-height:1.5}
#merchants .merchant-distill-steps{display:flex;align-items:center;gap:7px;color:#85958d;font-size:8px;font-weight:700;white-space:nowrap}
#merchants .merchant-distill-steps span{display:flex;align-items:center;gap:5px}
#merchants .merchant-distill-steps b{display:grid;width:19px;height:19px;place-items:center;border:1px solid #cad8d1;border-radius:50%;background:rgba(255,255,255,.75);color:#70837a;font-size:8px}
#merchants .merchant-distill-steps .is-current{color:#315f50}
#merchants .merchant-distill-steps .is-current b{border-color:#3e715b;background:#3e715b;color:#fff}
#merchants .merchant-distill-steps i{width:16px;height:1px;background:#cad8d1}
#merchants .merchant-prompt-distill-input{position:relative;overflow:hidden;border:1px solid #cfded6;border-radius:13px;background:rgba(255,255,255,.92);box-shadow:0 5px 15px rgba(35,66,53,.035)}
#merchants .merchant-prompt-distill-input textarea{box-sizing:border-box;width:100%;min-height:230px;padding:16px;border:0;border-radius:0;background:transparent;color:#263a32;font:inherit;font-size:12px;line-height:1.7;resize:vertical;outline:none;box-shadow:none}
#merchants .merchant-prompt-distill-tools{display:flex;min-height:38px;align-items:center;gap:10px;padding:7px 10px;border-top:1px solid #e2e9e5;background:#f9fbfa}
#merchants .merchant-file-picker{display:inline-flex;min-height:27px;align-items:center;gap:5px;margin:0;padding:0 9px;border:1px solid #cad9d1;border-radius:7px;background:#fff;color:#315f50;font-size:9px;font-weight:760;cursor:pointer}
#merchants .merchant-file-picker>span{color:#a27448;font-size:12px;font-weight:900}
#merchants .merchant-file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#merchants .merchant-prompt-distill-tools>span{min-width:0;overflow:hidden;color:#89978f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
#merchants .merchant-prompt-distill-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
#merchants .merchant-prompt-distill-actions>div{display:flex;align-items:center;gap:9px}
#merchants .merchant-prompt-distill-actions p{display:flex;align-items:center;gap:6px;margin:0;color:#74867d;font-size:9px;line-height:1.5}
#merchants .merchant-prompt-distill-actions p span{color:#a27448;font-size:12px}
#merchants .merchant-prompt-distill-actions button,#merchants .merchant-prompt-distill-preview button{display:inline-flex;min-height:35px;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:9px;background:linear-gradient(135deg,#376d58,#285442);color:#fff;font:inherit;font-size:10px;font-weight:780;white-space:nowrap;cursor:pointer;box-shadow:0 6px 14px rgba(47,96,76,.17)}
#merchants .merchant-prompt-distill-actions button.merchant-distill-cancel{border:1px solid #cad8d1;background:rgba(255,255,255,.82);color:#5e7168;box-shadow:none}
#merchants .merchant-prompt-distill-actions button:hover,#merchants .merchant-prompt-distill-preview button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(47,96,76,.22)}
#merchants .merchant-prompt-distill-actions button:disabled,#merchants .merchant-prompt-distill-preview button:disabled{cursor:wait;opacity:.58}
#merchants .merchant-prompt-distill-preview{display:grid;gap:11px;padding:14px;border:1px solid #cfddd5;border-radius:13px;background:rgba(255,255,255,.86)}
#merchants .merchant-prompt-distill-preview[hidden]{display:none}
#merchants .merchant-prompt-distill-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#merchants .merchant-prompt-distill-preview>header span,#merchants .merchant-prompt-distill-preview>header strong{display:block}
#merchants .merchant-prompt-distill-preview>header span{margin-bottom:3px;color:#a27448;font-size:8px;font-weight:850;letter-spacing:.16em}
#merchants .merchant-prompt-distill-preview>header strong{color:#2b493c;font-size:13px}
#merchants .merchant-distill-summary{display:grid;grid-template-columns:1fr 1.35fr;gap:9px}
#merchants .merchant-distill-summary article,#merchants .merchant-distill-prompt{padding:10px 11px;border:1px solid #e2e9e5;border-radius:9px;background:#fbfcfb}
#merchants .merchant-distill-summary span,#merchants .merchant-distill-prompt>span{display:block;margin-bottom:5px;color:#829087;font-size:8px;font-weight:800;letter-spacing:.08em}
#merchants .merchant-distill-summary p{margin:0;color:#42584e;font-size:10px;line-height:1.55;white-space:pre-line}
#merchants .merchant-distill-prompt pre{max-height:150px;margin:0;overflow:auto;color:#344b41;font:inherit;font-size:10px;line-height:1.65;white-space:pre-wrap}
#merchants .choice-editor{display:inline-flex;align-items:center}
#merchants .merchant-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#merchants .merchant-option-board{display:flex;min-width:0;flex-direction:column;gap:12px;padding:16px;border:1px solid #dce7e1;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(35,66,53,.035)}
#merchants .merchant-option-board header{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf1ee}
#merchants .merchant-option-index{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#e7f0eb;color:#35644f;font-family:Georgia,serif;font-size:9px;font-weight:800}
#merchants .merchant-option-board header strong,#merchants .merchant-option-board header small{display:block}
#merchants .merchant-option-board header strong{color:#28493b;font-size:12px}
#merchants .merchant-option-board header small{margin-top:3px;color:#96a19b;font-size:8px;line-height:1.4}
#merchants .merchant-option-source{display:inline-flex;align-items:center;gap:5px;color:#9a6b61;font-size:8px;font-weight:700;white-space:nowrap}
#merchants .merchant-option-source i{width:6px;height:6px;border-radius:50%;background:#b47869;box-shadow:0 0 0 3px rgba(180,120,105,.1)}
#merchants .merchant-option-source.is-inherited{color:#587765}
#merchants .merchant-option-source.is-inherited i{background:#3f735d;box-shadow:0 0 0 3px rgba(63,115,93,.1)}
#merchants .merchant-option-source button{padding:0;border:0;border-bottom:1px solid #bdccc4;background:transparent;color:#315f50;font:inherit;font-size:8px;cursor:pointer}
#merchants .merchant-option-help{margin:0;padding:9px 11px;border-radius:9px;background:#f2f7f4;color:#71837a;font-size:8px;line-height:1.55}
#merchants .merchant-option-list{display:grid;align-content:start;flex:1;gap:9px}
#merchants .merchant-option-row{position:relative;display:grid;grid-template-columns:minmax(110px,.7fr) minmax(180px,1.3fr);gap:8px;padding:10px;border:1px solid #dce6e0;border-radius:11px;background:#fbfcfb}
#merchants .merchant-option-row label{display:grid;min-width:0;gap:5px;color:#809087;font-size:8px;font-weight:700}
#merchants .merchant-option-row input,#merchants .merchant-option-row textarea{box-sizing:border-box;width:100%;border:1px solid #d5e0da;border-radius:8px;background:#fff;color:#354a41;font:inherit;font-size:9px;transition:border-color .16s,background .16s}
#merchants .merchant-option-row input{height:34px;padding:0 10px;font-weight:650}
#merchants .merchant-option-row textarea{min-height:54px;padding:8px 10px;line-height:1.5;resize:vertical}
#merchants .merchant-option-row input:focus,#merchants .merchant-option-row textarea:focus{border-color:#8eae9d;background:#fff;outline:0;box-shadow:0 0 0 2px rgba(82,125,105,.08)}
#merchants .merchant-option-row button,#merchants .merchant-option-board [data-add-option]{border:1px solid #d7e0da;border-radius:8px;background:#fff;color:#315f50;cursor:pointer}
#merchants .merchant-option-row button{position:absolute;top:-6px;right:-6px;width:18px;height:18px;padding:0;border-color:#ecd4d0;border-radius:50%;color:#aa5c52;font-size:10px;line-height:16px;opacity:.72}
#merchants .merchant-option-row:hover button{opacity:1}
#merchants .merchant-option-board [data-add-option]{align-self:flex-start;height:29px;padding:0 10px;font:inherit;font-size:9px;font-weight:700}
#merchants .merchant-option-board [data-add-option] span{color:#a27448;font-size:11px}
#merchants .industry-prompt-fields [data-choice-error]{min-height:18px;margin:0;color:#9b3b2f;font-size:12px}
@media(max-width:760px){#merchants .merchant-skill-overview{align-items:flex-start;flex-direction:column}#merchants .merchant-skill-overview dl{width:100%}#merchants .merchant-skill-overview dl>div{flex:1}#merchants .merchant-skill-grid,#merchants .merchant-option-grid,#merchants .merchant-option-row{grid-template-columns:1fr}#merchants .company-choice-heading,#merchants .merchant-prompt-distill-actions{align-items:flex-start;flex-direction:column;gap:6px}#merchants .merchant-prompt-label{align-items:flex-start;flex-direction:column}#merchants .merchant-distill-summary{grid-template-columns:1fr}#merchants .merchant-distill-steps{display:none}}
@media(max-width:620px){#merchants .merchant-dialog form.merchant-prompt-distill{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:18px}#merchants .merchant-prompt-distill>header{padding:16px 14px}#merchants .merchant-prompt-distill-body{padding:14px}#merchants .merchant-prompt-distill-input textarea{min-height:210px}#merchants .merchant-prompt-distill-actions>div{width:100%}#merchants .merchant-prompt-distill-actions button{flex:1;justify-content:center}}

/* 商家自建话术库（本公司话术库管理） */
#merchants .merchant-own-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#merchants .merchant-own-section>header>button{flex:none}
#merchants .merchant-own-editor{display:grid;gap:12px;margin:12px 0;padding:16px;border:1px solid #dce5df;border-radius:14px;background:#f7faf8}
#merchants .merchant-own-editor[hidden]{display:none}
#merchants .merchant-own-editor label{display:grid;gap:6px;color:#526159;font-size:12px;font-weight:700}
#merchants .merchant-own-editor label span b{margin-left:6px;color:#8a968f;font-weight:600}
#merchants .merchant-own-editor input,#merchants .merchant-own-editor textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #d9e1dc;border-radius:9px;background:#fff;font:inherit;font-weight:400}
#merchants .merchant-own-editor textarea{resize:vertical;line-height:1.6;min-height:120px}
#merchants .merchant-own-editor-status{margin:0;min-height:18px;color:#5f7268;font-size:12px}
#merchants .merchant-own-editor-status.is-error{color:#a34439}
#merchants .merchant-own-editor-actions{display:flex;justify-content:flex-end;gap:8px}
#merchants .merchant-own-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:10px;padding:14px 16px;border:1px solid #dfe6e1;border-radius:13px;background:#fff}
#merchants .merchant-own-card.is-default{border-color:#87aa98;background:#fbfefc}
#merchants .merchant-own-main{display:grid;gap:4px;min-width:0}
#merchants .merchant-own-main strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#29493f;font-size:15px}
#merchants .merchant-own-main small{color:#737f79;font-size:12px}
#merchants .merchant-own-main em{font-style:normal;color:#929b96;font-size:11px}
#merchants .merchant-own-badge{display:inline-flex;padding:2px 8px;border-radius:999px;background:#edf3ef;color:#486658;font-size:10px;font-weight:700}
#merchants .merchant-own-badge.is-default{background:#2f5a4b;color:#fff}
#merchants .merchant-own-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#merchants .merchant-own-actions button{min-height:32px;padding:0 11px;border:1px solid #d8e1db;border-radius:8px;background:#fff;color:#385749;font-size:12px;cursor:pointer}
#merchants .merchant-own-actions button:hover{border-color:#b9c8c0;background:#f4f7f5}
#merchants .merchant-own-actions button.is-primary{border-color:#315e4d;background:#315e4d;color:#fff}
#merchants .merchant-own-actions button.is-danger{border-color:#e6c9c2;color:#a34439}
#merchants .merchant-own-actions button.is-danger:hover{border-color:#c9837a;background:#fdf4f2;color:#8c2f26}
#merchants .merchant-own-switch{margin:0 0 12px;padding:14px 16px;border:1px solid #dce5df;border-radius:14px;background:#f7faf8}
#merchants .merchant-own-switch label{display:grid;gap:6px;color:#526159;font-size:12px;font-weight:700}
#merchants .merchant-own-switch select{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #d9e1dc;border-radius:9px;background:#fff;color:#29493f;font:inherit;font-weight:400;cursor:pointer}
#merchants .merchant-own-switch select:focus{outline:none;border-color:#87aa98;box-shadow:0 0 0 3px rgba(135,170,152,.18)}
#merchants .merchant-own-editor{margin:0}
#merchants .merchant-own-state{padding:9px 13px;border:1px solid #ecd9c6;border-radius:9px;background:#fdf6ec;color:#8a6a34;font-size:12px;font-weight:600}
#merchants .merchant-own-state.is-published{border-color:#cfe0d4;background:#f2f8f4;color:#3c6650}
#merchants .staff-content-count{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;padding:6px 10px;border:1px solid #c9dbd1;border-radius:10px;background:#f3faf6;color:#315e4d;cursor:pointer}
#merchants .staff-content-count strong{font-size:16px}
#merchants .staff-content-count small{color:#7d8b84;font-size:12px}
#merchants .staff-content-count em{font-style:normal;font-size:12px;text-decoration:underline}
#merchants .staff-content-count:hover{border-color:#315e4d;background:#fff}
#merchants .generation-record-dialog,#merchants .generation-copy-dialog{width:min(860px,calc(100% - 32px))}
#merchants .generation-record-dialog .customer-dialog-head,#merchants .generation-skill-bar{flex:none}
#merchants .generation-record-dialog .customer-dialog-body{flex:1;min-height:0}
#merchants .generation-skill-bar{display:flex;flex:none;flex-wrap:nowrap;gap:8px;align-items:center;min-height:56px;overflow-x:auto;overflow-y:hidden;padding:12px 22px;border-bottom:1px solid #e8ede9;background:#fff}
#merchants .generation-skill{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;width:auto;min-height:34px;margin:0;padding:6px 12px;border:1px solid #d7e2db;border-radius:999px;background:#f7faf8;color:#3d564a;font-size:13px;white-space:nowrap;cursor:pointer}
#merchants .generation-skill b{color:#7d8b84;font-weight:650}
#merchants .generation-skill.is-current{border-color:#315e4d;background:#315e4d;color:#fff}
#merchants .generation-skill.is-current b{color:#d7e6de}
#merchants .reply-thread{display:grid;gap:10px;margin:0;padding:4px 2px 12px;list-style:none}
#merchants .reply-thread-line{max-width:78%;padding:10px 12px;border-radius:12px}
#merchants .reply-thread-line.is-customer{background:#f4f7f5}
#merchants .reply-thread-line.is-staff{margin-left:auto;background:#e7f2eb}
#merchants .reply-thread-line span{color:#315e4d;font-size:12px;font-weight:700}
#merchants .reply-thread-line time{margin-left:8px;color:#8a9690;font-size:12px}
#merchants .reply-thread-line p{margin:6px 0 0;color:#29493f;font-size:14px;line-height:1.6;white-space:pre-wrap}
#merchants .generation-record{display:grid;grid-template-columns:148px minmax(120px,180px) 1fr auto;gap:12px;align-items:center;width:100%;margin-top:10px;padding:14px 16px;border:1px solid #e4ebe6;border-radius:14px;background:#fff;text-align:left;cursor:pointer}
#merchants .generation-record span,#merchants .generation-record em{color:#7d8b84;font-size:12px;font-style:normal}
#merchants .generation-record strong{color:#29493f;font-size:14px}
#merchants .generation-record p{margin:0;overflow:hidden;color:#526159;font-size:13px;white-space:nowrap;text-overflow:ellipsis}
#merchants .generation-record:hover{border-color:#b7cbbf}
#merchants .generation-empty,#merchants .generation-cap{margin:0;color:#7d8b84;font-size:13px}
#merchants .generation-cap{margin-bottom:8px}
#merchants .generation-detail{display:grid;gap:16px}
#merchants .generation-pane{padding:14px 16px;border:1px solid #e4ebe6;border-radius:14px;background:#fff}
#merchants .generation-pane h4{margin:0 0 10px;color:#315e4d;font-size:13px}
#merchants .generation-facts{display:grid;gap:10px}
#merchants .generation-facts div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:start}
#merchants .generation-facts span{color:#7d8b84;font-size:12px;line-height:1.6}
#merchants .generation-facts p{margin:0;color:#29493f;font-size:14px;line-height:1.6;white-space:pre-wrap}
#merchants .generation-copy{margin:0;white-space:pre-wrap;color:#29493f;font:14px/1.7 inherit}
@media(max-width:800px){#merchants .generation-record{grid-template-columns:1fr auto}#merchants .generation-record span,#merchants .generation-record strong{grid-column:1}}
