@font-face {
  font-family: "Studio Serif KR";
  src: url("/studio-serif-kr.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --field-display: "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; }
}
