:root {
  --bg: #f5f5f7;

  --panel:
    rgba(255,255,255,0);

  --panel-strong:
    rgba(255,255,255,0);

  --border:
    rgba(0,0,0,0.08);

  --border-strong:
    rgba(0,0,0,0.12);

  --text: #111111;

  --muted: #6f6f73;

  --radius: 28px;

  --radius-sm: 18px;

  --shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 24px 60px rgba(0,0,0,0.08);

  --shadow-soft:
    0 10px 30px rgba(0,0,0,0.05);

  --active-font:
    system-ui,
    sans-serif;
}

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

  min-width: 0;

  -webkit-tap-highlight-color:
    transparent;
}

html {
  width: 100%;

  min-height: 100%;

  overflow-x: hidden;

  -webkit-text-size-adjust: 100%;

  text-size-adjust: 100%;

  touch-action:
    manipulation;
}

body {
  width: 100%;

  min-height: 100dvh;

  margin: 0;

  overflow-x: hidden;

  overscroll-behavior-y:
    none;

  background:
    linear-gradient(
      180deg,
      #f5f5f7 0%,
      #f3f3f5 100%
    );

  color: var(--text);

  font-family:
    system-ui,
    sans-serif;

  accent-color:
    var(--bg);

  -webkit-font-smoothing:
    antialiased;

  -moz-osx-font-smoothing:
    grayscale;

  text-rendering:
    optimizeLegibility;

  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    calc(
      58px +
      env(safe-area-inset-bottom)
    )
    env(safe-area-inset-left);
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg,
canvas {
  max-width: 100%;

  display: block;
}

.row,
.row * {
  font-family:
    var(--active-font)
    !important;
}

.app {
  width: 100%;

  max-width: 100%;

  margin: 0 auto;

  display: grid;

  gap: 0;
}

.card {
  width: 100%;

  min-height: 100dvh;

  display: grid;

  gap: 22px;

  padding:
    clamp(
      18px,
      3vw,
      34px
    );

  border: none;

  border-radius: 0;

  background:
    transparent;

  box-shadow: none;

  overflow: hidden;

  backdrop-filter: none;

  -webkit-backdrop-filter:
    none;
}

.top {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 14px;

  flex-wrap: wrap;

  margin-bottom: 8px;
}

.pill {
  display: inline-flex;

  align-items: center;

  min-height: 42px;

  padding:
    10px 16px;

  border-radius: 999px;

  border:
    1px solid
    rgba(0,0,0,0.04);

  background:
    rgba(255,255,255,0.58);

  color: var(--muted);

  font-size: 13px;

  font-weight: 600;

  letter-spacing: -0.01em;

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);
}

button {
  appearance: none;

  border:
    1px solid
    rgba(0,0,0,0.04);

  cursor: pointer;

  user-select: none;

  min-height: 52px;

  padding:
    0 20px;

  border-radius:
    var(--radius-sm);

  background:
    rgba(255,255,255,0.76);

  color: var(--text);

  font-size: 14px;

  font-weight: 600;

  letter-spacing: -0.01em;

  box-shadow:
    0 1px 2px rgba(0,0,0,0.04);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  transition:
    opacity 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

button:hover {
  transform:
    translateY(-1px);
}

button:active {
  transform:
    scale(0.985);
}

button:disabled {
  opacity: 0.6;

  cursor: wait;
}

.controls {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(240px,1fr)
    );

  gap: 18px;

  margin-bottom: 6px;
}

.control {
  display: grid;

  gap: 10px;

  padding: 16px;

  border-radius: 22px;

  border:
    1px solid
    rgba(0,0,0,0.04);

  background:
    rgba(255,255,255,0.42);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);
}

.control label {
  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--muted);
}

.control input[type="range"] {
  width: 100%;

  appearance: none;

  height: 8px;

  border-radius: 999px;

  border: none;

  background:
    rgba(0,0,0,0.08);

  outline: none;
}

