:root {
  --wh-bg: #f5f5f7;
  --wh-surface: #ffffff;
  --wh-desk: #ececf0;
  --wh-text: #1d1d1f;
  --wh-text-2: #6e6e73;
  --wh-text-3: #a1a1a6;
  --wh-sep: rgba(60, 60, 67, 0.14);
  --wh-fill: rgba(118, 118, 128, 0.12);
  --wh-fill-2: rgba(118, 118, 128, 0.08);
  --wh-fill-3: rgba(118, 118, 128, 0.2);
  --wh-thumb: #ffffff;
  --wh-accent: #007aff;
  --wh-accent-2: #1a86ff;
  --wh-accent-soft: rgba(0, 122, 255, 0.12);
  --wh-green: #34c759;
  --wh-red: #ff3b30;
  --wh-glass: rgba(250, 250, 252, 0.78);
  --wh-sheet: #ffffff;
  --wh-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
  --wh-shadow-2: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --wh-shadow-page: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px -10px rgba(0, 0, 0, 0.22);
  --wh-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.06), 0 22px 44px -14px rgba(0, 0, 0, 0.3);
  --wh-r-s: 10px;
  --wh-r: 14px;
  --wh-r-l: 20px;
  --wh-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wh-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wh-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wh-soft: cubic-bezier(0.25, 1.25, 0.5, 1);
  --wh-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  --wh-bar-h: 52px;
  --wh-tab-h: 62px;
  --wh-lg-bg: rgba(255, 255, 255, 0.58);
  --wh-lg-strong: rgba(250, 250, 252, 0.82);
  --wh-lg-rim: rgba(255, 255, 255, 0.9);
  --wh-lg-rim-2: rgba(255, 255, 255, 0.35);
  --wh-lg-sheen: rgba(255, 255, 255, 0.4);
  --wh-lg-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.06);
  --wh-lens: rgba(118, 118, 128, 0.14);
  --wh-gutter: 16px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --wh-bg: #000000;
  --wh-surface: #1c1c1e;
  --wh-desk: #0b0b0c;
  --wh-text: #f5f5f7;
  --wh-text-2: #98989f;
  --wh-text-3: #636366;
  --wh-sep: rgba(84, 84, 88, 0.55);
  --wh-fill: rgba(118, 118, 128, 0.24);
  --wh-fill-2: rgba(118, 118, 128, 0.16);
  --wh-fill-3: rgba(118, 118, 128, 0.36);
  --wh-thumb: #636366;
  --wh-accent: #0a84ff;
  --wh-accent-2: #409cff;
  --wh-accent-soft: rgba(10, 132, 255, 0.22);
  --wh-lg-bg: rgba(40, 40, 44, 0.56);
  --wh-lg-strong: rgba(36, 36, 40, 0.86);
  --wh-lg-rim: rgba(255, 255, 255, 0.28);
  --wh-lg-rim-2: rgba(255, 255, 255, 0.06);
  --wh-lg-sheen: rgba(255, 255, 255, 0.08);
  --wh-lg-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.4);
  --wh-lens: rgba(255, 255, 255, 0.13);
  --wh-green: #30d158;
  --wh-red: #ff453a;
  --wh-glass: rgba(22, 22, 24, 0.72);
  --wh-sheet: #1c1c1e;
  --wh-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --wh-shadow-2: 0 4px 16px rgba(0, 0, 0, 0.4);
  --wh-shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -10px rgba(0, 0, 0, 0.8);
  --wh-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 26px 50px -14px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--wh-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--wh-font);
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--wh-text);
  background: var(--wh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--wh-ease), color 0.4s var(--wh-ease);
}

.wh-preload *,
.wh-preload *::before,
.wh-preload *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

html.wh-locked,
html.wh-locked body {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
  opacity: 0.35;
}

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--wh-accent-soft);
  outline-offset: 2px;
  border-radius: 10px;
}

::selection {
  background: var(--wh-accent-soft);
}

.wh-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wh-i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wh-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wh-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: calc(var(--wh-bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--wh-gutter), env(safe-area-inset-right)) 0 max(var(--wh-gutter), env(safe-area-inset-left));
  background: var(--wh-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--wh-sep);
}

.wh-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-left: -10px;
  padding: 0 10px 0 0;
  border-radius: 12px;
  color: var(--wh-accent);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.2s, transform 0.35s var(--wh-spring);
}

.wh-back-i {
  width: 30px;
  height: 30px;
  stroke-width: 2.3;
  transition: transform 0.35s var(--wh-spring);
}

.wh-back:active {
  opacity: 0.35;
  transform: scale(0.97);
}

@media (hover: hover) {
  .wh-back:hover {
    opacity: 0.75;
  }
  .wh-back:hover .wh-back-i {
    transform: translateX(-2px);
  }
}

.wh-title {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




.wh-bar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wh-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wh-accent);
  transition: background-color 0.2s, transform 0.35s var(--wh-spring), opacity 0.2s;
}

.wh-icon-btn:active {
  transform: scale(0.88);
}

.wh-icon-btn-fill {
  width: 30px;
  height: 30px;
  background: var(--wh-fill);
  color: var(--wh-text-2);
}

.wh-icon-btn-fill .wh-i {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.wh-icon-btn-glass {
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@media (hover: hover) {
  .wh-icon-btn:hover {
    background: var(--wh-fill-2);
  }
  .wh-icon-btn-fill:hover {
    background: var(--wh-fill-3);
  }
  .wh-icon-btn-glass:hover {
    background: rgba(255, 255, 255, 0.24);
  }
}






.wh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  background: var(--wh-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s var(--wh-spring), background-color 0.2s, box-shadow 0.2s;
}

.wh-pill .wh-i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.wh-pill:active {
  transform: scale(0.94);
}

@media (hover: hover) {
  .wh-pill:hover {
    background: var(--wh-accent-2);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
  }
}

.wh-stage {
  flex: 1;
  min-height: 0;
}

.wh-pane {
  min-width: 0;
}


.wh-card {
  background: var(--wh-surface);
  border-radius: var(--wh-r);
}

.wh-side-switch {
  display: none;
}

.wh-seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 2px;
  border-radius: 10px;
  background: var(--wh-fill);
  isolation: isolate;
}

.wh-seg-thumb {
  position: absolute;
  z-index: -1;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / var(--n));
  border-radius: 8px;
  background: var(--wh-thumb);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.42s var(--wh-soft);
}

