@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Syne:wght@700;800&display=swap');

/* Finney's platform sign-in card and standard tenant header share these values.
   Sources: portal-shell.css and standard-topbar.js in the tenant application. */
.finney-signin {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f9;
  color: rgba(15,23,42,.92);
  font-family: 'DM Sans',system-ui,-apple-system,sans-serif;
}
.finney-signin *, .finney-signin *::before, .finney-signin *::after { box-sizing: border-box; }
.finney-signin .center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.finney-signin .card { width: 380px; max-width: 100%; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 34px 30px; box-shadow: 0 1px 8px rgba(0,0,0,.06),0 24px 64px rgba(2,6,23,.12); }
.finney-signin .brand { display: flex; align-items: center; gap: 10px; }
.finney-signin .brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.finney-signin .brand span { font-family: 'Syne',sans-serif; font-size: 17px; font-weight: 800; color: #0891b2; }
.finney-signin h1 { font-family: 'Syne',sans-serif; font-size: 21px; font-weight: 800; margin: 18px 0 6px; letter-spacing: -.01em; }
.finney-signin .sub { font-size: 13px; color: rgba(100,116,139,.9); margin: 0 0 22px; line-height: 1.5; }
.finney-signin input.f { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.04); color: rgba(15,23,42,.92); font-family: inherit; font-size: 14px; outline: none; margin-bottom: 10px; }
.finney-signin input.f:focus { border-color: #0891b2; }
.finney-signin button.go { width: 100%; padding: 12px; border-radius: 9px; border: none; background: #0891b2; color: #fff; font-family: 'IBM Plex Mono',ui-monospace,monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.finney-signin button.go:disabled { opacity: .6; cursor: default; }
.finney-signin .err { color: #dc2626; font-size: 12.5px; margin: 0 0 10px; }
.finney-signin .err:empty { display: none; }
.finney-signin .account-link { text-align: center; margin-top: 14px; }
.finney-signin .account-link a { font-size: 12px; color: #0891b2; text-decoration: none; }
.finney-signin .account-link a:hover { text-decoration: underline; }
.finney-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.topbar.finney-learning-header { height: 56px; display: flex; align-items: center; gap: 0; padding: 0 24px; border-bottom: 1px solid var(--border-dim); background: var(--bg-surface); color: var(--text-primary); font-family: var(--font-sans,'DM Sans',system-ui,sans-serif); position: sticky; top: 0; z-index: 100; overflow: visible; backdrop-filter: blur(20px); }
.finney-learning-header *, .finney-learning-header *::before, .finney-learning-header *::after { box-sizing: border-box; }
.finney-learning-header .finney-brand { display: flex; align-items: center; gap: 10px; margin-right: 20px; color: var(--accent); text-decoration: none; flex-shrink: 0; }
.finney-learning-header .logo-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.finney-learning-header .logo-text { color: var(--accent); font: 700 15px 'Syne',sans-serif; }
.finney-learning-header .finney-product { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--border-dim); color: var(--text-secondary); font: 600 11px var(--font-sans); }
.finney-learning-header .learning-nav { display: flex; align-self: stretch; align-items: stretch; gap: 4px; margin-left: 12px; }
.finney-learning-header .learning-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; color: var(--text-secondary); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.finney-learning-header .learning-nav a:hover, .finney-learning-header .learning-nav a[aria-current=page] { color: var(--accent); }
.finney-learning-header .learning-nav a[aria-current=page]::after { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); content: ''; }
.finney-learning-header .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.finney-learning-header .stb-dropdown { position: relative; }
.finney-learning-header summary { list-style: none; cursor: pointer; }
.finney-learning-header summary::-webkit-details-marker { display: none; }
.finney-learning-header .stb-btn, .finney-learning-header .stb-theme-button { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border-dim); border-radius: 8px; background: transparent; color: var(--text-secondary); font: 700 11px var(--font-sans); white-space: nowrap; }
.finney-learning-header .workspace-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.finney-learning-header .workspace-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.finney-learning-header .chevron { width: 6px; height: 6px; flex: none; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg) translateY(-2px); }
.finney-learning-header .stb-dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 200px; max-width: calc(100vw - 24px); padding: 4px; border: 1px solid var(--border-dim); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 101; }
.finney-learning-header .stb-workspace .stb-dropdown-menu { left: 0; right: auto; max-height: 60vh; overflow: auto; }
.finney-learning-header .stb-dropdown-item { display: block; width: 100%; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-primary); font: 600 12px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.finney-learning-header .stb-dropdown-item:hover { background: var(--bg-input); color: var(--accent); }
.finney-learning-header .stb-dropdown-label { padding: 8px 14px 4px; color: var(--text-muted); font: 700 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.finney-learning-header .stb-theme-button { width: 36px; justify-content: center; padding: 0; border-radius: 9px; cursor: pointer; }
.finney-learning-header .stb-theme-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.finney-learning-header .stb-account-trigger { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px 0 4px; border: 1px solid var(--border-dim); border-radius: 999px; background: var(--bg-surface); color: var(--text-primary); font: 700 10.5px var(--font-sans); }
.finney-learning-header .stb-account-avatar { width: 27px; height: 27px; display: grid; place-items: center; flex: none; border-radius: 50%; background: color-mix(in srgb,var(--accent) 12%,var(--bg-surface)); color: var(--accent); font: 700 9px var(--font-mono); }
.finney-learning-header .stb-whoami { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finney-learning-header .stb-account-menu { width: 240px; padding: 7px; }
.finney-learning-header .stb-account-menu-head { display: flex; align-items: center; gap: 9px; padding: 8px; }
.finney-learning-header .stb-account-menu-head>div { min-width: 0; }
.finney-learning-header .stb-account-menu-head strong, .finney-learning-header .stb-account-menu-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finney-learning-header .stb-account-menu-head strong { font-size: 10.5px; }
.finney-learning-header .stb-account-menu-head small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.finney-learning-header .stb-account-signout { min-height: 41px; margin-top: 5px; padding: 5px 9px 0; border-top: 1px solid var(--border-dim); border-radius: 0 0 7px 7px; color: #bd4545; }
.finney-learning-header .account-status { margin: 0; padding: 0 8px; color: var(--red); font-size: 11px; }
.finney-learning-header .account-status:empty { display: none; }
.finney-learning-header :is(a,button,summary):focus-visible, .finney-signin :is(a,button):focus-visible { outline: 2px solid var(--accent,#0891b2); outline-offset: 3px; }
@media (max-width: 1050px) { .finney-learning-header .finney-product { display: none; } .finney-learning-header .workspace-label { max-width: 110px; } .finney-learning-header .learning-nav { margin-left: 4px; } .finney-learning-header .learning-nav a { padding: 0 9px; } }
@media (max-width: 760px) {
  .topbar.finney-learning-header { height: auto; min-height: 56px; flex-wrap: wrap; padding: 10px 16px 0; }
  .finney-learning-header .finney-brand { margin-right: 12px; }
  .finney-learning-header .workspace-label { max-width: 92px; }
  .finney-learning-header .learning-nav { order: 4; flex: 1 0 100%; height: 44px; margin: 4px 0 0; overflow-x: auto; }
  .finney-learning-header .learning-nav a { flex: 1; justify-content: center; font-size: 11px; }
  .finney-learning-header .stb-explore, .finney-learning-header .stb-whoami, .finney-learning-header .stb-account-trigger>.chevron { display: none; }
  .finney-learning-header .stb-account-trigger { padding-right: 4px; }
}
@media (max-width: 370px) { .finney-learning-header .logo-text { display: none; } .finney-learning-header .workspace-label { max-width: 82px; } }
