:root {
  color-scheme: light;
  --ink: #17252b;
  --muted: #68777d;
  --line: #dce7e8;
  --soft: #f2f8f8;
  --teal: #087f83;
  --teal-dark: #075f63;
  --mint: #d9f1ee;
  --blue: #5276a6;
  --warning: #b76a13;
  --warning-bg: #fff5e8;
  --danger: #c44848;
  --danger-bg: #fff0f0;
  --ok: #147765;
  --ok-bg: #edf8f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #eef8f8 0, #fff 460px); min-height: 100vh; }
button, input { font: inherit; }
.shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.topbar { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid rgba(8,127,131,.13); }
.brand { color: inherit; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.brand-mark { width: 39px; height: 39px; position: relative; display: grid; place-items: center; border-radius: 12px; background: var(--teal); box-shadow: 0 8px 18px rgba(8,127,131,.18); }
.brand-mark span { width: 17px; height: 20px; border: 3px solid white; border-bottom: 0; border-radius: 12px 12px 0 0; }
.brand-mark i { position: absolute; bottom: 8px; width: 24px; height: 3px; background: white; border-radius: 3px; }
.local-badge { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--teal-dark); font-size: .78rem; border: 1px solid #cfe6e4; }
.confirmation-only { display: none !important; }
body[data-environment="confirmation"] .confirmation-only { display: block !important; }
body[data-environment="confirmation"] .local-badge.confirmation-only { display: inline-flex !important; }
.tool-nav { display: flex; justify-content: center; gap: 8px; padding-top: 18px; }
.tool-nav a { color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.74); border-radius: 999px; padding: 9px 15px; font-size: .86rem; font-weight: 700; }
.tool-nav a:hover, .tool-nav a:focus-visible { border-color: #9fc8c6; color: var(--teal-dark); }
.tool-nav a.active { color: white; background: var(--teal); border-color: var(--teal); }
.tool-nav small { font-size: .68rem; opacity: .8; }
.intro { text-align: center; padding: 64px 16px 38px; }
.eyebrow { color: var(--teal); font-weight: 750; letter-spacing: .17em; font-size: .72rem; margin: 0 0 13px; }
.intro h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.24; letter-spacing: -.045em; }
.intro h1 em { color: var(--teal); font-style: normal; }
.intro > p:last-child { color: var(--muted); margin: 18px auto 0; font-size: 1rem; }
.drop-zone { background: white; border: 2px dashed #a9cecd; border-radius: 24px; min-height: 270px; display: grid; place-content: center; justify-items: center; padding: 34px; cursor: pointer; text-align: center; box-shadow: 0 18px 55px rgba(37,79,84,.09); transition: .2s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--teal); background: #fbfefe; transform: translateY(-2px); box-shadow: 0 22px 65px rgba(37,79,84,.14); }
.upload-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--teal); background: var(--mint); }
.upload-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone h2 { font-size: 1.12rem; margin: 19px 0 7px; }
.drop-zone p { margin: 0 0 13px; color: var(--muted); }
.drop-zone p span { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.drop-zone small { color: #829095; }
.progress-panel { background: white; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.progress-copy { display: flex; justify-content: space-between; font-size: .88rem; }
.progress-copy span { color: var(--teal); font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; background: #e8f1f1; border-radius: 9px; overflow: hidden; margin-top: 12px; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), #43b7a9); transition: width .2s; }
.results { padding-top: 52px; }
.result-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.result-head h2 { font-size: clamp(1.25rem, 4vw, 1.8rem); margin: 0; overflow-wrap: anywhere; }
.result-head > div > p:last-child { color: var(--muted); margin: 6px 0 0; }
.secondary-button { color: var(--teal-dark); background: white; border: 1px solid #b8d5d4; border-radius: 10px; padding: 11px 16px; cursor: pointer; white-space: nowrap; font-weight: 650; }
.summary-card { display: flex; align-items: center; gap: 15px; padding: 18px 20px; border-radius: 15px; background: var(--ok-bg); border: 1px solid #cbe9df; }
.summary-card.warning { background: var(--warning-bg); border-color: #f1d8b6; }
.summary-card.danger { background: var(--danger-bg); border-color: #f1c8c8; }
.summary-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ok); font-weight: 800; }
.warning .summary-icon { background: var(--warning); }
.danger .summary-icon { background: var(--danger); }
.summary-card strong { font-size: 1.02rem; }
.summary-card p { margin: 3px 0 0; color: var(--muted); line-height: 1.5; font-size: .9rem; }
#waveform { width: 100%; height: 144px; margin: 22px 0; display: block; background: #f6fafa; border: 1px solid var(--line); border-radius: 15px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.check-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 19px; display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.check-status { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--ok); background: var(--ok-bg); font-weight: 800; }
.check-card.warning .check-status { color: var(--warning); background: var(--warning-bg); }
.check-card.danger .check-status { color: var(--danger); background: var(--danger-bg); }
.warning-ok { display: inline-block; margin: 1px 0 5px; padding: 3px 8px; border-radius: 999px; color: #8b4c08; background: var(--warning-bg); font-size: .75rem; font-weight: 800; line-height: 1.35; }
.check-card h3 { color: var(--muted); font-size: .78rem; letter-spacing: .04em; margin: 1px 0 6px; }
.check-conclusion { display: block; color: var(--ink); font-size: 1rem; line-height: 1.4; margin-bottom: 10px; }
.check-card p { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 5px 0 0; }
.check-card p b { color: var(--ink); display: inline-block; margin-right: 7px; font-size: .75rem; }
.check-card .check-fix { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.check-card.warning .check-fix b { color: var(--warning); }
.check-card.danger .check-fix b { color: var(--danger); }
.guide-open { margin-top: 12px; padding: 7px 11px; border: 1px solid #bdd8d7; border-radius: 9px; color: var(--teal-dark); background: #f8fcfc; font-size: .76rem; font-weight: 750; cursor: pointer; }
.guide-open:hover, .guide-open:focus-visible { border-color: var(--teal); background: var(--mint); }
.settings { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.settings summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: .9rem; }
.settings-body { border-top: 1px solid var(--line); padding: 8px 18px 16px; color: var(--muted); font-size: .84rem; }
.settings-body p { margin: 10px 0; }
.settings-body strong { color: var(--ink); display: inline-block; min-width: 88px; }
.scope-note { margin: 50px 0 70px; padding: 22px 24px; border-left: 3px solid var(--teal); background: rgba(242,248,248,.8); }
.scope-note strong { font-size: .93rem; }
.scope-note p { color: var(--muted); line-height: 1.65; margin: 7px 0 0; font-size: .88rem; }
.scope-note .disclaimer { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.alignment-intro { padding-bottom: 30px; }
.alignment-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.file-panel { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 28px; border: 2px dashed #a9cecd; border-radius: 20px; background: white; text-align: center; cursor: pointer; box-shadow: 0 14px 42px rgba(37,79,84,.07); }
.file-panel:hover, .file-panel:focus-within, .file-panel.dragging { border-color: var(--teal); background: #f3fbfa; transform: translateY(-2px); box-shadow: 0 18px 48px rgba(37,79,84,.13); }
.file-step { position: absolute; top: 16px; left: 16px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--teal); font-size: .8rem; font-weight: 800; }
.file-panel strong { font-size: 1.08rem; }
.file-panel > span:not(.file-step) { width: 100%; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.file-panel b { margin-top: 7px; padding: 8px 12px; border-radius: 9px; color: var(--teal-dark); background: var(--mint); font-size: .82rem; }
.primary-button { width: 100%; margin-top: 18px; padding: 15px 20px; border: 0; border-radius: 12px; color: white; background: var(--teal); font-weight: 800; cursor: pointer; box-shadow: 0 10px 25px rgba(8,127,131,.17); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.alignment-result { padding-top: 40px; }
.alignment-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.alignment-card.ok { background: var(--ok-bg); border-color: #cbe9df; }
.alignment-card.danger { background: var(--danger-bg); border-color: #f1c8c8; }
.alignment-card.neutral { background: #f5f7f8; border-color: #d8e0e3; }
.alignment-status { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: white; background: #7b898e; font-size: 1.1rem; font-weight: 800; }
.alignment-card.ok .alignment-status { background: var(--ok); }
.alignment-card.danger .alignment-status { background: var(--danger); }
.alignment-card h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 3vw, 1.45rem); }
.alignment-card p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }
.alignment-card p b { display: inline-block; color: var(--ink); margin-right: 8px; font-size: .78rem; }
.alignment-fix { padding-top: 10px; border-top: 1px solid var(--line); }
.alignment-result > .secondary-button { margin-top: 14px; }
.collab-intro { padding-bottom: 32px; }
.selected-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.selected-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selected-head strong { font-size: .95rem; }
.selected-head button { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-weight: 700; font-size: .82rem; }
.selected-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 15px 0 0; list-style: none; }
.selected-files li { display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: .82rem; }
.selected-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-files small { flex: 0 0 auto; color: #879398; }
.collab-check-grid { margin-top: 22px; }
.comparison-section { margin-top: 28px; }
.comparison-section > h2 { margin: 0 0 13px; font-size: 1.05rem; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }
.comparison-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .78rem; }
.comparison-table th, .comparison-table td { padding: 12px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.comparison-table th { color: var(--muted); background: #f6fafa; font-size: .72rem; }
.comparison-table td:first-child { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 650; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.table-state { display: inline-block; padding: 4px 8px; border-radius: 999px; font-weight: 800; font-size: .7rem; }
.table-state.ok { color: var(--ok); background: var(--ok-bg); }
.table-state.warning { color: #8b4c08; background: var(--warning-bg); }
.table-state.danger { color: var(--danger); background: var(--danger-bg); }
footer { border-top: 1px solid var(--line); text-align: center; color: #879398; padding: 27px; font-size: .75rem; }
footer span, footer small { display: block; }
footer small { margin-top: 5px; font-size: .68rem; }
.feedback-link { display: inline-block; margin-bottom: 16px; padding: 7px 13px; border: 1px solid #d6e1e3; border-radius: 999px; color: #66777d; font-size: .76rem; text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.feedback-link:hover, .feedback-link:focus-visible { border-color: var(--teal); color: var(--teal); background: rgba(31,143,143,.05); }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 24px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.result-actions-copy strong { font-size: .93rem; }
.result-actions-copy p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.result-action-buttons { display: flex; flex: 0 0 auto; gap: 9px; }
.action-button { border: 1px solid var(--teal); border-radius: 10px; padding: 10px 13px; color: white; background: var(--teal); font-weight: 750; font-size: .8rem; cursor: pointer; }
.action-button.secondary { color: var(--teal-dark); background: white; }
.consult-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 14px; padding: 18px 20px; border-radius: 15px; background: var(--soft); border: 1px solid #d5e7e6; }
.consult-card strong { font-size: .9rem; }
.consult-card p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.consult-buttons { display: flex; flex: 0 0 auto; gap: 8px; }
.consult-button { padding: 10px 14px; border-radius: 10px; font-weight: 750; font-size: .8rem; text-decoration: none; text-align: center; }
.consult-button.secondary { color: var(--teal-dark); background: white; border: 1px solid #afd0ce; }
.consult-button.primary { color: white; background: var(--teal); border: 1px solid var(--teal); }
.privacy-link { display: block; margin: 0 auto 15px; padding: 0; border: 0; color: #66777d; background: transparent; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 28px 90px rgba(20,42,48,.28); }
.privacy-dialog::backdrop { background: rgba(19,37,43,.55); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 1.05rem; }
.dialog-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: var(--soft); font-size: 1.25rem; cursor: pointer; }
.dialog-body { max-height: min(62vh, 520px); overflow-y: auto; padding: 8px 21px 4px; }
.dialog-body h3 { margin: 15px 0 5px; font-size: .9rem; }
.dialog-body p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.7; }
.dialog-close-button { display: block; width: calc(100% - 42px); margin: 15px 21px 20px; padding: 11px; border: 0; border-radius: 10px; color: white; background: var(--teal); font-weight: 750; cursor: pointer; }
.guide-dialog { width: min(650px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 28px 90px rgba(20,42,48,.28); }
.guide-dialog::backdrop { background: rgba(19,37,43,.55); }
.guide-intro { margin: 18px 21px 0; padding: 15px 17px; border-left: 4px solid var(--teal); background: var(--soft); }
.guide-intro strong { display: block; color: var(--teal-dark); font-size: .98rem; line-height: 1.45; }
.guide-intro p { margin: 5px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; padding: 18px 21px 4px; }
.guide-columns h3 { margin: 0 0 6px; font-size: .86rem; }
.guide-columns p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.guide-tip { margin: 15px 21px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.65; }
.guide-tip b { color: var(--ink); margin-right: 6px; }

.calibration-shell { max-width: 1120px; }
.calibration-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 48px 0 24px; }
.calibration-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.calibration-heading > div:first-child > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.calibration-count { flex: 0 0 142px; padding: 17px; border: 1px solid #cce4e2; border-radius: 17px; background: white; text-align: center; box-shadow: 0 10px 30px rgba(37,79,84,.07); }
.calibration-count strong, .calibration-count span, .calibration-count small { display: block; }
.calibration-count strong { color: var(--teal); font-size: 2rem; line-height: 1; }
.calibration-count span { margin-top: 5px; font-weight: 750; }
.calibration-count small { margin-top: 8px; color: var(--muted); }
.admin-note { margin-bottom: 18px; padding: 17px 19px; border-left: 4px solid var(--warning); border-radius: 0 13px 13px 0; background: var(--warning-bg); }
.admin-note strong { font-size: .9rem; }
.admin-note p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.calibration-drop { min-height: 225px; }
.calibration-result { padding-top: 42px; }
.calibration-result-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.calibration-result-head h2 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.calibration-result-head > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.metric-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric-grid span { display: block; color: var(--muted); font-size: .75rem; }
.metric-grid strong { display: block; margin-top: 6px; font-size: 1rem; line-height: 1.4; }
.calibration-form { margin-top: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.calibration-form fieldset { margin: 0; padding: 0; border: 0; }
.calibration-form legend { font-weight: 750; font-size: .9rem; }
.calibration-form legend span { color: var(--danger); font-size: .72rem; margin-left: 6px; }
.rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rating-options label { cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.rating-options span { display: grid; min-height: 45px; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--soft); font-size: .82rem; font-weight: 700; text-align: center; }
.rating-options input:checked + span { color: white; background: var(--teal); border-color: var(--teal); }
.rating-options input:focus-visible + span { outline: 3px solid rgba(8,127,131,.22); outline-offset: 2px; }
.note-field { display: block; margin-top: 16px; }
.note-field > span { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 750; }
.note-field small { color: var(--muted); font-weight: 400; }
.note-field textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; line-height: 1.55; }
.calibration-log { margin: 48px 0 70px; }
.calibration-log-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.calibration-log-head h2 { margin: 0; font-size: 1.2rem; }
.calibration-log-head > div:last-child { display: flex; gap: 8px; }
.empty-log { padding: 27px; border: 1px dashed #bcd4d3; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.7); text-align: center; }
.calibration-table { min-width: 1080px; }
.calibration-table td:nth-child(2), .calibration-table td:nth-child(8) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.row-delete { border: 0; padding: 5px 8px; color: var(--danger); background: var(--danger-bg); border-radius: 7px; cursor: pointer; font-size: .72rem; font-weight: 700; }

@media print {
  body { background: white; }
  body > main > :not(.results), footer, .result-head .secondary-button, .result-actions, .consult-card, .settings { display: none !important; }
  .shell { width: 100%; }
  .results { display: block !important; padding: 0; }
  .check-card { break-inside: avoid; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 24px, 960px); }
  .topbar { min-height: 70px; }
  .local-badge { display: none; }
  .intro { padding: 46px 4px 28px; }
  .intro h1 { font-size: 2.08rem; }
  .intro > p:last-child { font-size: .9rem; }
  .drop-zone { min-height: 235px; padding: 26px 18px; border-radius: 19px; }
  .result-head { align-items: start; flex-direction: column; }
  .secondary-button { width: 100%; }
  .check-grid { grid-template-columns: 1fr; }
  .check-card { grid-template-columns: 36px 1fr; padding: 17px; }
  .tool-nav { padding-top: 14px; }
  .tool-nav a { padding: 8px 11px; font-size: .8rem; }
  .alignment-files { grid-template-columns: 1fr; }
  .file-panel { min-height: 175px; }
  .alignment-card { grid-template-columns: 40px 1fr; padding: 18px; }
  .alignment-status { width: 40px; height: 40px; }
  .selected-files { grid-template-columns: 1fr; }
  .selected-panel { padding: 16px; }
  .comparison-table { min-width: 780px; }
  .result-actions, .consult-card { align-items: stretch; flex-direction: column; }
  .result-action-buttons { width: 100%; }
  .action-button { flex: 1; }
  .consult-button { text-align: center; }
  .consult-buttons { width: 100%; }
  .consult-buttons .consult-button { flex: 1; }
  .guide-columns { grid-template-columns: 1fr; }
  .calibration-heading { align-items: stretch; flex-direction: column; }
  .calibration-count { flex-basis: auto; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; text-align: left; }
  .calibration-count span, .calibration-count small { margin: 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rating-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calibration-result-head, .calibration-log-head { align-items: stretch; flex-direction: column; }
  .calibration-log-head > div:last-child { width: 100%; }
  .calibration-log-head .action-button { flex: 1; }
}
