/* FUSE Hub — shared styles, FUSE colors. */
:root {
  --stone: #F7F6F4;
  --stone-mid: #ECEAE6;
  --stone-dark: #CFCBC4;
  --ink: #1C1C1B;
  --ink-mid: #4F4E4A;
  --ink-light: #8A8883;
  --brand: #C8322A;        /* buttons, links */
  --brand-dark: #A02620;   /* hover */
  --brand-light: #FBE3E0;  /* icon tiles, highlights */
  --green: #2E7D4F;
  --green-light: #DDF1E4;
  --amber: #8A5A0B;
  --amber-light: #FBEFD6;
  --blue: #1F5E9E;
  --blue-light: #DCEAF8;
  --gray-light: #ECEAE6;
  --line: #E7E3DD;         /* soft borders of panels and cards */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 28, 27, .04), 0 2px 8px rgba(28, 28, 27, .04);
  --shadow-lg: 0 10px 30px rgba(28, 28, 27, .10);
  /* Liquid glass (navigation layer only: sidebar, phone bar, popovers, dialogs; content stays solid white) */
  --glass: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.56));
  --glass-blur: blur(28px) saturate(180%);
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35);
  /* Brushed stainless, the website's metal (buttons, home tiles): steel.jpg = a 640 px copy of
     website/assets/img/steel.jpg (tools/website/make_steel.py), mid-grey streaks laid over these bands of light with
     background-blend-mode: overlay. The edge gradient shows through a transparent border (machined edge). */
  --steel-bands: linear-gradient(100deg, #9FA8AE 0%, #E9EDEF 15%, #BCC4C9 29%, #F7F9FA 43%, #AEB7BD 58%, #E2E6E9 74%, #9AA3A9 100%);
  --steel-edge: linear-gradient(135deg, #FFFFFF 0%, #8A9399 20%, #F5F7F8 45%, #6A737A 70%, #E3E7EA 88%, #9AA3A9 100%);
  --red-metal: linear-gradient(105deg, #A82820 0%, #C8322A 24%, #E35A51 40%, #F08A82 46%, #D2392F 56%, #A82820 78%, #C8322A 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--stone); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
/* Soft colour behind everything, so the glass has something to frost (fixed layer: background-attachment
   fixed is ignored on iPad). */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at -8% -12%, rgba(200,50,42,.13), transparent 62%),
    radial-gradient(760px 520px at 108% -6%, rgba(31,94,158,.10), transparent 60%),
    radial-gradient(900px 700px at 40% 118%, rgba(214,170,120,.16), transparent 62%),
    linear-gradient(180deg, #F6F4F1, #EFECE7); }
@media print { body::before { display: none; } }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
.muted { color: var(--ink-light); }
.hidden { display: none !important; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- buttons & inputs (16px on inputs stops iOS zoom) ---------- */
/* Buttons are brushed stainless (primary: polished red metal), as on the website. The bands are wider than the
   button; on hover they slide, so a band of light crosses the metal (only that layer moves). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap;
  color: var(--ink); font: 600 14px var(--font); cursor: pointer; text-decoration: none;
  background:
    url("steel.jpg") center / 320px auto padding-box,
    var(--steel-bands) 100% 0 / 240% 100% padding-box,
    var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 2px rgba(28,28,27,.16), 0 6px 12px -8px rgba(28,28,27,.4);
  transition: background-position .7s cubic-bezier(.2,.7,.2,1), box-shadow .15s, transform .1s;
}
.btn:hover { background-position: center, 0 0, 0 0; }
.btn:active:not(:disabled) { transform: scale(.98); box-shadow: inset 0 1px 3px rgba(0,0,0,.28), 0 1px 1px rgba(28,28,27,.12); }
.btn:focus-visible { outline: 3px solid rgba(200,50,42,.35); outline-offset: 2px; }
.btn.primary { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.22);
  background: var(--red-metal) 100% 0 / 240% 100% border-box; background-blend-mode: normal; border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 2px rgba(160,38,32,.3), 0 8px 18px -10px rgba(200,50,42,.75); }
.btn.primary:hover { background-position: 0 0; }
.btn.danger { color: #7F1A14; } /* darker red: plain FUSE red is too faint on the steel */
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.big { min-height: 52px; font-size: 17px; padding: 0 24px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: none; color: var(--ink-light); cursor: pointer; font-size: 20px; padding: 6px; line-height: 1; }
.icon-btn:hover { color: var(--brand); }

label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-mid); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--stone-dark); border-radius: var(--radius);
  font: 16px var(--font); color: var(--ink); background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,50,42,.12); }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--brand); }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* A button next to labelled boxes: as tall as the box, level with it (not with the label), only as wide as its words. */