.wh-seg > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, transform 0.3s var(--wh-spring);
}

.wh-seg > button[aria-checked='true'],
.wh-seg > button[aria-selected='true'] {
  font-weight: 600;
}

.wh-seg > button:active {
  transform: scale(0.95);
}

@media (hover: hover) {
  .wh-seg > button:not([aria-checked='true']):not([aria-selected='true']):hover {
    opacity: 0.6;
  }
}

.wh-fold {
  overflow: hidden;
}

.wh-fold-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 12px;
  text-align: left;
  border-radius: var(--wh-r);
  transition: background-color 0.2s;
}

.wh-fold-toggle:active {
  background: var(--wh-fill-2);
}

.wh-fold-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--wh-accent);
  color: #fff;
  flex: none;
}

.wh-fold-icon .wh-i {
  width: 18px;
  height: 18px;
}

.wh-fold-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--wh-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-fold-label.is-filled {
  color: var(--wh-text);
  font-weight: 500;
}

.wh-chev {
  width: 18px;
  height: 18px;
  color: var(--wh-text-3);
  transition: transform 0.45s var(--wh-soft);
}

.wh-fold.is-open > button .wh-chev,
.wh-more[aria-expanded='true'] .wh-chev {
  transform: rotate(180deg);
}

.wh-fold-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--wh-ease);
}

.wh-fold.is-open > .wh-fold-body {
  grid-template-rows: 1fr;
}

.wh-fold-inner {
  min-height: 0;
  overflow: hidden;
}

.wh-fold-inner > * {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.4s var(--wh-ease);
}

.wh-fold.is-open .wh-fold-inner > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

.wh-fields {
  display: grid;
  gap: 8px;
  padding: 2px 12px 14px;
}

.wh-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--wh-r-s);
  background: var(--wh-fill-2);
  font-size: 16px;
  transition: background-color 0.2s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.wh-input::placeholder {
  color: var(--wh-text-3);
}

.wh-input:focus {
  background: var(--wh-surface);
  box-shadow: 0 0 0 1px var(--wh-accent), 0 0 0 4px var(--wh-accent-soft);
}

.wh-input-wrap {
  position: relative;
}

.wh-input-wrap .wh-input {
  padding-right: 84px;
}

.wh-input-chip {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--wh-accent-soft);
  color: var(--wh-accent);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s var(--wh-spring), background-color 0.2s;
}

.wh-input-chip:active {
  transform: scale(0.92);
}

.wh-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}

.wh-textarea {
  flex: 1;
  width: 100%;
  min-height: 300px;
  padding: 18px 18px 10px;
  border: 0;
  resize: none;
  background: transparent;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  caret-color: var(--wh-accent);
}

.wh-textarea::placeholder {
  color: var(--wh-text-3);
}

.wh-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px 8px;
  border-top: 0.5px solid var(--wh-sep);
}

.wh-tools {
  display: flex;
  gap: 2px;
}

.wh-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--wh-accent);
  transition: background-color 0.2s, transform 0.35s var(--wh-spring);
}

.wh-tool:active {
  transform: scale(0.86);
  background: var(--wh-fill-2);
}

@media (hover: hover) {
  .wh-tool:hover {
    background: var(--wh-fill-2);
  }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--wh-text);
    color: var(--wh-bg);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s, transform 0.25s var(--wh-out);
  }
  [data-tip]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.45s;
  }
  .wh-shuffle[data-tip]::after {
    bottom: auto;
    top: calc(100% + 6px);
  }
}

.wh-count {
  padding-right: 6px;
  font-size: 13px;
  color: var(--wh-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wh-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
}


.wh-page-count {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wh-fill-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-text-2);
  font-variant-numeric: tabular-nums;
}

.wh-shuffle {
  color: var(--wh-text);
}

.wh-shuffle.is-bump .wh-i {
  animation: wh-spin 0.7s var(--wh-soft);
}

.wh-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 4px 0 8px;
}

.wh-page {
  width: 100%;
  max-width: 640px;
  margin: 0;
}

.wh-page.is-new {
  animation: wh-rise 0.55s var(--wh-out) both;
  animation-delay: var(--d, 0ms);
}

.wh-page-sheet {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(100deg, #f4f4f6 30%, #fbfbfc 50%, #f4f4f6 70%) 0 0 / 300% 100%;
  box-shadow: var(--wh-shadow-page);
  cursor: zoom-in;
  transition: transform 0.45s var(--wh-out), box-shadow 0.45s var(--wh-out);
  animation: wh-shimmer 1.4s linear infinite;
}

[data-theme='dark'] .wh-page-sheet {
  background-image: linear-gradient(100deg, #2a2a2c 30%, #333336 50%, #2a2a2c 70%);
}

.wh-page.is-ready .wh-page-sheet {
  animation: none;
  background: #fff;
}

.wh-page-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s var(--wh-out);
}

.wh-page.is-ready .wh-page-canvas {
  opacity: 1;
}

.wh-page-wrap {
  position: relative;
  transition: transform 0.45s var(--wh-out);
}

@media (hover: hover) {
  .wh-page-wrap:hover {
    transform: translateY(-3px);
  }
  .wh-page-wrap:hover .wh-page-sheet {
    box-shadow: var(--wh-shadow-lift);
  }
}

.wh-page-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wh-float {
  position: absolute;
  pointer-events: auto;
  border-radius: 3px;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  outline: none;
  transition: box-shadow 0.25s var(--wh-out);
}

@media (hover: hover) {
  .wh-float:hover {
    box-shadow: 0 0 0 1.5px rgba(0, 122, 255, 0.5);
  }
}

.wh-float:focus-visible,
.wh-float.is-selected {
  box-shadow: 0 0 0 2px var(--wh-accent), 0 0 0 6px var(--wh-accent-soft);
  touch-action: none;
}

.wh-float.is-live {
  cursor: grabbing;
  box-shadow: 0 0 0 2px var(--wh-accent), 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: none;
}

.wh-float.is-live.is-ink {
  mix-blend-mode: multiply;
  box-shadow: 0 0 0 2px var(--wh-accent);
}

.wh-float.is-live.is-print {
  outline: 3.5px solid #fbfaf7;
  box-shadow: 0 0 0 5.5px var(--wh-accent), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.wh-float-handle {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--wh-accent), 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.4s var(--wh-spring);
}

.wh-float-handle::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

.wh-float.is-selected .wh-float-handle {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wh-float-bar {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--wh-lg-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.3), 0 0 0 0.5px var(--wh-sep), inset 0 0.5px 0 var(--wh-lg-rim);
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.4s var(--wh-soft);
}

.wh-float.is-below .wh-float-bar {
  top: calc(100% + 16px);
  bottom: auto;
  transform: translate(-50%, -6px) scale(0.85);
}

.wh-float.is-selected:not(.is-live) .wh-float-bar {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.wh-float-bar button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wh-text);
  transition: background-color 0.15s, transform 0.3s var(--wh-spring);
}

