/* TROCK CORE — mockup design system
   Direction: "Engineered Spec-Sheet / Job-Site Signal"
   Graphite ink on warm paper · signal-orange accent · hi-vis flags · tabular mono figures */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces */
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --card: #ffffff;
  --ink: #17191c;
  --ink-2: #4a4f57;
  --ink-3: #878d96;
  --line: #d9d7cf;
  --line-2: #e8e6df;

  /* signal */
  --accent: #e2571f;       /* signal orange — primary actions */
  --accent-ink: #b8410f;
  --hi: #f4c20d;           /* hi-vis — sparing: today line, over-capacity */
  --steel: #355070;        /* blueprint blue — secondary structure */

  /* semantic (variance / status) */
  --pos: #2f7d54;
  --pos-bg: #e4f0e8;
  --neg: #c0392b;
  --neg-bg: #f7e6e3;
  --warn: #b8860b;
  --warn-bg: #f6eecf;
  --info: #355070;
  --info-bg: #e4ebf2;

  --radius: 7px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(23,25,28,.06), 0 8px 24px -12px rgba(23,25,28,.18);
  --shadow-lg: 0 24px 60px -24px rgba(23,25,28,.35);

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --display: 'Archivo', var(--sans);

  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(53,80,112,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,80,112,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #d7d9dd; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; border-right: 1px solid #000;
}
.brand { padding: 18px 18px 14px; border-bottom: 1px solid #2a2d33; display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 5px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
}
.brand .name { font-family: var(--display); font-weight: 800; letter-spacing: .02em; color: #fff; font-size: 15px; }
.brand .name b { color: var(--accent); }
.nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
.nav .group { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #6a6f78; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius-sm);
  color: #c2c5cb; font-size: 13px; font-weight: 500; margin: 1px 0;
}
.nav a .ic { width: 16px; text-align: center; opacity: .7; font-size: 13px; }
.nav a:hover { background: #23262c; color: #fff; }
.nav a.active { background: var(--accent); color: #fff; }
.nav a.active .ic { opacity: 1; }
.sidebar .who { padding: 12px 16px; border-top: 1px solid #2a2d33; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.sidebar .who .av { width: 28px; height: 28px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(246,245,241,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 26px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;  /* wrap to a new line instead of squishing when narrow (e.g. embedded in the demo iframe) */
}
.topbar .row { flex-wrap: wrap; }
.topbar .row .chip { white-space: nowrap; }  /* date pills etc. never break word-by-word */
.crumbs { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.crumbs b { color: var(--ink); }
.topbar h1 { font-size: 19px; }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 11px; color: var(--ink-3); font-size: 12.5px; width: 240px;
}
.content { padding: 24px 26px 60px; max-width: 1320px; width: 100%; }

/* ---------- corner-tick wrapper ---------- */
.tick { position: relative; }
.tick::before, .tick::after {
  content: ""; position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--accent); pointer-events: none;
}
.tick::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tick::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card .hd { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.card .hd h3 { font-size: 14px; }
.card .bd { padding: 16px; }
.card .hd .spacer { flex: 1; }

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden;
}
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-family: var(--mono); font-size: 11px; margin-top: 4px; }
.stat .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat.pos .rail { background: var(--pos); } .stat.neg .rail { background: var(--neg); } .stat.steel .rail { background: var(--steel); }

.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2,1fr); } .g3 { grid-template-columns: repeat(3,1fr); } .g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1080px){ .g4{grid-template-columns:repeat(2,1fr)} .g3{grid-template-columns:repeat(2,1fr)} }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); }
.btn.pri { background: var(--accent); border-color: var(--accent-ink); color: #fff; }
.btn.pri:hover { background: var(--accent-ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: #000; }
.btn.sm { padding: 5px 10px; font-size: 11.5px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }

/* ---------- chips / status ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); background: var(--paper-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.pos { color: var(--pos); background: var(--pos-bg); border-color: transparent; }
.chip.neg { color: var(--neg); background: var(--neg-bg); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.chip.info { color: var(--info); background: var(--info-bg); border-color: transparent; }
.chip.accent { color: #fff; background: var(--accent); border-color: transparent; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: var(--paper-2); }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .total td { font-weight: 700; border-top: 2px solid var(--ink); background: var(--paper-2); }
.table .sub td:first-child { padding-left: 28px; color: var(--ink-2); }
.table .sub td:first-child::before { content: "└ "; color: var(--ink-3); }

/* variance figures */
.v-pos { color: var(--pos); } .v-neg { color: var(--neg); }

/* mini bar in cells */
.minibar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; min-width: 70px; }
.minibar > i { display: block; height: 100%; background: var(--steel); }
.minibar.warn > i { background: var(--hi); } .minibar.over > i { background: var(--neg); }

/* ---------- capacity heat grid ---------- */
.heat { border-collapse: collapse; font-size: 12px; width: 100%; }
.heat th { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); padding: 4px 2px; text-transform: uppercase; letter-spacing: .08em; }
.heat td { padding: 0; }
.heat .rowlabel { font-weight: 600; padding: 6px 10px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.cell { height: 30px; border: 1px solid var(--paper); text-align: center; font-family: var(--mono); font-size: 10px; color: rgba(0,0,0,.55); }
.h0 { background: #eef0ec; color: var(--ink-3); }     /* free */
.h1 { background: #cfe6d6; }                          /* light */
.h2 { background: #a8d3ad; }                           /* busy */
.h3 { background: #f4c20d; }                           /* near cap (hi-vis) */
.h4 { background: #e8893f; color: #fff; }              /* at cap */
.h5 { background: #c0392b; color: #fff; font-weight: 600; } /* over */

/* ---------- gantt ---------- */
.gantt { position: relative; }
.gantt .row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line-2); align-items: center; }
.gantt .task { padding: 8px 12px; font-size: 12.5px; }
.gantt .task .loc { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.gantt .lane { position: relative; height: 38px; }
.gantt .bar {
  position: absolute; top: 9px; height: 20px; border-radius: 3px; background: var(--steel); color: #fff;
  font-size: 10.5px; display: flex; align-items: center; padding: 0 7px; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.gantt .bar .pct { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,0,0,.22); }
.gantt .bar.done { background: var(--pos); } .gantt .bar.late { background: var(--neg); } .gantt .bar.crit { background: var(--accent); }
.gantt .ghost { position: absolute; top: 31px; height: 4px; border-radius: 2px; background: var(--line); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--hi); z-index: 3; }
.gantt .grid-cols { position: absolute; inset: 0; display: grid; pointer-events: none; }
.gantt .grid-cols i { border-left: 1px dashed var(--line-2); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- ball-in-court / timeline ---------- */
.bic { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.bic .av { width: 22px; height: 22px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.flow { display: flex; align-items: center; gap: 0; font-family: var(--mono); font-size: 10.5px; }
.flow .step { padding: 5px 12px; background: var(--paper-2); border: 1px solid var(--line); position: relative; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.flow .step.done { background: var(--pos-bg); color: var(--pos); border-color: transparent; }
.flow .step.now { background: var(--accent); color: #fff; border-color: var(--accent-ink); }
.flow .step:not(:last-child){ margin-right: 6px; }
.flow .step:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline .ev { position: relative; padding: 0 0 16px; }
.timeline .ev::before { content: ""; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--steel); }
.timeline .ev.accent::before { border-color: var(--accent); }
.timeline .ev .t { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* ---------- approval strip ---------- */
.approval { background: var(--ink); color: #e9eaec; border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 18px; }
.approval .react { display: flex; gap: 18px; flex: 1; }
.approval .react div { font-size: 12px; }
.approval .react .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b9097; }
.approval .react .val { font-family: var(--mono); font-weight: 600; margin-top: 2px; }

/* progress */
.bar-prog { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar-prog > i { display: block; height: 100%; background: var(--accent); }

/* form fields */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.input, select.input, textarea.input { font-family: var(--sans); font-size: 13px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); }

/* misc */
.row { display: flex; align-items: center; gap: 10px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-actionbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mobile-actionbar .btn { min-width: 0; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.note { font-size: 12px; color: var(--ink-2); background: var(--info-bg); border-left: 3px solid var(--steel); padding: 10px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.kbd { font-family: var(--mono); font-size: 11px; background: var(--paper-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }

/* phone frame for mobile mockups */
.phones { display: flex; flex-wrap: wrap; gap: 28px; }
.phone { width: 300px; border: 10px solid var(--ink); border-radius: 38px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.phone .notch { height: 26px; background: var(--ink); display: grid; place-items: center; }
.phone .notch::after { content: ""; width: 90px; height: 6px; border-radius: 4px; background: #34373d; }
.phone .scr { height: 560px; overflow-y: auto; }
.phone .mtop { padding: 12px 14px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; }
.phone .mtop .name { font-family: var(--display); font-weight: 700; font-size: 14px; }
.phone .mtab { display: flex; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); }
.phone .mtab a { flex: 1; text-align: center; padding: 9px 0 11px; font-size: 9px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.phone .mtab a.active { color: var(--accent); }
.phone .mtab a .ic { display: block; font-size: 17px; margin-bottom: 3px; }

/* ============================================================
   CONTRACTOR / CUSTOMER PORTAL SHELL (external surface)
   Namespaced .p* — does not touch the admin shell
   ============================================================ */
.portal { min-height: 100vh; display: flex; flex-direction: column; }
.pbar {
  position: sticky; top: 0; z-index: 30; background: var(--ink); color: #e9eaec;
  display: flex; align-items: center; gap: 22px; padding: 0 26px; height: 58px;
  border-bottom: 3px solid var(--accent);
}
.pbar .pbrand { display: flex; align-items: center; gap: 11px; padding-right: 22px; border-right: 1px solid #2e3137; height: 100%; }
.pbar .pbrand .mark {
  width: 30px; height: 30px; border-radius: 6px; background: var(--accent); display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
}
.pbar .pbrand .eyebrow { color: var(--hi); display: block; line-height: 1; margin-bottom: 3px; }
.pbar .pbrand .name { font-family: var(--display); font-weight: 800; letter-spacing: .02em; color: #fff; font-size: 15px; line-height: 1; }
.pbar .pbrand .name b { color: var(--accent); }
.pnav { display: flex; align-items: center; gap: 2px; flex: 1; height: 100%; overflow-x: auto; }
.pnav a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 13px; font-size: 12.5px; font-weight: 600;
  color: #b6bac1; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap;
}
.pnav a:hover { color: #fff; }
.pnav a.active { color: #fff; border-bottom-color: var(--accent); }
.pnav a .ct { font-family: var(--mono); font-size: 10px; margin-left: 6px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; font-weight: 600; }
.puser { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid #2e3137; height: 100%; }
.puser .av { width: 30px; height: 30px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.puser .co { font-family: var(--display); font-weight: 700; color: #fff; font-size: 12.5px; line-height: 1.1; }
.puser .nm { font-size: 11px; color: #9aa0a8; line-height: 1.2; }
.scope-banner {
  display: flex; align-items: center; gap: 10px; padding: 9px 26px; font-size: 12.5px; color: var(--ink-2);
  background: var(--info-bg); border-bottom: 1px solid var(--line);
}
.scope-banner .lock { width: 20px; height: 20px; border-radius: 5px; background: var(--steel); color: #fff; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.scope-banner b { color: var(--ink); }
.pmain { flex: 1; }
.pmain .phead { padding: 22px 26px 0; max-width: 1240px; }
.pmain .phead h1 { font-size: 22px; }
.pmain .phead .crumbs { margin-bottom: 4px; }
.pcontent { padding: 18px 26px 64px; max-width: 1240px; }
.proj-tab { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   CUSTOMER / OWNER PORTAL — components (relationship-grade, more air)
   Builds on the .p* shell above; all names below are net-new.
   ============================================================ */
.psec { margin: 30px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.psec h2 { font-size: 18px; } .psec .ln { flex: 1; height: 1px; background: var(--line); }
.lead-in { font-size: 14px; color: var(--ink-2); max-width: 760px; }

/* --- hero (status page) --- */
.phero { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); color: #fff; }
.phero .bg { position: absolute; inset: 0; background:
   linear-gradient(110deg, rgba(23,25,28,.92) 0%, rgba(23,25,28,.6) 46%, rgba(53,80,112,.4) 100%),
   linear-gradient(135deg, #51657a, #2c3a47); }
.phero .bg::after { content: ""; position: absolute; inset: 0; background-image:
   linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
   background-size: 30px 30px; }
.phero .body { position: relative; padding: 34px 36px; display: flex; align-items: center; gap: 34px; }
.phero .body .lead { flex: 1; }
.phero h1 { font-size: 36px; color: #fff; line-height: 1.04; margin: 9px 0 7px; }
.phero .hmeta { font-size: 14px; color: rgba(255,255,255,.82); }
.phero .eyebrow { color: rgba(255,255,255,.62); }
.phero .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; }
.phero .chip.pos { background: rgba(47,125,84,.42); color: #d8f0e1; }

/* progress ring */
.ring { width: 134px; height: 134px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
   background: conic-gradient(var(--accent) calc(var(--p,0)*1%), rgba(255,255,255,.22) 0); }
.ring .in { width: 106px; height: 106px; border-radius: 50%; background: rgba(23,25,28,.5); backdrop-filter: blur(2px);
   display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ring .v { font-family: var(--display); font-weight: 800; font-size: 31px; line-height: 1; }
.ring .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 5px; }

/* --- horizontal phase stepper (read-only schedule) --- */
.phases { display: flex; padding: 10px 4px 4px; }
.phases .ph { flex: 1; text-align: center; position: relative; padding-top: 28px; }
.phases .ph::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.phases .ph:first-child::before { display: none; }
.phases .ph.done::before, .phases .ph.now::before { background: var(--pos); }
.phases .ph .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.phases .ph.done .dot { background: var(--pos); border-color: var(--pos); }
.phases .ph.now .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(226,87,31,.2); }
.phases .ph .nm { font-weight: 600; font-size: 12.5px; }
.phases .ph .dt { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.phases .ph.now .nm { color: var(--accent-ink); }

/* --- milestone list --- */
.mile { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line-2); }
.mile:last-child { border-bottom: 0; }
.mile .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; background: var(--paper-2); color: var(--ink-3); }
.mile.done .ic { background: var(--pos-bg); color: var(--pos); }
.mile.now .ic { background: var(--accent); color: #fff; }
.mile .t { font-weight: 600; }
.mile .s { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.mile .when { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* --- photo strip / gallery (owner-facing) --- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 226px; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.pgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.shot { border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot:hover { border-color: var(--accent); }
.shot .img { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 30px; }
.shot .img.s1 { background: linear-gradient(135deg, #4a5a6a, #2c3a47); }
.shot .img.s2 { background: linear-gradient(135deg, #7a6248, #4f3f2e); }
.shot .img.s3 { background: linear-gradient(135deg, #56707f, #38525f); }
.shot .img.s4 { background: linear-gradient(135deg, #6a5a48, #463a2c); }
.shot .img.s5 { background: linear-gradient(135deg, #455b52, #2c3e38); }
.shot .img.s6 { background: linear-gradient(135deg, #5a5566, #393545); }
.shot .img.s7 { background: linear-gradient(135deg, #4a5a6a, #38525f); }
.shot .img.s8 { background: linear-gradient(135deg, #7a6248, #463a2c); }
.shot .tag { position: absolute; top: 9px; left: 9px; }
.shot .cap { padding: 11px 13px; }
.shot .cap .t { font-weight: 600; font-size: 13px; }
.shot .cap .m { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* --- document list --- */
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.doc:last-child { border-bottom: 0; }
.doc:hover { background: var(--paper-2); }
.doc .ft { width: 40px; height: 48px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 600; color: #fff; flex-shrink: 0; letter-spacing: .04em; }
.doc .ft.pdf { background: #b8410f; } .doc .ft.dwg { background: var(--steel); } .doc .ft.img { background: var(--pos); } .doc .ft.xls { background: #2f7d54; }
.doc .nm { font-weight: 600; }
.doc .dmeta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.doc .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* --- DocuSign-style review panel --- */
.dsign { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.dsign .dhd { background: #f7f4ee; border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.dsign .dlogo { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--steel); letter-spacing: .02em; }
.dsign .doc-pane { background: #e9e7e0; padding: 22px; display: grid; place-items: center; }
.dsign .sheet { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 28px; font-size: 12px; color: var(--ink-2); }
.dsign .sheet h4 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.dsign .sigline { margin-top: 18px; border: 2px dashed var(--accent); border-radius: 6px; padding: 14px; background: rgba(226,87,31,.05); display: flex; align-items: center; gap: 10px; }
.dsign .sigtab { background: var(--hi); color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; }
.dsign .dft { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }

/* --- summary key/value rows (owner-friendly CO summary) --- */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.kv .k { color: var(--ink-2); } .kv .val { font-weight: 600; text-align: right; }
.scope-list { list-style: none; padding: 0; margin: 0; }
.scope-list li { padding: 9px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: flex-start; }
.scope-list li:last-child { border-bottom: 0; }
.scope-list li .ck { color: var(--pos); flex-shrink: 0; }

/* ---------- accessibility & responsive (appended — overrides above) ---------- */
:root { --ink-3: #6b7178; } /* darkened from #878d96 for better contrast (AA) */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1024px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } }
.heat .h3 { color: #2b2100; } /* darken text on the gold cell for legibility */
.heat .h4 { background: #c66a28; color: #fff; } /* deeper orange so white text reads */

/* ---------- T Rock logo brand mark (overrides the placeholder "T" tile) ---------- */
.brand .mark, .pbar .pbrand .mark {
  background: #0b0c0e url('logo.svg') center / 78% no-repeat;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  border-radius: 6px;
}
.brand .name b, .pbar .pbrand .name b { color: var(--accent); }

/* ---------- generic demo dialog (auto-wires inert buttons) ---------- */
.dlg-overlay{position:fixed;inset:0;background:rgba(15,17,20,.55);display:none;align-items:center;justify-content:center;z-index:10001;padding:20px}
.dlg-overlay.open{display:flex}
.dlg{background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);width:min(460px,94vw);max-height:88vh;overflow:auto;animation:dlgin .14s ease}
@keyframes dlgin{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.dlg .dh{padding:14px 18px;border-bottom:1px solid var(--line-2);display:flex;align-items:center;gap:10px}
.dlg .dh h3{font-size:15px;margin:0;font-family:var(--display)}
.dlg .dh .demo-badge{margin-left:auto;font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);border:1px solid var(--line);border-radius:4px;padding:2px 7px}
.dlg .db{padding:16px 18px;font-size:13px;color:var(--ink-2);line-height:1.5}
.dlg .db b{color:var(--ink)}
.dlg .db .f{margin-bottom:11px}
.dlg .db label{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-bottom:4px}
.dlg .db input,.dlg .db select,.dlg .db textarea{width:100%;border:1px solid var(--line);border-radius:5px;padding:8px;font:inherit;font-size:13px;background:var(--card);color:var(--ink);box-sizing:border-box}
.dlg .db textarea{min-height:74px;resize:vertical}
.dlg .db .drop{border:1.5px dashed var(--line);border-radius:8px;padding:18px;text-align:center;color:var(--ink-3);font-size:12px}
.dlg .df{padding:12px 18px;border-top:1px solid var(--line-2);display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:0;background:var(--card)}

/* ---------- realism primitives: skeletons, empty states, stat reveal, lightbox ---------- */
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk { background:linear-gradient(90deg,var(--line-2) 25%,var(--paper-2) 37%,var(--line-2) 63%); background-size:200% 100%; animation:sk 1.3s ease-in-out infinite; border-radius:4px; color:transparent !important; }
.sk-row { height:14px; margin:8px 0; }
.empty { padding:42px 20px; text-align:center; color:var(--ink-3); }
.empty .ico { font-size:30px; opacity:.5; }
.empty .t { font-weight:600; color:var(--ink-2); margin-top:8px; }
.empty .s { font-size:12px; margin-top:3px; }
@keyframes statin { from{opacity:0;transform:translateY(7px)} to{opacity:1;transform:none} }
.stat { animation:statin .42s both; }
.stat:nth-child(2){animation-delay:.05s}.stat:nth-child(3){animation-delay:.1s}.stat:nth-child(4){animation-delay:.15s}
.lb-overlay{position:fixed;inset:0;background:rgba(8,9,11,.86);display:none;align-items:center;justify-content:center;z-index:10002;padding:32px;cursor:zoom-out}
.lb-overlay.open{display:flex}
.lb-overlay img{max-width:92vw;max-height:84vh;border-radius:8px;box-shadow:var(--shadow-lg)}
.lb-overlay .cap{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);color:#e9eaec;font-size:13px;font-family:var(--mono);background:rgba(0,0,0,.4);padding:6px 12px;border-radius:6px}

/* ---------- mobile/tablet drawer nav ---------- */
.menu-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:6px;background:var(--card);cursor:pointer;font-size:16px;color:var(--ink)}
.nav-scrim{position:fixed;inset:0;background:rgba(8,9,11,.45);z-index:999;display:none}
@media (max-width:1024px){
  .app{grid-template-columns:1fr}
  .sidebar{display:flex;position:fixed;left:0;top:0;bottom:0;width:236px;transform:translateX(-100%);transition:transform .22s ease;z-index:1000}
  body.nav-open .sidebar{transform:none;box-shadow:var(--shadow-lg)}
  body.nav-open .nav-scrim{display:block}
  .menu-toggle{display:inline-flex}
  .content{padding-left:16px;padding-right:16px}
  .pbar .pnav{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
/* deep-linked phone screen (mobile galleries): spotlight the addressed :target section */
[id]:target > .phone-cap { color: var(--accent); }
[id]:target > .phone { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 36px; transition: outline-color .2s ease; }

/* tablet / embedded-iframe range: tighten the toolbar before the 760 mobile rules kick in */
@media (max-width:900px){
  .topbar{padding:10px 16px;gap:10px}
  .topbar h1{font-size:18px}
}
@media (max-width:680px){
  .topbar{flex-wrap:wrap;gap:8px}
  .topbar .search{display:none}
  .grid[style*="1.6fr"],.grid[style*="1.5fr"],.grid[style*="1fr 1fr"]{grid-template-columns:1fr !important}
}

/* ---------- responsive shell hardening (shared admin + portals) ---------- */
@media (max-width: 760px) {
  html, body { max-width: 100%; }
  .app, .main, .content, .portal, .pmain, .pcontent, .pmain .phead { min-width: 0; width: 100%; max-width: none; }
  .content { padding: 14px 12px 42px; }
  .topbar {
    padding: 10px 12px;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .topbar > * { min-width: 0; }
  .topbar h1 { font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
  .crumbs { overflow-wrap: anywhere; }
  .topbar .spacer { flex: 1 1 auto; min-width: 8px; }
  .topbar .chip { white-space: normal; }
  .topbar .row, .scope-banner, .card .hd, .approval, .flow, .doc, .mile { flex-wrap: wrap; }
  .scope-banner { padding: 8px 12px !important; align-items: flex-start; }
  .grid, .g2, .g3, .g4, .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .stat .v { font-size: 24px; }
  .tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs a { flex: 0 0 auto; }
  .card .hd { align-items: flex-start; }
  .card .hd .spacer { flex-basis: 100%; height: 0; }
  .card .bd {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .card .bd > table,
  .card .bd > .table {
    width: max-content;
    min-width: 100%;
  }
  .card > table,
  .card > .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px 10px; }
  .minibar { min-width: 48px; }
  .search { width: 100%; }
  .btn { max-width: 100%; }

  .pbar {
    height: auto;
    min-height: 58px;
    padding: 8px 12px;
    gap: 8px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pbar .pbrand {
    height: auto;
    flex: 1 1 100%;
    padding-right: 0;
    border-right: 0;
  }
  .pnav {
    order: 3;
    flex: 1 1 100%;
    height: auto;
    min-width: 0;
    padding-top: 2px;
  }
  .pnav a { height: 38px; padding: 0 10px; }
  .puser {
    height: auto;
    border-left: 0;
    padding-left: 0;
    margin-left: auto;
  }
  .pmain .phead { padding: 18px 14px 0; }
  .pcontent { padding: 14px 14px 42px; }
  .phero .body { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 22px; }
  .phero h1 { font-size: 28px; }
  .ring { width: 112px; height: 112px; }
  .ring .in { width: 88px; height: 88px; }
  .ring .v { font-size: 25px; }
  .phases { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .phases .ph { min-width: 112px; }
  .doc .right, .mile .when { margin-left: 0; width: 100%; text-align: left; }
  .pcontent .card .hd { gap: 8px; }
  .pcontent .card .bd { padding: 14px; }
  .pcontent .table { min-width: 0; }
  .portal .btn { min-height: 40px; }
  .portal .field .input, .portal textarea.input, .portal select.input { min-height: 42px; }
  .mobile-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: flex;
    gap: 8px;
    padding: 10px;
    margin: 12px -14px -14px;
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 22px -18px rgba(23,25,28,.45);
  }
  .mobile-actionbar .btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .pcontent .doc { align-items: flex-start; }
  .pcontent .doc .right { display: flex; flex-wrap: wrap; gap: 8px; }
  .pgallery { grid-template-columns: 1fr !important; gap: 12px; }
  #fbw { bottom: 86px !important; }
  .phones { justify-content: center; }
  .phone { width: min(300px, calc(100vw - 32px)); }
}

@media (max-width: 430px) {
  .topbar .btn, .topbar select.input, .topbar .proj-select { min-width: 0; }
  .topbar .btn { padding-left: 10px; padding-right: 10px; }
  .scope-banner { font-size: 12px; }
  .puser .co, .puser .nm { display: none; }
}

/* ---------- command palette (global search) ---------- */
.cp-overlay{position:fixed;inset:0;background:rgba(8,9,11,.45);display:none;align-items:flex-start;justify-content:center;z-index:10003;padding-top:12vh}
.cp-overlay.open{display:flex}
.cp{width:min(560px,94vw);background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);overflow:hidden}
.cp input{width:100%;border:0;border-bottom:1px solid var(--line-2);padding:15px 18px;font:inherit;font-size:15px;outline:none;background:var(--card);color:var(--ink)}
.cp .res{max-height:52vh;overflow:auto}
.cp .r{display:flex;align-items:center;gap:10px;padding:10px 18px;cursor:pointer;font-size:13px;border-bottom:1px solid var(--line-2)}
.cp .r .g{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-left:auto}
.cp .r.sel,.cp .r:hover{background:var(--paper-2)}
.cp .r b{color:var(--accent)}
.cp .hint{padding:8px 18px;font-family:var(--mono);font-size:10px;color:var(--ink-3);background:var(--paper-2);display:flex;gap:14px}

/* ---------- print: drop chrome, keep the document (budget / pay-apps / reports) ---------- */
@media print {
  .sidebar,.topbar,.menu-toggle,.nav-scrim,#fbw,#tc-dlg,#tc-lb,.cp-overlay,.tabs,.btn,.scope-banner{display:none !important}
  .app{display:block !important} .content{padding:0 !important;max-width:none !important}
  body{background:#fff !important;background-image:none !important}
  .card{box-shadow:none;border-color:#ccc;break-inside:avoid}
  a[href]:after{content:""}
}

/* ---------- guided tour (spotlight coachmarks) ---------- */
.tour-spot{position:absolute;z-index:10060;border-radius:8px;box-shadow:0 0 0 9999px rgba(8,9,11,.62),0 0 0 3px var(--accent);transition:all .28s cubic-bezier(.4,0,.2,1);pointer-events:none}
.tour-pop{position:absolute;z-index:10061;width:312px;max-width:92vw;background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow-lg);padding:15px 17px;animation:dlgin .18s ease}
.tour-pop .e{font-family:var(--mono);font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--accent)}
.tour-pop h4{margin:5px 0 7px;font-size:15px;font-family:var(--display)}
.tour-pop p{margin:0;font-size:13px;color:var(--ink-2);line-height:1.55}
.tour-pop .tn{display:flex;align-items:center;gap:8px;margin-top:13px}
.tour-pop .tn .sp{flex:1;font-family:var(--mono);font-size:11px;color:var(--ink-3)}
.tour-pop .tn .btn{padding:6px 12px;font-size:12px}
.tour-pop .skip{position:absolute;top:11px;right:13px;font-size:11px;color:var(--ink-3);cursor:pointer;font-family:var(--mono)}
.tour-dots{display:flex;gap:4px;margin-top:10px}
.tour-dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}
.tour-dots i.on{background:var(--accent)}

/* ---------- demo shell workflow rail + confidence panel ---------- */
.crumbtrail{font-family:var(--mono);font-size:10.5px;margin-top:2px;color:var(--ink-3)}
.storyrail{
  position:sticky;top:var(--chromeH,58px);z-index:22;
  display:flex;align-items:center;gap:12px;justify-content:space-between;
  background:var(--paper-2);border-bottom:1px solid var(--line);
  padding:9px 16px;min-width:0;
}
.storyrail[hidden]{display:none}
.storyrail .sr-main{display:flex;align-items:baseline;gap:9px;min-width:0;flex-wrap:wrap}
.storyrail .sr-main b{font-family:var(--display);font-size:13px}
.storyrail .sr-step{font-size:12px;color:var(--ink-2)}
.storyrail .sr-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.reactpanel{
  position:fixed;right:16px;top:calc(var(--chromeH,58px) + 16px);z-index:70;
  width:min(360px,calc(100vw - 32px));max-height:calc(100vh - var(--chromeH,58px) - 32px);
  overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-lg);transform:translateX(calc(100% + 24px));opacity:0;
  pointer-events:none;transition:transform .2s ease,opacity .2s ease;
}
.reactpanel.open{transform:translateX(0);opacity:1;pointer-events:auto}
.rp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line-2)}
.rp-head h3{font-size:15px;margin-top:2px}
.rp-list{display:grid}
.rp-event{display:grid;gap:3px;padding:11px 14px;border-bottom:1px solid var(--line-2)}
.rp-event:hover{background:var(--paper-2)}
.rp-event .mono{font-size:10px;color:var(--accent-ink);font-weight:600}
.rp-event b{font-size:12.5px}
.rp-event em{font-style:normal;font-size:11.5px;color:var(--ink-3)}
.rp-empty{padding:18px 14px;color:var(--ink-3);font-size:13px}

/* ---------- visible scrollbars (so it's obvious content scrolls) ---------- */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-thumb{background:var(--ink-3);border-radius:7px;border:3px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:var(--ink-2)}
::-webkit-scrollbar-track{background:transparent}

/* ============================================================
   CANONICAL COST-TYPE TOKENS (added — convergence target)
   labor = warn · material = neutral · equipment = violet ·
   sub = steel/info · other = pos. Pages can converge on these
   instead of redefining .ttag / .t-* inline. Page-level <style>
   loads after this file, so any existing inline tokens still win.
   ============================================================ */
:root { --violet: #6a4ea0; --violet-bg: #eee7f5; } /* equipment / violet token (some pages already reference it as a var) */
.ttag {
  display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .03em; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-2);
}
.t-L { background: var(--warn-bg); color: var(--warn); }      /* labor */
.t-M { background: var(--paper-2); color: var(--ink-2); }     /* material (neutral) */
.t-E { background: var(--violet-bg); color: var(--violet); }  /* equipment */
.t-S { background: var(--info-bg); color: var(--steel); }     /* subcontract */
.t-O { background: var(--pos-bg); color: var(--pos); }        /* other */

/* ============================================================
   RESPONSIVE LAYER (added) — desktop (>900px) is intentionally
   left untouched. Collapses the shell to one column and stacks
   grids; pairs with the app.js-injected off-canvas sidebar
   (.menu-toggle) that is already active at <=1024px.
   ============================================================ */
@media (max-width: 900px) {
  /* shell: single column so .main spans the full width */
  .app { grid-template-columns: 1fr; }
  .main { width: 100%; min-width: 0; }

  /* every multi-column grid stacks to one column (incl. inline grid-template-columns) */
  .grid, .g2, .g3, .g4,
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* topbar wraps instead of squishing its controls */
  .topbar { flex-wrap: wrap; }

  /* tables get overflow-x scrolling via their card-body wrapper (no layout break) */
  .card .bd { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  /* side drawers go full-width on phones */
  .drawer { width: 100% !important; }
  /* primary toolbar actions share the row and stay tappable */
  .topbar .btn { flex: 1 1 auto; justify-content: center; }
}