.row:has(> .field) > .btn, .row:has(> .field) > .actions { align-self: end; justify-self: start; margin-bottom: 14px; min-height: 42px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 400; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--stone); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--stone-dark); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.login-card .logo { width: 220px; display: block; margin: 0 auto 8px; }
.login-card h1 { text-align: center; font-size: 16px; color: var(--ink-mid); font-weight: 500; margin-bottom: 22px; }
/* "FUSE HUB" under the logo: wide spaced capitals in polished dark steel (Tassia 2026-11-07) */
.login-card h1.hub-title { font: 800 15px/1 var(--font); letter-spacing: .48em; text-transform: uppercase;
  margin: 4px 0 24px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-right: -.48em;
  background: linear-gradient(180deg, #6A737A 0%, #1C1C1B 48%, #3A3F44 52%, #8A9399 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card h1.hub-title::before, .login-card h1.hub-title::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); }
.login-card h1.hub-title::after { background: linear-gradient(90deg, var(--brand), transparent); }
.pinwrap input { text-align: center; letter-spacing: 12px; text-indent: 12px; font-weight: 700; font-size: 22px; padding: 0 40px; }
.pinwrap input::placeholder { letter-spacing: normal; font-weight: 400; font-size: 16px; text-indent: 0; }
.pinwrap input.masked { -webkit-text-security: disc; }
.pinwrap input.pw { letter-spacing: 3px; text-indent: 3px; font-size: 18px; padding: 0 44px 0 16px; }
/* Who signs in: one metal coin per person (hub.js showLogin). Steel for everyone, black metal for admins. */
.who-select { display: none; }
.login-card { position: relative; }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Screwed stainless name plates, two columns (Tassia 2026-11-08, option B). */
.who-chip { display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; font: inherit; color: var(--ink-mid); -webkit-tap-highlight-color: transparent; }
.who-coin { position: relative; width: 100%; height: 46px; border-radius: 5px; display: grid; place-items: center; overflow: hidden;
  border: 1.5px solid transparent;
  background:
    radial-gradient(circle at 13px 50%, #F4F5F5 0 1.3px, #8A8E8C 2.6px, #4D5150 3.4px, rgba(0,0,0,.25) 4px, transparent 4.6px) padding-box,
    radial-gradient(circle at calc(100% - 13px) 50%, #F4F5F5 0 1.3px, #8A8E8C 2.6px, #4D5150 3.4px, rgba(0,0,0,.25) 4px, transparent 4.6px) padding-box,
    url("steel.jpg") center / 260px auto padding-box, var(--steel-bands) 100% 0 / 260% 100% padding-box, var(--steel-edge) border-box;
  background-blend-mode: normal, normal, overlay, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 3px rgba(0,0,0,.16), 0 1px 2px rgba(28,28,27,.18), 0 6px 12px -8px rgba(28,28,27,.45);
  transition: transform .15s, box-shadow .15s, background-position .8s cubic-bezier(.2,.7,.2,1); }
.who-coin span { font: 800 14px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: #3C4145; padding: 0 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.25); }      /* stamped into the steel */
.who-coin span.long { font-size: 12.5px; letter-spacing: 1px; }
.who-coin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.who-chip:hover .who-coin { background-position: 13px 50%, calc(100% - 13px) 50%, center, 0 0, 0 0; }
.who-chip:hover .who-coin::after, .who-chip.on .who-coin::after { transform: translateX(120%); }
.who-chip.on .who-coin { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand), 0 6px 14px -6px rgba(200,50,42,.55); }
.who-chip:focus-visible { outline: none; }
.who-chip:focus-visible .who-coin, .who-chip:focus-visible .who-plate { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.op-gear { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: none; padding: 0;
  color: #C9C5BE; font-size: 17px; display: grid; place-items: center; cursor: pointer; opacity: .7; transition: color .2s, opacity .2s, transform .4s; }
.op-gear:hover, .op-gear:focus-visible { opacity: 1; color: var(--ink-light); transform: rotate(60deg); outline: none; }
.op-gear.on { opacity: 1; color: var(--ink-mid); }
/* The owner: one full-width screwed plate of mirror-polished black metal, above the steel plates */
.who-boss { display: grid; gap: 8px; margin-bottom: 8px; }
.who-chip.boss { padding: 0; }
.who-plate { position: relative; display: grid; place-items: center; width: 100%; height: 48px; border-radius: 5px; overflow: hidden;
  border: 1.5px solid transparent;
  background:
    radial-gradient(circle at 13px 50%, #E9ECEE 0 1.3px, #6E757A 2.6px, #1A1C1E 3.4px, transparent 4.4px) padding-box,
    radial-gradient(circle at calc(100% - 13px) 50%, #E9ECEE 0 1.3px, #6E757A 2.6px, #1A1C1E 3.4px, transparent 4.4px) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.10) 46%, rgba(255,255,255,0) 50%, rgba(255,255,255,.05) 100%) padding-box,
    linear-gradient(100deg, #050505 0%, #2B2F33 14%, #0A0B0C 27%, #5F666C 39%, #101214 48%, #08090A 60%, #3A3F44 74%, #0C0D0E 86%, #4A5056 100%) 100% 0 / 220% 100% padding-box,
    linear-gradient(135deg, #F2F4F5 0%, #5A6167 22%, #DDE2E5 46%, #2A2E31 70%, #B9C0C5 90%, #3A3F44 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,0,0,.6), 0 3px 6px rgba(28,28,27,.25), 0 12px 20px -10px rgba(28,28,27,.55);
  transition: transform .15s, box-shadow .15s, background-position 1s cubic-bezier(.2,.7,.2,1); }
.who-plate span { position: relative; z-index: 1; font: 800 14px/1 var(--font); letter-spacing: 2px; text-transform: uppercase; color: #F4F6F7;
  text-shadow: 0 -1px 0 rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.22), 0 0 10px rgba(255,255,255,.12); }
.who-plate::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* the mirror shine sweeping across */
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.15) 52%, transparent 62%);
  transform: translateX(-110%); animation: plate-shine 5.5s ease-in-out 1s infinite; }
@keyframes plate-shine { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .who-plate::after { animation: none; } }
.who-chip.boss:hover .who-plate { background-position: 13px 50%, calc(100% - 13px) 50%, 0 0, 0 0, 0 0; }
.who-chip.boss.on .who-plate { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand), 0 10px 18px -6px rgba(200,50,42,.5); }
.who-chip.boss:focus-visible .who-plate { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
/* Eye button inside the PIN / password box (hub.js eyeToggle) */
.pinbox { position: relative; display: block; }
.pinbox input { width: 100%; }
.pin-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none;
  border-radius: 50%; color: var(--ink-light); font-size: 21px; display: grid; place-items: center; cursor: pointer; }
.pin-eye:hover, .pin-eye:focus-visible { color: var(--ink); background: var(--stone-mid); }
/* Face ID / fingerprint on the sign-in page (assets/passkey.js) */
.face-area { margin-top: 14px; text-align: center; }
.face-or { display: flex; align-items: center; gap: 10px; color: var(--ink-light); font-size: 12.5px; margin-bottom: 12px; }
.face-or::before, .face-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.face-area .btn i { font-size: 20px; }
.linkish { border: 0; background: none; color: var(--ink-light); font-size: 12.5px; margin-top: 10px; cursor: pointer; text-decoration: underline; }
.face-offer { text-align: center; }
.face-offer .face-ico { display: flex; justify-content: center; gap: 14px; font-size: 40px; color: var(--brand); margin-bottom: 10px; }
.face-offer h2 { font-size: 20px; margin-bottom: 8px; }
.face-offer p { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.error { color: var(--brand); font-size: 13px; min-height: 18px; margin: 6px 0; }

/* ---------- shell: sidebar + main ---------- */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { width: 150px; margin: 0 8px 22px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #D9D7D2; text-decoration: none; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: var(--brand); color: #fff; }
.sidebar nav i { font-size: 18px; }
.sidebar .foot { margin-top: auto; font-size: 12px; color: #A9A7A2; padding: 8px 12px; }
.sidebar .foot button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.main { padding: 24px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-bar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .sidebar .logo { width: 110px; margin: 0 10px 0 4px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .sidebar nav a { padding: 8px 10px; }
  .sidebar .foot { margin: 0 0 0 auto; }
  .main { padding: 16px; }
}

/* ---------- home cards (like the hub) ---------- */
.home-header { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(28,28,27,.07); box-shadow: var(--glass-edge); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-header .logo { width: 150px; }
.home-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
a.card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.card .tile { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 22px; }
.card h3 { font-size: 16px; margin-bottom: 3px; }
.card p { margin: 0; color: var(--ink-light); font-size: 13px; line-height: 1.4; }

/* ---------- panels, tables, stats ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.panel > h2 { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
/* Cells sit in the middle of their row, so a date, a two-line name and a button line up (Tassia 2026-11-10: "desalinhado"). */
th, td { padding: 10px 12px; border-bottom: 1px solid var(--stone-mid); text-align: left; vertical-align: middle; }
td > .btn + .btn, td > .btn + a.btn { margin-left: 4px; }
td > div + .btn, td > a + .btn { margin-top: 4px; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-light); font-weight: 600; background: #FBFAF8; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: #FBFAF8; }
tfoot td { font-weight: 700; background: #FBFAF8; border-top: 1px solid var(--stone-dark); }
.empty { padding: 32px; text-align: center; color: var(--ink-light); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm);
  min-width: 0; container-type: inline-size; }
.stat.go { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat.go:hover, .stat.go:focus-visible { border-color: var(--brand); outline: none; }
.stat.go.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-light); font-weight: 600; }
/* The number shrinks with a narrow card (a window made smaller) instead of running out of it; 22px when there is room. */
.stat .v { font-size: 22px; font-size: clamp(16px, 12cqi, 22px); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .s { font-size: 12px; color: var(--ink-light); margin-top: 2px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.badge.APPROVED, .badge.converted { background: var(--green-light); color: var(--green); }
.badge.PENDING, .badge.submitted { background: var(--amber-light); color: var(--amber); }
.badge.PROPOSED { background: var(--blue-light); color: var(--blue); }
.badge.VOID, .badge.void, .badge.closed { background: var(--gray-light); color: var(--ink-light); }
.badge.active { background: var(--green-light); color: var(--green); }
.late { color: var(--brand); font-weight: 700; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 180px; }
.pill-tabs { display: inline-flex; background: rgba(28,28,27,.06); border-radius: 999px; padding: 3px; gap: 2px; }
.pill-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 600 13px var(--font); color: var(--ink-mid); cursor: pointer; }
.pill-tabs button { transition: background .15s, color .15s; }
.pill-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05); }

/* ---------- editable line tables ---------- */
.lines td { padding: 6px; }
.lines input, .lines select { min-height: 38px; font-size: 15px; }
.lines .qty { width: 90px; }
.lines .money { width: 120px; }
.section-head td { background: #FBFAF8; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mid); }
.totals { margin-left: auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--stone-mid); }
.totals .grand { font-size: 18px; font-weight: 700; border-bottom: 0; }

/* ---------- toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(28,28,27,.84); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 50; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12); max-width: calc(100vw - 32px); }
.toast.bad { background: rgba(200,50,42,.92); }
/* "The Hub was updated · Reload" (common.js checkVersion), on top of everything, under the phone's status bar. */
.update-bar { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(28,28,27,.88); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  color: #fff; font-size: 14px; white-space: nowrap; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12); }
.modal-bg { position: fixed; inset: 0; background: rgba(28,28,27,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 24px 60px rgba(28,28,27,.22), 0 0 0 1px rgba(28,28,27,.04); }
.modal h2 { margin-bottom: 16px; }
.modal.dropping { outline: 3px dashed var(--brand, #C8322A); outline-offset: -8px; }
.drop-hint { font-size: 13px; margin-top: 4px; }
.modal-bg.see-through { background: rgba(28,28,27,.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal .drag-handle { cursor: move; user-select: none; touch-action: none; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- field ticket (iPad) ---------- */
.ticket-page { max-width: 900px; margin: 0 auto; padding: 16px 16px 120px; }
.ticket-page .panel h2 { display: flex; align-items: center; gap: 8px; }
.crew-row { display: grid; grid-template-columns: 1fr 110px 110px 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 90px 90px 110px 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 600px) {
  .ticket-page .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* the Job field spans 2: never wider than the phone */
  .crew-row { grid-template-columns: 1fr 80px 80px 36px; }
  .item-row { grid-template-columns: 1fr 70px 70px 36px; }
  .item-row .cost { display: none; }
}
.sig-box { border: 2px dashed var(--stone-dark); border-radius: var(--radius); background: #fff; position: relative; touch-action: none; }
.sig-box canvas { width: 100%; height: 180px; display: block; }
.sig-box .clear { position: absolute; top: 6px; right: 6px; }
.sig-box .hint { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: var(--ink-light); pointer-events: none; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos .ph { position: relative; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--stone-dark); }
.photos .ph button { position: absolute; top: -8px; right: -8px; background: var(--brand); color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }
.sticky-submit { position: fixed; left: 0; right: 0; bottom: 0; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-top: 1px solid rgba(28,28,27,.07); box-shadow: var(--glass-edge); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; z-index: 20; }
.sticky-submit .btn { flex: 1; max-width: 420px; }
.banner { background: var(--amber-light); color: var(--amber); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.banner.ok { background: var(--green-light); color: var(--green); }
.status-sel { min-width: 132px; min-height: 34px; font-size: 13px; font-weight: 600; padding: 4px 8px; }

/* ---------- hub board (kanban) ---------- */
.badge.late-badge { background: var(--brand); color: #fff; }
.home-header { flex-wrap: wrap; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.lane { background: rgba(28,28,27,.045); border-radius: var(--radius-lg); padding: 10px; min-height: 160px; }
.lane header h3 { display: flex; align-items: center; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mid); }
.lane header p { margin: 2px 0 10px; font-size: 12px; color: var(--ink-light); }
.lane .count { background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--ink); }
.lane-fresh { background: var(--brand-light); }
.lane-fresh .count { background: var(--brand); color: #fff; }
.kcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.kcard:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.kcard.hot { border-left: 4px solid var(--brand); }
.kc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.kc-title { font-weight: 600; margin: 4px 0 2px; font-size: 14px; }
.kc-sub { font-size: 12px; color: var(--ink-light); line-height: 1.35; }
.kc-empty { font-size: 12px; color: var(--ink-light); text-align: center; padding: 18px 0; }
@media (max-width: 860px) { .kanban { grid-template-columns: repeat(5, 240px); } }
.badge.building { background: var(--amber-light); color: var(--amber); }

/* ---------- global search (assets/search.js; Hub home dropdown + /apps/search/ inline) ---------- */
.gsearch { position: relative; }
.gsearch-box { position: relative; display: flex; align-items: center; }
.gsearch-icon { position: absolute; left: 12px; font-size: 20px; color: var(--ink-light); pointer-events: none; }
.gsearch.loading .gsearch-icon { animation: gsearch-spin 1s linear infinite; }
@keyframes gsearch-spin { to { transform: rotate(360deg); } }
.gsearch-input { padding-left: 40px; padding-right: 40px; min-height: 46px; border-radius: var(--radius-lg); }
.gsearch-input::-webkit-search-cancel-button, .gsearch-input::-webkit-search-decoration { -webkit-appearance: none; }
.gsearch-clear { position: absolute; right: 6px; border: 0; background: none; color: var(--ink-light); cursor: pointer; font-size: 18px; padding: 8px; line-height: 1; border-radius: 50%; }
.gsearch-clear:hover { color: var(--ink); background: var(--stone-mid); }
.gsearch-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: rgba(255,255,255,.9); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), var(--glass-edge); max-height: min(70vh, 640px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gsearch-inline .gsearch-panel { position: static; margin-top: 14px; max-height: none; box-shadow: none; overflow: visible; }
.gsearch-summary { padding: 10px 14px 4px; font-size: 12px; color: var(--ink-light); }
.gsearch-group { padding: 4px 0 8px; border-bottom: 1px solid var(--stone-mid); }
.gsearch-group:last-of-type { border-bottom: 0; }
.gsearch-ghead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mid); }
.gsearch-count { background: var(--stone-mid); color: var(--ink-mid); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.gsearch-hit { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.gsearch-hit:hover, .gsearch-hit.active { background: var(--stone); border-left-color: var(--brand); }
.gsearch-hit.active { outline: 0; }
.gsearch-title { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.gsearch-sub { font-size: 12px; color: var(--ink-light); line-height: 1.4; margin-top: 1px; overflow-wrap: anywhere; }
.gsearch mark { background: #FFF1A8; color: inherit; border-radius: 2px; padding: 0 1px; }
.gsearch-more { padding: 4px 14px 6px; font-size: 12px; color: var(--ink-light); font-style: italic; }
.gsearch-empty { padding: 22px 14px; text-align: center; color: var(--ink-light); font-size: 14px; }
.gsearch-empty.bad { color: var(--brand); }
.gsearch-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--stone-mid); text-decoration: none; }
.gsearch-all:hover { background: var(--stone); }
.gsearch-tips { font-size: 12px; margin: 10px 0 0; }
.gsearch-tips kbd { font: 11px var(--font); background: var(--stone-mid); border: 1px solid var(--stone-dark); border-radius: 4px; padding: 1px 5px; }
@media (max-width: 600px) {
  .gsearch-panel { max-height: 65vh; }
  .gsearch-hit { padding: 10px 12px; }
  .gsearch-ghead { padding-left: 12px; }
  .gsearch-tips { display: none; }
}

/* ================================================================ dark liquid glass shell (2026-10-27)
   A floating black glass sidebar (Tassia: black, not grey) on every page (Hub home and every office app): FUSE's real logo centred on
   top, the nav as soft glass pills. On phones it becomes a glass drawer opened from a dark glass top bar (common.js
   enhanceShell() adds the bar, the backdrop and the avatar). Glass is for navigation only; content stays solid white. */
.shell { grid-template-columns: 268px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); margin: 12px 0 12px 12px;
  display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding: 22px 10px 12px; color: #fff;
  background: linear-gradient(180deg, #141413, #0A0A09);
  -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.12), 0 16px 40px rgba(28,28,27,.22);
}
/* specular rim: the edge catches light at the top-left and bottom-right, like Apple's Liquid Glass */
.sidebar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.06) 30%, rgba(255,255,255,0) 60%, rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.sidebar .logo { display: block; width: 196px; max-width: calc(100% - 24px); margin: 6px auto 24px; }
/* Mirror shine: a band of light sweeps across the logo every few seconds, like light on stainless steel. The band is
   masked by the logo file itself, so it only lights the letters. */
.sidebar .logo-link { position: relative; display: block; width: 196px; max-width: calc(100% - 24px); margin: 6px auto 24px; }
.sidebar .logo-link .logo { width: 100%; max-width: none; margin: 0; }
.sidebar .logo-link::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 46%, #fff 50%, rgba(255,255,255,.55) 54%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url(/assets/fuse-logo-white.svg) center / 100% 100% no-repeat; mask: url(/assets/fuse-logo-white.svg) center / 100% 100% no-repeat;
  animation: logo-shine 6s ease-in-out 1s infinite; }
.sidebar .logo-link:hover::after { animation-duration: 1.6s; }
@keyframes logo-shine { 0% { background-position: 120% 0; } 30%, 100% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .sidebar .logo-link::after { animation: none; } }
/* The system's name under the logo on each app page: FUSE red on the black glass, easy to read. */
.sidebar > div[style*="uppercase"] { margin: -14px 12px 16px !important; color: #FF7B71 !important; font-size: 12px !important; font-weight: 700; letter-spacing: .1em !important; text-align: center; }
.sidebar nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px 6px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar nav:hover { scrollbar-color: rgba(255,255,255,.18) transparent; }
/* Menu items: bright enough to read at a glance (Tassia 2026-10-28: the old greys were hard to see), the page you
   are on marked with a red bar on the left and a red icon. */
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 1px 0; font-size: 14.5px; font-weight: 500;
  color: #ECEAE5; text-decoration: none; border-radius: 12px; transition: background .15s, color .15s, box-shadow .15s; }
.sidebar nav a i { font-size: 19px; width: 22px; text-align: center; color: #C2BFB8; transition: color .15s; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar nav a:hover i { color: #fff; }
.sidebar nav a.active, .sidebar nav a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 8px rgba(0,0,0,.18); }
.sidebar nav a.active::before, .sidebar nav a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #FF5A4F; box-shadow: 0 0 8px rgba(255, 90, 79, .6); }
.sidebar nav a.active i, .sidebar nav a.on i { color: #FF6B60; }
/* Group titles (Jobs & money, Sales…): light-pink bold letters like "You're in", a short glowing red bar before them and
   a thin rule to the edge (Tassia 2026-11-03: the old red titles looked faded). */
.sidebar nav .nav-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #FFC9C4; padding: 20px 12px 7px; }
.sidebar nav .nav-label::before { content: ""; width: 4px; height: 15px; flex: none; border-radius: 4px;
  background: linear-gradient(180deg, #FF6B5F, #C8322A); box-shadow: 0 0 8px rgba(255,90,78,.7); }
.sidebar nav .nav-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,201,196,.3), rgba(255,201,196,0)); }
.sidebar nav .nav-label:first-child { padding-top: 6px; }
.sidebar nav .nav-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; line-height: 16px; }
.sidebar nav .nav-badge.zero { background: rgba(255,255,255,.08); color: #A9A7A2; }
.sidebar .foot { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; font-size: 13px; color: #E8E6E1; }
.sidebar .foot .avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #E0483F, var(--brand-dark)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.25); }
.sidebar .foot button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: #A9A7A2; text-decoration: none; cursor: pointer; }
.sidebar .foot button:hover { color: #fff; }
.main { padding: 28px 34px 64px; }

/* phone / small tablet: dark glass top bar + glass drawer */
.mtop { display: none; }
.shell-backdrop { display: none; }
@media (max-width: 860px) {
  /* Rows: the top bar, then the page (the sidebar is a fixed drawer here). Without them a short page split the free
     height between both rows and the bar grew to half the screen. */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .shell:has(> .sidebar.hidden) { grid-template-rows: 1fr; }
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 35; min-height: 58px; padding: env(safe-area-inset-top) 12px 0;
    background: rgba(12,12,11,.96); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); color: #fff; }
  .mtop button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
  .mtop img { display: block; height: 24px; }
  .mtop .mtitle { font-size: 14px; font-weight: 600; color: #D9D7D2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shell:has(> .sidebar.hidden) .mtop { display: none; }
  .sidebar { position: fixed; z-index: 45; left: 10px; top: calc(10px + env(safe-area-inset-top)); bottom: 10px; width: min(290px, calc(100vw - 48px)); height: auto; margin: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 22px 10px 12px;
    background: linear-gradient(180deg, #141413, #0A0A09);
    transform: translateX(calc(-100% - 20px)); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s; }
  .sidebar nav { display: block; }
  .sidebar nav a { padding: 11px 12px; }
  .sidebar .foot { margin: auto 0 0; }
  .sidebar .logo { width: 196px; max-width: calc(100% - 24px); margin: 6px auto 24px; }
  .sidebar .logo-link .logo { width: 100%; max-width: none; margin: 0; }
  .shell.nav-open .sidebar { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.4); }
  .shell.nav-open .shell-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(28,28,27,.3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .main { padding: 18px 16px 48px; }
}

/* Upright monitor (Tassia 2026-11-10: Ronnie turns his PC screen upright, sometimes wide): "Flip view" on every page
   (common.js). Upright = the sidebar becomes the thin top bar + ☰ drawer of the phone layout, so the page gets the
   full width; the page itself keeps desktop sizes. */
  /* Rows: the top bar, then the page (the sidebar is a fixed drawer here). Without them a short page split the free
     height between both rows and the bar grew to half the screen. */
  html.upright .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  html.upright .shell:has(> .sidebar.hidden) { grid-template-rows: 1fr; }
  html.upright .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 35; min-height: 58px; padding: env(safe-area-inset-top) 12px 0;
    background: rgba(12,12,11,.96); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); color: #fff; }
  html.upright .mtop button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
  html.upright .mtop img { display: block; height: 24px; }
  html.upright .mtop .mtitle { font-size: 14px; font-weight: 600; color: #D9D7D2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.upright .shell:has(> .sidebar.hidden) .mtop { display: none; }
  html.upright .sidebar { position: fixed; z-index: 45; left: 10px; top: calc(10px + env(safe-area-inset-top)); bottom: 10px; width: min(290px, calc(100vw - 48px)); height: auto; margin: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 22px 10px 12px;
    background: linear-gradient(180deg, #141413, #0A0A09);
    transform: translateX(calc(-100% - 20px)); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s; }
  html.upright .sidebar nav { display: block; }
  html.upright .sidebar nav a { padding: 11px 12px; }
  html.upright .sidebar .foot { margin: auto 0 0; }
  html.upright .sidebar .logo { width: 196px; max-width: calc(100% - 24px); margin: 6px auto 24px; }
  html.upright .sidebar .logo-link .logo { width: 100%; max-width: none; margin: 0; }
  html.upright .shell.nav-open .sidebar { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.4); }
  html.upright .shell.nav-open .shell-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(28,28,27,.3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  html.upright .main { padding: 18px 16px 48px; }
html.upright .main { padding: 18px 26px 48px; }

.flip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 600 13px var(--font); color: var(--ink); border: 1px solid var(--line, #E6E2DC); background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08)); white-space: nowrap; }
.flip-btn:hover { border-color: #C8322A; }
.flip-btn i { font-size: 16px; color: #C8322A; }
.mtop .flip-btn { margin-left: auto; height: 36px; color: #EDEBE7; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.mtop .flip-btn i { color: #FF7B71; }
.home-hero .flip-btn { align-self: flex-start; }
@media (max-width: 860px) { .flip-btn { display: none; } }

/* ================================================================ Hub home */
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.home-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.home-hero .date { color: var(--ink-light); font-size: 14px; margin-top: 4px; }
/* Waiting on Ronnie: a quiet white pill at the top of the home with a small red light blinking in its corner
   while something waits on this admin (Tassia 2026-11-08: "mais clean, uma bolinha piscando no canto"). */
.asks-call { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink, #1C1C1B); background: #fff; border: 1px solid var(--line, #E6E2DC); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08)); position: relative; }
.asks-call > .ti:first-child { font-size: 18px; color: #C8322A; }
.asks-call > .ti:last-child { font-size: 16px; color: var(--ink-light, #8A8883); }
.asks-call span { font-size: 14px; }
.asks-call span b { color: #C8322A; margin-right: 2px; }
.asks-call small { display: none; }
.asks-call:hover { border-color: #C8322A; }
.asks-call::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: #E0322A; border: 2px solid #fff; animation: asks-blink 1.4s ease-in-out infinite; }
@keyframes asks-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224, 50, 42, .55); }
  50% { opacity: .35; box-shadow: 0 0 0 6px rgba(224, 50, 42, 0); }
}
@media (prefers-reduced-motion: reduce) { .asks-call::after { animation: none; } }
.home-search { margin-bottom: 22px; }
.home-search .gsearch-input { min-height: 52px; font-size: 16px; border-radius: 16px; border-color: var(--line); background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }
.today { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
.today a { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s; }
.today a:hover { border-color: rgba(200,50,42,.35); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.today .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; color: #3B4045;
  border: 1px solid transparent; background: url("steel.jpg") center / 200px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal; text-shadow: 0 1px 0 rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.12), 0 6px 12px -8px rgba(0,0,0,.45); }
.today .ic, .today .hot .ic { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.22); border-color: rgba(255,255,255,.2);
  background: linear-gradient(135deg, #F08A82 0%, #C8322A 32%, #E35A51 56%, #A82820 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 4px 10px rgba(200,50,42,.3); }
.today .n { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.today .t { font-size: 13px; color: var(--ink-light); margin-top: 4px; }
.sys-group { margin-bottom: 28px; }
/* Group titles on the home page in FUSE red (Tassia 2026-10-28), the rule after them a faint red. */
.sys-group > h2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 12px; }
.sys-group > h2::after { content: ""; flex: 1; height: 1px; background: rgba(200,50,42,.18); }
/* App tiles: a big icon on a soft tile and the name in capitals. What the system does is under "⋯" (and the tooltip). */
.sys-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
.sys-card { position: relative; display: flex; min-height: 196px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .2s, transform .2s; }
.sys-card:not(.soon):hover { border-color: rgba(200,50,42,.35); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.sys-open { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px 14px 22px;
  text-align: center; color: var(--ink); text-decoration: none; border-radius: inherit; }
.sys-open:focus-visible { outline: 3px solid rgba(200,50,42,.35); outline-offset: 2px; }
/* The tile is a machined stainless piece with the icon printed in FUSE red. When the home opens, a band of light
   crosses the tiles one after the other (--i, set in hub.js), and again on the tile under the pointer. */
.sys-card .tile { position: relative; isolation: isolate; width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; font-size: 42px; color: var(--brand);
  border: 2px solid transparent;
  background: url("steel.jpg") center / 260px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -2px 3px rgba(0,0,0,.22), 0 1px 0 rgba(0,0,0,.16), 0 12px 20px -12px rgba(0,0,0,.55);
  transition: transform .2s; }
.sys-card .tile i { text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 -1px 0 rgba(0,0,0,.12); }
.sys-card .tile::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 58%) 100% 0 / 300% 100% no-repeat;
  animation: tile-shine 1.3s cubic-bezier(.45,0,.2,1) calc(.3s + var(--i, 0) * 70ms) both; }
.sys-card:not(.soon):hover .tile::after { animation: tile-shine-again .9s cubic-bezier(.45,0,.2,1) both; }
@keyframes tile-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes tile-shine-again { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sys-card:not(.soon):hover .tile { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .sys-card .tile::after { animation: none !important; } .btn { transition: none; } }
.sys-card h3 { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; }
.sys-card .tile-badge { position: absolute; z-index: 2; top: -6px; right: -8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff;
  font: 700 12px/20px var(--font); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(200,50,42,.35); }
.sys-more { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px;
  background: none; color: var(--ink-light); font-size: 18px; cursor: pointer; transition: background .15s, color .15s; }
.sys-more:hover, .sys-more[aria-expanded="true"] { background: var(--stone-mid); color: var(--ink); }
.sys-card.soon { background: rgba(255,255,255,.55); box-shadow: none; }
.sys-card.soon .tile { background: var(--stone-mid); color: var(--ink-light); box-shadow: none; } /* not machined yet */
.sys-card.soon .tile i { text-shadow: none; }
.sys-card.soon .tile::after { content: none; }
.sys-card.soon h3 { color: var(--ink-light); }
.sys-card.soon .badge.building { margin-top: -8px; }
/* "⋯" popover: what the system does + Open */
.sys-pop { position: fixed; z-index: 41; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,.8); box-shadow: var(--glass-edge), 0 16px 40px rgba(28,28,27,.16); }
.sys-pop b { display: block; font-size: 14px; margin-bottom: 6px; }
.sys-pop p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--ink-mid); }
.sys-pop .btn { width: 100%; }
@media (max-width: 640px) {
  .home-hero h1 { font-size: 23px; }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sys-card { min-height: 150px; border-radius: 16px; }
  .sys-open { gap: 12px; padding: 24px 10px 16px; }
  .sys-card .tile { width: 64px; height: 64px; border-radius: 18px; font-size: 31px; }
  .sys-card .tile::after { border-radius: 16px; }
  .sys-card h3 { font-size: 12px; }
  .today { grid-template-columns: 1fr 1fr; }
}
#hubView { max-width: 1360px; }

/* ================================================================ Hub home — the owner's brief (assets/brief.js) */
.brief { margin-bottom: 28px; }
.brief-note { padding: 10px 0 18px; font-size: 13px; }
.brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.brief-head h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.brief-head .muted { font-size: 13px; }
.brief-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 14px; }
.kpi { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); min-width: 0; transition: border-color .15s, box-shadow .2s, transform .2s; }
.kpi:hover { border-color: rgba(200,50,42,.35); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.kpi .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex: none; color: #3B4045; border: 1px solid transparent;
  background: url("steel.jpg") center / 200px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box; background-blend-mode: overlay, normal, normal;
  text-shadow: 0 1px 0 rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.12), 0 6px 12px -8px rgba(0,0,0,.45); }
.kpi .ic, .kpi.hot .ic { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.22); border-color: rgba(255,255,255,.2);
  background: linear-gradient(135deg, #F08A82 0%, #C8322A 32%, #E35A51 56%, #A82820 100%) border-box; box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 4px 10px rgba(200,50,42,.3); }
.kpi .body { min-width: 0; }
.kpi .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-light); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 700; line-height: 1.1; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .s { font-size: 12.5px; color: var(--ink-light); margin-top: 4px; line-height: 1.35; }
.kpi .s b { color: var(--brand); font-weight: 600; }
.kpi .d { display: block; font-size: 12px; color: var(--ink-light); margin-top: 5px; }
.kpi .d .ti { font-size: 13px; vertical-align: -2px; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.brief-grid .panel { margin: 0; padding: 16px 18px; }
.brief-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.brief-ph h3 { font-size: 15px; font-weight: 700; }
.brief-ph h3 .muted { font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.pill-tabs.small button { padding: 4px 11px; font-size: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--ink-light); }
.chart text.val { font-weight: 700; fill: var(--ink); }
.chart .grid line { stroke: var(--stone-mid); stroke-width: 1; }
.chart rect.hit { fill: transparent; cursor: default; }
.chart g.bar:hover rect.m { opacity: .82; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-light); margin-top: 6px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.tip { position: fixed; pointer-events: none; background: #1C1C1B; color: #fff; font-size: 12px; line-height: 1.4; padding: 7px 9px; border-radius: 8px; z-index: 60; white-space: pre; box-shadow: var(--shadow-lg); }
.needs { display: flex; flex-direction: column; }
.need { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 16px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--stone-mid);
  text-decoration: none; color: var(--ink); font-size: 13.5px; }
.need:last-child { border-bottom: 0; }
.need:hover b { text-decoration: underline; }
.need > .ti:first-child { font-size: 18px; }
.need.red > .ti:first-child { color: var(--brand); }
.need.amber > .ti:first-child { color: var(--amber); }
.need.blue > .ti:first-child { color: #2a78d6; }
.need .t { min-width: 0; line-height: 1.3; }
.need .t .who { color: var(--ink-light); }
.need .t .muted { font-size: 12px; }
.need .age { font-size: 12px; color: var(--ink-light); white-space: nowrap; }
.need .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.need .go { color: var(--stone-dark); font-size: 16px; }
.brief-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.brief-needs .empty { padding: 26px 0 18px; }
.brief-needs .empty .ti { color: var(--green); font-size: 24px; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brief-head .aq-check { white-space: nowrap; }
.brief-head .aq-check .ti { font-size: 14px; vertical-align: -2px; }
.brief-head .aq-check.off { color: var(--brand); font-weight: 600; }
/* Under the chart: who owes us / quotes expiring (follows the Billed / Quoted pill) */
.brief-chart .under { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--stone-mid); }
.brief-chart .under h4 { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.brief-chart .under h4 .muted { font-weight: 500; font-size: 12px; }
.brief-chart .under h4 a { margin-left: auto; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brief-chart .under h4 a .ti { font-size: 12px; vertical-align: -1px; }
.brief-chart .under table { width: 100%; border-collapse: collapse; font-size: 13px; }
.brief-chart .under th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-light); font-weight: 600; text-align: left; padding: 4px 0; border-bottom: 1px solid var(--stone-mid); }
.brief-chart .under td { padding: 6px 0; border-bottom: 1px solid var(--stone-mid); vertical-align: top; }
.brief-chart .under tr:last-child td { border-bottom: 0; }
.brief-chart .under th.n, .brief-chart .under td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.brief-chart .under td.bad { color: var(--brand); font-weight: 600; }
.brief-chart .under td a { text-decoration: none; color: var(--ink); font-weight: 600; }
.brief-chart .under td a:hover { text-decoration: underline; }
/* The Advisor: Claude's reading of today's numbers (assets/brief.js mountAdvisor) */
.brief-advisor { margin: 0 0 14px; padding: 16px 18px; }
.brief-advisor .brief-ph h3 { display: flex; align-items: center; gap: 9px; }
.adv-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex: none; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.2); background: linear-gradient(135deg, #F08A82 0%, #C8322A 32%, #E35A51 56%, #A82820 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 3px 8px rgba(200,50,42,.28); }
.adv-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adv-mood { font-size: 12.5px; font-weight: 600; color: var(--ink-light); display: inline-flex; align-items: center; gap: 5px; }
.adv-mood .ti { font-size: 10px; }
.adv-mood.good .ti { color: var(--green); } .adv-mood.ok .ti { color: var(--amber); } .adv-mood.tight .ti { color: var(--brand); }
.adv-wait { padding: 6px 0 2px; font-size: 13px; }
.adv-head { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 2px 0 12px; max-width: 70ch; letter-spacing: -.005em; }
.adv-points { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.adv-point { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #FAFAF9; text-decoration: none; color: var(--ink);
  min-width: 0; transition: border-color .15s, box-shadow .2s, transform .2s; }
.adv-point:hover { border-color: rgba(200,50,42,.35); box-shadow: var(--shadow-sm); transform: translateY(-1px); background: #fff; }
.adv-point > .ti { font-size: 19px; flex: none; margin-top: 1px; color: #3B4045; }
.adv-point.cash > .ti { color: var(--brand); } .adv-point.sales > .ti { color: #2a78d6; } .adv-point.orders > .ti { color: var(--amber); } .adv-point.field > .ti { color: var(--green); }
.adv-point .t { min-width: 0; line-height: 1.35; font-size: 13.5px; }
.adv-point .t b { display: block; font-size: 14px; margin-bottom: 2px; }
.adv-point .t .muted { font-size: 12.5px; }
.adv-point .act { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.adv-point .act .ti { font-size: 13px; vertical-align: -2px; }
.adv-watch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; }
.adv-watch b { color: var(--ink-light); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.adv-watch span { background: #F3F1EC; border: 1px solid var(--stone-mid); border-radius: 999px; padding: 4px 10px; line-height: 1.3; }
.adv-foot { margin-top: 10px; font-size: 12px; }
@media (max-width: 1000px) { .brief-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .brief-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .d { display: none; }
  .kpi { padding: 12px; gap: 10px; border-radius: 16px; }
  .kpi .ic { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
  .kpi .v { font-size: 20px; }
  .need { grid-template-columns: 20px minmax(0, 1fr) auto 14px; }
  .need .age { display: none; }
  .brief-advisor { padding: 14px; }
  .brief-chart .under th:nth-child(2), .brief-chart .under td:nth-child(2), .brief-chart .under th:nth-child(5), .brief-chart .under td:nth-child(5) { display: none; }
  .brief-chart .under h4 { flex-wrap: wrap; }
  .brief-chart .under h4 .muted { display: none; }
  .brief-head .aq-check { white-space: normal; }
  .adv-head { font-size: 15.5px; }
  .adv-points { grid-template-columns: 1fr; }
  .adv-tools { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) { .brief-kpis { grid-template-columns: 1fr; } .kpi .d { display: block; } }

/* "How to use this" (common.js addHelpLink): the link to the page's handbook in Training, above the sidebar footer;
   on field pages a round "?" at the end of the header. */
.sidebar .help-link { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 6px 0 4px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  color: #FFB3AD; text-decoration: none; background: rgba(200,50,42,.14); border: 1px solid rgba(255,123,113,.18); transition: background .15s, color .15s; }
.sidebar .help-link i { font-size: 19px; width: 22px; text-align: center; }
.sidebar .help-link:hover { background: rgba(200,50,42,.28); color: #fff; }
.home-header .help-q { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 20px;
  color: var(--brand); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.home-header .help-q:hover { border-color: var(--brand); }
.home-header .hq { display: flex; gap: 8px; flex: none; }
/* Phones: Home + "?" sit right after the logo, a little smaller, so logo + buttons + the page's tabs stay on one row. */
@media (max-width: 520px) {
  .home-header:has(.hq) { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .home-header:has(.hq) .logo { width: 96px; }
  .home-header .hq { order: 1; gap: 6px; margin-right: auto; }
  .home-header .help-q { width: 32px; height: 32px; font-size: 18px; }
  .home-header:has(.hq) > :not(.hq):not(:first-child) { order: 2; min-width: 0; }
}
/* "← Home" in the top right corner of every office page, above the page's own buttons (common.js addHomeCrumb). */
.nav-crumbs { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 12px; }
.home-crumb { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-family: inherit; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-mid); text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s; }
.home-crumb i { font-size: 16px; }
.home-crumb:hover { color: var(--brand); border-color: var(--brand); }
.shell:has(> .sidebar.hidden) .nav-crumbs { display: none; }
.back-crumb.hidden, .back-q.hidden { display: none; }
/* "Search this list" over long tables (common.js addListSearch). */
.list-search { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0 12px; height: 40px; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.list-search .ti { color: var(--ink-mid); font-size: 17px; }
.list-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; padding: 0; height: 38px; font-size: 14px; }
.list-search .ls-count { font-size: 12px; color: var(--ink-mid); white-space: nowrap; }
@media print { .list-search { display: none; } }
@media print { .sidebar .help-link, .home-header .hq, .home-crumb, .nav-crumbs { display: none; } }

/* The handbook drawer (assets/helpdrawer.js): slides in from the right over any page; on phones it rises from the
   bottom as a sheet. A red dot on "How to use this" / "?" until it was opened once on this page (common.js). */
.help-link.fresh, .help-q.fresh { position: relative; }
.help-link.fresh::after, .help-q.fresh::after { content: ""; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #FF5A4F; box-shadow: 0 0 0 0 rgba(255,90,79,.6); animation: help-ping 2s ease-out infinite; }
.help-q.fresh::after { top: -1px; right: -1px; border: 2px solid #fff; }
@keyframes help-ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255,90,79,0); } }
@media (prefers-reduced-motion: reduce) { .help-link.fresh::after, .help-q.fresh::after { animation: none; } }

.hd-back { position: fixed; inset: 0; z-index: 80; background: rgba(12,12,11,0); transition: background .25s; }
.hd-back.on { background: rgba(12,12,11,.38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.hd { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); background: #fff; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(12,12,11,.30); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.hd-back.on .hd { transform: none; }
.hd-top { display: flex; gap: 12px; align-items: center; padding: 16px 16px 14px; background: linear-gradient(180deg, #141413, #0A0A09); color: #fff; }
.hd-tile { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 23px; color: #fff; background: var(--red-metal); }
.hd-grow { flex: 1; min-width: 0; }
.hd-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FF7B71; }
.hd-top h2 { font-size: 18px; margin-top: 2px; color: #fff; }
.hd-x { width: 36px; height: 36px; flex: none; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff; font-size: 19px; cursor: pointer; display: grid; place-items: center; }
.hd-x:hover { background: rgba(255,255,255,.16); }
.hd-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 10px; -webkit-overflow-scrolling: touch; }
.hd-what { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-mid); }
.hd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 12px; border-radius: 14px; background: var(--stone); margin-bottom: 18px; }
.hd-f { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.hd-f span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--brand); font-size: 14px; }
.hd-arr { color: var(--stone-dark); font-size: 14px; }
.hd-roles { margin-bottom: 12px; }
.hd-where { display: flex; gap: 8px; font-size: 13px; color: var(--ink-mid); padding: 9px 12px; border: 1px dashed var(--stone-dark); border-radius: 10px; margin-bottom: 14px; }
.hd-where i { font-size: 17px; color: var(--ink); }
.hd-steps { list-style: none; margin: 0 0 6px; padding: 0; counter-reset: s; }
.hd-steps li { position: relative; padding: 0 0 14px 44px; }
.hd-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red-metal); color: #fff; font-weight: 800; font-size: 13.5px; display: grid; place-items: center; }
.hd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.hd-t { font-weight: 700; font-size: 14.5px; display: flex; gap: 7px; align-items: center; padding-top: 5px; }
.hd-t i { color: var(--ink-light); font-size: 16px; }
.hd-d { font-size: 13.5px; line-height: 1.5; color: var(--ink-mid); margin-top: 2px; }
.hd-key { display: inline-block; font: 700 12px var(--font); padding: 0 7px; border-radius: 6px; background: var(--stone); border: 1px solid var(--stone-dark); border-bottom-width: 2px; color: var(--ink); white-space: nowrap; }
.hd-h { display: flex; gap: 7px; align-items: center; font-size: 14px; margin: 8px 0 10px; }
.hd-h i { color: var(--brand); font-size: 18px; }
.hd-tip { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--stone); font-size: 13px; line-height: 1.45; color: var(--ink-mid); margin-bottom: 8px; }
.hd-tip i { font-size: 17px; color: var(--blue); flex: none; }
.hd-tip.warn { background: var(--amber-light); color: #6A4508; }
.hd-tip.warn i { color: var(--amber); }
.hd-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.hd-foot .btn { width: 100%; }
@media (max-width: 600px) {
  .hd { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .hd, .hd-back { transition: none; } }
@media print { .hd-back { display: none; } }

/* Inside a system (common.js systemTag): smaller logo + a "You're in" block, so it never looks like the Hub home. */
/* Only the link box shrinks; the logo inside stays 100% of it (a margin on it stretched the shine mask: a ghost logo). */
.sidebar.in-system .logo-link, .sidebar.in-system > a:not(.logo-link) > .logo { width: 128px; margin: 2px auto 14px; }
.sys-tag { display: flex; align-items: center; gap: 11px; margin: 0 4px 16px; padding: 11px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(200,50,42,.30), rgba(200,50,42,.12)); border: 1px solid rgba(255,123,113,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.sys-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 21px; color: #fff;
  background: linear-gradient(180deg, #E0453C, #A02620); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 6px rgba(0,0,0,.35); }
.sys-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sys-txt small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFB3AD; }
.sys-txt b { font-size: 15.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sys-home { display: flex; align-items: center; gap: 10px; margin: -6px 4px 14px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  color: #D9D7D2; text-decoration: none; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); transition: background .15s, color .15s; }
.sys-home i { font-size: 17px; }
.sys-home:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar.in-system nav a[href="/"] { display: none; }

/* ---------------------------------------------------------------- drop files here (assets/jobfiles.js) */
.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 10px 0 14px; border: 2px dashed #cfcac2;
  border-radius: 14px; background: #faf8f5; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone > .ti { font-size: 34px; color: var(--brand, #C8322A); }
.dropzone b { font-size: 15px; }
.dropzone .muted { font-size: 12.5px; margin-top: 2px; }
.dropzone:hover, .dropzone.dz-over { border-color: var(--brand, #C8322A); background: #fff3f1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; } /* room under a panel's button (Tassia 2026-11-10: "colado demais") */
.panel-head h2 { margin: 0; }
.folder-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ftile { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line, #e6e2dc); border-radius: 11px;
  background: #fff; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.ftile b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftile span { font-size: 12px; color: #8a847b; }
.ftile .ti { color: #8a847b; font-size: 17px; }
.ftile.on { border-color: var(--brand, #C8322A); box-shadow: 0 0 0 1px var(--brand, #C8322A) inset; }
.ftile.on .ti { color: var(--brand, #C8322A); }
.ftile.dz-over { border-color: var(--brand, #C8322A); background: #fff3f1; }
table.files select { padding: 4px 6px; font-size: 13px; }
@media (max-width: 600px) { .dropzone { padding: 14px; } .dropzone > .ti { font-size: 28px; } }

/* The GC's PO read by AI (assets/poread.js): boxes the AI filled are yellow until the office checks them. */
input.ai-filled { background: #FFF7E0; border-color: #E6B94B; }
.po-ai { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #FFFBEF; border: 1px solid #F0DDA8; font-size: 13.5px; display: grid; gap: 4px; }

/* NEW tag on the home tiles and the sidebar for systems added after the 2026-11-05 meeting (hub.js NEW_UNTIL). */
.sys-card .tile-new { position: absolute; z-index: 2; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #E0453C, #A02620); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; }
.nav-new { margin-left: auto; padding: 1px 6px; border-radius: 999px; background: #C8322A; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; }
.app-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; max-height: 300px; overflow: auto; }
.app-checks .check { font-size: 13.5px; margin: 3px 0; }

/* ---------------------------------------------------------------- Hub Request (assets/requests.js) */
.hr-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 900; width: 60px; height: 60px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #3C3C3A, #121211 70%); box-shadow: 0 8px 22px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 2px rgba(255,255,255,.7);
  transition: transform .18s ease; }
.hr-fab:hover { transform: translateY(-2px) scale(1.04); }
.hr-fab img { width: 44px; height: 44px; pointer-events: none; }
.hr-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 700px) { .hr-fab { width: 52px; height: 52px; bottom: calc(86px + env(safe-area-inset-bottom)); right: 12px; } .hr-fab img { width: 38px; height: 38px; } }
@media print { .hr-fab, .hr-panel { display: none !important; } }
.hr-panel { position: fixed; right: 18px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 901; width: min(400px, calc(100vw - 24px));
  max-height: calc(100dvh - 120px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden;
  animation: hr-in .18s ease; }
@keyframes hr-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 700px) { .hr-panel { left: 0; right: 0; bottom: 0; width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.hr-head { display: flex; gap: 10px; align-items: center; padding: 12px 12px 10px 14px; background: linear-gradient(180deg, #232322, #141413); color: #fff; }
.hr-head img { width: 40px; height: 40px; }
.hr-head b { display: block; font-size: 16px; }
.hr-head span { font-size: 12.5px; color: #C9C7C2; }
.hr-head > div { flex: 1; }
.hr-x { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.hr-tabs { display: flex; border-bottom: 1px solid var(--line); }
.hr-tabs button { flex: 1; border: 0; background: none; padding: 10px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-light); cursor: pointer; border-bottom: 2px solid transparent; }
.hr-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.hr-body { padding: 12px 14px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.hr-kinds { display: flex; gap: 6px; }
.hr-kinds button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-mid); cursor: pointer; }
.hr-kinds button i { font-size: 20px; }
.hr-kinds button.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.hr-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; min-height: 96px; }
.hr-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hr-tools .btn { padding: 7px 12px; font-size: 13.5px; cursor: pointer; }
.hr-talk.rec { color: #fff; background: var(--brand); animation: hr-pulse 1.2s infinite; }
@keyframes hr-pulse { 50% { box-shadow: 0 0 0 6px rgba(200,50,42,.18); } }
.hr-hint { font-size: 12px; color: var(--ink-light); flex: 1 1 100%; }
.hr-audio { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hr-audio:empty, .hr-photos:empty { display: none; }
.hr-audio audio { height: 36px; max-width: 100%; }
.hr-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-photos > div { position: relative; }
.hr-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.hr-photos button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; cursor: pointer; }
.hr-where { font-size: 12.5px; color: var(--ink-mid); }
.hr-send { justify-content: center; padding: 11px; font-size: 15px; flex: 1; }
.hr-foot { display: flex; align-items: center; gap: 12px; }
.hr-over { font-size: 12.5px; color: var(--ink-mid); white-space: nowrap; }
.hr-empty { text-align: center; color: var(--ink-mid); padding: 26px 8px; font-size: 14px; }
.hr-empty i { display: block; font-size: 34px; color: var(--ink-light); margin-bottom: 6px; }
.hr-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.hr-item.fresh { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.hr-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.hr-st, .hr-kind { font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gray-light); color: var(--ink-mid); display: inline-flex; gap: 3px; align-items: center; }
.hr-st.working { background: var(--amber-light); color: var(--amber); }
.hr-st.ready { background: var(--blue-light); color: var(--blue); }
.hr-st.done { background: var(--green-light); color: var(--green); }
.hr-st.new { background: var(--brand-light); color: var(--brand); }
.hr-kind { background: none; border: 1px solid var(--line); font-weight: 700; }
.hr-when { margin-left: auto; color: var(--ink-light); }
.hr-txt { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.hr-files { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-mid); }
.hr-files img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.hr-pg { font-size: 12px; color: var(--ink-light); }
.hr-notes { display: flex; flex-direction: column; gap: 5px; }
.hr-note { font-size: 13px; line-height: 1.4; background: var(--blue-light); border-radius: 10px; padding: 6px 9px; white-space: pre-wrap; }
.hr-note.me { background: var(--stone); }
.hr-note span { display: block; font-size: 11px; color: var(--ink-light); }
.hr-add { display: flex; gap: 6px; }
.hr-add input { flex: 1; font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; }
.hr-add .btn { padding: 6px 10px; }
.hr-tools label.btn { text-transform: none; letter-spacing: normal; margin: 0; font-weight: 700; color: var(--ink); }
body:has(.hr-panel) .hr-fab { box-shadow: 0 0 0 3px var(--brand), 0 8px 22px rgba(0,0,0,.32); }
@media (max-width: 700px) { body:has(.hr-panel) .hr-fab { display: none; } }
/* Floating robot, no disc behind it (Tassia 2026-11-06): only the robot's own outline with a soft shadow. */
.hr-fab { width: 68px; height: 68px; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.hr-fab img { width: 68px; height: 68px; }
.hr-fab:hover { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.hr-dot { top: 4px; right: 6px; }
body:has(.hr-panel) .hr-fab { box-shadow: none; filter: drop-shadow(0 0 6px rgba(200,50,42,.8)) drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
@media (max-width: 700px) { .hr-fab { width: 58px; height: 58px; } .hr-fab img { width: 58px; height: 58px; } }
.hr-panel.hr-min { display: none; }
.hr-point { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 902; display: flex; gap: 10px; align-items: center;
  background: rgba(20,20,19,.92); color: #fff; padding: 9px 10px 9px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; font-weight: 600;
  max-width: calc(100vw - 24px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hr-point i { color: #FF6B60; font-size: 20px; }
.hr-point button { border: 0; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.hr-box { position: fixed; z-index: 899; pointer-events: none; border: 3px solid #E8372C; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.18), 0 0 14px rgba(232,55,44,.7); transition: all .08s; }
.hr-shot { position: relative; }
.hr-shot img { width: 96px !important; height: 64px !important; object-position: top; }
.hr-shot em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 5px; }
body:has(.hr-point) .hr-fab { display: none; }
/* The robot rises above a bar fixed to the bottom of the page (requests.js liftFab sets --hr-lift). */
.hr-fab { bottom: calc(var(--hr-lift, 18px) + env(safe-area-inset-bottom)); transition: transform .18s ease, bottom .2s ease; }
@media (max-width: 700px) { .hr-fab { bottom: calc(var(--hr-lift, 16px) + env(safe-area-inset-bottom)); } }
.hr-point { width: max-content; white-space: nowrap; }

/* Advisor as a steel cockpit (2026-11-07, Tassia picked "A"): brushed-steel plate, a black hero block with the number that
   matters, one ring per point (fill = urgency 1–5), the action under it; the detail is the tooltip. */
.brief-advisor.adv-x { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px 14px; border: 1px solid #B9BDC2; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%), repeating-linear-gradient(90deg, #D9DCDF 0 2px, #CDD1D5 2px 3px, #E1E3E6 3px 5px), #D4D7DA;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 20px 40px -22px rgba(0,0,0,.35); }
.adv-x::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: advShine 9s ease-in-out 1.2s infinite; }
@keyframes advShine { 0%, 82% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.adv-x .adv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; position: relative; z-index: 1; }
.adv-x .adv-brand { display: flex; align-items: center; gap: 9px; }
.adv-x .adv-brand b { font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.adv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5B5F63; }
.adv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(200,50,42,.6); animation: advPulse 2s infinite; }
@keyframes advPulse { 70% { box-shadow: 0 0 0 7px rgba(200,50,42,0); } 100% { box-shadow: 0 0 0 0 rgba(200,50,42,0); } }
.adv-x .adv-tools { display: flex; align-items: center; gap: 10px; }
.adv-stamp { font-size: 11.5px; color: #5B5F63; }
.adv-again { font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); background: linear-gradient(180deg, #fff, #E4E6E9); border: 1px solid #AEB3B9; border-radius: 999px;
  padding: 5px 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12); }
.adv-again:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); } .adv-again:disabled { opacity: .5; cursor: default; }
.adv-x .adv-wait { color: #5B5F63; font-size: 13px; padding: 4px 0 6px; position: relative; z-index: 1; }
.adv-row { display: grid; grid-template-columns: minmax(250px, 1.35fr) repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.adv-hero { background: #141413; color: #fff; border-radius: 16px; padding: 16px 18px; display: grid; align-content: start; gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px -12px rgba(0,0,0,.5); background-image: radial-gradient(90% 90% at 0% 0%, rgba(200,50,42,.35), transparent 60%); }
.adv-hero .mood { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.adv-hero .mood.good { color: #5CD394; } .adv-hero .mood.ok { color: #F2B552; } .adv-hero .mood.tight { color: #FF7B71; }
.adv-hero b { font-size: clamp(40px, 3.6vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #C9CDD2 45%, #8E949B 56%, #F1F2F4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adv-hero .lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9C9A94; }
.adv-hero p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: #D8D5CF; }
.adv-ring { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 12px 8px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.58); border: 1px solid rgba(0,0,0,.08); box-shadow: inset 0 1px 0 #fff; --c: #6B7280;
  animation: advIn .5s both; animation-delay: calc(var(--i) * 90ms); transition: transform .2s, box-shadow .2s, background .2s; }
@keyframes advIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.adv-ring:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0,0,0,.35), inset 0 1px 0 #fff; }
.adv-ring.cash { --c: #D7372E; } .adv-ring.sales { --c: #2F7FD8; } .adv-ring.orders { --c: #D98C14; } .adv-ring.field { --c: #23A05E; } .adv-ring.office { --c: #8C6BE0; }
.adv-ring .k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 4px; }
.adv-ring svg { width: 92px; height: 92px; margin: 2px 0; }
.adv-ring svg .bg { stroke: rgba(0,0,0,.09); } .adv-ring svg .fg { stroke: var(--c); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--c) 45%, transparent)); }
.adv-ring svg text { font-weight: 800; fill: var(--ink); font-family: inherit; }
.adv-ring .lab { font-size: 12px; font-weight: 700; line-height: 1.25; }
.adv-ring .act { font-size: 11.5px; font-weight: 600; color: var(--brand); line-height: 1.3; margin-top: auto; padding-top: 4px; }
.adv-x .adv-watch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12px; position: relative; z-index: 1; }
.adv-x .adv-watch b { color: #4A4E52; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; display: inline-flex; gap: 5px; align-items: center; }
.adv-x .adv-watch span { background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.1); border-radius: 999px; padding: 4px 11px; }
.adv-x .adv-foot { margin-top: 10px; font-size: 11px; color: #6A6E72; position: relative; z-index: 1; }
@media (max-width: 1180px) { .adv-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adv-hero { grid-column: 1 / -1; } }
@media (max-width: 560px) { .adv-row { grid-template-columns: 1fr 1fr; } .adv-x .adv-tools { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .adv-ring, .adv-live i, .adv-x::after { animation: none; } }

/* The "today" counters moved inside the brief, right under its five tiles (2026-11-07). */
.brief .today { margin: -2px 0 14px; gap: 12px; }
.brief .today a { padding: 12px 14px; border-radius: 16px; }
.brief .today { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.brief .today .ic { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
.brief .today .n { font-size: 21px; }
.brief .today .t { font-size: 12px; margin-top: 3px; }
@media (max-width: 700px) { .brief .today { grid-template-columns: 1fr 1fr; } }

/* 3D steel blocks in the brief chart (2026-11-07): the hovered block lifts a little. */
.chart3d text.val { font-size: 10px; font-weight: 800; }
.chart3d g.blk { transition: transform .2s; }
.chart3d g.bar:hover g.blk { transform: translateY(-3px); }
.chart3d g.bar:hover rect.m, .chart3d g.bar:hover path.m { opacity: 1; }
@media (max-width: 700px) { .chart3d text.val { display: none; } }

/* Advisor, clean pass (2026-11-07): no sentences on screen, only numbers, rings and short labels. */
.adv-x .adv-top { margin-bottom: 12px; }
.adv-x .adv-tools .adv-stamp { display: none; }
.adv-hero { align-content: center; gap: 8px; padding: 18px 20px; }
.adv-hero .lab { font-size: 12px; color: #B9B6AF; }
.adv-ring { align-content: center; gap: 8px; padding: 14px 8px 16px; }
.adv-ring svg { width: 104px; height: 104px; }
.adv-ring .lab { font-size: 12.5px; font-weight: 600; color: #3B4045; }

/* Everything in the brief is clickable (Tassia 2026-11-07: "tudo clicável sempre que possível"). */
.kpi .go { cursor: pointer; border-radius: 4px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: text-decoration-color .15s, background .15s; }
.kpi .go:hover { text-decoration-color: currentColor; background: rgba(200,50,42,.07); }
.kpi .d .go:hover { color: var(--brand); }
.kpi::after { content: "\203A"; margin-left: auto; align-self: center; font-size: 22px; color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.kpi:hover::after { opacity: 1; transform: none; }
tr.row-go { cursor: pointer; } tr.row-go:hover td { background: #FBF3F2; }
.chart g.bar[data-go] { cursor: pointer; }
a.adv-hero { text-decoration: none; transition: transform .2s; } a.adv-hero:hover { transform: translateY(-2px); }
.today a { cursor: pointer; }
.kpi { position: relative; }
.kpi::after { position: absolute; right: 12px; top: 50%; margin: 0; transform: translate(-4px, -50%); }
.kpi:hover::after { transform: translate(0, -50%); }

/* Advisor lanes (2026-11-07, Tassia picked "1, three lanes" with a silver-metal hero, no black). */
.adv-x .adv-row { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
.adv-x .adv-hero { color: var(--ink); border: 1px solid transparent; text-shadow: 0 1px 0 rgba(255,255,255,.7);
  background: url("steel.jpg") center / 260px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box; background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.12), 0 10px 20px -12px rgba(0,0,0,.45); }
.adv-x .adv-hero b { background: linear-gradient(180deg, #2B2F33 0%, #5C636A 48%, #1C1C1B 52%, #3E444A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.adv-x .adv-hero .mood.tight { color: #B5261E; } .adv-x .adv-hero .mood.ok { color: #A86A08; } .adv-x .adv-hero .mood.good { color: #1E7A44; }
.adv-x .adv-hero .lab { color: #3B4045; font-weight: 600; }
.adv-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adv-lane { display: grid; gap: 7px; align-content: start; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.07);
  animation: advIn .45s both; animation-delay: calc(var(--i) * 90ms); }
.adv-lane h4 { margin: 0 0 2px; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px -3px rgba(0,0,0,.4); }
.adv-lane h4 .ti { font-size: 15px; }
.adv-lane.now h4 { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25); background: linear-gradient(135deg, #F08A82 0%, #C8322A 32%, #E35A51 56%, #A82820 100%); }
.adv-lane.week h4 { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); background: linear-gradient(135deg, #8A9198 0%, #3F454B 35%, #6B7279 58%, #2E3338 100%); }
.adv-lane.eye h4 { color: #2E3338; text-shadow: 0 1px 0 rgba(255,255,255,.7); border: 1px solid transparent;
  background: var(--steel-bands) padding-box, var(--steel-edge) border-box; }
.adv-it { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-size: 12.5px; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.adv-it:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); border-color: rgba(200,50,42,.35); }
.adv-it .ti { font-size: 16px; color: #6B7279; flex: none; }
.adv-it span { min-width: 0; flex: 1; }
.adv-it b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adv-lane.now .adv-it b, .adv-lane.now .adv-it .ti { color: #B5261E; }
.adv-it.watch { color: #4A4E52; }
.adv-none { font-size: 12px; color: #8A8883; padding: 8px 11px; }
@media (max-width: 1100px) { .adv-x .adv-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .adv-lanes { grid-template-columns: 1fr; } }

/* Advisor on a near-black plate (Tassia 2026-11-07: "fundo meio preto"); the hero stays silver metal. */
.brief-advisor.adv-x { color: #EDEBE6; border-color: #2A2A28;
  background: radial-gradient(90% 120% at 0% 0%, rgba(200,50,42,.22), transparent 55%), linear-gradient(180deg, #232321, #161615); }
.adv-x::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%); }
.adv-x .adv-brand b { color: #F4F2EE; }
.adv-x .adv-again { color: #EDEBE6; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); box-shadow: none; }
.adv-x .adv-again:hover:not(:disabled) { color: #fff; border-color: var(--brand); background: rgba(200,50,42,.25); }
.adv-lane { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.adv-it { background: rgba(255,255,255,.07); color: #EDEBE6; border-color: rgba(255,255,255,.08); box-shadow: none; }
a.adv-it:hover { background: rgba(255,255,255,.12); border-color: rgba(229,72,63,.5); box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.adv-it .ti { color: #A9AEB4; }
.adv-it b { color: #fff; }
.adv-lane.now .adv-it b, .adv-lane.now .adv-it .ti { color: #FF6B61; }
.adv-it.watch { color: #C9C6BF; }
.adv-none { color: #8A8883; }
.adv-x .adv-wait { color: #A9A69F; }

/* At a glance without icons (Tassia 2026-11-07): each card's title sits in a red-metal bar across its top. */
.brief .kpi { display: block; padding: 0 0 12px; overflow: hidden; }
.brief .kpi .ic, .brief .today .ic { display: none; }
.brief .kpi .body { padding: 0 16px; }
.brief .kpi .k { margin: 0 -16px 10px; padding: 8px 16px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0,0,0,.25); background: linear-gradient(135deg, #F08A82 0%, #C8322A 32%, #E35A51 56%, #A82820 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.15); }
.brief .today a { display: block; padding: 0 0 10px; overflow: hidden; }
.brief .today a > div:last-child { display: flex; flex-direction: column-reverse; }
.brief .today .t { margin: 0 0 8px; padding: 6px 14px; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 -1px 0 rgba(0,0,0,.3);
  background: linear-gradient(135deg, #8A9198 0%, #3F454B 35%, #6B7279 58%, #2E3338 100%); }
.brief .today .n { padding: 0 14px; font-size: 24px; }
.brief .today .t { white-space: normal; letter-spacing: .06em; min-height: 2.6em; display: flex; align-items: center; }

/* Both rows of the brief: six cards of one width, always (2026-11-07). */
.brief .brief-kpis, .brief .today { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .brief .brief-kpis, .brief .today { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brief .brief-kpis, .brief .today { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brief .kpi .k, .brief .today .t { min-height: 3em; display: flex; align-items: center; letter-spacing: .08em; font-size: 10.5px; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }
.brief .kpi, .brief .today a { height: 100%; box-sizing: border-box; }
/* Title bars: one fixed height whatever the words (Tassia: "ainda tá diferente"). */
.brief .kpi .k, .brief .today .t { height: 38px; min-height: 0; box-sizing: border-box; overflow: hidden; }

/* "The Hub moved to fuselvhub.com" notice on the old address (common.js movedNotice). */
.moved-bg { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 20, 19, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.moved-card { width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 26px 24px 18px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border-top: 5px solid #C8322A; }
.moved-k { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #C8322A; }
.moved-card h2 { margin: 8px 0 6px; font-size: 22px; line-height: 1.25; color: #1C1C1B; font-weight: 600; }
.moved-card h2 b { font-size: 26px; font-weight: 800; }
.moved-card p { margin: 0 0 14px; color: #555; font-size: 14.5px; }
.moved-app { text-align: left; background: #F6F4F1; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; color: #1C1C1B; }
.moved-app ol { margin: 6px 0 0; padding-left: 20px; }
.moved-app li { margin: 3px 0; }
.moved-go { display: block; width: 100%; padding: 13px; font-size: 16px; text-decoration: none; text-align: center; box-sizing: border-box; }
.moved-later { margin-top: 10px; background: none; border: 0; color: #777; font-size: 14px; padding: 8px 16px; cursor: pointer; }
.moved-card .moved-small { margin: 4px 0 0; font-size: 12.5px; color: #888; }

/* Change order pricing (Ronnie 2026-11-10): every column on screen, no sideways scroll; a material without a price
   is yellow; "Last time $5 · Use" offers FUSE's last price for the same material. */
.co-lines { table-layout: fixed; width: 100%; min-width: 0; }
.co-lines col.c-qty { width: 84px; } .co-lines col.c-uom { width: 66px; } .co-lines col.c-money { width: 116px; }
.co-lines col.c-amt { width: 104px; } .co-lines col.c-del { width: 44px; }
.co-lines td, .co-lines th { padding: 6px 5px; }
.co-lines input { width: 100%; min-width: 0; padding: 6px 7px; }
.co-lines .qty, .co-lines .uom, .co-lines .money { width: 100%; }
.co-lines td.line-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-lines tr.need-price td { background: #FFF7E0; }
.co-lines tr.need-price input.money { border-color: #E6B94B; background: #FFFDF4; }
.co-lines tr.need-price input.money::placeholder { color: #A06A00; font-weight: 600; }
.co-noprice { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 9px 12px; border-radius: 10px;
  background: #FFF7E0; border: 1px solid #E6B94B; color: #6B4A00; font-size: 14px; font-weight: 600; }
.co-last { margin-top: 5px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 999px;
  border: 1px solid #C9C5BD; background: #F6F5F2; color: var(--ink-mid); font: 12.5px var(--font); cursor: pointer; }
.co-last b { color: var(--brand); }
.co-last:hover { border-color: var(--brand); background: #fff; }
@media (max-width: 700px) {
  .co-lines col.c-qty { width: 64px; } .co-lines col.c-uom { width: 52px; } .co-lines col.c-money { width: 92px; }
  .co-lines col.c-amt { width: 84px; } .co-lines col.c-del { width: 36px; }
  .co-lines input { font-size: 14px; padding: 5px; }
}
/* Phones: each pricing line becomes two rows — the description on top, qty · UOM · price · amount under it. */
@media (max-width: 560px) {
  .co-lines, .co-lines tbody { display: block; width: 100%; }
  .co-lines thead, .co-lines colgroup { display: none; }
  .co-lines tr.section-head { display: block; }
  .co-lines tr.section-head td { display: block; }
  .co-lines tr[data-i] { display: grid; grid-template-columns: 62px 54px minmax(0, 1fr) 76px 34px; align-items: center;
    border-bottom: 1px solid var(--line); }
  .co-lines tr[data-i] td { border: 0; }
  .co-lines tr[data-i] td:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .co-lines td.line-total { text-align: right; font-size: 13px; }
}
@media (max-width: 560px) { .co-lines tr.need-price { background: #FFF7E0; } }

/* Hub home, top right (admins): Hub Map + Security & backups as glass pills with a band of light crossing them
   (Tassia 2026-11-10, after her other system's "Agent Room" / "System health" pills). */
.hero-pills { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hub-pill { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 11px; padding: 7px 16px 7px 7px;
  border-radius: 999px; text-decoration: none; color: var(--ink); isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,243,240,.9)); border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.06), 0 8px 18px -12px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.hub-pill:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.08), 0 12px 24px -12px rgba(0,0,0,.4); }
.hub-pill::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 48%, rgba(255,255,255,0) 62%);
  transform: translateX(-120%); animation: hp-sweep 5.5s ease-in-out infinite; }
.hub-pill.sec::before { animation-delay: 1.4s; }
@keyframes hp-sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.hp-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 4px rgba(0,0,0,.18), 0 3px 8px -3px rgba(0,0,0,.4); }
.hub-pill.map .hp-ic { background: radial-gradient(circle at 35% 28%, #9DB8DC, #3F6AA6 58%, #2B4E80); }
.hub-pill.sec .hp-ic { background: radial-gradient(circle at 35% 28%, #A6DBAE, #3E9A4E 58%, #2A7337); }
.hub-pill.sec[data-state="warn"] .hp-ic { background: radial-gradient(circle at 35% 28%, #F6D58C, #D69A1F 58%, #A87410); }
.hub-pill.sec[data-state="bad"] .hp-ic { background: radial-gradient(circle at 35% 28%, #F29A92, #C8322A 58%, #9C2219); }
.hp-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hp-tx b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.hp-tx small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-mid); white-space: nowrap; }
.hp-dot { width: 7px; height: 7px; border-radius: 50%; background: #9AA0A6; flex: none; }
.hub-pill.map.live .hp-dot { background: #3F6AA6; animation: hp-blink 1.6s ease-in-out infinite; }
.hub-pill.sec[data-state="ok"] .hp-dot { background: #3E9A4E; }
.hub-pill.sec[data-state="warn"] .hp-dot { background: #D69A1F; animation: hp-blink 1.6s ease-in-out infinite; }
.hub-pill.sec[data-state="bad"] .hp-dot { background: #E0322A; animation: hp-blink 1.2s ease-in-out infinite; }
@keyframes hp-blink { 50% { opacity: .3; } }
.hp-deco { display: inline-flex; gap: 4px; margin-left: 4px; }
.hp-deco i { width: 7px; height: 7px; border-radius: 2px; background: #C9D3E0; animation: hp-blink 2.4s ease-in-out infinite; }
.hp-deco i:nth-child(2) { background: #E8A39D; animation-delay: .5s; } .hp-deco i:nth-child(3) { background: #A6D3AE; animation-delay: 1s; }
.hp-pulse { width: 54px; height: 18px; margin-left: 4px; flex: none; }
.hp-pulse path { fill: none; stroke: #3E9A4E; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; animation: hp-trace 2.6s linear infinite; }
.hub-pill.sec[data-state="warn"] .hp-pulse path { stroke: #D69A1F; }
.hub-pill.sec[data-state="bad"] .hp-pulse path { stroke: #C8322A; }
@keyframes hp-trace { 0% { stroke-dashoffset: 90; } 60%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 700px) {
  .hero-pills { justify-content: flex-start; width: 100%; }
  .hub-pill { flex: 1 1 100%; }
  .hp-deco, .hp-pulse { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-pill::before, .hp-dot, .hp-deco i, .hp-pulse path { animation: none !important; }
  .hp-pulse path { stroke-dashoffset: 0; }
}
/* Smaller and higher (Tassia 2026-11-10: "mais em cima e mais discreto"): pills sit in the top-right corner of the
   home, level with the greeting, at about half the weight. */
.home-hero { align-items: flex-start; flex-wrap: nowrap; }
.home-hero > div:first-child { min-width: 0; }
.hero-pills { gap: 8px; margin-top: -6px; flex-wrap: wrap; }
.hub-pill { gap: 8px; padding: 4px 12px 4px 4px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.05); border-color: rgba(0,0,0,.06);
  background: rgba(255,255,255,.7); }
.hub-pill:hover { transform: none; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 2px 8px -4px rgba(0,0,0,.25); }
.hub-pill::before { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 62%); }
.hp-ic { width: 26px; height: 26px; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 3px rgba(0,0,0,.15); }
.hp-tx b { font-size: 12.5px; font-weight: 650; }
.hp-tx small { font-size: 11px; gap: 5px; }
.hp-dot { width: 6px; height: 6px; }
.hp-deco { gap: 3px; } .hp-deco i { width: 5px; height: 5px; }
.hp-pulse { width: 38px; height: 14px; }
@media (max-width: 900px) { .home-hero { flex-wrap: wrap; } .hero-pills { margin-top: 0; } }
@media (max-width: 700px) { .hub-pill { flex: 0 1 auto; } }
.hero-pills { flex-wrap: nowrap; flex: none; }
@media (max-width: 900px) { .hero-pills { flex-wrap: wrap; } }
/* Hub palette only (Tassia 2026-11-10: no green / blue — red, silver or black, brushed metal, a light running around
   the edge). Brushed-steel pill, black or red-metal disc, status shown by the dot (silver = fine, red = look). */
@property --hp-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hub-pill { border: 1px solid transparent; color: #26292C; text-shadow: 0 1px 0 rgba(255,255,255,.75);
  background: url("steel.jpg") center / 260px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.1), 0 6px 14px -10px rgba(0,0,0,.5); }
.hub-pill:hover { background: url("steel.jpg") center / 260px auto padding-box, var(--steel-bands) padding-box, var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal; box-shadow: inset 0 1px 0 #fff, 0 2px 10px -4px rgba(0,0,0,.45); }
.hub-pill .hp-tx small { color: #4A4E52; }
/* the light that runs around the edge */
.hub-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--hp-a), transparent 0deg 250deg, rgba(255,255,255,.95) 300deg, #E0322A 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: hp-orbit 4.5s linear infinite; }
.hub-pill.sec::after { animation-delay: -2.25s; }
@keyframes hp-orbit { to { --hp-a: 360deg; } }
.hub-pill.map .hp-ic { background: radial-gradient(circle at 35% 25%, #6A6E73, #1C1C1B 60%, #0A0A09); color: #fff; }
.hub-pill.sec .hp-ic, .hub-pill.sec[data-state] .hp-ic { background: var(--red-metal); color: #fff; }
.hub-pill .hp-dot, .hub-pill.sec[data-state="ok"] .hp-dot { background: linear-gradient(135deg, #F4F4F2, #9EA3A8); box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.hub-pill.map.live .hp-dot { background: #E0322A; box-shadow: none; }
.hub-pill.sec[data-state="warn"] .hp-dot, .hub-pill.sec[data-state="bad"] .hp-dot { background: #E0322A; box-shadow: none; }
.hp-deco i { background: #1C1C1B; } .hp-deco i:nth-child(2) { background: #C8322A; } .hp-deco i:nth-child(3) { background: #A9AEB3; }
.hp-pulse path, .hub-pill.sec[data-state] .hp-pulse path { stroke: #C8322A; }
@media (prefers-reduced-motion: reduce) { .hub-pill::after { animation: none; } }
/* Status light in the Hub Map / Security pills (Tassia 2026-11-10: "verde, amarelo ou vermelho, tipo luz"): a small
   glowing lamp. Security: green every check OK · amber something to look at · red something needs a look · grey not
   checked. Hub Map: green the Hub was used in the last 24 h (blinks while someone is in it now) · amber no use in 24 h
   · red the map could not be read. */
.hub-pill .hp-dot, .hub-pill.sec[data-state] .hp-dot, .hub-pill.map[data-state] .hp-dot {
  width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.7);
  background: radial-gradient(circle at 35% 30%, #E9EBED, #8F959B 70%); animation: none; }
.hub-pill.map[data-state="ok"] .hp-dot, .hub-pill.sec[data-state="ok"] .hp-dot { background: radial-gradient(circle at 35% 30%, #B8F5B0, #2FA83F 55%, #1D7A2B);
  box-shadow: 0 0 0 1px rgba(0,60,10,.35), 0 0 6px 1px rgba(47,168,63,.65); }
.hub-pill.map[data-state="warn"] .hp-dot, .hub-pill.sec[data-state="warn"] .hp-dot { background: radial-gradient(circle at 35% 30%, #FFF1B0, #F2B21E 55%, #B57E08);
  box-shadow: 0 0 0 1px rgba(90,60,0,.35), 0 0 6px 1px rgba(242,178,30,.7); animation: hp-blink 1.6s ease-in-out infinite; }
.hub-pill.map[data-state="bad"] .hp-dot, .hub-pill.sec[data-state="bad"] .hp-dot { background: radial-gradient(circle at 35% 30%, #FFB3AC, #E0322A 55%, #9C2219);
  box-shadow: 0 0 0 1px rgba(90,0,0,.35), 0 0 7px 1px rgba(224,50,42,.75); animation: hp-blink 1.1s ease-in-out infinite; }
.hub-pill.map.live[data-state="ok"] .hp-dot.hp-dot { animation: hp-blink 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hub-pill .hp-dot { animation: none !important; } }
/* Waiting on Ronnie, 3D + calling (Tassia 2026-11-10: "deveria piscar pra chamar atenção do Ronnie … mais 3d"):
   brushed-steel pill like the Hub Map / Security ones, the icon on a red-metal disc, the number on a red lamp, and a
   red glow breathing around the pill every 2 s (the corner light keeps blinking). */
.asks-call { padding: 7px 16px 7px 7px; gap: 11px; border: 1px solid transparent;
  background: url("steel.jpg") center / 320px auto padding-box, var(--steel-bands) 100% 0 / 240% 100% padding-box, var(--steel-edge) border-box;
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(0,0,0,.12), 0 2px 3px rgba(28,28,27,.18), 0 10px 22px -10px rgba(28,28,27,.45);
  animation: asks-call 2s ease-in-out infinite; transition: transform .15s; }
.asks-call:hover { transform: translateY(-1px); border-color: transparent; }
.asks-call > .ti:first-child { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #fff;
  background: var(--red-metal); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.25), 0 2px 4px rgba(160,38,32,.35); }
.asks-call span { font-size: 14px; font-weight: 600; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.asks-call span b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 6px; border-radius: 999px;
  color: #fff; font-size: 13px; text-shadow: none; background: radial-gradient(circle at 35% 30%, #FF8A80, #E0322A 55%, #9C2219);
  box-shadow: 0 0 0 1px rgba(90,0,0,.25), 0 0 8px rgba(224,50,42,.55); }
.asks-call > .ti:last-child { color: #6B6862; }
@keyframes asks-call {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(0,0,0,.12), 0 2px 3px rgba(28,28,27,.18), 0 10px 22px -10px rgba(28,28,27,.45), 0 0 0 0 rgba(224,50,42,0); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(0,0,0,.12), 0 2px 3px rgba(28,28,27,.18), 0 10px 22px -10px rgba(28,28,27,.45), 0 0 0 5px rgba(224,50,42,.28), 0 0 18px 4px rgba(224,50,42,.35); }
}
@media (prefers-reduced-motion: reduce) { .asks-call { animation: none; } }
/* Waiting on Ronnie as the third pill, same size as Hub Map / Security: red-metal disc, red blinking light. */
.hub-pill.asks .hp-ic { background: var(--red-metal); color: #fff; }
.hub-pill.asks[data-state="bad"] .hp-dot { background: radial-gradient(circle at 35% 30%, #FFB3AC, #E0322A 55%, #9C2219);
  box-shadow: 0 0 0 1px rgba(90,0,0,.35), 0 0 7px 1px rgba(224,50,42,.75); animation: hp-blink 1.1s ease-in-out infinite; }
.hub-pill.asks::after { animation-delay: -1.5s; }
.hub-pill.asks.hidden { display: none; }

/* ---------- Alignment pass (Tassia 2026-11-10: "várias coisas muito desalinhadas … arrume todos") ---------- */
/* Every one-line box (text, number, date, select) is the same height, so boxes side by side line up. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select { height: 42px; min-height: 42px; }
input[type=date], input[type=time], input[type=datetime-local] { line-height: 24px; }
/* Filters: everything on one centre line; a checkbox stays next to its words (the 180px rule was for boxes). */
.filters { align-items: center; }
.filters input[type=checkbox], .filters input[type=radio] { min-width: 0; width: 20px; }
.filters input[type=search], .filters input[type=text] { min-width: 240px; }
.filters .check, .filters label:has(> input[type=checkbox]) { margin: 0; white-space: nowrap; }
/* Header actions: a select or search there is as wide as its words, and every control is 40px tall. */
.topbar .actions { align-items: center; }
.topbar .actions select, .topbar .actions input:not([type=checkbox]):not([type=radio]) { width: auto; min-width: 160px; height: 40px; min-height: 40px; }
.topbar .actions input[type=search], .topbar .actions input[type=text] { min-width: 240px; }
.topbar .actions .btn.small { min-height: 40px; min-width: 40px; }
.topbar .actions .check { margin: 0; white-space: nowrap; }
/* Two panels side by side: the same gap as between stacked panels, and both the same height. */
.two > .panel { margin-bottom: 0; }
.two { margin-bottom: 16px; }
/* Room under the last thing on a page, so the floating robot button never covers it. */
.main { padding-bottom: 96px; }
/* A heading with a small button right after it: the button goes to the right edge. */
.panel > h2:has(> .btn) { display: flex; align-items: center; gap: 10px; }
.panel > h2:has(> .btn) > .btn { margin-left: auto; }
/* Status chips and badges never change a row's height. */
td .badge { vertical-align: middle; }
/* A bottom Save bar next to the sidebar sits under the page, not under the sidebar. */
@media (min-width: 861px) { html:not(.upright) .shell:has(> .sidebar:not(.hidden)) .sticky-submit { left: 280px; } }
/* Tables stacked one per panel (drawing sets, …): the same column widths in every panel. */
table.fixed-cols { table-layout: fixed; }
table.fixed-cols td { overflow-wrap: anywhere; }
/* On a phone, a table too wide for its panel scrolls sideways inside the panel; the page itself never gets wider than the screen. */
@media (max-width: 860px) { .panel, .two > *, .main > * { min-width: 0; max-width: 100%; } .panel { overflow-x: auto; } .table-wrap { max-width: 100%; } }
/* A row of pill tabs longer than the screen slides sideways instead of pushing the page wider. */
.pill-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs button { flex: 0 0 auto; white-space: nowrap; }
/* Long column titles ("Tickets to price") may take two lines, so the name column keeps its room; titles sit on the
   bottom line, right above their numbers. */
th { vertical-align: bottom; line-height: 1.3; }
table.dense th { white-space: normal; }
td .badge { font-variant-numeric: tabular-nums; }
/* Wide tables with many money columns: a little tighter so every column fits on a normal screen. */
table.dense th, table.dense td { padding: 8px 8px; font-size: 13px; }
table.dense th { font-size: 10.5px; }
/* Pill tabs next to 42px boxes are as tall as the boxes. */
.filters .pill-tabs button, .topbar .actions .pill-tabs button { padding: 9px 14px; }
/* Phones: a panel title with buttons puts the buttons on their own line under it. */
@media (max-width: 600px) { .panel-head { flex-wrap: wrap; } .panel-head > h2 { flex: 1 1 100%; } }
/* Phones: a table keeps readable columns and slides sideways inside its box, instead of squeezing a description
   to one word per line. */
@media (max-width: 600px) { .table-wrap > table { min-width: 720px; } .table-wrap > table.fixed-cols { min-width: 900px; } }
.filters input[type=date] { min-width: 150px; }
