:root{font-family:system-ui,sans-serif;color:#183444;background:#f3f6f8;color-scheme:light}*{box-sizing:border-box}body{margin:0}header,main{max-width:1220px;margin:auto;padding:28px}header{padding-bottom:8px}h1{font-size:clamp(1.9rem,4vw,3rem);max-width:780px;line-height:1.12}h2{font-size:1.3rem;margin-top:0}.eyebrow{letter-spacing:.13em;font-size:.78rem;font-weight:750;color:#096b7c}.notice{border-left:4px solid #dfad4e;background:#fff7e6;padding:14px;line-height:1.5}section{background:#fff;border:1px solid #dbe5e9;border-radius:12px;padding:24px;margin:18px 0;box-shadow:0 4px 16px #17334405}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:16px;margin-bottom:18px}label{display:flex;flex-direction:column;gap:7px;font-size:.88rem;font-weight:600}input,select,button{font:inherit;border:1px solid #b6cbd3;border-radius:7px;min-height:42px;padding:9px 11px}button{cursor:pointer;background:#096b7c;color:#fff;border-color:#096b7c;font-weight:650}button:disabled{opacity:.55;cursor:wait}input:focus-visible,select:focus-visible,button:focus-visible{outline:3px solid #7acbdb;outline-offset:2px}.check{flex-direction:row;align-items:center}.check input{min-height:auto;width:18px;height:18px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.87rem}th,td{text-align:left;border-bottom:1px solid #e1e9ed;padding:13px 9px;white-space:nowrap}td:nth-child(2){white-space:normal;min-width:220px}th{font-size:.78rem;color:#537180;background:#f8fbfc}td input{min-height:auto;width:18px;height:18px}#status{min-height:24px;font-weight:550}.error{color:#ac302c}[hidden]{display:none!important}@media(max-width:600px){header,main{padding:18px}section{padding:18px}h1{margin-top:12px}}
:where(#potential-rows) input{width:100px}details{border-top:1px solid #dbe5e9;padding:16px 0}summary{cursor:pointer;font-weight:650;line-height:1.5}#analysis-results p{line-height:1.55;max-width:900px}
#references-list button,#reference-detail button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#reference-detail h3{overflow-wrap:anywhere}
#context-summary summary,#calibration-list p{overflow-wrap:anywhere}#calibration-list input{max-width:100%;margin:8px}#calibration-list button{max-width:100%;white-space:normal}
#onboarding-list button,#onboarding-detail button,#result-detail button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#onboarding-detail p,#result-detail p{overflow-wrap:anywhere}#result-upload-form input{max-width:100%;min-width:0}
#edition-results-panel button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#edition-results-panel p{overflow-wrap:anywhere}#edition-result-upload-form input{max-width:100%;min-width:0}

#catalogue-review-panel p,#catalogue-review-panel a{overflow-wrap:anywhere}#catalogue-review-panel button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#catalogue-review-panel input,#catalogue-review-panel textarea{max-width:100%;min-width:0}#catalogue-review-panel textarea{font:inherit;border:1px solid #b6cbd3;border-radius:7px;min-height:90px;padding:9px}
/* Enquanto o botão Google carrega (ou se falhar), o símbolo não ocupa o ecrã todo. */
#google-button svg{width:18px;height:18px;vertical-align:middle;margin-right:8px}
