/* Workspace 2026 (14 Nov 2026): the signed-in experience in the landing page's "aurora" identity - deep navy,
   warm gold, electric cyan - for every role. A refinement layer loaded after platform-shell.css: it changes the
   look only (tokens, surfaces, motion), never structure, permissions or behaviour. Light and dark themes both. */

:root:not([data-theme="dark"]) {
  --rf-surface-2: #f3f5fa;
  --rf-accent: #1b5fae;
  --rf-hairline: rgba(13, 30, 58, .08);
  --rf-hairline-strong: rgba(13, 30, 58, .14);
  --rf-shadow: 0 1px 2px rgba(13, 30, 58, .04), 0 12px 32px -18px rgba(13, 30, 58, .18);
  --rf-shadow-sm: 0 1px 2px rgba(13, 30, 58, .06);
}
:root { --ws-ink: #06142b; --ws-navy: #0d2a55; --ws-cyan: #38d0ff; --ws-gold: #f5b82e; --ws-gold-2: #ffd56b; }

/* ---- shell */
.app-shell { background: var(--rf-surface-2); }
.sidebar { background: radial-gradient(120% 40% at 0% 0%, rgba(56, 208, 255, .16), transparent 60%), radial-gradient(100% 30% at 100% 100%, rgba(245, 184, 46, .1), transparent 60%), linear-gradient(180deg, var(--ws-ink) 0%, #0a1f3f 100%); border-right: 1px solid rgba(255, 255, 255, .06); }
.nav-item { border-radius: 12px; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .07); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, rgba(245, 184, 46, .18), rgba(255, 255, 255, .06)); box-shadow: inset 0 0 0 1px rgba(245, 184, 46, .22); }
.nav-item.active::before { background: linear-gradient(180deg, var(--ws-gold-2), var(--ws-gold)); box-shadow: 0 0 12px rgba(245, 184, 46, .6); }
.nav-item.active .nav-icon { color: var(--ws-gold-2); }
.topbar { background: color-mix(in srgb, var(--rf-surface-2) 74%, transparent); }
.topbar h1 { font-weight: 800; letter-spacing: -.03em; }
.icon-button, .profile-button, .search-box, .compact-select { border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.icon-button:hover, .profile-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(13, 30, 58, .35); }

/* ---- heroes: every workspace greets you with the same aurora */
.rf-hero, .hm-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(245, 184, 46, .26), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(56, 208, 255, .22), transparent 60%), linear-gradient(135deg, var(--ws-ink) 0%, var(--ws-navy) 100%);
  box-shadow: 0 30px 60px -36px rgba(6, 20, 43, .7); }
.rf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 70%); -webkit-mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 70%); }
.rf-hero h2 { letter-spacing: -.03em; }
.rf-hero .rf-eyebrow { color: var(--ws-gold-2); }

/* ---- cards, lists, tables */
.rf-card { border-radius: 20px; transition: box-shadow .25s ease, border-color .25s ease; }
.rf-card:hover { box-shadow: 0 1px 2px rgba(13, 30, 58, .04), 0 18px 40px -22px rgba(13, 30, 58, .28); }
:root[data-theme="dark"] .rf-card:hover { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.rf-card-head h3 { letter-spacing: -.02em; }
.rf-eyebrow { letter-spacing: .12em; }
.rf-card table, .p40-root table { border-collapse: separate; border-spacing: 0; }
.rf-card thead th, .p40-root thead th { position: sticky; top: 0; z-index: 1; background: var(--rf-surface-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-text-3); }
.rf-card tbody tr, .p40-root tbody tr { transition: background-color .15s ease; }
.rf-card tbody tr:hover, .p40-root tbody tr:hover { background: color-mix(in srgb, var(--rf-accent) 5%, transparent); }
.rf-empty { border-radius: 20px; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--rf-accent) 7%, transparent), transparent 70%); }

