/* Theme (Fase 71: the look of the approved setup prototype): deep navy + cyan glow + amber for "needs you", Chakra Petch titles, Figtree text, JetBrains Mono numbers.
   Light keeps the same hues, deeper so they read in the sun on a job site; html.dark is the prototype itself. */
:root {
  --hx-bg: #f3f6fa; --hx-surface: #ffffff; --hx-surface2: #edf2f7; --hx-border: #d5dfea; --hx-text: #0b1626; --hx-muted: #5a6b80;
  --hx-on-accent: #ffffff; --hx-accent: #0e7490; --hx-accent-soft: #e0f7fb; --hx-amber: #b45309; --hx-ok: #047857; --hx-glow: rgba(14,116,144,.18);
  --hx-hud: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif; --hx-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
html.dark {
  color-scheme: dark;
  --hx-bg: #04070D; --hx-surface: #0A1322; --hx-surface2: #08101D; --hx-border: #173452; --hx-text: #E3ECF7; --hx-muted: #7E93AE;
  --hx-on-accent: #04202a; --hx-accent: #46E3F5; --hx-accent-soft: rgba(70,227,245,.12); --hx-amber: #FFB547; --hx-ok: #5BE3A0; --hx-glow: rgba(70,227,245,.25);
}
/* Fase 73: glass + neon tokens (used by fx.css). Light = "light glass": the same rules, a deeper cyan for contrast. */
:root {
  --neon: #0E7490; --neon-2: #0891B2; --amber: #B45309; --ok: #047857; --danger: #BE123C;
  --glass-bg: rgba(255, 255, 255, 0.62); --glass-bg-strong: rgba(255, 255, 255, 0.86); --glass-border: rgba(11, 22, 38, 0.10); --glass-hi: rgba(255, 255, 255, 0.75); --glass-blur: 16px;
  --glow-sm: 0 0 12px rgba(14, 116, 144, 0.18); --glow-md: 0 0 22px rgba(14, 116, 144, 0.24); --glow-amber: 0 0 16px rgba(180, 83, 9, 0.28);
  --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: 150ms; --t-mid: 250ms; --t-slow: 400ms;
  --mk-cyan: #0E7490; --mk-line: #0B1626; --mk-face: #0D2138; --mk-eye: #E9FDFF;
}
html.dark {
  --neon: #46E3F5; --neon-2: #22D3FF; --amber: #FFB547; --ok: #5BE3A0; --danger: #FF5C7A;
  --glass-bg: rgba(14, 30, 52, 0.55); --glass-bg-strong: rgba(10, 20, 36, 0.78); --glass-border: rgba(255, 255, 255, 0.10); --glass-hi: rgba(255, 255, 255, 0.08); --glass-blur: 16px;
  --glow-sm: 0 0 12px rgba(70, 227, 245, 0.25); --glow-md: 0 0 24px rgba(70, 227, 245, 0.30); --glow-amber: 0 0 18px rgba(255, 181, 71, 0.35);
  --mk-cyan: #46E3F5; --mk-line: #E3ECF7;
}
body.bg-slate-50 { background-color: #EEF3F9; }
html.dark body, html.dark body.bg-slate-50 { background-color: #04070D; color: #E3ECF7; }

/* surfaces */
html.dark .bg-white { background-color: #0A1322; }
html.dark .bg-slate-50 { background-color: #08101D; }
html.dark .bg-slate-100 { background-color: #0F1F33; }
html.dark .bg-brand-50 { background-color: rgba(70,227,245,.14); }
html.dark .bg-red-50 { background-color: rgba(239,68,68,.14); }
html.dark .bg-amber-50 { background-color: rgba(245,158,11,.14); }
html.dark .bg-green-50 { background-color: rgba(34,197,94,.14); }
html.dark .bg-green-100 { background-color: rgba(34,197,94,.22); }
html.dark .hover\:bg-white:hover { background-color: #0F1F33; }
html.dark .hover\:bg-slate-50:hover, html.dark .hover\:bg-slate-100:hover { background-color: #0F1F33; }
html.dark .hover\:bg-brand-50:hover { background-color: rgba(70,227,245,.18); }
html.dark .hover\:bg-green-50:hover { background-color: rgba(34,197,94,.16); }
html.dark .hover\:bg-red-50:hover { background-color: rgba(239,68,68,.16); }
html.dark .bg-white\/80 { background-color: rgba(18,22,29,.85); }

/* text */
html.dark .text-slate-900, html.dark .text-slate-800, html.dark .text-brand-900 { color: #E3ECF7; }
html.dark .text-slate-700 { color: #C9D6E6; }
html.dark .text-slate-600 { color: #9FB0C6; }
html.dark .text-slate-500 { color: #7E93AE; }
html.dark .text-slate-400 { color: #62758C; }
html.dark .text-brand-600 { color: #46E3F5; }
html.dark .text-red-700, html.dark .text-red-800 { color: #fca5a5; }
html.dark .text-red-600 { color: #f87171; }   /* P22-5: red-600 on the dark panel was 3.85:1 (under AA); red-400 reads */
html.dark .text-amber-800, html.dark .text-amber-700 { color: #fcd34d; }
html.dark .text-green-700, html.dark .text-green-800 { color: #86efac; }
html.dark .hover\:text-slate-700:hover { color: #E3ECF7; }

/* borders, rings, dividers */
html.dark .border-slate-100 { border-color: rgba(70,150,220,.12); }
html.dark .border-slate-200 { border-color: #173452; }
html.dark .border-slate-300 { border-color: #1F4468; }
html.dark .ring-slate-100 { --tw-ring-color: rgba(70,150,220,.14); }
html.dark .shadow-sm, html.dark .shadow-md, html.dark .shadow-lg, html.dark .shadow-xl { --tw-shadow-color: rgba(0,0,0,.5); }

/* form controls */
html.dark input:not([type=checkbox]):not([type=radio]), html.dark select, html.dark textarea { background-color: #070F1C; color: #E3ECF7; border-color: #1F4468; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #55687F; }
html.dark select option { background: #0A1322; color: #E3ECF7; }

/* FullCalendar */
html.dark { --fc-page-bg-color: #0A1322; --fc-neutral-bg-color: #08101D; --fc-neutral-text-color: #7E93AE; --fc-border-color: #173452;
  --fc-today-bg-color: rgba(70,227,245,.10); --fc-now-indicator-color: #f87171; --fc-list-event-hover-bg-color: #0F1F33; --fc-button-text-color: #fff; }
html.dark .fc .fc-toolbar-title, html.dark .fc .fc-col-header-cell-cushion, html.dark .fc .fc-timegrid-slot-label-cushion, html.dark .fc .fc-daygrid-day-number { color: #C9D6E6; }
html.dark .fc a { color: inherit; }

/* logos: the dark variants have light lettering */

/* ---------- app shell & home ---------- */
.hx-card { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 1rem; }
.hx-muted { color: var(--hx-muted); }
.hx-serif { font-family: var(--hx-hud); font-weight: 600; letter-spacing: .01em; }
#sidebar { background: var(--hx-surface2); border-right: 1px solid var(--hx-border); }
.sb-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .75rem; border-radius: .65rem; color: var(--hx-muted); font-size: 14px; font-weight: 600; text-align: left; }
.sb-item svg { flex-shrink: 0; }
.sb-item > span:not(.sb-badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* "Material & Supplies" stays on one line beside its badge */
.sb-item:hover { background: var(--hx-accent-soft); color: var(--hx-text); }
.sb-item[aria-current="page"] { background: var(--hx-accent-soft); color: var(--hx-accent); font-weight: 700; }
.hx-row { display: flex; align-items: center; gap: .85rem; padding: .7rem .75rem; border-radius: .75rem; background: var(--hx-surface2); border: 1px solid var(--hx-border); text-align: left; width: 100%; }
.hx-row:hover { border-color: var(--hx-accent); }
.hx-bar { width: 4px; align-self: stretch; border-radius: 99px; flex: none; }

/* ---------- pages: the old pop-up windows, shown inside the app shell ---------- */
.as-page { position: static !important; display: block !important; inset: auto !important; padding: 0 !important; background: transparent !important; pointer-events: none; }
.as-page.hidden { display: none !important; }
.as-page > * { pointer-events: auto; }
.as-page > .pg, .as-page > .pg-split { max-width: none !important; max-height: none !important; width: 100% !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important; }
.as-page > .pg > :first-child, .as-page > .pg-split > :first-child { display: none !important; }   /* the window's own title row: the page has a heading */
.as-page > #settings-form { max-width: 52rem !important; max-height: none !important; width: 100% !important; overflow: visible !important; background: var(--hx-surface) !important; border: 1px solid var(--hx-border); border-radius: 1rem !important; box-shadow: none !important; padding: 1.25rem !important; }
.as-page > #settings-form > h2:first-child { display: none; }
.pg-card { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 1rem; }
.pg-split { display: grid !important; gap: .75rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pg-split > form, .pg-split > ul { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 1rem; }
.pg-split > ul { padding: .25rem 1.25rem; }
.pg-split > p { grid-column: 1; }
@media (min-width: 1024px) {
  .pg-split:has(> form) { grid-template-columns: 23rem minmax(0, 1fr); }   /* (a page whose form moved to the side panel, rowlist.js, is one column) */
  .pg-split > form { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 0; }
  .pg-split:has(> form) > :not(form) { grid-column: 2; }
}
.page-head h1 { font-family: var(--hx-hud); font-weight: 600; letter-spacing: .01em; }
.fin-badge { display: inline-block; border-radius: 99px; padding: .1rem .6rem; font-size: 12px; font-weight: 700; }
.fin-badge.paid { background: rgba(34,197,94,.16); color: #15803d; }
.fin-badge.unpaid { background: rgba(245,158,11,.18); color: #b45309; }
.fin-badge.open { background: rgba(100,116,139,.16); color: #475569; }
html.dark .fin-badge.paid { color: #86efac; } html.dark .fin-badge.unpaid { color: #fcd34d; } html.dark .fin-badge.open { color: #aab1be; }
#fin-rows tr { cursor: pointer; } #fin-rows tr:hover { background: var(--hx-accent-soft); }
#fin-rows > tr + tr { border-top: 1px solid var(--hx-border); }
.fin-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: .6rem; padding: .35rem .6rem; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }

/* ---------- Gantt ---------- */
.gt-scroll { overflow: auto; border: 1px solid var(--hx-border); border-radius: .75rem; background: var(--hx-surface); position: relative; }
.gt-inner { position: relative; min-width: 100%; }
.gt-head { display: flex; position: sticky; top: 0; z-index: 4; height: 52px; background: var(--hx-surface2); border-bottom: 1px solid var(--hx-border); }
.gt-corner { position: sticky; left: 0; z-index: 5; flex: none; background: var(--hx-surface2); border-right: 1px solid var(--hx-border); padding: .5rem .75rem; font-size: 12px; font-weight: 700; color: var(--hx-muted); display: flex; align-items: flex-end; }
.gt-timeline { position: relative; flex: none; }
.gt-months { position: relative; height: 24px; border-bottom: 1px solid var(--hx-border); }
.gt-month { position: absolute; top: 0; height: 24px; border-left: 1px solid var(--hx-border); font-size: 12px; font-weight: 700; padding: 4px 6px; overflow: hidden; white-space: nowrap; }
.gt-days { position: relative; height: 28px; overflow: hidden; }   /* (the last week mark is cut at the end of the chart, it never widens it) */
.gt-day { position: absolute; top: 0; height: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--hx-muted); border-left: 1px solid color-mix(in srgb, var(--hx-border) 60%, transparent); line-height: 1.05; }
.gt-day.weekend { background: color-mix(in srgb, var(--hx-muted) 10%, transparent); }
.gt-day.today .gt-dn { background: var(--hx-accent); color: #fff; border-radius: 99px; padding: 0 .35rem; }
.gt-day.wk { align-items: flex-start; padding-left: 3px; }
.gt-dn { font-weight: 700; } .gt-dw { font-size: 12px; text-transform: uppercase; }
.gt-bg { position: absolute; bottom: 0; pointer-events: none; z-index: 0; }
.gt-wknd { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--hx-muted) 8%, transparent); }
.gt-today { position: absolute; bottom: 0; width: 2px; background: #ef4444; z-index: 3; pointer-events: none; opacity: .8; }
.gt-row { display: flex; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--hx-border) 70%, transparent); z-index: 1; }
.gt-row.group { background: color-mix(in srgb, var(--hx-muted) 8%, var(--hx-surface)); }
.gt-label { position: sticky; left: 0; z-index: 2; flex: none; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; background: var(--hx-surface); border-right: 1px solid var(--hx-border); overflow: hidden; }
.gt-row.group .gt-label { background: color-mix(in srgb, var(--hx-muted) 8%, var(--hx-surface)); font-weight: 700; }
.gt-label.indent { padding-left: 1.75rem; }
.gt-label.clickable { cursor: pointer; } .gt-label.clickable:hover { background: var(--hx-accent-soft); }
.gt-dot { width: .6rem; height: .6rem; border-radius: 99px; flex: none; }
.gt-ltext { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.gt-lt { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-ls { font-size: 12px; color: var(--hx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-track { position: relative; flex: none; }
.gt-bar { position: absolute; top: 7px; height: 24px; border-radius: .4rem; border: 2px solid transparent; color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 .4rem; text-align: left; white-space: nowrap; overflow: visible; touch-action: none; cursor: default; }
.gt-bar.editable { cursor: grab; } .gt-bar.dragging { cursor: grabbing; opacity: .85; z-index: 6; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.gt-bar.tentative { border-style: dashed; color: var(--hx-text); }
.gt-bar.done { opacity: .6; } .gt-bar.late { box-shadow: 0 0 0 2px #ef4444; }
.gt-bar:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 2px; }
.gt-bt { display: block; overflow: hidden; text-overflow: ellipsis; }
.gt-bt.out { position: absolute; left: 100%; margin-left: .35rem; color: var(--hx-text); overflow: visible; font-weight: 600; pointer-events: none; }
.gt-bar.ms { width: 16px; height: 16px; top: 11px; padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none; }
.gt-dia { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.gt-bar.ms.late .gt-dia { background: #ef4444 !important; }
.gt-bar.ms .gt-bt.out { left: 22px; margin: 0; top: -4px; line-height: 24px; }
.gt-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; } .gt-h.l { left: -3px; } .gt-h.r { right: -3px; }
.gt-tip { position: fixed; z-index: 90; background: #0f172a; color: #fff; font-size: 12px; padding: .25rem .5rem; border-radius: .4rem; pointer-events: none; display: none; }
.gt-empty { padding: 2rem; text-align: center; color: var(--hx-muted); }
@media print { .gt-scroll { overflow: visible !important; max-height: none !important; border: 0; } }

/* ---------- shell: sidebar badges, brain, search, dock ---------- */
.sb-badge { min-width: 1.25rem; height: 1.25rem; border-radius: 99px; background: var(--hx-accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 .35rem; }
[data-badge="fin"].sb-badge { background: #f59e0b; } [data-badge="materials"].sb-badge { background: #ef4444; }
.gs-box { background: var(--hx-surface); border-color: var(--hx-border); color: var(--hx-muted); }
.gs-box input { color: var(--hx-text); }
@media (max-width: 1023px) { #gs.gs-open { display: block !important; position: fixed; left: .75rem; right: .75rem; top: 3.5rem; width: auto; z-index: 60; } }
.hero { background-image: radial-gradient(60% 120% at 0% 50%, color-mix(in srgb, var(--hx-accent) 12%, transparent), transparent 70%); }

.fin-badge.sent { background: rgba(59,130,246,.16); color: #1d4ed8; } .fin-badge.no_response { background: rgba(245,158,11,.2); color: #b45309; }
.fin-badge.approved { background: rgba(34,197,94,.16); color: #15803d; } .fin-badge.declined { background: rgba(239,68,68,.16); color: #b91c1c; } .fin-badge.outdated { background: rgba(100,116,139,.18); color: #475569; }
html.dark .fin-badge.sent { color: #93c5fd; } html.dark .fin-badge.no_response { color: #fcd34d; } html.dark .fin-badge.approved { color: #86efac; } html.dark .fin-badge.declined { color: #fca5a5; } html.dark .fin-badge.outdated { color: #aab1be; }
.fin-badge.needed { background: rgba(100,116,139,.18); color: #475569; } .fin-badge.quoting { background: rgba(245,158,11,.2); color: #b45309; } .fin-badge.ordered { background: rgba(59,130,246,.16); color: #1d4ed8; } .fin-badge.delivered { background: rgba(34,197,94,.16); color: #15803d; }
.fin-badge.late { background: rgba(239,68,68,.16); color: #b91c1c; } .fin-badge.soon { background: rgba(245,158,11,.2); color: #b45309; } .fin-badge.low { background: rgba(239,68,68,.16); color: #b91c1c; } .fin-badge.ok { background: rgba(34,197,94,.16); color: #15803d; }
html.dark .fin-badge.needed { color: #aab1be; } html.dark .fin-badge.quoting { color: #fcd34d; } html.dark .fin-badge.ordered { color: #93c5fd; } html.dark .fin-badge.delivered { color: #86efac; } html.dark .fin-badge.late, html.dark .fin-badge.low { color: #fca5a5; } html.dark .fin-badge.soon { color: #fcd34d; } html.dark .fin-badge.ok { color: #86efac; }
tbody tr[tabindex] { cursor: pointer; } tbody tr[tabindex]:hover { background: var(--hx-accent-soft); }
tbody > tr + tr { border-top: 1px solid var(--hx-border); }

.fc-tentative { background: transparent !important; border-style: dashed !important; } .fc-tentative .fc-event-title, .fc-tentative .fc-event-time { color: var(--hx-text) !important; }
html.dark .fc .fc-multimonth, html.dark .fc .fc-multimonth-title { color: #d3d8e2; border-color: rgba(255,255,255,.09); }
.fc .fc-event { cursor: pointer; }

/* ---- the Cronograma / Schedule grid (Smartsheet-style): row numbers, columns, fold arrows, progress, summary bars ---- */
.gt-corner.tbl { display: flex; padding: 0; align-items: stretch; }
.gt-hc { flex: none; display: flex; align-items: flex-end; padding: .35rem .5rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--hx-muted); border-right: 1px solid color-mix(in srgb, var(--hx-border) 70%, transparent); white-space: nowrap; overflow: hidden; }
.gt-hc.num { justify-content: center; padding-inline: 0; } .gt-hc.r { justify-content: flex-end; }
.gt-label.tbl { padding: 0; gap: 0; align-items: stretch; }
.gt-cn { flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--hx-muted); background: color-mix(in srgb, var(--hx-muted) 8%, var(--hx-surface)); border-right: 1px solid color-mix(in srgb, var(--hx-border) 70%, transparent); }
.gt-cell { flex: none; display: flex; align-items: center; gap: .4rem; padding: 0 .5rem; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-right: 1px solid color-mix(in srgb, var(--hx-border) 70%, transparent); }
.gt-cell.r { justify-content: flex-end; } .gt-cell.first { gap: .35rem; }
.gt-row.summary .gt-cell, .gt-row.summary .gt-lt { font-weight: 700; }
.gt-row.summary { background: color-mix(in srgb, var(--hx-accent) 5%, var(--hx-surface)); } .gt-row.summary .gt-label { background: color-mix(in srgb, var(--hx-accent) 5%, var(--hx-surface)); }
.gt-fold { flex: none; width: 1.1rem; height: 1.1rem; line-height: 1; border-radius: .25rem; color: var(--hx-muted); font-size: 12px; transition: transform .12s; margin-left: -.35rem; } .gt-fold:hover { background: var(--hx-accent-soft); } .gt-fold.closed { transform: rotate(-90deg); }
.gt-chip { display: inline-block; padding: .08rem .5rem; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(100,116,139,.16); color: var(--hx-muted); }
.gt-chip.planned { background: rgba(100,116,139,.18); } .gt-chip.in_progress { background: rgba(245,158,11,.2); color: #b45309; } .gt-chip.done { background: rgba(34,197,94,.18); color: #15803d; } .gt-chip.blocked { background: rgba(239,68,68,.16); color: #b91c1c; }
html.dark .gt-chip.in_progress { color: #fcd34d; } html.dark .gt-chip.done { color: #86efac; } html.dark .gt-chip.blocked { color: #fca5a5; }
.gt-pct { position: relative; display: block; width: 100%; height: 1rem; border-radius: .3rem; background: color-mix(in srgb, var(--hx-muted) 18%, transparent); overflow: hidden; }
.gt-pct i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--hx-accent) 55%, transparent); }
.gt-pct b { position: relative; display: block; text-align: center; font-size: 12px; line-height: 1rem; font-weight: 700; }
.gt-prog { position: absolute; inset: 0 auto 0 0; background: rgba(0,0,0,.28); border-radius: .3rem 0 0 .3rem; pointer-events: none; }
.gt-bar.sum { height: 10px; top: 14px; border: 0; border-radius: 0; background: var(--hx-text) !important; opacity: .85; clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 7px) 55%, 7px 55%, 0 100%); padding: 0; }
.gt-bar.sum .gt-bt { display: none !important; }
.gt-label.tbl .gt-ltext { min-width: 0; }

/* ---------- "Coming soon" (Marketing, Social Media): a shimmering pill with a pulsing dot, and the preview pages ---------- */
.soon-pill { position: relative; display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; overflow: hidden; border-radius: 99px; padding: .12rem .5rem; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(110deg, #6366f1, #06b6d4 45%, #a855f7 90%); background-size: 200% 100%; animation: soon-flow 3.2s linear infinite; box-shadow: 0 0 0 0 rgba(99,102,241,.55), 0 0 10px rgba(99,102,241,.35); }
.soon-pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: soon-shine 2.6s ease-in-out infinite; }
.soon-dot { width: .38rem; height: .38rem; border-radius: 50%; background: #fff; animation: soon-pulse 1.4s ease-in-out infinite; }
.sb-item .soon-pill { overflow: hidden; text-overflow: clip; min-width: max-content; }
.sb-item > span > .soon-pill { display: inline-flex; }
.sb-item:hover .soon-pill { box-shadow: 0 0 14px rgba(99,102,241,.6); }
@keyframes soon-flow { to { background-position: -200% 0; } }
@keyframes soon-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes soon-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .soon-pill, .soon-pill::after, .soon-dot { animation: none; } }

/* ---------- Projects hub: stages, health, cards ---------- */
.fin-badge.stg-awaiting { background: rgba(245,158,11,.2); color: #b45309; } .fin-badge.stg-approved { background: rgba(59,130,246,.16); color: #1d4ed8; }
.fin-badge.stg-active { background: rgba(34,197,94,.16); color: #15803d; } .fin-badge.stg-closing { background: rgba(249,115,22,.18); color: #c2410c; }
.fin-badge.stg-completed { background: rgba(100,116,139,.18); color: #475569; } .fin-badge.stg-lost { background: rgba(239,68,68,.14); color: #b91c1c; }
html.dark .fin-badge.stg-awaiting { color: #fcd34d; } html.dark .fin-badge.stg-approved { color: #93c5fd; } html.dark .fin-badge.stg-active { color: #86efac; } html.dark .fin-badge.stg-closing { color: #fdba74; } html.dark .fin-badge.stg-completed { color: #aab1be; } html.dark .fin-badge.stg-lost { color: #fca5a5; }
.fin-badge.hl-ok { background: rgba(34,197,94,.16); color: #15803d; } .fin-badge.hl-warn { background: rgba(245,158,11,.2); color: #b45309; } .fin-badge.hl-bad { background: rgba(239,68,68,.16); color: #b91c1c; }
html.dark .fin-badge.hl-ok { color: #86efac; } html.dark .fin-badge.hl-warn { color: #fcd34d; } html.dark .fin-badge.hl-bad { color: #fca5a5; }
.pj-card { transition: transform .12s ease, border-color .12s ease; } .pj-card:hover { transform: translateY(-1px); border-color: var(--hx-accent); }

/* the shared button / pick / tag / input pieces (born in the first interfaces, used everywhere) */
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .85rem; padding: .7rem 1.1rem; font-size: 16px; font-weight: 700; background: var(--hx-accent); color: #fff; border: 1px solid transparent; }
.bt-btn:disabled { opacity: .55; }
.bt-btn.ghost { background: transparent; color: var(--hx-text); border-color: var(--hx-border); font-weight: 600; }
.bt-btn.ghost:hover { border-color: var(--hx-accent); background: var(--hx-accent-soft); }
.bt-btn.sm { padding: .4rem .8rem; font-size: 14px; border-radius: .7rem; }
.bt-btn.block { width: 100%; }
.bt-pick { border: 1px solid var(--hx-border); border-radius: .8rem; padding: .5rem .8rem; font-size: 14px; font-weight: 600; background: var(--hx-surface); color: var(--hx-text); text-align: left; }
.bt-pick[aria-pressed="true"] { border-color: var(--hx-accent); background: var(--hx-accent-soft); color: var(--hx-accent); }
.bt-tag { display: inline-block; border-radius: 99px; padding: .08rem .55rem; font-size: 12px; font-weight: 700; background: var(--hx-accent-soft); color: var(--hx-accent); }
.bt-tag.warn { background: rgba(245,158,11,.18); color: #b45309; }
.bt-tag.ok { background: rgba(34,197,94,.16); color: #15803d; }
.bt-tag.bad { background: rgba(239,68,68,.14); color: #b91c1c; }
html.dark .bt-tag.warn { color: #fcd34d; } html.dark .bt-tag.ok { color: #86efac; } html.dark .bt-tag.bad { color: #fca5a5; }
.bt-in { width: 100%; border: 1px solid var(--hx-border); border-radius: .75rem; padding: .6rem .8rem; font-size: 16px; background: var(--hx-surface); color: var(--hx-text); }
.bt-in:focus { outline: none; border-color: var(--hx-accent); box-shadow: 0 0 0 3px var(--hx-accent-soft); }

/* Fase 62: the account menu holds what is used now and then; the sidebar and the top bar keep only the daily things */
html.acct-menu #sidebar .mt-auto, html.acct-menu #brain, html.acct-menu #logout-btn, html.acct-menu #settings-btn, html.acct-menu #admin-link { display: none !important; }
html.acct-menu #sidebar #acct-card { margin-top: auto; }

/* Fase 62: the date is shown on Home only; the Financial page's own "+ New Job" repeats the one in the top bar */
#shell section:not(#home-view) [data-page-date] { display: none; }
#fin-newjob { display: none !important; }


/* ---------- Fase 71: the new identity on every page ---------- */
body { font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif; }
html.dark body { background: radial-gradient(ellipse 80% 40% at 50% -10%, #0C1B30 0%, rgba(4,7,13,0) 60%) fixed, #04070D; }
h1, h2, .sb-item, .bt-btn, #chat-card header { font-family: var(--hx-hud); letter-spacing: .02em; }
h3 { letter-spacing: .01em; }
.hx-card { border-radius: .75rem; }
html.dark .hx-card { box-shadow: 0 0 0 1px rgba(70,227,245,.03), 0 10px 30px rgba(0,0,0,.25); }
html.dark .hx-card:hover { border-color: #1F4468; }
.bt-btn { border-radius: .5rem; letter-spacing: .04em; }
html.dark .bt-btn:not(.ghost) { color: #04070D; box-shadow: 0 0 18px rgba(70,227,245,.25); }
html.dark .bg-brand-500, html.dark .bg-brand-600 { background-color: #46E3F5; }
html.dark .bg-brand-500.text-white, html.dark .bg-brand-600.text-white, html.dark .bg-brand-500 .text-white { color: #04070D; }
html.dark .hover\:bg-brand-600:hover { background-color: #7FEFFB; }
html.dark .border-brand-500, html.dark .ring-brand-500 { border-color: #46E3F5; --tw-ring-color: #46E3F5; }
.sb-item[aria-current="page"], .sb-item.active { box-shadow: inset 2px 0 0 var(--hx-accent); }
html.dark .sb-item[aria-current="page"], html.dark .sb-item.active { color: #46E3F5; background: rgba(70,227,245,.08); }
:focus-visible { outline-color: var(--hx-accent); }
/* a team member (Fase 64): no Subscription, Integrations or Team */
html[data-team-role="member"] [data-member-hide], html[data-team-role="member"] [data-go="integrations"], html[data-team-role="member"] [data-go="subscription"], html[data-team-role="member"] [data-go="members"], html[data-team-role="member"] [data-go="referrals"], html[data-team-role="member"] [data-go="fin"], html[data-team-role="member"] [data-go="quotes"], html[data-team-role="member"] [data-go="inbox"], html[data-team-role="member"] [data-go="settings"] { display: none !important; }

/* ---- Prompt 15-C: the jobs Gantt (static/gantt_jobs.js): toolbar, accordion arrow without the grid, the edit panel ---- */
.gj-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .6rem; }
.gj-follow { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; font-weight: 600; color: var(--hx-text); cursor: pointer; min-height: 32px; }
.gj-follow input { width: 1rem; height: 1rem; accent-color: var(--hx-accent); }
.gj-btn { border: 1px solid var(--hx-border); background: var(--hx-surface); color: var(--hx-text); border-radius: .5rem; padding: .35rem .8rem; font-size: 13px; font-weight: 600; min-height: 32px; }
.gj-btn:hover { background: var(--hx-accent-soft); } .gj-btn.primary { background: var(--hx-accent); color: var(--hx-on-accent); border-color: var(--hx-accent); }
.gj-btn:focus-visible, .gj-input:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 2px; }
.gj-back { position: fixed; inset: 0; z-index: 80; background: rgba(2, 8, 20, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gj-panel { width: min(100%, 360px); background: var(--hx-surface); color: var(--hx-text); border: 1px solid var(--hx-border); border-radius: 1rem; padding: 1.1rem; display: grid; gap: .7rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.gj-ptitle { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.gj-field { display: grid; gap: .25rem; font-size: 12px; font-weight: 600; color: var(--hx-muted); }
.gj-input { width: 100%; border: 1px solid var(--hx-border); background: var(--hx-bg); color: var(--hx-text); border-radius: .5rem; padding: .45rem .6rem; font-size: 14px; min-height: 38px; }
.gj-days { display: grid; gap: .25rem; } .gj-days-head { font-size: 12px; font-weight: 600; color: var(--hx-muted); } .gj-days-row { display: flex; gap: .75rem; } .gj-day { display: flex; align-items: center; gap: .35rem; font-size: 13px; }
.gj-note { font-size: 12px; color: var(--hx-muted); } .gj-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.gt-label > .gt-fold { color: var(--hx-text); margin-left: 0; margin-right: .1rem; width: 1.4rem; height: 1.4rem; font-size: 16px; }
