@font-face {
  font-family: "Pretendard";
  src: url("/pretendard-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("/pretendard-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("/pretendard-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Catalog Sans";
  src: url("/catalog-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Catalog Sans";
  src: url("/catalog-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Catalog Sans";
  src: url("/catalog-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand: #431826;
  --pistachio: #e5eccb;
  --ink: #291e23;
  --muted: #62565a;
  --action: var(--brand);
  --action-hover: #63273c;
  --surface: #ffffff;
  --canvas: #fafbf6;
  --line: #d8dcd0;
  --outline: #777367;
  --tint: #eff3e4;
  --plum: #6a3046;
  --plum-tint: #f5e9ec;
  --success: #345136;
  --danger: #9b2d39;
  --sans: "Catalog Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page-width: 77rem;
  --gutter: clamp(1rem,4vw,3rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  letter-spacing: -.014em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
header, main, footer { padding: 1.15rem var(--gutter); }
main, footer { max-width: var(--page-width); margin-inline: auto; }
main:not(#app) { max-width: 52rem; }
main { padding-block: clamp(1.5rem, 4vw, 3rem); }
body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding-inline: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line);
  background: var(--pistachio);
  color: var(--brand);
}
.wordmark {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  min-height: 44px; text-decoration: none;
}
.wordmark-image {
  display: block; width: 6rem; max-width: 100%; height: auto; border-radius: 0;
}
.operator-details { display: block; flex-basis: 100%; padding-top: .35rem; font-size: .88rem; }
.guest-nav { display: none; align-items: center; gap: clamp(.8rem,3vw,2rem); }
body > header:has(#account:empty) .guest-nav { display: flex; }
.guest-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 610; font-size: .96rem; text-decoration: none; color: var(--ink); }
.guest-nav .login-nav { border: 1px solid var(--line); border-radius: 99px; padding: .38rem 1.2rem; color: var(--brand); }
#account:empty { display: none; }
footer { padding-block: 1.3rem 2rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; }
small, .meta, footer, .room-context { font-size: .94rem; color: var(--muted); }
header small { color: var(--muted); }
h1, h2, h3 { color: var(--brand); line-height: 1.3; letter-spacing: -.012em; }
h1 {
  font: 730 clamp(1.95rem,3.65vw,3rem)/1.21 var(--sans);
  color: var(--ink); letter-spacing: -.055em; margin: 0 0 1.25rem;
}
h2 { color: var(--ink); font-weight: 705; letter-spacing: -.044em; font-size: clamp(1.4rem, 2.75vw, 1.9rem); margin: 2rem 0 .75rem; }
h3, .card h3 { font-size: 1.24rem; font-weight: 680; letter-spacing: -.031em; margin: .55rem 0; }
p { white-space: pre-line; margin: .6em 0 1em; }
main:not(#app) p, .card > p, form > p, .offer-terms dd { max-width: 36em; }
.request-title { margin-bottom: .35rem; }
.request-title + .meta { margin: 0 0 1.25rem; }
a, .visit a { color: var(--action); text-decoration-thickness: .09em; text-underline-offset: .2em; }
header a { color: var(--action); }
footer a { padding-block: .35rem; color: var(--muted); text-decoration: none; }
.card, form, .hero {
  min-width: 0;
  margin: .85rem 0;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.card > :first-child, form > :first-child, .hero > h1 { margin-top: 0; }
.card > :last-child, form > :last-child, .hero > :last-child { margin-bottom: 0; }
form .card, .card form:not(.chat-compose) { box-shadow: none; }
.card > h2 { margin-block: 0 .65rem; }
.card b + p, .details p { margin: .1rem 0 1rem; }
.row { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.split { justify-content: space-between; }

button, .join-link, .photo-picker {
  min-height: 3rem;
  max-width: 100%;
  padding: .55rem 1.05rem;
  border: 1px solid var(--action);
  border-radius: .65rem;
  background: var(--action);
  color: var(--surface);
  font: inherit; font-size: 1rem; font-weight: 640; line-height: 1.45;
  text-align: center; cursor: pointer; overflow-wrap: anywhere;
}
.soft, .photo-picker.soft {
  background: var(--surface); border-color: var(--outline); color: var(--brand);
}
.join-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.back { padding-inline: 0; background: transparent; border-color: transparent; color: var(--action); text-decoration: underline; text-underline-offset: .2em; }
button:disabled, .photo-picker:has(input:disabled) { border-color: var(--outline); color: var(--muted); background: #e5e6df; cursor: default; }
:focus-visible, .photo-picker:focus-within {
  outline: 3px solid var(--brand); outline-offset: 3px; box-shadow: 0 0 0 3px var(--surface);
}
.hero :focus-visible {
  outline-color: var(--pistachio); box-shadow: 0 0 0 3px var(--brand);
}
@media (hover: hover) {
  button:not(:disabled):not([class]):hover, button.primary:not(:disabled):hover,
  button[class=""]:hover:not(:disabled), .join-link:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--surface); }
  .soft:not(:disabled):not([aria-pressed=true]):hover, .room-entry:hover { background: var(--tint); }
  .back:hover, main a:not(.join-link):hover, footer a:hover { text-decoration-thickness: .16em; }
}
.card > button + button, dialog form button + button { margin-inline-start: .35rem; }
.card-actions { border-top: 1px solid var(--line); padding-top: .95rem; margin-top: 1rem; }
.card-actions [data-act="safety"] { color: var(--danger); }
button[data-act="removeProject"], button[data-act^="removeReview:"] { color: var(--surface); background: var(--danger); border-color: var(--danger); }
#deleteForm button, button[data-act="blockAuthor"] { color: var(--surface); background: var(--danger); border-color: var(--danger); }
.tag { display: inline-block; width: fit-content; max-width: 100%; padding: .15rem .6rem; font-size: 1rem; font-weight: 650; border-radius: .25rem; background: var(--tint); color: var(--brand); }
.tag.completed { background: #e7ebdf; color: var(--success); }
.tag.completed::before { content: ""; display: inline-block; width: .57em; height: .29em; margin: 0 .43em .2em .04em; border: solid currentColor; border-width: 0 0 .14em .14em; transform: rotate(-45deg); }
.tag.pending { color: #694821; background: #f7e8cc; }
details:not(.bubble-menu, .account-menu) > summary { min-height: 2.8rem; padding-block: .45rem; font-weight: 700; cursor: pointer; color: var(--brand); }
details > summary::marker { color: var(--action); }

.hero, .shop-home { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: var(--surface); padding: clamp(1.25rem, 4vw, 2.5rem); border-color: var(--brand); }
.hero h1, .shop-home h1 { color: var(--surface); margin: 0 0 1rem; }
.hero p, .shop-home p { color: var(--surface); margin: 0 0 1.25rem; }
.hero h1, .hero p { max-width: 65%; }
.hero button, .shop-home button, .hero .login { background: var(--surface); border-color: var(--surface); color: var(--brand); }
.samples { position: absolute; z-index: -1; inset: 0 2% 0 auto; width: 29%; pointer-events: none; perspective: 680px; }
.samples i { position: absolute; width: 80%; height: 33%; left: 8%; top: 40%; border-radius: 6px; transform: rotateX(47deg) rotateZ(-29deg) skewX(5deg); }
.samples .wood { top: 54%; background: url(walnut.jpg) center/cover; border: 1px solid #ac886b; box-shadow: 2px 4px #72513b, 4px 8px #513726; }
.samples .steel { background: linear-gradient(115deg,#9daab6,#e7edf1 45%,#9aa6af); border: 1px solid #f3f5f7; box-shadow: 2px 4px #77838e; }
.samples .clear { top: 24%; background: linear-gradient(130deg,#fffefa35,#fffefa0a 40%,#d8f5ff42); border: 2px solid #d3e5ec; }
.home-intro { margin: 0 0 1rem; }
.home-intro h1 { margin-bottom: .75rem; }
.home-intro p { max-width: 34em; }
.home-menu { align-items: baseline; column-gap: 1.3rem; row-gap: .15rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); margin: .75rem 0 1.5rem; }
.card-actions .soft {
  background: transparent; color: var(--action); border-color: transparent;
  padding-inline: .15rem; text-decoration: underline; text-underline-offset: .22em;
}
.card-actions { column-gap: 1rem; }
.card-actions [data-act="safety"] { margin-inline-start: auto; }
.home-menu .unread-count { display: inline-block; text-decoration: none; }

.roles { width: fit-content; padding: .25rem; border: 1px solid var(--outline); border-radius: .65rem; background: var(--surface); gap: .25rem; margin-bottom: 1rem; }
.roles button { border-color: transparent; }
.roles [aria-pressed=true] { background: var(--brand); color: var(--surface); border-color: var(--brand); }
.join-start { max-width: 42rem; margin-inline: auto; padding-block: clamp(.25rem,2vw,1.3rem); }
.join-roles { display: grid; gap: .75rem; }
.role-choice {
  --role-color: var(--brand);
  position: relative; display: grid; gap: .4rem; width: 100%; min-width: 0;
  padding: 1.35rem 1.5rem 1.35rem 2rem; text-align: start; font: inherit;
  border: 1px solid var(--line); border-radius: .6rem; color: var(--ink);
  background: var(--tint); text-decoration: none;
}
.role-choice.workshop { --role-color: var(--plum); background: var(--plum-tint); border-color: var(--line); }
.role-choice::before {
  content: ""; position: absolute; inset: 1.45rem auto 1.45rem .85rem;
  width: 3px; background: var(--role-color); border-radius: 3px;
}
.role-choice strong { width: fit-content; color: var(--role-color); font-size: 1.35rem; letter-spacing: -.025em; }
.role-choice span { color: var(--muted); font-weight: 400; font-size: 1.0625rem; }
@media (hover: hover) {
  .role-choice:hover { border-color: var(--role-color); }
  .role-choice:hover strong { text-decoration: underline; text-underline-offset: .18em; }
}
.role-choice:focus-visible { z-index: 1; }
.signin-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; color: var(--muted); }
.signin-line a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
label, legend { color: var(--ink); font-weight: 650; }
label { display: block; margin: 1.15rem 0 .35rem; }
input, textarea, select { max-width: 100%; min-width: 0; width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--surface); padding: .65rem .75rem; border: 1px solid var(--outline); border-radius: .45rem; accent-color: var(--action); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; flex-shrink: 0; vertical-align: middle; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 5rem; }
form button { margin-top: 1rem; }
fieldset { min-width: 0; }
#photoGuide { margin: 0 0 .5rem; }
#photoCount, #craftExample:not(:empty) { display: block; margin-top: .35rem; }
#photoHelp:not(:empty) { margin-top: .5rem; color: var(--muted); }
#error { color: var(--danger); font-weight: 700; }
dialog { max-width: min(36rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1rem,3vw,2rem); background: var(--surface); color: var(--ink); border: 2px solid var(--brand); border-radius: .75rem; }
dialog::backdrop { background: rgb(44 26 35 / 62%); }
dialog h2 { margin-top: 0; }
dialog form[method=dialog] { padding: 0; border: 0; margin-bottom: 0; }
img { max-width: 100%; max-height: 240px; border-radius: .4rem; }
.shop-photos,.upload-previews,.request-gallery { display: flex; flex-wrap: wrap; gap: .55rem; align-items: flex-start; margin: .65rem 0; }
.shop-photos img { width: min(100%,220px); height: 160px; object-fit: contain; background: var(--tint); }
.upload-previews img,form .shop-photos img { width: 72px; height: 72px; object-fit: cover; }
.request-gallery img { max-height: 360px; object-fit: contain; }
#finishedPreview img { max-width: 9rem; max-height: 8rem; object-fit: contain; }
.profile-byline { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.profile-byline img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.shop-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1rem; padding: 1rem 1.25rem; }
.shop-summary { min-width: 0; display: grid; gap: .65rem; overflow-wrap: anywhere; }
.shop-summary h1, .shop-summary h2, .shop-summary p { margin: 0; }
.shop-summary h2 { color: var(--brand); font-size: 1.2rem; }
.shop-summary .profile-byline img { flex: none; }
.shop-summary .row { gap: .35rem .5rem; }
.workshop-detail .shop-summary { margin-bottom: 1.25rem; }
.card .inbox-photo { display: block; width: 96px; height: 80px; object-fit: cover; margin: .5rem 0; }
.request-photo, .craft-fields { margin: 1.25rem 0 .5rem; padding: 0; border: 0; }
.request-photo legend, .craft-fields legend { padding: 0; margin-bottom: .35rem; }
.craft-question-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .25rem 1rem; }
.craft-answer-list { display: grid; gap: .75rem; }
.craft-answer-list dt { font-weight: 700; color: var(--brand); }
.craft-answer-list dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.photo-actions button, .photo-actions label, .photo-tile button { margin: 0; }
.photo-picker { position: relative; display: inline-flex; align-items: center; overflow: hidden; }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.native-camera { display: none; }
@media (pointer: coarse) { .native-camera { display: inline-flex; } .web-camera { display: none; } }
.photo-tile { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.scope-line, .craft-choices, .region-chips { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .85rem; }
.scope-line { margin-top: 1rem; }
.scope-line > label:first-child { margin: 0 auto 0 0; }
.scope-line .scope-option, .craft-choices label, .district-options label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin: 0; font-size: 1rem; }
.scope-option input,.craft-choices input,.district-options input { margin: 0; }
.visit-regions { margin: 1rem 0; padding: .85rem; border: 1px solid var(--outline); border-radius: .55rem; }
.visit-regions legend { padding: 0 .3rem; }
.district-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap: .25rem .55rem; max-height: 16rem; overflow-y: auto; }
.district-options:not(:empty),.region-chips { margin: .65rem 0; }
.region-chip button { margin: 0; }
.audience { border-left: 4px solid var(--action); }
.audience p { margin: .4rem 0; }
.check-line { display: flex; align-items: flex-start; gap: .65rem; }
.check-line input { flex: none; margin-top: .35rem; }
#deleteForm[hidden],#deleteLogin[hidden] { display: none; }
#postcodePanel { padding-block: .65rem; }
#postcodeSlot:not(:empty) { height: 360px; width: 100%; margin-top: .5rem; }
#address { margin-top: .5rem; }
.browse-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .5rem 1rem; }
.browse-filters label { margin-top: 0; }
.workshop-map { width: 100%; height: clamp(270px,46vh,420px); margin: 1rem 0 .5rem; border: 1px solid var(--outline); border-radius: .6rem; background: var(--tint); isolation: isolate; }
.workshop-pin { background: var(--action); border: 3px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--brand); }
.workshop-map img { max-width: none; max-height: none; border-radius: 0; }
.workshop-map .leaflet-control-attribution { font-size: 12px; }
#pinPanel { margin-top: 1rem; }
.visit-date { font-size: 1rem; color: var(--plum); font-weight: 650; }
.visit-heading h3 { margin: 0; }
.visit-heading { align-items: baseline; }
.visit .visit-date { margin: .45rem 0; font-weight: 500; }
.visit a { display: inline-block; padding: .25rem; }
.offer-tags { margin-block: .65rem; }
.offer-terms { margin: 1rem 0; }
.offer-terms > div { display: grid; align-items: baseline; grid-template-columns: minmax(7rem,30%) minmax(0,1fr); gap: .9rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.offer-terms dt { color: var(--muted); font-weight: 600; }
.offer-terms dd { min-width: 0; margin: 0; white-space: pre-line; }
.offer-cost { color: var(--ink); font-size: 1.25rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.consultation + .consultation { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

.chat-room { display: flex; flex-direction: column; height: clamp(350px,76dvh,800px); max-width: 46rem; margin: 0 auto; border: 1px solid var(--outline); border-radius: .75rem; overflow: hidden; background: var(--canvas); }
.chat-heading, .chat-compose { background: var(--surface); padding: .75rem 1rem; }
.chat-heading { border-bottom: 1px solid var(--line); }
.chat-heading h1 { font-size: 1.5rem; margin: 0; }
.chat-heading p { margin: .2rem 0; color: var(--muted); font-size: 1rem; }
.chat-heading .back { min-height: 2.75rem; padding-block: .25rem; }
.chat-log { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: .75rem; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; }
.chat-line { max-width: 87%; align-self: flex-start; }
.chat-line.outgoing { align-self: flex-end; }
.chat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9375rem; color: var(--muted); }
.outgoing .chat-meta { justify-content: flex-end; }
.bubble { margin: .15rem 0 0; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 3px 14px 14px; background: var(--surface); white-space: pre-wrap; }
.outgoing .bubble { background: var(--brand); color: var(--surface); border-color: var(--brand); border-radius: 14px 3px 14px 14px; }
.bubble-menu summary { list-style: none; min-width: 2.75rem; text-align: center; cursor: pointer; }
.bubble-menu summary::-webkit-details-marker { display: none; }
.chat-action { padding: .25rem .5rem; min-height: 2.75rem; font-size: 1rem; background: var(--surface); color: var(--ink); border-color: var(--outline); }
.empty-chat { margin: auto; color: var(--muted); }
.chat-compose { display: flex; gap: .5rem; align-items: flex-end; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 3rem; max-height: 8rem; resize: vertical; }
.chat-compose button { margin: 0; white-space: nowrap; }
#chatSync:not(:empty) { background: var(--surface); padding: 0 1rem .5rem; }
.room-list { display: grid; gap: .5rem; max-width: 48rem; }
.room-entry { display: grid; width: 100%; min-width: 0; gap: .3rem; background: var(--surface); color: var(--ink); border: 1px solid var(--outline); padding: .9rem 1rem; text-align: left; }
.room-heading,.room-tail { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; justify-content: space-between; }
.room-heading time,.room-context { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.room-tail { font-weight: 400; }
.unread-count { display: inline-block; min-width: 1.6rem; text-align: center; border-radius: 1rem; padding: .05rem .4rem; font-size: .9375rem; font-weight: 750; background: var(--action); color: var(--surface); }

@media (max-width: 37rem) {
  header { padding-block: .85rem; }
  main { padding-block: 1.25rem; }
  .home-menu { column-gap: .9rem; }
  .role-choice { padding: 1rem 1rem 1rem 1.65rem; }
  .role-choice::before { inset: 1.15rem auto 1.15rem .65rem; }
  .samples { display: none; }
  .hero h1, .hero p { max-width: 100%; }
  .offer-terms > div { grid-template-columns: 6rem minmax(0,1fr); gap: .6rem; }
  .card-actions [data-act="safety"] { margin-inline-start: 0; }
}
@media (max-width: 24rem) {
  .offer-terms > div { grid-template-columns: 1fr; gap: .12rem; }
}
@media (forced-colors: active) {
  .tag, .unread-count, .home-menu, .roles [aria-pressed=true] { border: 1px solid CanvasText; }
  :focus-visible, .photo-picker:focus-within { outline: 3px solid Highlight; }
}

.social-entry { max-width: 31rem; margin: clamp(1rem,7vh,4.5rem) auto; }
.social-entry > p { max-width: 32ch; }
.social-options { display: grid; gap: .75rem; margin: 1.65rem 0; }
.social-choice, .social-choice:disabled {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem;
  width: 100%; min-height: 3.4rem; margin: 0; padding: .8rem 1.1rem; border: 1px solid var(--outline);
  border-radius: .6rem; font: inherit; font-weight: 700; text-decoration: none; opacity: 1;
}
.social-choice.google { background: white; color: #202124; }
.social-choice.kakao { background: #fee500; color: #241e00; border-color: #d6be00; }
.social-choice.naver { background: #007d40; color: white; border-color: #006936; }
.social-choice small { color: inherit; font-size: .875rem; font-weight: 500; }
.social-choice:disabled { cursor: default; }
.social-entry .signin-line { max-width: none; margin-top: 1.25rem; }
.social-logout { display: inline; margin: 0; padding: 0; border: 0; background: none; }
.social-logout button { margin: 0; padding: .2rem; background: none; color: inherit; border: 0; text-decoration: underline; }

.enroll-page, .enroll-guide { max-width: 42rem; margin-inline: auto; }
.enroll-page form { margin-top: 1.25rem; }
.enroll-page fieldset, .optional-nick { padding: .9rem 1rem; border: 1px solid var(--outline); border-radius: .5rem; }
.enroll-page .policy-link { margin: .2rem 0 .9rem 1.7rem; }
.enroll-notice { border-inline-start: .25rem solid var(--brand); padding: .7rem 1rem; background: var(--tint); }
.enroll-guide ol { padding-inline-start: 1.4rem; }
.enroll-guide li { padding: .3rem 0; }
.enroll-guide h2 { margin-top: 1.75rem; }

.application-reason { white-space: pre-wrap; }

.postcode-field { display: flex; align-items: stretch; gap: .5rem; }
.postcode-field input { flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.postcode-field button { flex: none; margin: 0; }
@media(max-width: 480px){.postcode-field { flex-direction: column; }.postcode-field button { align-self: flex-start; }}

/* Pin the row labels while comparing several workshops on a narrow screen. */
#receivedOffers { display: flex; align-items: baseline; gap: .55rem; scroll-margin-top: 1rem; }
.proposal-count { font: 650 1rem/1.5 var(--sans); color: var(--action); }
.proposal-scroll {
  --label-width: 6.5rem; --offer-width: 12rem;
  overflow-x: auto; border: 1px solid var(--line); border-radius: .7rem;
  background: var(--surface); margin-bottom: 1.25rem;
}
.proposal-table {
  table-layout: fixed; border-collapse: separate; border-spacing: 0;
  width: 100%; min-width: calc(var(--label-width) + var(--offers) * var(--offer-width));
  font-size: 1rem; line-height: 1.6;
}
.proposal-label { width: var(--label-width); }
.proposal-table th, .proposal-table td {
  padding: .8rem; vertical-align: top; text-align: start; border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.proposal-table td { white-space: pre-line; }
.proposal-table th:last-child, .proposal-table td:last-child { border-inline-end: 0; }
.proposal-table tbody tr:last-child > * { border-bottom: 0; }
.proposal-table tr > th:first-child { position: sticky; left: 0; background: var(--canvas); color: var(--brand); }
.proposal-table thead th, .proposal-table thead tr > th:first-child { background: var(--brand); color: var(--surface); }
.proposal-table thead strong { display: block; font-size: 1.15rem; }
.proposal-table thead small { display: block; margin-top: .25rem; color: var(--tint); font-size: .875rem; }
.proposal-table thead .tag { margin-top: .35rem; font-size: .875rem; }
.proposal-cost td { color: var(--plum); font-weight: 700; font-variant-numeric: tabular-nums; }
.proposal-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem; white-space: normal; }
.proposal-actions button { min-height: 2.75rem; font-size: 1rem; padding: .45rem .65rem; }
.proposal-actions [data-act="safety"] { border-color: transparent; color: var(--muted); text-decoration: underline; }
@media (max-width: 38rem) {
  .proposal-scroll { --label-width: 4.3rem; --offer-width: 7.65rem; }
  .proposal-table th, .proposal-table td { padding: .65rem .45rem; }
  .proposal-table thead strong { font-size: 1.0625rem; }
  .proposal-actions { flex-direction: column; align-items: stretch; }
  .proposal-actions button { padding-inline: .35rem; font-size: .9375rem; }
}

.request-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.2rem; }
.request-summary h3, .request-summary .meta { margin: 0; }
.request-summary .meta { margin-top: .25rem; }
.request-summary > div { min-width: 0; }
.request-summary > button { flex: none; }
button.danger-action { background: var(--danger); border-color: var(--danger); color: var(--surface); }
@media (max-width: 28rem) { .request-summary { flex-wrap: wrap; } }

.removal-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.removal-response { border-inline-start: .3rem solid var(--danger); }
.removal-response .row { margin-top: .8rem; }

/* Public workshop directory */
.customer-dashboard > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; object-position: 53% 50%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem,3vw,2.15rem); }
.craft-grid {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  gap: clamp(1.5rem,3vw,2.6rem) clamp(.8rem,2vw,1.55rem);
}
.craft-tile { display: block; min-width: 0; text-decoration: none; color: var(--ink); }
.craft-tile img {
  display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1.22;
  object-fit: cover; background: var(--tint); border-radius: .25rem;
}
.craft-tile strong, .craft-tile span { display: block; }
.craft-tile strong { margin-top: .6rem; color: var(--brand); font-size: 1.22rem; font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.craft-tile span { margin-top: .12rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.craft-brief { display: grid; grid-template-columns: 1fr; gap: clamp(1.3rem,4vw,3.5rem); align-items: start; padding-block: 1.5rem; }
.craft-brief:has(> img) { grid-template-columns: 1fr minmax(0,48%); }
.craft-brief > img { width: 100%; height: auto; max-height: 34rem; aspect-ratio: 1.05; object-fit: cover; border-radius: .25rem; }
.craft-brief h1 { color: var(--brand); font-size: clamp(2.4rem,4.8vw,4rem); }
.craft-brief h2 { margin-block: 1.75rem .75rem; font-size: 1.35rem; }
.craft-brief ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.craft-brief li { padding-block: .5rem; border-top: 1px solid var(--line); }
@media (min-width: 48.01rem) and (max-width: 68rem) { .craft-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); text-underline-offset: .23em; }
main:has(> .enroll-page), main:has(> .guest-access) { max-width: 48rem; }
.guest-access { max-width: 32rem; }
.guest-access .join-roles { margin-top: 1.5rem; }
#emailLogin > button[type=submit], #emailJoin > button[type=submit] { width: 100%; }
.social-choice:disabled { background: var(--tint); border-color: var(--line); color: var(--muted); }
.enroll-page form { padding: clamp(1rem,3.6vw,2rem); }
.enroll-page fieldset { margin: 1.6rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .75rem 0 0; }
.enroll-page legend { padding: 0 .65rem 0 0; font-size: 1.12rem; }
.enroll-notice { background: var(--tint); color: var(--brand); border: 0; border-radius: .55rem; font-size: .96rem; }
.customer-dashboard { border-radius: .95rem; overflow: hidden; position: relative; }
.dashboard-copy { padding: clamp(1.2rem,3.7vw,2.9rem); }
.customer-dashboard { background: var(--brand); display: grid; grid-template-columns: 62% 38%; }
.customer-dashboard h1 { color: var(--surface); font-size: clamp(1.85rem,3.3vw,2.65rem); }
.customer-dashboard > img { left: 62%; width: 38%; }
.customer-dashboard .primary { color: var(--brand); background: var(--surface); border-color: var(--surface); }
.home-menu { align-items: center; gap: .55rem; padding-block: .45rem 1.1rem; }
.home-menu button { background: var(--surface); color: var(--brand); border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1.05rem; }
#shopResults { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,23rem),1fr)); gap: .85rem; }
#shopResults > .shop-result { margin: 0; }
#shopCount:not(:empty) { display: block; margin: 1.15rem 0 .7rem; }
#findShops { max-width: none; }
#findShops .browse-filters { grid-template-columns: minmax(9rem,1fr) minmax(12rem,2fr) auto; align-items: end; gap: .9rem; }
#findShops .browse-filters:has(#workModeFilter) { grid-template-columns: repeat(2,minmax(8rem,1fr)) minmax(12rem,1.7fr) auto; }
#findShops .search-keyword { min-width: 0; }
#searchShops { margin: 0; padding-inline: 1.4rem; }
#craftExample:not(:empty) { margin-top: .7rem; }
.guest-access .role-choice { background: var(--surface); border-color: var(--line); padding: 1rem 1.15rem; }
.guest-access .role-choice::before { display: none; }
.guest-access .role-choice.workshop { background: var(--plum-tint); }
.guest-access .role-choice.customer { background: var(--tint); }
.guest-access .role-choice strong { font-size: 1.1rem; }
.guest-access .role-choice span { font-size: .95rem; }
#request { max-width: 54rem; }
.card-actions .soft { padding: .4rem .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; }
@media (max-width: 48rem) {
  #findShops .browse-filters, #findShops .browse-filters:has(#workModeFilter) { grid-template-columns: 1fr; align-items: stretch; }
  #searchShops { justify-self: start; }
}
.shop-summary .tag { border-radius: 99px; padding: .18rem .65rem; color: var(--action); background: var(--tint); font-size: .9rem; }
.workshop-detail > .shop-photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),17rem)); gap: .9rem; }
.workshop-detail > .shop-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--tint); }
@media (hover:hover) {
  .guest-nav a:hover, .craft-tile:hover strong { text-decoration: underline; text-underline-offset: .24em; }
  .customer-dashboard button.primary:hover { color: var(--brand); background: var(--surface); }
}
@media (max-width: 48rem) {
  .craft-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.25rem; }
}
@media (max-width: 37rem) {
  .guest-nav { gap: .75rem; }
  .guest-nav a { font-size: .9rem; }
  .guest-nav .login-nav { padding-inline: .78rem; }
  .wordmark-image { width: 5rem; }
  .craft-brief:has(> img) { grid-template-columns: 1fr; }
  .craft-brief > img { grid-row: 1; max-height: 13rem; }
  .craft-tile strong { font-size: 1.08rem; }
  .customer-dashboard { grid-template-columns: 68% 32%; }
  .customer-dashboard > img { left: 68%; width: 32%; }
  .customer-dashboard h1 { font-size: 1.78rem; }
}
@media (max-width: 25rem) {
  .guest-nav a[href="/join-guide.html"] { display: none; }
}

/* A searchable masthead with one continuous, touch-scrollable row of disciplines. */
body > header.site-header { display: block; padding: 0; background: var(--surface); }
.masthead, .category-bar-inner {
  width: 100%; max-width: 86rem; margin-inline: auto; padding-inline: var(--gutter);
}
.masthead {
  --nav-gap: clamp(.75rem, 1.55vw, 1.4rem);
  display: flex; align-items: center; gap: var(--nav-gap); padding-block: .6rem;
}
.masthead .wordmark { flex: none; margin-inline-end: clamp(.25rem,2vw,2.2rem); }
.masthead .wordmark-image { width: clamp(5.4rem, 8vw, 6.25rem); }
.masthead .catalog-search {
  display: flex; align-items: center; flex: 1 1 0%; min-width: 0; gap: .25rem;
  margin: 0; padding: .18rem .28rem .18rem 1rem;
  border: 1px solid var(--outline); border-radius: 99px; background: var(--canvas);
}
.catalog-search:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.catalog-search input[type=search] { flex: 1; min-width: 0; width: 100%; min-height: 2.5rem; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; font-size: 1rem; color: var(--ink); }
.catalog-search input::placeholder { color: var(--muted); opacity: 1; }
.catalog-search button { flex: none; display: grid; place-items: center; width: 2.6rem; min-height: 2.6rem; margin: 0; padding: 0; border-radius: 50%; }
.search-lens { display: block; position: relative; width: .91rem; height: .91rem; border: 2px solid currentColor; border-radius: 50%; margin: -.18rem .15rem 0 0; }
.search-lens::after { content: ''; position: absolute; width: .46rem; height: 2px; background: currentColor; right: -.35rem; bottom: -.16rem; transform: rotate(45deg); }
.mast-actions, .member-menu, .masthead #account:not(:empty) {
  display: flex; flex: none; align-items: center; gap: var(--nav-gap);
}
.mast-actions a, .member-menu a, .category-bar a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: .96rem; font-weight: 600; white-space: nowrap;
}
.masthead .guest-nav { flex: none; gap: .65rem; }
.masthead .guest-nav .login-nav { padding-inline: .45rem; border: 0; }
.masthead .signup-nav { padding: .35rem .95rem; background: var(--brand); border-radius: 99px; color: var(--surface); }
.masthead #account { margin-inline-start: auto; }
.account-menu { position: relative; }
.account-menu > summary {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px;
  padding: .35rem .85rem; border: 1px solid var(--outline); border-radius: 99px; background: var(--surface);
  color: var(--ink); font-size: .96rem; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after {
  content: ""; width: .46rem; height: .46rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.11rem) rotate(45deg);
}
.account-menu[open] > summary::after { transform: translateY(.11rem) rotate(225deg); }
.account-panel {
  position: absolute; z-index: 10; inset-inline-end: 0; top: calc(100% + .4rem);
  display: grid; width: min(16rem, calc(100vw - 2 * var(--gutter))); padding: .4rem;
  border: 1px solid var(--line); border-radius: .75rem; background: var(--surface);
  box-shadow: 0 .45rem 1.4rem rgb(67 24 38 / 14%);
}
.account-panel small { padding: .55rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-panel a, .account-panel button {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px;
  margin: 0; padding: .45rem .65rem; color: var(--ink); border: 0; border-radius: .4rem;
  background: transparent; text-decoration: none; font: inherit; font-size: .96rem; text-align: start;
}
.account-panel button[data-switch-view] { font-weight: 600; }
.account-panel .compact-member-menu { display: none; }
.site-header:has(#account:not(:empty)):not(:has(.account-role)) :is(.catalog-search,.category-bar,.mast-actions),
.site-header:has([data-role="workshop"]) :is(.mast-actions,.mobile-service) { display: none; }
.category-bar { background: var(--pistachio); border-top: 1px solid var(--line); }
.category-bar-inner { display: flex; align-items: center; gap: clamp(.85rem,1.8vw,1.6rem); overflow-x: auto; scrollbar-width: thin; }
.category-bar-inner > a, .nav-crafts a { flex: none; }
.category-bar .all-crafts { color: var(--brand); font-weight: 700; }
.all-crafts::before { content: ''; width: .85rem; height: .62rem; margin-right: .5rem; border-block: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat; }
.nav-crafts { display: contents; }
.category-bar .guide-nav { margin-left: auto; color: var(--muted); }
.category-bar .mobile-service { display: none; }
.category-bar a[aria-current=page] { box-shadow: inset 0 -3px var(--brand); color: var(--brand); }
.all-link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; color: var(--action); font-size: .97rem; font-weight: 650; }
main:has(> .catalog-page) { max-width: none; padding: 0; }
.catalog-page { max-width: 108rem; margin: auto; }
.catalog-intro {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: clamp(24rem,34vw,35rem); background: #27080f; color: #fffaf2; overflow: hidden;
}
.catalog-intro picture, .catalog-intro picture img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; border-radius: 0;
}
.catalog-intro picture { z-index: -2; mask-image: linear-gradient(90deg,transparent 0%,#000 43%); }
.catalog-intro picture img { object-fit: contain; object-position: right center; }
.catalog-intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,rgba(28,7,15,.64),rgba(28,7,15,.26) 40%,transparent 62%);
}
.catalog-copy, .catalog-list, .studio-guide {
  width: 100%; max-width: 86rem; margin-inline: auto; padding-inline: var(--gutter);
}
.catalog-copy { padding-block: clamp(2rem,4.5vw,4.75rem); }
.brand-headline {
  margin: 0; font-size: clamp(2.7rem,5.4vw,5.2rem); line-height: 1.08;
  font-weight: 700; letter-spacing: -.065em;
}
.brand-headline em { color: var(--pistachio); font-style: normal; }
.catalog-lead { width: 39%; max-width: 22em; margin: .9rem 0 1.45rem; font-size: clamp(1.02rem,1.45vw,1.2rem); line-height: 1.55; }
.catalog-actions, .catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem; }
.catalog-actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.35rem;
  border: 1px solid transparent; border-radius: 99px; text-decoration: none; font-size: 1rem; font-weight: 600;
}
.cover-primary { color: var(--brand); background: var(--pistachio); }
.catalog-actions .cover-secondary { color: #fff; background: rgba(37,12,20,.46); border-color: #dbc4c9; }
.catalog-actions a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--brand); }
.catalog-tools a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .4rem; font-weight: 600; }
.catalog-list { padding-block: clamp(2rem,4vw,4rem); scroll-margin-block-start: .75rem; }
.catalog-page h1 { margin: 0; color: var(--brand); }
.catalog-heading { flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .8rem; }
.catalog-heading h1 { font-size: clamp(1.9rem,3.1vw,3rem); letter-spacing: -.055em; }
.catalog-entry-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.1rem; }
.catalog-entry-actions a { min-height: 44px; }
.catalog-entry-actions .soft:hover { background: var(--tint); color: var(--brand); border-color: var(--brand); }
.craft-classes { border-top: 1px solid var(--line); padding-block: clamp(1.5rem,4vw,3rem); scroll-margin-block-start: 1rem; }
.craft-classes .section-heading { flex-wrap: wrap; align-items: baseline; }
.catalog-filter-row {
  display: flex; align-items: center; justify-content: space-between; gap: .45rem 1rem;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(1.15rem,2vw,1.65rem);
}
.collection-nav { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .12rem clamp(.85rem,2.2vw,1.65rem); }
.collection-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-align: center; text-decoration: none;
  border-block-end: 3px solid transparent; font-size: 1rem; font-weight: 600; color: var(--muted);
}
.collection-nav a[aria-current=page] { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.collection-count { flex: none; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-guide {
  margin-bottom: clamp(2rem,5vw,5rem); display: grid; grid-template-columns: 1fr 1fr;
}
.studio-guide img { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; border-radius: 0; object-fit: cover; }
.studio-guide > div { padding: clamp(1.5rem,3.5vw,3.5rem); background: var(--pistachio); color: var(--brand); }
.studio-guide h2 { margin: 0; color: inherit; line-height: 1.16; font-size: clamp(1.65rem,2.75vw,2.65rem); }
.studio-guide dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem .9rem; align-items: baseline; margin-block: 1.2rem .65rem; font-size: 1rem; }
.studio-guide dt { font-weight: 700; }
.studio-guide dd { margin: 0; color: var(--ink); }
@media (hover: hover) {
  .cover-primary:hover { background: white; }
  .catalog-actions .cover-secondary:hover { background: #421b2a; }
  .collection-nav a:hover { color: var(--brand); }
}
@media (max-width: 42rem) {
  .catalog-intro { display: flex; align-items: end; min-height: 0; }
  .catalog-intro picture { height: auto; bottom: auto; aspect-ratio: 824 / 429; mask-image: none; }
  .catalog-intro picture img { object-fit: fill; }
  .catalog-intro::after { background: linear-gradient(to bottom,transparent 0,transparent 35vw,#27080f 52vw); }
  .catalog-copy { padding-block: 44vw 1.45rem; }
  .brand-headline { font-size: clamp(2.1rem,7.8vw,3rem); line-height: 1.1; }
  .catalog-lead { width: 100%; max-width: 24em; font-size: 1rem; margin: .65rem 0 1rem; }
  .catalog-actions a { padding-inline: 1.1rem; }
  .catalog-filter-row { align-items: start; flex-wrap: wrap; gap: 0; }
  .collection-nav { flex: 1 0 100%; gap: .1rem .95rem; }
  .collection-nav a { font-size: .94rem; }
  .collection-count { display: none; }
  .studio-guide { grid-template-columns: 1fr; }
  .studio-guide img { height: auto; max-height: 14rem; }
}
.catalog-count { margin-top: -.5rem; color: var(--muted); }
.finder-start { max-width: 39rem; margin: 1.3rem auto; }
.craft-actions { margin: 1rem 0 2rem; }
@media (hover:hover) {
  .category-bar a:hover, .mast-actions a:hover, .member-menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
  .account-menu summary:hover, .account-panel :is(a,button):hover { background: var(--tint); color: var(--ink); }
}
@media (max-width: 58rem) {
  .mast-actions { display: none; }
  .category-bar .mobile-service { display: inline-flex; color: var(--brand); }
}
@media (max-width: 42rem) {
  .masthead { flex-wrap: wrap; justify-content: space-between; gap: .5rem .75rem; padding-block: .55rem .7rem; }
  .masthead .wordmark-image { width: 4.9rem; }
  .masthead .catalog-search { order: 1; flex-basis: 100%; }
  .member-menu { display: none; }
  .account-panel .compact-member-menu { display: grid; }
  .category-bar-inner { gap: 1.25rem; scrollbar-width: none; }
  .category-bar-inner::-webkit-scrollbar { display: none; }
}

/* Workshop account */
.workshop-rail { display: none; }
.site-header:has(.account-role[data-role="workshop"]) :is(.category-bar,.member-menu,.compact-member-menu) { display: none; }
.site-header:has(.account-role[data-role="workshop"]) .workshop-rail { display: block; background: var(--brand); }
.workshop-rail > div { display: flex; align-items: center; gap: clamp(.85rem,2.6vw,2rem); max-width: 86rem; margin: auto; padding-inline: var(--gutter); }
.workshop-rail a { display: inline-flex; align-items: center; min-height: 46px; color: #fff9f0; font-size: .97rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.workshop-rail a:first-child { color: var(--pistachio); }
.workshop-rail a:last-child { margin-left: auto; }
.workshop-rail a:hover, .workshop-rail a:focus-visible { text-decoration: underline; }
.workshop-rail a:focus-visible { outline-color: var(--pistachio); }
.account-menu:has([data-role="workshop"]) > summary { background: var(--brand); border-color: var(--brand); color: white; }
.account-menu:has([data-role="workshop"]) .account-panel { padding: .55rem; border-top: .22rem solid var(--brand); border-radius: .45rem; }
.account-menu:has([data-role="workshop"]) [data-switch-view] { margin-block: .3rem; background: var(--tint); color: var(--brand); }

.work-landing {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  max-width: 86rem; margin: clamp(1rem,2vw,1.65rem) auto 0; padding-inline: var(--gutter);
}
.work-landing-copy { padding: clamp(1.5rem,4vw,3.5rem); background: var(--pistachio); align-content: center; }
.work-landing-copy h2 { margin: 0; font-size: clamp(2.15rem,4.4vw,4.1rem); line-height: 1.04; letter-spacing: -.065em; color: var(--brand); }
.work-landing-copy p { max-width: 25em; color: var(--ink); margin: .9rem 0 1.3rem; }
.work-landing > img { width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; border-radius: 0; }
.desk-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; color: white; background: var(--brand); border-radius: .35rem; font-size: 1rem; font-weight: 600; text-decoration: none; }
.work-landing .catalog-tools { grid-column: 1 / -1; gap: 1rem; padding-block: .25rem; border-bottom: 1px solid var(--line); }
.work-landing .catalog-tools a { text-decoration: none; }
.work-landing .catalog-tools a:hover { text-decoration: underline; }

main:has(> .work-board) { max-width: 86rem; }
.work-board { --desk-rule: #d6d8ce; }
.work-board h1,.work-board h2 { color: var(--brand); }
.desk-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0; margin-bottom: 1.25rem; }
.desk-heading > div { min-width: 0; }
.desk-heading p { font-size: 1rem; color: var(--muted); margin: .1rem 0 .22rem; }
.desk-heading h1 { margin: 0; font-size: clamp(2.2rem,4.3vw,3.8rem); line-height: 1.12; }
.desk-heading .desk-location { margin: .45rem 0 0; }
.desk-notices { display: flex; flex: none; align-items: center; gap: .35rem; min-height: 44px; border-radius: 99px; color: var(--brand); background: white; border-color: var(--desk-rule); }
.desk-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--pistachio); margin: 0 0 clamp(1.6rem,3.5vw,3rem); border-radius: .4rem; overflow: hidden; }
.desk-stats > :is(a,button) {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: clamp(1rem,2vw,1.6rem);
  border: 0; border-radius: 0; text-align: start; color: var(--brand); background: transparent; text-decoration: none;
}
.desk-stats > :is(a,button) + * { border-inline-start: 1px solid #bcc4a9; }
.desk-stats span { font-size: .96rem; font-weight: 600; }
.desk-stats strong { display: flex; gap: .3rem; align-items: baseline; padding-top: .35rem; font-size: clamp(2rem,3.6vw,3rem); line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.desk-stats small { font-size: .95rem; color: inherit; letter-spacing: 0; }
.desk-stats > :is(a,button):focus-visible { outline-offset: -4px; }
.desk-stats > :is(a,button):hover { background: #d7e1b8; }
.desk-layout { display: grid; grid-template-columns: minmax(0,1.52fr) minmax(0,1fr); gap: clamp(1.35rem,3.5vw,3.25rem); align-items: start; }
.desk-requests { min-width: 0; scroll-margin-top: 1rem; }
.desk-sidebar { min-width: 0; display: grid; gap: 1.65rem; }
.desk-panel-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; }
.desk-panel-title h2,.desk-schedule h2 { font-size: clamp(1.35rem,2vw,1.7rem); margin: 0; line-height: 1.22; }
.desk-requests > .desk-panel-title { padding-bottom: .85rem; border-bottom: 2px solid var(--brand); }
.desk-request-group { margin: 1.25rem 0; }
.desk-request-group > h3 { font-size: 1rem; margin: 0; padding: .65rem .85rem; color: var(--brand); background: #ecede5; }
.desk-request-group > h3 span { font-size: .9rem; font-weight: 600; margin-left: .25rem; }
.desk-request-group .request-summary { background: transparent; border: 0; border-bottom: 1px solid var(--desk-rule); border-radius: 0; margin: 0; padding: 1rem .15rem; }
.desk-request-group .request-summary h3 { font-size: 1.13rem; color: var(--ink); }
.desk-request-group .request-summary button { min-height: 44px; padding: .45rem .85rem; border-radius: .35rem; background: white; color: var(--brand); border-color: #aa9a9f; }
.desk-empty,.profile-note { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: .85rem 0; }
.desk-requests > .desk-empty { padding: 1.4rem 1rem; background: var(--surface); border-bottom: 1px solid var(--desk-rule); margin: 0; }
.studio-side-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.studio-side-heading h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.04em; }
.studio-text-control { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: .2rem .1rem; background: transparent; border: 0; border-radius: .2rem; color: var(--muted); font-size: .91rem; font-weight: 600; text-decoration: none; }
.studio-text-control:hover,.agenda-place:hover { color: var(--brand); text-decoration: underline; }
.desk-schedule .studio-side-heading { margin-bottom: .65rem; }
.desk-schedule .agenda-entry,.desk-schedule section > p { margin: 0; padding: 1.2rem; background: var(--surface); border: 1px solid var(--desk-rule); border-radius: .75rem; }
.desk-schedule section > p { color: var(--muted); }
.agenda-overview { display: grid; grid-template-columns: 3.6rem minmax(0,1fr); gap: .9rem; align-items: start; }
.agenda-date { display: grid; align-content: center; justify-items: center; width: 3.6rem; min-height: 3.9rem; background: var(--tint); color: #34432b; border-radius: .5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.agenda-date small { font-size: .75rem; font-weight: 600; color: inherit; }
.agenda-date b { font-size: 1.65rem; letter-spacing: -.05em; }
.agenda-date.unset i { position: relative; width: 23px; height: 21px; margin-top: 3px; border: 1.8px solid currentColor; border-radius: 4px; background: linear-gradient(currentColor,currentColor) center 5px / 100% 1.5px no-repeat; }
.agenda-date.unset i::before,.agenda-date.unset i::after { content: ""; position: absolute; top: -4px; width: 2px; height: 5px; background: currentColor; }
.agenda-date.unset i::before { left: 4px; } .agenda-date.unset i::after { right: 4px; }
.agenda-state { margin: 0 0 .22rem; color: #556444; font-weight: 600; font-size: .875rem; line-height: 1.4; }
.agenda-entry h3,.studio-identity h3 { margin: 0; color: var(--ink); font-size: 1.15rem; line-height: 1.38; letter-spacing: -.035em; }
.agenda-place { display: inline-block; margin-top: .3rem; color: var(--muted); font-size: .94rem; text-decoration: underline; text-decoration-color: #bcb9b7; text-underline-offset: .2em; }
.agenda-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin: .8rem 0 -.25rem; }
.agenda-actions p { flex-basis: 100%; margin: .1rem 0; }
.agenda-actions button { min-height: 44px; margin: 0; padding: .45rem .8rem; border: 0; border-radius: .45rem; background: #f3f3ef; color: var(--ink); font-size: .94rem; }
.agenda-actions button.primary { background: var(--brand); color: white; }
.desk-schedule details { margin-top: .45rem; }
.desk-schedule details > summary { color: var(--muted); font-size: .94rem; }
.desk-schedule details .agenda-entry + .agenda-entry { margin-top: .5rem; }
.studio-settings { min-width: 0; padding: .85rem clamp(.9rem,1.55vw,1.3rem) 0; border: 1px solid var(--desk-rule); border-radius: .75rem; background: #f1f3ea; }
.studio-identity { display: flex; align-items: center; gap: .8rem; margin: .6rem 0 0; }
.studio-identity img { width: 3.6rem; height: 3.6rem; max-height: none; margin: 0; object-fit: cover; border-radius: .65rem; }
.studio-status { display: inline-flex; gap: .35rem; align-items: center; color: var(--muted); font-size: .875rem; }
.studio-status::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.studio-status[data-state="approved"] { color: #435c42; }
.studio-status[data-state="pending"] { color: #795318; }
.studio-status[data-state="rejected"] { color: var(--danger); }
.desk-profile { padding-bottom: 1rem; }
.desk-profile .desk-categories,.desk-profile .profile-note { margin: .65rem 0 0; color: var(--muted); font-size: .94rem; }
.studio-settings .inbox-radius { margin: 0; border-top: 1px solid #ccd2c1; }
.studio-settings .inbox-radius > summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .5rem; list-style: none; min-height: 3.6rem; color: var(--ink); font-weight: 600; font-size: .94rem; }
.studio-settings .inbox-radius > summary::-webkit-details-marker { display: none; }
.studio-settings .inbox-radius > summary strong { font-weight: 600; color: #475940; }
.studio-settings .inbox-radius > summary::after { content: ""; width: .47rem; height: .47rem; margin: 0 .2rem .2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.studio-settings .inbox-radius[open] > summary::after { transform: rotate(225deg); margin-block: .2rem 0; }
.studio-settings .inbox-radius form { margin: 0; padding: 0 0 1rem; border: 0; background: transparent; }
.profile-editor { max-width: 53rem; margin-inline: auto; }
.profile-editor > p,.studio-enroll > p { color: var(--muted); }
.profile-editor #shopProfile { display: grid; gap: 1.15rem; border: 0; padding: 0; background: transparent; }
.profile-editor #shopProfile > section { min-width: 0; background: white; border: 1px solid var(--line); border-radius: .45rem; padding: clamp(1rem,3vw,1.75rem); }
.profile-editor #shopProfile > section h2,.studio-enroll form h2 { font-size: 1.32rem; margin: 0 0 .8rem; color: var(--brand); }
.profile-editor #shopProfile > button { margin: 0; justify-self: start; }
.participation-field { margin: 1.3rem 0 0; padding: 0; border: 0; }
.participation-field legend { padding: 0; }
.participation-field p { margin: .2rem 0 .55rem; color: var(--muted); font-size: .95rem; }
.participation-field > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.participation-field label { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; margin: 0; padding: .45rem .8rem; border: 1px solid var(--outline); border-radius: .45rem; cursor: pointer; }
.participation-field input { margin: 0; }
.participation-field label:has(:checked) { background: var(--tint); border-color: var(--brand); color: var(--brand); }
.review-reason { border-inline-start: 3px solid var(--danger); padding: .7rem 1rem; background: var(--plum-tint); }
.studio-enroll form h2:not(:first-child) { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
:where(.profile-editor,.studio-enroll) input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--brand); background: var(--tint); border: 0; padding: .45rem .65rem; border-radius: .25rem; margin-right: .6rem; }
@media (max-width: 52rem) {
  .desk-layout { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
}
@media (max-width: 42rem) {
  .workshop-rail > div { gap: clamp(.6rem,3vw,1.1rem); overflow-x: auto; }
  .workshop-rail a { font-size: .91rem; }
  .work-landing { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .work-landing-copy { padding: 1.15rem .9rem; }
  .work-landing-copy h2 { font-size: clamp(1.55rem,5.7vw,2.15rem); }
  .work-landing-copy p { font-size: .95rem; margin: .6rem 0 .85rem; }
  .desk-stats > :is(a,button) { padding: .9rem .6rem; justify-content: space-between; }
  .desk-stats span { font-size: .9rem; line-height: 1.35; }
  .desk-heading { align-items: flex-start; }
  .desk-heading h1 { font-size: 2rem; }
  .desk-request-group .request-summary { gap: .45rem; flex-wrap: nowrap; }
}

/* Operator inbox and application review */
main:has(> .operator-desk) { max-width: 76rem; }
.operator-detail { max-width: 52rem; margin-inline: auto; }
.op-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-weight: 600; font-size: .94rem; text-underline-offset: .2em; }
.op-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .7rem 0 1.2rem; border-bottom: 2px solid var(--brand); }
.op-title h1 { color: var(--brand); margin: 0; font-size: clamp(2rem,4vw,3.3rem); letter-spacing: -.055em; }
.op-total { display: inline-flex; align-items: baseline; gap: .25rem; padding: .38rem .9rem; background: var(--pistachio); color: var(--brand); border-radius: 2rem; font-weight: 600; }
.op-total b { margin-left: .15rem; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.op-notice { border-inline-start: .23rem solid var(--success); padding: .7rem 1rem; color: #254f34; background: var(--tint); }
.op-layout { display: grid; grid-template-columns: minmax(12rem,15.5rem) minmax(0,1fr); gap: clamp(1.6rem,4vw,3.5rem); align-items: start; padding-block: 1.5rem; }
.op-menu { display: grid; gap: .15rem; }
.op-menu a { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .85rem; color: var(--ink); border-radius: .4rem; text-decoration: none; font-weight: 600; }
.op-menu strong { color: var(--muted); font-size: .94rem; font-variant-numeric: tabular-nums; }
.op-menu a:hover { background: var(--tint); }
.op-menu a[aria-current] { background: var(--brand); color: white; }
.op-menu a[aria-current] strong { color: white; }
.op-menu a:last-child { margin-top: .6rem; }
.op-mobile-menu { display: none; }
.op-list { min-width: 0; }
.op-list-head,.op-record-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.op-list-head { padding: .25rem 0 .85rem; border-bottom: 1px solid var(--outline); }
.op-list-head h2,.op-decision h2 { margin: 0; font-size: clamp(1.25rem,2.8vw,1.55rem); }
.op-list-head span,.op-meta,.operator-desk time,.operator-detail time { color: var(--muted); font-size: .93rem; font-variant-numeric: tabular-nums; }
.op-entry,.op-record { margin: 0; padding: 1rem .25rem; border-bottom: 1px solid var(--line); }
.op-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .7rem; }
.op-entry h3,.op-record h3 { color: var(--ink); font-size: 1.15rem; line-height: 1.4; margin: 0; }
.op-entry .op-meta { margin: .24rem 0 0; }
.op-empty { color: var(--muted); background: var(--surface); padding: clamp(1.5rem,4vw,2.75rem) 1rem; margin: 0; text-align: center; border-bottom: 1px solid var(--line); }
.op-entry button,.op-actions button,.op-decision button,.op-disclosure button { min-height: 44px; border-radius: .4rem; padding: .48rem .85rem; }
.op-record { padding-block: 1.15rem; }
.op-record .request-gallery img { max-height: 18rem; max-width: 100%; border-radius: .45rem; }
.op-record .op-body { margin: .65rem 0 .85rem; line-height: 1.65; }
.op-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.op-disclosure { margin: .5rem 0 0; }
.op-disclosure form,.op-decision form { margin: .25rem 0 .6rem; padding: 0; border: 0; background: transparent; }
.op-disclosure label,.op-decision label { margin-top: .2rem; }
.op-disclosure textarea,.op-decision textarea { display: block; }
.op-record .case-evidence:not(:empty) { padding: .8rem 1rem; margin-top: .8rem; border-inline-start: 3px solid var(--outline); background: white; }
.op-sheet,.op-decision { margin: 1.1rem 0; padding: clamp(1rem,3vw,1.65rem); border: 1px solid var(--line); background: var(--surface); border-radius: .65rem; }
.op-sheet > h2 { font-size: 1.4rem; margin: 0 0 .75rem; }
.op-sheet > h3 { font-size: 1.05rem; margin: 1.25rem 0 .45rem; }
.operator-facts { margin: .5rem 0; }
.operator-facts > div { display: grid; grid-template-columns: minmax(6rem,8.5rem) minmax(0,1fr); gap: .5rem 1rem; padding: .62rem 0; border-bottom: 1px solid var(--line); }
.operator-facts dt { color: var(--muted); font-weight: 600; font-size: .96rem; }
.operator-facts dd { margin: 0; color: var(--ink); white-space: pre-line; }
.op-decision > button { margin-top: .8rem; }
.op-decision details { margin-top: .85rem; padding-top: .45rem; border-top: 1px solid var(--line); }
.op-decision details > summary,.op-record details:has([data-act^="restrict:"]) > summary { color: var(--danger); }
.op-decision form button,.op-record [data-act^="restrict:"] { border-color: var(--danger); color: var(--danger); background: white; }
@media (max-width: 46rem) {
  .op-layout { grid-template-columns: minmax(0,1fr); gap: 1.15rem; padding-top: 1rem; }
  .op-menu { display: none; }
  .op-mobile-menu { display: grid; gap: .3rem; }
  .op-mobile-menu label { font-size: .94rem; margin: 0; }
  .op-mobile-menu select { min-height: 44px; }
  .op-title { padding-block: .4rem .85rem; }
}
@media (max-width: 30rem) {
  .op-entry { grid-template-columns: minmax(0,1fr); }
  .op-entry button { justify-self: start; }
  .operator-facts > div { grid-template-columns: minmax(0,1fr); gap: .1rem; }
}

/* 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; }

@font-face {
  font-family: "Studio Serif KR";
  src: url("/studio-serif-kr.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Catalog Serif";
  src: url("/catalog-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --field-display: "Catalog Serif", "Studio Serif KR", "Noto Serif CJK KR", "Batang", serif;
  --field-wash: #f1f2e9;
  --field-evergreen: #374433;
  --field-stroke: #85877e;
  --field-rule: #cdd0c2;
}

/* Give section titles their own voice; controls use the same sans as the catalog. */
#app :is(.composer-index,.workspace-heading,.desk-heading,.profile-editor,.enroll-page,.guest-access,.class-title,.schedule-index,.class-page) h1,
#app:has(> form) > h1, #app .studio-profile-head .profile-byline h1 {
  font-family: var(--field-display); font-weight: 400; letter-spacing: -.057em;
  line-height: 1.24; color: var(--brand);
}
#app :is(.composer-part,.profile-editor #shopProfile > section,.studio-enroll form,.enroll-page form,.class-roster,.workspace-section-title,.desk-panel-title,.studio-side-heading,.album-heading) h2,
#app:has(> #offer) > h3 {
  font-family: var(--field-display); font-weight: 400; letter-spacing: -.045em;
  font-size: clamp(1.4rem,2.2vw,1.83rem); line-height: 1.36; color: var(--brand);
}
#app :is(form,.class-filter) :is(label,legend):not(:where(.photo-picker)) {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; font-weight: 400;
  letter-spacing: -.019em; color: var(--ink);
}
:is(#app,dialog) :is(label[for],legend):not(:where(.photo-picker)) { font-weight: 600; }
:is(#app,dialog) label[for]:not(:where(.photo-picker)) { margin-bottom: .45rem; }
#app form :is(label,summary) small { font-size: .875rem; font-weight: 400; color: var(--sheet-muted); }
:is(#app,dialog) :is(input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input:not([type]),textarea) {
  font: 400 1rem/1.5 var(--sans); letter-spacing: -.015em;
  min-height: 48px; padding: .72rem .9rem; border: 1px solid var(--field-stroke);
  border-radius: .5rem; background: var(--surface); color: var(--ink); box-shadow: none;
}
:is(#app,dialog) form:not(.chat-compose) textarea {
  display: block; min-height: 6rem; resize: vertical;
}
:is(#app,dialog) :is(input,textarea):is([readonly],:disabled):not([type="file"],[type="checkbox"],[type="radio"]) {
  background: var(--field-wash); color: var(--muted);
}
:is(#app,dialog) :is(input,textarea)::placeholder { color: #62645e; font-weight: 400; opacity: 1; }
:is(#app,dialog) :is(input:not([type="file"]),textarea,select):focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: none;
}
:is(#app,dialog) :is(input:not([type="file"],[type="checkbox"],[type="radio"]),textarea):focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}

/* The real select always displays the current form value, including restored drafts. */
.field-picker { position: relative; display: block; max-width: 100%; min-width: 0; }
#app .field-picker > select {
  appearance: none; display: block; width: 100%; min-height: 46px;
  padding: .65rem 3rem .65rem .85rem; margin: 0; border: 0;
  border-bottom: 1px solid var(--field-stroke); border-radius: .25rem .25rem 0 0;
  background: #eaf0df; color: var(--field-evergreen); font: 400 1rem/1.5 var(--sans);
  text-overflow: ellipsis; cursor: pointer;
}
.field-picker-hit { position: absolute; inset: 0; cursor: pointer; }
.field-picker-hit::after {
  content: ""; position: absolute; top: 46%; right: 1rem; width: .46rem; height: .46rem;
  border: solid var(--field-evergreen); border-width: 0 1.5px 1.5px 0; transform: translateY(-50%) rotate(45deg);
}
.field-picker:has(select:disabled) { opacity: .6; }
.field-picker:has(select:disabled) .field-picker-hit { cursor: not-allowed; }
#app .class-filter .field-picker { margin-left: 0; min-width: min(13rem,100%); }
#app .class-filter .field-picker-hit { margin: 0; }
#app .composer-part, #app .profile-editor #shopProfile > section {
  background: transparent; border: 0; border-top: 1px solid var(--field-rule);
  border-radius: 0; padding: 1.15rem 0 .6rem;
}
#app .composer-part > h2 { margin: 0 0 1.15rem; border: 0; padding: 0; }
#app #requestProduct, #app .profile-editor #shopProfile > section:first-child { border-top-color: var(--brand); }
#app .composer-form .composer-fields { row-gap: 1.3rem; }
#app .composer-participation { margin-top: 1.35rem; }
#app .composer-options {
  margin-top: .7rem; padding: 0; border: 0; border-block: 1px solid var(--field-rule);
  border-radius: 0; background: transparent;
}
#app .composer-options[open] { padding-bottom: 1rem; }
#app :is(.composer-options,.login-methods,#pinPanel) > summary {
  display: flex; gap: .45rem; align-items: center; justify-content: flex-start;
  min-height: 48px; padding: .55rem 0; font: 400 1rem/1.5 var(--sans); list-style: none;
}
#app :is(.composer-options,.login-methods,#pinPanel) > summary::-webkit-details-marker { display: none; }
#app :is(.composer-options,.login-methods,#pinPanel) > summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--pistachio); color: var(--field-evergreen);
  margin-left: auto; font: 400 1.2rem/1 var(--sans);
}
#app :is(.composer-options,.login-methods,#pinPanel)[open] > summary::after { content: "−"; }
#app .composer-index nav { border-color: var(--field-rule); }
#app .composer-index nav a { font-weight: 400; }
#app #requestImages .request-photo { background: transparent; padding: 0; }
#app .composer-part .visit-regions legend { margin-bottom: .35rem; }
#app .composer-part .visit-regions label[for="visitProvince"] { font-size: .925rem; color: var(--sheet-muted); }
#app .composer-check,#app .check-line { gap:.55rem; min-height:44px; cursor:pointer; }
#app form :is(input[type="checkbox"],input[type="radio"]) {
  appearance: none; display: inline-grid; place-content: center; width: 1.22rem; height: 1.22rem;
  min-height: 0; padding: 0; border: 1px solid #878e7d; border-radius: .28rem;
  background: var(--surface); vertical-align: -.2em; cursor: pointer;
}
#app form input[type="radio"] { border-radius: 50%; }
#app form :is(input[type="checkbox"],input[type="radio"]):checked { border-color: var(--brand); background: var(--brand); }
#app form input[type="checkbox"]:checked::after {
  content: ""; width: .52rem; height: .28rem; border: solid white; border-width: 0 0 1.6px 1.6px;
  transform: translateY(-1px) rotate(-45deg);
}
#app form input[type="radio"]:checked::after { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: white; }
#app .craft-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10.75rem),1fr)); gap: .5rem; }
#app .craft-choices label {
  position: relative; display: grid; grid-template-columns: 2.25rem minmax(0,1fr) auto; align-items: center;
  gap: .5rem; margin: 0; padding: .35rem .55rem .35rem .36rem; min-height: 48px;
  border: 1px solid var(--field-rule); border-radius: .35rem; background: white; cursor: pointer;
}
#app .craft-choices label img { width: 2.25rem; height: 2.25rem; border-radius: .16rem; object-fit: cover; grid-column: 1; grid-row: 1; }
#app .craft-choices label span { grid-column: 2; grid-row: 1; font-size: .94rem; }
#app .craft-choices label input { grid-column: 3; grid-row: 1; margin: 0; }
#app :is(.craft-choices,.district-options,.participation-field) label:has(:checked) { border-color: #889878; background: #e6ecd9; color: #283824; }
#app .district-options { gap:.4rem; }
#app .district-options label, #app .participation-field label {
  display: inline-flex; justify-content: flex-start; min-height: 44px; gap: .5rem; padding: .45rem .7rem;
  margin: 0; border: 1px solid var(--field-rule); border-radius: .35rem; background: var(--surface); cursor: pointer;
}

/* An image index for crafts, a short text list for all other single choices. */
dialog.selection-sheet {
  position: fixed; inset: 0; margin: auto; width: min(38rem,calc(100% - 2rem));
  height: fit-content; max-height: min(79dvh,43rem); padding: 0; border: 1px solid #bfc3b4;
  border-radius: .75rem; background: #fafbf6; color: var(--ink); box-shadow: 0 18px 60px rgb(31 34 25 / 20%);
  overflow: hidden;
}
dialog.selection-sheet[open] { display: flex; flex-direction: column; }
.selection-sheet::backdrop { background: rgb(31 28 28 / 42%); }
.selection-heading { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--field-rule); background: #eef2e4; }
dialog.selection-sheet h2 { margin: 0; font: 400 clamp(1.4rem,3vw,1.85rem)/1.25 var(--field-display); letter-spacing: -.04em; color: var(--brand); }
.selection-close { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 400 1.65rem/1 var(--sans); }
.selection-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: .15rem; padding: .8rem 1.1rem 1.1rem; }
.selection-crafts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.selection-option {
  display: flex; align-items: center; gap: .65rem; min-width: 0; min-height: 48px; margin: 0;
  padding: .55rem .65rem; text-align: start; border: 1px solid transparent; border-radius: .3rem;
  background: transparent; color: var(--ink); font: 400 1rem/1.38 var(--sans);
}
.selection-option[aria-pressed="true"] { border-color: #849471; background: #e5ecd8; color: #273c24; }
.selection-option[aria-pressed="true"]::after {
  content: ""; width: .52rem; height: .28rem; flex: none; margin: 0 .1rem 0 auto;
  border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg);
}
.selection-crafts .selection-option { border-color: var(--field-rule); gap: .55rem; padding: .35rem .55rem .35rem .35rem; background: white; }
.selection-crafts .selection-option[aria-pressed="true"] { background: #e5ecd8; border-color: #849471; }
.selection-crafts .selection-option img { width: 2.65rem; height: 2.65rem; border-radius: .15rem; object-fit: cover; }
.selection-option:focus-visible,.selection-close:focus-visible { outline-offset: -3px; }
@media (hover:hover) {
  .selection-option:not(:disabled):hover,.selection-close:hover { background: var(--tint); color: var(--brand); }
  .field-picker:hover select { border-bottom-color: var(--brand); }
}
@media (max-width:39rem) {
  #app .composer-part { padding: 1.1rem 0 .3rem; }
  #app .composer-index h1,#app .profile-editor h1 { font-size: clamp(1.95rem,7vw,2.55rem); }
  #app .composer-index nav { gap: .8rem; margin-top: .35rem; border: 0; }
  #app .craft-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #app .craft-choices label { grid-template-columns: 1.85rem minmax(0,1fr) auto; gap: .33rem; padding: .28rem; }
  #app .craft-choices label img { width: 1.85rem; height: 2.12rem; }
  #app .craft-choices label input { width: 1rem; height: 1rem; }
  dialog.selection-sheet { inset: auto 0 0; width: 100%; max-width: 100%; margin: 0; max-height: 82dvh; border: 0; border-radius: 1rem 1rem 0 0; }
  .selection-heading { padding: .65rem .85rem; }
  .selection-list { padding: .75rem .8rem max(.9rem,env(safe-area-inset-bottom)); }
  .selection-crafts { gap: .4rem; }
  .selection-crafts .selection-option { font-size: .94rem; gap: .4rem; }
  .selection-crafts .selection-option img { width: 2.08rem; height: 2.45rem; }
}
@media(forced-colors:active) {
  #app form :is(input[type="checkbox"],input[type="radio"]) { appearance: auto; }
  #app form :is(input[type="checkbox"],input[type="radio"])::after { display:none; }
  .selection-option[aria-pressed="true"] { border-color: Highlight; }
  .field-picker-hit::after { border-color: ButtonText; }
}

/* Conversation list and rooms share the workshop's plum and pistachio palette. */
.chat-inbox, #app > .chat-room {
  --chat-paper: #f7f7f2;
  --chat-rule: #dcded3;
  --chat-secondary: #5e595c;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}
.chat-inbox h1 {
  margin: .8rem 0 1.4rem;
  color: var(--brand);
  font: 400 clamp(2.25rem,5vw,3.6rem)/1.15 var(--field-display);
  letter-spacing: -.06em;
}
.chat-inbox > .back { font-size: .94rem; }
.thread-list { border-top: 2px solid var(--brand); }
#app .thread-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(.7rem,2vw,1.3rem);
  width: 100%;
  margin: 0;
  padding: 1.05rem .65rem;
  border: 0;
  border-bottom: 1px solid var(--chat-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
}
#app .thread-item:is(:hover,:focus-visible) { background: #f0f1e7; }
.thread-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: .95rem;
  background: var(--plum-tint);
  color: var(--brand);
}
.thread-mark::before, .thread-mark::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: .85rem;
  border: 2px solid currentColor;
  border-radius: .45rem .45rem .45rem .08rem;
}
.thread-mark::after { width: .48rem; height: 2px; border: 0; border-radius: 1px; background: currentColor; }
.thread-group .thread-mark { color: #334537; background: #e4ebd3; }
.thread-group .thread-mark::before { transform: translate(-.16rem,.12rem); background: inherit; z-index: 1; }
.thread-group .thread-mark::after { width: 1.02rem; height: .75rem; border: 2px solid currentColor; border-radius: .35rem; background: transparent; transform: translate(.18rem,-.15rem); }
.thread-copy,.thread-side { display: grid; min-width: 0; gap: .15rem; }
.thread-copy > :is(strong,span):not(.thread-kind) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread-kind { color: var(--plum); font: 600 .875rem/1.35 var(--sans); }
.thread-group .thread-kind { color: #42543e; }
.thread-copy strong { font: 700 1.15rem/1.45 var(--sans); letter-spacing: -.035em; }
.thread-context,.thread-side time { color: var(--chat-secondary); font-size: .875rem; font-weight: 400; }
.thread-preview { font-size: 1rem; font-weight: 400; }
.thread-side { justify-items: end; gap: .35rem; }
.thread-side time { font-size: .8125rem; }
.thread-unread { min-width: 1.55rem; padding: .12rem .45rem; border-radius: 99px; background: var(--brand); color: white; text-align: center; font: 700 .8125rem/1.45 var(--sans); }
.thread-empty { display: grid; justify-items: center; gap: .35rem; margin: auto; padding: 2rem 1rem; color: var(--ink); text-align: center; }
.thread-empty .thread-mark { margin-bottom: .35rem; }
.thread-empty strong { font-weight: 600; }
.thread-empty p { margin: 0; color: var(--chat-secondary); font-size: .95rem; }
/* A compact room brief sits beside the conversation on larger screens. */
#app > .chat-room {
  --room-ink: #202722;
  --room-muted: #545f59;
  --room-edge: #d2dbd3;
  display: grid;
  grid-template-columns: clamp(12rem,23%,17rem) minmax(0,1fr);
  max-width: 72rem;
  height: clamp(28rem,77dvh,55rem);
  background: #fff;
  color: var(--room-ink);
  border: 1px solid var(--room-edge);
  border-radius: .85rem;
  box-shadow: 0 .5rem 2rem rgb(41 54 44 / 5%);
}
#app .chat-room .chat-heading {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; overflow-y: auto;
  padding: 1rem clamp(1rem,2vw,1.75rem) 1.3rem;
  border: 0; border-inline-end: 1px solid var(--room-edge);
  background: #f0f3ee; color: var(--room-ink);
}
.room-back,.room-tools { max-width: 100%; }
#app .room-back :is(a,button),#app .room-tools :is(a,button) {
  display: inline-flex; align-items: center; min-height: 44px;
  margin: 0; padding: .3rem .15rem; border: 0; border-radius: .25rem;
  background: transparent; color: #384a3d; text-decoration: none; font: 600 .875rem/1.35 var(--sans);
}
#app .room-tools :is(a,button) { text-decoration: underline; text-underline-offset: .24em; }
#app .chat-room .chat-identity { margin: 2.25rem 0 0; min-width: 0; }
#app .chat-room .chat-identity .thread-kind { display: block; margin-bottom: .48rem; color: #526153; }
#app .chat-room .chat-identity h1 {
  color: var(--room-ink); margin: 0; font: 400 clamp(1.55rem,2.6vw,2.36rem)/1.3 var(--field-display);
  letter-spacing: -.055em; overflow-wrap:anywhere;
}
#app .chat-room .chat-identity p { margin: .65rem 0 0; color: #414e44; font: 400 1rem/1.5 var(--sans); }
.room-schedule { display: grid; gap: .2rem; margin-top: 1.55rem; padding-top: .85rem; border-top: 1px solid var(--room-edge); width: 100%; font-size: .9rem; }
.room-schedule span { color: var(--room-muted); font-size: .875rem; }
.room-tools { margin-top: auto; padding-top: 1rem; }
.chat-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: white; overflow: hidden; }
.chat-room .chat-log { gap: .95rem; padding: 1.45rem clamp(.9rem,3vw,2.2rem); scrollbar-width: thin; scrollbar-color: #b6c1b8 transparent; }
.chat-day { display: flex; flex: none; align-items: center; gap: .8rem; margin: .5rem 0; color: var(--room-muted); font: 600 .8125rem/1.4 var(--sans); }
.chat-day::after { content: ""; height: 1px; flex: 1; background: #e0e5df; }
.chat-room .chat-line, #classLog .chat-line { display: flex; align-items: flex-start; gap: .55rem; flex: none; width: fit-content; max-width: min(88%,41rem); min-width: 0; }
.chat-line.outgoing { align-self: flex-end; }
.chat-room .chat-line.continued { margin-top: -.7rem; }
.speaker-initial {
  flex: 0 0 2.15rem; display: grid; place-items: center; height: 2.15rem; margin-top: .05rem;
  border-radius: 50%; color: #414852; background: #e2e7ed; font: 600 .9375rem/1 var(--sans);
}
.speaker-initial.tone-1 { background: #e4eadd; color: #3d5041; }
.speaker-initial.tone-2 { background: #efe2da; color: #634634; }
.speaker-initial.tone-3 { background: #ebe4ec; color: #514353; }
.chat-line.incoming.continued { margin-inline-start: 2.7rem; }
.chat-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.outgoing .chat-content { align-items: flex-end; }
.chat-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; max-width:100%; margin: 0 .15rem .24rem; }
.outgoing .chat-byline { justify-content: flex-end; }
.chat-author { color: #233228; font: 650 .9375rem/1.35 var(--sans); overflow-wrap:anywhere; }
.chat-author small { margin-inline-start:.15rem; color:var(--room-muted); font:400 .8125rem/1.35 var(--sans); }
.chat-byline time { color: var(--room-muted); font: 400 .8125rem/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.chat-author.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bubble-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; max-width:100%; }
.outgoing .bubble-row { justify-content:flex-end; }
.chat-room .bubble {
  min-width:0; max-width:100%; margin:0; padding:.66rem .92rem;
  border:0; border-radius:.25rem 1rem 1rem; background:#f1f3f0; color:var(--room-ink);
  font:400 1rem/1.55 var(--sans); overflow-wrap:anywhere; word-break:normal;
}
.chat-room .outgoing .bubble { background:#e0ebda; color:#1e3729; border-radius:1rem .25rem 1rem 1rem; }
.chat-room .bubble-menu summary { display:grid; place-items:center; min-width: 1.85rem; min-height: 1.85rem; color:var(--room-muted); font:700 1.05rem/1 var(--sans); border-radius:50%; cursor:pointer; }
.chat-room .bubble-menu summary:hover,.chat-room .bubble-menu[open] summary { background:#eef1ed; }
.chat-room .bubble-menu > div { display:flex; flex-wrap:wrap; gap:.2rem; }
.chat-room .bubble-menu button,#app #classEarlier { margin:0; padding:.35rem .7rem; min-height:44px; font-size:.875rem; }
#app #classEarlier { align-self:center; flex:none; margin:.35rem 0; background:white; border:1px solid var(--room-edge); border-radius:2rem; }
#app .chat-status:not(:empty),#app .chat-error:not(:empty) { margin:0; padding:.45rem 1rem; color:#5e253a; background:#f6edef; font:.9rem/1.5 var(--sans); }
#app .chat-error:empty { display:none; }
.room-name-prompt { flex:none; margin:.6rem 1rem; padding:.7rem 1rem; border:1px solid var(--room-edge); border-radius:.7rem; background:#f3f6f1; }
.room-name-prompt p { margin:0 0 .35rem; font-size:.95rem; }
.room-name-prompt button { margin:0; min-height:44px; }
#app .chat-room .chat-compose {
  display:flex; align-items:flex-end; flex:none; gap:.3rem;
  width:auto; max-width:none; margin:.4rem clamp(.7rem,2vw,1.6rem) max(1.05rem,env(safe-area-inset-bottom));
  padding:.35rem; border:1px solid #a1ada4; border-radius:1.6rem; background:white;
}
#app .chat-room .chat-compose[hidden] { display:none; }
#app .chat-room .chat-compose:focus-within { border-color:#48614e; box-shadow:0 0 0 2px #cbdac9; }
#app .chat-room .chat-compose textarea,#app .chat-room .chat-compose textarea:focus {
  min-width:0; min-height:44px; max-height:6.2rem; padding:.62rem .85rem; margin:0;
  border:0; outline:0; box-shadow:none; border-radius:1rem; background:transparent; color:var(--room-ink);
  font:400 1rem/1.5 var(--sans); resize:none; field-sizing:content;
}
#app .chat-room .chat-compose button { display:block; flex:none; min-height:44px; padding:.5rem 1.12rem; margin:0; border:0; border-radius:2rem; color:white; background:#2e4436; }
#app .chat-room .chat-compose button:disabled { opacity:.65; }
@media (max-width:48rem) {
  body:has(#app > .chat-room) > :is(header,footer) { display:none; }
  main#app:has(> .chat-room) { padding:0; margin:0; max-width:none; }
  #app > .chat-room { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); height:var(--chat-viewport,100dvh); max-width:none; border:0; border-radius:0; box-shadow:none; }
  #app .chat-room .chat-heading { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.6rem; padding:max(.48rem,env(safe-area-inset-top)) .85rem .52rem; border:0; border-bottom:1px solid var(--room-edge); overflow:visible; }
  #app .chat-room .chat-identity { margin:0; }
  #app .chat-room .chat-identity .thread-kind { margin:0 0 .15rem; font-size:.8125rem; }
  #app .chat-room .chat-identity h1 { font:650 1.1rem/1.32 var(--sans); letter-spacing:-.035em; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  #app .chat-room .chat-identity p { margin:.12rem 0 0; font-size:.875rem; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .room-tools { margin:0; padding:0; }
  .room-schedule { display:none; }
  #app .room-tools :is(a,button) { white-space:nowrap; }
  .chat-inbox h1 { margin-top:.3rem; }
  #app .thread-item { gap:.7rem; padding-inline:.1rem; }
  .thread-item .thread-mark { width:2.6rem; height:2.6rem; }
  .thread-side time { max-width:6rem; text-align:end; }
}
@media (max-width:24rem), (max-height:30rem) and (max-width:48rem) {
  #app .chat-room .chat-identity p { display:none; }
  .chat-room .chat-log { padding-inline:.65rem; }
}