.wh-float-bar button[data-fa='delete'] {
  color: var(--wh-red);
}

.wh-float-bar button:active {
  transform: scale(0.88);
  background: var(--wh-fill);
}

@media (hover: hover) {
  .wh-float-bar button:hover {
    background: var(--wh-fill);
  }
}

.wh-float-bar .wh-i {
  width: 19px;
  height: 19px;
}

.wh-page-num {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--wh-text-3);
  font-variant-numeric: tabular-nums;
}

.wh-group {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--wh-r);
  background: var(--wh-surface);
}

.wh-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wh-group-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.wh-chips {
  display: flex;
  gap: 6px;
  margin: 0 -16px 12px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wh-chips::-webkit-scrollbar {
  display: none;
}

.wh-chip {
  flex: none;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--wh-fill-2);
  color: var(--wh-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--wh-spring);
}

.wh-chip[aria-pressed='true'] {
  background: var(--wh-text);
  color: var(--wh-bg);
}

.wh-chip:active {
  transform: scale(0.92);
}

.wh-fonts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wh-font {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 62px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--wh-fill-2);
  color: var(--wh-text);
  font-size: 22px;
  line-height: 1.2;
  overflow: hidden;
  box-shadow: inset 0 0 0 0 var(--wh-accent);
  transition: transform 0.4s var(--wh-spring), box-shadow 0.3s var(--wh-out), background-color 0.25s;
}

.wh-font.is-bump {
  animation: wh-pop-in 0.45s var(--wh-out) both;
  animation-delay: var(--d, 0ms);
}

.wh-font-sample {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 0;
}

.wh-font:active {
  transform: scale(0.95);
}

.wh-font[aria-pressed='true'] {
  background: var(--wh-accent-soft);
  box-shadow: inset 0 0 0 2px var(--wh-accent);
}

.wh-font.is-hidden {
  display: none;
}

.wh-font-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wh-accent);
  color: #fff;
  transform: scale(0);
  transition: transform 0.4s var(--wh-spring);
}

.wh-font-check .wh-i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.wh-font[aria-pressed='true'] .wh-font-check {
  transform: scale(1);
}

.wh-font.is-loading .wh-font-check {
  transform: scale(1);
  background: transparent;
  border: 2px solid var(--wh-accent-soft);
  border-top-color: var(--wh-accent);
  animation: wh-spin 0.7s linear infinite;
}

.wh-font.is-loading .wh-font-check .wh-i {
  opacity: 0;
}

.wh-font-add {
  flex-direction: column;
  gap: 2px;
  font-family: var(--wh-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--wh-accent);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--wh-fill-3);
  border: 0;
}

.wh-font-add .wh-i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  transition: transform 0.5s var(--wh-spring);
}

@media (hover: hover) {
  .wh-font:not([aria-pressed='true']):hover {
    background: var(--wh-fill);
  }
  .wh-font-add:hover .wh-i {
    transform: rotate(90deg);
  }
}

.wh-font-del {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wh-text-3);
  color: var(--wh-surface);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.3s var(--wh-spring);
}

.wh-font-del .wh-i {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.wh-font-user:hover .wh-font-del,
.wh-font-user:focus-within .wh-font-del {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .wh-font-del {
    opacity: 1;
    transform: none;
  }
}

.wh-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border-radius: 10px;
  color: var(--wh-accent);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.3s var(--wh-spring);
}

.wh-more .wh-chev {
  color: currentColor;
}

.wh-more:active {
  transform: scale(0.97);
  background: var(--wh-fill-2);
}

.wh-inks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  justify-items: center;
  padding: 4px 0;
}

.wh-ink {
  position: relative;
  display: block;
  width: 100%;
  max-width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.4s var(--wh-spring);
}

.wh-ink::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--c);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.25s, transform 0.45s var(--wh-spring);
}

.wh-ink[aria-pressed='true']::after,
.wh-ink.is-on::after {
  opacity: 1;
  transform: scale(1);
}

.wh-ink[aria-pressed='true'],
.wh-ink.is-on {
  transform: scale(0.84);
}

.wh-ink:active {
  transform: scale(0.74);
}

[data-theme='dark'] .wh-ink {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

[data-theme='dark'] .wh-ink[data-ink='black']::after {
  border-color: #8e8e93;
}

.wh-ink-pencil {
  background: repeating-linear-gradient(135deg, var(--c) 0 3px, #6d6d72 3px 5px);
}

.wh-ink-custom {
  background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff 82%, #ff3b30 82%);
}

.wh-ink-custom::before {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--wh-surface);
  transform: scale(0);
  transition: transform 0.4s var(--wh-spring);
}

.wh-ink-custom.is-on::before {
  transform: scale(1);
}

.wh-ink-custom::after {
  border-color: var(--wh-text-3);
}

.wh-ink-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.wh-papers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  margin-bottom: 16px;
}

.wh-paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wh-paper-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 0 0 0 var(--wh-surface), 0 0 0 0 var(--wh-accent);
  transition: transform 0.45s var(--wh-spring), box-shadow 0.3s var(--wh-out);
}

.wh-paper-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wh-paper[aria-pressed='true'] .wh-paper-frame {
  box-shadow: 0 0 0 3px var(--wh-surface), 0 0 0 5px var(--wh-accent);
}

.wh-paper:active .wh-paper-frame {
  transform: scale(0.94);
}

