/*
 * Octa GI shell.
 *
 * Every colour, space and radius here comes from the Console design system, which is enqueued at
 * priority 100; this loads at 110 so those tokens are already defined. No new palette: the rail is
 * the one inverted surface, and lime is spent only on the active rail item and a primary button.
 */

.octa-gi-shell {
	display: grid;
	grid-template-columns: var(--octa-console-rail-width, 260px) minmax(0, 1fr);
	min-height: 70vh;
	background: var(--octa-console-color-canvas, #f7f8f4);
	color: var(--octa-console-color-ink, #102725);
	font-family: var(--octa-console-font-sans, inherit);
}

/* Rail ------------------------------------------------------------------- */

.octa-gi-rail {
	background: var(--octa-console-color-ink, #102725);
	color: var(--octa-console-color-cream, #f5f3ea);
	padding: var(--octa-console-space-5, 24px) var(--octa-console-space-4, 18px);
	display: flex;
	flex-direction: column;
	gap: var(--octa-console-space-5, 24px);
}

.octa-gi-rail-group-label {
	font-size: var(--octa-console-text-micro, 11px);
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .62;
	margin: 0 0 var(--octa-console-space-2, 8px);
}

.octa-gi-rail ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.octa-gi-rail-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--octa-console-space-2, 8px) var(--octa-console-space-3, 12px);
	border-radius: var(--octa-console-radius-control, 8px);
	color: inherit;
	text-decoration: none;
	line-height: var(--octa-console-leading-tight, 1.25);
}

.octa-gi-rail-link:hover,
.octa-gi-rail-link:focus-visible { background: rgba(255, 255, 255, .08); }

/* The one place the accent is spent in the rail. */
.octa-gi-rail-link.is-current {
	background: var(--octa-console-color-lime, #d9f77e);
	color: var(--octa-console-color-ink, #102725);
	font-weight: 600;
}

.octa-gi-rail-label { font-size: var(--octa-console-text-control, 15px); }

/*
 * The qualifier says a service cannot start new work. The link stays a link: disabling it is what
 * would put someone's finished work out of reach during an outage.
 */
.octa-gi-rail-qualifier {
	font-size: var(--octa-console-text-micro, 11px);
	opacity: .66;
}

.octa-gi-rail-link.is-current .octa-gi-rail-qualifier { opacity: .78; }

/* Main ------------------------------------------------------------------- */

.octa-gi-main { min-width: 0; display: flex; flex-direction: column; }

.octa-gi-header {
	display: flex;
	align-items: baseline;
	gap: var(--octa-console-space-3, 12px);
	padding: var(--octa-console-space-4, 18px) var(--octa-console-gutter, 24px);
	border-bottom: 1px solid var(--octa-console-color-line, #dfe2d8);
}

.octa-gi-wordmark { font-weight: 700; letter-spacing: -.01em; }
.octa-gi-header-context { color: var(--octa-console-color-muted, #5d6b66); font-size: var(--octa-console-text-meta, 13px); }

.octa-gi-content {
	padding: var(--octa-console-space-6, 32px) var(--octa-console-gutter, 24px);
	display: flex;
	flex-direction: column;
	gap: var(--octa-console-section-gap, 28px);
}

.octa-gi-greeting {
	font-size: var(--octa-console-heading-2, 28px);
	line-height: var(--octa-console-leading-tight, 1.2);
	margin: 0;
}

/* Chips ------------------------------------------------------------------ */

.octa-gi-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--octa-console-space-3, 12px);
}

.octa-gi-chip {
	display: flex;
	flex-direction: column;
	gap: var(--octa-console-space-2, 8px);
	padding: var(--octa-console-space-4, 18px);
	background: var(--octa-console-color-paper, #fff);
	border: 1px solid var(--octa-console-color-line, #dfe2d8);
	border-radius: var(--octa-console-radius-card, 12px);
	box-shadow: var(--octa-console-shadow-card, none);
	color: inherit;
	text-decoration: none;
}

a.octa-gi-chip:hover,
a.octa-gi-chip:focus-visible { border-color: var(--octa-console-color-green, #144f48); }

.octa-gi-chip.is-disabled { background: var(--octa-console-color-cream, #f5f3ea); box-shadow: none; }
.octa-gi-chip-label { font-weight: 600; }

/* Visible text, never a tooltip: a reason nobody can see is not a reason. */
.octa-gi-chip-reason {
	font-size: var(--octa-console-text-meta, 13px);
	color: var(--octa-console-color-muted, #5d6b66);
}

.octa-gi-chip-open { font-size: var(--octa-console-text-meta, 13px); align-self: flex-start; }

/* Panels ----------------------------------------------------------------- */

.octa-gi-panel {
	background: var(--octa-console-color-paper, #fff);
	border: 1px solid var(--octa-console-color-line, #dfe2d8);
	border-radius: var(--octa-console-radius-panel, 14px);
	padding: var(--octa-console-panel-padding, 20px);
}

.octa-gi-panel-title { font-size: var(--octa-console-heading-4, 18px); margin: 0 0 var(--octa-console-space-3, 12px); }

.octa-gi-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.octa-gi-recent-item {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr) minmax(100px, 1fr);
	gap: var(--octa-console-space-3, 12px);
	padding: var(--octa-console-space-3, 12px) 0;
	border-bottom: 1px solid var(--octa-console-color-line, #dfe2d8);
}

.octa-gi-recent-item:last-child { border-bottom: 0; }
.octa-gi-recent-service,
.octa-gi-recent-state { color: var(--octa-console-color-muted, #5d6b66); font-size: var(--octa-console-text-meta, 13px); }

.octa-gi-button {
	display: inline-block;
	padding: 0 var(--octa-console-space-4, 18px);
	line-height: var(--octa-console-control-height, 42px);
	border-radius: var(--octa-console-radius-control, 8px);
	background: var(--octa-console-color-green, #144f48);
	color: var(--octa-console-color-cream, #f5f3ea);
	text-decoration: none;
	font-weight: 600;
}

/* Narrow --------------------------------------------------------------- */

/*
 * The rail switches service; that is not a per-screen action, so it does not become a bottom bar.
 * Without JavaScript it remains above the content. The enhanced sheet is defined below.
 */
@media (max-width: 900px) {
	.octa-gi-shell { grid-template-columns: minmax(0, 1fr); }
	.octa-gi-rail { flex-direction: row; overflow-x: auto; gap: var(--octa-console-space-4, 18px); }
	.octa-gi-rail ul { flex-direction: row; gap: var(--octa-console-space-2, 8px); }
	.octa-gi-rail-group-label { white-space: nowrap; }
}

@media (max-width: 480px) {
	.octa-gi-chips { grid-template-columns: minmax(0, 1fr); }
	/* Stacked, because three columns at this width is unreadable. */
	.octa-gi-recent-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Progressive enhancement: navigation remains visible when scripts are unavailable. */
.octa-gi-shell [hidden] { display: none !important; }
.octa-gi-skip { position: absolute; left: -10000px; }
.octa-gi-skip:focus { left: 16px; top: 16px; z-index: 10002; background: white; padding: 12px; }
.octa-gi-shell :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.octa-gi-menu-toggle, .octa-gi-menu-close {
	min-height: 44px; padding: 8px 12px; border: 1px solid currentColor;
	border-radius: var(--octa-console-radius-control, 8px); color: inherit; background: transparent; cursor: pointer;
}
.octa-gi-assurance.octa-ssa-workspace { width: 100%; max-width: none; margin: 0; padding: 0; }
.octa-gi-assurance .octa-ssa-hero { min-width: 0; }
.octa-gi-workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.octa-gi-workspace-tabs a { padding: 10px 16px; color: inherit; border-bottom: 3px solid transparent; text-decoration: none; }
.octa-gi-workspace-tabs a[aria-selected="true"] { border-color: var(--octa-console-color-green, #144f48); font-weight: 700; }
.octa-gi-content code { overflow-wrap: anywhere; }
@media (max-width: 900px) {
	.octa-gi-rail, .octa-gi-rail ul { flex-direction: column; }
	.octa-gi-shell.is-menu-open > .octa-gi-rail {
		position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); box-sizing: border-box;
		z-index: 10001; overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5);
	}
	.octa-gi-header { flex-wrap: wrap; }
	.octa-gi-content { padding: 24px 16px; }
}

/* Scope above the console/theme typography rules, including headings on inverted panels. */
body.octa-console-page .entry-content .octa-gi-shell .octa-gi-rail a {
 color: var(--octa-console-color-cream, #f5f3ea);
}
body.octa-console-page .entry-content .octa-gi-shell .octa-gi-rail a.is-current {
 color: var(--octa-console-color-ink, #102725);
}
body.octa-console-page .entry-content .octa-gi-shell .octa-gi-rail h2 {
 color: var(--octa-console-color-cream, #f5f3ea);
 font-size: var(--octa-console-text-micro, 11px); line-height: 1.3; margin: 0 0 8px;
}

/* Document Intelligence shares the service shell; Console Master still owns its tabs. */
.octa-gi-document-intelligence { margin: 0; max-width: none; padding: 0; }
.octa-gi-di-tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--octa-console-color-line, #dfe2d8); margin-bottom: 24px; }
.octa-gi-di-tabs [role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; }
.octa-gi-di-tabs a { color: var(--octa-console-color-ink, #102725); padding: 12px 8px; text-decoration: none; font-size: 14px; }
.octa-gi-di-tabs [aria-selected="true"] { border-bottom: 3px solid var(--octa-console-color-green, #144f48); font-weight: 700; }
.octa-gi-di-tabs a:focus-visible { outline: 2px solid var(--octa-console-color-green, #144f48); outline-offset: 2px; }
.octa-gi-document-intelligence .octa-ai-hero { padding: 28px; min-height: 0; border-radius: 12px; background: var(--octa-console-color-paper, #fff); color: var(--octa-console-color-ink, #102725); box-shadow: none; border: 1px solid var(--octa-console-color-line, #dfe2d8); }
.octa-gi-document-intelligence .octa-ai-hero::before, .octa-gi-document-intelligence .octa-ai-hero::after { display: none; }
body.octa-console-page .entry-content .octa-gi-document-intelligence .octa-ai-hero h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--octa-console-color-ink, #102725); }
.octa-gi-document-intelligence .octa-ai-hero p { color: var(--octa-console-color-muted, #5d6b66); }
.octa-gi-document-intelligence .octa-ai-security-mark { color: var(--octa-console-color-green, #144f48); border-color: var(--octa-console-color-line, #dfe2d8); }
.octa-gi-document-intelligence .octa-ai-panel { padding: 24px; border-radius: 12px; }
.octa-gi-document-intelligence .octa-ai-panel-heading h2 { font-size: 24px; }
.octa-gi-document-intelligence .octa-ai-panel-heading { flex-wrap: wrap; }
/* The upload form uses the section's full width, like the analysis list (owner's request, 7 October 2026). */
.octa-gi-document-intelligence .octa-ai-upload-form { max-width: none; }
.octa-gi-document-intelligence .octa-ai-main, .octa-gi-document-intelligence .octa-ai-panel, .octa-gi-document-intelligence .octa-doc-agent-record { min-width: 0; }
.octa-gi-document-intelligence code, .octa-gi-document-intelligence .octa-doc-agent-summary { overflow-wrap: anywhere; }
.octa-ai-job.is-unavailable .octa-ai-job-spinner { animation: none; }
@media (max-width: 600px) {
 .octa-gi-document-intelligence .octa-ai-panel, .octa-gi-document-intelligence .octa-ai-hero { padding: 16px; }
 .octa-gi-di-tabs { gap: 4px; }
 .octa-gi-di-tabs [role="tablist"] { gap: 2px; }
 .octa-gi-di-tabs a { padding: 10px 6px; }
}

/* Account remains Identity-owned, with its local sections above the content. */
.octa-gi-account .octa-account { margin: 0; padding: 0; max-width: none; }
.octa-gi-account .octa-account-layout { grid-template-columns: minmax(0, 1fr); }
.octa-gi-account .octa-account-rail { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--octa-console-color-line); border-radius: 0; padding: 0 0 12px; background: transparent; box-shadow: none; }
.octa-gi-account .octa-account-rail > header { display: none; }
.octa-gi-account .octa-account-nav { display: flex; flex-wrap: wrap; }
.octa-gi-account .octa-account-nav a { display: block; min-height: 0; color: var(--octa-console-color-ink); padding: 10px; }
.octa-gi-account .octa-account-nav a i { display: none; }
.octa-gi-account .octa-account-nav a.is-active { color: var(--octa-console-color-ink); background: var(--octa-console-color-lime); }
.octa-gi-account .octa-account-signout { color: var(--octa-console-color-ink); }
.octa-gi-account .octa-account-hero { padding: 24px; border-radius: 12px; }
.octa-gi-account .octa-account-section { padding: 24px; border-radius: 12px; }

/* Prototype-inspired presentation, confined to the real customer workspace.
 * No demo content, routing or workflow behaviour is imported from /octa-gi/. */
/* The theme declares its header display !important; override only inside GI. */
body.octa-gi-app .site-header,
body.octa-gi-app .site-footer { display: none !important; }
body.octa-gi-app.octa-console-page .site-main,
body.octa-gi-app.octa-console-page .entry-single,
body.octa-gi-app.octa-console-page .entry-single > .entry-content { margin: 0; padding: 0; }
body.octa-gi-app .octa-gi-shell { min-height: 100vh; min-height: 100dvh; }
body.octa-gi-app.admin-bar .octa-gi-shell { min-height: calc(100dvh - 32px); }
.octa-gi-shell { --octa-console-section-gap: 20px; --octa-console-panel-padding: 26px 28px; }
.octa-gi-rail { padding: 22px 16px; gap: 20px; }
.octa-gi-rail-brand { display: block; padding: 0 12px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.octa-gi-rail ul { gap: 6px; }
.octa-gi-rail-link { padding: 10px 12px; line-height: 1.3; min-height: 44px; justify-content: center; }
.octa-gi-rail-group-label { padding-inline: 12px; }
.octa-gi-header { min-height: 68px; padding-block: 16px; align-items: center; }
.octa-gi-content { padding-block: 30px; }
body.octa-console-page .entry-content .octa-gi-greeting { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.16; letter-spacing: -.025em; margin: 0; }
.octa-gi-chips { gap: 14px; }
.octa-gi-chip { padding: 20px; min-width: 0; line-height: 1.5; }
.octa-gi-chip-label { font-size: 17px; line-height: 1.4; }
body.octa-console-page .entry-content .octa-gi-shell a.octa-gi-chip { color: var(--octa-console-color-ink); text-decoration: none; }
body.octa-console-page .entry-content .octa-gi-panel-title { font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
.octa-gi-recent-item { padding-block: 14px; align-items: start; }
.octa-gi-recent-item > * { min-width: 0; overflow-wrap: anywhere; }
.octa-gi-recent-item a { color: var(--octa-console-color-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.octa-gi-recent-item a:hover { color: var(--octa-console-color-green); }
.octa-gi-document-intelligence .octa-ai-hero,
.octa-gi-document-intelligence .octa-ai-panel,
.octa-gi-account .octa-account-section { border-radius: var(--octa-console-radius-panel, 24px); }
.octa-gi-document-intelligence .octa-ai-panel { border: 1px solid var(--octa-console-color-line); background: var(--octa-console-color-paper); box-shadow: none; }
.octa-gi-document-intelligence .octa-ai-hero { padding: 26px 28px; }
body.octa-console-page .entry-content .octa-gi-document-intelligence .octa-ai-hero h1 { font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -.025em; }
.octa-gi-workspace-tabs { border-bottom: 1px solid var(--octa-console-color-line); gap: 6px; }
.octa-gi-workspace-tabs a { padding: 12px 18px; margin-bottom: -1px; }
@media (max-width: 900px) {
 .octa-gi-content { padding: 24px 16px; }
 .octa-gi-recent-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 782px) {
 body.octa-gi-app.admin-bar .octa-gi-shell { min-height: calc(100dvh - 46px); }
}
@media (max-width: 600px) {
 .octa-gi-shell { --octa-console-panel-padding: 20px; }
 .octa-gi-header { gap: 10px; }
 .octa-gi-header-context { overflow-wrap: anywhere; }
 .octa-gi-document-intelligence .octa-ai-hero { padding: 20px; }
}

/* Research keeps its own forms, request editor and status disclosures. */
.octa-gi-research #research-workspace { width: 100%; max-width: none; margin: 0; padding: 26px 28px; border-color: var(--octa-console-color-line); border-radius: var(--octa-console-radius-panel); }
body.octa-console-page .entry-content .octa-gi-research h1 { font-size: clamp(28px, 2.4vw, 36px); }
body.octa-console-page .entry-content .octa-gi-research h2 { font-size: 22px; }
.octa-gi-research .octa-research-panel { border-color: var(--octa-console-color-line); border-radius: var(--octa-console-radius-card); }
.octa-gi-research :is(.octa-research-request-rail, .octa-research-request-work) { min-width: 0; }
@media (max-width: 1100px) { .octa-gi-research .octa-research-request-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .octa-gi-research #research-workspace { padding: 20px 16px; } }
.octa-gi-research-note { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--octa-console-radius-control); background: var(--octa-console-color-cream); color: var(--octa-console-color-muted); font-size: 14px; }

/* Engagements uses the product's authorized views and forms inside the shared customer shell. */
.octa-gi-engagements { min-width: 0; }
.octa-gi-engagements .octa-org { padding: 0; gap: 24px; }
.octa-gi-engagements .octa-org-hero,
.octa-gi-engagements .octa-workspace-hero.is-engagement { min-height: 0; padding: 0 0 24px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--org-line); color: var(--org-ink); align-items: flex-start; }
body.octa-console-page .entry-content .octa-gi-engagements .octa-org-hero h1,
body.octa-console-page .entry-content .octa-gi-engagements .octa-workspace-hero h1 { color: var(--org-ink); font-size: clamp(26px,3vw,36px); line-height: 1.15; overflow-wrap: anywhere; }
.octa-gi-engagements .octa-org-hero p,
.octa-gi-engagements .octa-org-hero span,
.octa-gi-engagements .octa-workspace-hero p,
.octa-gi-engagements .octa-workspace-hero span { color: var(--org-muted); }
.octa-gi-engagements .octa-org-hero > strong,
.octa-gi-engagements .octa-workspace-hero > strong { background: #edf4e9; color: var(--org-green); border-color: var(--org-line); flex-shrink: 0; }
.octa-gi-engagements .octa-org-directory-layout,
.octa-gi-engagements .octa-engagement-section-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
.octa-gi-engagements .octa-org-directory-rail,
.octa-gi-engagements .octa-engagement-section-rail { position: static; max-height: none; padding: 12px; border-radius: 14px; background: #fff; color: var(--org-ink); box-shadow: none; gap: 10px; }
.octa-gi-engagements .octa-org-directory-rail > header,
.octa-gi-engagements .octa-engagement-section-rail > header { display: none; }
.octa-gi-engagements .octa-org-directory-rail nav,
.octa-gi-engagements .octa-engagement-section-rail nav { display: flex; flex-wrap: wrap; gap: 8px; }
.octa-gi-engagements .octa-org-directory-rail nav a,
.octa-gi-engagements .octa-engagement-section-rail nav button { width: auto; color: var(--org-ink); border-color: var(--org-line); background: #f7f9f6; }
.octa-gi-engagements .octa-org-directory-rail nav a.is-active,
.octa-gi-engagements .octa-engagement-section-rail nav button.is-active { background: var(--org-lime); color: var(--org-ink); }
.octa-gi-engagements .octa-org-directory-rail nav small,
.octa-gi-engagements .octa-engagement-section-rail nav b,
.octa-gi-engagements .octa-engagement-section-picker { color: var(--org-muted); }
.octa-gi-engagements .octa-org-panel { border-radius: 16px; box-shadow: none; }
.octa-gi-engagements .octa-workspace-breadcrumb { flex-wrap: wrap; overflow-wrap: anywhere; }
@media(max-width:620px) {
 .octa-gi-engagements .octa-org-hero,
 .octa-gi-engagements .octa-workspace-hero { flex-direction: column; gap: 12px; }
 .octa-gi-engagements .octa-engagement-section-rail nav { display: none; }
 .octa-gi-engagements .octa-engagement-section-picker { display: grid; }
}

.octa-gi-engagements .octa-engagement-section-rail nav i { color: var(--org-green); }

/* UI/UX pass, 7 October 2026 ------------------------------------------------ */

/* Script-only focus targets (the skip-link destination) are not in the tab order and need no ring.
 * Tab panels are keyboard stops, so they keep one, but a quiet green ring, not a black frame. */
.octa-gi-shell [tabindex="-1"]:focus { outline: none; }
.octa-gi-shell [role="tabpanel"]:focus-visible { outline: 2px solid var(--octa-console-color-green, #144f48); outline-offset: 4px; }

/* Plan strip: it had no styles, so each service ran into its terms ("EngagementsGranted directly"). */
.octa-gi-plan-notice { margin: 0 0 12px; color: var(--octa-console-color-muted, #5d6b66); }
.octa-gi-plan-list { list-style: none; margin: 0; padding: 0; }
.octa-gi-plan-item {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
	padding: 12px 0; border-top: 1px solid var(--octa-console-color-line, #dfe2d8);
}
.octa-gi-plan-label { font-weight: 600; }
.octa-gi-plan-terms { color: var(--octa-console-color-muted, #5d6b66); font-size: var(--octa-console-text-meta, 13px); }

/* Chips: one description line on every card, and links in the console's own green, not browser blue. */
.octa-gi-chip-text { font-size: var(--octa-console-text-meta, 13px); color: var(--octa-console-color-muted, #5d6b66); line-height: 1.55; }
body.octa-console-page .entry-content .octa-gi-shell .octa-gi-chip-open { color: var(--octa-console-color-green, #144f48); font-weight: 600; text-underline-offset: 3px; }

/* Assurance inside GI: the same quiet panel Document Intelligence already uses, not a marketing
 * hero. The product's standalone page keeps its own design. */
.octa-gi-assurance .octa-ssa-hero,
.octa-gi-assurance .octa-ssa-cases-hero {
	min-height: 0; padding: 26px 28px; border-radius: var(--octa-console-radius-panel, 14px);
	background: var(--octa-console-color-paper, #fff); color: var(--octa-console-color-ink, #102725);
	border: 1px solid var(--octa-console-color-line, #dfe2d8); box-shadow: none; align-items: flex-start;
}
body.octa-console-page .entry-content .octa-gi-assurance .octa-ssa-hero h1,
body.octa-console-page .entry-content .octa-gi-assurance .octa-ssa-cases-hero h2 {
	color: var(--octa-console-color-ink, #102725); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px;
}
.octa-gi-assurance .octa-ssa-hero span,
.octa-gi-assurance .octa-ssa-cases-hero span { color: var(--octa-console-color-muted, #5d6b66); font-size: 15px; }
/* The product's eyebrow rule also caught the action and blocked-reason paragraphs, upper-casing a
 * whole sentence and its link. Only the eyebrow keeps the small caps. */
.octa-gi-assurance .octa-ssa-cases-hero p { color: var(--octa-console-color-muted, #5d6b66); }
.octa-gi-assurance .octa-ssa-hero p.octa-ssa-hero-actions,
.octa-gi-assurance .octa-ssa-hero p.octa-ssa-hero-blocked {
	text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; margin: 16px 0 0;
	color: var(--octa-console-color-ink, #102725);
}
.octa-gi-assurance .octa-ssa-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.octa-gi-assurance .octa-ssa-hero-actions a {
	display: inline-block; padding: 0 18px; line-height: var(--octa-console-control-height, 42px);
	border-radius: var(--octa-console-radius-control, 8px); border: 1px solid var(--octa-console-color-green, #144f48);
	color: var(--octa-console-color-green, #144f48); text-decoration: none; font-weight: 600;
}
.octa-gi-assurance .octa-ssa-hero-actions a.is-primary { background: var(--octa-console-color-green, #144f48); color: var(--octa-console-color-cream, #f5f3ea); }
.octa-gi-assurance .octa-ssa-hero-blocked {
	padding: 12px 14px; border-radius: var(--octa-console-radius-control, 8px);
	background: var(--octa-console-color-cream, #f5f3ea);
}
.octa-gi-assurance .octa-ssa-hero > strong,
.octa-gi-assurance .octa-ssa-cases-hero > strong {
	border-color: var(--octa-console-color-line, #dfe2d8); background: var(--octa-console-color-canvas, #f7f8f4);
	color: var(--octa-console-color-green, #144f48); letter-spacing: .02em;
}
@media (max-width: 760px) {
	.octa-gi-assurance .octa-ssa-hero,
	.octa-gi-assurance .octa-ssa-cases-hero { min-height: 0; padding: 20px; border-radius: var(--octa-console-radius-card, 12px); gap: 14px; }
}

/* Start page, 7 October 2026 ------------------------------------------------- */

.octa-gi-intro { display: flex; flex-direction: column; gap: 6px; }
.octa-gi-intro-line { margin: 0; font-size: var(--octa-console-text-body, 17px); color: var(--octa-console-color-muted, #5f706c); }
.octa-gi-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
body.octa-console-page .entry-content .octa-gi-section-title { margin: 0; font-size: 20px; line-height: 1.3; }

/* Status words. Colour supports the word; it never replaces it. */
.octa-gi-badge {
	display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
	font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap;
	background: #eef0ec; color: var(--octa-console-color-ink, #102725);
}
.octa-gi-badge--review { background: #fbf1d9; color: #6b4b00; }
.octa-gi-badge--done { background: #e3f4ec; color: var(--octa-console-color-green, #144f48); }
.octa-gi-badge--problem { background: #f8e5e3; color: var(--octa-console-color-danger, #8b3029); }

/* Needs your attention: one row per item, one way forward. */
.octa-gi-attention {
	list-style: none; margin: 0; padding: 0; background: var(--octa-console-color-paper, #fff);
	border: 1px solid var(--octa-console-color-line, #d8ded7); border-radius: var(--octa-console-radius-card, 18px); overflow: hidden;
}
.octa-gi-attention-item {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px;
	border-bottom: 1px solid var(--octa-console-color-line, #d8ded7);
}
.octa-gi-attention-item:last-child { border-bottom: 0; }
.octa-gi-attention-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.octa-gi-attention-title { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.octa-gi-attention-why { font-size: 14px; color: var(--octa-console-color-muted, #5f706c); line-height: 1.5; }
body.octa-console-page .entry-content .octa-gi-shell a.octa-gi-button { color: var(--octa-console-color-cream, #f5f3ea); text-decoration: none; white-space: nowrap; min-height: 44px; }
body.octa-console-page .entry-content .octa-gi-shell a.octa-gi-button:hover { background: var(--octa-console-color-green-hover, #0d3935); }

/* Recent work: title and service on the left, the status word on the right. */
.octa-gi-recent-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.octa-gi-recent-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.octa-gi-recent-item a.octa-gi-recent-title { font-weight: 600; text-decoration: none; }
.octa-gi-recent-item a.octa-gi-recent-title:hover { text-decoration: underline; }
.octa-gi-panel-more { margin: 14px 0 0; font-weight: 600; }

/* Your services: a quiet band, not a panel competing with the work above it. */
.octa-gi-shell .octa-gi-panel:has(.octa-gi-plan-list),
.octa-gi-shell .octa-gi-panel:has(.octa-gi-plan-notice) { background: var(--octa-console-color-cream, #f5f3ea); border-color: transparent; padding: 18px 22px; }
body.octa-console-page .entry-content .octa-gi-panel:has(.octa-gi-plan-list) .octa-gi-panel-title { font-size: 15px; margin-bottom: 8px; }

/* First visit. */
.octa-gi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.octa-gi-steps li { display: flex; gap: 12px; line-height: 1.55; }
.octa-gi-step-number {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
	border-radius: 50%; background: #e3f4ec; color: var(--octa-console-color-green, #144f48); font-weight: 700;
}

/* Account menu, top right of every GI screen. */
.octa-gi-usermenu { position: relative; margin-left: auto; }
.octa-gi-usermenu > summary {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 4px; box-sizing: border-box;
	border: 1px solid var(--octa-console-color-line, #d8ded7); border-radius: 999px; background: var(--octa-console-color-paper, #fff);
	cursor: pointer; list-style: none; font-size: 15px;
}
.octa-gi-usermenu > summary::-webkit-details-marker { display: none; }
.octa-gi-usermenu > summary:focus-visible { outline: 2px solid var(--octa-console-color-green, #144f48); outline-offset: 2px; }
.octa-gi-avatar {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--octa-console-color-lime, #d9f77e); color: var(--octa-console-color-ink, #102725); font-weight: 700; font-size: 14px;
}
.octa-gi-usermenu-panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; padding: 8px; box-sizing: border-box;
	display: flex; flex-direction: column; background: var(--octa-console-color-paper, #fff);
	border: 1px solid var(--octa-console-color-line, #d8ded7); border-radius: 14px; box-shadow: var(--octa-console-shadow-raised, 0 22px 56px rgba(16,39,37,.14));
}
.octa-gi-usermenu-who { margin: 0 0 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--octa-console-color-line, #d8ded7); display: flex; flex-direction: column; gap: 2px; }
.octa-gi-usermenu-who span { font-size: 13px; color: var(--octa-console-color-muted, #5f706c); overflow-wrap: anywhere; }
body.octa-console-page .entry-content .octa-gi-usermenu-panel a {
	display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
	color: var(--octa-console-color-ink, #102725); text-decoration: none;
}
body.octa-console-page .entry-content .octa-gi-usermenu-panel a:hover { background: var(--octa-console-color-canvas, #f7f8f4); }
body.octa-console-page .entry-content .octa-gi-usermenu-panel a.octa-gi-usermenu-signout { color: var(--octa-console-color-danger, #8b3029); }
@media (max-width: 600px) {
	.octa-gi-usermenu-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.octa-gi-usermenu > summary { padding: 4px; border: 0; background: transparent; }
	.octa-gi-attention-item { padding: 16px; }
	.octa-gi-attention-item .octa-gi-button { width: 100%; text-align: center; }
	.octa-gi-recent-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
body.octa-console-page .entry-content .octa-gi-shell .octa-gi-panel-more a { color: var(--octa-console-color-green, #144f48); text-underline-offset: 3px; }

/* Rail icons, 7 October 2026: icon beside the label, any qualifier under the label. */
.octa-gi-rail-link { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.octa-gi-rail-icon { flex: 0 0 20px; width: 20px; height: 20px; opacity: .88; }
.octa-gi-rail-link.is-current .octa-gi-rail-icon { opacity: 1; }
.octa-gi-rail-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Document Intelligence workspace page, 7 October 2026 ----------------------- */

.octa-gi-di-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.octa-gi-di-intro { display: flex; flex-direction: column; gap: 6px; max-width: 660px; }
body.octa-console-page .entry-content .octa-gi-di-intro h1 { margin: 0; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.025em; color: var(--octa-console-color-ink, #102725); }
.octa-gi-di-intro p { margin: 0; font-size: var(--octa-console-text-body, 17px); line-height: 1.55; color: var(--octa-console-color-muted, #5f706c); }
.octa-gi-di-blocked { margin: 0; max-width: 420px; padding: 12px 14px; border-radius: var(--octa-console-radius-control, 10px); background: var(--octa-console-color-cream, #f5f3ea); font-size: 15px; }
body.octa-console-page .entry-content .octa-gi-di-header a.octa-gi-button { min-height: 44px; }

/* The banner is retired inside Octa GI; the list opens first. */
.octa-gi-document-intelligence [data-octa-gi-retired] { display: none !important; }
/* "Step 2" made sense beside a numbered upload step; on its own tab it is noise. */
.octa-gi-document-intelligence #analysis-results > .octa-ai-panel-heading .octa-ai-step { display: none; }

/* Waiting for a review, at the top of the analysis list. */
.octa-gi-di-waiting { margin: 0 0 26px; }
body.octa-console-page .entry-content .octa-gi-di-waiting h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; color: var(--octa-console-color-ink, #102725); }
.octa-gi-di-count { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--octa-console-color-muted, #5f706c); }
.octa-gi-di-waiting ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--octa-console-color-line, #d8ded7); border-radius: var(--octa-console-radius-card, 18px); overflow: hidden; background: var(--octa-console-color-paper, #fff); }
.octa-gi-di-waiting-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border-bottom: 1px solid var(--octa-console-color-line, #d8ded7); }
.octa-gi-di-waiting-item:last-child { border-bottom: 0; }
.octa-gi-di-waiting-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.octa-gi-di-waiting-title { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.octa-gi-di-waiting-why { font-size: 14px; color: var(--octa-console-color-muted, #5f706c); }
body.octa-console-page .entry-content .octa-gi-shell a.octa-gi-button--quiet { background: var(--octa-console-color-paper, #fff); color: var(--octa-console-color-green, #144f48); border: 1px solid #c4ccc3; }
body.octa-console-page .entry-content .octa-gi-shell a.octa-gi-button--quiet:hover { border-color: var(--octa-console-color-green, #144f48); background: var(--octa-console-color-paper, #fff); }
@media (max-width: 600px) {
	.octa-gi-di-header { align-items: stretch; }
	.octa-gi-di-header .octa-gi-button, .octa-gi-di-waiting-item .octa-gi-button { width: 100%; text-align: center; }
	.octa-gi-di-waiting-item { padding: 14px 16px; }
}
/* The list's own heading at section size, not banner size. */
body.octa-console-page .entry-content .octa-gi-document-intelligence #analysis-results > .octa-ai-panel-heading h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 4px; }
.octa-gi-document-intelligence #analysis-results > .octa-ai-panel-heading p { font-size: 15px; }
/* On the Analyse a document tab the form is already open; the header button would only repeat it. */
.octa-gi-document-intelligence[data-octa-active-tab="document-upload"] .octa-gi-di-header .octa-gi-button { display: none; }

/* Collapsible rail, 7 October 2026 ------------------------------------------- */

.octa-gi-rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.octa-gi-rail-brand-short { display: none; }
.octa-gi-rail-toggle {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid rgba(245, 243, 234, .25); border-radius: var(--octa-console-radius-control, 10px);
	background: transparent; color: var(--octa-console-color-cream, #f5f3ea); cursor: pointer;
}
.octa-gi-rail-toggle:hover { background: rgba(255, 255, 255, .08); }
.octa-gi-rail-toggle-icon { transition: transform .18s ease; }
.octa-gi-shell { transition: grid-template-columns .18s ease; }
@media (prefers-reduced-motion: reduce) {
	.octa-gi-shell, .octa-gi-rail-toggle-icon { transition: none; }
}
@media (min-width: 901px) {
	.octa-gi-shell.is-rail-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
	.octa-gi-shell.is-rail-collapsed .octa-gi-rail { padding-inline: 12px; }
	.is-rail-collapsed .octa-gi-rail-top { flex-direction: column; gap: 12px; }
	.is-rail-collapsed .octa-gi-rail-brand { padding: 0; text-align: center; }
	.is-rail-collapsed .octa-gi-rail-brand-full { display: none; }
	.is-rail-collapsed .octa-gi-rail-brand-short { display: inline; }
	.is-rail-collapsed .octa-gi-rail-toggle-icon { transform: scaleX(-1); }
	.is-rail-collapsed .octa-gi-rail-link { justify-content: center; padding: 10px; position: relative; }
	/* Labels leave the screen but stay in the accessibility tree; hover names come from gi.js. */
	.is-rail-collapsed .octa-gi-rail-text,
	.is-rail-collapsed .octa-gi-rail-group-label {
		position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	.is-rail-collapsed .octa-gi-rail-group { padding-top: 12px; border-top: 1px solid rgba(245, 243, 234, .18); }
	/* A service with a note ("setup pending") keeps a visible mark. */
	.is-rail-collapsed .octa-gi-rail-link:has(.octa-gi-rail-qualifier)::after {
		content: ""; position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
		background: var(--octa-console-color-lime, #d9f77e);
	}
	.is-rail-collapsed .octa-gi-rail-link.is-current:has(.octa-gi-rail-qualifier)::after { background: var(--octa-console-color-ink, #102725); }
}

/* Document Intelligence upload tab, 7 October 2026 (presentation only) ------- */

.octa-gi-document-intelligence #document-upload > .octa-ai-panel-heading .octa-ai-step { display: none; }
body.octa-console-page .entry-content .octa-gi-document-intelligence #document-upload > .octa-ai-panel-heading h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 4px; }
.octa-gi-document-intelligence #document-upload > .octa-ai-panel-heading p { font-size: 15px; }
.octa-gi-document-intelligence #document-upload > .octa-ai-panel-heading > span { font-size: 14px; font-weight: 400; color: var(--octa-console-color-muted, #5f706c); }

/* The file comes first: a clear drop-style box with a real button. */
.octa-gi-document-intelligence .octa-ai-upload-form .octa-ai-file {
	display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 2px dashed #b9c4b8;
	border-radius: var(--octa-console-radius-card, 16px); background: #fafbf8;
}
.octa-gi-document-intelligence .octa-ai-file > strong { font-size: 16px; }
.octa-gi-document-intelligence .octa-ai-file > span { font-size: 14px; font-weight: 400; color: var(--octa-console-color-muted, #5f706c); }
.octa-gi-document-intelligence .octa-ai-file input[type="file"] { font: inherit; font-size: 15px; color: var(--octa-console-color-ink, #102725); border: 0; padding: 0; background: none; max-width: 100%; }
.octa-gi-document-intelligence .octa-ai-file input[type="file"]::file-selector-button {
	margin-right: 14px; min-height: 44px; padding: 0 18px; border: 1px solid #c4ccc3; border-radius: var(--octa-console-radius-control, 10px);
	background: var(--octa-console-color-paper, #fff); color: var(--octa-console-color-green, #144f48); font: inherit; font-weight: 600; cursor: pointer;
}
.octa-gi-document-intelligence .octa-ai-file input[type="file"]::file-selector-button:hover { border-color: var(--octa-console-color-green, #144f48); }

/* The optional brief reads as optional. */
.octa-gi-optional {
	display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
	background: #eef0ec; color: var(--octa-console-color-muted, #5f706c); font-size: 12px; font-weight: 600;
}
.octa-gi-document-intelligence .octa-ai-upload-form .octa-ai-analysis-brief { background: transparent; }
.octa-gi-document-intelligence .octa-ai-analysis-brief > strong { font-weight: 600; }

/* The authorisation tick box in a soft panel, wording unchanged. */
.octa-gi-document-intelligence .octa-ai-upload-form .octa-ai-consent {
	padding: 14px 16px; border-radius: 12px; background: var(--octa-console-color-cream, #f5f3ea); font-size: 15px; font-weight: 400;
}
.octa-gi-document-intelligence .octa-ai-consent input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--octa-console-color-green, #144f48); }

/* Progress after Analyse document: calm, no new wording. */
.octa-gi-document-intelligence .octa-ai-job {
	padding: 20px 22px; border: 1px solid var(--octa-console-color-line, #d8ded7); border-radius: var(--octa-console-radius-card, 16px);
	background: #fafbf8; box-shadow: none;
}

.octa-gi-di-waiting[hidden] { display: none; }
