/* Ingen eksterne skrifttyper: siden skal kunne bruges uden internet. */

:root {
  --navy: #102b3b;
  --navy-2: #214e5a;
  --ink: #1b303b;
  --muted: #5d7280;
  --line: #dbe4e5;
  --surface: #ffffff;
  --page: #f4f7f5;
  --blue-soft: #e6f0ee;
  --green: #147a62;
  --green-soft: #e0f4e9;
  --amber: #92570b;
  --amber-soft: #fff3de;
  --shadow: 0 14px 42px rgba(16, 43, 59, .06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background: var(--page); }
.is-hidden { display: none !important; }
button, input, textarea, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8dd6b5; outline-offset: 3px; }
.topbar {
  min-height: 84px;
  padding: 14px max(22px, calc((100vw - 1190px)/2));
  border-color: #e4eae8;
  box-shadow: 0 2px 14px rgba(14, 38, 51, .018);
}
.brand-mark { width: 48px; height: 48px; border-radius: 15px; background: #123342; font-size: 1.35rem; letter-spacing: -.07em; font-family: Manrope, sans-serif; }
.brand .brand-mark { display: grid; place-items: center; color: white; }
.brand-mark .brand-initial { display: inline; color: #fff; margin: 0; font-size: inherit; font-weight: 800; }
.brand-mark .brand-dot { display: inline; color: #c4ea78; margin: 0; font-size: 1.25em; }
.brand strong { font-family: Manrope, sans-serif; letter-spacing: -.05em; font-size: 1.12rem; color: #153340; }
.brand strong em { font-style: normal; font-weight: 500; }
.brand > div > span { font-size: .74rem; margin-top: 1px; }
.status-badge { background: #eff5f1; color: #41634f; font-size: .74rem; font-weight: 700; }
.save-status { font-size: .71rem; }
#updateBadge { color: #407260; }
.update-notice { position: fixed; z-index: 99; left: max(14px, calc((100vw - 750px)/2)); right: max(14px, calc((100vw - 750px)/2)); bottom: max(16px, env(safe-area-inset-bottom)); padding: 18px 20px; background: #f2faef; color: #163f38; border: 2px solid #9ac8a1; border-radius: 18px; box-shadow: 0 18px 65px rgba(13,37,41,.22); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.update-notice strong { font-size: 1rem; }
.update-notice p { font-size: .83rem; line-height: 1.5; color: #45635b; margin: 5px 0 0; }
.update-actions { display: flex; gap: 9px; flex-wrap: wrap; flex: 0 0 auto; }
.update-actions .button { min-height: 42px; padding: 9px 15px; font-size: .82rem; }
.app-shell { width: min(100%, 1130px); padding: 36px 23px 80px; }
.eyebrow { color: #387365; letter-spacing: .12em; font-size: .72rem; font-family: Manrope, sans-serif; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a5d96c; margin-right: 6px; vertical-align: 1px; }
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; letter-spacing: -.04em; }
h1, h2 { color: #153744; }
.hero {
  max-width: none;
  min-height: 310px;
  padding: clamp(29px, 6vw, 60px);
  background: radial-gradient(circle at 94% 4%, rgba(172,218,121,.18) 0 6%, transparent 30%), linear-gradient(115deg, #0c2937 0%, #173e46 60%, #1b4948 100%);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  color: white;
  margin-bottom: 25px;
}
.hero:after { content: ''; position: absolute; width: 270px; height: 270px; border: 1px solid rgba(210,248,198,.13); border-radius: 50%; right: -108px; top: 5px; box-shadow: 0 0 0 52px rgba(214,246,198,.028), 0 0 0 108px rgba(214,246,198,.018); pointer-events: none; }
.hero .eyebrow { color: #c3e2ae; }
.hero h1 { color: white; max-width: 720px; font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.05; position: relative; z-index: 1; }
.hero-accent { color: #c5ed94; }
.hero > p:nth-of-type(2) { max-width: 575px; color: #d5e3e3; line-height: 1.65; font-size: .99rem; margin: 19px 0 0; position: relative; z-index: 1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; position: relative; z-index: 1; }
.hero-tags span { border: 1px solid rgba(227,244,232,.19); background: rgba(235,255,231,.075); border-radius: 999px; color: #dfefdf; font-size: .79rem; padding: 7px 11px; font-weight: 600; }
.action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.action-card { min-height: 138px; border-radius: 21px; padding: 24px; box-shadow: var(--shadow); border-color: #e7edeb; gap: 18px; position: relative; overflow: hidden; }
.action-card:hover { transform: translateY(-2px); border-color: #b8d6c1; }
.action-card:active { transform: scale(.99); }
.action-card strong { font-size: 1.1rem; color: #183b45; font-family: Manrope, system-ui, sans-serif; letter-spacing: -.03em; }
.action-card small { font-size: .85rem; line-height: 1.5; }
.action-icon { width: 54px; height: 54px; border-radius: 15px; font-size: 1.6rem; background: #e9f1ed; color: #30695b; }
.action-card-primary { background: #d0f1b5; border-color: #c3e6aa; }
.action-card-primary .action-icon { background: #143d34; color: #d1efab; }
.action-card-primary small, .action-card-primary strong { color: #143d34; }
.action-card-scan { background: #fff; border-color: #b9d9d4; }
.action-card-scan .action-icon { background: #d9ece5; color: #1e6659; }
.action-card-scan:after { content: ''; position: absolute; width: 90px; height: 90px; border: 1px solid #e5f0e7; right: -53px; top: -33px; border-radius: 50%; }
.action-card-think { background: #eaf3ef; border-color: #c9dfd6; }
.action-card-think .action-icon { background: #d3e7dc; color: #246750; }
.action-card-incident { background: #fff5e8; border-color: #f1dfc1; }
.action-card-incident .action-icon { background: #f7e4c6; color: #88591d; }
.action-arrow { margin-left: auto; font-weight: 700; color: #42776c; align-self: flex-start; }
.info-grid { margin-top: 30px; gap: 24px; }
.info-grid article { border-top: 1px solid #cddad5; padding: 18px 0 0; }
.info-grid h2 { font-size: .91rem; color: #2e6259; }
.info-grid p { color: #637982; font-size: .85rem; }
.home-disclaimer { margin-top: 30px; color: #83919a; font-size: .76rem; line-height: 1.5; }
#setupScreen, #questionScreen, #summaryScreen, #historyScreen, #hubReportScreen, #hubHistoryScreen { max-width: 870px; margin-inline: auto; }
.screen-heading h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.screen-heading > p:last-child { color: #6e7f87; line-height: 1.6; }
.form-card, .question-card, .send-panel { border-radius: 23px; border: 1px solid #e0e8e5; }
.button { border-radius: 12px; min-height: 48px; transition: filter .15s ease, transform .15s ease; }
.button:active { transform: scale(.985); }
.button-primary { background: #173e3e; }
.button-primary:hover { background: #0b3335; }
.button-secondary { border-color: #bdd1c9; color: #1d4c49; }
.choice-tile:has(input:checked), .answer-button:has(input:checked) { border-color: #348772; background: #eef9ed; }
.question-card { box-shadow: 0 15px 48px rgba(16,43,59,.08); }
.progress-track { background: #dce8e2; }
.progress-track > span { background: #2e926f; }
.send-panel { background: #f6fbf5; }

/* Other Work Environment Hub report types */
.hub-form { display: grid; gap: 18px; }
.hub-form .form-card { display: grid; gap: 11px; }
.hub-form .form-card h2 { font-size: 1.22rem; margin: 0 0 9px; }
.hub-form .form-card h3 { font-size: .96rem; margin: 16px 0 1px; }
.hub-form .form-card > label, .hub-two-cols label { font-size: .86rem; color: #234c4c; }
.hub-form input:not([type=checkbox]):not([type=file]), .hub-form textarea, .hub-form select { width: 100%; background: #fafcfa; border: 1px solid #cfddd7; border-radius: 12px; color: #173a42; padding: 13px; font-size: .91rem; min-width: 0; }
.hub-form input[type=checkbox] { accent-color: #24765e; width: 18px; height: 18px; flex: 0 0 18px; }
.hub-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.hub-two-cols > div { min-width: 0; display: grid; gap: 7px; align-content: start; }
.hub-checks { display: grid; gap: 10px; }
.hub-checks label { display: flex; align-items: start; gap: 11px; border: 1px solid #dbe8e0; border-radius: 12px; padding: 13px; background: #f8fbf8; font-size: .84rem; line-height: 1.45; cursor: pointer; }
.hub-photo-list { display: flex; flex-wrap: wrap; gap: 12px; }
.hub-photo { display: grid; gap: 6px; width: 125px; }
.hub-photo img { width: 125px; height: 95px; object-fit: cover; border: 1px solid #d8e7dc; border-radius: 10px; }
.hub-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hub-buttons > button { flex: 1 1 190px; }
.hub-error-text { color: #aa382a !important; }

/* Scanner */
.scanner-screen .screen-heading { max-width: 760px; }
.scanner-screen .screen-heading h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.scanner-screen .screen-heading > p:not(.eyebrow) { max-width: 720px; margin: 14px 0 0; color: #6e7f87; line-height: 1.6; }
.search-service-badge { display: inline-flex; align-items: center; margin-top: 15px; padding: 7px 11px; border-radius: 999px; background: #fff4de; color: #846321; border: 1px solid #eadab6; font-size: .72rem; font-weight: 800; }
.search-service-badge.connected { background: #e2f4e5; color: #246747; border-color: #c4e2ca; }
.scanner-layout { display: grid; grid-template-columns: minmax(0,1fr) 295px; gap: 22px; align-items: start; }
.scanner-main { display: grid; gap: 18px; min-width: 0; }
.scanner-card { background: white; border: 1px solid #e0e8e5; border-radius: 22px; padding: clamp(20px,3vw,29px); box-shadow: var(--shadow); }
.scan-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.step-circle { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #deefda; color: #216150; font-family: Manrope, sans-serif; font-size: .85rem; font-weight: 800; }
.scan-header h2 { font-size: 1.24rem; margin: 0 0 3px; }
.scan-header p { color: var(--muted); margin: 0; font-size: .85rem; line-height: 1.5; }
.scanner-camera-button { background: #194841; min-height: 55px; margin: 3px 0 12px; }
.camera-consent { display: flex; align-items: flex-start; gap: 10px; background: #f3f8f3; border: 1px solid #e1ebe3; border-radius: 12px; padding: 13px; color: #41655c !important; line-height: 1.5; font-size: .8rem !important; font-weight: 600; cursor: pointer; }
.scanner-card .camera-consent input[type=checkbox] { accent-color: #287e61; margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 18px; padding: 0; }
.camera-consent span { min-width: 0; flex: 1; }
.field-separator { height: 30px; display: flex; align-items: center; gap: 14px; margin: 7px 0 15px; color: #87989a; font-size: .77rem; }
.field-separator:before, .field-separator:after { content: ''; height: 1px; background: #e4ebe7; flex: 1; }
#sdsSearchForm { display: grid; gap: 10px; }
#sdsSearchForm label, .scanner-card label { font-size: .85rem; color: #234b4e; margin-top: 4px; }
.scanner-card input:not([type=file]) { min-width: 0; width: 100%; background: #f9fbf9; border: 1px solid #d3e0da; border-radius: 11px; padding: 14px 15px; color: #16383d; outline: none; font-size: .91rem; }
.scanner-card input:focus { border-color: #448b70; box-shadow: 0 0 0 3px rgba(87,153,112,.14); }
#sdsSearchForm button { margin-top: 8px; }
.camera-box { border-radius: 17px; position: relative; background: #0d252d; overflow: hidden; padding-bottom: 15px; text-align: center; margin: 9px 0 16px; color: #dfeddb; }
.camera-box video { display: block; width: 100%; max-height: 300px; object-fit: cover; aspect-ratio: 4 / 3; }
.camera-box p { font-size: .82rem; }
.camera-box button { margin: 4px auto 0; }
.camera-target { position: absolute; left: 17%; right: 17%; top: 16%; height: 45%; border: 2px solid #d6f79c; border-radius: 12px; box-shadow: 0 0 0 500px rgba(0,0,0,.18); pointer-events: none; }
.sds-message { padding: 15px 18px; border-radius: 13px; background: #e9f1ef; color: #285f59; line-height: 1.55; font-size: .86rem; border: 1px solid #c9dfd4; }
.sds-message.warning { background: #fff6e5; color: #7b540e; border-color: #f2dfa8; }
.sds-message.error { background: #fff0ec; color: #923b26; border-color: #f3ccc3; }
.sds-message.success { background: #e8f7e8; color: #2c674c; border-color: #c7e6ca; }
.sds-results { background: white; border-radius: 21px; padding: 25px; border: 1px solid #e0e8e5; }
.sds-results .section-title-row { margin-bottom: 18px; }
.sds-product-match { padding: 14px 16px; border: 1px solid #b6d6c4; background: #e9f7ee; border-radius: 13px; margin-bottom: 17px; color: #245d42; font-size: .87rem; }
.sds-product-match strong { display: block; font-size: .94rem; }
.sds-product-match p { margin: 7px 0; line-height: 1.5; }
.sds-product-match a { color: #1c6354; text-decoration: underline; }
.candidate-list { display: grid; gap: 10px; margin-bottom: 19px; }
.candidate-card { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-radius: 13px; border: 1px solid #dfebe4; padding: 16px; }
.candidate-card.best-match { border-color: #9bccb2; background: #f8fcf5; }
.candidate-card h3 { margin: 4px 0 3px; font-size: .95rem; color: #21444b; overflow-wrap: anywhere; }
.candidate-card p { margin: 0 0 5px; font-size: .79rem; color: #657781; line-height: 1.4; overflow-wrap: anywhere; }
.candidate-card a { color: #2c7767; font-size: .8rem; }
.candidate-tag { font-size: .67rem; color: #538071; letter-spacing: .03em; text-transform: uppercase; font-weight: 800; }
.candidate-card button { white-space: nowrap; }
.chemical-library { border-color: #c9e1d1; background: #f6fbf6; }
.library-count { font-size: .88rem; font-weight: 800; color: #296452; margin: 0 0 14px; }
.chemical-library-items { display: grid; gap: 9px; margin-bottom: 13px; }
.chemical-library-item { border: 1px solid #dceae0; border-radius: 11px; padding: 11px 13px; display: flex; gap: 13px; justify-content: space-between; align-items: center; background: white; }
.chemical-library-item div { min-width: 0; }
.chemical-library-item strong { display: block; font-size: .83rem; color: #234b46; overflow-wrap: anywhere; }
.chemical-library-item small { font-size: .73rem; color: #637e70; }
.chemical-library-item button { padding: 8px 11px; border: 1px solid #d4e5da; background: #f3f9f4; color: #246451; border-radius: 9px; cursor: pointer; font-weight: 800; font-size: .74rem; }
.library-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.library-actions .button { font-size: .81rem; padding: 11px 14px; }
.library-import { position: relative; cursor: pointer; }
.library-import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.save-chemical-panel { background: #edf7ee; border: 1px solid #cde3d1; border-radius: 15px; padding: 18px; margin: 17px 0 24px; }
.save-chemical-panel h3 { color: #1d5147; font-size: 1.06rem; margin: 0 0 6px; }
.save-chemical-panel > p { color: #476c5c; font-size: .83rem; line-height: 1.55; }
.library-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; color: #2c5a4b; line-height: 1.5; font-size: .81rem; }
.library-check input { margin: 4px 0 0; accent-color: #277458; }
.save-chemical-panel .button { margin-top: 8px; }
.manual-pdf { background: #f9fcfa; }
.pdf-url-row { display: flex; gap: 9px; margin-top: 9px; }
.pdf-url-row input { flex: 1; width: 0; }
.file-pdf-label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 17px !important; color: #2a6f61 !important; }
.file-pdf-label input { max-width: 100%; font-size: .77rem; font-weight: 400; }
.scanner-aside { display: grid; gap: 15px; }
.aside-tip { border: 1px solid #d6e6dd; border-radius: 19px; padding: 24px; background: #e9f3ea; color: #29514a; }
.aside-tip h3 { font-size: 1.05rem; line-height: 1.3; margin: 12px 0 9px; }
.aside-tip p { color: #56766d; font-size: .85rem; line-height: 1.65; margin: 0 0 10px; }
.aside-tip a { display: inline-block; color: #1f7062; margin-top: 5px; font-size: .82rem; font-weight: 800; }
.tip-icon { width: 35px; height: 35px; background: #cce4d1; color: #285e4f; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-family: Georgia, serif; }
.aside-warning { background: #fff6e6; border-color: #f0debd; }
.aside-warning h3 { margin-top: 0; color: #83581c; }
.aside-warning p { color: #956c38; }
.sds-analysis { margin-top: 22px; padding: clamp(20px, 4vw, 34px); border-radius: 23px; background: #fff; border: 1px solid #d7e6da; box-shadow: var(--shadow); }
.analysis-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.analysis-heading h2 { font-size: 1.55rem; }
.analysis-badge { color: #7c5a2c; background: #fff3dd; border: 1px solid #f1deba; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: .72rem; }
.analysis-badge.success { color: #26694d; background: #e6f6e9; border-color: #c2e2c9; }
.analysis-badge.danger { color: #a34132; background: #ffeeea; border-color: #f1c9c0; }
.analysis-source { color: #6b7d83; font-size: .79rem; overflow-wrap: anywhere; margin: 8px 0 20px; }
.analysis-warnings { display: grid; gap: 10px; }
.analysis-alert { color: #2a6250; padding: 14px 17px; background: #ebf7eb; border: 1px solid #cae7ca; border-radius: 12px; font-size: .85rem; line-height: 1.6; }
.analysis-alert.warning { background: #fff7e8; color: #795220; border-color: #e9d8b2; }
.analysis-alert.danger { background: #fff0ec; color: #943d36; border-color: #f0c8c0; }
.analysis-alert p { margin: 5px 0 0; }
.ppe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 23px; }
.ppe-card { border: 1px solid #dce8e2; border-radius: 15px; background: #fafcfb; padding: 19px; }
.ppe-card h3 { color: #25494b; margin: 9px 0 7px; font-size: 1rem; }
.ppe-card p { margin: 0; color: #435c60; line-height: 1.63; font-size: .83rem; overflow-wrap: anywhere; white-space: pre-line; }
.ppe-card.no-excerpt { background: #f8f9f8; border-style: dashed; }
.ppe-card.no-excerpt p { color: #8b989b; }
.ppe-icon { display: grid; place-items: center; background: #e0f1df; color: #296957; border-radius: 11px; width: 36px; height: 36px; font-size: 1.4rem; font-weight: 900; }
.raw-extract { margin-top: 22px; border-top: 1px solid #e0e8e4; padding-top: 17px; }
.raw-extract summary { font-size: .87rem; font-weight: 800; color: #285e58; cursor: pointer; }
.raw-extract pre { font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.6; font-size: .8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f3f7f3; border-radius: 11px; padding: 16px; max-height: 420px; }
.document-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.analysis-footnote { color: #738187; font-size: .78rem; line-height: 1.7; margin: 20px 0 0; }
@media (min-width: 1050px) { .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .scanner-layout { grid-template-columns: 1fr; } .scanner-aside { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 670px) {
  .update-notice { display: grid; padding: 16px; border-radius: 15px; }
  .update-actions { width: 100%; }
  .update-actions button { flex: 1 1 auto; }
  #updateBadge { display: block !important; max-width: 142px; font-size: .62rem; line-height: 1.25; }
  .topbar { min-height: 73px; padding: 10px 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand strong { font-size: .98rem; }
  .brand > div > span { font-size: .64rem; }
  .status-badge { font-size: .64rem; padding: 4px 7px; }
  .save-status { display: none; }
  .app-shell { padding: 20px 14px 60px; }
  .hero { padding: 32px 23px 35px; min-height: 290px; border-radius: 21px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
  .hero > p:nth-of-type(2) { font-size: .88rem; }
  .hero-tags { gap: 6px; margin-top: 22px; }
  .hero-tags span { font-size: .69rem; }
  .action-grid { grid-template-columns: 1fr; gap: 11px; }
  .hub-two-cols { grid-template-columns: 1fr; gap: 14px; }
  .action-card { min-height: 103px; padding: 16px; gap: 13px; border-radius: 16px; }
  .action-card strong { font-size: 1rem; }
  .action-card small { font-size: .78rem; }
  .action-icon { width: 47px; height: 47px; border-radius: 12px; }
  .info-grid { gap: 8px; margin-top: 23px; grid-template-columns: 1fr; }
  .info-grid article { padding: 13px 0 7px; }
  .info-grid p { font-size: .8rem; }
  .scanner-aside { grid-template-columns: 1fr; }
  .scanner-card, .sds-results { border-radius: 17px; padding: 19px; }
  .scanner-screen .screen-heading h1 { font-size: 2.2rem; }
  .sds-analysis { padding: 18px; border-radius: 17px; }
  .ppe-grid { grid-template-columns: 1fr; }
  .candidate-card { flex-direction: column; align-items: stretch; }
  .pdf-url-row { flex-direction: column; }
  .pdf-url-row input { width: 100%; }
  .document-actions > * { flex: 1; text-align: center; }
}
