/* Reon Tech Hub
   BRAND (from reonsystems.com logo files): turquoise #25B5B4 + Reon black #231F20 + white.
   Turquoise is a fill color; text on it is Reon black. Turquoise text uses a deeper shade for contrast. */
:root {
  --brand: #231f20;            /* Reon black */
  --brand-teal: #25b5b4;       /* Reon turquoise */
  --accent: #25b5b4;           /* buttons, highlights (fill) */
  --accent-ink: #231f20;       /* text on turquoise */
  --accent-text: #0d7473;      /* turquoise as text/icons on light backgrounds (4.9:1) */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  --bg: #f4f5f5; --card: #ffffff; --ink: #231f20; --ink-2: #3a3536; --muted: #6b6768; --line: #e4e3e3; --line-2: #f0efef;
  --top: #ffffff; --top-ink: #231f20; --top-line: #e4e3e3;
  --ok: #12804e; --ok-ink: #ffffff; --ok-bg: #e2f5ea; --warn: #9a5b00; --warn-bg: #fdf1dc; --bad: #c0281b; --bad-bg: #fde9e7; --info-bg: #e6f6f6;
  --fn: #2f5fc4; --fn-bg: #e7eefc; --reon: #0d7473; --reon-bg: #dff4f4;

  --r: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(35,31,32,.05);
  --sh-2: 0 1px 2px rgba(35,31,32,.04), 0 6px 18px -6px rgba(35,31,32,.12);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #161314; --card: #201c1d; --ink: #f1efef; --ink-2: #d2cecf; --muted: #9c9697; --line: #353031; --line-2: #2a2526;
  --top: #161314; --top-ink: #ffffff; --top-line: #2c2728;
  --ok: #5ad19a; --ok-ink: #06140d; --ok-bg: #10291d; --warn: #f2b45a; --warn-bg: #2e230d; --bad: #ff8a7c; --bad-bg: #351513; --info-bg: #142b2b;
  --fn: #85a8f5; --fn-bg: #18223a; --reon: #4fd0cf; --reon-bg: #11302f; --accent-text: #4fd0cf;
  --sh-1: none; --sh-2: none; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #161314; --card: #201c1d; --ink: #f1efef; --ink-2: #d2cecf; --muted: #9c9697; --line: #353031; --line-2: #2a2526;
  --top: #161314; --top-ink: #ffffff; --top-line: #2c2728;
  --ok: #5ad19a; --ok-ink: #06140d; --ok-bg: #10291d; --warn: #f2b45a; --warn-bg: #2e230d; --bad: #ff8a7c; --bad-bg: #351513; --info-bg: #142b2b;
  --fn: #85a8f5; --fn-bg: #18223a; --reon: #4fd0cf; --reon-bg: #11302f; --accent-text: #4fd0cf;
  --sh-1: none; --sh-2: none; color-scheme: dark; }

/* logo swap: on-white logo in light theme, on-black logo in dark theme */
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-dark { display: inline !important; } :root:not([data-theme="light"]) .logo-light { display: none !important; } }
:root[data-theme="dark"] .logo-dark { display: inline !important; } :root[data-theme="dark"] .logo-light { display: none !important; }
.on-dark .logo-light { display: none !important; } .on-dark .logo-dark { display: inline !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: var(--accent-text); }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .2rem; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: .76rem; margin: 1.1rem 0 .5rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ico.lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- top bar ---- */
.top { background: var(--top); color: var(--top-ink); border-bottom: 1px solid var(--top-line); position: sticky; top: 0; z-index: 20; }
.top .in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 20px; min-height: 60px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img { height: 28px; width: auto; }
.logo span { font-weight: 650; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.7; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; padding: 8px 11px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--top-ink); background: color-mix(in srgb, var(--top-ink) 6%, transparent); }
.nav a.on { color: var(--top-ink); background: color-mix(in srgb, var(--top-ink) 7%, transparent); box-shadow: inset 0 -2px 0 var(--brand-teal); }
.nav a.on .ico { color: var(--accent-text); }
.nav .ico { width: 17px; height: 17px; }
.who { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.who form { margin: 0; }
.who .nm { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--top-line);
  color: inherit; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; padding: 0; }