@media (hover: hover) {
  .wh-paper:not([aria-pressed='true']):hover .wh-paper-frame {
    transform: translateY(-3px);
  }
}

.wh-paper-name {
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--wh-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.wh-paper[aria-pressed='true'] .wh-paper-name {
  color: var(--wh-accent);
  font-weight: 600;
}

.wh-paper-custom .wh-paper-thumb {
  background: var(--wh-fill-2);
  box-shadow: inset 0 0 0 1.5px var(--wh-fill-3);
}

.wh-paper-custom.has-image .wh-paper-thumb {
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wh-paper-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--wh-accent);
  pointer-events: none;
}

.wh-paper-custom.has-image .wh-paper-plus {
  display: none;
}

.wh-paper-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wh-text-2);
  color: var(--wh-surface);
  box-shadow: 0 0 0 2px var(--wh-surface);
  transition: transform 0.3s var(--wh-spring);
}

.wh-paper-remove .wh-i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.wh-paper-custom.has-image .wh-paper-remove {
  display: grid;
}

.wh-paper-remove:active {
  transform: scale(0.85);
}

.wh-slider {
  padding: 4px 0 6px;
}

.wh-slider + .wh-slider {
  margin-top: 6px;
}

.wh-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  -webkit-user-select: none;
  user-select: none;
}

.wh-slider-head output {
  font-size: 13px;
  color: var(--wh-text-2);
  font-variant-numeric: tabular-nums;
}

.wh-blank-only {
  display: grid;
  grid-template-rows: auto auto;
  max-height: 80px;
  transition: max-height 0.4s var(--wh-ease), opacity 0.3s, padding 0.4s var(--wh-ease), margin 0.4s var(--wh-ease);
  overflow: hidden;
}

.wh-blank-only.is-off {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  pointer-events: none;
}

.wh-track {
  --kw: 38px;
  --kh: 24px;
  position: relative;
  height: 36px;
  touch-action: pan-y;
}

.wh-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: var(--wh-fill-3);
  overflow: hidden;
  transition: transform 0.4s var(--wh-soft);
}

.wh-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--kw) / 2 + (100% - var(--kw)) * var(--f));
  border-radius: 3px;
  background: var(--wh-accent);
}

.wh-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.wh-range::-webkit-slider-thumb {
  width: var(--kw);
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
}

.wh-range::-moz-range-thumb {
  width: var(--kw);
  height: 36px;
  border: 0;
}

.wh-knob {
  position: absolute;
  top: 50%;
  left: calc((100% - var(--kw)) * var(--f));
  width: var(--kw);
  height: var(--kh);
  margin-top: calc(var(--kh) / -2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  transition: left 0.35s var(--wh-soft), transform 0.45s var(--wh-soft), background-color 0.3s, box-shadow 0.3s;
}

.wh-knob::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.5));
  opacity: 0;
  transition: opacity 0.3s;
}

.wh-track.is-drag .wh-knob {
  transition: transform 0.45s var(--wh-soft), background-color 0.3s, box-shadow 0.3s;
  transform: scale(1.5, 1.55);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(1.5px) saturate(190%) brightness(1.08);
  backdrop-filter: blur(1.5px) saturate(190%) brightness(1.08);
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.1), 0 8px 22px rgba(0, 0, 0, 0.2);
}

.wh-track.is-drag .wh-knob::before {
  opacity: 0.55;
}

.wh-track.is-drag .wh-rail {
  transform: scaleY(1.18);
}

.wh-range:focus-visible ~ .wh-knob {
  box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.14), 0 0 0 4px var(--wh-accent-soft);
}

[data-theme='dark'] .wh-track.is-drag .wh-knob {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 22px rgba(0, 0, 0, 0.5);
}

.wh-fold-plain .wh-more {
  margin-top: 4px;
}

.wh-fold-plain .wh-fold-inner {
  padding-top: 4px;
}

.wh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  font-size: 16px;
}

.wh-row + .wh-row {
  border-top: 0.5px solid var(--wh-sep);
}

.wh-group > .wh-seg + .wh-row {
  margin-top: 8px;
}

.wh-switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--wh-fill-3);
  transition: background-color 0.3s;
}

.wh-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--wh-soft), width 0.25s var(--wh-out);
}

.wh-switch[aria-checked='true'] {
  background: var(--wh-green);
}

.wh-switch[aria-checked='true']::after {
  transform: translateX(20px);
}

.wh-switch:active::after {
  width: 33px;
}

.wh-switch[aria-checked='true']:active::after {
  transform: translateX(14px);
}

.wh-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  margin: 4px 0 8px;
  border-radius: var(--wh-r);
  color: var(--wh-red);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.3s var(--wh-spring);
}

.wh-reset .wh-i {
  width: 18px;
  height: 18px;
}

.wh-reset:active {
  transform: scale(0.97);
  background: var(--wh-fill-2);
}

.wh-tabs {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 40px), 400px);
  height: var(--wh-tab-h);
  padding: 4px;
  border-radius: 999px;
  background: var(--wh-lg-bg);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  box-shadow: var(--wh-lg-shadow);
  transform: translateX(-50%);
  isolation: isolate;
  transition: width 0.55s var(--wh-soft), height 0.55s var(--wh-soft), bottom 0.55s var(--wh-soft), transform 0.5s var(--wh-ease), opacity 0.3s;
}

.wh-tabs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, var(--wh-lg-rim), var(--wh-lg-rim-2) 32%, rgba(255, 255, 255, 0) 52%, var(--wh-lg-rim-2) 78%, var(--wh-lg-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.wh-tabs::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--wh-lg-sheen), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.wh-tab-lens {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--wh-lens);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.55), inset 0 -0.5px 0 rgba(0, 0, 0, 0.04);
  transform: translateX(calc(var(--t) * 100%));
  transition: transform 0.55s var(--wh-soft);
}

.wh-tab-lens.is-bump {
  animation: wh-lens 0.55s var(--wh-out);
}

.wh-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--wh-text);
  transition: color 0.25s, transform 0.35s var(--wh-spring);
}

.wh-tab:active {
  transform: scale(0.92);
}

