/* Customer workspace */
:root { --sheet-rule:#d8d8ce; --sheet-muted:#565451; --sheet-canvas:#f8f8f3; --page-title:clamp(2rem,4vw,3.35rem); }
main:has(> .customer-workspace) { max-width:78rem; }
.workspace-heading,.workspace-actions,.workspace-links,.workspace-section-title { display:flex; align-items:center; flex-wrap:wrap; }
.workspace-heading { justify-content:space-between; gap:.85rem 1.5rem; }
.workspace-heading h1 { margin:0; color:var(--brand); font-size:clamp(2.25rem,4.2vw,3.65rem); line-height:1.16; letter-spacing:-.065em; }
.workspace-actions { gap:.45rem; }
.workspace-actions button,.my-request-actions button { min-height:44px; padding:.48rem .9rem; border-radius:.45rem; }
.workspace-actions .primary,.my-request-actions .primary { color:white; background:var(--brand); border-color:var(--brand); }
.workspace-links { gap:.45rem 1.35rem; padding:.7rem 0 .35rem; border-bottom:2px solid var(--brand); }
.workspace-links > :is(a,button) { display:inline-flex; min-height:44px; gap:.35rem; align-items:center; padding:.25rem 0; margin:0; border:0; background:transparent; color:var(--ink); font-size:.97rem; font-weight:600; text-decoration:none; }
.workspace-links > :is(a,button):hover { color:var(--brand); text-decoration:underline; text-underline-offset:.3em; }
.workspace-columns { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:clamp(1.5rem,3.3vw,3rem); align-items:start; margin-block:1.85rem; }
.workspace-columns > * { min-width:0; scroll-margin-top:1rem; }
.workspace-section-title { justify-content:space-between; min-height:44px; margin-bottom:.65rem; }
.workspace-section-title h2,.workspace-columns .studio-side-heading h2 { margin:0; font-size:1.4rem; }
.workspace-section-title span { color:var(--sheet-muted); font-weight:600; font-variant-numeric:tabular-nums; }
.my-request { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.85rem; border-top:1px solid var(--sheet-rule); padding:1rem .1rem; }
.my-request:has(.my-request-photo) { grid-template-columns:auto minmax(0,1fr) auto; }
.my-request:last-child { border-bottom:1px solid var(--sheet-rule); }
.my-request-photo { width:4rem; height:4rem; object-fit:cover; border:1px solid var(--sheet-rule); border-radius:.45rem; }
.my-request-summary h3 { margin:.22rem 0 0; font-size:1.25rem; color:var(--ink); }
.my-request-summary p,.agenda-studio { margin:.2rem 0 0; color:var(--sheet-muted); font-size:.95rem; }
.request-state { display:inline-block; padding:.12rem .5rem; border-radius:.25rem; background:var(--tint); color:#3d5537; font-size:.875rem; font-weight:600; }
.my-request-actions { display:flex; flex-direction:column; align-items:stretch; gap:.3rem; }
.my-request-actions button { font-size:.93rem; }
.my-request-actions button:last-child { background:transparent; border-color:transparent; }
.workspace-empty,.room-list > p,.schedule-index section > p { margin:.6rem 0; padding:1.25rem 1rem; border-block:1px solid var(--sheet-rule); color:var(--sheet-muted); }
.customer-workspace .desk-schedule .agenda-entry,.schedule-index .agenda-entry { background:#f2f4ea; border:1px solid #d4dac8; border-radius:.65rem; padding:1rem; margin:.5rem 0; }
:is(.customer-workspace,.schedule-index) .agenda-date { background:var(--surface); }
:is(.customer-workspace,.schedule-index) .agenda-actions .soft { background:white; color:var(--ink); }
.schedule-index { max-width:54rem; margin-inline:auto; }
main:has(> .schedule-index) { max-width:60rem; }

/* Shared interior pages */
main#app:has(> h1),main#app:has(> .workshop-detail) { max-width:68rem; }
#app > h1,.schedule-index h1,.enroll-page h1,.profile-editor h1,.join-start h1,.finder-start h1 { font-size:var(--page-title); line-height:1.12; letter-spacing:-.055em; color:var(--ink); }
#app > h1,.schedule-index h1 { padding-bottom:1rem; border-bottom:2px solid var(--brand); }
#app > .back,#app > .back-link,.op-back { margin-bottom:.45rem; padding-inline:0; color:var(--sheet-muted); font-weight:600; font-size:.94rem; }
#app > h2,.schedule-index h2 { margin-block:1.7rem .7rem; font-size:clamp(1.3rem,2.5vw,1.65rem); }
#app > form:not(.chat-compose),#app > .card { border-color:var(--sheet-rule); border-radius:.6rem; }
:where(#app,.help-layout,dialog) :is(input,textarea,select):not([type="checkbox"],[type="radio"],[type="file"]) { border-color:#89877e; }
:where(main,dialog) textarea { line-height:1.55; }
:where(main,dialog) select { appearance:none; padding-right:2.4rem; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 19px) 52%,calc(100% - 14px) 52%; background-size:5px 5px; background-repeat:no-repeat; }
@media (forced-colors:active) { :where(main,dialog) select { appearance:auto; } }

/* Sign-in and service information */
main:has(> .guest-access) { max-width:68rem; }
.join-start.guest-access { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); max-width:none; gap:0; padding:0; border:1px solid var(--sheet-rule); border-radius:.75rem; overflow:hidden; background:var(--surface); }
.login-visual { background:#e5e8d8 url('/craft-studio.jpg') 43% center/cover no-repeat; }
.login-content { min-width:0; padding:clamp(1.2rem,4vw,3rem); }
.login-content h1 { margin:0 0 1rem; }
.login-content #emailLogin { padding:0; margin:0; border:0; }
.login-methods { margin-top:1.1rem; border-block:1px solid var(--sheet-rule); }
.login-methods summary { padding:.75rem 0; cursor:pointer; font-weight:650; }
.login-methods .social-options { margin-top:.45rem; }
.guest-access .join-roles { gap:.55rem; margin-top:1.15rem; }
.guest-access .role-choice { padding:.8rem .9rem; min-width:0; }
body > header.service-mast { background:var(--surface); border-bottom:1px solid var(--sheet-rule); box-shadow:none; justify-content:space-between; }
body > header.service-mast .wordmark-image { width:auto; height:3.25rem; object-fit:contain; }
main.help-layout:not(#app) { display:grid; grid-template-columns:12.5rem minmax(0,43rem); justify-content:center; gap:clamp(1.5rem,5vw,5rem); max-width:74rem; align-items:start; }
.help-nav { display:grid; gap:.15rem; border-top:2px solid var(--brand); padding-top:.6rem; }
.help-nav a { padding:.65rem .7rem; color:var(--ink); font-weight:600; border-radius:.3rem; text-decoration:none; }
.help-nav a:hover,.help-nav a[aria-current] { background:var(--tint); color:var(--brand); }
.help-nav a[aria-current] { box-shadow:inset 3px 0 var(--brand); }
.help-document { min-width:0; }
.help-document h1 { margin:0 0 1.4rem; padding-bottom:1rem; border-bottom:2px solid var(--brand); font-size:var(--page-title); line-height:1.15; letter-spacing:-.055em; }
.help-document h2 { margin:2rem 0 .6rem; font-size:1.4rem; }
.help-document :is(p,li) { line-height:1.78; }
.help-document li + li { margin-top:.4rem; }
.demo-intro { padding:clamp(1.2rem,3vw,2rem); background:var(--tint); border-radius:.6rem; margin:1rem 0 1.8rem; }
.demo-intro h1 { font-size:var(--page-title); line-height:1.12; margin:0; }
.demo-intro p { margin:.65rem 0; }

main#app:has(> :is(#booking,#reschedule)) { max-width:54rem; }
dialog[aria-labelledby] { border-width:1px; border-radius:.8rem; box-shadow:0 1rem 4rem rgb(35 24 30 / 15%); }
dialog[aria-labelledby] h2 { color:var(--brand); line-height:1.25; }
#app .room-list { display:grid; gap:0; border-top:2px solid var(--brand); }
#app .room-entry { border:0; border-bottom:1px solid var(--sheet-rule); border-radius:0; padding:1rem .8rem; }
.room-entry:focus-visible { z-index:1; }
.chat-room .chat-heading { background:var(--surface); border-bottom:1px solid var(--sheet-rule); }
.chat-room .chat-compose { border-top:1px solid var(--sheet-rule); }
.op-menu a[aria-current] { background:var(--tint); color:var(--brand); box-shadow:inset 3px 0 var(--brand); }
.op-menu a[aria-current] strong { color:var(--brand); }
.op-list-head { border-bottom:2px solid var(--brand); }

@media (max-width:48rem) {
  .workspace-columns { grid-template-columns:minmax(0,1fr); gap:1.4rem; margin-block:1.2rem; }
  .workspace-heading { align-items:flex-start; }
  .join-start.guest-access { grid-template-columns:minmax(0,1fr); max-width:34rem; }
  .login-visual { display:none; }
  main.help-layout:not(#app) { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
  .help-nav { display:flex; flex-wrap:wrap; gap:.2rem; border-top:0; border-bottom:1px solid var(--sheet-rule); padding:0 0 .7rem; }
  .help-nav a { padding:.45rem .65rem; font-size:.95rem; }
  .help-nav a[aria-current] { box-shadow:inset 0 -2px var(--brand); }
}
@media (max-width:32rem) {
  .workspace-heading { display:grid; gap:.8rem; }
  .workspace-heading h1 { font-size:2.12rem; }
  .workspace-links { gap:0 .9rem; padding-block:.5rem .2rem; }
  .workspace-links > :is(a,button) { font-size:.91rem; }
  .my-request { grid-template-columns:minmax(0,1fr); align-items:start; }
  .my-request:has(.my-request-photo) { grid-template-columns:3.5rem minmax(0,1fr); }
  .my-request-photo { width:3.5rem; height:3.5rem; }
  .my-request-actions { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; }
  .my-request-actions button { padding:.4rem .65rem; }
  .workspace-section-title h2,.workspace-columns .studio-side-heading h2 { font-size:1.24rem; }
  .workspace-columns .agenda-actions { flex-wrap:wrap; gap:.35rem; }
  .agenda-actions button { min-width:0; }
  .room-heading { flex-wrap:wrap; }
  .chat-heading { gap:.4rem; }
}

/* Customer request form */
main#app:has(> .request-composer,> .studio-profile) { max-width:76rem; }
.request-composer { display:grid; grid-template-columns:minmax(12.5rem,.43fr) minmax(0,1fr); gap:clamp(1.5rem,5vw,5rem); align-items:start; margin-top:.7rem; }
.composer-index { position:sticky; top:1.5rem; }
.composer-index h1 { margin:0; color:var(--brand); font-size:clamp(1.85rem,3.1vw,2.65rem); line-height:1.2; letter-spacing:-.06em; }
.composer-index nav { display:grid; margin-top:1.3rem; border-block:1px solid var(--sheet-rule); }
.composer-index a { display:flex; align-items:center; min-height:44px; padding:.45rem .15rem; color:var(--ink); text-decoration:none; font-weight:600; }
.composer-index a:hover { text-decoration:underline; text-underline-offset:.25em; }
#request.composer-form { padding:0; margin:0; border:0; border-radius:0; max-width:none; background:transparent; display:grid; gap:1.25rem; }
.composer-part { min-width:0; background:var(--surface); border:1px solid var(--sheet-rule); border-radius:.55rem; padding:clamp(1rem,2.7vw,1.75rem); scroll-margin-top:1rem; }
.composer-part:target { border-color:var(--plum); }
.composer-part > h2 { margin:0 0 1.05rem; padding:0 0 .65rem; border-bottom:1px solid var(--sheet-rule); font-size:1.38rem; line-height:1.25; letter-spacing:-.035em; }
.composer-fields { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:.85rem 1rem; }
.composer-fields label,.composer-participation > label:first-child { margin:0 0 .35rem; }
.composer-fields label small,.composer-options summary small { display:inline-block; margin-left:.18rem; color:var(--sheet-muted); font-size:.875rem; font-weight:500; }
.composer-form input:not([type]),.composer-form input[type=text],.composer-form select,.composer-form textarea { font-size:1rem; line-height:1.45; padding-block:.65rem; border-color:#aba9a0; }
.composer-form input[type=text],.composer-form select { min-height:44px; }
.composer-form textarea { display:block; min-height:4.45rem; resize:vertical; }
.composer-participation { margin-block:1.15rem .65rem; }
.composer-check { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; margin:.25rem 0 0; color:var(--sheet-muted); font-size:1rem; font-weight:500; cursor:pointer; }
.composer-check input { margin:0; }
.composer-options { margin:0; padding:0 .8rem; background:#f0f3e8; border-radius:.4rem; }
.composer-options summary { padding:.7rem 0; min-height:44px; color:var(--brand); cursor:pointer; font-weight:650; }
.composer-options[open] { padding-bottom:1rem; }
.composer-options .craft-fields { margin:.5rem 0 0; }
.composer-options .craft-question-grid { gap:.25rem .75rem; }
.composer-options label { margin-top:.75rem; }
.composer-part .visit-regions { margin:0; padding:0; border:0; }
.composer-part .visit-regions legend { padding:0; }
.composer-part .visit-regions label[for=visitProvince] { margin-top:.4rem; }
.composer-sharing { margin-top:1rem; padding-top:.75rem; border-top:1px solid var(--sheet-rule); }
.composer-sharing > label { margin-top:0; }
.composer-part .audience { padding:.7rem .85rem; border:0; border-left:3px solid var(--plum); border-radius:.2rem; background:var(--tint); }
.composer-part .audience p,.composer-part > .meta { margin:.2rem 0; font-size:.95rem; }
.composer-part .request-photo { margin:0; padding:.85rem 1rem; background:#f5f4ee; border-radius:.4rem; }
.composer-part .request-photo legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.composer-part .photo-actions { gap:.55rem; }
.composer-part .photo-actions :is(label,button) { min-height:44px; }
.composer-submit { display:flex; justify-content:flex-end; }
.composer-submit button { margin:0; padding-inline:1.5rem; background:var(--brand); }

/* Published workshop profile */
.studio-profile { min-width:0; margin-top:.6rem; }
.studio-profile-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem 2rem; align-items:center; background:#eaf0da; border-top:3px solid var(--brand); padding:clamp(1.1rem,3.3vw,2.15rem); }
.studio-profile-head .shop-summary { gap:.65rem; }
.studio-profile-head .profile-byline { gap:.75rem; }
.studio-profile-head .profile-byline h1 { font-size:clamp(1.85rem,3.5vw,3rem); letter-spacing:-.055em; line-height:1.15; }
.studio-profile-head .profile-byline img { width:3.35rem; height:3.35rem; background:#fff; }
.studio-profile-head .shop-summary > p { margin:0; font-size:1rem; color:var(--ink); }
.studio-profile-head .shop-summary .row { gap:.3rem; }
.studio-profile-head .tag { color:#384831; background:#f8faf2; border:1px solid #c8d2b8; border-radius:.3rem; font-size:.9rem; font-weight:600; padding:.12rem .46rem; }
.studio-profile-actions { display:flex; flex-direction:column; gap:.4rem; align-items:stretch; }
.studio-profile-actions button { min-height:44px; border-radius:.4rem; font-size:1rem; padding:.5rem .95rem; margin:0; }
.studio-profile-facts { display:flex; flex-wrap:wrap; align-items:start; column-gap:clamp(2rem,6vw,5rem); row-gap:.85rem; padding:1.2rem clamp(1.1rem,3.3vw,2.15rem); background:var(--surface); border-bottom:1px solid var(--sheet-rule); }
.studio-profile-facts b { display:block; font-size:.925rem; font-weight:600; color:var(--sheet-muted); }
.studio-profile-facts p { margin:.25rem 0 0; font-size:1.05rem; color:var(--ink); white-space:pre-line; }
.studio-participation p { color:var(--brand); font-weight:650; }
.studio-description { flex:1 1 18rem; min-width:0; }
.studio-albums { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:clamp(1rem,2.4vw,2rem); margin-top:1.7rem; }
.studio-album:only-child { grid-column:1/-1; max-width:44rem; }
.album-heading { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; margin-bottom:.65rem; padding-bottom:.45rem; border-bottom:1px solid var(--sheet-rule); }
.album-heading h2 { margin:0; font-size:clamp(1.2rem,2vw,1.5rem); line-height:1.3; }
.album-heading span { font-size:.925rem; color:var(--sheet-muted); }
.album-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.album-images .album-photo { display:block; width:100%; padding:0; margin:0; min-width:0; min-height:0; height:auto; aspect-ratio:4/3; overflow:hidden; background:#fff; border:1px solid var(--sheet-rule); border-radius:.35rem; cursor:zoom-in; }
.album-images .album-photo:first-child { grid-column:1/-1; aspect-ratio:1.7; }
.album-images .album-photo img { display:block; width:100%; height:100%; max-height:none; border-radius:0; object-fit:contain; }
.studio-album.studio .album-photo img { object-fit:cover; }
.album-images .album-photo:hover { border-color:var(--brand); }
.studio-report { margin-top:1rem; text-align:right; }
.studio-report button { font-size:.93rem; color:var(--sheet-muted); background:transparent; border:0; }
dialog.studio-photo-dialog { width:max-content; max-width:calc(100vw - 2rem); padding:.75rem; border-color:var(--sheet-rule); }
.studio-photo-dialog > div { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.55rem; }
.studio-photo-dialog h2 { margin:0; font-size:1.1rem; }
.studio-photo-dialog form { margin:0; }
.studio-photo-dialog button { margin:0; min-height:44px; padding:.3rem .8rem; }
.studio-photo-dialog > img { display:block; width:auto; min-width:min(14rem,65vw); max-width:100%; max-height:72dvh; object-fit:contain; }

@media(max-width:51rem) {
  .request-composer { grid-template-columns:minmax(0,1fr); gap:1rem; }
  .composer-index { position:static; }
  .composer-index nav { display:flex; flex-wrap:wrap; gap:.2rem 1rem; margin-top:.6rem; border-top:0; }
  .composer-index a { font-size:.95rem; }
}
@media(max-width:39rem) {
  .composer-fields,.studio-profile-head,.studio-albums { grid-template-columns:minmax(0,1fr); }
  .studio-profile-actions { flex-direction:row; flex-wrap:wrap; }
  .studio-profile-actions button { flex:1 1 auto; }
  .studio-albums { gap:1.35rem; margin-top:1.25rem; }
  .composer-submit button { width:100%; }
}

/* Workshops and class enrollment */
.class-title,.class-filter,.class-tile-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.65rem; }
.class-title h1,.class-page h1 { margin:0; color:var(--brand); font-size:var(--page-title); letter-spacing:-.055em; line-height:1.2; }
.class-cta { display:inline-flex; align-items:center; min-height:44px; padding:.5rem .9rem; border-radius:.45rem; color:white; background:var(--brand); font-weight:650; text-decoration:none; }
.class-tabs { display:flex; gap:1.3rem; border-bottom:1px solid var(--sheet-rule); margin-top:1rem; }
.class-tabs a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; color:var(--sheet-muted); }
.class-tabs a[aria-current] { border-bottom:3px solid var(--brand); color:var(--brand); font-weight:700; }
.class-filter { justify-content:flex-start; margin:1.2rem 0; }
.class-filter label { margin:0; }
.class-filter select { width:auto; max-width:100%; min-height:44px; }
.class-filter span { margin-left:auto; color:var(--sheet-muted); font-size:.95rem; }
.class-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr)); gap:1rem; }
.class-tile { display:block; background:white; border:1px solid var(--sheet-rule); border-radius:.65rem; overflow:hidden; text-decoration:none; color:var(--ink); }
.class-tile:hover { border-color:var(--brand); }
.class-tile > img { display:block; width:100%; aspect-ratio:2.1; object-fit:cover; border-radius:0; }
.class-tile > div { padding:.85rem 1rem; }
.class-meta,.class-tile p { margin:0; font-size:.95rem; color:var(--sheet-muted); }
.class-tile :is(h2,h3),.class-page h2 { margin:.3rem 0 .55rem; font-size:1.3rem; line-height:1.35; }
.class-tile-foot { border-top:1px solid var(--sheet-rule); margin-top:.75rem; padding-top:.65rem; }
.class-tile-foot span { font-size:.95rem; color:#385236; }
.class-page,#newCraftClass { max-width:44rem; }
.class-page { margin:1rem auto; }
.class-page dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin:1.2rem 0 1.5rem; padding:1rem; background:var(--tint); }
.class-page dt { color:var(--sheet-muted); font-size:.925rem; }
.class-page dd { margin:0; font-weight:600; }
.class-description { white-space:pre-line; }
.class-roster,.class-enrollment { margin-top:1.5rem; padding:1rem; border:1px solid var(--sheet-rule); border-radius:.55rem; background:white; }
.class-roster ul { padding-left:1.35rem; }
.class-roster li span { margin-left:.8rem; color:var(--sheet-muted); }
.class-enrollment small { display:block; margin-top:.3rem; }
.class-enrollment details { margin-top:.6rem; }
#newCraftClass .composer-fields { margin-top:1rem; }
main#app:has(> #newCraftClass,> .class-page) { max-width:50rem; }
@media(max-width:34rem) {
  .class-page dl { grid-template-columns:minmax(0,1fr); }
  .class-filter { gap:.45rem; }
}

.draft-status{margin:0 0 1rem;color:#5d4d51;font-size:.94rem}
.draft-list{margin:1.25rem 0 2rem;border-block:1px solid #d1cbc5;padding:1rem 0}
.draft-list h2{margin:0 0 .65rem;font-size:1.2rem}
.draft-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.draft-row+.draft-row{border-top:1px solid #e1dcd5}
.draft-row strong,.draft-row small{display:block;overflow-wrap:anywhere}
.draft-row small{color:#605358;font-size:.9rem}
.draft-row a{flex:none;padding:.5rem;color:#431826;font-weight:650}
.request-share-review{box-sizing:border-box;max-width:min(31rem,calc(100% - 2rem));max-height:85dvh;overflow:auto;padding:clamp(1.2rem,4vw,2rem);color:#2c2225;border:1px solid #cdc7c3;border-radius:.9rem}
.request-share-review h2{font-size:1.4rem;margin:0 0 1rem}
.request-share-review dl{display:grid;gap:.2rem;margin:1rem 0 1.5rem}
.request-share-review dt{color:#5b4e51;font-size:.9rem}
.request-share-review dd{margin:0 0 .6rem;overflow-wrap:anywhere}
.request-share-review form{display:flex;flex-wrap:wrap;gap:.5rem}

.work-agreement{max-width:48rem;margin:1.5rem auto 3rem}
.work-agreement header{position:static;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;background:none;padding:0;border:0}
.work-agreement header h1{margin:0}
.agreement-context{color:#5a474e;margin:.6rem 0 2rem}
.agreement-terms{margin:1rem 0 1.5rem}
.agreement-terms>div{display:grid;grid-template-columns:minmax(9rem,35%) 1fr;gap:1rem;padding:.8rem .4rem;border-bottom:1px solid #d8d1c9}
.agreement-terms dt,.agreement-terms small{color:#5b4c50}
.agreement-terms dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.agreement-terms dd>*{display:block}
.agreement-terms dd small{font-size:.86rem}
.agreement-terms dd span+small{margin-top:.5rem}
.agreement-terms .changed{background:#f2f3e8}
.agreement-form{display:grid;gap:1rem}
.agreement-form label{display:block;margin-bottom:.35rem}
.agreement-form input,.agreement-form textarea{width:100%;box-sizing:border-box}
.agreement-original{margin:1.2rem 0;padding:1rem 0;border-block:1px solid #d8d1c9}
.agreement-original summary{cursor:pointer;font-weight:600}
.agreement-original form{margin-top:1rem}
.my-request-summary .audience-state{font-weight:650;color:#431826}
@media(max-width:540px){.agreement-terms>div{grid-template-columns:1fr;gap:.25rem}.work-agreement{margin:1rem 0 2rem}}

.class-photo-fields{margin:1.5rem 0;padding:1rem;border:1px solid #c9c9bd;border-radius:.75rem;min-width:0}
.class-photo-fields legend{padding:0 .35rem;font-weight:700}
.class-photo-fields small{font-size:.84rem;color:#65575d;font-weight:400}
.class-photo-fields input[type=file]{max-width:100%}
.class-photo-remove{display:flex;align-items:center;gap:.5rem}
.class-hero-photo{width:100%;max-height:28rem;object-fit:contain;background:#f6f5ef;border-radius:.75rem}
.class-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem}
.class-examples img{width:100%;height:auto;max-height:22rem;object-fit:contain;background:#f6f5ef;border-radius:.6rem}
.class-photo-edit{margin-block:1.5rem}
.visit-alert-detail{display:block;margin-top:.5rem;line-height:1.6;font-weight:400}

.op-usage-link {display:inline-flex;align-items:center;gap:.5rem;margin:.15rem 0 1rem;font-weight:650;color:#462132}
.usage-desk {max-width:54rem;margin-inline:auto}
.usage-range,.usage-note {color:#655962;font-size:.95rem}
.usage-table {width:100%;border-collapse:collapse;margin:1.25rem 0;background:#fff}
.usage-table caption {text-align:left;font-weight:600;color:#655962;padding-block:.65rem}
.usage-table th,.usage-table td {padding:1rem .85rem;text-align:right;border-bottom:1px solid #d6d4c9;font-variant-numeric:tabular-nums}
.usage-table tr>:first-child {text-align:left}
.usage-table thead {background:#efefe6;color:#412334}
.usage-table td {font-weight:650;color:#42182a;white-space:nowrap}
.usage-note {line-height:1.65}
.match-count {margin:1rem 0;font-weight:650;color:#42182a}
.match-count:empty {display:none}
.class-filter>div {display:grid;gap:.3rem}
#findShops .browse-filters,#findShops .browse-filters:has(#workModeFilter) {grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));align-items:end}
@media(max-width:40rem){
  .usage-table th,.usage-table td {padding:.85rem .5rem}
  .class-filter {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .class-filter select {width:100%}
  #findShops .browse-filters,#findShops .browse-filters:has(#workModeFilter) {grid-template-columns:1fr}
}

.class-removal { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
#classLog .chat-line { width: fit-content; max-width: 85%; }
#classLog .outgoing { margin-inline-start: auto; }
