dialog.santa-sheet {
  width: min(510px, calc(100% - 28px)); max-width: 100%; max-height: min(88dvh, 740px);
  padding: 0; overflow: hidden; border: 1px solid #a4bdc0; border-radius: 15px;
  background: #f8fbfa; color: var(--ink); box-shadow: 0 16px 58px #193e4942;
}
.santa-sheet[open] { display: flex; flex-direction: column; }
.santa-sheet::backdrop { background: #18394268; }
.santa-head {
  flex: none; display: flex; gap: 13px; align-items: center; padding: 14px 14px 13px 20px;
  background: linear-gradient(125deg, #e5f1e9, #edf5f5); border-bottom: 1px solid #c2d7d3;
}
.santa-mark {
  display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 12px;
  border: 1px solid #c0d7ca; color: #336753; background: #f5faf4; box-shadow: inset 0 1px #fff;
}
.santa-mark .ui-icon { width: 25px; height: 25px; }
.santa-identity { flex: 1; min-width: 0; }
.santa-sheet p { margin: 0; }
.santa-village { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #47665c; font-size: .8rem; font-weight: 600; }
.santa-head h2 { font: 680 1.5rem/1.16 var(--sans); letter-spacing: -.042em; }
.santa-head h2:focus { outline: none; }
.santa-sheet .icon-button { border-radius: 50%; }
.santa-toolbar {
  display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 49px; padding: 4px 20px; border-bottom: 1px solid #d8e3df; background: #f0f6f4;
}
.santa-season { display: inline-flex; align-items: center; gap: 0; font-size: .86rem; font-weight: 650; }
.santa-sheet select, .santa-field input {
  min-width: 0; border: 1px solid #a4bbb7; border-radius: 6px; padding: 7px 9px;
  font: 500 1rem/1.25 var(--sans); color: var(--ink); background: white;
}
.santa-season > span { margin-right: 9px; }
.santa-season input, .santa-sheet .santa-arrow {
  border: none; background: transparent; color: #36594e; font: 650 .94rem/1 var(--sans); height: 40px;
}
.santa-season input { appearance: textfield; width: 4ch; box-sizing: content-box; text-align: center; padding: 0 2px; }
.santa-season input::-webkit-inner-spin-button { appearance: none; }
.santa-sheet .santa-arrow { padding: 0; min-width: 36px; min-height: 40px; font-size: 1.5rem; }
.santa-sheet .santa-arrow:hover { background: #e2ede7; }
.santa-phase { font-size: .84rem; font-weight: 650; color: #48695a; }
.santa-body {
  display: grid; gap: 18px; align-content: start; min-height: 0; padding: 19px 20px;
  overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; scrollbar-width: thin;
}
.santa-body:empty { display: none; }
.santa-body[inert] { opacity: .62; }
.santa-body h3, .santa-roster summary strong { font: 700 1.02rem/1.35 var(--sans); }
.santa-note, .santa-facts { font-size: .9rem; line-height: 1.45; color: #506960; }
.santa-facts { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.santa-facts span { font-weight: 650; }
.santa-field { display: grid; gap: 5px; min-width: 0; font-size: .88rem; font-weight: 650; }
.santa-field :is(select,input) { width: 100%; min-height: 44px; }
.santa-roster { border: 1px solid #c7d8d2; border-radius: 8px; background: #fff; overflow: clip; }
.santa-roster summary { padding: 9px 12px; min-height: 43px; cursor: pointer; color: #335a4f; }
.santa-roster summary:focus-visible { outline-offset: -3px; }
.santa-roster summary strong { margin-inline: 5px; color: var(--ink); }
.santa-count { float: right; color: #516c61; font-size: .82rem; line-height: 24px; }
.santa-families { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; padding: 5px 12px 7px; border-top: 1px solid #e0e9e4; }
.santa-person, .santa-both { display: flex; gap: 8px; align-items: center; min-height: 42px; cursor: pointer; font-size: .92rem; }
.santa-person input, .santa-both input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: #356c57; }
.santa-child { position: relative; padding-left: 18px; font-size: .86rem; }
.santa-child::before { content: ""; position: absolute; left: 6px; top: 4px; height: 17px; width: 6px; border: solid #bacdc2; border-width: 0 0 1px 1px; border-radius: 0 0 0 3px; }
.santa-section { display: grid; gap: 7px; }
.santa-pickers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.santa-add, .santa-pair { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.santa-pair { border-top: 1px solid #dae5e0; font-size: .88rem; }
.santa-sheet .button { border-radius: 6px; }
.santa-sheet .button:disabled { cursor: default; opacity: .55; }
.santa-sheet .santa-link { background: none; color: #286858; border: none; min-height: 42px; padding: 5px 3px; font-size: .86rem; }
.santa-sheet .santa-link:hover { text-decoration: underline; }
.santa-envelope {
  overflow: hidden; position: relative; display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 14px 18px 20px; border: 1px solid #cad9cd; border-radius: 7px;
  background: #f9fbf3; box-shadow: 0 2px 0 #dfe9df;
}
.santa-envelope::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: repeating-linear-gradient(145deg,#65917b 0 9px,#f3f5ea 9px 16px,#bd6b6a 16px 25px,#f3f5ea 25px 32px);
}
.santa-seal { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; color: #fff; background: #a24f55; }
.santa-seal .ui-icon { width: 19px; height: 19px; }
.santa-card-content { min-width: 0; display: grid; justify-items: start; gap: 9px; }
.santa-answer { font-size: 1.6rem; line-height: 1.15; letter-spacing: -.04em; }
.santa-card-actions, .santa-actions { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; }
.santa-footer { flex: none; background: #eff5f2; border-top: 1px solid #cbdcd3; }
.santa-footer:has(.santa-feedback:empty):has(.santa-actions:empty) { display: none; }
.santa-feedback:not(:empty) { padding: 10px 20px; color: #305c48; font-size: .89rem; line-height: 1.4; }
.santa-feedback.is-error { color: #873b42; }
.santa-actions:not(:empty) { justify-content: flex-end; padding: 9px 20px max(9px,env(safe-area-inset-bottom)); }
.santa-feedback:not(:empty) + .santa-actions:not(:empty) { padding-top: 0; }
@media (max-width: 520px) {
  dialog.santa-sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 15px 15px 0 0; }
  .santa-head { padding: 10px 9px 10px 15px; }
  .santa-body { padding: 15px; gap: 16px; }
  .santa-toolbar, .santa-actions:not(:empty), .santa-feedback:not(:empty) { padding-inline: 15px; }
}
@media (max-width: 360px) {
  .santa-families { grid-template-columns: minmax(0,1fr); }
  .santa-pickers { gap: 6px; }
  .santa-field select { padding-inline: 4px; }
}
@media (max-height: 460px) {
  dialog.santa-sheet { max-height: 99dvh; }
  .santa-head { padding-block: 3px; }
  .santa-toolbar { min-height: 40px; padding-block: 1px; }
}