.wh-tab .wh-i {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.wh-tab-label {
  display: block;
  max-height: 14px;
  overflow: hidden;
  transition: opacity 0.25s, max-height 0.45s var(--wh-soft);
}

.wh-tab[aria-selected='true'] {
  color: var(--wh-accent);
}

.wh-tab[aria-selected='true'] .wh-i {
  stroke-width: 2.1;
  animation: wh-tab-pop 0.5s var(--wh-spring);
}

.wh-app.is-compact .wh-tabs {
  width: min(calc(100% - 140px), 240px);
  height: 50px;
  bottom: calc(8px + env(safe-area-inset-bottom));
}

.wh-app.is-compact .wh-tab-label {
  opacity: 0;
  max-height: 0;
}

.wh-app.is-typing .wh-tabs {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 150%);
}

.wh-tab-icon {
  position: relative;
  display: grid;
}

.wh-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wh-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--wh-bg);
}

.wh-badge.is-bump {
  animation: wh-badge 0.55s var(--wh-spring);
}

.wh-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.5s;
}

.wh-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.wh-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.4s var(--wh-ease);
}

.wh-sheet.is-open .wh-scrim {
  opacity: 1;
}

.wh-sheet-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--wh-sheet);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(105%);
  transition: transform 0.5s var(--wh-ease);
  overscroll-behavior: contain;
}

.wh-sheet.is-open .wh-sheet-card {
  transform: none;
}

.wh-sheet-card.is-dragging {
  transition: none;
}

.wh-grab {
  width: 36px;
  height: 5px;
  margin: 0 auto 6px;
  border-radius: 3px;
  background: var(--wh-fill-3);
}

.wh-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  touch-action: none;
}

.wh-sheet-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.wh-export-peek {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 18px;
  padding: 14px 16px;
  border-radius: var(--wh-r);
  background: var(--wh-fill-2);
}

.wh-stack {
  position: relative;
  flex: none;
  width: 64px;
  height: 92px;
  display: grid;
  place-items: center;
}

.wh-stack-page {
  position: absolute;
  width: 56px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: rotate(calc(var(--k) * 5deg)) translate(calc(var(--k) * 4px), calc(var(--k) * -2px));
  animation: wh-deal 0.6s var(--wh-out) both;
  animation-delay: calc(0.12s + var(--k) * 0.06s);
}

.wh-export-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wh-export-meta strong {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-export-meta span {
  font-size: 13px;
  color: var(--wh-text-2);
}

.wh-sheet-field {
  margin-bottom: 14px;
}

.wh-label {
  display: block;
  margin: 0 0 6px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-text-2);
}

.wh-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border-radius: var(--wh-r);
  background: var(--wh-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--wh-spring), background-color 0.2s, box-shadow 0.2s;
}

.wh-btn:active {
  transform: scale(0.97);
}

.wh-btn-progress {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.22);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  opacity: 0;
  transition: transform 0.35s var(--wh-out), opacity 0.3s;
}

.wh-btn.is-busy .wh-btn-progress {
  opacity: 1;
}

.wh-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-btn-label .wh-i {
  stroke-width: 2.1;
}

.wh-btn.is-done {
  background: var(--wh-green);
}

.wh-btn.is-done .wh-btn-label {
  animation: wh-pop-in 0.45s var(--wh-spring);
}

.wh-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.wh-btn-2 {
  flex: 1;
  margin-top: 0;
  background: var(--wh-fill);
  color: var(--wh-accent);
}

@media (hover: hover) {
  .wh-btn:not(.wh-btn-2):hover {
    background: var(--wh-accent-2);
  }
  .wh-btn.is-done:hover {
    background: var(--wh-green);
  }
  .wh-btn-2:hover {
    background: var(--wh-fill-3);
  }
}

.wh-sketch {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  background: var(--wh-bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.35s var(--wh-ease), transform 0.5s var(--wh-ease), visibility 0s linear 0.5s;
}

.wh-sketch.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--wh-ease), transform 0.5s var(--wh-ease), visibility 0s;
}

.wh-sketch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  border-bottom: 0.5px solid var(--wh-sep);
  background: var(--wh-glass);
}

.wh-sketch-top strong {
  font-size: 17px;
  font-weight: 600;
}

.wh-text-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--wh-accent);
  font-size: 17px;
  transition: opacity 0.2s, transform 0.3s var(--wh-spring);
}

.wh-text-btn:active {
  opacity: 0.5;
}

.wh-text-strong {
  font-weight: 600;
}

.wh-sketch-board {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.wh-sketch-canvas {
  display: block;
  width: min(100%, calc((100dvh - 230px) * 16 / 11));
  aspect-ratio: 16 / 11;
  height: auto;
  border-radius: 14px;
  background-color: #fff;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1.2px);
  background-size: 22px 22px;
  box-shadow: var(--wh-shadow-2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  touch-action: none;
  cursor: crosshair;
}

.wh-sketch-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  flex-wrap: wrap;
}

.wh-seg-tool {
  width: 112px;
}

.wh-seg-tool > button {
  height: 34px;
}

.wh-dots {
  display: flex;
  gap: 4px;
}

.wh-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.3s var(--wh-spring);
}

.wh-dot span {
  display: block;
  border-radius: 50%;
  background: var(--wh-text);
}

.wh-dot[data-size='0'] span {
  width: 5px;
  height: 5px;
}

.wh-dot[data-size='1'] span {
  width: 9px;
  height: 9px;
}

.wh-dot[data-size='2'] span {
  width: 14px;
  height: 14px;
}

.wh-dot[aria-pressed='true'] {
  background: var(--wh-fill);
}

.wh-dot:active {
  transform: scale(0.85);
}

.wh-sketch-actions {
  display: flex;
  gap: 4px;
}

.wh-sketch-actions .wh-icon-btn {
  color: var(--wh-text);
}

.wh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--wh-ease), visibility 0s linear 0.35s;
}

.wh-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--wh-ease), visibility 0s;
}

.wh-lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  pointer-events: none;
}

.wh-lb-top > * {
  pointer-events: auto;
}

