:root {
  color-scheme: light;
  --ink: #232724; --muted: #565e59; --line: #d5d7ce; --paper: #fffefa;
  --green: #28563e; --accent: #8a5129; --mono: ui-monospace, Consolas, monospace;
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
  color: var(--ink); background: #f4f3ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; left: 10px; top: -100px; background: white; color: var(--ink); padding: 10px; z-index: 2; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #99602e; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.bar { background: #181b19; color: #fffdf5; }
.bar-inner, .brand, .account, .row, .tabs, .heading, .copy-line, .recipient { display: flex; align-items: center; }
.bar-inner { min-height: 68px; justify-content: space-between; gap: 15px; }
.brand { gap: 7px; letter-spacing: -.07em; font-size: 24px; line-height: 1; }
.brand span { color: #c4c8c1; letter-spacing: -.04em; font-size: 20px; }
.account { gap: 16px; color: #d2d6ce; font-size: 14px; }
.account button { color: #f1eee7; background: transparent; border-color: #676d66; min-height: 34px; padding: 4px 12px; }
main { padding-block: clamp(28px, 5vw, 60px) 72px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.065em; font-weight: 630; }
h2 { font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.045em; font-weight: 620; }
h3 { font-size: 19px; font-weight: 630; letter-spacing: -.025em; }
.kicker { margin-bottom: 9px; color: var(--accent); font-size: 13px; font-weight: 650; }
.muted, small { color: var(--muted); }
.lead { color: var(--muted); max-width: 44ch; font-size: clamp(16px, 1.7vw, 20px); }
.stack { display: grid; align-content: start; gap: 17px; min-width: 0; }
.layout, .auth-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: 20px; align-items: start; }
.auth-layout { gap: clamp(26px, 7vw, 90px); }
.auth-intro { padding-block: clamp(6px, 4vw, 55px); gap: 22px; }
.auth-intro h1 { max-width: 12ch; }
.steps { counter-reset: step; padding: 0; list-style: none; max-width: 490px; margin-top: 10px; }
.steps li { display: flex; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); color: var(--accent); font: 14px var(--mono); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: clamp(19px, 2.7vw, 32px); min-width: 0; }
.heading { justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.heading h1 { font-size: clamp(32px, 4.5vw, 53px); }
.row, .tabs { gap: 9px; flex-wrap: wrap; }
.tabs { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab { display: inline-block; padding: 7px 14px; border-radius: 7px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.tab[aria-current="page"] { background: #e6e8df; color: var(--ink); }
form { margin: 0; }
label { font-size: 15px; font-weight: 600; }
.field { display: grid; gap: 6px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #adb5ac; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: white; line-height: 1.5; }
textarea { min-height: 100px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ae3b2d; }
.field-title, .test-history li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field-title small { font-weight: 450; white-space: nowrap; }
button, .button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 42px; padding: 8px 15px; background: var(--paper); border: 1px solid #b8bdb4; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover:enabled, .button:hover, .tab:hover { background: #eaece4; }
button.primary, .button.primary { color: white; background: #262c28; border-color: transparent; }
button.primary:hover:enabled, .button.primary:hover { background: #405046; }
button:disabled { opacity: .55; cursor: wait; }
.link { border: 0; padding: 2px 0; min-height: 32px; background: transparent; text-decoration: underline; text-underline-offset: 3px; color: #72441f; }
.status { display: inline-block; background: #efeee6; color: #50594d; border-radius: 5px; padding: 3px 9px; font-size: 12px; font-weight: 650; }
.status.ok { color: var(--green); background: #e2efdf; }
.record { border-top: 1px solid var(--line); padding-top: 18px; }
.copy-field { display: grid; gap: 5px; }
.copy-field small { font-weight: 550; }
.copy-line { gap: 7px; }
code, .mono { font-family: var(--mono); }
.copy-line code, .codes { display: block; min-width: 0; flex: 1; background: #f1f1e9; border-radius: 7px; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.copy-line button { flex-shrink: 0; }
.codes { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px, 1fr)); gap: 5px 15px; }
details summary { cursor: pointer; font-weight: 550; }
details p { margin-top: 8px; }
.preview { background: #f0f6ef; border: 1px solid #d4dfd2; color: #1e3527; }
.recipient { gap: 12px; border-bottom: 1px solid #c8d8c6; padding-bottom: 16px; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: #cde4ce; border-radius: 12px; font-size: 21px; font-weight: 700; }
.recipient small { color: #46604e; }
.preview h3, .preview .body, .test-history .body { white-space: pre-wrap; }
.notice { padding: 12px 15px; background: #e9f1e5; border-left: 3px solid #5c805e; border-radius: 5px; }
.error { color: #9d3027; }
.test-history { padding: 0; list-style: none; }
.test-history li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.test-history li:last-child { border-bottom: 0; }
.test-history .stack { gap: 4px; }
#feedback:not(:empty) { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 34px); padding: 10px 16px; border-radius: 8px; background: #29332b; color: white; z-index: 1; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .auth-layout, .layout { grid-template-columns: minmax(0,1fr); }
  .auth-intro { padding: 0; gap: 12px; }
  .auth-intro h1 { max-width: none; }
  .auth-intro .steps { display: none; }
  .bar-inner { min-height: 58px; }
}
@media (max-width: 440px) {
  .account { gap: 8px; font-size: 12px; }
  .copy-line { align-items: start; flex-direction: column; }
  .copy-line code { width: 100%; }
  .test-history li { flex-wrap: wrap; }
}