/* ---- controls */
.rf-button { border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease; }
.rf-button:hover:not(:disabled) { transform: translateY(-1px); }
.rf-button.primary { background: linear-gradient(135deg, #1b5fae, var(--ws-navy)); box-shadow: 0 10px 24px -14px rgba(13, 42, 85, .8); }
.rf-button.primary:hover:not(:disabled) { filter: brightness(1.08); }
:root[data-theme="dark"] .rf-button.primary { color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); box-shadow: 0 10px 24px -14px rgba(245, 184, 46, .7); }
.rf-input { border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.rf-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ws-cyan) 22%, transparent); border-color: color-mix(in srgb, var(--ws-cyan) 60%, var(--rf-accent)); }
.rf-tabs { border-radius: 16px; }
.rf-tab { border-radius: 12px; transition: color .15s ease, background-color .15s ease; }
.rf-tab.active { color: #fff; background: linear-gradient(135deg, #1b5fae, var(--ws-navy)); box-shadow: 0 8px 18px -12px rgba(13, 42, 85, .8); }
:root[data-theme="dark"] .rf-tab.active { color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); }
.rf-segmented input:checked + span { color: var(--rf-text); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rf-chip { letter-spacing: .01em; }
.rf-dialog, .p40-dialog { border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(6, 20, 43, .55); }
.rf-dialog::backdrop, .p40-dialog::backdrop { background: rgba(6, 20, 43, .5); backdrop-filter: blur(6px); }

/* ---- keyboard users see where they are, everywhere */
.app-shell a:focus-visible, .app-shell button:focus-visible, .app-shell summary:focus-visible, .app-shell [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--ws-cyan) 80%, transparent); outline-offset: 2px; }

/* ---- loading feels alive */
.rf-loading { position: relative; overflow: hidden; border-radius: 14px; }
.rf-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rf-accent) 10%, transparent), transparent); transform: translateX(-100%); animation: ws-shimmer 1.4s ease-in-out infinite; }
@keyframes ws-shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .nav-item, .rf-button, .rf-card, .icon-button, .profile-button { transition: none; }
  .nav-item:hover, .rf-button:hover:not(:disabled), .icon-button:hover, .profile-button:hover { transform: none; }
  .rf-loading::after { animation: none; }
}

