:root {
  color-scheme: light;
  --navy: #123047;
  --navy-deep: #10283b;
  --teal: #12a983;
  --teal-dark: #078668;
  --ink: #1d3040;
  --muted: #73818d;
  --line: #e4e9ed;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --green-bg: #e8f8f2;
  --amber-bg: #fff5de;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  height: 72px; padding: 0 max(32px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: white;
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-actions .button-outline { min-height: 34px; border-color: #526c7d; background: transparent; color: #fff; }
.topbar-actions .button-outline:hover { border-color: #91a8b5; background: #ffffff12; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font: 800 18px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark, .login-card-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--teal); color: var(--navy-deep); font: 800 13px Manrope, sans-serif; letter-spacing: -.6px;
}
.brand-light { font-weight: 500; color: #a6bdc9; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; color: #d4e2e9; font-size: 12px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #54d9a9; box-shadow: 0 0 0 3px #54d9a926; }
.connection-state.is-offline .connection-dot { background: #ffbe53; box-shadow: 0 0 0 3px #ffbe5326; }
.page-shell { width: min(1180px, calc(100% - 64px)); min-height: calc(100vh - 126px); margin: 0 auto; padding: 54px 0 72px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'Segoe UI', sans-serif; color: var(--navy); }
h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -1.2px; }
h2 { margin-bottom: 7px; font-size: 19px; letter-spacing: -.4px; }
h3 { margin-bottom: 8px; font-size: 18px; }
.eyebrow { margin-bottom: 9px; color: #8996a0; font-size: 10px; font-weight: 700; letter-spacing: 1.45px; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--teal); color: #062d27; }
.button-primary:hover { background: #2dc29b; }
.button-outline { border-color: #d8e1e6; background: white; color: var(--navy); }
.button-outline:hover, .button-quiet:hover { border-color: #a9bbc4; background: #f7fafb; }
.button-quiet { min-height: 36px; padding: 0 12px; border-color: #dfe7ea; background: white; color: #536474; font-size: 12px; }
.button-small { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.button-wide { width: 100%; min-height: 47px; margin-top: 3px; }

.login-layout { display: grid; grid-template-columns: 1fr 410px; align-items: center; gap: 95px; max-width: 980px; min-height: 590px; margin: auto; }
.login-intro { padding-bottom: 25px; }
.login-intro .eyebrow { color: var(--teal-dark); }
.login-intro h1 { margin-bottom: 18px; font-size: clamp(40px, 5vw, 58px); line-height: 1.12; letter-spacing: -2.5px; }
.login-intro h1 span { color: var(--teal-dark); }
.login-intro > p:not(.eyebrow) { max-width: 410px; color: #6d7e8b; font-size: 16px; line-height: 1.7; }
.intro-stat { display: flex; align-items: center; gap: 12px; margin-top: 35px; color: #475a69; font-size: 13px; font-weight: 600; }
.intro-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-bg); color: var(--teal-dark); }
.login-card, .setup-card { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 34px #183b4d0c; }
.login-card-mark { width: 42px; height: 42px; margin-bottom: 25px; border-radius: 13px; font-size: 15px; }
.login-card h2 { margin-bottom: 7px; font-size: 23px; }
.login-card > p:not(.form-error) { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.login-card label, .setup-card label, .form-grid label, .notes-label { display: grid; gap: 7px; color: #435563; font-size: 12px; font-weight: 700; }
.login-card label { margin-bottom: 16px; }
input, textarea, select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe3e8; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: 13px; font-weight: 400; }
textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #37b997; box-shadow: 0 0 0 3px #12a98317; }
input::placeholder, textarea::placeholder { color: #a4afb6; }
.setup-hint { margin: 19px 0 0 !important; font-size: 11px !important; }
.setup-hint code { color: var(--navy); }
.form-error { min-height: 17px; margin: 10px 0 0; color: #b63838; font-size: 12px; }

.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.welcome-row .muted { margin-bottom: 0; font-size: 13px; }
.welcome-actions { display: flex; align-items: center; gap: 11px; }
.offline-badge, .sync-badge, .draft-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 20px; background: var(--amber-bg); color: #936614; font-size: 10px; font-weight: 700; }
.sync-badge { background: var(--green-bg); color: #138567; }
.draft-badge { background: #edf1f5; color: #657583; }
.approval-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 20px; background: var(--amber-bg); color: #936614; font-size: 10px; font-weight: 700; white-space: nowrap; }
.approval-approved { background: var(--green-bg); color: #138567; }
.approval-changes_requested { background: #fff0ed; color: #a04035; }
.status-message { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #cfe8dc; border-radius: 9px; background: #effaf5; color: #287358; font-size: 13px; }
.status-message.is-error { border-color: #efd1ce; background: #fff3f1; color: #a04035; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.summary-card { display: flex; align-items: center; gap: 14px; min-height: 91px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.summary-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.icon-teal { background: #e7f7f2; color: #159577; }
.icon-amber { background: #fff5df; color: #c28520; }
.icon-blue { background: #ebf3fa; color: #4d84ad; }
.summary-card > div { display: grid; gap: 3px; }
.summary-value { color: var(--navy); font: 800 22px Manrope, sans-serif; letter-spacing: -.8px; }
.summary-label { color: #75828c; font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.assessment-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 4px 13px #183b4d05; }
.assessment-top, .assessment-meta, .assessment-site { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.assessment-site { justify-content: flex-start; margin: 11px 0 13px; color: #62727d; font-size: 12px; }
.assessment-site span:first-child { color: var(--teal-dark); }
.sync-error { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px; border: 1px solid #f0d1cd; border-radius: 8px; background: #fff6f4; color: #8b4039; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.sync-error strong { font-weight: 700; }
.assessment-name { overflow: hidden; color: var(--navy); font: 700 14px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.assessment-meta { justify-content: flex-start; padding-top: 12px; border-top: 1px solid #edf0f2; color: #78858e; font-size: 10px; }
.assessment-meta span + span::before { content: '·'; margin: 0 8px 0 2px; color: #bcc5cb; }
.card-action { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.empty-state { padding: 54px 20px; border: 1px dashed #d2dce2; border-radius: 13px; background: #ffffff8c; text-align: center; }
.empty-icon { margin-bottom: 12px; color: #80a89e; font-size: 30px; }
.empty-state p { max-width: 450px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.editor-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; }
.editor-heading .eyebrow { margin-bottom: 5px; }
.editor-heading h1 { margin: 0; font-size: 27px; }
.back-button { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #dce4e8; border-radius: 10px; background: white; color: var(--navy); font-size: 21px; }
.form-section { margin-bottom: 17px; padding: 25px 27px 28px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.form-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.form-section-heading > div { flex: 1; }
.step-number { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9f7f3; color: #11856d; font: 800 11px Manrope, sans-serif; }
.form-section-heading h2 { margin-bottom: 4px; font-size: 16px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { gap: 6px; }
.form-grid label input, .form-grid label textarea { font-size: 12px; }
.span-2 { grid-column: span 2; }
.required { color: #c14b44; }
.coordinate-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border: 1px solid #e6ecef; border-radius: 9px; background: #f9fbfc; }
.coordinate-row > div { display: grid; flex: 1; gap: 3px; }
.coordinate-row strong { color: #425564; font-size: 11px; }
.coordinate-row small, .coordinate-value { color: #87939b; font-size: 10px; }
.coordinate-value { white-space: nowrap; }
.hazards-list { display: grid; gap: 13px; }
.hazard-card { padding: 16px; border: 1px solid #e3e9ec; border-radius: 11px; background: #fcfdfd; }
.hazard-card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.hazard-card-heading .hazard-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #edf4f6; color: #587383; font-size: 10px; font-weight: 700; }
.hazard-card-heading select { flex: 1; min-height: 38px; font-size: 12px; font-weight: 600; }
.remove-hazard { width: 34px; height: 34px; border: 1px solid #eadcda; border-radius: 8px; background: #fff; color: #b34d45; font-size: 17px; }
.hazard-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hazard-fields label { display: grid; gap: 6px; color: #63737e; font-size: 10px; font-weight: 700; }
.hazard-fields input, .hazard-fields textarea { min-height: 38px; font-size: 12px; }
.risk-score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; padding: 11px; border-radius: 9px; background: #f2f6f7; }
.risk-score-grid label { display: grid; gap: 6px; color: #6f7f89; font-size: 9px; font-weight: 700; }
.risk-score-grid input { min-height: 35px; padding: 6px 8px; text-align: center; }
.risk-score-label { grid-column: 1 / -1; color: #4f626e; font-size: 10px; font-weight: 700; }
.control-picker { display: grid; gap: 8px; margin-top: 14px; }
.control-picker > strong { color: #526571; font-size: 10px; }
.control-option { display: flex; align-items: flex-start; gap: 9px; color: #5c6b75; font-size: 11px; line-height: 1.45; }
.control-option input { flex: 0 0 15px; width: 15px; min-height: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--teal-dark); }
.control-option span { display: grid; gap: 2px; }
.control-option small { color: #89959c; font-size: 10px; }
.hazards-empty { padding: 17px; border: 1px dashed #d9e2e6; border-radius: 9px; color: #87939b; font-size: 12px; text-align: center; }
.notes-label { margin-top: 18px; }
.photo-drop { display: flex; align-items: center; gap: 13px; min-height: 80px; padding: 14px 16px; border: 1px dashed #c9d7dd; border-radius: 11px; background: #fbfdfd; cursor: pointer; }
.photo-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.photo-drop input:focus-visible + .photo-icon { outline: 3px solid #12a983; }
.photo-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #e9f7f3; color: #198e75; font-size: 20px; }
.photo-drop > span:nth-of-type(2) { display: grid; flex: 1; gap: 4px; }
.photo-drop strong { color: var(--navy); font-size: 12px; }
.photo-drop small { color: #85929b; font-size: 10px; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 10px; margin-top: 13px; }
.photo-thumb { position: relative; overflow: hidden; aspect-ratio: 1.3; border: 1px solid #e2e9ed; border-radius: 9px; background: #f1f4f5; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 25px; height: 25px; border: 0; border-radius: 50%; background: #10283bd9; color: white; font-size: 15px; }
.photo-thumb small { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 12px 6px 5px; background: linear-gradient(transparent, #10283bcf); color: white; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 19px; }
.form-footnote { margin: 11px 0 0; color: #84919a; font-size: 10px; text-align: right; }
.schedule-section { display: grid; gap: 12px; }
.schedule-section > div:first-child { display: grid; gap: 4px; }
.schedule-section strong { color: #425564; font-size: 12px; }
.schedule-section small { color: #87939b; font-size: 10px; }
.delivery-schedule { display: grid; gap: 8px; }
.delivery-schedule-row { display: grid; grid-template-columns: minmax(100px, .8fr) repeat(4, minmax(90px, 1fr)); align-items: end; gap: 9px; padding: 10px; border: 1px solid #e7ecef; border-radius: 9px; background: #fbfcfd; }
.delivery-schedule-row > label:not(.schedule-day) { display: grid; gap: 5px; color: #78858e; font-size: 9px; font-weight: 700; }
.delivery-schedule-row input[type="time"] { min-height: 36px; padding: 6px; font-size: 11px; }
.delivery-schedule-row input:disabled { background: #f1f3f4; color: #9aa4aa; }
.schedule-day { display: flex; align-items: center; gap: 7px; min-height: 36px; color: #425564; font-size: 11px; font-weight: 700; }
.schedule-day input, .admin-option-active input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--teal-dark); }
.admin-intro { margin-bottom: 18px; font-size: 12px; }
.session-expired-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.admin-option-form { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-option-form .section-heading { margin-bottom: 0; align-items: center; }
.admin-option-form .section-heading h2 { margin-bottom: 4px; font-size: 15px; }
.admin-option-form .section-heading p { max-width: 340px; font-size: 10px; line-height: 1.5; }
.admin-option-list { display: grid; gap: 8px; }
.admin-location-list { display: grid; gap: 14px; margin-bottom: 14px; }
.admin-location-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-location-grid .admin-option-active { align-self: end; }
.admin-option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.admin-hazard-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.5fr) auto; align-items: end; gap: 10px; margin-bottom: 10px; }
.admin-option-value { display: grid; gap: 5px; color: #71808a; font-size: 10px; font-weight: 700; }
.admin-option-value input { min-height: 37px; font-size: 12px; }
.admin-option-active { display: flex; align-items: center; gap: 6px; min-height: 37px; color: #71808a; font-size: 10px; white-space: nowrap; }
.admin-users-section { margin-top: 16px; }
.admin-report-section { margin-top: 16px; }
.report-section-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.report-section-options legend { padding: 0 6px; color: #526571; font-size: 11px; font-weight: 700; }
.report-section-options label { display: flex; align-items: center; gap: 8px; color: #526571; font-size: 11px; }
.report-section-options input { width: 16px; min-height: 16px; accent-color: var(--teal); }
.admin-users { display: grid; gap: 8px; }
.admin-user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #e7ecef; border-radius: 9px; }
.admin-user-row > div { display: grid; gap: 4px; }
.user-role-badges { display: flex !important; flex-wrap: wrap; align-items: center; gap: 5px !important; }
.admin-user-row strong { color: #425564; font-size: 12px; }
.admin-user-row > div:first-child span { color: #87939b; font-size: 10px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px max(32px, calc((100vw - 1180px) / 2)); border-top: 1px solid #e7ecef; color: #89949b; font-size: 10px; }
.setup-page { display: grid; place-items: center; padding: 24px; }
.setup-card { width: min(430px, 100%); }
.setup-card .brand { margin-bottom: 27px; color: var(--navy); }
.setup-card h1 { font-size: 26px; }
.setup-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.stack-form { display: grid; gap: 15px; margin-top: 22px; }
.notice { padding: 11px 13px; border-radius: 8px; background: #eff8f4; color: #287358 !important; }
.detail-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.detail-record-heading h2 { margin: 0; font-size: 21px; }
.detail-record-heading .eyebrow { margin-bottom: 5px; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin: 12px 0; }
.review-form { max-width: 720px; margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.review-form textarea { width: 100%; }
.history-list { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: #526573; font-size: 12px; line-height: 1.5; }
.history-list p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-list details { margin-top: 6px; }
.history-list summary { color: var(--teal-dark); cursor: pointer; font-weight: 700; }
.history-list pre { max-height: 360px; overflow: auto; padding: 12px; border-radius: 7px; background: #f3f6f7; font: 10px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-section { margin-bottom: 15px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.detail-section > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; margin: 0; }
.detail-grid > div { min-width: 0; }
.detail-grid dt, .detail-impact strong { display: block; margin-bottom: 5px; color: #83919a; font-size: 10px; font-weight: 700; }
.detail-grid dd { margin: 0; color: #354c5b; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-hazards { display: grid; gap: 11px; }
.detail-hazard { padding: 15px; border: 1px solid #e7ecef; border-radius: 9px; background: #fcfdfd; }
.detail-hazard-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.detail-hazard-heading h3 { margin: 0; font-size: 13px; }
.detail-hazard .hazard-number { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #edf4f6; color: #587383; font-size: 10px; font-weight: 700; }
.detail-impact { margin: 0 0 12px; color: #526571; font-size: 11px; line-height: 1.55; }
.detail-impact strong { margin-bottom: 3px; }
.risk-rating { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.risk-rating span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; background: #eef4f5; color: #667985; font-size: 10px; }
.risk-rating strong { color: #355160; font-size: 11px; }
.detail-hazard h4 { margin: 12px 0 6px; color: #536773; font-size: 10px; }
.detail-hazard ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: #536773; font-size: 11px; line-height: 1.5; }
.detail-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: #edf4f5; color: #5b7784; font-size: 10px; }
.detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
.detail-photo { overflow: hidden; display: grid; align-content: start; min-height: 118px; border: 1px solid #e4eaed; border-radius: 9px; background: #f3f6f7; color: #4e6470; text-decoration: none; }
.detail-photo img { width: 100%; height: 115px; object-fit: cover; }
.detail-photo span { padding: 8px; font-size: 10px; overflow-wrap: anywhere; }
.photo-unavailable { align-content: center; text-align: center; font-size: 10px; }

@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 18px; }
  .page-shell { width: min(100% - 36px, 600px); padding: 34px 0 48px; }
  .login-layout { grid-template-columns: 1fr; gap: 23px; max-width: 450px; min-height: auto; }
  .login-intro { padding: 0; }
  .login-intro h1 { font-size: 42px; }
  .login-intro > p:not(.eyebrow) { font-size: 14px; }
  .intro-stat { margin-top: 18px; }
  .login-card { padding: 25px; }
  .summary-grid { gap: 8px; margin-bottom: 29px; }
  .summary-card { min-height: 83px; gap: 9px; padding: 12px 10px; }
  .summary-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .summary-value { font-size: 19px; }
  .summary-label { font-size: 9px; line-height: 1.3; }
  .assessment-grid { grid-template-columns: 1fr; }
  .form-section { padding: 20px 17px; }
  .admin-options { grid-template-columns: 1fr; }
  .report-section-options { grid-template-columns: 1fr; }
  .session-expired-banner { align-items: flex-start; flex-direction: column; }
  .admin-location-grid { grid-template-columns: 1fr; }
  .admin-hazard-row { grid-template-columns: 1fr; }
  .delivery-schedule { overflow-x: auto; }
  .delivery-schedule-row { min-width: 690px; }
  .admin-user-row { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-user-row > .button { grid-column: 1 / -1; justify-self: start; }
  .form-section-heading { flex-wrap: wrap; gap: 10px; }
  .form-section-heading > div { min-width: 0; }
  .form-section-heading > .button { margin-left: auto; }
  .coordinate-row { flex-wrap: wrap; }
  .coordinate-row > div { flex-basis: calc(100% - 30px); }
  .coordinate-value { margin-left: auto; }
  .detail-record-heading, .detail-section { padding: 18px; }
  .detail-actions { justify-content: stretch; }
  .detail-actions .button { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-footer { padding: 17px 18px; font-size: 9px; }
}
@media (max-width: 480px) {
  .connection-state { font-size: 0; }
  .connection-dot { width: 9px; height: 9px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row .muted { max-width: 235px; line-height: 1.5; }
  .welcome-actions { align-items: flex-end; flex-direction: column-reverse; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .hazard-fields { grid-template-columns: 1fr; }
  .risk-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .form-footnote { line-height: 1.5; text-align: left; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}