.icon-btn:hover { background: color-mix(in srgb, var(--top-ink) 6%, transparent); color: inherit; }
.theme-btn .t-sun, .theme-btn .t-moon { display: none; }
:root[data-theme="light"] .theme-btn .t-auto, :root[data-theme="dark"] .theme-btn .t-auto { display: none; }
:root[data-theme="light"] .theme-btn .t-sun { display: block; }
:root[data-theme="dark"] .theme-btn .t-moon { display: block; }
.linkbtn { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; opacity: .85; }
.linkbtn:hover { opacity: 1; text-decoration: underline; }

/* running timer strip for techs */
.clockbar { background: var(--brand-teal); color: #231f20; }
.clockbar a { max-width: 1240px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: .9rem; color: inherit; }
.clockbar a:hover { color: inherit; }
.clockbar .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.clockbar b { font-variant-numeric: tabular-nums; margin-left: auto; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .clockbar .dot, .flash { animation: none; } }

/* ---- bottom tab bar (phones) ---- */
.tabs { display: none; }
@media (max-width: 1080px) { .nav a { padding: 8px 8px; } .who .nm { display: none; } }
@media (max-width: 760px) {
  .nav, .who .nm, .who form { display: none; }
  .top .in { gap: 10px; justify-content: space-between; padding: 8px 16px; min-height: 54px; }
  .logo img { height: 22px; }
  .tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; text-decoration: none;
    font-size: .7rem; color: var(--muted); font-weight: 650; }
  .tabs a .ico { width: 22px; height: 22px; }
  .tabs a.on { color: var(--accent-text); }
  main { padding-bottom: 96px !important; }
  h1 { font-size: 1.3rem; }
}

