:root {
  --navy: #141414;
  --navy-2: #262626;
  --ink: #141414;
  --muted: #5e5e5e;
  --line: #dcdcdc;
  --bg: #F4F4F4;
  --card: #ffffff;
  --red: #CD0505;
  --red-soft: #fdecec;
  --on-navy: #ffffff;
  --on-navy-muted: #b5b5b5;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ---------- Language page ---------- */
.lang-page { background: var(--navy); color: var(--on-navy); min-height: 100vh; display: flex; flex-direction: column; }
.lang-page main { flex: 1; padding-top: 48px; }
.logo { display: inline-flex; align-items: center; justify-content: center; border: 1.5px dashed var(--on-navy-muted); border-radius: 8px; padding: 14px 28px; color: var(--on-navy-muted); letter-spacing: .12em; font-size: 14px; }
.lang-page h1 { font-size: 44px; margin: 48px 0 12px; }
.lang-sub { color: var(--on-navy-muted); font-size: 18px; margin: 0 0 32px; }
.lang-list { display: grid; gap: 14px; }
.lang-btn { display: flex; align-items: center; gap: 20px; background: var(--card); color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 22px 24px; min-height: 72px; font-size: 24px; font-weight: 600; }
.lang-btn .code { font-size: 14px; color: var(--muted); letter-spacing: .08em; width: 32px; font-weight: 500; }
.lang-btn .arrow { margin-left: auto; font-size: 26px; }
.lang-btn.soon { opacity: .55; pointer-events: none; }
.lang-btn.soon .arrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.lang-foot { border-top: 1px solid rgba(255,255,255,.18); margin-top: 48px; padding: 20px 0 32px; color: var(--on-navy-muted); font-size: 15px; }
.lang-foot strong { color: var(--on-navy); display: block; margin-top: 4px; }
.lang-foot a { text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--on-navy); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.topbar .logo { padding: 6px 14px; font-size: 12px; }
.topbar a.lang { text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.topbar a.back { text-decoration: none; font-weight: 600; font-size: 18px; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }

/* ---------- Home ---------- */
.intro { padding: 28px 0 8px; }
.intro h1 { font-size: 36px; }
.intro p { color: var(--muted); margin: 8px 0 0; }
.emergency { display: flex; align-items: center; gap: 14px; background: var(--red); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 16px; text-decoration: none; }
.emergency .t { font-size: 15px; opacity: .9; }
.emergency .n { font-size: 22px; font-weight: 700; }
.emergency .pill { margin-left: auto; background: #fff; color: var(--red); font-weight: 700; border-radius: 999px; padding: 10px 20px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; min-height: 64px; text-decoration: none; font-weight: 600; }
.tile svg { color: var(--red); flex: none; }

.board { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.board-head h2 { font-size: 18px; }
.board-head span { font-size: 13px; color: var(--on-navy-muted); }
.board-body { background: var(--card); color: var(--ink); padding: 18px; }
.board-goal { font-weight: 700; margin: 0 0 14px; }
.kpi { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kpi b { white-space: nowrap; }
.lesson { background: var(--red-soft); border-radius: 10px; padding: 14px; margin: 14px 0; font-size: 15px; }
.lesson strong { color: var(--red); display: block; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }

details.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; scroll-margin-top: 12px; }
details.sec > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; min-height: 64px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary h3 { font-size: 18px; }
details.sec > summary small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
details.sec > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s; flex: none; }
details.sec[open] > summary::after { transform: rotate(-135deg); }
.sec-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.sec-body h4 { color: var(--red); font-size: 16px; margin: 18px 0 8px; }
.sec-body p { margin: 12px 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; margin: 10px 0; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.note { background: var(--red-soft); border-radius: 10px; padding: 14px; margin: 16px 0; }
.note b { color: var(--red); }
.placeholder { color: var(--muted); font-style: italic; }

.contact { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 20px 18px; margin: 24px 0; scroll-margin-top: 12px; }
.contact h2 { font-size: 24px; }
.contact > p { color: var(--on-navy-muted); margin: 6px 0 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.person b { font-size: 18px; display: block; }
.person span { color: var(--on-navy-muted); font-size: 14px; }
.call { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 12px 18px; min-height: 48px; flex: none; }
.wa { background: var(--navy-2); border-radius: 10px; padding: 14px; margin-top: 12px; font-size: 15px; }
.wa b { display: block; margin-bottom: 4px; }
.foot { color: var(--muted); font-size: 14px; padding: 8px 0 40px; }

/* ---------- Report form ---------- */
.form-page h1 { font-size: 30px; padding-top: 24px; }
.form-page .lead { color: var(--muted); margin: 6px 0 20px; }
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: var(--red); }
input[type=text], input[type=date], textarea, select { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; min-height: 52px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(205,5,5,.25); border-color: var(--red); }
[aria-invalid=true] { border-color: var(--red) !important; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 60px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9a9a9a; background: #fff; }
.choice b { display: block; }
.choice small { color: var(--muted); font-size: 14px; }
.choice:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice:has(input:checked) small { color: var(--on-navy-muted); }
.choice:has(input:checked) .dot { border-color: #fff; box-shadow: inset 0 0 0 5px #fff; background: var(--red); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(205,5,5,.35); }
.err { color: var(--red); font-size: 15px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.submit { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 12px; font: inherit; font-size: 19px; font-weight: 700; padding: 16px; min-height: 58px; cursor: pointer; }
.submit[disabled] { opacity: .6; }
.reassure { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 48px; }
.photo-note { background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.thanks { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; margin: 24px 0 48px; }
.thanks .check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 12px; }
.thanks p { margin: 8px 0; }
.thanks a { display: inline-block; margin-top: 16px; font-weight: 600; }
.skeleton { height: 60px; border-radius: 12px; background: linear-gradient(90deg, #e6e6e6, #f2f2f2, #e6e6e6); margin-bottom: 18px; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.form-error:empty { display: none; }
/* ---------- Brand logo ---------- */
.brand-logo { display: block; height: auto; }
.lang-page .brand-logo { width: 260px; max-width: 80%; }
.topbar .brand-logo { width: 150px; }
.lang-page h1 { margin-top: 40px; }
.board-head { border-bottom: 3px solid var(--red); }

/* ---------- Icons (MarineCraft icon set: white glyphs, need a dark or red plate) ---------- */
.ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.ico img { width: 28px; height: 28px; object-fit: contain; display: block; }
.ico-red { background: var(--red); }
.tile .ico { width: 40px; height: 40px; }
.tile .ico img { width: 32px; height: 32px; }

/* ---------- Quality board status ---------- */
.status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; background: #b9b9b9; }
.status[data-status=ok] { background: #1f9d55; }
.status[data-status=warn] { background: #e0a000; }
.status[data-status=bad] { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.legend .status { width: 10px; height: 10px; margin-right: 6px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.checklist input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--red); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Install as app ---------- */
.install-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 14px; margin-bottom: 16px; }
.install-card[hidden] { display: none; }
.install-card b { display: block; }
.install-card span:not(.ico) { display: block; font-size: 14px; color: var(--muted); }
.install-btn { margin-left: auto; flex: none; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 10px 14px; }
.install-x { flex: none; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); width: 36px; height: 44px; cursor: pointer; }
.app-guide { background: var(--bg); border-radius: 10px; padding: 4px 14px 6px; margin-top: 18px; scroll-margin-top: 12px; }
.install-now { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 700; padding: 12px; min-height: 48px; cursor: pointer; margin: 4px 0 8px; }
.install-now[hidden] { display: none; }

/* ---------- Evacuation ---------- */
.plan { margin: 16px 0 0; }
.plan img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.plan figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.plan-ph { border: 2px dashed var(--line); border-radius: 10px; padding: 36px 16px; text-align: center; color: var(--muted); font-style: italic; font-size: 15px; }
.places { margin: 0; }
.places div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.places dt { font-weight: 600; flex: none; white-space: nowrap; }
.places dd { margin: 0; color: var(--muted); text-align: right; }

/* ---------- Card validity ---------- */
.cards { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.cards th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 0; }
.cards td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cards td:last-child, .cards th:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.cards small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
/* ---------- Call rows and plain lists ---------- */
.callrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.callrow b { display: block; }
.callrow span { display: block; font-size: 14px; color: var(--muted); }
.callrow .call { margin-left: auto; }
.plain { padding-left: 20px; margin: 8px 0; }
.plain li { margin: 8px 0; }
.places dd a { color: var(--ink); }

/* ---------- Sick-leave timeline ---------- */
.sick-line { display: grid; grid-template-columns: 1fr; gap: 3px; margin: 12px 0 16px; }
.sick-seg { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "days title" "days text"; column-gap: 12px; row-gap: 2px; padding: 12px 14px; color: #fff; }
.sick-seg.s1 { background: #1f9d55; border-radius: 12px 12px 0 0; }
.sick-seg.s2 { background: #c98a00; }
.sick-seg.s3 { background: var(--red); border-radius: 0 0 12px 12px; }
.sick-seg .days { grid-area: days; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.sick-seg b { grid-area: title; font-size: 17px; line-height: 1.25; }
.sick-seg small { grid-area: text; font-size: 14px; line-height: 1.35; opacity: .95; }

/* ---------- Health service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 16px; }
.svc { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px; }
.svc b { display: block; margin-bottom: 2px; }
.svc small { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ---------- Pay periods ---------- */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; margin: 10px 0; }
.pay-period, .pay-day { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.pay-period { background: var(--navy); color: #fff; }
.pay-day { background: var(--card); border: 2px solid var(--navy); }
.pay.p2 .pay-period { background: var(--red); }
.pay.p2 .pay-day { border-color: var(--red); }
.pay .lbl { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pay b { font-size: clamp(20px, 6.5vw, 26px); line-height: 1.15; white-space: normal; }
.pay b > span { white-space: nowrap; display: inline-block; }
.pay-day b { color: var(--ink); }
.pay.p2 .pay-day b { color: var(--red); }
.pay-day small { font-size: 13px; color: var(--muted); }
.pay-arrow { display: flex; align-items: center; font-size: 24px; font-weight: 700; color: var(--muted); }
.pay-ex { font-size: 15px; color: var(--muted); }

.svc { min-width: 0; }
.svc b, .svc small { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Safety rules ---------- */
.rule-list { list-style: none; padding: 0; margin: 8px 0; }
.rule-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.rule-list li:first-child { border-top: 0; }
.rule-list li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; margin-top: 1px; }
.rule-list .do::before { content: "✓"; background: #1f9d55; }
.rule-list .dont::before { content: "✕"; background: var(--red); }
.rule-list li > .rl { flex: 1; min-width: 0; overflow-wrap: break-word; }
.callout-3m { display: flex; gap: 14px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; margin: 14px 0; }
.callout-3m .big { flex: none; background: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 30px; font-weight: 700; line-height: 1; white-space: nowrap; }
.callout-3m b { display: block; font-size: 17px; }
.callout-3m ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.callout-3m li { margin: 3px 0; }
.mrules > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mrules > div:first-child { border-top: 0; }
.mrules span { color: var(--muted); }

/* ---------- Onboarding timeline ---------- */
.onb-progress { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; margin: 12px 0 8px; }
.onb-progress .row { display: flex; justify-content: space-between; align-items: baseline; }
.onb-progress b { font-size: 17px; }
.onb-progress .count { font-size: 22px; font-weight: 700; }
.onb-progress small { display: block; margin-top: 8px; font-size: 13px; color: var(--on-navy-muted); }
.onb-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); margin-top: 10px; overflow: hidden; }
.onb-bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .3s; }
.onb-progress.done .onb-bar i { background: #1f9d55; }
.phase { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: 999px; padding: 5px 12px; margin: 16px 0 2px; }
.phase.wk { background: var(--red); }
.checklist.tl { position: relative; padding-left: 14px; margin: 0; }
.checklist.tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.checklist.tl li { border-top: 0; position: relative; }
.checklist.tl li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); border: 2px solid #b5b5b5; }
.checklist.tl li:has(input:checked)::before { background: #1f9d55; border-color: #1f9d55; }
.checklist.tl .step { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 12px; margin: 8px 0; cursor: pointer; position: relative; }
.checklist.tl .step input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.step-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.step-txt { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.step-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b5b5b5; background: var(--card); display: flex; align-items: center; justify-content: center; }
.step input:checked ~ .step-check { background: #1f9d55; border-color: #1f9d55; }
.step input:checked ~ .step-check::after { content: "✓"; color: #fff; font-weight: 700; font-size: 14px; }
.step input:checked ~ .step-ico { background: #1f9d55; }
.step input:checked ~ .step-txt { color: var(--muted); text-decoration: line-through; }
.step input:focus-visible ~ .step-check { outline: 3px solid rgba(205,5,5,.35); outline-offset: 2px; }

/* ---------- Clockify ---------- */
.cg-list { display: grid; gap: 8px; margin: 8px 0; }
.cg { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 12px; }
.cg-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cg-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.day { position: relative; margin: 10px 0 14px; padding-left: 16px; }
.day::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.day .ev { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-left: -16px; padding: 4px 0; }
.day .ev b { display: block; }
.day .ev small { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.dot { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.dot.go { background: #1f9d55; }
.dot.sw { background: #c98a00; font-size: 16px; }
.dot.st { background: var(--red); }
.day .blk { margin: 6px 0 6px 28px; border-radius: 10px; padding: 10px 12px; color: #fff; }
.day .blk span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.day .blk.a { background: var(--navy); }
.day .blk.b { background: var(--navy-2); }
.link-btn { display: inline-block; margin-top: 4px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 12px 16px; }

/* ---------- Work schedule ---------- */
.sched-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.sched { background: var(--bg); border-radius: 12px; padding: 12px 10px; }
.sched-h { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.srow { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.srow .t { flex: none; width: 52px; text-align: center; border-radius: 8px; padding: 4px 0; font-weight: 700; font-size: 14px; color: #fff; }
.srow.go .t { background: #1f9d55; }
.srow.cf .t { background: #8a5a2b; }
.srow.ln .t { background: var(--red); }
.srow.end .t { background: var(--navy); }

/* ---------- Working time & overtime ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.stat { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--on-navy-muted); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; margin: 4px 0 10px; text-align: center; font-size: 10px; color: var(--muted); }
.months i { display: block; width: 14px; height: 14px; margin: 0 auto 3px; border-radius: 50%; background: var(--red); }
.ot { display: grid; gap: 10px; margin: 8px 0; }
.ot-l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ot-bar { display: flex; gap: 3px; }
.ot-bar span { color: #fff; font-size: 13px; line-height: 1.3; padding: 8px 10px; }
.ot-bar span:first-child { border-radius: 10px 0 0 10px; }
.ot-bar span:last-child { border-radius: 0 10px 10px 0; }
.ot-bar span:only-child { border-radius: 10px; }
.ot-bar b { font-size: 16px; }
.ot-bar .h50 { background: #c98a00; }
.ot-bar .h100 { background: var(--red); }

/* ---------- Licence cards ---------- */
.lic-list { display: grid; gap: 10px; margin: 10px 0; }
.lic { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px; background: var(--bg); border-left: 6px solid var(--navy); }
.lic-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.lic-main { flex: 1; min-width: 0; }
.lic-main b { display: block; font-size: 15px; line-height: 1.25; }
.lic-main small { display: block; font-size: 13px; color: var(--muted); }
.lic-years { display: flex; gap: 3px; margin-top: 6px; }
.lic-years i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.lic-yrs { flex: none; text-align: center; font-size: 12px; color: var(--muted); line-height: 1; }
.lic-yrs b { display: block; font-size: 26px; color: var(--ink); }
.lic.as { border-left-color: #c98a00; } .lic.as .lic-ico, .lic.as .lic-years i.on { background: #c98a00; }
.lic.hot { border-left-color: var(--red); } .lic.hot .lic-ico, .lic.hot .lic-years i.on { background: var(--red); }
.lic.ea { border-left-color: #1f9d55; } .lic.ea .lic-ico, .lic.ea .lic-years i.on { background: #1f9d55; }
.lic.other { border-left-color: #b5b5b5; } .lic.other .lic-ico { background: #b5b5b5; }
.lic-calc { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; margin: 12px 0; }
.lic-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.lic-form label { font-size: 13px; color: var(--on-navy-muted); display: flex; flex-direction: column; gap: 4px; }
.lic-form select, .lic-form input { width: 100%; min-height: 44px; padding: 8px; font-size: 15px; border-radius: 8px; border: 0; }
.lic-out { margin-top: 10px; border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 15px; }
.lic-out.ok { background: #1f9d55; }
.lic-out.warn { background: #c98a00; }
.lic-out.bad { background: var(--red); }

/* ---------- Waste sorting ---------- */
.waste { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.waste .w { border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: #fff; }
.w.metal { background: #6b7280; }
.w.plast { background: #c98a00; }
.w.kartong { background: #8a5a2b; }
.w.bland { background: var(--navy-2); }
.w.farligt { background: var(--red); }
.svc small a { color: var(--ink); }

/* ---------- Quality board v2 ---------- */
.board-vision { padding: 4px 18px 16px; color: #fff; font-size: 16px; font-style: italic; line-height: 1.45; }
.board-vision small { display: block; font-style: normal; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); margin-top: 6px; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.val { background: var(--bg); border-left: 4px solid var(--red); border-radius: 10px; padding: 10px; }
.val b { display: block; font-size: 14px; }
.val small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi > b { align-self: center; }
.chips.policy .chip { background: var(--navy); color: #fff; border-color: var(--navy); }


/* ---------- Narrow phones / large system font ---------- */
html, body { overflow-x: clip; }
.tile { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.install-card > div { flex: 1; min-width: 0; }
@media (max-width: 420px) {
  .tiles { gap: 10px; }
  .tile { padding: 14px 12px; gap: 10px; }
}
@media (max-width: 400px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tile .ico { width: 36px; height: 36px; flex: none; }
  .tile .ico img { width: 28px; height: 28px; }
}
@media (max-width: 520px) {
  .install-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; }
  .install-card .install-btn { grid-column: 1 / -1; grid-row: 2; margin-left: 0; text-align: center; }
}


/* ---------- WhatsApp join button ---------- */
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 48px; padding: 12px 16px; border-radius: 10px; background: #1DA851; color: #fff; font-weight: 700; text-decoration: none; }
.wa-btn:active { filter: brightness(.92); }


/* ---------- App store buttons ---------- */
.store-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.store-btn { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 12px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2; }
.store-btn small { font-weight: 400; font-size: 12px; opacity: .75; }


/* ---------- Time-off types ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tags span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; }

input[type=date] { display: block; -webkit-appearance: none; appearance: none; text-align: left; }


/* ---------- WhatsApp next to Ring ---------- */
.acts { display: flex; gap: 8px; flex: none; margin-left: auto; }
.acts .call { margin-left: 0; padding: 12px 14px; }
.call.wa-call { background: #1DA851; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Install card: white M on the black plate */
.install-card .ico img { filter: brightness(0) invert(1); }


/* ---------- Welding machine care ---------- */
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-top: 4px; text-decoration: none; }
.cl-count { float: right; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 10px; }
.cl-count.done { background: #1f9d55; color: #fff; }
.intv > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.intv > div:first-child { border-top: 0; }
.intv .when { font-size: 13px; font-weight: 700; color: var(--red); line-height: 1.3; }
.intv small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.gas-alert { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; margin: 10px 0; border-left: 6px solid var(--red); }
.gas-alert b { display: block; font-size: 22px; }
.gas-alert span { font-size: 14px; opacity: .85; }
.gas-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 15px; }
.gas-row small { display: block; color: var(--muted); font-size: 13px; }
.gas-row .flow { font-size: 22px; font-weight: 700; text-align: right; white-space: nowrap; }
.gas-row .flow small { font-size: 12px; font-weight: 600; }
.step input:checked ~ .step-txt .badge { opacity: .5; }

#svetsning .phase { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; margin: 16px 0 4px; }

.park-map { margin: 10px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.park-map svg { display: block; }
.park-map figcaption { font-size: 12px; color: var(--muted); padding: 6px 10px; background: var(--card); }

/* Onboarding progress box in brand red */
.onb-progress { background: var(--red); }
.onb-progress small { color: rgba(255,255,255,.88); }
.onb-bar { background: rgba(255,255,255,.28); }
.onb-bar i { background: #fff; }
.onb-progress.done { background: #1f9d55; }
.onb-progress.done .onb-bar i { background: #fff; }


/* ---------- Save-as-app guide ---------- */
.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
@media (max-width: 420px) { .os-grid { grid-template-columns: minmax(0, 1fr); } }
.os { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.os-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.os-h small { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.os-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.os-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.os-steps .k { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.os-steps li:last-child .k { background: #1f9d55; }
.os-done { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.home-ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.home-ico img { width: 30px; height: 30px; filter: brightness(0) invert(1); }


/* ---------- Official store badges ---------- */
.store-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; height: 44px; overflow: hidden; }
.store-badge img { display: block; height: 40px; width: auto; }
.store-badge.gp img { height: 60px; margin: 0 -9px; }

.fenix-row { gap: 12px; align-items: center; }
.fenix-row > .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

.site-plan { margin-bottom: 8px; }


/* ---------- Next pay day ---------- */
.next-pay { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.next-pay.today { background: #1f9d55; }
.np-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.next-pay > div { flex: 1; min-width: 0; }
.next-pay small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; font-weight: 600; }
.next-pay > div > b { display: block; font-size: 18px; }
.next-pay #np-sub { display: block; font-size: 13px; opacity: .8; }
.np-days { flex: none; text-align: center; font-size: 12px; opacity: .9; line-height: 1.1; }
.np-days b { display: block; font-size: 28px; }


/* ---------- Notice board ---------- */
.nboard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 24px; }
.nboard[hidden] { display: none; }
.nb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.nb-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.nb-head h2 svg { color: var(--red); }
.nb-lang { display: flex; gap: 4px; }
.nb-lang button { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 8px; min-height: 30px; cursor: pointer; }
.nb-lang button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.nb-item { padding: 10px 0; border-top: 1px solid var(--line); }
.nb-item:first-child { border-top: 0; }
.nb-item.important { background: var(--red-soft); border: 0; border-left: 4px solid var(--red); border-radius: 0; padding: 10px 12px; margin: 8px 0; }
.nb-item h3 { font-size: 16px; margin: 2px 0; }
.nb-item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.nb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.nb-tag { background: var(--red); color: #fff; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.nb-pending { font-style: italic; }

/* An odd last quick tile spans the full width */
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
