/* Generated by prepare-design-system.cjs from @thedeshar/ui public CSS exports. */
/* Design primitives. Text sizes use rem; geometry stays independent of text size.
 * Numeric size/space/radius names describe the original px at a 16px browser base.
 * Add new typography here, then use a semantic alias or a primitive in features. */
:root {
  --font-sans:
    "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-base-scale: 1;
  --font-user-scale: 1;
  --font-scale: calc(var(--font-base-scale) * var(--font-user-scale));
  font-size: calc(100% * var(--font-scale));

  --font-size-0: 0rem;
  --font-size-7: 0.4375rem;
  --font-size-8: 0.5rem;
  --font-size-8-4: 0.525rem;
  --font-size-9: 0.5625rem;
  --font-size-10: 0.625rem;
  --font-size-11: 0.6875rem;
  --font-size-12: 0.75rem;
  --font-size-12-6: 0.7875rem;
  --font-size-13: 0.8125rem;
  --font-size-13-6: 0.85rem;
  --font-size-14: 0.875rem;
  --font-size-15: 0.9375rem;
  --font-size-16: 1rem;
  --font-size-16-8: 1.05rem;
  --font-size-17: 1.0625rem;
  --font-size-17-6: 1.1rem;
  --font-size-18: 1.125rem;
  --font-size-18-4: 1.15rem;
  --font-size-19: 1.1875rem;
  --font-size-20: 1.25rem;
  --font-size-21: 1.3125rem;
  --font-size-22: 1.375rem;
  --font-size-23: 1.4375rem;
  --font-size-24: 1.5rem;
  --font-size-25: 1.5625rem;
  --font-size-26: 1.625rem;
  --font-size-27: 1.6875rem;
  --font-size-28: 1.75rem;
  --font-size-30: 1.875rem;
  --font-size-32: 2rem;
  --font-size-34: 2.125rem;
  --font-size-35: 2.1875rem;
  --font-size-36: 2.25rem;
  --font-size-37: 2.3125rem;
  --font-size-38: 2.375rem;
  --font-size-40: 2.5rem;
  --font-size-42: 2.625rem;
  --font-size-44: 2.75rem;
  --font-size-45: 2.8125rem;
  --font-size-46: 2.875rem;
  --font-size-48: 3rem;
  --font-size-56: 3.5rem;
  --font-size-64: 4rem;
  --font-size-66: 4.125rem;
  --font-size-80: 5rem;
  --font-size-fluid-1: clamp(
    var(--font-size-26),
    calc(5vw * var(--font-scale)),
    var(--font-size-38)
  );
  --font-size-fluid-2: clamp(
    var(--font-size-28),
    calc(4vw * var(--font-scale)),
    var(--font-size-40)
  );
  --font-size-fluid-3: clamp(
    var(--font-size-28),
    calc(4.7cqi * var(--font-scale)),
    var(--font-size-38)
  );
  --font-size-fluid-4: clamp(
    var(--font-size-18),
    calc(8cqw * var(--font-scale)),
    var(--font-size-28)
  );
  --font-size-fluid-5: clamp(
    var(--font-size-9),
    calc(3.6cqw * var(--font-scale)),
    var(--font-size-12)
  );
  --font-size-fluid-6: clamp(
    var(--font-size-11),
    calc(4.5cqw * var(--font-scale)),
    var(--font-size-15)
  );
  --font-size-fluid-7: clamp(
    var(--font-size-17),
    calc(2vw * var(--font-scale)),
    var(--font-size-26)
  );
  --font-size-fluid-8: clamp(
    var(--font-size-24),
    calc(3vw * var(--font-scale)),
    var(--font-size-32)
  );
  --font-size-fluid-9: clamp(
    var(--font-size-48),
    calc(12vw * var(--font-scale)),
    var(--font-size-80)
  );
  --font-size-fluid-10: clamp(
    var(--font-size-40),
    calc(10vw * var(--font-scale)),
    var(--font-size-64)
  );
  --font-size-fluid-11: clamp(
    var(--font-size-20),
    calc(2vw * var(--font-scale)),
    var(--font-size-24)
  );
  --font-size-fluid-12: clamp(
    var(--font-size-24),
    calc(2.5vw * var(--font-scale)),
    var(--font-size-32)
  );
  --font-size-fluid-13: clamp(
    var(--font-size-26),
    calc(6vw * var(--font-scale)),
    var(--font-size-34)
  );

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-1: 1;
  --line-height-1-1: 1.1;
  --line-height-1-12: 1.12;
  --line-height-1-2: 1.2;
  --line-height-1-25: 1.25;
  --line-height-1-3: 1.3;
  --line-height-1-35: 1.35;
  --line-height-1-4: 1.4;
  --line-height-1-45: 1.45;
  --line-height-1-5: 1.5;
  --line-height-1-55: 1.55;
  --line-height-1-6: 1.6;
  --line-height-1-65: 1.65;
  --line-height-1-7: 1.7;
  --line-height-1-75: 1.75;
  --line-height-2-6: 2.6;
  --line-height-length-20: 1.25rem;
  --line-height-length-22: 1.375rem;
  --line-height-length-23: 1.4375rem;
  --line-height-length-26: 1.625rem;

  /* Shared solid inks and effects; theme palettes remain in appearance.css. */
  --color-on-solid: #fff;
  --color-ink-solid: #20242b;
  --color-exercise-highlight: #d7a62b;
  --color-room-pointer: #da61e5;
  --color-room-pointer-wash: #da61e526;
  --color-editor-handle: #aaa7bf;
  --color-editor-muted: #9390aa;
  --color-editor-subtle: #b9b6cc;
  --shadow-color-soft: #0002;
  --shadow-color-faint: #0001;
  --shadow-color-editor: #56566b20;
  --shadow-popover: 0 12px 32px rgb(0 0 0 / 18%);
  --shadow-floating-panel: 0 8px 28px rgb(0 0 0 / 16%);
  --shadow-card-raised: 0 8px 32px rgb(21 46 51 / 14%);
  --shadow-editor-toolbar: 0 3px 22px #56566b15;
  --shadow-editor-handle: 0 0 5px #56566b20;
  --shadow-menu: 0 12px 36px rgb(0 0 0 / 16%);

  /* Semantic roles keep component intent separate from the primitive scale. */
  --font-size-body: var(--font-size-16);
  --font-size-button: var(--font-size-16);
  --font-size-button-small: var(--font-size-14);
  --font-size-label: var(--font-size-14);
  --font-size-title: var(--font-size-32);
  --font-size-section-title: var(--font-size-20);
  --font-weight-body: var(--font-weight-regular);
  --font-weight-label: var(--font-weight-semibold);
  --font-weight-button: var(--font-weight-bold);
  --font-weight-title: var(--font-weight-extrabold);
  --line-height-body: normal;
  --line-height-button: var(--line-height-length-24);
  --line-height-title: var(--line-height-1-2);

  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-5: 5px;
  --space-6: 6px;
  --space-7: 7px;
  --space-8: 8px;
  --space-9: 9px;
  --space-10: 10px;
  --space-11: 11px;
  --space-12: 12px;
  --space-13: 13px;
  --space-14: 14px;
  --space-15: 15px;
  --space-16: 16px;
  --space-17: 17px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-25: 25px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-34: 34px;
  --space-36: 36px;
  --space-40: 40px;
  --space-44: 44px;
  --space-48: 48px;
  --space-50: 50px;

  --radius-1: 1px;
  --radius-2: 2px;
  --radius-3: 3px;
  --radius-3-5: 3.5px;
  --radius-4: 4px;
  --radius-5: 5px;
  --radius-6: 6px;
  --radius-7: 7px;
  --radius-8: 8px;
  --radius-9: 9px;
  --radius-10: 10px;
  --radius-11: 11px;
  --radius-12: 12px;
  --radius-13: 13px;
  --radius-14: 14px;
  --radius-15: 15px;
  --radius-16: 16px;
  --radius-17: 17px;
  --radius-18: 18px;
  --radius-20: 20px;
  --radius-22: 22px;
  --radius-24: 24px;
  --radius-28: 28px;
  --radius-30: 30px;
  --radius-100: 100px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --radius: var(--radius-18);
  --control-height: 44px;
  --control-radius: var(--radius-10);
  --button-height: 46px;
  --button-small-height: 36px;
  --button-small-touch-height: 44px;
  --button-radius: var(--radius-12);
  --line-height-length-11: 0.6875rem;
  --line-height-length-14: 0.875rem;
  --line-height-length-16: 1rem;
  --line-height-length-17: 1.0625rem;
  --line-height-length-18: 1.125rem;
  --line-height-length-24: 1.5rem;
  --line-height-length-27: 1.6875rem;
  --line-height-button-small: var(--line-height-length-20);
  --color-on-brand: #102f36;
}