main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 48px; }
.narrow { max-width: 680px; }
@media (max-width: 760px) { main { padding: 16px 16px 40px; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---- surfaces ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-1); display: block; position: relative; }
a.stat { text-decoration: none; transition: border-color .15s; }
a.stat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: inherit; }
.stat b { display: block; font-size: 1.55rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat > .ico { position: absolute; top: 16px; right: 16px; color: var(--muted); opacity: .6; width: 22px; height: 22px; }
.stat.accent b { color: var(--accent-text); }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: .84rem; margin: 0 0 5px; color: var(--ink-2); }
.f { margin-bottom: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--line-2); }
textarea { min-height: 76px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); vertical-align: -3px; }
input[type=file] { padding: 9px; font-size: .9rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--line-2); color: var(--ink); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 14px; }
legend { font-weight: 700; font-size: .74rem; padding: 0 6px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.section { border-top: 1px solid var(--line-2); margin: 6px -18px 14px; padding: 14px 18px 0; }
.section > h3:first-child { margin-top: 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: 10px; padding: 9px 15px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
  min-height: 42px; transition: background .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.dark:hover { color: var(--bg); opacity: .9; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.btn.ok:hover { filter: brightness(1.08); color: var(--ok-ink); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.06rem; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 6px 11px; font-size: .85rem; border-radius: 9px; }
.btn .ico { width: 17px; height: 17px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--line-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { text-decoration: none; padding: 6px 11px; border-radius: 8px; font-size: .84rem; font-weight: 650; color: var(--muted); }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-2); }

/* ---- tables ---- */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; border-bottom-color: var(--line); white-space: nowrap; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.tot td { font-weight: 750; border-top: 2px solid var(--ink); border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.approved { background: var(--ok-bg); color: var(--ok); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.open { background: var(--info-bg); color: var(--ink-2); }

.flash { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 11px 14px;
  margin-bottom: 16px; font-weight: 600; box-shadow: var(--sh-2); animation: drop .25s ease-out; transition: opacity .3s, transform .3s; }
.flash > .ico { color: var(--brand-teal); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 2px; display: flex; }
.flash.hide { opacity: 0; transform: translateY(-6px); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; font-size: .92rem; text-decoration: none; }
.alert .ico { margin-top: 2px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.info { background: var(--info-bg); color: var(--ink-2); }
.alert a { font-weight: 700; }
a.alert:hover { filter: brightness(.98); }

/* ---- lists ---- */
.jobs { list-style: none; padding: 0; margin: 0; }
.jobs li + li { border-top: 1px solid var(--line-2); }
.jobs a { display: flex; gap: 12px; justify-content: space-between; padding: 12px 2px; text-decoration: none; }
.jobs a:hover { color: inherit; }
.jobs .t { font-weight: 650; }
.jobs .s { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty > .ico { width: 34px; height: 34px; opacity: .45; margin-bottom: 6px; }
.empty b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---- tech: today ---- */
.hello { margin: 2px 0 14px; }
.hello h1 { font-size: 1.55rem; }
.hello p { margin: 2px 0 0; color: var(--muted); }
.clock { text-align: center; padding: 22px 18px; }
.clock .timer { font-size: 2.8rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 4px 0 14px; }
.clock.on { background: linear-gradient(180deg, var(--ok-bg), var(--card) 75%); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 12px; }
.daynav h2 { margin: 0; font-size: 1.05rem; text-align: center; }
.daynav h2 small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.daynav .btn { width: 42px; padding: 0; }

.ev { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 14px 19px; margin-bottom: 12px; background: var(--card); box-shadow: var(--sh-1); overflow: hidden; }
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--reon); }
.ev.fieldnation::before { background: var(--fn); }
.ev.done { opacity: .78; }
.ev .when { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.ev .cust { font-weight: 750; font-size: 1.12rem; margin: 6px 0 1px; letter-spacing: -.01em; }
.ev .scope { color: var(--ink-2); }
.ev .addr { display: inline-flex; gap: 6px; align-items: flex-start; font-size: .9rem; margin-top: 6px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.ev .addr .ico { margin-top: 2px; }
.ev details { margin-top: 8px; font-size: .86rem; color: var(--muted); }
.ev summary { cursor: pointer; font-weight: 600; }
.ev details div { white-space: pre-wrap; max-height: 260px; overflow: auto; margin-top: 6px; padding: 10px; background: var(--line-2); border-radius: 10px; }
.ev .actions { margin-top: 12px; }

.src { display: inline-flex; align-items: center; font-size: .65rem; font-weight: 800; letter-spacing: .07em; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; white-space: nowrap; }
.src.fieldnation { background: var(--fn-bg); color: var(--fn); }
.src.reon, .src.bigin { background: var(--reon-bg); color: var(--reon); }
.src.manual { background: var(--line-2); color: var(--muted); }

/* ---- staff: schedule board ---- */
.board-row { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) { .board-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 14px; font-size: .86rem; background: var(--card); min-width: 220px; max-width: 340px; overflow: hidden; }
.chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--reon); }
.chip.fieldnation::before { background: var(--fn); }

/* ---- job page ---- */
.xp { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.xp:last-of-type { border-bottom: 0; }
.xp .kind-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.kindtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kindtabs label { margin: 0; }
.kindtabs input { position: absolute; opacity: 0; pointer-events: none; }
.kindtabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 4px; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.kindtabs span .ico { width: 20px; height: 20px; }
.kindtabs input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.kindtabs input:focus-visible + span { outline: 2px solid var(--accent); }
.fnbox { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--fn-bg); color: var(--fn); border-radius: 12px; padding: 12px 14px; font-weight: 650; margin-top: 10px; }
.fnbox b { font-size: 1.15rem; }
.stickybar { position: sticky; bottom: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(0,0,0,.28); padding: 12px 14px; border-radius: var(--r-lg); z-index: 5; }
@media (max-width: 760px) { .stickybar { bottom: calc(70px + env(safe-area-inset-bottom)); } }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; }
.totalrow b { font-size: 1.35rem; letter-spacing: -.02em; }

/* ---- people ---- */
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--line-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .78rem; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.8rem; }
.person { display: flex; align-items: center; gap: 12px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.thumbs a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: 64px; height: 64px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .pdf { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; font-size: .78rem; color: var(--muted); }
.reveal { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.05rem; letter-spacing: .06em; }

/* ---- sign in ---- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-brand { background: #231f20; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at -10% 115%, rgba(37,181,180,.32), transparent 60%); }
.auth-brand::after { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo img { height: 64px; }
.auth-brand h1 em { font-style: normal; color: var(--brand-teal); }
.auth-brand .logo span { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.22); }
.auth-brand .eyebrow { color: rgba(255,255,255,.55); }
.auth-brand h1 { font-size: 2.6rem; line-height: 1.08; letter-spacing: -.035em; max-width: 16ch; margin: 0 0 14px; }
.auth-brand p { color: rgba(255,255,255,.7); max-width: 42ch; margin: 0; }
.auth-brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-brand li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.88); font-weight: 600; }
.auth-brand li .ico { color: var(--brand-teal); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; padding: 6px; width: 32px; height: 32px; }
.auth-brand .foot { font-size: .8rem; color: rgba(255,255,255,.45); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth { width: 100%; max-width: 380px; }
.auth h2 { font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: 4px; }
.auth .sub { color: var(--muted); margin: 0 0 22px; }
.auth .mlogo { display: none; margin-bottom: 28px; }
.auth .mlogo img { height: 52px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth .mlogo { display: flex; }
  .auth-form { align-items: flex-start; padding-top: 10vh; }
}
.err { color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; }
code { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: .88em; word-break: break-all; }

@media print {
  .top, .tabs, .clockbar, .noprint, form.filters { display: none !important; }
  body { background: #fff; } .card, .stat { box-shadow: none; } main { padding: 0; max-width: none; }
}

/* tasks */
.ev.task::before { background: var(--muted); }
.ev.task.hi::before { background: var(--bad); }
details > summary.btn::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .gear-table th:nth-child(2), .gear-table td:nth-child(2) { display: none; }
  .gear-table td { padding: 10px 6px; }
}

/* inventory */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.inv-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; box-shadow: var(--sh-1); transition: border-color .15s; }
.inv-card:hover { border-color: color-mix(in srgb, var(--brand-teal) 55%, var(--line)); color: inherit; }
.inv-card.low { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.inv-img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.inv-img img { width: 100%; height: 100%; object-fit: contain; }
.inv-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.inv-qty { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 6px; }
.inv-qty b { font-size: 1.1rem; }
.inv-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.inv-photos figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; }
.inv-photos img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.inv-photos .ph { aspect-ratio: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .inv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---- margins ---- */
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpis { margin-bottom: 10px; }
.kpis .stat .mg { position: absolute; top: 14px; right: 14px; }
.mg { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700;
      font-variant-numeric: tabular-nums; white-space: nowrap; border: 1px solid transparent; }
.mg small { font-weight: 600; opacity: .75; font-size: .7rem; }
.mg.good { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.mg.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.mg.none { background: var(--line-2); color: var(--muted); }
.neg { color: var(--bad); }
.econ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.econ > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; position: relative; }
.econ > div b { font-size: 1.15rem; }
.econ .mg { position: absolute; top: 10px; right: 10px; }
@media (max-width: 520px) { .econ { grid-template-columns: 1fr; } }

/* ---- exports ---- */
.exportbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.exportbar > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; }
.exportbar .ico { width: 14px; height: 14px; }

/* ---- tags, links, QR ---- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tags.bar { margin: -2px 0 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
       background: var(--info-bg); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--brand-teal) 25%, transparent);
       text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.4; }
.tag .ico { width: 12px; height: 12px; }
.tag:hover { border-color: var(--brand-teal); color: var(--accent-text); }
.tag.on { background: var(--brand-teal); color: #062424; border-color: var(--brand-teal); }
.tag.on .muted { color: #0a3a3a; }
.tags.mini { margin: 4px 0 2px; gap: 4px; }
.tags.mini .tag { font-size: .68rem; padding: 1px 7px; cursor: default; }
.tags.pick { margin-top: 8px; }
.tags.pick .tag { background: transparent; }
.tags.pick .tag.on { background: var(--brand-teal); }
.buylink { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.buylink a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
.buylink a b, .buylink a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buylink a::after { content: none; }
.buylink form { margin: 0; }
.linkform { margin-top: 12px; display: grid; gap: 8px; }
.linkform .row { margin: 0; }
.qrbox { display: flex; gap: 14px; align-items: flex-start; }
.qrbox img { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 4px; flex: none; }
.qrbox code { word-break: break-all; display: block; margin-top: 6px; }
@media (max-width: 520px) { .qrbox { flex-direction: column; align-items: center; text-align: center; } .qrbox .actions { justify-content: center; } }
.photo-add { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.photo-add label.btn { cursor: pointer; margin: 0; font-weight: 600; }
.inv-photos figure form { display: inline; }
.xp.focus { background: var(--info-bg); border-radius: 10px; outline: 2px solid var(--brand-teal); }
.pricechg { margin-top: 4px; padding: 4px 8px; border-radius: 8px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.pricechg.up { background: var(--bad-bg); color: var(--bad); }
.pricechg.down { background: var(--ok-bg); color: var(--ok); }
.pricechg label { font-weight: 500; color: var(--ink); margin: 0; display: inline-flex; gap: 4px; align-items: center; }
.opdoc { max-width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; }
.kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; }
details.trip { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
details.trip summary { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
details.trip summary::-webkit-details-marker { display: none; }
details.trip summary::before { content: "▸"; color: var(--muted); position: absolute; margin-left: -14px; }
details.trip[open] summary::before { content: "▾"; }
details.trip { padding-left: 14px; position: relative; }
@media (max-width: 620px) { details.trip summary { grid-template-columns: 1fr auto; } }
ol.route { list-style: none; margin: 10px 0; padding: 0 0 0 18px; border-left: 2px dashed color-mix(in srgb, var(--brand-teal) 50%, var(--line)); }
ol.route li { position: relative; padding: 4px 0 8px 10px; }
ol.route li::before { content: ""; position: absolute; left: -24px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-teal); }
ol.route .leg { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent-text); background: var(--info-bg); border-radius: 999px; padding: 0 8px; margin-right: 8px; }
a.stat.rep { display: grid; gap: 6px; align-content: start; }
a.stat.rep .ico { width: 22px; height: 22px; color: var(--accent-text); }
a.stat.rep b { font-size: 1.1rem; }
a.stat.rep span { color: var(--muted); font-size: .88rem; }

/* iPhone Safari zooms into any field under 16px; keep phones at 16px */
@media (max-width: 760px), (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
}
.menu { display: grid; padding: 4px 0; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.menu a:last-child { border-bottom: 0; }
.menu a .ico { color: var(--accent-text); width: 20px; height: 20px; }

/* ---- notifications + offline ---- */
.icon-btn.bell { position: relative; }
.dotn { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff;
        font-size: .66rem; font-weight: 800; line-height: 17px; text-align: center; }
.netbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; padding: 8px 14px; font-size: .85rem; font-weight: 650;
          background: var(--ink); color: var(--card); cursor: default; }
.netbar.off { background: #6b6768; color: #fff; }
.netbar.bad { background: var(--bad); color: #fff; cursor: pointer; }
.netbar.ok { background: var(--ok); color: var(--ok-ink); }
.netbar[hidden] { display: none; }
.note { display: grid; gap: 2px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.note:last-child { border-bottom: 0; }
.note.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-teal); margin-right: 6px; vertical-align: middle; }
.note span { color: var(--ink-2); font-size: .92rem; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; padding: 6px 0; }
label.check input { width: auto; }

/* ---- job types, close-out, crew ---- */
.jt { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }
.jt-install { border-color: #25b5b4; color: var(--accent-text); }
.jt-service { border-color: #d98a1f; color: #9a5b00; }
.jt-revisit { border-color: #8a6bd1; color: #5b3fa8; }
.jt-survey { border-color: #3d84d6; color: #215f9e; }
.jt-multiday { border-color: #231f20; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jt { color: var(--ink-2); } }
:root[data-theme="dark"] .jt { color: var(--ink-2); }
.worknotes { white-space: pre-wrap; background: var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.closeout-btns { flex-wrap: wrap; }
.far { color: var(--bad); font-weight: 700; }
.near { color: var(--ok); font-weight: 700; }
.voice { margin-bottom: 14px; }
.voicebox { margin-top: 10px; padding: 12px; border: 1px dashed color-mix(in srgb, var(--brand-teal) 60%, var(--line)); border-radius: 12px; }
[data-voice-mic].rec { background: var(--bad); color: #fff; border-color: var(--bad); }
.vrow { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.vrow:last-child { border-bottom: 0; }
.visit { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.visit:last-child { border-bottom: 0; }

/* ---- assistant: briefing + ask ---- */
.brief .lead { font-size: 1.05rem; line-height: 1.5; margin: 0 0 6px; }
.blist { margin: 0 0 10px; padding-left: 18px; }
.blist li { margin: 6px 0; }
.blist.bring { list-style: none; padding: 0; }
.blist.bring li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.tag.ok { background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.askbox textarea { width: 100%; font-size: 1rem; }
.askbox .row-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0; }
.askex { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; text-align: left; }
.chat .q { font-weight: 700; margin-bottom: 8px; }
.chat .a p { margin: 0 0 8px; }
.chat .a ul { margin: 0 0 8px; padding-left: 18px; }
.chat .a li { margin: 4px 0; }

/* ---- smoother everyday use ---- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filebtn { width: 100%; justify-content: center; min-height: 52px; border-style: dashed; cursor: pointer; }
.filebtn.picked { border-style: solid; border-color: var(--brand-teal); background: var(--ok-bg); color: var(--ok); }
.filenote { display: block; margin-top: 6px; }
button.busy { opacity: .7; cursor: progress; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.jump a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--ink-2); }
details.alert > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
details.alert > summary::-webkit-details-marker { display: none; }
details.alert ul { margin: 8px 0 0; padding-left: 26px; }
details.alert li { margin: 4px 0; }
.menu h3 { margin: 14px 4px 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu h3:first-child { margin-top: 2px; }
.searchbox { display: flex; gap: 8px; }
.searchbox input { flex: 1; font-size: 1rem; }
.hits a.hit { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.hits a.hit:last-child { border-bottom: 0; }
.hits .hit b { color: var(--ink); }
.bad-txt { color: var(--bad); font-weight: 700; }
@media (max-width: 760px) {
  .stack table, .stack tbody, .stack tr, .stack td { display: block; width: auto; }
  .stack thead { display: none; }
  .stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stack td { padding: 3px 0 !important; border: 0 !important; text-align: right; overflow: hidden; }
  .stack td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
  .stack td:not([data-label]) { text-align: left; }
  .stack td:not([data-label])::before { content: none; }
  .stack td.blank { display: none; }
  .stack td:first-child input[type=checkbox] { margin-bottom: 4px; }
}

/* Onboarding / offboarding checklists on the team member page */
.checklist { margin-bottom: 14px; }
.checklist .head { align-items: center; margin-bottom: 4px; }
.checklist .head h2 { margin: 0; }
.checklist .xp { grid-template-columns: auto 1fr; padding: 10px 0; }
.checklist .xp.done b { color: var(--muted); font-weight: 500; }
.checklist > p { margin: 10px 0 0; }
.ck { width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.ck.on { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.ck svg { width: 12px; height: 12px; }
.checklist .outside { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--muted); }
.checklist .outside ul { margin: 4px 0 0; padding-left: 18px; }

/* Office price for materials a tech bought */
.billfix { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
.billfix input { width: 6.5em; padding: 3px 6px; margin-left: 4px; }
.billfix input.bad { border-color: var(--bad); color: var(--bad); }
