body.counselor-workspace {
  --ink: #29272e;
  --muted: #605c68;
  --plum: #583d65;
  --rule: #dedbe1;
  --surface: #fff;
  min-height: 100vh;
  background: #f6f5f7;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.counselor-workspace > header, .counselor-workspace > main {
  max-width: 74rem;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.counselor-workspace > header { padding-block: .9rem; border-color: var(--rule); }
.counselor-workspace .brand { color: var(--plum); font-size: .8rem; margin: 0 0 .14rem; }
.counselor-workspace h1 { margin: 0; color: var(--ink); font: 560 1.35rem/1.2 Georgia, serif; }
.counselor-workspace #logout { flex-shrink: 0; white-space: nowrap; min-height: 34px; font-size: .82rem; }
.counselor-workspace #identity { color: var(--muted); font-size: .8rem; margin: 0 0 .55rem; }
.counselor-workspace #status:empty { display: none; }
.counselor-workspace #workspace-nav {
  display: flex; gap: .15rem; width: fit-content; max-width: 100%; flex-wrap: wrap;
  background: #ece9ef; border: 1px solid #e0dbe3; padding: .18rem; border-radius: .65rem;
}
.counselor-workspace #workspace-nav button {
  margin: 0; min-height: 32px; padding: .32rem .85rem; border: 1px solid transparent;
  background: transparent; color: #554e59; border-radius: .45rem; font-size: .85rem; font-weight: 560;
}
.counselor-workspace #workspace-nav button[aria-current=page] {
  background: white; border-color: #d6ceda; color: #442e50; box-shadow: 0 1px 3px #34203a0c;
}
.counselor-workspace #login { margin: 2rem auto; max-width: 27rem; border-radius: .8rem; }
.counselor-workspace #login .primary { width: 100%; }
.booking-workspace { font-size: .875rem; line-height: 1.43; color: var(--ink); }
.booking-workspace button, .booking-workspace input, .booking-workspace select {
  font-family: inherit; font-size: inherit; border: 1px solid #c5bdca; border-radius: .48rem; background: white;
}
.booking-workspace button { margin: .2rem .25rem .2rem 0; min-height: 34px; padding: .32rem .65rem; font-weight: 550; color: var(--plum); cursor: pointer; }
.booking-workspace button:hover:not(:disabled) { border-color: #9e8aa9; background: #f5f1f7; }
.booking-workspace :is(button,input,select,summary,a):focus-visible { outline: 2px solid #76518e; outline-offset: 2px; }
.booking-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 .85rem; }
.booking-heading h2 { margin: 0; color: var(--ink); font: 570 clamp(1.35rem, 2.3vw, 1.65rem)/1.15 Georgia, serif; }
.booking-heading button { margin: 0; font-size: .79rem; }
.booking-status:empty { display: none; }
.booking-status:not(:empty) { border-radius: .5rem; background: #eae4ef; color: #47344f; padding: .55rem .75rem; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: 1rem; align-items: start; }
.booking-agenda,.booking-toolbox { min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: .8rem; }
.booking-agenda { overflow: clip; box-shadow: 0 2px 7px #24202c05; }
.booking-controls,.booking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-inline: .85rem; }
.booking-controls { min-height: 47px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; padding-block: .35rem; }
.booking-views { display: inline-flex; flex-wrap: wrap; gap: .2rem; }
.booking-views button { color: var(--muted); border: 1px solid transparent; background: transparent; font-size: .82rem; margin: 0; padding: .27rem .52rem; min-height: 30px; }
.booking-views button[aria-pressed=true],.booking-views button[aria-pressed=true]:hover { color: #482f54; background: #eee8f1; border-color: #e0d5e6; }
.booking-count { display: inline-block; border-radius: .28rem; background: #f7e3c1; color: #684315; padding: 0 .3rem; font-size: .73rem; }
.booking-zone { color: var(--muted); font-size: .76rem; }
.booking-toolbar { padding-block: .65rem; flex-wrap: wrap; }
.booking-search { margin: 0; position: relative; min-width: 10rem; flex: 1 1 13rem; }
.booking-search::before,.booking-search::after { content: ''; position: absolute; pointer-events: none; color: #756b7c; }
.booking-search::before { left: .72rem; top: .65rem; border: 1.5px solid; border-radius: 50%; width: .53rem; height: .53rem; }
.booking-search::after { top: 1.22rem; left: 1.27rem; width: .33rem; border-top: 1.5px solid; transform: rotate(45deg); }
.booking-search input,.booking-counselor-filter { min-height: 35px; margin: 0; padding: .4rem .62rem; font-weight: 400; }
.booking-search input { padding-left: 2rem; background: #faf9fb; width: 100%; }
.booking-workspace .booking-counselor-filter { width: auto; max-width: 100%; color: #4d4653; }
.booking-day { margin: 0; padding: 0; }
.booking-day h3 { margin: 0; padding: .35rem .9rem; font-family: inherit; font-size: .77rem; line-height: 1.45; font-weight: 620; color: #504957; background: #f2f1f4; border-block: 1px solid #e5e2e7; }
.booking-entry { margin: 0; padding: 0; border: 0; background: white; }
.booking-entry + .booking-entry { border-top: 1px solid #eae7ec; }
.booking-entry > summary { display: grid; grid-template-columns: minmax(5.5rem, .65fr) minmax(0, 2.5fr) auto .55rem; align-items: center; gap: .7rem; min-height: 50px; padding: .52rem .9rem; list-style: none; cursor: pointer; }
.booking-entry > summary::-webkit-details-marker,.booking-toolbox summary::-webkit-details-marker { display: none; }
.booking-entry > summary::after,.booking-toolbox summary::after { content: ''; width: .38rem; height: .38rem; border: solid #786d80; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.booking-entry[open] > summary::after,.booking-toolbox[open] > summary::after,.booking-tools details[open] > summary::after { transform: rotate(225deg); }
.booking-entry > summary:hover,.booking-entry[open] > summary { background: #f6f3f8; }
.booking-entry > summary:focus-visible { outline-offset: -3px; }
.booking-entry time { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 600; }
.booking-when { display: grid; gap: .12rem; }
.booking-when small { font-size: .72rem; color: var(--muted); }
.booking-person { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .05rem .45rem; overflow-wrap: anywhere; }
.booking-person strong { font-size: .9rem; font-weight: 640; }
.booking-person small { flex-basis: 100%; color: var(--muted); font-size: .77rem; }
.booking-next-label { order: 0; color: #5d406d; font-size: .7rem; font-weight: 600; }
.booking-next .booking-person strong { order: -1; }
.booking-next > summary { box-shadow: inset 3px 0 #8a7099; background: #f8f5fa; }
.booking-label { justify-self: start; font-size: .73rem; line-height: 1.4; border-radius: .42rem; padding: .18rem .42rem; color: #514e59; background: #eeedf1; }
.booking-label[data-state=booked] { color: #36574e; background: #e7f1ed; }
.booking-label.needs-attention { color: #744818; background: #fcf0db; }
.booking-detail { padding: .65rem .9rem .85rem; border-top: 1px solid var(--rule); background: #faf9fb; overflow-wrap: anywhere; }
.booking-detail > p { margin: .2rem 0; }
.booking-detail details { margin: .4rem 0; }
.booking-detail details > summary { cursor: pointer; font-weight: 600; color: var(--plum); }
.booking-detail :is(input,select),.booking-tools :is(input,select) { display: block; max-width: 22rem; padding: .42rem; margin: .25rem 0; }
.booking-toolbox { padding-inline: .8rem; }
.booking-toolbox summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; cursor: pointer; }
.booking-toolbox > summary { min-height: 45px; color: var(--ink); font-weight: 650; }
.booking-tools { border-top: 1px solid var(--rule); }
.booking-tools > details { overflow-x: auto; }
.booking-tools > details + details { border-top: 1px solid #eae7ec; }
.booking-tools > details > summary { min-height: 41px; padding: .5rem .2rem; font-size: .82rem; font-weight: 550; color: #504457; }
.booking-tools summary:hover { color: #42244f; background: #f8f5f9; }
.booking-tools > details[open] { padding-bottom: .65rem; }
@media (min-width: 1000px) {
  .booking-layout:has(.booking-tools table) { grid-template-columns: minmax(0,1.6fr) minmax(22rem,1fr); }
}
.booking-tools table { border-collapse: collapse; margin: .75rem 0; font-size: .77rem; font-variant-numeric: tabular-nums; }
.booking-tools th,.booking-tools td { text-align: left; padding: .28rem .4rem; border-bottom: 1px solid var(--rule); }
.booking-tools caption { text-align: left; color: var(--muted); }
.booking-empty { padding: 1.15rem .9rem; color: var(--muted); border-top: 1px solid var(--rule); }
.booking-empty p { margin: 0; }
.booking-more { margin: .6rem .9rem !important; }
@media (max-width: 859px) {
  .booking-layout { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .booking-toolbox { grid-row: 1; }
  .booking-toolbox > summary { min-height: 40px; }
}
@media (max-width: 560px) {
  .counselor-workspace > header,.counselor-workspace > main { padding-inline: .8rem; }
  .booking-controls { gap: .35rem; padding: .45rem .55rem; }
  .booking-zone { width: 100%; padding: 0 .35rem; }
  .booking-toolbar { gap: .45rem; padding: .55rem; }
  .booking-entry > summary { grid-template-columns: 4.6rem minmax(0,1fr) auto .45rem; gap: .4rem; padding: .55rem .6rem; }
  .booking-label { max-width: 6rem; }
  .booking-search { min-width: 0; flex-basis: 100%; }
  .booking-workspace .booking-counselor-filter { width: 100%; }
  .booking-next-label { flex-basis: 100%; }
  .booking-search input,.booking-workspace select,.booking-workspace input:focus { font-size: 1rem; }
}
@media (max-width: 385px) {
  .booking-entry > summary { grid-template-columns: 4.5rem minmax(0,1fr) .45rem; }
  .booking-label { grid-column: 2; }
  .booking-entry > summary::after { grid-column: 3; grid-row: 1 / span 2; }
}
@media (pointer: coarse) {
  .booking-workspace button,.booking-workspace select,.booking-workspace input,.booking-tools > details > summary,
  .counselor-workspace #workspace-nav button { min-height: 44px; }
}

/* Shared, restrained surfaces across the staff workspace. */
body.counselor-workspace {
  --rule: #e3dedb;
  --surface: #fffefd;
  background: #f6f3ee;
  font-size: .9rem;
  line-height: 1.5;
}
.counselor-workspace :is(h1,h2) { letter-spacing: -.025em; }
.counselor-workspace > main { padding-top: .85rem; padding-bottom: 2rem; }
.counselor-workspace #workspace-nav { margin-bottom: .85rem; }
.counselor-workspace :is(#client-admin,#detail,#login,#resources-pane,nav:not(#workspace-nav)) {
  background: var(--surface); border-color: var(--rule); border-radius: .8rem;
  padding: 1rem; box-shadow: 0 2px 8px #33293804;
}
.counselor-workspace :is(#client-admin,#detail,#resources-pane) h2 {
  font-weight: 600; font-family: inherit; font-size: 1.12rem;
  line-height: 1.3; margin: 0 0 .75rem; color: var(--ink);
}
.counselor-workspace label { font-size: .82rem; margin-top: .7rem; }
.counselor-workspace :is(input,select,textarea) { border-color: #cfc6d1; }
.counselor-workspace #threads button { font-size: .84rem; padding: .6rem .7rem; }
.counselor-workspace #messages { font-size: .88rem; }
.booking-day h3 { background: #f5f2ef; border-color: var(--rule); }
.booking-detail { background: #fcfaf8; }
.booking-workspace input[type=checkbox] { display: inline-block; width: auto; min-height: auto; margin-right: .4rem; }
.booking-report-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; padding-bottom: .5rem; }
.booking-report-controls label { flex: 1 1 8rem; margin: .5rem 0 0; }
.booking-report-controls input { width: 100%; margin-bottom: 0; }
.booking-report-controls button { margin-bottom: 0; }
.booking-report-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.booking-report-scroll:focus-visible { outline: 2px solid var(--plum); outline-offset: -2px; }
.booking-report-scroll table { width: 100%; }
.booking-report-scroll :is(th,td) { white-space: nowrap; padding: .5rem .55rem; }
.booking-report-scroll th { color: var(--muted); font-weight: 600; background: #f7f4f1; }
.booking-report-scroll td:nth-last-child(-n+4) { text-align: right; }
.booking-report-scroll caption { padding-bottom: .45rem; font-size: .75rem; }
@media (min-width: 860px) {
  .booking-layout:has(.booking-tools table) { grid-template-columns: minmax(0,1fr); }
  .booking-layout:has(.booking-tools table) .booking-toolbox { grid-row: 2; }
}
@media (max-width: 560px) {
  .counselor-workspace :is(#client-admin,#detail,#resources-pane) { padding: .8rem; }
  .booking-views { width: 100%; }
  .booking-views button { flex: 1; }
}

/* Imported schedules use the same quiet, compact treatment as appointment details. */
.booking-imported-person{padding:14px 0;border-top:1px solid #e5dfd7;min-width:0}
.booking-imported-person h3{font-size:16px;margin:0 0 4px;color:#51405c}
.booking-imported-person p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.booking-imported-person dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 12px;font-size:13px;line-height:1.5}
.booking-imported-person dt{font-weight:600}.booking-imported-person dd{margin:0}
@media(max-width:400px){.booking-imported-person dl{grid-template-columns:76px minmax(0,1fr);gap:8px}}

.booking-delivery-channel{padding:.6rem 0;border-top:1px solid var(--rule);margin:.5rem 0;background:transparent;border-radius:0}
.booking-delivery-channel h3{font-family:inherit;font-weight:600;font-size:.88rem;line-height:1.4;margin:0}
.booking-delivery-channel p,.booking-delivery>div>p{font-size:.78rem;color:var(--muted)}
.booking-delivery-channel dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem .7rem;font-size:.8rem}
.booking-delivery-channel dd{margin:0;font-variant-numeric:tabular-nums}

/* Calm visual hierarchy inspired by the reference, using LOL's own palette. */
.counselor-workspace > header { background: #f6f3ee; }
.counselor-workspace #workspace-nav { background: #eee8ef; border-color: #ded4e2; border-radius: 12px; padding: 4px; gap: 4px; }
.counselor-workspace #workspace-nav button { border-radius: 8px; }
.booking-agenda,.booking-toolbox { border-radius: 16px; box-shadow: 0 4px 18px #51405c06; }
.booking-heading { margin-block: 1.3rem 1rem; }
.booking-heading h2 { color: #51405c; font-weight: 500; }
.booking-next > summary { background: #f4edf6; box-shadow: inset 3px 0 #735779; padding-block: .85rem; }
.booking-next-label { letter-spacing: .03em; font-weight: 650; }
.booking-workspace button { border-radius: 10px; }
.booking-tools > details > p { color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) {
  .booking-workspace button,.counselor-workspace #workspace-nav button { min-height: 44px; }
  .booking-toolbox > summary,.booking-tools > details > summary { min-height: 44px; }
  .booking-heading h2 { font-size: 1.5rem; }
  .booking-next > summary { padding-block: .75rem; }
}

body.counselor-workspace #resources-pane:has(.guide-reader){max-width:1100px;padding:0;border:0;background:transparent;box-shadow:none}
body.counselor-workspace #resources-pane .guide-reader>h2{font:500 clamp(26px,3vw,36px)/1.2 Georgia,serif;color:#51405c;margin:.5rem 0 2rem}
body.counselor-workspace #resources-pane .guide-article h2{font:500 25px/1.35 Georgia,serif;color:#51405c;margin:2.4rem 0 1rem;padding-top:1.5rem}
body.counselor-workspace #resources-pane .guide-contents nav{background:transparent;border:0;box-shadow:none;padding:0 .5rem 0 0}
@media(max-width:799px){body.counselor-workspace #resources-pane .guide-article h2{font-size:23px}}

#quick-access-pane{padding:clamp(12px,2vw,24px)}
#quick-access-pane>h2{font:500 clamp(26px,3vw,34px)/1.2 Georgia,serif;color:#51405c;margin:.5rem 0}
.quick-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.quick-access-grid article{background:#fffefd;border:1px solid #ddd3df;border-radius:16px;padding:22px}
.quick-access-grid h3{font-size:17px;color:#51405c;margin:0 0 10px}
.quick-access-grid p{color:#625c65;line-height:1.6}
.quick-access-grid a{display:inline-block;color:#51405c;font-weight:650;min-height:44px;padding:12px 0;text-underline-offset:4px;overflow-wrap:anywhere}
@media(max-width:640px){.quick-access-grid{grid-template-columns:1fr;gap:12px}.quick-access-grid article{padding:18px}}
