:root { font: 16px/1.5 system-ui, sans-serif; color: #173029; background: #f3f7f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1280px; margin: auto; padding: 2rem clamp(1rem, 4vw, 3rem); }
header { margin-bottom: 1.5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: .5rem; }
h2 { font-size: 1.1rem; }
.eyebrow { color: #2e7055; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.panel { background: white; border: 1px solid #cfddd4; border-radius: .8rem; padding: 1rem; min-width: 0; }
.panel-header, form { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
form { align-items: end; flex-wrap: wrap; justify-content: start; }
label { display: grid; gap: .3rem; font-weight: 650; min-width: 0; }
input, select, textarea, button { font: inherit; }
input, select, textarea { border: 1px solid #a6bbaf; border-radius: .4rem; padding: .45rem .6rem; width: 100%; color: inherit; }
textarea { resize: vertical; min-height: 10rem; font-weight: 400; }
textarea[readonly] { background: #f7faf8; }
button { padding: .45rem .7rem; border-radius: .45rem; border: 1px solid #236248; background: #236248; color: white; cursor: pointer; }
button.secondary { color: #236248; background: white; }
button:disabled { opacity: .6; cursor: wait; }
button[aria-current="true"] { background: #e6f1ea; }
:focus-visible { outline: 2px solid #247251; outline-offset: 2px; }
#feedback:not(:empty), #result-status, #metrics, #redactions, #segments, .hint { margin-top: .75rem; }
#feedback, .hint, #metrics, #redactions, #segments { font-size: .9rem; color: #426253; }
#segments summary { cursor: pointer; }
#text-test { margin-top: 1rem; }
#text-test summary { cursor: pointer; font-weight: 650; }
#text-redaction .comparison { width: 100%; }
#text-feedback:empty { margin-top: 0; }
.layout { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 4fr); gap: 1rem; margin-top: 1rem; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.comparison.single { grid-template-columns: minmax(0, 1fr); }
ul { list-style: none; padding: 0; margin: .6rem 0 0; }
li + li { margin-top: .4rem; }
li button { width: 100%; text-align: left; }
li small { display: block; }
@media (max-width: 740px) {
  .layout, .comparison { grid-template-columns: 1fr; }
}
