/* Staff profiles reuse the binder palette, cards and the portal's form controls. */
.staff-profiles{--profile-soft:#e4eddc;--profile-hover:#d8e5ce;--profile-line:#d4dfca;--profile-sage:linear-gradient(115deg,#e8efdf,#f2f6ec)}
.staff-profiles main{max-width:1400px;padding:0 28px}
.staff-profiles .workspace-grid{display:block}
.staff-profiles .workspace-grid>aside,.staff-profiles .intro-session-actions{display:none}
.staff-profiles .content{min-height:540px}
.staff-profiles .intro{padding:14px 20px;margin:16px 0;border:1px solid var(--profile-line);border-radius:16px;background:var(--profile-sage);box-shadow:0 3px 14px #26351c06}
.staff-profiles .intro .eyebrow{font-size:8px;color:#718265;letter-spacing:1.4px}
.staff-profiles .intro h1{font-size:26px;line-height:1.25;margin:3px 0;color:#405734}
.staff-profiles .intro p{display:none}
/* The same 44px controls, rounded corners and chevron used by My bookings. */
.staff-profiles .profile-button,.staff-profiles button.primary,.staff-profiles .profile-mobile-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid var(--profile-line);border-radius:11px;background:#fff;color:#526b42;font:12px/1.5 var(--blend-builder-font,Arial,sans-serif);text-decoration:none;box-shadow:none;cursor:pointer}
.staff-profiles .profile-button:hover,.staff-profiles .profile-mobile-back:hover{background:#f3f6ee;border-color:#afc49d}
.staff-profiles button.primary{background:var(--profile-soft);border-color:#c6d5b9;color:#405734;font-weight:600}
.staff-profiles button.primary:hover{background:var(--profile-hover);border-color:#aec49b}
.staff-profiles button.primary:disabled{opacity:.5;cursor:default}
.staff-profiles :is(input,select,textarea){min-width:0;min-height:44px;padding:11px 12px;border:1px solid #d6dece;border-radius:10px;font:13px/1.5 var(--blend-builder-font,Arial,sans-serif);color:#354b29;background-color:#fafbf8;box-shadow:none}
.staff-profiles label{font:11px/1.5 var(--blend-builder-font,Arial,sans-serif);color:#637555}
.staff-profiles label :is(input,select,textarea){margin-top:6px}
.staff-profiles :is(input,select,textarea):focus{border-color:#94ad80;background-color:#fff}
.staff-profiles :is(input,textarea)::placeholder{color:#8a9282}
.staff-profiles select{cursor:pointer;appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23526b42' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 12px center;background-size:16px;background-repeat:no-repeat}
.staff-profiles :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #789666;outline-offset:3px}
.profile-button svg,.profile-access button svg{width:16px;height:16px;flex-shrink:0}
.profile-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-control-actions{display:flex;gap:8px}
.staff-profiles .profile-calendar-link{background:#f5f8f0}
.profile-sync{display:flex;align-items:center;gap:7px;margin:10px 2px 17px;color:#7a8671;font:10px/1.6 var(--blend-builder-font,Arial,sans-serif)}
.profile-sync-dot{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#97b182}
.profile-sync.error .profile-sync-dot{background:#9a4942}
.profile-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}
/* Customer directory follows the selected-service and sidebar card treatment. */
.staff-profiles .profile-directory{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:17px;margin:0;border-radius:15px;box-shadow:0 3px 14px #26351c06}
.profile-directory-heading,.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-directory-heading{margin:0 0 12px}
.profile-directory-heading h2{font-size:21px;margin:0}
.staff-profiles .count{font:10px/1.5 var(--blend-builder-font,Arial,sans-serif);background:#f5f8f0;border:1px solid #dbe5d2;color:#6a7d5b;padding:4px 9px;border-radius:20px;white-space:nowrap}
.profile-directory #profile-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;align-items:end}.profile-directory #profile-filters>label:first-child{grid-column:1/-1}
.profile-directory #profile-filters .primary{width:100%;justify-content:center;margin-top:0;padding:10px 12px}
.profile-results-count{margin:12px 0 8px;font:10px/1.6 var(--blend-builder-font,Arial,sans-serif);color:#7a8671}
.profile-results{display:grid;gap:6px}
.profile-result{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "phone status" "counts status";align-items:center;gap:2px 7px;width:100%;min-height:44px;padding:8px 10px;text-align:left;border:1px solid #dfe5d8;border-radius:11px;background:#fff;color:#405734;font:11px/1.5 var(--blend-builder-font,Arial,sans-serif);box-shadow:none}
.profile-result:hover{background:#f7faf3;border-color:#b6c9a6}
.profile-result[aria-current]{background:#f0f6e9;border-color:#a2ba8c;box-shadow:inset 3px 0 #8fa978}
.profile-result-heading{grid-area:name;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.profile-result-heading strong{font-size:13px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.profile-result-arrow{color:#8da17d;font-size:19px;line-height:1}
.profile-result-phone{grid-area:phone;min-width:0;overflow-wrap:anywhere;font-size:10px;color:#727f68}
.profile-result-counts{grid-area:counts;display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:9px;color:#75836a}
.profile-result-footer{grid-area:status;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;margin:0}
.profile-result-footer small{font-size:9px;color:#839077}
.profile-visit-status{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid #e0e5db;border-radius:20px;background:#f7f9f4;font:9px/1.4 var(--blend-builder-font,Arial,sans-serif);color:#7d8774;white-space:nowrap}
.profile-visit-status.is-active{background:#e8f1df;border-color:#d4e2c7;color:#5d784b}
.profile-visit-status.is-active:before{content:'';width:4px;height:4px;border-radius:50%;background:#8ca975}
.profile-no-results{padding:18px 4px;text-align:center}
.profile-no-results p{margin:0 0 5px;font-size:12px}
.profile-no-results span{font-size:11px;color:#7a8671}
/* Compact customer banner and section rhythm. */
.profile-detail{min-width:0}
.staff-profiles .profile-banner{padding:14px 17px;margin:0 0 21px;border:1px solid var(--profile-line);border-radius:15px;background:var(--profile-sage);box-shadow:0 3px 14px #26351c06}
.profile-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.profile-identity{min-width:0}
.profile-banner .eyebrow{font-size:8px;letter-spacing:1.3px;color:#7a896e}
.profile-banner h2{font-size:23px;line-height:1.3;margin:4px 0 6px;overflow-wrap:anywhere}
.profile-contact-line{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font:11px/1.5 var(--blend-builder-font,Arial,sans-serif);color:#6b7c5e}
.profile-banner p.fine{margin:5px 0 0;font:10px/1.5 var(--blend-builder-font,Arial,sans-serif);color:#809073}
.profile-stats{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;max-width:210px;flex-shrink:0}
.profile-stats>span{padding:6px 9px;background:#ffffffb3;border:1px solid #d8e2ce;border-radius:8px;font:10px/1.4 var(--blend-builder-font,Arial,sans-serif);white-space:nowrap;color:#627552}
.profile-stats strong{font-size:12px;font-weight:600;margin-right:3px;color:#405734}
.staff-profiles .profile-mobile-back{display:none;margin:0 0 12px;min-height:40px;background:#ffffffb3;padding:8px 12px;font-size:11px}
.profile-section{margin:0 0 24px}
.profile-section-heading{margin:0 0 12px}
.profile-section-heading h3{font-size:21px;line-height:1.3;margin:0}
.profile-section-empty{padding:22px;border:1px dashed #d6e1cc;background:#f7faf3;border-radius:13px}
.profile-section-empty p{margin:0 0 5px;font-size:12px;color:#637555}
.profile-section-empty span{font-size:11px;color:#809073}
.profile-scent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-scent-grid .profile-section-empty{grid-column:1/-1}
.profile-scent-grid .saved-favorite{display:inline-flex;align-items:center;justify-content:center;color:#ab6c74;cursor:default}
.profile-scent-grid .saved-favorite:hover{background:transparent}
.profile-scent{padding:16px;border:1px solid var(--border);border-radius:13px;background:#fff}
.profile-scent span{display:block;color:var(--muted);font-size:11px}
/* Saved recipes remain compact and read-only. */
.staff-profiles .profile-detail .profile-blend{padding:0;margin:0 0 12px;border-radius:13px;overflow:hidden;box-shadow:0 3px 14px #26351c06}
.profile-blend-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid var(--profile-line);background:var(--profile-sage)}
.profile-blend-header>div{min-width:0}
.profile-blend-header h3{font-size:18px;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}
.profile-blend-header p{margin:0;font-size:11px;line-height:1.5;color:#6d7d60}
.profile-blend-date{max-width:145px;text-align:right;font-size:10px;line-height:1.5;color:#809073;flex-shrink:0}
.profile-blend-body{padding:7px 14px 10px}
.profile-formula{list-style:none;padding:0;margin:0}
.profile-formula li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e8ece2;font:12px/1.5 var(--blend-builder-font,Arial,sans-serif)}
.profile-formula li:last-child{border:0}
.profile-formula li span{overflow-wrap:anywhere}
.profile-formula strong{font-size:11px;white-space:nowrap;color:#587447}
.profile-copy{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-blend-body p{margin:7px 0 0;font-size:11px;line-height:1.7;color:#78866d}
.profile-blend-body details{margin-top:6px;border-top:1px solid #e8ece2}
.profile-blend-body details>summary{min-height:38px;padding:7px 0;font-size:11px;display:flex;align-items:center;justify-content:space-between}
/* Notes and expandable history use the same form and disclosure styles. */
.staff-profiles #profile-notes{padding:20px;margin:0 0 16px;border-radius:15px;background:#fff;box-shadow:0 3px 14px #26351c06}
#profile-notes .pill{font:9px/1.5 var(--blend-builder-font,Arial,sans-serif);border:1px solid #dbe5d2;background:#f1f6eb;color:#6b805c}
#profile-notes>p.fine{font-size:11px;margin:0 0 14px;line-height:1.6}
#profile-notes textarea{min-height:120px;width:100%;margin-bottom:0;font-size:13px;resize:vertical}
#profile-notes .actions{margin-top:13px;justify-content:space-between;gap:10px}
#profile-notes-status{font-size:10px}
.staff-profiles .profile-disclosure{padding:0;margin:0 0 12px;border-radius:12px;overflow:hidden;background:#fff;box-shadow:none}
.profile-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:12px 16px;font-size:12px;list-style:none;cursor:pointer}
.profile-disclosure>summary::-webkit-details-marker{display:none}
.profile-disclosure>summary:after,.profile-blend-body details>summary:after{content:'⌄';color:#8ba078;font-size:16px;line-height:1}
.profile-disclosure[open]>summary:after,.profile-blend-body details[open]>summary:after{content:'⌃'}
.profile-disclosure[open]>summary{border-bottom:1px solid #e4eadd;background:#f7faf3}
.profile-disclosure>p{padding:0 16px;margin:12px 0;font-size:11px;line-height:1.7}
/* Locked and empty views are part of the same visual system. */
.staff-profiles .profile-access{max-width:510px;margin:34px auto;padding:29px;text-align:center;border-radius:16px;background:linear-gradient(145deg,#fff,#fafcf7);box-shadow:0 3px 14px #26351c06}
.profile-access-icon,.profile-placeholder-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 17px;border:1px solid #d4dfca;border-radius:13px;background:#edf4e5;color:#789666}
.profile-access-icon svg,.profile-placeholder-icon svg{width:24px;height:24px}
.profile-access .eyebrow{font-size:8px;letter-spacing:1.5px;color:#809073}
.profile-access h2{font-size:25px;margin:7px 0 12px}
.profile-access>p{font:12px/1.8 var(--blend-builder-font,Arial,sans-serif);max-width:350px;margin:0 auto 22px}
.profile-access button{width:100%}
.profile-access>p.profile-access-hint{margin:16px 0 0;font-size:10px;color:#839077}
.staff-profiles .profile-placeholder{min-height:285px;padding:48px 28px;text-align:center;background:#fafcf7;border:1px dashed #d6e1cc;border-radius:15px;box-shadow:none}
.profile-placeholder h2{font-size:24px;margin:0 0 10px}
.profile-placeholder p{max-width:340px;margin:0 auto;font:12px/1.8 var(--blend-builder-font,Arial,sans-serif);color:#839077}
@media(max-width:1100px){.profile-layout{grid-template-columns:250px minmax(0,1fr);gap:18px}.staff-profiles .profile-directory{padding:15px}.profile-top{align-items:flex-start}.profile-stats{max-width:130px}.profile-scent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.staff-profiles main{padding:0 22px}.profile-layout{display:block}.staff-profiles .profile-directory{position:static;max-height:none;max-width:650px;margin:0 auto}.profile-detail{display:none}.profile-has-selection .profile-directory{display:none}.profile-has-selection .profile-detail{display:block}.staff-profiles .profile-mobile-back{display:inline-flex}.profile-stats{max-width:210px}.profile-top{align-items:center}}
@media(max-width:600px){.staff-profiles main{padding:0 15px}.staff-profiles .intro{padding:12px 16px;margin:12px 0}.staff-profiles .intro h1{font-size:23px}.profile-controls{align-items:stretch;flex-wrap:wrap;gap:9px}.profile-controls>.profile-calendar-link{min-width:0;flex:1}.profile-control-actions{flex:1;gap:7px}.staff-profiles .profile-button{padding:9px 11px;font-size:11px;white-space:nowrap}.profile-control-actions button{flex:1}.profile-sync{font-size:9px;margin:10px 0 15px}.staff-profiles .profile-banner{padding:13px 15px;margin-bottom:20px}.profile-top{align-items:flex-start;flex-direction:column;gap:11px}.profile-banner h2{font-size:22px}.profile-stats{justify-content:flex-start;max-width:none}.profile-section-heading h3{font-size:20px}.profile-scent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-blend-header{align-items:flex-start;flex-direction:column;gap:5px;padding:10px 12px}.profile-blend-date{max-width:none;text-align:left}.profile-blend-body{padding:7px 12px 9px}.staff-profiles #profile-notes{padding:17px}.staff-profiles #profile-notes .profile-section-heading h3{font-size:19px}.staff-profiles .profile-access{margin:22px auto;padding:25px 21px}.profile-access h2{font-size:24px}.staff-profiles .profile-placeholder{padding:35px 20px}.profile-disclosure>summary{padding:11px 14px}}
@media(max-width:380px){.profile-control-actions{flex-basis:100%}.profile-scent-grid{grid-template-columns:1fr}#profile-notes .actions{align-items:stretch;flex-direction:column}}

/* Compact staff favorites: the scent name lives beside its original illustration. */
.profile-scent-grid{gap:10px}
.profile-favorite-card .card-art{min-height:53px;padding:9px 12px;gap:9px}
.profile-favorite-card .card-art>.profile-scent-title{max-width:calc(100% - 43px);font-size:inherit;letter-spacing:normal;text-transform:none}
.profile-favorite-card .card-art h3{font:17px/1.3 Lora,Georgia,serif;margin:0;color:#405734;overflow-wrap:anywhere}
.profile-favorite-card .card-art small{font-size:9px;color:#839077}
.profile-favorite-card .card-art .fragrance-illustration{width:34px;height:34px}
.profile-favorite-card .card-body{padding:9px 12px 8px}
.profile-favorite-card .card-body p{font-size:11px;line-height:1.6;margin:0 0 8px;-webkit-line-clamp:2}
.profile-favorite-card .card-actions{padding-top:6px;gap:6px}
.profile-favorite-card .card-actions button:not(.favorite-button){min-height:32px;padding:6px 10px;font-size:10px}
.profile-favorite-card .card-actions .saved-favorite{width:28px;height:28px;font-size:16px!important}
@media(max-width:600px){.profile-favorite-card .card-art{padding:8px 10px;min-height:51px}.profile-favorite-card .card-art h3{font-size:16px}.profile-favorite-card .card-body{padding:8px 10px}.profile-result{padding:8px 10px}}

.profile-recency-hint{margin:-3px 0 9px;font:9px/1.5 var(--blend-builder-font,Arial,sans-serif);color:#839077}.profile-recency-hint[hidden]{display:none}