.control input[type="range"]::-webkit-slider-thumb {
  appearance: none;

  width: 18px;

  height: 18px;

  border-radius: 999px;

  border: none;

  background: #111111;

  cursor: pointer;
}

.control input[type="range"]::-moz-range-thumb {
  width: 18px;

  height: 18px;

  border-radius: 999px;

  border: none;

  background: #111111;

  cursor: pointer;
}

.radio-group {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0,1fr));

  gap: 10px;

  align-items: stretch;
}

.radio {
  position: relative;

  width: 100%;

  min-width: 0;

  min-height: 48px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding:
    10px 12px;

  border-radius:
    var(--radius-sm);

  border:
    1px solid
    rgba(0,0,0,0.06);

  background:
    rgba(255,255,255,0.72);

  cursor: pointer;

  overflow: hidden;

  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.radio:hover {
  background:
    rgba(255,255,255,0.96);

  border-color:
    rgba(0,0,0,0.1);
}

.radio:active {
  transform:
    scale(0.985);
}

.radio input {
  appearance: none;

  width: 14px;

  height: 14px;

  margin: 0;

  border-radius: 999px;

  border:
    1.5px solid
    rgba(0,0,0,0.24);

  background:
    rgba(255,255,255,0.82);

  flex-shrink: 0;

  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.radio input:checked {
  border-color:
    #111111;

  background:
    #111111;

  box-shadow:
    inset 0 0 0 3px #ffffff;
}

.radio span {
  font-size: 13px;

  font-weight: 600;

  letter-spacing: -0.01em;

  color: var(--text);

  white-space: nowrap;
}

.grid {
  display: grid;

  gap: 14px;
}

.row {
  display: grid;

  gap: 14px;

  padding: 22px;

  border-radius: 22px;

  border:
    1px solid
    rgba(0,0,0,0.04);

  background:
    rgba(255,255,255,0.52);

  overflow: hidden;

  backdrop-filter:
    blur(18px)
    saturate(180%);

  -webkit-backdrop-filter:
    blur(18px)
    saturate(180%);

  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 10px 30px rgba(0,0,0,0.03);
}

.label {
  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--muted);
}

.editable {
  outline: none;

  border: none;

  background: transparent;

  color: var(--text);

  overflow-wrap: anywhere;

  word-break: break-word;

  caret-color:
    #111111;

  transition:
    font-family 220ms ease,
    font-weight 120ms ease,
    font-size 120ms ease,
    letter-spacing 120ms ease,
    line-height 120ms ease;
}

.hero {
  font-size:
    clamp(42px,12vw,120px);

  line-height: 0.9;

  letter-spacing: -0.08em;

  font-weight: 700;
}

.xl {
  font-size:
    clamp(28px,7vw,72px);

  line-height: 1;

  letter-spacing: -0.05em;

  font-weight: 600;
}

.lg {
  font-size:
    clamp(22px,5vw,42px);

  line-height: 1.08;

  letter-spacing: -0.035em;

  font-weight: 600;
}

.md {
  font-size:
    clamp(16px,3vw,24px);

  line-height: 1.5;

  letter-spacing: -0.015em;

  font-weight: 500;
}

.sm {
  font-size:
    clamp(13px,2vw,16px);

  line-height: 1.7;

  letter-spacing: 0;

  font-weight: 500;

  color: var(--muted);
}

.source,
.inspector {
  display: none;
}

.debug-banner {
  position: fixed;

  left: 0;

  right: 0;

  bottom: 0;

  width: 100%;

  z-index: 999999;

  overflow: hidden;

  border-top:
    1px solid
    rgba(0,0,0,0.06);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.72),
      rgba(255,255,255,0.92)
    );

  backdrop-filter:
    blur(30px)
    saturate(180%);

  -webkit-backdrop-filter:
    blur(30px)
    saturate(180%);

  box-shadow:
    0 -12px 40px rgba(0,0,0,0.06);
}

.debug-track {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 16px;

  min-height: 52px;

  padding:
    0
    max(
      16px,
      env(safe-area-inset-right)
    )
    env(safe-area-inset-bottom)
    max(
      16px,
      env(safe-area-inset-left)
    );

  overflow-x: auto;

  overflow-y: hidden;

  scrollbar-width: none;

  -webkit-overflow-scrolling:
    touch;
}