:root[data-font-size="large"] {
  --font-user-scale: 1.125;
}

:root[data-font-size="extra-large"] {
  --font-user-scale: 1.25;
}

/* Book surfaces share the reference type sizes across applications. Cancel
 * application density while retaining the user's chosen text-size scale. */
.material-detail {
  --font-size-13: calc(0.8125rem / var(--font-base-scale));
  --font-size-14: calc(0.875rem / var(--font-base-scale));
  --font-size-15: calc(0.9375rem / var(--font-base-scale));
  --font-size-16: calc(1rem / var(--font-base-scale));
  --font-size-17: calc(1.0625rem / var(--font-base-scale));
  --font-size-18: calc(1.125rem / var(--font-base-scale));
  --font-size-20: calc(1.25rem / var(--font-base-scale));
  --font-size-24: calc(1.5rem / var(--font-base-scale));
  --font-size-28: calc(1.75rem / var(--font-base-scale));
  --font-size-30: calc(1.875rem / var(--font-base-scale));
  --font-size-32: calc(2rem / var(--font-base-scale));
  --font-size-body: var(--font-size-16);
  --font-size-button: var(--font-size-16);
  --font-size-button-small: var(--font-size-14);
  --line-height-length-20: calc(1.25rem / var(--font-base-scale));
  --line-height-length-24: calc(1.5rem / var(--font-base-scale));
  --line-height-button: var(--line-height-length-24);
  --line-height-button-small: var(--line-height-length-20);
}

