.login { max-width: 430px; }
#configuration { margin-top: 1rem; }
.editor-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
#version { color: #435d70; margin: 0 0 .75rem; }
#fields { border: 0; margin: 0; padding: 0; min-width: 0; }
#fields legend { font-weight: 700; margin-bottom: .5rem; }
#axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .9rem; margin-bottom: 1rem; }
.axis { padding: .8rem; background: #f4f7fa; border: 1px solid var(--border); border-radius: .5rem; }
.axis h3 { font-size: 1rem; }
.axis label { font-size: .875rem; }
.matrix-scroll { max-width: 100%; overflow-x: auto; margin: .6rem 0 1rem; }
table { width: 100%; border-collapse: collapse; }
caption { font-weight: 700; text-align: left; margin-bottom: .5rem; }
td, th { padding: .5rem; border: 1px solid var(--border); text-align: left; }
th { background: #eff3f6; }
td select { min-width: 8rem; margin: 0; }
button:disabled { opacity: .6; cursor: default; }
.secondary { color: var(--navy); border-color: var(--border); background: #f4f7fa; }

#triage { margin-top: 1rem; }
#triage-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
#triage-fields legend { font-weight: 700; margin-bottom: .5rem; }
#new-report, #assessment { margin-bottom: 1rem; }
#triage textarea { min-height: 5rem; }
#risk-preview { font-weight: 700; }
#assessment-history { padding-left: 1.5rem; }
#assessment-history li { margin-bottom: .35rem; overflow-wrap: anywhere; }

.axis input[type="color"] { width: 3rem; padding: .2rem; }
.risk-badge {
  display: inline-block;
  padding: .125rem .5rem;
  border: 1px solid #d2dbe5;
  border-left: 5px solid #475569;
  border-radius: .25rem;
  color: #172839;
  background: #fff;
  font-weight: 700;
}

#report-config { margin-bottom: 1rem; }
#report-config summary { cursor: pointer; font-weight: 700; }
#report-config form { margin-block: 1rem; }
#triage input[type="checkbox"] { width: auto; min-height: 0; display: inline-block; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-block: 1rem; }
.report-grid article { min-width: 0; border: 1px solid #d2dbe5; border-radius: .5rem; overflow: hidden; }
.report-media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #eff3f6; }
.report-media img { display: block; width: 100%; height: 100%; max-height: 15rem; object-fit: contain; }
.report-card-body { padding: .75rem; overflow-wrap: anywhere; }
.report-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }

.section-hidden { display: none !important; }
#main-tabs, #settings-panel { margin-block: 1rem; }
#main-tabs button[aria-pressed="false"], #settings-tabs button[aria-pressed="false"] { background: #eaf0f4; color: #283c4a; }
#company-logo { width: 64px; height: 48px; object-fit: contain; }
#report-description { white-space: pre-wrap; }
.report-list-mode { grid-template-columns: 1fr; }
.report-list-mode article { display: grid; grid-template-columns: minmax(82px, 18%) 1fr; align-items: start; }
#report-dialog { width: min(94vw, 640px); max-height: 90vh; padding: 1.25rem; border: 1px solid #aebbc5; border-radius: .75rem; }
#report-dialog::backdrop { background: #10233499; }
.tag-pill { display: inline-block; border: 2px solid var(--tag-color, #475569); border-radius: 60px; padding: .2rem .65rem; background: color-mix(in srgb, var(--tag-color, #475569) 16%, transparent); color: #172839; }
#tag-colors, #location-list { list-style: none; padding: 0; }
#tag-colors > li, #location-list > li { margin-block: .4rem; }
#settings-panel input[type="checkbox"] { width: auto; min-height: 0; display: inline-block; }
.toast { position: fixed; z-index: 5; inset: auto 1rem 1rem auto; width: max-content; max-width: min(90vw, 30rem); padding: .75rem 1rem; border-radius: .5rem; color: #fff; background: #166534; box-shadow: 0 6px 22px #162b4055; }
.toast[data-tone="error"] { background: #a12222; }
.toast[data-tone="warning"] { background: #facc15; color: #3f3002; }
.toast[data-tone="info"] { background: #1d4b78; }

#intake-tag-list input[type="radio"] { width: auto; min-height: 0; display: inline-block; }

#main > h1 { margin-block: 1.25rem; }
#feedback.toast, #error.toast, .toast { color: #fff; font-weight: 750; border: 1px solid currentColor; }
#feedback.toast[data-tone="warning"], .toast[data-tone="warning"] { color: #241a00; }
.toast[data-tone="error"] { background: #821b1b; }
.hint { color: #435d70; }
.view-toggle { display: inline-flex; border: 1px solid #aabcca; border-radius: .55rem; padding: .15rem; background: #eef3f6; }
.view-toggle button[aria-pressed="false"] { color: #253b4a; background: transparent; }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; margin-top: .8rem; align-items: end; }
.report-filters label { margin: 0; }
.indicator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.indicator-chart { padding: 1rem; margin-block: .5rem; border: 1px solid var(--border); background: #f8fafb; border-radius: .65rem; }
.indicator-chart ul { margin: 0; padding: 0; list-style: none; }
.indicator-chart li { margin-top: .55rem; }
.indicator-chart li > div { display: flex; justify-content: space-between; gap: .5rem; }
.indicator-chart strong { white-space: nowrap; }
.indicator-chart meter { display: block; width: 100%; height: .75rem; }
.indicator-chart meter::-webkit-meter-optimum-value { background: #006553; }
.indicator-chart meter::-moz-meter-bar { background: #006553; }
#indicator-period { width: min(100%, 12rem); margin-bottom: .75rem; }