.wh-lb-count {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wh-lb-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  display: flex;
  padding: calc(64px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.wh-lb-stage::-webkit-scrollbar {
  display: none;
}

.wh-lb-canvas {
  display: block;
  margin: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transform: scale(0.94);
  transition: transform 0.5s var(--wh-out), width 0.45s var(--wh-ease);
}

.wh-lightbox.is-open .wh-lb-canvas {
  transform: none;
}

.wh-lightbox.is-zoomed .wh-lb-canvas {
  cursor: zoom-out;
}

.wh-lb-canvas.is-slide-l {
  animation: wh-slide-l 0.4s var(--wh-out);
}

.wh-lb-canvas.is-slide-r {
  animation: wh-slide-r 0.4s var(--wh-out);
}

.wh-lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin-top: -21px;
  display: none;
}

.wh-lb-prev {
  left: max(16px, env(safe-area-inset-left));
}

.wh-lb-next {
  right: max(16px, env(safe-area-inset-right));
}

.wh-lightbox.is-single .wh-lb-nav,
.wh-lightbox.is-zoomed .wh-lb-nav {
  display: none !important;
}

.wh-drop {
  position: fixed;
  inset: 12px;
  z-index: 95;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 2px dashed var(--wh-accent);
  background: var(--wh-accent-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.4s var(--wh-out), visibility 0s linear 0.25s;
}

.wh-drop.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.4s var(--wh-out), visibility 0s;
}

.wh-drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--wh-surface);
  box-shadow: var(--wh-shadow-2);
  color: var(--wh-text);
  font-size: 16px;
  font-weight: 600;
}

.wh-drop-card .wh-i {
  width: 34px;
  height: 34px;
  color: var(--wh-accent);
  animation: wh-float 1.6s ease-in-out infinite;
}

.wh-toast {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.94);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -24px) scale(0.86);
  transition: transform 0.5s var(--wh-soft), opacity 0.25s;
}

.wh-toast.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.wh-toast-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 0;
}

.wh-toast-action {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #64b5ff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s var(--wh-spring), background-color 0.2s;
}

.wh-toast-action:active {
  transform: scale(0.92);
}

.wh-toast:has(.wh-toast-action[hidden]) {
  padding-right: 20px;
}

.wh-print {
  display: none;
}

.wh-editor-bar {
  position: relative;
}

.wh-tool-plus .wh-i {
  stroke-width: 2.2;
  transition: transform 0.45s var(--wh-soft);
}

.wh-tool-plus[aria-expanded='true'] {
  background: var(--wh-accent-soft);
}

.wh-tool-plus[aria-expanded='true'] .wh-i {
  transform: rotate(45deg);
}

.wh-menu {
  position: absolute;
  left: 8px;
  bottom: calc(100% + 8px);
  z-index: 20;
  min-width: 210px;
  padding: 6px;
  border-radius: 20px;
  background: var(--wh-lg-strong);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 0.5px var(--wh-sep), inset 0 0.5px 0 var(--wh-lg-rim);
  transform-origin: 22px 100%;
  transform: scale(0.55) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s var(--wh-soft), opacity 0.2s, visibility 0s linear 0.45s;
}

.wh-menu.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.45s var(--wh-soft), opacity 0.2s, visibility 0s;
}

.wh-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--wh-text);
  font-size: 16px;
  text-align: left;
  transition: background-color 0.15s, transform 0.3s var(--wh-spring);
}

.wh-menu button .wh-i {
  color: var(--wh-accent);
}

.wh-menu button:active {
  transform: scale(0.97);
  background: var(--wh-fill);
}

.wh-menu button:focus-visible {
  outline: none;
  background: var(--wh-fill);
}

@media (hover: hover) {
  .wh-menu button:hover {
    background: var(--wh-fill);
  }
}

.wh-steppers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 14px;
}

.wh-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 7px 7px 7px 14px;
  border-radius: var(--wh-r);
  background: var(--wh-fill-2);
  font-size: 15px;
}

.wh-step-ctl {
  display: flex;
  align-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--wh-fill);
}

.wh-step-ctl button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 10px;
  color: var(--wh-text);
  transition: transform 0.3s var(--wh-spring), opacity 0.2s;
}

