:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17221c;
  background: #f2f5f2;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 28px; }
.hero { display: grid; grid-template-columns: 62px 1fr auto; gap: 20px; align-items: start; margin-bottom: 26px; }
.mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: #0a6b3f; color: white; font-weight: 800; font-size: 28px; box-shadow: 0 10px 25px rgba(10, 107, 63, .2); }
.eyebrow { margin: 1px 0 5px; color: #0a6b3f; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1; letter-spacing: -.04em; }
.lede { margin: 12px 0 0; color: #5a675f; max-width: 680px; line-height: 1.55; }
.badge { background: #dff4e6; color: #075c35; border: 1px solid #a9ddbb; border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px; }

.card, .status-row { background: white; border: 1px solid #dfe6e1; border-radius: 18px; box-shadow: 0 8px 30px rgba(28, 48, 36, .06); }
.card { padding: 24px; margin: 16px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head > div { display: flex; align-items: center; gap: 10px; }
.step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf5ef; color: #0a6b3f; font-weight: 800; font-size: 13px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.muted { color: #6c7871; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.inline-form { display: flex; gap: 12px; align-items: end; }
.message-form { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.wide { grid-column: 1 / -1; }
.grow { flex: 1; }
label { display: grid; gap: 7px; color: #526057; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cbd6ce; border-radius: 10px; padding: 11px 12px; color: #17221c; background: #fbfcfb; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #0a6b3f; box-shadow: 0 0 0 3px rgba(10, 107, 63, .12); }
textarea { resize: vertical; line-height: 1.5; }
.type-info { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: #f3f7f4; }
.type-info p { margin: 1px 0 0; color: #5f6c64; font-size: 13px; line-height: 1.45; }
.type-status { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; background: #dff4e6; color: #075c35; }
.type-status.is-restricted { background: #fff1cc; color: #765400; }
.type-status.is-issue { background: #fff0ef; color: #9a291f; }
.type-status.is-response { background: #e9edf7; color: #3e4c77; }
.dynamic-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dynamic-fields:empty { display: none; }
.dynamic-fields .json-field { grid-column: 1 / -1; }
.field-hint { color: #748078; font-size: 11px; font-weight: 500; line-height: 1.4; }
.required { color: #a72e23; }
.print-fallback { display: grid; gap: 10px; padding: 15px; border: 1px solid #dce4de; border-radius: 12px; background: #f8faf8; }
.print-fallback p { margin: 0; color: #69756d; font-size: 12px; }
.print-fallback code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-label { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 9px; color: #25362c; }
.check-label input { width: 18px; height: 18px; margin: 0; }

button { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 750; transition: transform .12s ease, opacity .12s ease, background .12s ease; }
button:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .58; transform: none; }
.primary { background: #0a6b3f; color: white; }
.primary:hover { background: #075c35; }
.secondary { background: #e9f1eb; color: #075c35; }
.quiet { background: transparent; color: #536057; border: 1px solid #d7dfd9; padding: 8px 12px; }
.test-identities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: #f4f7f5; color: #33443a; border: 1px solid #dce4de; padding: 8px 11px; font-size: 13px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }

.status-row { padding: 16px 20px; display: grid; grid-template-columns: .6fr 1.5fr .8fr auto; gap: 18px; align-items: center; }
.status-row div { display: grid; gap: 3px; min-width: 0; }
.status-row span { color: #6b776f; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.status-row strong { font-size: 14px; overflow-wrap: anywhere; }
.inbox-card { margin: 16px 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-radius: 18px; color: white; background: #075c35; box-shadow: 0 10px 26px rgba(7, 92, 53, .18); }
.inbox-card > div { display: grid; gap: 5px; }
.inbox-label { color: #bfe7cb; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.inbox-card strong { font-size: 18px; }
.ssn { display: flex; gap: 8px; align-items: center; color: #dff4e6; font-size: 12px; }
.ssn code, .num { font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.inbox-help { color: #dff4e6; font-size: 12px; }
.inbox-actions { display: grid; justify-items: stretch; gap: 7px; }
.inbox-link { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; border-radius: 10px; padding: 11px 14px; color: #075c35; background: white; text-decoration: none; font-weight: 800; }
.inbox-link:hover { background: #edf8f0; }
.inbox-doc { color: #dff4e6; text-align: center; font-size: 12px; text-underline-offset: 3px; }
.tech-doc { color: #0a6b3f; font-size: 13px; font-weight: 750; text-decoration: none; }
.tech-doc:hover { text-decoration: underline; text-underline-offset: 3px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tech-grid > div { display: grid; gap: 5px; min-width: 0; padding: 15px; border: 1px solid #dfe6e1; border-radius: 12px; background: #f8faf8; }
.tech-grid span { color: #0a6b3f; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tech-grid strong { font-size: 14px; overflow-wrap: anywhere; }
.tech-grid small { color: #6c7871; line-height: 1.4; }
.message { border-radius: 10px; padding: 11px 12px; margin: 14px 0 0; background: #edf8f0; color: #075c35; font-weight: 700; font-size: 14px; }
.error { background: #fff0ef; color: #9a291f; }
.result { margin-top: 16px; padding: 16px; border-radius: 12px; background: #e9f7ed; color: #075c35; line-height: 1.6; }
.xml-panel { margin-top: 16px; border: 1px solid #dce4de; border-radius: 12px; overflow: hidden; }
.xml-panel summary { padding: 12px 14px; cursor: pointer; font-weight: 750; background: #f6f8f6; }
pre { margin: 0; padding: 16px; max-height: 340px; overflow: auto; background: #17221c; color: #dff4e6; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { text-align: center; color: #77827b; font-size: 12px; padding-top: 16px; }

@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 980px); padding-top: 24px; }
  .hero { grid-template-columns: 48px 1fr; gap: 13px; }
  .mark { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
  .badge { grid-column: 2; justify-self: start; }
  .form-grid, .message-form, .status-row { grid-template-columns: 1fr; }
  .dynamic-fields { grid-template-columns: 1fr; }
  .dynamic-fields .json-field { grid-column: auto; }
  .type-info { align-items: flex-start; flex-direction: column; }
  .inbox-card { align-items: flex-start; flex-direction: column; }
  .inbox-actions { width: 100%; }
  .inbox-link { justify-content: center; }
  .tech-grid { grid-template-columns: 1fr; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .card { padding: 18px; }
  .actions { justify-content: stretch; }
  .actions button { flex: 1; }
}
