:root {
  --ink: #1d2023; --steel: #4a5056; --mute: #6b7278; --line: #d6dadd; --concrete: #eef0f1; --paper: #fff;
  --red: #a10325; --red-dark: #7d021c; --ok: #1d6b45; --ok-bg: #e5f2ea; --warn: #8a5300; --warn-bg: #fdf1dc;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--concrete); line-height: 1.5; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-stretch: 75%; font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hint { color: var(--mute); font-size: .92rem; }
.error { color: var(--red-dark); font-weight: 600; }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
[hidden] { display: none !important; }
.mt { margin-top: .5rem; }
.stack > * + * { margin-top: .75rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.2rem; border-radius: var(--r);
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-big { width: 100%; min-height: 58px; font-size: 1.15rem; margin-top: 1rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: .25rem; }

/* ---------- Public site ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.site-head img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: #ffb3b6; }
.site-nav .staff { border: 2px solid #fff; padding: .35rem .8rem; border-radius: var(--r); }
@media (max-width: 760px) { .site-nav a:not(.staff) { display: none; } }

.hero { position: relative; min-height: min(82vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #2a2e31; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ""; position: absolute; right: -8%; top: -10%; width: 34%; height: 140%; background: var(--red); transform: skewX(-22deg); opacity: .92; mix-blend-mode: multiply; }
.hero .inner { position: relative; z-index: 1; padding: 3rem 1.25rem 3.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(3rem, 11vw, 8.5rem); font-stretch: 62%; font-weight: 900; line-height: .86; max-width: 9ch; margin-bottom: .3em; text-wrap: balance; }
.hero p { font-size: 1.2rem; max-width: 34ch; }
.hero .row { margin-top: 1.25rem; }
.hero .btn-ghost { border-color: #fff; color: #fff; }

.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.25rem; }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.prose { max-width: 62ch; }
.prose p { font-size: 1.06rem; }
.motto { font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: .95; color: var(--red); margin: 1.25rem 0; }
.band-dark { background: var(--ink); color: #fff; }
.band-white { background: var(--paper); }
.gallery { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img:nth-child(5n + 1) { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.formance { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .formance { grid-template-columns: 220px 1fr auto; } }
.quote { font-size: 1.15rem; max-width: 70ch; border-left: 6px solid var(--red); padding-left: 1.25rem; }
.quote footer { margin-top: 1rem; font-weight: 700; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid a { font-weight: 700; }
.site-foot { background: #121416; color: #c9cdd0; font-size: .92rem; }
.site-foot .wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot a { color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---------- Portal shell ---------- */
.portal-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.portal-head .wrap { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; max-width: 760px; margin: 0 auto; gap: 1rem; }
.portal-head img { height: 28px; width: auto; }
#who { display: flex; gap: .75rem; align-items: center; font-size: .95rem; }
main.portal { max-width: 760px; margin: 0 auto; padding: 1rem 1rem calc(96px + env(safe-area-inset-bottom, 0px)); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { text-align: center; padding: .9rem .25rem; font-weight: 700; color: var(--steel); text-decoration: none; border-top: 4px solid transparent; }
.tabbar a.on { color: var(--ink); border-top-color: var(--red); }

.today-band { background: var(--ink); color: #fff; margin: -1rem -1rem 1rem; padding: 1.25rem 1rem 1.5rem; }
.today-date { font-stretch: 62%; font-weight: 900; font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: .9; margin: 0 0 1rem; }
.wx-now { display: flex; gap: 1rem; align-items: center; }
.wx-temp { font-stretch: 62%; font-weight: 900; font-size: 4rem; line-height: 1; color: #fff; }
.wx-now div { display: flex; flex-direction: column; font-size: .95rem; color: #d7dbde; }
.wx-now strong { color: #fff; font-size: 1.1rem; }
.wx-days { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.wx-days li { background: rgba(255,255,255,.08); border-radius: var(--r); padding: .5rem .6rem; display: flex; flex-direction: column; font-size: .88rem; color: #d7dbde; }
.wx-days b { color: #fff; }
.wx-src { font-size: .8rem; color: #9aa1a6; margin: .6rem 0 0; }

.card { display: flex; flex-direction: column; gap: .25rem; background: var(--paper); border-radius: var(--r); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); border-left: 6px solid var(--line); }
.card strong { font-size: 1.15rem; }
.card.alert { border-left-color: var(--red); }
a.card.alert { background: #fff4f4; }
.card.done { border-left-color: var(--ok); background: var(--ok-bg); }
.row { display: flex; gap: .5rem; margin-top: .5rem; }
.row.wrap { flex-wrap: wrap; }
.block { background: var(--paper); border-radius: var(--r); padding: 1.1rem; margin-top: 1rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; flex-direction: column; padding: .75rem 0; color: var(--ink); text-decoration: none; }
.actions { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.action { background: var(--ink); color: #fff; border-radius: var(--r); padding: 1rem; text-decoration: none; display: flex; flex-direction: column; gap: .25rem; min-height: 110px; }
.action.red { background: var(--red); }
.action strong { font-stretch: 75%; font-size: 1.3rem; line-height: 1.05; }
.action span { font-size: .88rem; opacity: .85; }
.soon-h { margin-top: 1.25rem; color: var(--mute); }
.soon { display: flex; flex-wrap: wrap; gap: .5rem; }
.soon span { border: 1px dashed var(--line); border-radius: 99px; padding: .3rem .8rem; color: var(--mute); font-size: .9rem; }

/* forms */
.form-head { background: var(--ink); color: #fff; margin: -1rem -1rem 1rem; padding: 1.25rem 1rem; }
.form-head.red { background: var(--red); }
.form-head p { margin: 0; opacity: .85; }
fieldset { border: 0; background: var(--paper); border-radius: var(--r); padding: 1rem 1.1rem; margin: 0 0 1rem; }
legend { float: left; width: 100%; font-stretch: 75%; font-weight: 800; font-size: 1.3rem; margin-bottom: .75rem; padding: 0; }
legend + * { clear: both; }
.q { padding: .6rem 0; }
.q + .q { border-top: 1px solid var(--concrete); }
.q-label { font-weight: 700; margin: 0 0 .5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-weight: 400; width: 100%; min-height: 48px; padding: .6rem .75rem; border: 2px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input, .task input, .type input, .none-toggle input, .tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem .95rem; border: 2px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; background: #fff; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span, .task input:focus-visible + .task-name, .type input:focus-visible + span, .none-toggle input:focus-visible + span, .tick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; }
.tasklib { display: grid; gap: .5rem; }
.task { display: block; border: 2px solid var(--line); border-radius: var(--r); padding: .75rem .9rem; cursor: pointer; position: relative; }
.task-name { font-weight: 800; display: block; padding-left: 2rem; position: relative; }
.task-name::before, .none-toggle span::before, .tick span::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border: 2px solid var(--steel); border-radius: 4px; background: #fff; }
.task input:checked + .task-name::before, .none-toggle input:checked + span::before, .tick input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--ink); }
.task-detail { display: none; font-size: .9rem; color: var(--steel); margin-top: .4rem; }
.task:has(input:checked) { border-color: var(--ink); }
.task:has(input:checked) .task-detail { display: block; }
.other-task { border: 2px dashed var(--line); border-radius: var(--r); padding: .75rem; margin: .75rem 0; display: grid; gap: .5rem; }
.none-toggle, .tick { display: block; cursor: pointer; margin-bottom: .5rem; }
.none-toggle span, .tick span { position: relative; padding-left: 2rem; display: inline-block; min-height: 1.6rem; font-weight: 600; }
.types { display: grid; gap: .6rem; }
.type span { display: flex; flex-direction: column; border: 2px solid var(--line); border-left-width: 8px; border-radius: var(--r); padding: .8rem 1rem; cursor: pointer; font-size: .92rem; color: var(--steel); }
.type b { font-stretch: 75%; font-size: 1.3rem; color: var(--ink); }
.type.nm span { border-left-color: #2e7d4f; }
.type.inc span { border-left-color: #e08a00; }
.type.acc span { border-left-color: var(--red); }
.type input:checked + span { background: var(--ink); color: #e0e3e5; border-color: var(--ink); }
.type input:checked + span b { color: #fff; }
.sig-canvas { width: 100%; height: 170px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; touch-action: none; display: block; }
.sig-row { display: flex; justify-content: space-between; align-items: center; margin-top: .25rem; }
dl { margin: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--concrete); }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 600; }
.tasks-text { white-space: pre-wrap; font: inherit; background: var(--concrete); padding: .75rem; border-radius: var(--r); }
.task-card { background: var(--concrete); border-radius: var(--r); padding: .75rem; margin: .5rem 0; }
.task-card p { margin: .25rem 0 0; font-size: .95rem; }
.signed { list-style: none; padding: 0; margin: 0 0 .5rem; }
.signed li { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid var(--concrete); }
.signed span { color: var(--ok); font-size: .92rem; }
.notice { background: var(--paper); border-radius: var(--r); padding: 1.25rem; border-left: 6px solid var(--line); }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: var(--red); }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r); z-index: 50; font-weight: 600; max-width: 90vw; }
.skeleton { background: linear-gradient(90deg, #e2e5e7, #f1f3f4, #e2e5e7); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .login-wrap { grid-template-columns: 1fr 1fr; } }
.login-side { background: var(--ink) url("https://static.wixstatic.com/media/6f5bc3_e7c109a4b1754bde829ded93cb87bcef~mv2.jpg/v1/fill/w_1024,h_683,al_c,q_85,enc_avif,quality_auto/6f5bc3_e7c109a4b1754bde829ded93cb87bcef~mv2.jpg") center/cover; position: relative; min-height: 180px; }
.login-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29,32,35,.85), rgba(29,32,35,.25)); }
.login-side .inner { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.5rem; right: 1.5rem; color: #fff; }
.login-side img { height: 40px; width: auto; margin-bottom: 1rem; }
.login-main { padding: 2rem 1.25rem; display: flex; flex-direction: column; justify-content: center; max-width: 460px; width: 100%; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; }
.tab { background: none; border: 0; font: inherit; font-weight: 700; padding: .8rem; cursor: pointer; color: var(--mute); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tab.on { color: var(--ink); border-bottom-color: var(--red); }
/* Site register */
.sitechips { margin: 0 0 1rem; }
.sitechips a { text-decoration: none; color: inherit; }
.sitechips span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.count-badge { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; border-radius: 99px; background: var(--red); color: #fff; font-size: 1rem; vertical-align: middle; margin-left: .3rem; }
.list.reg li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; }
.list.reg li > div { display: flex; flex-direction: column; }
.list.reg li > div span { color: var(--mute); font-size: .92rem; }
.tagp { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; background: var(--concrete); color: var(--ink); margin-left: .2rem; }
.tagp-staff { background: #e5f2ea; color: var(--ok); }
.tagp-subcontractor { background: #fdf1dc; color: var(--warn); }
.tagp-visitor { background: #e8eef7; color: #2b4a73; }
#reg-search { margin: 0 0 .5rem; }
/* Site safety alerts */
.sitealert { background: #fff1f2 !important; border-left-color: var(--red) !important; }
.sitealert strong { color: var(--red-dark); }
.warnbox { border: 2px dashed var(--red); }
/* Incident photos */
.photo-btn { cursor: pointer; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-top: .75rem; }
.photo-previews figure { margin: 0; }
.photo-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
/* Office records */
.recfilters { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; align-items: end; }
.recfilters .recbtns, .recfilters .hint { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips .chip span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a.chip { text-decoration: none; color: inherit; }
.printarea { display: none; }
.printarea.show { display: block; background: #fff; padding: 1rem; border-radius: var(--r); }
.rec { background: #fff; color: #111; }
.rhead { display: flex; align-items: center; gap: 1rem; border-bottom: 4px solid var(--red); padding-bottom: .6rem; margin-bottom: .8rem; }
.rhead img { height: 34px; width: auto; }
.rhead h2 { margin: 0; font-size: 1.35rem; }
.rhead p { margin: 0; color: #555; font-size: .9rem; }
.rec h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rtable th, .rtable td { border-bottom: 1px solid #ddd; padding: .35rem .5rem; vertical-align: top; text-align: left; }
.rtable th { width: 36%; color: #444; font-weight: 600; }
.rtable td { white-space: pre-wrap; }
.rphotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rphotos img { width: 100%; max-height: 300px; object-fit: contain; border: 1px solid #ddd; }
.rsigs { display: flex; flex-wrap: wrap; gap: 1rem; }
.rsigs figure { margin: 0; width: 210px; }
.rsigs img { height: 70px; width: 100%; object-fit: contain; border-bottom: 1px solid #999; }
.rsigs figcaption { font-size: .8rem; color: #444; }
.rack { font-size: .88rem; padding-left: 1.1rem; }
.cover .rhead { border: 0; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .portal-head, .tabbar, .noprint, .toast, .today-band { display: none !important; }
  main.portal { padding: 0; max-width: none; }
  .printarea, .printarea.show { display: block !important; padding: 0; }
  .rec { page-break-after: always; break-after: page; }
  .rec:last-child { page-break-after: auto; break-after: auto; }
  .rtable tr, .rphotos img, .rsigs figure { break-inside: avoid; }
}
/* PO register */
.polist li { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 0; }
.po-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.po-num { font-stretch: 75%; font-size: 1.35rem; letter-spacing: .02em; }
.po-type { font-size: .78rem; font-weight: 800; padding: .15rem .55rem; border-radius: 99px; background: var(--concrete); }
.po-contract { background: #e5f2ea; color: var(--ok); }
.po-variation { background: #fdf1dc; color: var(--warn); }
.po-done { text-align: center; }
.po-big { font-stretch: 62%; font-weight: 900; font-size: 3.6rem; line-height: 1; margin: .2rem 0 .6rem; letter-spacing: .02em; }
.po-done .row { justify-content: center; flex-wrap: wrap; }
#po-search { margin-bottom: .5rem; }
.rec.po-rec { page-break-after: auto; break-after: auto; margin-bottom: 1.5rem; }
.homesite select { max-width: 420px; }
/* Schedule */
.weeknav { margin: 0 0 .5rem; align-items: center; }
.btn-small { min-height: 38px; padding: .3rem .8rem; font-size: .92rem; }
.viewtoggle { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.viewtoggle .btn { border: 0; border-radius: 0; background: #fff; color: var(--ink); }
.viewtoggle .btn.on { background: var(--ink); color: #fff; }
main.portal:has(.sched) { max-width: 1200px; }
.sgrid-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--r); margin-top: .5rem; }
.sgrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .88rem; }
.sgrid th, .sgrid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--concrete); padding: .35rem; vertical-align: top; text-align: left; }
.sgrid thead th { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 2; font-weight: 800; }
.sgrid thead th small { display: block; font-weight: 400; opacity: .8; }
.sgrid thead th.is-today { background: var(--red); }
.sgrid td.is-today { background: #fff6f7; }
.sgrid th.who { position: sticky; left: 0; z-index: 1; background: var(--paper); min-width: 120px; font-weight: 700; }
.sgrid thead th.who { background: var(--ink); z-index: 3; }
.sgrid tr.me th.who { background: #fff1f2; }
.sgrid td { min-width: 110px; }
.schip { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .3rem; background: var(--c); color: #fff; border-radius: 5px; padding: .3rem .4rem; margin-bottom: .25rem; position: relative; line-height: 1.2; }
.schip b { font-weight: 700; }
.schip small { flex-basis: 100%; opacity: .9; font-size: .75rem; }
.schip .part { background: rgba(255,255,255,.25); color: inherit; margin: 0; }
.schip.light { color: var(--ink); }
.schip.light .part { background: rgba(0,0,0,.08); }
.striped { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px) !important; }
.schip .x { color: inherit; opacity: .75; padding: 0 .2rem; margin-left: auto; font-size: .85rem; }
.cell-add { width: 100%; border: 1px dashed var(--line); background: none; border-radius: 5px; color: var(--mute); cursor: pointer; font-size: 1rem; line-height: 1.4; }
.cell-add:hover { border-color: var(--ink); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem; }
.lg { display: inline-flex; align-items: center; gap: .35rem; }
.lg i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.snotes-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .snotes-grid { grid-template-columns: 1fr 1fr; } }
.snotes h2 { font-size: 1.15rem; }
.pre { white-space: pre-wrap; margin: 0 0 .3rem; }
.sday.is-today { outline: 3px solid var(--red); }
.sday-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sday-head h2 { margin: 0; font-size: 1.25rem; }
.sgroup { margin-top: .6rem; border-left: 6px solid var(--c, var(--ink)); padding-left: .7rem; }
.sgroup h3 { font-size: 1rem; margin: 0 0 .2rem; }
.sgroup ul { list-style: none; margin: 0; padding: 0; }
.sgroup li { display: flex; justify-content: space-between; align-items: center; padding: .2rem 0; }
.part { font-size: .7rem; font-weight: 800; background: var(--concrete); padding: .05rem .35rem; border-radius: 4px; margin-left: .2rem; }
.x { background: none; border: 0; color: var(--mute); font-size: 1rem; cursor: pointer; padding: .2rem .5rem; }
.x:hover { color: var(--red); }
.addform { border: 2px solid var(--ink); }
.card.sched-today { border-left-color: var(--ink); background: var(--paper); }
.card.onsite { border-left-color: var(--red); background: var(--paper); }
.card.onsite.is-in { border-left-color: var(--ok); background: var(--ok-bg); }
.card.onsite select { flex: 1 1 200px; width: auto; }
.card.onsite summary { cursor: pointer; font-weight: 600; }
.signfor { margin: 0 0 .75rem; }
.signfor > summary { list-style: none; display: inline-flex; }
.signfor > summary::-webkit-details-marker { display: none; }
.signfor[open] > summary { background: var(--ink); }
.signfor form { border: 2px solid var(--line); border-radius: var(--r); padding: .75rem; }
.reg-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
/* Team chat */
.tabbar { grid-template-columns: repeat(4, 1fr); }
.tabbar a { position: relative; }
.tab-badge { position: absolute; top: .35rem; margin-left: .25rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center; }
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - 190px); }
.chat .form-head p { font-size: .85rem; }
.chat-pinbar { background: #fff8e1; border-left: 5px solid #e0a100; border-radius: var(--r); padding: .4rem .6rem; margin-bottom: .5rem; display: grid; gap: .2rem; }
.chat-pinbar button { background: none; border: 0; text-align: left; font: inherit; font-size: .9rem; cursor: pointer; padding: .15rem 0; color: var(--ink); }
.chat-list { flex: 1; overflow-y: auto; background: var(--paper); border-radius: var(--r); padding: .75rem; max-height: calc(100dvh - 330px); min-height: 280px; }
.chat-day { text-align: center; color: var(--mute); font-size: .8rem; margin: .8rem 0 .4rem; }
.chat-empty { text-align: center; margin-top: 3rem; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; margin: .35rem 0; max-width: 82%; }
.chat-msg.mine { margin-left: auto; align-items: flex-end; }
.chat-who { font-size: .78rem; font-weight: 700; color: var(--steel); margin: 0 0 .1rem .4rem; }
.chat-bubble { background: var(--concrete); border-radius: 14px 14px 14px 4px; padding: .5rem .75rem; overflow-wrap: anywhere; }
.chat-msg.mine .chat-bubble { background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-msg.mine .chat-bubble a { color: #ffb3b6; }
.chat-msg.pinned .chat-bubble { box-shadow: inset 0 0 0 2px #e0a100; }
.chat-bubble p { margin: 0; }
.chat-bubble p + * { margin-top: .4rem; }
.chat-meta { font-size: .72rem; color: var(--mute); margin: .1rem .4rem 0; display: flex; gap: .3rem; align-items: center; }
.chat-meta .btn-link { font-size: .72rem; padding: 0 .15rem; color: var(--mute); }
.chat-img { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.chat-img img { max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; }
.chat-file { display: flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(127,127,127,.35); border-radius: 10px; padding: .45rem .6rem; color: inherit; font: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.chat-file b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.chat-file small { display: block; font-size: .75rem; opacity: .8; }
.chat-ficon { font-size: 1.5rem; }
.chat-player video { width: 100%; max-width: 320px; border-radius: 10px; margin-top: .4rem; }
.chat-compose { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--concrete); padding: .5rem 0 0; }
.chat-row { display: flex; gap: .4rem; align-items: flex-end; }
.chat-row textarea { min-height: 48px; resize: none; flex: 1; }
.chat-clip { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 1.3rem; flex: none; }
.chat-limit { font-size: .75rem; margin: .25rem 0 0; }
.chat-attach { display: flex; align-items: center; gap: .6rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--r); padding: .4rem .6rem; margin-bottom: .4rem; }
.chat-attach img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.chat-attach small { display: block; color: var(--mute); }
.chat-attach .x { margin-left: auto; }
.chat-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 1rem; }
.chat-lightbox figure { margin: 0; text-align: center; color: #fff; }
.chat-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.chat-lightbox figcaption a { color: #ffb3b6; margin-left: .5rem; }
.chat-lightbox .x { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; color: #fff; font-size: 1.6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.allsite + .allsite { border-top: 2px solid var(--concrete); margin-top: .75rem; padding-top: .5rem; }
.allsite h3 { margin: .4rem 0 .2rem; }
.allsite h3 a { color: var(--ink); }
.attsheet { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1rem; }
.attsheet th, .attsheet td { border-bottom: 1px solid #ddd; padding: .3rem .45rem; text-align: left; }
.attsheet thead th { background: #f2f2f1; }
/* Equipment */
.eq-item .eq-top { display: flex; gap: 1rem; align-items: flex-start; }
.eq-pic { width: 132px; height: 88px; flex: none; border-radius: var(--r); object-fit: cover; background: var(--concrete); display: grid; place-items: center; }
.eq-svg svg { width: 88%; height: auto; }
.eq-head h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.eq-head p { margin: 0 0 .25rem; }
.eq-rego { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff8d6; border: 2px solid var(--ink); border-radius: 4px; padding: 0 .35rem; font-size: .9rem; letter-spacing: .05em; }
.eq-status { font-size: .8rem; font-weight: 800; padding: .1rem .5rem; border-radius: 99px; }
.eq-status.in { background: var(--ok-bg); color: var(--ok); }
.eq-status.out { background: var(--warn-bg); color: var(--warn); }
.eq-status.late { background: #fde2e5; color: var(--red-dark); }
.eq-issue { background: var(--warn-bg); border-radius: var(--r); padding: .3rem .5rem; font-size: .9rem; }
.eq-dues { font-size: .85rem; }
.late-txt { color: var(--red-dark); font-weight: 700; }
.eq-card { flex-direction: row; align-items: center; gap: .9rem; border-left-color: var(--warn); background: #fffaf0; }
.eq-card.late { border-left-color: var(--red); background: #fff1f2; }
.eq-card > div { display: flex; flex-direction: column; gap: .2rem; }
.eq-thumb { width: 86px; height: 58px; flex: none; border-radius: var(--r); object-fit: cover; background: #fff; display: grid; place-items: center; }
#eq-search { margin-bottom: .25rem; }
@media (max-width: 420px) { .eq-pic { width: 100px; height: 68px; } }
/* Schedule: clearer lines between people */
.sgrid tbody th, .sgrid tbody td { border-bottom: 3px solid #9aa1a6; }
.sgrid tbody tr:last-child th, .sgrid tbody tr:last-child td { border-bottom: 0; }
.sgrid tbody td { padding-top: .45rem; padding-bottom: .45rem; }
.sgrid tbody tr:nth-child(even) th.who { background: #f6f7f8; }
.sgrid tbody tr:nth-child(even) td:not(.is-today) { background: #fafbfb; }
.sgrid tbody tr.me th.who { background: #fff1f2; }
/* Leave */
.lvlist li > div span + span { display: block; }
.lv-status { font-size: .78rem; font-weight: 800; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; }
.lv-pending { background: var(--warn-bg); color: var(--warn); }
.lv-approved { background: var(--ok-bg); color: var(--ok); }
.lv-declined { background: #fde2e5; color: var(--red-dark); }
.lv-cancelled { background: var(--concrete); color: var(--mute); }
/* Install on phone */
.install { display: flex; gap: 1rem; align-items: flex-start; border-left: 6px solid var(--red); }
.install img { border-radius: 12px; flex: none; }
.install h2 { margin-bottom: .2rem; font-size: 1.2rem; }
.install p { margin: .3rem 0; }