:where(
  button,
  a[href],
  summary,
  input:is([type="button"], [type="submit"], [type="reset"], [type="image"]),
  [role="button"],
  [role="tab"],
  [role="switch"],
  [role="checkbox"],
  [role="radio"],
  [role="option"],
  [role="menuitem"],
  [role="menuitemcheckbox"],
  [role="menuitemradio"]
) {
  -webkit-tap-highlight-color: transparent;
}

:where(
  button,
  a[href],
  summary,
  input:is([type="button"], [type="submit"], [type="reset"], [type="image"]),
  [role="button"],
  [role="checkbox"],
  [role="radio"],
  [role="option"],
  [role="menuitem"],
  [role="menuitemcheckbox"],
  [role="menuitemradio"]
):active:not(:where(:disabled, [aria-disabled="true"], [inert] *, [role="tab"], [role="switch"], [data-control-press="none"])) {
  /* An inset shadow follows the control's corners and leaves the keyboard outline free. */
  --control-press-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--color-ink) 12%, transparent);
  box-shadow: var(--control-press-shadow);
}

/* WebKit paints native buttons without inset shadows. */
:where(button, input:is([type="button"], [type="submit"], [type="reset"], [type="image"])):active:not(
  :where(:disabled, [aria-disabled="true"], [inert] *, [role="tab"], [role="switch"], [data-control-press="none"])
) {
  filter: brightness(0.94);
}

.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  padding: var(--button-padding-block, var(--space-10))
    var(--button-padding-inline, var(--space-18));
  border: 1px solid transparent;
  border-radius: var(--button-radius, var(--radius-12));
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-weight-button);
  min-height: var(--button-height, 46px);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.button.primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
}
.button.secondary {
  background: var(--color-surface);
  border-color: var(--color-line);
  color: var(--color-ink);
}
.button.danger {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.button-small {
  min-height: var(--button-small-height, 36px);
  min-width: var(--button-small-height, 36px);
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-button-small);
  line-height: var(--line-height-button-small);
}
@media (max-width: 520px) {
  .button-small {
    min-height: var(--button-small-touch-height, 44px);
    min-width: var(--button-small-touch-height, 44px);
  }
}
.button:not(:disabled):hover {
  filter: brightness(0.97);
}
.button[aria-busy="true"] {
  cursor: wait;
}
.button > .button-content {
  display: inline-flex;
  align-items: inherit;
  justify-content: inherit;
  flex-direction: inherit;
  flex-wrap: inherit;
  gap: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.button[data-pending="true"] > .button-content {
  opacity: 0;
}
.button-spinner {
  flex-shrink: 0;
  animation: button-spin 1s linear infinite;
}
.button > .button-spinner {
  position: absolute;
  inset-inline-start: calc(50% - 9px);
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-spinner {
    animation: none;
  }
}

:root {
  --color-bg: #f5f7fb;
  --color-surface: #fff;
  --color-ink: #17233a;
  --color-muted: #64748b;
  --color-line: #dce3ee;
  --color-brand: #2563eb;
  --color-brand-ink: #2563eb;
  --color-on-brand: #fff;
  --color-soft: #eff5ff;
  --color-success: #15803d;
  --color-danger: #a8243b;
  --color-danger-bg: #fff0f3;
  --auth-primary-hover: #1d4ed8;
  --auth-success-bg: #f0fdf4;
  --auth-gradient-blue: #2563eb;
  --auth-gradient-lavender: #8b5cf6;
  --focus-color: var(--color-brand-ink);
  color-scheme: light;
  background: var(--color-bg);
  color: var(--color-ink);
}
.button.primary {
  --auth-button-color: var(--color-logo-accent);
  min-height: calc(var(--space-48) + var(--space-4));
  border: 0;
  border-radius: var(--radius-16);
  background-color: var(--auth-button-color);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--auth-button-color) 88%, white),
    var(--auth-button-color) 65%,
    color-mix(in srgb, var(--auth-button-color) 92%, #17233a)
  );
  color: var(--color-on-brand);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--auth-button-color) 72%, #17233a),
    0 6px 16px color-mix(in srgb, var(--auth-button-color) 18%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 25%);
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.02em;
}
.button.primary:not(:disabled):hover {
  background-color: var(--auth-button-color);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--auth-button-color) 82%, white),
    var(--auth-button-color)
  );
  filter: none;
}
.button.primary:not(:disabled):active {
  background-color: var(--auth-button-color);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--auth-button-color) 90%, #17233a),
    var(--auth-button-color)
  );
  box-shadow: inset 0 2px 4px rgb(23 35 58 / 16%);
  filter: none;
}
