* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 11px;
  font-size: 31px;
  font-weight: 750;
  font-style: italic;
  line-height: 1;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}
.small-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.big-avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.badge.neutral {
  background: var(--hover);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge.success {
  background: var(--success-soft);
  color: var(--success);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--accent);
  color: var(--surface);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--hover);
}
.button.full {
  width: 100%;
  justify-content: space-between;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px;
  border-radius: 7px;
}
.icon-button:hover {
  color: var(--text);
  background: var(--hover);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 24px;
}
.card-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.text-link {
  color: var(--accent);
}
.text-link:hover {
  text-decoration: underline;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 12px 0;
}
.notice {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.notice.error {
  background: var(--danger-soft);
  color: var(--danger);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
input:not([type="radio"]) {
  display: block;
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 20px;
}
input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  left: 15px;
  top: -100px;
  padding: 10px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 6px;
}
.skip-link:focus {
  top: 10px;
}
.toast {
  position: fixed;
  z-index: 40;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  border: 1px solid var(--border);
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  font-size: 13px;
}
.noscript {
  padding: 24px;
  background: var(--danger-soft);
  color: var(--danger);
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