/* ---- sign-in (14 Nov 2026): the doorway carries the new identity */
.login-view { background: #f3f5fa; }
.login-story { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 10% 0%, var(--ws-navy) 0%, var(--ws-ink) 60%); }
.login-story::after { content: none; }
.login-story::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 75%); }
.login-story .story-copy h1 { font-weight: 800; letter-spacing: -.035em; }
.login-story .eyebrow { color: var(--ws-gold-2); letter-spacing: .14em; }
.login-story .story-stats div { border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.login-story .story-stats strong { color: var(--ws-gold-2); }
.login-panel { background: radial-gradient(60% 50% at 100% 0%, rgba(56, 208, 255, .1), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(245, 184, 46, .1), transparent 70%), #f3f5fa; }
.login-card { border-radius: 28px; border: 1px solid rgba(13, 30, 58, .08); background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px -40px rgba(6, 20, 43, .35); }
.login-card h2 { font-weight: 800; letter-spacing: -.03em; }
.login-card input, .login-card select { border-radius: 14px; }
.login-card input:focus, .login-card select:focus { border-color: color-mix(in srgb, var(--ws-cyan) 60%, #1b5fae); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ws-cyan) 22%, transparent); }
.login-card .primary-button { border: 0; border-radius: 999px; color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); box-shadow: 0 14px 30px -14px rgba(245, 184, 46, .8); transition: transform .18s ease, filter .18s ease; }
.login-card .primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.portal-choice { border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.portal-choice.active { border-color: #1b5fae; box-shadow: 0 0 0 3px rgba(27, 95, 174, .14); }
:root[data-theme="dark"] .login-view, :root[data-theme="dark"] .login-panel { background: var(--rf-surface-2); }
:root[data-theme="dark"] .login-card { background: color-mix(in srgb, var(--rf-surface) 92%, transparent); border-color: var(--rf-hairline); }

/* ---- What's new: the release note greets everyone in the new identity */
.p45-whatsnew-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 140% at 100% 0%, rgba(245, 184, 46, .3), transparent 60%), radial-gradient(70% 140% at 0% 100%, rgba(56, 208, 255, .26), transparent 60%), linear-gradient(135deg, var(--ws-ink), var(--ws-navy)); }
.p45-whatsnew-hero h2 { font-weight: 800; letter-spacing: -.03em; }
.p45-news li > span { border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1b5fae, var(--ws-navy)); box-shadow: 0 8px 18px -10px rgba(13, 42, 85, .7); }
.p45-whatsnew .primary-button { border: 0; border-radius: 999px; color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); }
#p45WhatsNewDialog { border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(6, 20, 43, .6); }
#p45WhatsNewDialog::backdrop { background: rgba(6, 20, 43, .55); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .login-card .primary-button { transition: none; } }

/* ---- classic components (records, modals, metrics) in the same identity */
.primary-button, .gold-button { border-radius: 999px; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.app-shell .primary-button, .modal .primary-button { color: #fff; background: linear-gradient(135deg, #1b5fae, var(--ws-navy)); box-shadow: 0 10px 24px -14px rgba(13, 42, 85, .8); }
:root[data-theme="dark"] .app-shell .primary-button, :root[data-theme="dark"] .modal .primary-button { color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); }
.gold-button { color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); }
.secondary-button, .ghost-button, .mini-button, .text-button { border-radius: 999px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.primary-button:hover, .gold-button:hover, .secondary-button:hover, .mini-button:hover { transform: translateY(-1px); }
.mini-button { padding: 6px 12px; border-color: var(--rf-hairline-strong); background: var(--rf-surface); color: var(--rf-text); font-weight: 600; }
.mini-button:hover { border-color: color-mix(in srgb, var(--rf-accent) 45%, transparent); }
.panel, .metric-card { border-radius: 20px; border-color: var(--rf-hairline); background: var(--rf-surface); box-shadow: var(--rf-shadow); }
.metric-card { position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rf-accent) 12%, transparent), transparent 70%); pointer-events: none; }
.p40-kpi { border-radius: 20px; }
.panel-heading h2, .panel-heading h3 { letter-spacing: -.02em; }
.status-pill { padding: 5px 11px; font-weight: 700; }
.table-scroll, .rf-table-wrap { border-radius: 16px; border: 1px solid var(--rf-hairline); }
.rf-table thead th, .table-scroll thead th { background: var(--rf-surface-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-text-3); }
.rf-table tbody tr:hover, .table-scroll tbody tr:hover { background: color-mix(in srgb, var(--rf-accent) 5%, transparent); }
.modal { border-radius: 24px; border: 1px solid var(--rf-hairline); box-shadow: 0 40px 80px -30px rgba(6, 20, 43, .55); }
.modal::backdrop { background: rgba(6, 20, 43, .5); backdrop-filter: blur(6px); }
.modal-head h2, .modal-head h3 { letter-spacing: -.02em; }
.empty-state { border-radius: 20px; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--rf-accent) 7%, transparent), transparent 70%); }
.eyebrow { letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .primary-button, .gold-button, .secondary-button, .mini-button { transition: none; } .primary-button:hover, .gold-button:hover, .secondary-button:hover, .mini-button:hover { transform: none; } }
.brand em, .brand-light em { color: var(--ws-gold); }
#p45WhatsNewDialog .primary-button { color: #1a1205; background: linear-gradient(135deg, var(--ws-gold-2), var(--ws-gold)); box-shadow: 0 12px 26px -14px rgba(245, 184, 46, .8); }