.wh-step-ctl button .wh-i {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.wh-step-ctl button:active {
  transform: scale(0.82);
}

.wh-step-ctl output {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wh-step-ctl output.is-bump {
  animation: wh-badge 0.45s var(--wh-spring);
}

.wh-table-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(96px, 1fr));
  gap: 6px;
  max-height: min(40vh, 330px);
  margin: 0 -20px 16px;
  padding: 2px 20px 6px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.wh-cell {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: var(--wh-fill-2);
  font-size: 16px;
  transition: background-color 0.2s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.wh-cell[data-r='0'] {
  background: var(--wh-accent-soft);
  font-weight: 600;
}

.wh-cell::placeholder {
  color: var(--wh-text-3);
  font-weight: 500;
}

.wh-cell:focus {
  outline: none;
  background: var(--wh-surface);
  box-shadow: 0 0 0 1px var(--wh-accent), 0 0 0 4px var(--wh-accent-soft);
}

.wh-cell.is-new {
  animation: wh-pop-in 0.35s var(--wh-out) both;
}

.wh-font-draw {
  color: var(--wh-accent);
  background: var(--wh-accent-soft);
  box-shadow: none;
}

.wh-font-draw .wh-i {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

@media (hover: hover) {
  .wh-font-draw:hover .wh-i {
    transform: rotate(-12deg) translateY(-1px);
  }
}

.wh-maker {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: flex;
  flex-direction: column;
  background: var(--wh-bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.35s var(--wh-ease), transform 0.55s var(--wh-ease), visibility 0s linear 0.55s;
}

.wh-maker.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--wh-ease), transform 0.55s var(--wh-ease), visibility 0s;
}

.wh-maker-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  background: var(--wh-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.wh-maker-top > :first-child {
  justify-self: start;
}

.wh-maker-top > :last-child {
  justify-self: end;
}

.wh-maker-top .wh-text-btn:disabled {
  opacity: 0.35;
}

.wh-maker-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.wh-maker-title strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.wh-fm-count {
  font-size: 12px;
  color: var(--wh-text-2);
  font-variant-numeric: tabular-nums;
}

.wh-fm-progress {
  height: 3px;
  background: var(--wh-sep);
}

.wh-fm-progress i {
  display: block;
  height: 100%;
  background: var(--wh-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--wh-out);
}

.wh-maker-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wh-maker-body > * {
  width: 100%;
  max-width: 500px;
}

.wh-fm-strip {
  display: flex;
  gap: 6px;
  padding: 3px 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.wh-fm-strip::-webkit-scrollbar {
  display: none;
}

.wh-fm-tile {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  border-radius: 12px;
  background: var(--wh-surface);
  color: var(--wh-text-3);
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 0 0 0.5px var(--wh-sep);
  scroll-snap-align: center;
  transition: transform 0.35s var(--wh-spring), box-shadow 0.25s var(--wh-out), color 0.2s;
}

.wh-fm-tile > * {
  grid-area: 1 / 1;
}

.wh-fm-tile canvas {
  width: 40px;
  height: 40px;
}

.wh-fm-tile.is-done {
  color: var(--wh-text);
}

.wh-fm-tile.is-done span {
  visibility: hidden;
}

.wh-fm-tile.is-done::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wh-green);
}

.wh-fm-tile[aria-selected='true'] {
  box-shadow: 0 0 0 2px var(--wh-accent);
  color: var(--wh-accent);
}

.wh-fm-tile:active {
  transform: scale(0.9);
}

.wh-fm-pad {
  position: relative;
  width: min(100%, calc(100dvh - 430px));
  min-width: 230px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--wh-shadow-2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.wh-fm-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.wh-fm-canvas.is-swap {
  animation: wh-fade 0.35s var(--wh-out);
}

.wh-fm-char {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.wh-fm-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wh-fm-row .wh-icon-btn {
  color: var(--wh-text);
}

.wh-fm-row .wh-seg {
  flex: 1;
  margin-left: 8px;
}

.wh-fm-actions {
  display: flex;
  gap: 10px;
}

.wh-fm-actions .wh-btn {
  margin-top: 0;
}

.wh-fm-prev {
  flex: none;
  width: 56px;
}

.wh-fm-next {
  flex: 1;
  gap: 6px;
}

.wh-fm-next .wh-i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  transition: transform 0.35s var(--wh-spring);
}

.wh-fm-next:active .wh-i {
  transform: translateX(3px);
}

.wh-fm-next.is-final {
  background: var(--wh-green);
}

.wh-fm-preview {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--wh-r);
  background: var(--wh-surface);
  color: var(--wh-text);
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  transition: opacity 0.3s, color 0.3s;
}

.wh-fm-preview.is-empty {
  color: var(--wh-text-3);
  font-family: var(--wh-font);
  font-size: 17px;
}

.wh-fm-reset {
  width: auto !important;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--wh-red);
  font-size: 15px;
  transition: background-color 0.2s, transform 0.3s var(--wh-spring);
}

.wh-fm-reset:active {
  transform: scale(0.95);
  background: var(--wh-fill-2);
}

@media (min-width: 760px) {
  .wh-fm-pad {
    width: min(100%, calc(100dvh - 400px), 460px);
  }
}

.wh-photo-stage {
  --paper: #fbf1a3;
  display: grid;
  place-items: center;
  min-height: 170px;
  margin: 6px 0 16px;
  padding: 20px;
  border-radius: var(--wh-r);
  background: var(--paper);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wh-photo-canvas {
  display: block;
  max-width: 100%;
  max-height: min(42vh, 360px);
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
}

.wh-photo-canvas.is-swap {
  animation: wh-fade 0.35s var(--wh-out);
}

.wh-photo-stage[data-filter='original'] .wh-photo-canvas {
  mix-blend-mode: normal;
  box-shadow: 0 0 0 4px #fbfaf7, 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: rotate(-0.6deg);
}

.wh-filters {
  display: flex;
  gap: 12px;
  margin: 0 -20px 16px;
  padding: 4px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.wh-filters::-webkit-scrollbar {
  display: none;
}

.wh-filter {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--wh-text-2);
  scroll-snap-align: start;
  transition: color 0.2s;
}

.wh-filter-thumb {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  box-shadow: 0 0 0 0.5px var(--wh-sep);
  transition: transform 0.4s var(--wh-spring), box-shadow 0.3s var(--wh-out);
}

.wh-filter[aria-checked='true'] {
  color: var(--wh-accent);
  font-weight: 600;
}

.wh-filter[aria-checked='true'] .wh-filter-thumb {
  box-shadow: 0 0 0 2px var(--wh-sheet), 0 0 0 4px var(--wh-accent);
}

.wh-filter:active .wh-filter-thumb {
  transform: scale(0.9);
}

.wh-about {
  max-width: 640px;
  margin: 56px auto 12px;
  padding: 0 2px;
  color: var(--wh-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.wh-about h2 {
  margin: 30px 0 12px;
  color: var(--wh-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.wh-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wh-step;
}

.wh-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 16px;
  border-radius: var(--wh-r);
  background: var(--wh-surface);
  counter-increment: wh-step;
}

.wh-steps li::before {
  content: counter(wh-step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wh-accent-soft);
  color: var(--wh-accent);
  font-size: 14px;
  font-weight: 700;
}

.wh-steps strong {
  color: var(--wh-text);
  font-weight: 600;
}

.wh-faq {
  padding: 0 16px;
  border-radius: var(--wh-r);
  background: var(--wh-surface);
}

.wh-faq details + details {
  border-top: 0.5px solid var(--wh-sep);
}

.wh-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.wh-faq summary::-webkit-details-marker {
  display: none;
}

.wh-faq h3 {
  margin: 0;
  color: var(--wh-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.wh-faq details[open] .wh-chev {
  transform: rotate(180deg);
}

.wh-faq p {
  margin: 0 0 16px;
}

.wh-foot {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--wh-text-3);
}

.wh-foot a {
  color: var(--wh-accent);
  font-weight: 600;
  text-decoration: none;
}

.wh-noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99;
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: #1c1c1e;
  color: #fff;
  text-align: center;
}

@media (max-width: 759.98px) {
  .wh-pane {
    display: none;
    padding: 12px var(--wh-gutter) calc(var(--wh-tab-h) + env(safe-area-inset-bottom) + 34px);
    padding-left: max(var(--wh-gutter), env(safe-area-inset-left));
    padding-right: max(var(--wh-gutter), env(safe-area-inset-right));
  }

  .wh-app[data-pane='write'] .wh-pane-write,
  .wh-app[data-pane='preview'] .wh-pane-preview,
  .wh-app[data-pane='style'] .wh-pane-style {
    display: block;
    animation: wh-pane-in 0.42s var(--wh-out) both;
  }

  .wh-app[data-pane='write'] .wh-pane-write {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--wh-bar-h) - env(safe-area-inset-top));
  }

  .wh-textarea {
    min-height: max(280px, calc(100dvh - 380px));
  }

  .wh-editor {
    overflow: visible;
  }

  .wh-editor-bar {
    position: sticky;
    bottom: calc(var(--wh-tab-h) + 18px + env(safe-area-inset-bottom));
    z-index: 2;
    border-radius: 0 0 var(--wh-r) var(--wh-r);
    background: var(--wh-surface);
  }

  .wh-app.is-typing .wh-editor-bar {
    bottom: 0;
  }

  .wh-preview-bar {
    position: sticky;
    top: calc(var(--wh-bar-h) + env(safe-area-inset-top));
    z-index: 5;
    margin: -12px calc(-1 * var(--wh-gutter)) 4px;
    padding: 10px var(--wh-gutter) 10px;
    background: linear-gradient(var(--wh-bg) 70%, transparent);
  }

  .wh-pill span {
    display: none;
  }

  .wh-pill {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (min-width: 480px) and (max-width: 759.98px) {
  .wh-fonts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wh-papers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wh-pill span {
    display: inline;
  }
  .wh-pill {
    width: auto;
    padding: 0 15px 0 12px;
  }
}

@media (min-width: 760px) {
  .wh-app {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .wh-tabs {
    display: none !important;
  }

  .wh-stage {
    display: grid;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: 'switch preview' 'side preview';
  }

  .wh-side-switch {
    display: block;
    grid-area: switch;
    padding: 14px 20px 10px;
    background: var(--wh-surface);
    border-right: 0.5px solid var(--wh-sep);
  }

  .wh-pane {
    display: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--wh-fill-3) transparent;
  }

  .wh-pane-write,
  .wh-pane-style {
    grid-area: side;
    padding: 6px 20px 24px;
    background: var(--wh-surface);
    border-right: 0.5px solid var(--wh-sep);
  }

  .wh-app[data-side='write'] .wh-pane-write {
    display: flex;
    flex-direction: column;
    animation: wh-pane-in 0.4s var(--wh-out) both;
  }

  .wh-app[data-side='style'] .wh-pane-style {
    display: block;
    animation: wh-pane-in 0.4s var(--wh-out) both;
  }

  .wh-pane-preview {
    display: block;
    grid-area: preview;
    padding: 0 32px 40px;
    background: var(--wh-desk);
  }

  .wh-preview-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -32px 8px;
    padding: 14px 32px 12px;
    background: linear-gradient(var(--wh-desk) 70%, transparent);
  }

  .wh-pages {
    gap: 30px;
    padding-top: 6px;
  }

  .wh-card,
  .wh-group {
    background: transparent;
    border-radius: 0;
  }

  .wh-fold.wh-card {
    border-radius: var(--wh-r);
    background: var(--wh-fill-2);
  }

  .wh-editor.wh-card {
    border-radius: var(--wh-r);
    background: var(--wh-fill-2);
    transition: box-shadow 0.25s, background-color 0.25s;
  }

  .wh-editor.wh-card:focus-within {
    background: var(--wh-surface);
    box-shadow: 0 0 0 1px var(--wh-sep), var(--wh-shadow-2);
  }

  .wh-input {
    background: var(--wh-surface);
  }

  .wh-textarea {
    min-height: 200px;
  }

  .wh-group {
    padding: 18px 0;
    margin: 0;
    border-bottom: 0.5px solid var(--wh-sep);
  }

  .wh-group:first-of-type {
    padding-top: 8px;
  }

  .wh-chips {
    margin: 0 -20px 12px;
    padding: 0 20px;
  }

  .wh-paper[aria-pressed='true'] .wh-paper-frame {
    box-shadow: 0 0 0 3px var(--wh-surface), 0 0 0 5px var(--wh-accent);
  }

  .wh-reset {
    margin-top: 14px;
  }

  .wh-sheet {
    align-items: center;
    padding: 24px;
  }

  .wh-sheet-card {
    max-width: 420px;
    border-radius: 22px;
    padding: 16px 24px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 0 0 0.5px var(--wh-sep);
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.5s var(--wh-soft), opacity 0.25s;
  }

  .wh-sheet.is-open .wh-sheet-card {
    opacity: 1;
    transform: none;
  }

  .wh-grab {
    display: none;
  }

  .wh-lb-nav {
    display: grid;
  }

  .wh-lb-stage {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (min-width: 1180px) {
  .wh-stage {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr) minmax(320px, 360px);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'write preview style';
  }

  .wh-side-switch {
    display: none;
  }

  .wh-pane-write,
  .wh-app[data-side] .wh-pane-write {
    display: flex;
    flex-direction: column;
    grid-area: write;
    padding-top: 18px;
    animation: none;
  }

  .wh-pane-style,
  .wh-app[data-side] .wh-pane-style {
    display: block;
    grid-area: style;
    padding-top: 6px;
    border-right: 0;
    border-left: 0.5px solid var(--wh-sep);
    animation: none;
  }
}

@media (min-width: 1500px) {
  .wh-stage {
    grid-template-columns: 420px minmax(0, 1fr) 380px;
  }
  .wh-page {
    max-width: 700px;
  }
}

@keyframes wh-pane-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wh-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wh-pop-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wh-tab-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.82);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wh-lens {
  0% {
    scale: 1 1;
  }
  35% {
    scale: 1.14 0.9;
  }
  100% {
    scale: 1 1;
  }
}

@keyframes wh-fade {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes wh-badge {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wh-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wh-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -50% 0;
  }
}

@keyframes wh-deal {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(0deg);
  }
}

@keyframes wh-slide-l {
  from {
    opacity: 0.2;
    transform: translateX(40px);
  }
}

@keyframes wh-slide-r {
  from {
    opacity: 0.2;
    transform: translateX(-40px);
  }
}

@keyframes wh-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body > *:not(.wh-print) {
    display: none !important;
  }
  html,
  body {
    background: #fff !important;
    margin: 0;
    padding: 0;
  }
  .wh-print {
    display: block;
  }
  .wh-print img {
    display: block;
    object-fit: contain;
    break-after: page;
    page-break-after: always;
  }
  .wh-print img:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
