/*
 * Hub's shared look: tokens, the page frame (left menu, phone tabs) and a few
 * building blocks for new pages. Every signed-in page loads it after its own
 * styles (CssJsScriptUtil.getHeaderCss), so old pages pick up the frame and the
 * type, and new pages use the hub-* classes and the tokens below.
 *
 * Tokens: pages use var(--hub-x, fallback) so they still read well on their own.
 * --hub-accent is each office's own colour (Settings, Office setup), set on :root
 * by the frame; the rest are Hub's, and follow the shared Redbracket look
 * (warm neutrals, the same as rb.vitan.in, Rb Find and Rb Site).
 */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
	--hub-accent: #B3262D;
	--hub-on-accent: #FFFFFF;
	--hub-ink: #1C1B1A;
	--hub-muted: #5C5752;
	--hub-line: #E4DFDA;
	--hub-bg: #F7F4F0;
	--hub-panel: #FFFFFF;
	--hub-link: #1F5FBF;
	--hub-ok: #2F6B3A;
	--hub-warn: #8A5A00;
	--hub-bad: #B3262D;
	--hub-info-bg: #EEF3FC;
	--hub-info-ink: #1F4E99;
	--hub-radius: 6px;
	--hub-radius-lg: 12px;
	--hub-font: 'IBM Plex Sans';
	--hub-mono: 'IBM Plex Mono';
	--hub-nav: #1C1B1A;
	--hub-nav-ink: #D9D4CE;
	--hub-nav-muted: #A39A91;
	--hub-nav-on: #2E2B28;
	--hub-nav-w: 232px;
	--hub-tabs-h: 60px;
}

/* ---------- the page scrolls ---------- */

/* The old styles (rb_common.css, fileModule.css) set body { overflow: hidden }, which locks the whole window:
   a mouse wheel, trackpad or finger could not move a page that ran past the window. The window scrolls
   again on every framed page, except while the phone menu or a dialog is open. */
body.hub-framed:not(.hub-menu-open):not(.modal-open) { overflow-x: hidden !important; overflow-y: auto !important; }

/* ---------- type for every framed page ---------- */

