/* Customer cards and task selection share the brand tokens used by the shop.
   Keep component boundaries usable as future WXML / WXSS components. */
.staff-workbench{width:100%;max-width:430px;margin:0 auto;color:#111;overflow-wrap:anywhere}
.staff-workbench *, .staff-workbench *:before,.staff-workbench *:after{box-sizing:border-box}
.staff-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px}
.staff-head h2{font-family:var(--brand-serif,serif);font-size:27px;font-weight:600;line-height:1.45;letter-spacing:1px;margin:3px 0 5px}
.staff-head p{font-size:12px;line-height:1.7;margin:0}
.staff-head .staff-eyebrow{font-size:10px;letter-spacing:2px}
.staff-head-mark{display:grid;place-items:center;width:52px;height:62px;border:1px solid #cbd9d1;border-radius:26px 26px 12px 12px;background:#eaf0e9;flex:none}
.staff-head-mark svg{height:29px;width:29px}
.staff-search{margin:0 0 12px}
.staff-search>label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.staff-search>div{display:flex;background:#fff;border:1px solid var(--brand-line,#dfe4dc);border-radius:11px;overflow:hidden;min-height:44px}
.staff-search input{min-width:0;flex:1;border:0;border-radius:0;background:transparent;font-size:13px;padding:11px 13px;outline-offset:-3px}
.staff-search button{border:0;border-radius:0;background:#e0e8d9;padding:0 16px;min-width:62px;font-size:13px;font-weight:600}
.staff-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.staff-quick{display:grid;grid-template-columns:27px 1fr;column-gap:9px;row-gap:4px;text-align:left;min-height:72px;padding:11px 12px;background:#fffefa;border:1px solid #dce3d7;border-radius:13px}
.staff-quick svg{grid-column:1;grid-row:1/3;width:25px;height:25px;margin-top:3px}
.staff-quick strong{grid-column:2;font-size:14px;font-weight:600;line-height:1.6;white-space:nowrap}
.staff-quick span{grid-column:2;font-size:12px;line-height:1.6;white-space:nowrap}
.staff-quick[aria-pressed=true]{background:#e0e8d9;border-color:#99b2a4}
.staff-task-note{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf2ec;border-radius:9px;padding:11px 12px;margin:-8px 0 22px;font-size:12px;line-height:1.6}
.staff-task-note button{flex:none}
.staff-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.staff-section-heading h3,.staff-note-block h3{font-size:16px;font-weight:600;margin:0}
.staff-text-button{min-height:34px;padding:3px 0;background:transparent;border:0;font-size:12px}
.staff-followups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 8px}
.staff-followup{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid transparent;border-radius:10px;padding:7px 3px;background:transparent;min-width:0;min-height:56px}
.staff-followup span{font-size:12px;line-height:1.5;white-space:nowrap}
.staff-followup b{font-size:20px;line-height:1.1;font-weight:500}
.staff-followup[aria-pressed=true]{background:#e0e8d9;border-color:#d2ddc9}
.staff-filters{border-top:1px solid var(--brand-line,#dfe4dc);border-bottom:1px solid var(--brand-line,#dfe4dc);margin-bottom:10px;padding:0}
.staff-filters>summary,.staff-detail-section>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;font-size:13px;min-height:46px;padding:10px 0;list-style:none}
.staff-filters>summary{min-height:42px;padding:8px 0}
.staff-filters>summary::-webkit-details-marker,.staff-detail-section>summary::-webkit-details-marker{display:none}
.staff-filters>summary>span,.staff-detail-section>summary>span{font-size:10px;text-align:right;font-weight:400}
.staff-filters>summary:after,.staff-detail-section>summary:after{content:'⌄';font-size:16px;flex:none;margin-left:0}
.staff-filters[open]>summary:after,.staff-detail-section[open]>summary:after{content:'⌃'}
.staff-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.staff-filter-field{display:flex;flex-direction:column;gap:5px;font-size:11px;min-width:0}
.staff-filter-field select{width:100%;min-width:0;background:#fff;border:1px solid #d5ded1;border-radius:7px;min-height:40px;padding:8px;font-size:12px}
.staff-reset{display:block;margin:0 0 13px auto;min-height:34px;padding:4px 10px;border:1px solid #d5ded1;background:transparent;border-radius:6px;font-size:12px}
.staff-list-summary{display:flex;justify-content:space-between;gap:14px;font-size:11px;margin:0 0 8px}
.staff-customer-list{display:grid;gap:14px}
.staff-customer-card{border:1px solid var(--brand-line,#dfe4dc);background:var(--brand-white,#fff);border-radius:15px;padding:16px 15px 8px;min-width:0}
.staff-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:11px}
.staff-customer-name{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;min-width:0;padding:0;background:transparent;border:0}
.staff-customer-name strong{font-size:17px;line-height:1.5;font-weight:600}
.staff-customer-name>span{font-size:10px}
.staff-status{font-size:11px;background:#eef2e9;padding:3px 7px;border-radius:5px;white-space:nowrap;margin-top:3px}
body :is(#app,#modal-root) .staff-warning{color:var(--readable-red,#b00020)!important;background:#fff0ed}
.staff-contact{display:flex;flex-wrap:wrap;gap:4px 11px;font-size:12px;line-height:1.7;margin:0 0 5px}
.staff-contact>span{font-size:11px}
.staff-address{font-size:12px;line-height:1.75;margin:0 0 12px;overflow-wrap:anywhere}
.staff-quantities{display:flex;flex-wrap:wrap;gap:5px 13px;font-size:11px;padding:10px 0;border-top:1px solid #edf0e9;margin:1px 0 10px}
.staff-quantities b{font-size:14px;font-weight:600}
.staff-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.staff-action{min-width:0;width:100%;min-height:41px;border:1px solid #d3ddcc;border-radius:8px;background:#f6f8f2;padding:8px 9px;font-size:12px;font-weight:600;line-height:1.5}
.staff-action.staff-primary{background:#dfe9d8;border-color:#d0dcc7}
.staff-card-links{display:flex;gap:13px;justify-content:flex-end;margin-top:2px}
.staff-card-links button{font-size:11px;background:transparent;border:0;min-height:34px;padding:5px 0}
.staff-remark{font-size:11px;background:#f6f7f2;border-radius:7px;padding:8px 10px;line-height:1.7;margin:0 0 12px;white-space:pre-wrap}
.staff-footnote{font-size:11px;line-height:1.75;margin:20px 0 3px}
.staff-empty{text-align:center;padding:25px 17px;border:1px dashed #d5decd;border-radius:12px;font-size:12px;line-height:1.8;background:#fffefa}
.staff-empty>strong{font-size:14px;font-weight:600}
.staff-empty p{margin:8px 0 16px}
.staff-empty .staff-action{width:auto;padding-left:18px;padding-right:18px}
.staff-customer-detail .staff-head{margin-bottom:18px}
.staff-contact-card{background:#fff;border:1px solid #dce3d7;border-radius:14px;padding:17px 16px 7px;margin:0 0 14px}
.staff-detail-person{font-size:17px;font-weight:600;margin:0 0 3px}
.staff-phone{display:inline-block;font-size:15px;margin-bottom:10px;text-underline-offset:3px;min-height:31px}
.staff-detail-service{font-size:11px;line-height:1.8;margin:0 0 9px}
.staff-note-block{padding:19px 0 12px;border-bottom:1px solid var(--brand-line,#dfe4dc)}
.staff-note-block>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.staff-note-block h3{font-size:14px}
.staff-note-block p{font-size:12px;line-height:1.75;white-space:pre-wrap;margin:5px 0}
.staff-detail-section{border-bottom:1px solid var(--brand-line,#dfe4dc);padding:4px 0}
.staff-detail-section>summary{font-size:14px;font-weight:600;min-height:57px}
.staff-detail-section .staff-footnote{margin:1px 0 14px}
.staff-record{border:1px solid #dce3d7;border-radius:10px;background:#fff;padding:13px;margin:0 0 12px}
.staff-record>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.staff-record strong{font-size:13px;font-weight:600}
.staff-record span,.staff-record p{font-size:11px;line-height:1.7;margin:4px 0 9px}
.staff-record .staff-action{margin-top:3px}
.staff-record-customer>h3{font-size:13px;font-weight:600;margin:18px 0 8px}
.staff-legacy .detail-card{padding:0}
.staff-legacy .field-row{font-size:12px;gap:10px}
.staff-legacy .detail-history{font-size:11px}
@media(max-width:360px){
  .staff-head h2{font-size:25px}
  .staff-quick-actions{gap:9px}
  .staff-quick{grid-template-columns:1fr;padding:12px 10px;min-height:112px;gap:3px}
  .staff-quick svg{grid-column:1;grid-row:1;height:23px;width:23px;margin:0 0 4px}
  .staff-quick strong,.staff-quick span{grid-column:1}
  .staff-quick strong{font-size:13px}
  .staff-customer-card{padding-left:13px;padding-right:13px}
  .staff-quantities{gap:5px 9px;font-size:10px}
  .staff-action{font-size:11px;padding-left:5px;padding-right:5px}
  .staff-filters>summary>span{max-width:62%}
}