.debug-track::-webkit-scrollbar {
  display: none;
}

.debug-item {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  flex-shrink: 0;

  white-space: nowrap;
}

.debug-key,
.debug-value,
.mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace !important;

  font-variant-numeric:
    tabular-nums;
}

.debug-key {
  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color:
    rgba(0,0,0,0.42);
}

.debug-value {
  font-size: 10px;

  font-weight: 600;

  letter-spacing: -0.02em;

  color:
    rgba(0,0,0,0.9);
}

.debug-divider {
  width: 1px;

  height: 10px;

  background:
    rgba(0,0,0,0.08);

  flex-shrink: 0;
}

@media (
  max-width: 920px
) {
  .controls {
    grid-template-columns:
      1fr;
  }
}

@media (
  max-width: 640px
) {
  body {
    padding:
      max(
        10px,
        env(safe-area-inset-top)
      )
      10px
      calc(
        64px +
        env(safe-area-inset-bottom)
      )
      10px;
  }

  .card {
    padding: 10px;
  }

  .controls {
    gap: 12px;
  }

  .control {
    padding: 14px;
  }

  .row {
    padding: 16px;

    border-radius: 18px;
  }

  .debug-track {
    min-height: 48px;

    gap: 14px;

    padding:
      0 12px
      env(safe-area-inset-bottom)
      12px;
  }

  .debug-key {
    font-size: 8px;
  }

  .debug-value {
    font-size: 9px;
  }

  .radio-group {
    grid-template-columns:
      repeat(4, minmax(0,1fr));

    gap: 6px;
  }

  .radio {
    min-height: 42px;

    gap: 5px;

    padding:
      8px 4px;
  }

  .radio span {
    font-size: 10px;
  }
}
body {
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    calc(
      62px +
      env(safe-area-inset-bottom)
    )
    env(safe-area-inset-left);

  background:
    #f5f5f7;
}

.app,
.card {
  width: 100%;

  max-width: 100%;

  margin: 0;

  border: none;

  border-radius: 0;

  background:
    transparent;

  box-shadow: none;

  backdrop-filter: none;

  -webkit-backdrop-filter:
    none;
}

.card {
  min-height: 100dvh;

  padding:
    clamp(
      18px,
      3vw,
      34px
    );
}

.radio-group {
  width: fit-content;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(110px,1fr));

  justify-content: start;

  align-content: start;

  gap: 10px;
}

.radio {
  width: 100%;

  min-height: 46px;

  justify-content: center;

  align-items: center;

  padding:
    10px 14px;

  border-radius: 16px;

  background:
    rgba(255,255,255,0);

  border:
    1px solid
    rgba(0,0,0,0.05);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.radio:hover {
  background:
    rgba(255,255,255,0.96);

  border-color:
    rgba(0,0,0,0.1);
}

.radio input {
  flex-shrink: 0;
}

.radio span {
  white-space: nowrap;

  font-size: 12px;

  font-weight: 600;
}

.debug-banner {
  position: fixed;

  left: 0;

  right: 0;

  bottom: 0;

  width: 100%;

  z-index: 999999;
}

.debug-track {
  min-height: 54px;

  padding:
    0
    16px
    env(safe-area-inset-bottom)
    16px;
}

.debug-key {
  font-size: 11px;
}

.debug-value {
  font-size: 11px;

  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

@media (
  max-width: 640px
) {
  .radio-group {
    width: 100%;

    grid-template-columns:
      repeat(2, minmax(0,1fr));

    gap: 8px;
  }

  .radio {
    min-height: 42px;

    padding:
      8px 10px;
  }

  .radio span {
    font-size: 11px;
  }

  .debug-track {
    min-height: 50px;

    padding:
      0 12px
      env(safe-area-inset-bottom)
      12px;
  }

  .debug-key,
  .debug-value {
    font-size: 11px;
  }
}
