@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 { font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; }

a {
  color: var(--primary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--ink); }

::selection { background: var(--selected); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.small { font-size: 12px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

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

.icon { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 40px; height: 40px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), filter var(--speed) var(--ease), transform 80ms var(--ease);
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled, .button.is-disabled { opacity: .45; cursor: not-allowed; }
.button-primary {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--primary-ink);
  box-shadow: 0 1px 2px rgba(17, 44, 40, .14), 0 4px 12px -2px rgba(19, 134, 101, .30);
}
.button-primary:hover:not(:disabled) { color: var(--primary-ink); box-shadow: 0 2px 4px rgba(17, 44, 40, .14), 0 8px 20px -4px rgba(19, 134, 101, .42); filter: brightness(.93); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(16, 40, 30, .05); }
.button-secondary:hover:not(:disabled) { background: var(--panel); color: var(--ink); border-color: var(--border-hover); }
.button-danger { background: var(--danger); color: var(--white); box-shadow: 0 1px 2px rgba(16, 40, 30, .14); }
.button-danger:hover:not(:disabled) { background: var(--danger-text); color: var(--white); }
.button-danger-outline { background: var(--white); color: var(--danger-text); border-color: var(--danger-border); }
.button-danger-outline:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger-text); border-color: var(--danger); }
.button-ghost { background: transparent; color: var(--primary-deep); }
.button-ghost:hover:not(:disabled) { background: var(--tile); color: var(--ink); }
.button-ghost-danger { background: transparent; color: var(--danger-text); }
.button-ghost-danger:hover:not(:disabled):not(.is-disabled) { background: var(--danger-soft); color: var(--danger-text); }
.button-sm { height: 30px; gap: 6px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.button-block { width: 100%; }
.button-link {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-deep);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.button-link:hover { color: var(--ink); }

.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.field fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.input:hover:not(:disabled):not(:focus) { border-color: var(--border-hover); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); box-shadow: var(--ring); }
.input:disabled { background: var(--panel); color: var(--muted); }
select.input:not([multiple]) {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input[type="file"].input { height: 40px; padding: 5px 6px; }
input[type="file"]::file-selector-button {
  height: 28px;
  margin-right: 12px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease);
}
input[type="file"]::file-selector-button:hover { background: var(--panel); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.field-help { color: var(--muted); font-size: 12px; }
.field-error { color: var(--danger-text); font-size: 12px; }
.choice { display: flex; align-items: center; gap: 8px; }

.key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.key-box code { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.field-label { font-weight: 600; }
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
