* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

html.launch-active,
html.launch-active body {
  overflow: hidden;
}

body {
  min-width: 320px;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition:
    border-color var(--motion-quick) ease,
    box-shadow var(--motion-quick) ease,
    background var(--motion-quick) ease;
}

input,
select {
  min-height: 44px;
  padding: 9px 12px;
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #69645b 50%), linear-gradient(135deg, #69645b 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 120px;
  padding: 13px 14px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(111, 84, 34, 0.76);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 108, 50, 0.11);
}

input::placeholder,
textarea::placeholder {
  color: rgba(17, 17, 17, 0.43);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  min-height: 100vh;
}

.shell {
  display: flex;
  min-height: calc(100vh - var(--workflow-height));
  flex-direction: column;
  width: min(var(--max-width), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  padding: clamp(30px, 4.4vw, 64px) 0 0;
}

.stage-hidden {
  display: none;
}

.suite-alert-region {
  position: fixed;
  z-index: 100;
  top: calc(var(--workflow-height) + 10px);
  right: 20px;
  display: grid;
  width: min(390px, calc(100vw - 40px));
  gap: 8px;
  pointer-events: none;
}

.alert-toast {
  padding: 13px 15px;
  border: 1px solid rgba(191, 184, 168, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(24, 20, 14, 0.09);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-6px);
  animation: toast-arrive 220ms var(--ease-standard) forwards;
}

.alert-toast.is-error {
  border-color: rgba(150, 60, 50, 0.32);
}

@keyframes toast-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-footer {
  display: flex;
  justify-content: center;
  min-height: 76px;
  margin-top: auto;
  padding: 34px 0 22px;
}

.app-footer img {
  width: 18px;
  height: auto;
  opacity: 0.86;
}
