:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #242422;
  background: #dedcd7;
  --popup-width: 310px;
  --popup-height: 132px;
  --popup-radius: 18px;
  --popup-padding: 20px;
  --duration: 190ms;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
#maybeidontknowyou {
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#portrait, #popups { position: absolute; inset: 0; width: 100%; height: 100%; }
#portrait { display: block; }
#popups {
  pointer-events: none;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
#popups.inspecting { visibility: hidden; }
.popup {
  position: absolute;
  width: var(--popup-width);
  min-height: var(--popup-height);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #fdfcfb;
  border: 1px solid #ffffff80;
  border-radius: var(--popup-radius);
  padding: var(--popup-padding);
  padding-top: max(48px, var(--popup-padding));
  box-shadow: 0 6px 24px #00000019, 0 2px 6px #00000008;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transform-origin: center;
  overflow: hidden;
}
.popup-close {
  position: absolute;
  right: 4px;
  top: 4px;
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.popup-close::before, .popup-close::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  top: calc(50% - .5px);
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.popup-close::after { transform: rotate(-45deg); }
.popup-close:hover { background: #e9e9e5; }
.popup-close:active { background: #ddddd8; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #252521; outline-offset: -4px; }
.popup p { margin: 0 0 17px; padding: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.popup-dismiss {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  margin-top: auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #30302f;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
}
.popup-dismiss:hover { background: #484846; }
.popup-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
#popups[data-dismiss-appearance="soft"] .popup-dismiss { color: #252523; background: #e5e5e1; }
#popups[data-dismiss-appearance="outline"] .popup-dismiss { color: #252523; background: transparent; border-color: #777772; }
#popups[data-dismiss-appearance="soft"] .popup-dismiss:focus-visible,
#popups[data-dismiss-appearance="outline"] .popup-dismiss:focus-visible { outline-color: #252523; }
.popup.dragging { cursor: grabbing; will-change: transform; }
.popup.returning { transition: transform var(--duration) cubic-bezier(.2,.8,.2,1); }
.popup.leaving { pointer-events: none; }
#popups[data-appearance="paper"] .popup { background: #f9f7f1; border-color: #e2ded5; }
#popups[data-appearance="clinical"] .popup { background: #fff; border-color: #dededb; box-shadow: 0 3px 12px #00000013; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#load-error, noscript { position: absolute; inset: 40% 24px auto; padding: 20px; background: #f3f2ef; font-size: 16px; }
.debug {
  position: fixed;
  z-index: 2000;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(320px, calc(100vw - 20px));
  max-height: 85dvh;
  overflow: auto;
  padding: 14px;
  background: #f3f2eff5;
  border: 1px solid #93938e;
  border-radius: 3px;
  box-shadow: 0 8px 30px #0003;
  font-size: 14px;
  touch-action: pan-y;
}
.debug summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.debug label { display: grid; grid-template-columns: 1fr 100px; gap: 12px; align-items: center; margin: 14px 0; }
.debug label:has(input[type="file"]) { display: block; }
.debug input[type="file"] { display: block; width: 100%; margin-top: 8px; }
.debug input[type="range"], .debug select { width: 100%; min-width: 0; accent-color: #42423d; }
.debug input[type="range"] { min-height: 36px; }
.debug textarea { display: block; width: 100%; min-height: 180px; margin: 8px 0; padding: 8px; resize: vertical; font: 12px/1.5 monospace; touch-action: pan-y; }
.debug .schedule-label { display: block; }
.debug-portrait-navigation { display: flex; gap: 8px; margin: 10px 0; }
.debug-portrait-navigation button { flex: 1; min-height: 44px; }
.debug :disabled { opacity: .6; cursor: default; }
.debug select, .debug button { padding: 8px; background: #fff; border: 1px solid #aaa; }
.debug .debug-checkbox { min-height: 44px; cursor: pointer; }
.debug input[type="checkbox"] { justify-self: end; width: 1.375rem; height: 1.375rem; accent-color: #42423d; }
.debug output { display: block; margin: 8px 0; font-variant-numeric: tabular-nums; }
.debug .debug-message { margin: 8px 0 0; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms !important; }
  .popup.returning { transition: none; }
}
