:root {
  color-scheme: light;
  --paper: #f5f0e9;
  --ink: #28211f;
  --muted: #695f5a;
  --wine: #961b23;
  --border: #dbd0c4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.sheet {
  width: min(100%, 610px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) clamp(20px, 5.5vw, 45px) max(40px, env(safe-area-inset-bottom));
}
.masthead { display: flex; align-items: center; gap: 10px; padding: 4px 0 18px; border-bottom: 1px solid var(--border); font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.masthead svg { width: 26px; height: 26px; color: var(--wine); }
.masthead .salon-logo { width: 3rem; height: 3rem; object-fit: contain; }
h1 { margin: clamp(27px, 5.2vw, 46px) 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 7.4vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
h1 em { color: var(--wine); }
.lede, .notice p { color: var(--muted); margin: 10px 0 0; line-height: 1.55; }
form { margin-top: 30px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend, .comment > label { font-size: 15px; font-weight: 650; line-height: 1.5; }
legend { padding: 0; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, 1.7vw, 10px); margin-top: 12px; }
.scale label { position: relative; text-align: center; cursor: pointer; }
.scale input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; }
.face {
  display: grid; place-items: center; height: clamp(48px, 12vw, 62px);
  color: #685650; background: #f9f5ef; border: 1px solid #dfd5c9; border-radius: 13px;
  box-shadow: 2px 3px 5px #78583f12, -2px -2px 4px #ffffff9c;
}
.face svg { width: 29px; height: 29px; }
.scale-label { color: var(--muted); display: block; margin-top: 7px; font-size: .78rem; }
.scale input:checked + .face { color: #fff; background: var(--wine); border-color: #7a1118; box-shadow: inset 1px 2px 4px #5d111a30; }
.scale input:checked ~ .scale-label { color: var(--wine); font-weight: 700; }
.scale input:focus-visible + .face, button:focus-visible, textarea:focus-visible { outline: 2px solid #7e2531; outline-offset: 3px; }
.comment { margin-top: 25px; }
.comment > label { display: flex; align-items: baseline; gap: 8px; }
.optional { font-weight: 400; font-size: .76rem; color: var(--muted); }
textarea { display: block; width: 100%; margin-top: 8px; border-radius: 12px; border: 1px solid var(--border); background: #fbf8f4; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5; padding: 12px 14px; min-height: 92px; resize: vertical; }
textarea::placeholder { color: #716762; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
.secondary { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 12px; border: 1px solid #ad9690; border-radius: 9px; font-size: .87rem; font-weight: 650; color: #64292c; background: transparent; }
.error { color: #88232b; font-size: .93rem; line-height: 1.45; }
.primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 23px; border: 0; border-radius: 13px; font-weight: 650; background: var(--wine); color: #fff; box-shadow: 2px 4px 8px #62121b1c; }
.primary svg { width: 18px; height: 18px; }
.primary:disabled, .secondary:disabled { opacity: .7; cursor: wait; }
.notice { padding-bottom: 30px; }
.secondary { margin-top: 18px; }
@media (hover: hover) {
  .scale label:hover .face { border-color: var(--wine); }
  .primary:hover:not(:disabled) { background: #7d171f; }
  .secondary:hover { background: #ede6de; }
}
@media (min-width: 640px) {
  .sheet { margin-top: clamp(18px, 5vh, 56px); margin-bottom: 32px; border: 1px solid #e7ded2; border-radius: 24px; box-shadow: 7px 9px 30px #72583d10, -5px -5px 17px #fff7; }
}