body.hub-framed {
	font-family: var(--hub-font), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--hub-ink);
	-webkit-text-size-adjust: 100%;
}
body.hub-framed .hub-mono, body.hub-framed code { font-family: var(--hub-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
body.hub-framed :focus-visible { outline: 2px solid var(--hub-link); outline-offset: 2px; }

/* ---------- the left menu ---------- */

.hub-nav {
	position: fixed; top: 0; bottom: 0; left: 0; width: var(--hub-nav-w); z-index: 1035;
	box-sizing: border-box; display: flex; flex-direction: column; gap: 18px;
	padding: 20px 14px 14px; background: var(--hub-nav); color: var(--hub-nav-ink);
	font: 14px/1.35 var(--hub-font), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	overflow-y: auto; overscroll-behavior: contain;
}
.hub-nav * { box-sizing: border-box; }
/* a short window scrolls the menu rather than squeezing it */
.hub-nav > * { flex-shrink: 0; }
.hub-nav a { text-decoration: none; }
.hub-nav-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: #FFFFFF; min-height: 36px; }
.hub-nav-mark {
	flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--hub-radius); display: flex; align-items: center; justify-content: center;
	background: var(--hub-accent); color: var(--hub-on-accent); font-weight: 700; font-size: 15px; overflow: hidden;
}
.hub-nav-mark img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.hub-nav-office { display: flex; flex-direction: column; min-width: 0; }
.hub-nav-office b { color: #FFFFFF; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-nav-office span { color: var(--hub-nav-muted); font-size: 12px; }
.hub-nav .hub-nav-new {
	height: 40px; padding: 0 12px; margin: 0; border: 0; border-radius: 8px; cursor: pointer; width: 100%;
	background: var(--hub-accent); color: var(--hub-on-accent); font: 600 14px/40px var(--hub-font), system-ui, sans-serif;
}
.hub-nav .hub-nav-new:hover { filter: brightness(1.08); }
.hub-new-menu {
	position: absolute; z-index: 5; box-sizing: border-box; display: flex; flex-direction: column; padding: 6px; border-radius: 10px; background: #FFFFFF;
	box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.hub-new-menu button {
	text-align: left; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
	color: var(--hub-ink); font: 500 14px var(--hub-font), system-ui, sans-serif;
}
.hub-new-menu button:hover, .hub-new-menu button:focus { background: var(--hub-bg); }
.hub-nav-links { display: flex; flex-direction: column; gap: 2px; }
.hub-nav-links a {
	display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 12px;
	border-radius: 8px; color: var(--hub-nav-ink); font-size: 14px;
}
.hub-nav-links a:hover, .hub-nav-links a:focus { background: #20232A; color: #FFFFFF; }
.hub-nav-links a.on { background: var(--hub-nav-on); color: #FFFFFF; font-weight: 500; box-shadow: inset 3px 0 0 var(--hub-accent); }
.hub-nav-group { font-size: 11px; color: var(--hub-nav-muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.hub-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #2E3139; padding-top: 10px; }
.hub-nav-links a.hub-nav-me { justify-content: flex-start; }
.hub-nav-me { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; color: var(--hub-nav-ink); }
.hub-nav-me .hub-nav-avatar {
	flex: 0 0 auto; width: 32px; height: 32px; border-radius: 16px; background: #6C3BD1; color: #FFFFFF; font: 600 12px var(--hub-font), sans-serif;
	font-style: normal; display: flex; align-items: center; justify-content: center;
}
.hub-nav-me .hub-nav-who { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.hub-nav-me b { color: #FFFFFF; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-nav-me small { color: var(--hub-nav-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-nav-close { display: none; }

/* a short window (a laptop, or a window not at full height): tighter rows, so more of the menu fits */
@media (max-height: 860px) {
	.hub-nav { gap: 12px; padding-top: 14px; }
	.hub-nav-links a { min-height: 32px; }
	.hub-nav-group { padding: 10px 12px 4px; }
	.hub-nav .hub-nav-new { height: 36px; line-height: 36px; }
	.hub-nav .hub-nav-ask { margin-top: -2px; }
	.hub-nav-foot { padding-top: 6px; }
	.hub-nav-me { padding-top: 4px; }
}

/* ---------- showing there is more: scroll bars that stay visible, and cues where content continues ---------- */

/* Macs and phones hide scroll bars until you scroll, so nobody could tell the menu or a page went on.
   Styled bars stay visible in Chrome, Edge and Safari; Firefox shows its own thin bars. */
.hub-framed-root::-webkit-scrollbar, body.hub-framed ::-webkit-scrollbar { width: 10px; height: 10px; }
.hub-framed-root::-webkit-scrollbar-track, body.hub-framed ::-webkit-scrollbar-track { background: transparent; }
.hub-framed-root::-webkit-scrollbar-thumb, body.hub-framed ::-webkit-scrollbar-thumb {
	background: #C4C6CC; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box;
}
.hub-framed-root::-webkit-scrollbar-thumb:hover, body.hub-framed ::-webkit-scrollbar-thumb:hover { background-color: #9DA1AB; }
body.hub-framed .hub-nav::-webkit-scrollbar { width: 8px; }
body.hub-framed .hub-nav::-webkit-scrollbar-thumb { background-color: #4A4E58; }
body.hub-framed .hub-nav::-webkit-scrollbar-thumb:hover { background-color: #6A6F7A; }
@supports not selector(::-webkit-scrollbar) {
	.hub-nav { scrollbar-width: thin; scrollbar-color: #4A4E58 transparent; }
}

/* the menu: a fade and "More" at the bottom while items are below, a fade at the top once scrolled (hub.js) */
.hub-nav-cue {
	position: fixed; left: 0; width: var(--hub-nav-w); z-index: 2; pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.hub-nav-cue.top { top: 0; height: 28px; background: linear-gradient(var(--hub-nav), rgba(22, 24, 29, 0)); }
.hub-nav-cue.bottom {
	bottom: 0; height: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
	background: linear-gradient(rgba(22, 24, 29, 0), var(--hub-nav) 70%);
}
.hub-nav-cue.bottom button {
	pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; cursor: pointer;
	border: 1px solid #3A3E48; background: #23262E; color: #FFFFFF; font: 500 12.5px var(--hub-font), system-ui, sans-serif;
}
.hub-nav-cue.bottom button:hover { background: var(--hub-nav-on); }
.hub-nav.hub-more-above .hub-nav-cue.top, .hub-nav.hub-more-below .hub-nav-cue.bottom { opacity: 1; }
.hub-nav:not(.hub-more-below) .hub-nav-cue.bottom button { visibility: hidden; }

/* the page: a fade and "More below" at the bottom of the window until you scroll (hub.js) */
.hub-page-more {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: 64px; display: flex; align-items: flex-end; justify-content: center;
	padding-bottom: 12px; pointer-events: none; background: linear-gradient(rgba(245, 245, 243, 0), rgba(245, 245, 243, .92));
}
.hub-page-more[hidden] { display: none; }
.hub-page-more button {
	pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; cursor: pointer;
	border: 1px solid var(--hub-line); background: var(--hub-panel); color: var(--hub-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	font: 500 13px var(--hub-font), system-ui, sans-serif;
}
.hub-page-more button:hover { border-color: var(--hub-ink); }

/* wide tables scroll sideways inside their box, with a shadow on the side that has more (hub.js) */
.hub-xwrap { position: relative; max-width: 100%; }
.hub-xscroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.hub-xwrap::before, .hub-xwrap::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 22px; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 2;
}
.hub-xwrap::before { left: 0; background: linear-gradient(to right, rgba(22, 24, 29, .22), rgba(22, 24, 29, 0)); }
.hub-xwrap::after { right: 0; background: linear-gradient(to left, rgba(22, 24, 29, .22), rgba(22, 24, 29, 0)); }
.hub-xwrap.hub-more-left::before, .hub-xwrap.hub-more-right::after { opacity: 1; }

/* ---------- phone tabs and the menu drawer ---------- */

.hub-tabs { display: none; }
.hub-scrim { display: none; }

@media (min-width: 1024px) {
	body.hub-framed { padding-left: var(--hub-nav-w) !important; }
	.hub-page-more { left: var(--hub-nav-w); }
	/* Bootstrap's fixed-width containers would overflow beside the menu */
	body.hub-framed .container, body.hub-framed .cus-cntnr-wdth { width: auto !important; max-width: 1170px; }
	/* the same for the old dashboard's timeline and the Files drop area */
	body.hub-framed .tmlne-cntnt-cntr { width: auto !important; max-width: 1170px; }
	body.hub-framed #inputDragFile { max-width: calc(100vw - var(--hub-nav-w) - 32px); }
}

@media (prefers-reduced-motion: reduce) {
	.hub-nav { transition: none !important; }
}

@media (max-width: 1023.98px) {
	.hub-nav {
		transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s;
		width: min(300px, 86vw); z-index: 1060; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 10px 40px rgba(0,0,0,.35);
	}
	body.hub-menu-open .hub-nav { transform: none; visibility: visible; transition: transform .2s ease; }
	body.hub-menu-open { overflow: hidden; }
	.hub-nav-close {
		display: flex; position: absolute; top: 14px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 8px;
		background: transparent; color: var(--hub-nav-ink); font-size: 22px; align-items: center; justify-content: center; cursor: pointer;
	}
	.hub-nav-brand { padding-right: 44px; }
	.hub-nav-cue { width: min(300px, 86vw); }
	.hub-page-more { bottom: calc(var(--hub-tabs-h) + env(safe-area-inset-bottom)); }
	.hub-scrim { position: fixed; inset: 0; background: rgba(10,11,14,.45); z-index: 1055; }
	body.hub-menu-open .hub-scrim { display: block; }

	.hub-tabs {
		display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1034;
		min-height: var(--hub-tabs-h); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-sizing: border-box;
		background: var(--hub-panel); border-top: 1px solid var(--hub-line);
		font: 500 11px var(--hub-font), system-ui, -apple-system, sans-serif;
	}
	.hub-tabs a, .hub-tabs button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px;
		border: 0; background: transparent; color: var(--hub-muted); text-decoration: none; font: inherit; cursor: pointer; border-radius: 8px;
	}
	.hub-tabs a.on { color: var(--hub-ink); font-weight: 600; }
	.hub-tabs a.on svg { color: var(--hub-accent); }
	body.hub-framed { padding-bottom: calc(var(--hub-tabs-h) + env(safe-area-inset-bottom)) !important; }
	/* the old top bar keeps one row: the timer and your account at the right */
	body.hub-framed #rdheadone .header-left-div:not(:has(#shortcut)) { display: none !important; }
	body.hub-framed #rdheadone .right_div { position: absolute; top: 0; right: 12px; width: auto !important; }
	/* one slim band on a phone: the timer and your account sit inside it, not half above the screen (review, 28 Nov 2026);
	   hub.js moves the page up under it */
	body.hub-framed #rdheadone { height: 52px !important; min-height: 0 !important; }
	body.hub-framed #rdheadone .right_div { height: 52px; display: flex !important; align-items: center; }
	body.hub-framed #rdheadone .right_div * { margin-top: 0 !important; top: auto !important; }
	body.hub-framed #rdheadone .right_div a { white-space: nowrap; }
	body.hub-framed #inputDragFile { max-width: calc(100vw - 48px); }
	/* the old time zone notice is 350px wide from a third of the way across: keep it on a phone's screen */
	body.hub-framed #timezonediffered { left: max(12px, min(36vw, 100vw - 362px)); min-width: 0; max-width: calc(100vw - 24px); }
}

/* ---------- the old top bar, quietened (it keeps +, search, timer and your account menu) ---------- */

/* the old menu button, + menu and module links: the left menu has them now */
body.hub-framed #shortcut,
body.hub-framed .navbar-nav-custom,
body.hub-framed #sidebar,
body.hub-framed .header-left-div .main-ul > li:has(.comp_title) { display: none !important; }
/* Hub's own pages have their own title: no old grey strip above it */
body.hub-framed.hub-own-title #rdheadtwo { display: none !important; }
body.hub-framed #rdheadone .hub-timer-word { margin: 0 4px 0 6px; font-size: 13px; font-weight: 500; vertical-align: 2px; }
.hub-no-timers { position: absolute; top: 100%; right: 0; z-index: 1050; margin-top: 6px; padding: 8px 12px; background: #fff; color: #1b1d22; border: 1px solid #e4dfda; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: 13px; white-space: nowrap; cursor: default; }
.hub-no-timers a { margin-left: 6px; color: #b3262d; font-weight: 600; text-decoration: underline; }
.li-timertray { position: relative; }
body #rdheadone a[data-hub-timer] .fa-hourglass-start { transition: color .2s; }
body #rdheadone a[data-hub-timer="none"] .fa-hourglass-start { color: #c9302c !important; }
body #rdheadone a[data-hub-timer="paused"] .fa-hourglass-start { color: #e0a800 !important; }
body #rdheadone a[data-hub-timer="running"] .fa-hourglass-start { color: #1e8e3e !important; }
/* the operator pages' old "Master Management Area" title: the left menu names the area now */
body.hub-framed .master-admin-header .comp_title { display: none !important; }
body.hub-framed #rdheadone, body.hub-framed .rdheadone {
	background: var(--hub-panel) !important; border-bottom: 1px solid var(--hub-line); box-shadow: none !important;
}
body.hub-framed #rdheadone a, body.hub-framed #rdheadone .fa, body.hub-framed #rdheadone .glyphicon,
body.hub-framed #rdheadone .page_title, body.hub-framed #rdheadone .comp_title { color: var(--hub-ink) !important; }
body.hub-framed #rdheadone .dropdown-menu a { color: var(--hub-ink) !important; }
body.hub-framed #rdheadone input[type=text], body.hub-framed #rdheadone input[type=search] {
	background: var(--hub-bg) !important; color: var(--hub-ink) !important; border: 1px solid var(--hub-line) !important; border-radius: 8px !important;
}
body.hub-framed #rdheadone input::placeholder { color: var(--hub-muted) !important; }
body.hub-framed #rdheadone .master-plus-icon, body.hub-framed #rdheadone .new-master-plus-icon { color: var(--hub-ink) !important; }

/* ---------- building blocks for new pages ---------- */

.hub-card { background: var(--hub-panel); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-lg); }
.hub-lbl { font-size: 12px; font-weight: 600; color: var(--hub-muted); text-transform: uppercase; letter-spacing: .05em; }
.hub-muted { color: var(--hub-muted); }
.hub-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px;
	border: 1px solid #DCDDE2; background: var(--hub-panel); color: var(--hub-ink); font: 500 14px var(--hub-font), system-ui, sans-serif;
	cursor: pointer; text-decoration: none;
}
.hub-btn:hover { border-color: var(--hub-ink); color: var(--hub-ink); text-decoration: none; }
.hub-btn.dark { background: var(--hub-ink); border-color: var(--hub-ink); color: #FFFFFF; font-weight: 600; }
.hub-btn.accent { background: var(--hub-accent); border-color: var(--hub-accent); color: var(--hub-on-accent); font-weight: 600; }
.hub-btn[disabled] { opacity: .5; cursor: default; }
.hub-chip { font: 500 12px var(--hub-mono), ui-monospace, monospace; background: var(--hub-info-bg); color: var(--hub-info-ink); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.hub-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-tbl th { text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--hub-muted); text-transform: uppercase; letter-spacing: .05em; }
.hub-tbl td { padding: 13px 16px; border-top: 1px solid #EEEFF2; vertical-align: middle; }
.hub-seg { display: inline-flex; gap: 4px; background: #E9EAEC; padding: 4px; border-radius: 10px; }
.hub-seg a, .hub-seg button { padding: 8px 14px; border-radius: 7px; font-size: 14px; text-decoration: none; color: #3A3E47; border: 0; background: transparent; cursor: pointer; }
.hub-seg .on { background: var(--hub-panel); color: var(--hub-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

@media print {
	.hub-nav, .hub-tabs, .hub-scrim, .hub-page-more { display: none !important; }
	.hub-xscroll { overflow: visible; }
	body.hub-framed { padding: 0 !important; }
}

/* signed out of an open page by an update to Hub (hub.js) */
.hub-reauth { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3000; display: flex; gap: 12px; align-items: center;
	max-width: calc(100% - 32px); padding: 12px 14px; border-radius: 10px; background: #16181D; color: #fff; font-size: 14px; line-height: 1.4;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.hub-reauth button { flex: none; padding: 7px 12px; border: 0; border-radius: 6px; background: #fff; color: #16181D; font: inherit; font-weight: 600; cursor: pointer; }

/* Ask Hub: the button under + New and its panel (resources/hub/ask.js) */
.hub-nav .hub-nav-ask {
	height: 36px; padding: 0 12px; margin: -6px 0 0; border: 1px solid #3A3E48; border-radius: 8px; cursor: pointer; width: 100%; text-align: left;
	background: transparent; color: var(--hub-nav-ink); font: 500 14px/34px var(--hub-font), system-ui, sans-serif;
}
.hub-nav .hub-nav-ask[hidden] { display: none; }
.hub-nav .hub-nav-ask::before { content: "?"; display: inline-block; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #3A3E48; color: #fff; font: 600 12px/18px var(--hub-font), system-ui, sans-serif; text-align: center; }
.hub-nav .hub-nav-ask:hover { background: var(--hub-nav-on); }
.hub-ask {
	position: fixed; z-index: 1060; top: 16px; left: calc(var(--hub-nav-w) + 16px); width: min(460px, calc(100vw - var(--hub-nav-w) - 32px)); max-height: calc(100vh - 32px);
	overflow: auto; background: var(--hub-panel); color: var(--hub-ink); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-lg);
	box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 14px 16px; font: 14px/1.5 var(--hub-font), system-ui, sans-serif;
}
.hub-ask[hidden] { display: none; }
.hub-ask-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
.hub-ask-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--hub-muted); }
.hub-ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hub-ask-form { display: flex; gap: 8px; align-items: flex-end; }
.hub-ask-form textarea { flex: 1; min-width: 0; resize: vertical; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); padding: 8px 10px; font: inherit; }
.hub-ask-go { border: 0; border-radius: var(--hub-radius); background: var(--hub-accent); color: var(--hub-on-accent); padding: 8px 16px; font: 600 14px var(--hub-font), system-ui, sans-serif; cursor: pointer; }
.hub-ask-go[disabled] { opacity: .6; cursor: default; }
.hub-ask-try { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hub-ask-try button { border: 1px solid var(--hub-line); background: var(--hub-bg); border-radius: 14px; padding: 2px 10px; font: 12.5px var(--hub-font), system-ui, sans-serif; cursor: pointer; color: var(--hub-ink); }
.hub-ask-a { margin: 10px 0 8px; overflow-wrap: anywhere; }
.hub-ask-ref { display: inline-block; min-width: 18px; padding: 0 4px; margin: 0 1px; border-radius: 9px; background: var(--hub-info-bg); color: var(--hub-info-ink); font-size: 11.5px; line-height: 18px; text-align: center; text-decoration: none; vertical-align: 1px; }
.hub-ask-src { list-style: none; margin: 0 0 8px; padding: 8px 0 0; border-top: 1px solid var(--hub-line); font-size: 13px; }
.hub-ask-src li { margin: 2px 0; }
.hub-ask-src a { color: var(--hub-link); text-decoration: none; }
.hub-ask-plan { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.hub-ask-plan li { margin: 0 0 6px; }
.hub-ask-plan label { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; margin: 0; }
.hub-ask-plan label input { margin-top: 3px; }
.hub-ask-plan li.bad { color: var(--hub-bad, #B42318); }
.hub-ask-plan small { color: var(--hub-muted, #667085); }
.hub-ask-src span { display: inline-block; min-width: 18px; border-radius: 9px; background: var(--hub-info-bg); color: var(--hub-info-ink); font-size: 11.5px; text-align: center; }
.hub-ask-rate { font-size: 13px; color: var(--hub-muted); }
.hub-ask-rate button { margin-left: 6px; border: 1px solid var(--hub-line); background: var(--hub-panel); border-radius: var(--hub-radius); padding: 1px 10px; cursor: pointer; font: inherit; }
.hub-ask-note { margin: 10px 0 0; font-size: 12px; color: var(--hub-muted); }
.hub-ask-wait { color: var(--hub-muted); }
.hub-ask-bad { color: var(--hub-bad); }
.hub-ask-unsure { color: #7a5500; background: #fdf8ec; border: 1px solid #f0d9a8; border-radius: 4px; padding: 6px 10px; margin: 8px 0; }
@media (max-width: 1023.98px) {
	.hub-ask { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(var(--hub-tabs-h) + 12px); max-height: calc(100vh - var(--hub-tabs-h) - 40px); }
}

/* Go to (resources/hub/goto.js): find a project, page or setting by name, from the menu or with Ctrl+K */
.hub-nav .hub-nav-goto {
	display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; margin: -6px 0 0; width: 100%;
	border: 1px solid #3A3E48; border-radius: 8px; cursor: pointer; background: transparent; color: var(--hub-nav-muted);
	font: 500 14px/34px var(--hub-font), system-ui, sans-serif; text-align: left;
}
.hub-nav .hub-nav-goto:hover { background: var(--hub-nav-on); color: var(--hub-nav-ink); }
.hub-nav .hub-nav-goto kbd { font: 11px/1 var(--hub-font), system-ui, sans-serif; padding: 3px 5px; border: 1px solid #3A3E48; border-radius: 4px; background: transparent; color: var(--hub-nav-muted); }
.hub-goto-back { position: fixed; inset: 0; z-index: 1070; background: rgba(16,18,24,.38); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.hub-goto { width: min(560px, 100%); background: var(--hub-panel, #fff); color: var(--hub-ink); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.3); overflow: hidden;
	font: 14px/1.4 var(--hub-font), system-ui, sans-serif; }
.hub-goto input { width: 100%; box-sizing: border-box; height: 50px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--hub-line); font: 16px var(--hub-font), system-ui, sans-serif; outline: none; }
.hub-goto ul { list-style: none; margin: 0; padding: 6px; max-height: min(420px, 60vh); overflow-y: auto; }
.hub-goto li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 6px; color: var(--hub-ink); text-decoration: none; }
.hub-goto li a small { color: var(--hub-muted); font-size: 12.5px; text-align: right; }
.hub-goto li a[aria-selected=true], .hub-goto li a:hover { background: var(--hub-bg); }
.hub-goto .hub-goto-none { padding: 12px 10px; color: var(--hub-muted); }

/* Help where people get stuck (help.js): "Need help?" on every page, its box, and "Tell Hub's team" under errors */
.hub-help-btn { position: fixed; right: 16px; bottom: 16px; z-index: 1031; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px;
	border: 1px solid #DCDDE2; border-radius: 999px; background: #fff; color: #16181D; font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 2px 10px rgba(16,18,24,.12); }
.hub-help-btn > span[aria-hidden] { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #16181D; color: #fff; font-weight: 600; font-size: 12px; }
.hub-help-btn:hover, .hub-help-btn:focus-visible { border-color: #16181D; }
.hub-help { position: fixed; right: 16px; bottom: 60px; z-index: 1062; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto; box-sizing: border-box;
	background: #fff; color: #16181D; border: 1px solid #DCDDE2; border-radius: 10px; box-shadow: 0 10px 30px rgba(16,18,24,.18); padding: 12px 14px 14px; font-size: 14px; }
.hub-help-head { display: flex; justify-content: space-between; align-items: center; }
.hub-help-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.hub-help-ways { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hub-help-ways a, .hub-help-ways button { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid #DCDDE2; border-radius: 8px;
	background: #F7F8FA; color: #16181D; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.hub-help-ways a:hover, .hub-help-ways button:hover { border-color: #16181D; }
.hub-help-ways [hidden] { display: none; }
.hub-help-sub { font-size: 13px; font-weight: 600; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #ECEDF0; }
/* Ask Hub lives in the one Help box now; its menu button stays only as the thing that opens it */
.hub-nav .hub-nav-ask { display: none !important; }
/* room under the last row, so the Help button never sits on top of it */
body.hub-framed::after { content: ""; display: block; height: 64px; }
.hub-help-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #5F636D; padding: 2px 6px; }
.hub-help-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.hub-help-kinds label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #DCDDE2; border-radius: 999px; padding: 4px 10px; margin: 0; font-weight: normal; font-size: 12.5px; cursor: pointer; }
.hub-help-kinds label:has(input:checked) { border-color: #16181D; box-shadow: inset 0 0 0 1px #16181D; }
.hub-help-kinds input[type=radio] { position: static !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; -webkit-appearance: auto !important; appearance: auto !important; width: auto !important; height: auto !important; margin: 0 !important; }
.hub-help textarea { width: 100%; min-height: 96px; box-sizing: border-box; border: 1px solid #DCDDE2; border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; }
.hub-help-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-help-files li { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #DCDDE2; border-radius: 999px; padding: 2px 2px 2px 10px; font-size: 12px; max-width: 100%; }
.hub-help-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.hub-help-files li small { color: #5F636D; }
.hub-help-files li button { border: 0; background: none; cursor: pointer; font-size: 15px; color: #5F636D; padding: 0 6px; }
.hub-help-row { margin-top: 8px; }
.hub-help-link, .hub-help-tell { border: 0; background: none; padding: 0; color: #2457C5; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.hub-help-link:disabled { color: #9A9DA5; text-decoration: none; cursor: default; }
.hub-help-tell { display: inline-block; margin: -8px 0 12px; }
.hub-help-msg { margin: 8px 0 0; font-size: 13px; color: #2D7A46; }
.hub-help-msg:empty { display: none; }
.hub-help-msg.err { color: #B42318; }
.hub-help-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: #5F636D; }
.hub-help-send { border: 0; border-radius: 6px; background: #16181D; color: #fff; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.hub-help-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 1023.98px) {
	.hub-help-btn { bottom: calc(var(--hub-tabs-h) + 12px + env(safe-area-inset-bottom)); right: 12px; padding: 0; width: 36px; justify-content: center; }
	.hub-help-btn-words { display: none; }
	.hub-help { right: 12px; left: 12px; width: auto; bottom: calc(var(--hub-tabs-h) + 56px + env(safe-area-inset-bottom)); max-height: calc(100vh - var(--hub-tabs-h) - 80px); }
}
@media print { .hub-help-btn, .hub-help, .hub-help-tell { display: none !important; } }

/* A small phone (320 px): the timers' hourglass keeps its place without its word, so it and the profile picture stay
   inside the screen (review D15, 28 Nov 2026) */
@media (max-width: 360px) {
	body.hub-framed #rdheadone .hub-timer-word { display: none !important; }
	body.hub-framed #rdheadone .right_div { max-width: calc(100vw - 56px); justify-content: flex-end; }
	body.hub-framed #rdheadone .right_div > * { flex-shrink: 1; min-width: 0; }
	/* the old style sheet shifts this list 157px to the right below 340px, off the screen (review re-test D15) */
	body.hub-framed #rdheadone .right_div > ul.list-unstyled.list-inline { right: auto !important; }
	body.hub-framed #rdheadone .timer-status-container { width: auto; }
}

/* the account menu under the profile picture (hub.js) */
body.hub-framed #rdheadone .dropdown-menu.hub-me-menu { right: 0; left: auto; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px 0; }
body.hub-framed #rdheadone .hub-me-menu .hub-me-menu-who { padding: 8px 16px 10px; border-bottom: 1px solid #e6e6e3; }
body.hub-framed #rdheadone .hub-me-menu .hub-me-menu-who b { display: block; font-size: 15px; color: #16181d; }
body.hub-framed #rdheadone .hub-me-menu .hub-me-menu-who small { display: block; font-size: 12.5px; color: #5b606b; overflow-wrap: anywhere; }
body.hub-framed #rdheadone .hub-me-menu > a { display: block; padding: 0 16px; line-height: 44px; font-size: 14.5px; color: #16181d; text-decoration: none; }
body.hub-framed #rdheadone .hub-me-menu > a:hover, body.hub-framed #rdheadone .hub-me-menu > a:focus-visible { background: #f2f2ef; }

/* ---------- icons say their state by colour, and their words on hover (Jagrut, 30 Nov 2026) ----------
   What is critical stays in words (page names, main actions, anything failing); an icon stands alone only for
   something non-critical where space is tight. Its colour says the state
   (green working, yellow paused or needs a look, red off or not working, grey finished), with a small
   shape in it as well (tick, two bars, cross, ring) so nobody has to tell the colours apart. Its words
   show when you point at it, focus it, or press and hold it on a phone or iPad (hub.js, data-tip). */
.hub-sig { display: inline-block; position: relative; width: 14px; height: 14px; border-radius: 50%; flex: none; vertical-align: -2px; margin-right: 6px; box-sizing: border-box; background: #1E8E3E; }
.hub-sig::before, .hub-sig::after { content: ""; position: absolute; box-sizing: border-box; }
/* working: a white tick */
.hub-sig.on::before { left: 4.5px; top: 2.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* paused, or needs a look: two white bars */
.hub-sig.paused { background: #E0A800; }
.hub-sig.paused::before, .hub-sig.paused::after { top: 3.5px; width: 2px; height: 7px; background: #fff; border-radius: 1px; }
.hub-sig.paused::before { left: 4px; }
.hub-sig.paused::after { left: 8px; }
/* off, or not working: a white cross */
.hub-sig.off { background: #C9302C; }
.hub-sig.off::before, .hub-sig.off::after { left: 6px; top: 3px; width: 2px; height: 8px; background: #fff; border-radius: 1px; transform: rotate(45deg); }
.hub-sig.off::after { transform: rotate(-45deg); }
/* finished or removed, nothing wrong: a grey ring */
.hub-sig.done { background: transparent; border: 2px solid #9AA0A6; }
@media (forced-colors: active) { .hub-sig { forced-color-adjust: none; } }

/* an icon-only button or link keeps a finger-sized target */
.hub-icon-btn { min-width: 36px; justify-content: center; }
.hub-icon-btn > [aria-hidden] { font-size: 1.15em; line-height: 1; }

/* the words, in one small box beside whatever is pointed at (hub.js) */
.hub-tip { position: fixed; z-index: 2000; max-width: min(280px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 6px; background: #1C1B1A; color: #fff;
	font: 500 12.5px/1.4 var(--hub-font), system-ui, -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none;
	opacity: 0; transition: opacity .12s; white-space: normal; overflow-wrap: anywhere; }
.hub-tip.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hub-tip { transition: none; } }
@media print { .hub-tip { display: none !important; } }

/* the Help button is the ? alone; "Help, and Hub's team" shows on hover */
.hub-help-btn { padding: 0; width: 36px; justify-content: center; }
.hub-help-btn .hub-help-btn-words { display: none; }

