:root {
    font-family: system-ui, -apple-system, sans-serif;
    color: #182620;
    background: #f2f5f1;
    --surface: #fff;
    --accent: #19563f;
    --line: #d7e0d8;
    --muted: #536359;
}

* { box-sizing: border-box; }

body { margin: 0; }
main { width: min(100% - 2rem, 58rem); margin: 0 auto; padding: 3.75rem 0; }
header { margin-bottom: 1.5rem; }
.brand { font-size: .9rem; font-weight: 650; color: var(--accent); }
h1 { margin: .35rem 0 0; font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.65rem); line-height: 1.25; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 4vw, 1.75rem); }
label, th, dt { font-weight: 650; }
.entry { display: flex; gap: .65rem; margin-top: .5rem; }
input, button { font: inherit; border-radius: .5rem; }
input { flex: 1; min-width: 0; border: 1px solid #a1b3a7; padding: .75rem; color: inherit; background: white; }
button { border: 1px solid transparent; background: var(--accent); color: white; padding: .75rem 1.1rem; font-weight: 650; cursor: pointer; }
button:hover { background: #10452f; }
:focus-visible { outline: 2px solid #14754f; outline-offset: 3px; }

.result { margin-top: 1rem; }
.summary { margin: 1rem 0; border-top: 1px solid var(--line); }
.summary > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .4rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
dt { font-size: .9rem; }
dd { min-width: 0; margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.copy-value { display: inline-flex; align-items: flex-start; gap: .4rem; max-width: 100%; vertical-align: middle; }
.copy-value code { min-width: 0; }
.copy { display: none; flex: 0 0 auto; inline-size: 1.55rem; block-size: 1.55rem; padding: 0; border-color: var(--line); border-radius: .35rem; background: white; color: var(--accent); vertical-align: middle; }
.can-copy .copy { display: inline-grid; place-items: center; }
.copy:hover { background: #e8f1eb; }
.muted, .status { color: var(--muted); }
.status { font-size: .875rem; }
.status:not(:empty) { margin-bottom: 1rem; }

.messages { padding: .75rem 1.1rem .75rem 2rem; border-radius: .5rem; }
.messages li + li { margin-top: .35rem; }
.error { background: #fcebea; color: #872d26; }
.warning { background: #fff3d9; color: #603d0b; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead { background: #eef4ee; }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child { width: 32%; }
td:nth-child(2) { width: 20%; }

@media (max-width: 36rem) {
    main { padding: 2rem 0; }
    .entry { flex-direction: column; align-items: stretch; }
    .summary > div { grid-template-columns: 1fr; }
    th, td { padding: .55rem .35rem; }
}
