/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  tab-size: 4; /* 3 */
  font-family: "IBM Plex Sans", system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.contents {
  display: contents;
}
.\!hidden {
  display: none !important;
}
.hidden {
  display: none;
}
.grow {
  flex-grow: 1;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.rounded {
  border-radius: 10px;
}
.border {
  border-width: 1px;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.ordinal {
  --tw-ordinal: ordinal;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.\!transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\[files-discussion\:get\] {
  files-discussion: get;
}
.\[mira-chat\:get\] {
  mira-chat: get;
}
.\[mira-engagement\:coach\] {
  mira-engagement: coach;
}
.\[mira-engagement\:get\] {
  mira-engagement: get;
}
.\[mira-engagement\:post\] {
  mira-engagement: post;
}
.\[planner-discussion\:get\] {
  planner-discussion: get;
}

:root {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/biziga.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* =====================================================
   Biziga Learner App — Design System
   Inherits the site brand (palette, type, i-dot, gradient)
   but tuned for an app: denser, surface-led, calm in default state.
   ===================================================== */

:root {
  /* brand */
  --ink: #1A1817;
  --ink-2: #2a2520;
  --paper: #F8F5F0;
  --paper-2: #F2EEE6;
  --stone: #6B6660;
  --stone-2: #8B8680;
  --line: #E5DFD4;
  --line-2: #ECE6DB;
  --white: #ffffff;

  /* brand gradient stops — canonical (Brief C1: repointed from the drifted
     legacy values #6a2cb5/#b83a7a/#d8543f/#e89a3c to the canonical A palette,
     matching --role-primary/-mira/-action/-recognition in the block below). */
  --violet: #6D4AE0;
  --magenta: #C0399B;
  --coral: #E8634A;
  --amber: #E8A23A;

  /* signals (calm, dignified) */
  --green: #4f9d6b;   /* on track */
  --amber-s: #d89538; /* attention */
  --red-s: #c44e3a;   /* needs work */

  /* Semantic status — PROTECTED (Brief C0). Meaning-bearing, never brand; never
     swept by canonicalization. JS mirror: src/lib/ui/statusColors.ts. */
  --status-danger:  #ef4444;
  --status-warning: #f59e0b;
  --status-success: #10b981;
  --status-info:    #1e40af;

  /* dark surface for gradient sections */
  --bg-dark: #0f0b18;

  /* type */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  /* radii — anchored to the approved login: --r is the login's 10px,
     larger surfaces step up from there */
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* shadows */
  --shadow-sm: 0 1px 3px rgba(26,24,23,.05);
  --shadow: 0 4px 14px rgba(26,24,23,.06);
  --shadow-lg: 0 20px 50px rgba(26,24,23,.08);

  /* nav */
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* ---------- Top bar (desktop & mobile share) ---------- */
.topbar {
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar .logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.topbar .logo .iw { position: relative; display: inline-block; }
.topbar .logo .iw::after {
  content: "";
  position: absolute; top: .02em; left: 50%;
  transform: translateX(-50%);
  width: .15em; height: .15em;
  border-radius: 50%; background: var(--coral);
}
.topbar .greet { color: var(--stone); font-size: 14px; }
.topbar .greet b { color: var(--ink); font-weight: 500; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--stone);
  transition: background .15s, border-color .15s, color .15s;
}
.topbar .icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.topbar .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Layout: side nav (desktop) + content ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
}
.sidenav {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  min-height: calc(100vh - var(--nav-h));
}
.sidenav .group { font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-2); padding: 0 12px; margin: 18px 0 8px; font-weight: 600; }
.sidenav .group:first-child { margin-top: 0; }
.sidenav .nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r);
  color: var(--stone); font-size: 14px; font-weight: 500;
  transition: background .12s, color .12s;
}
.sidenav .nav-item:hover { color: var(--ink); background: var(--line-2); }
.sidenav .nav-item.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.sidenav .nav-item .ico { width: 18px; height: 18px; opacity: .8; }
.sidenav .nav-item.active .ico { opacity: 1; color: var(--magenta); }

.content { padding: 32px 40px 64px; min-width: 0; }
.content.narrow { max-width: 980px; margin: 0 auto; }

/* ---------- Mobile bottom nav (hidden on desktop) ---------- */
.bottomnav { display: none; }

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .content { padding: 20px 18px 96px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .greet { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 8px 4px 12px;
    z-index: 30;
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 4px;
    color: var(--stone); font-size: 11px; font-weight: 500;
  }
  .bottomnav a.active { color: var(--magenta); }
  .bottomnav a .ico { width: 22px; height: 22px; }
}

/* ---------- Headings ---------- */
.page-title { font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.15; letter-spacing: -.005em; color: var(--ink); }
.page-sub { color: var(--stone); margin-top: 6px; font-size: 15px; }
.section-title { font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 14px; }
/* Gradient eyebrow (design-refs/practice_revitalized.html .eyebrow). Solid violet is
   the fallback colour so the eyebrow is never invisible if background-clip:text fails. */
.kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px;
  color: var(--violet);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-row {
  display: grid; gap: 18px;
}
.card-row.cols-2 { grid-template-columns: 1fr 1fr; }
.card-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .card-row.cols-2, .card-row.cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
/* Anchored to the approved login button: padding 14px, weight 600, font-size 15px, radius --r (10px).
   Default size = the approved login. .btn-sm for tighter spots (cards, nav). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: var(--r);
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s, background .15s, color .15s, border-color .15s, transform .05s;
}
.btn-sm { padding: 10px 16px; font-size: 14px; font-weight: 500; }
.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--magenta) 55%, var(--coral));
  color: #fff;
  border: none;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--white); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-link {
  background: transparent; color: var(--magenta);
  font-weight: 500; padding: 0; border: none;
}
.btn-link:hover { color: var(--ink); }

/* ---------- Score ring (the gamification headline element) ---------- */
.ring-wrap { position: relative; display: inline-block; }
.ring {
  width: 140px; height: 140px;
  transform: rotate(-90deg);
}
.ring .track { fill: none; stroke: var(--line); stroke-width: 10; }
.ring .fill { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease; }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ring-center .num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--ink); }
.ring-center .lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); margin-top: 6px; }
.ring-center .num.empty { color: var(--stone-2); font-size: 32px; }

/* ---------- Status chips (dignified, not childish) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.chip.green   { background: rgba(79,157,107,.12); color: #2f6c47; }
.chip.green   .dot { background: var(--green); }
.chip.amber   { background: rgba(232,162,58,.14);  color: #8a5c1a; }
.chip.amber   .dot { background: var(--amber); }
.chip.red     { background: rgba(196,78,58,.12);   color: #8a3424; }
.chip.red     .dot { background: var(--red-s); }
.chip.neutral { background: var(--paper-2); color: var(--stone); border: 1px solid var(--line); }

/* ---------- Empty states ---------- */
.empty {
  text-align: center; padding: 36px 24px;
  color: var(--stone);
}
.empty .ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--stone-2);
}
.empty h4 { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.empty p { font-size: 14px; max-width: 380px; margin: 0 auto 16px; line-height: 1.55; }

/* ---------- Simulation cards (real, dense) ---------- */
.sim-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .sim-grid { grid-template-columns: 1fr; } }

.sim-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .15s, box-shadow .15s, transform .05s;
  display: flex; flex-direction: column;
  min-height: 200px;
}
.sim-card:hover { border-color: var(--magenta); box-shadow: var(--shadow); }
.sim-card .meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sim-card .sector { font-size: 12px; color: var(--stone); font-weight: 500; }
.sim-card .duration { font-size: 12px; color: var(--stone); }
.sim-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; line-height: 1.25; color: var(--ink);
  margin-bottom: 10px;
}
.sim-card p { font-size: 13px; color: var(--stone); line-height: 1.5; flex: 1; }
.sim-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sim-card .foot .level { font-size: 12px; color: var(--stone); }

/* ---------- Filters / pills ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--stone);
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.pill:hover { color: var(--ink); }
.pill.active { background: var(--ink); color: #fff; }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  width: 100%;
}
.search input {
  flex: 1; border: none; outline: none;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: transparent;
}
.search input::placeholder { color: var(--stone-2); }

/* ---------- Activity row ---------- */
.activity { display: flex; flex-direction: column; gap: 10px; }
.activity-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.activity-row .lhs h4 { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.activity-row .lhs .meta { font-size: 12px; color: var(--stone); }
.activity-row .rhs { font-size: 13px; color: var(--magenta); font-weight: 500; }

/* ---------- Hero / gradient strip on Home ---------- */
.gradient-strip {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: #fff;
  border-radius: var(--r-lg);
  padding: 28px 28px 26px;
  margin-bottom: 28px;
}
.gradient-strip .gbg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 100% at 10% 10%, rgba(109,74,224,.55), transparent 60%),
    radial-gradient(ellipse 60% 100% at 90% 30%, rgba(192,57,155,.5), transparent 55%),
    radial-gradient(ellipse 80% 80% at 70% 100%, rgba(232,99,74,.45), transparent 55%);
}
.gradient-strip > * { position: relative; z-index: 1; }
.gradient-strip .grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 720px) { .gradient-strip .grid { grid-template-columns: 1fr; } }
.gradient-strip .lhs h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.gradient-strip .lhs em { color: #f5c97a; font-style: italic; }
.gradient-strip .lhs p { font-size: 14px; color: rgba(255,255,255,.78); max-width: 460px; }

/* ---------- Streak / mini stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 26px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr; } }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.stat .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--magenta);
}
.stat .v { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ink); }
.stat .l { font-size: 12px; color: var(--stone); margin-top: 3px; }

/* ---------- Subtle progress bar ---------- */
.bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar i {
  display: block; height: 100%;
  background: linear-gradient(120deg, var(--violet), var(--magenta), var(--coral));
  border-radius: 999px;
  transition: width .6s ease;
}

/* ---------- Form fields (anchored to the approved login) ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);          /* 10px — login's value */
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(192,57,155,.12);  /* login's focus ring */
}
.pw-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.pw-row a { font-size: 12px; color: var(--magenta); font-weight: 500; }
.pw-wrap { position: relative; }
.pw-wrap .show {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; color: var(--stone);
  cursor: pointer;
}

/* ---------- Progress page bits ---------- */
.score-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid; grid-template-columns: 180px 1fr;
  gap: 28px; align-items: center;
}
@media (max-width: 720px) {
  .score-hero { grid-template-columns: 1fr; text-align: center; }
  .score-hero .ring-wrap { margin: 0 auto; }
}
.score-hero h2 {
  font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2;
  margin-bottom: 6px;
}
.score-hero .desc { color: var(--stone); font-size: 14px; line-height: 1.55; max-width: 520px; margin-bottom: 14px; }
.score-hero .row-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Skill rows (one per skill, with a small bar) */
.skill-row {
  display: grid; grid-template-columns: 1fr 240px auto;
  gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.skill-row:last-child { border-bottom: none; }
.skill-row .name { font-weight: 500; color: var(--ink); font-size: 14px; }
.skill-row .name .sub { display: block; color: var(--stone); font-size: 12px; font-weight: 400; margin-top: 2px; }
.skill-row .num { font-family: var(--serif); font-size: 18px; color: var(--ink); min-width: 38px; text-align: right; }
.skill-row .num.empty { color: var(--stone-2); }
@media (max-width: 720px) {
  .skill-row { grid-template-columns: 1fr auto; }
  .skill-row .bar { grid-column: 1 / -1; }
}

.gap-mini {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.gap-mini .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--magenta);
  flex-shrink: 0;
}
.gap-mini .body h4 { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.gap-mini .body p { font-size: 13px; color: var(--stone); }

/* ---------- Tab bar (for sub-views inside a page, e.g. Practice's Browse/In Progress/Completed) ---------- */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  padding: 12px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--stone);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--magenta); }
.tab .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--paper-2); color: var(--stone);
  font-size: 11px; font-weight: 600;
}
.tab.active .count { background: rgba(192,57,155,.12); color: var(--magenta); }

/* ---------- Skill row with benchmark (the centerpiece of Skills page) ---------- */
.skill-detail {
  display: grid;
  grid-template-columns: 1fr 280px auto;
  gap: 22px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.skill-detail:last-child { border-bottom: none; }
.skill-detail .name { font-weight: 500; color: var(--ink); font-size: 14px; }
.skill-detail .name .sub { display: block; color: var(--stone); font-size: 12px; font-weight: 400; margin-top: 3px; }
.skill-detail .name .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.skill-detail .num { font-family: var(--serif); font-size: 20px; color: var(--ink); min-width: 50px; text-align: right; }
.skill-detail .num .of { color: var(--stone); font-size: 13px; }
.skill-detail .num.empty { color: var(--stone-2); }

/* benchmark bar: shows learner's score with target marker + peer median */
.bench {
  position: relative;
  height: 22px;
}
.bench .track {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; transform: translateY(-50%);
  background: var(--line-2); border-radius: 999px;
}
.bench .you {
  position: absolute; left: 0; top: 50%;
  height: 6px; transform: translateY(-50%);
  background: linear-gradient(120deg, var(--violet), var(--magenta), var(--coral));
  border-radius: 999px;
  transition: width .6s ease;
}
.bench .target,
.bench .peers {
  position: absolute; top: 50%;
  width: 2px; height: 14px;
  transform: translate(-50%, -50%);
}
.bench .target { background: var(--ink); }
.bench .peers { background: var(--stone-2); }
.bench .target::after,
.bench .peers::after {
  content: ""; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.bench .target::after { border-top: 5px solid var(--ink); }
.bench .peers::after { border-top: 5px solid var(--stone-2); }

.bench-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; font-size: 11px; color: var(--stone);
}
.bench-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bench-legend i {
  display: inline-block; width: 12px; height: 6px; border-radius: 999px;
}
.bench-legend i.you { background: linear-gradient(120deg, var(--violet), var(--coral)); }
.bench-legend i.target { background: var(--ink); width: 2px; height: 10px; border-radius: 1px; }
.bench-legend i.peers { background: var(--stone-2); width: 2px; height: 10px; border-radius: 1px; }

@media (max-width: 720px) {
  .skill-detail { grid-template-columns: 1fr auto; }
  .skill-detail .bench { grid-column: 1 / -1; }
}

/* ---------- Passport card (the credential) ---------- */
.passport-card {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid; grid-template-columns: 1fr 180px;
  gap: 28px; align-items: center;
  margin-bottom: 22px;
}
.passport-card .gbg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(109,74,224,.55), transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 40%, rgba(192,57,155,.5), transparent 55%),
    radial-gradient(ellipse 80% 70% at 60% 100%, rgba(232,99,74,.45), transparent 55%);
}
.passport-card > * { position: relative; z-index: 1; }
.passport-card .who .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245,201,138,.9); font-weight: 600; margin-bottom: 6px; }
.passport-card .who h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 4px; }
.passport-card .who .sub { color: rgba(255,255,255,.7); font-size: 14px; }
.passport-card .who .meta { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.78); }
.passport-card .who .meta b { color: #fff; font-weight: 500; }
.passport-card .score-block { text-align: center; }
.passport-card .score-block .big {
  font-family: var(--serif); font-size: 56px; line-height: 1; color: #fff;
}
.passport-card .score-block .big.empty { color: rgba(255,255,255,.4); }
.passport-card .score-block .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-top: 8px; font-weight: 600;
}
@media (max-width: 720px) {
  .passport-card { grid-template-columns: 1fr; text-align: left; }
  .passport-card .score-block { text-align: left; }
}

/* ---------- Tiny inline tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--stone);
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--line);
}
.tag.critical { background: rgba(196,78,58,.08); color: #8a3424; border-color: rgba(196,78,58,.2); }
.tag.core     { background: rgba(232,162,58,.12); color: #8a5c1a; border-color: rgba(232,162,58,.25); }

/* ---------- Sim Detail page bits ---------- */
.sim-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 22px;
}
.sim-hero .crumbs {
  font-size: 13px; color: var(--stone);
  margin-bottom: 14px;
}
.sim-hero .crumbs a { color: var(--magenta); }
.sim-hero .meta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px; color: var(--stone);
}
.sim-hero .meta-row .pip {
  display: inline-flex; align-items: center; gap: 6px;
}
.sim-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.2;
  margin: 6px 0 10px;
  color: var(--ink);
}
.sim-hero .blurb {
  font-size: 15px; color: var(--stone-2);
  line-height: 1.6; max-width: 720px;
}
.sim-hero .actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
  align-items: center;
}
.sim-hero .actions .secondary {
  color: var(--stone); font-size: 13px;
}
.sim-hero .actions .secondary a { color: var(--magenta); }

/* Skills-this-builds inline strip */
.builds-strip {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.builds-strip .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 600;
}
.builds-strip .skill-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--ink); font-weight: 500;
  transition: border-color .15s;
}
.builds-strip .skill-pill:hover { border-color: var(--magenta); }
.builds-strip .skill-pill .code { color: var(--stone); font-size: 11px; font-weight: 400; }
.builds-strip .skill-pill.crit { border-color: rgba(196,78,58,.3); }

/* ---------- Run trajectory (composite score across runs) ---------- */
.trajectory {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.trajectory .header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}
.trajectory .header h2 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  color: var(--ink); margin: 0;
}
.trajectory .summary {
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
}
.trajectory .summary .latest {
  font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ink);
}
.trajectory .summary .delta {
  font-size: 13px; font-weight: 600;
}
.trajectory .summary .delta.up { color: var(--green); }
.trajectory .summary .delta.down { color: var(--red-s); }
.trajectory .summary .desc { color: var(--stone); font-size: 13px; }

/* The sparkline chart container */
.spark {
  position: relative;
  height: 110px;
  margin: 10px 0 18px;
}
.spark svg { width: 100%; height: 100%; display: block; }

/* Per-run rows below the chart */
.runs-list {
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.run-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 18px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.run-row:last-child { border-bottom: none; }
.run-row .runno {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper-2); color: var(--stone);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.run-row .date { color: var(--stone); font-size: 13px; }
.run-row .score {
  font-family: var(--serif); font-size: 20px; color: var(--ink); min-width: 50px; text-align: right;
}
.run-row .score .delta-chip {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  margin-left: 6px;
  background: rgba(79,157,107,.12); color: #2f6c47;
}
.run-row .actions a { color: var(--magenta); font-size: 13px; font-weight: 500; }

/* Per-skill mini chart row */
.skill-trend {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 18px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.skill-trend:last-child { border-bottom: none; }
.skill-trend .name { font-weight: 500; color: var(--ink); font-size: 14px; }
.skill-trend .name .sub { display: block; color: var(--stone); font-size: 12px; font-weight: 400; margin-top: 2px; }
.skill-trend .mini-spark { height: 36px; position: relative; }
.skill-trend .mini-spark svg { width: 100%; height: 100%; display: block; }
.skill-trend .now-num { font-family: var(--serif); font-size: 18px; color: var(--ink); min-width: 50px; text-align: right; }
.skill-trend .now-num .delta-chip {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  margin-left: 6px;
  background: rgba(79,157,107,.12); color: #2f6c47;
}
@media (max-width: 720px) {
  .skill-trend { grid-template-columns: 1fr auto; }
  .skill-trend .mini-spark { grid-column: 1 / -1; }
}

/* ---------- Collapsible section header (used in Sim Detail for About-this-sim) ---------- */
.collapsible {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  overflow: hidden;
}
.collapsible summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary .lhs {
  display: flex; align-items: baseline; gap: 12px;
}
.collapsible summary .lhs h3 {
  font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ink); margin: 0;
}
.collapsible summary .lhs .hint {
  font-size: 13px; color: var(--stone);
}
.collapsible summary .chev {
  width: 16px; height: 16px;
  color: var(--stone);
  transition: transform .2s;
}
.collapsible[open] summary .chev { transform: rotate(180deg); }
.collapsible .inner {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  font-size: 14px; color: var(--stone-2); line-height: 1.6;
}

/* ---------- Pre-flight (the "you're about to start" screen) ---------- */
.preflight-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: var(--paper);
}
.preflight-card {
  width: 100%; max-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 36px 30px;
  box-shadow: var(--shadow-lg);
}
.preflight-card .eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral); font-weight: 600; margin-bottom: 14px;
}
.preflight-card .eyebrow.serious { color: var(--red-s); }
.preflight-card h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.2;
  color: var(--ink); margin-bottom: 10px;
}
.preflight-card .blurb {
  color: var(--stone); font-size: 15px; line-height: 1.55;
  margin-bottom: 24px;
}
.preflight-card .facts {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: grid; gap: 12px;
}
.preflight-card .facts .fact {
  display: flex; gap: 12px; align-items: start;
  font-size: 14px;
}
.preflight-card .facts .fact .ico {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--magenta);
}
.preflight-card .facts.serious .fact .ico { color: var(--red-s); }
.preflight-card .facts .fact b { color: var(--ink); }
.preflight-card .actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.preflight-card .actions .btn-primary { flex: 1; min-width: 160px; }
.preflight-card .actions .btn-ghost { font-size: 14px; }
.preflight-card .foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--stone-2); text-align: center;
}

/* ---------- Sim cards: whole-card clickable ---------- */
/* Override: make the .sim-card itself the click target, drop in-card button */
a.sim-card {
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
}
a.sim-card .hover-arrow {
  position: absolute; right: 18px; bottom: 16px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
  color: var(--magenta);
  font-weight: 500; font-size: 13px;
}
a.sim-card:hover .hover-arrow { opacity: 1; transform: translateX(0); }
/* When card is a link, the .foot region holds level + (no longer a button) */
a.sim-card .foot { justify-content: flex-start; }
a.sim-card .foot .level { color: var(--stone); }

/* ---------- 3-up comparison wrapper for Sim Detail states ---------- */
.states-comp {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  background: #0f0b18; padding: 14px;
  min-height: 100vh;
}
.states-comp .state-col {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.states-comp .state-lbl {
  background: #1a1325; color: var(--amber);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: 10px 14px;
}
.states-comp .state-body { padding: 16px; overflow: hidden; }
.states-comp .state-body .sim-hero { padding: 18px; }
.states-comp .state-body .sim-hero h1 { font-size: 20px; }
.states-comp .state-body .sim-hero .blurb { font-size: 13px; }
.states-comp .state-body .builds-strip { padding: 10px 12px; }
.states-comp .state-body .builds-strip .skill-pill { font-size: 11px; padding: 3px 8px; }
.states-comp .state-body .trajectory { padding: 16px; }
.states-comp .state-body .trajectory .header h2 { font-size: 16px; }
.states-comp .state-body .trajectory .summary .latest { font-size: 26px; }
.states-comp .state-body .spark { height: 70px; }
.states-comp .state-body .empty { padding: 24px 16px; }
.states-comp .state-body .empty h4 { font-size: 16px; }
.states-comp .state-body .empty p { font-size: 12px; }
.states-comp .state-body .collapsible summary { padding: 12px 14px; }
.states-comp .state-body .collapsible .inner { padding: 12px 14px; font-size: 12px; }

@media (max-width: 1100px) {
  .states-comp { grid-template-columns: 1fr; }
}

/* =====================================================
   Brief 1 additions — classes the chrome references that the
   mockup app.css did not yet define. Built only from existing
   design tokens (no new color values).
   ===================================================== */

/* ---------- Avatar (generic + sizes) ---------- */
/* base mirrors .topbar .avatar so <Avatar> works outside the topbar too */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }

/* ---------- Avatar menu / dropdown (TopBar) ---------- */
.avatar-menu { position: relative; }
.avatar-trigger {
  background: transparent; border: none; padding: 0;
  border-radius: 50%; display: inline-flex; cursor: pointer;
}
.avatar-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 240px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 40;
}
.avatar-dropdown-header { padding: 10px 12px 12px; }
.avatar-dropdown-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.avatar-dropdown-email {
  font-size: 12px; color: var(--stone); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar-dropdown-divider { height: 1px; background: var(--line); margin: 4px 0; }
.avatar-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--r);
  font-size: 14px; color: var(--ink); font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  transition: background .12s, color .12s;
}
.avatar-dropdown-item:hover { background: var(--line-2); }
.avatar-dropdown-logout { color: var(--red-s); }
.avatar-dropdown-logout:hover { background: rgba(196,78,58,.1); color: var(--red-s); }

/* Form-field styles (.form-field / .form-label / .form-input / .form-error) live
   in the "Auth pages" section at the end of this file — consolidated there in
   Brief 2 so there is a single definition (was duplicated here in Brief 1). */

/* ---------- Email-verify banner ---------- */
.email-verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  font-size: 14px; color: var(--ink-2);
}
@media (max-width: 720px) { .email-verify-banner { padding: 12px 18px; } }
.email-verify-banner em { font-style: italic; color: var(--green); }
.banner-dismiss {
  background: transparent; border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--stone);
  padding: 2px 8px; border-radius: var(--r-sm); flex-shrink: 0;
  transition: color .12s, background .12s;
}
.banner-dismiss:hover { color: var(--ink); background: var(--line-2); }

/* link-styled button (used in the banner's Resend action) */
.link {
  background: transparent; border: none; padding: 0; cursor: pointer;
  color: var(--magenta); font: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
}
.link:hover { color: var(--ink); }
.link:disabled { color: var(--stone-2); cursor: default; text-decoration: none; }

/* ---------- App shell helpers ---------- */
.content-wrapper { min-width: 0; display: flex; flex-direction: column; }
.loading-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 15px;
}

/* ===== Auth pages (login, signup, forgot, reset, verify) =====
   Added in Brief 2. Includes the canonical .form-field/.form-label/.form-input/
   .form-error definitions (consolidated here from Brief 1). Tokens only. */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--paper);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}

.auth-logo .iw { position: relative; }
.auth-logo .dot {
  position: absolute;
  left: 6px;
  top: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.auth-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--stone);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-linkedin {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 120ms ease;
}

.btn-linkedin:hover:not(:disabled) {
  border-color: var(--ink);
}

.btn-linkedin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-linkedin .li-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0a66c2;
  color: white;
  font-weight: 700;
  font-size: 11px;
  font-style: italic;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--stone-2);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.form-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  transition: border-color 120ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ink-2);
}

.form-input.has-error {
  border-color: var(--red-s);
}

.form-error {
  color: var(--red-s);
  font-size: 13px;
  margin-top: 4px;
}

.form-hint {
  font-size: 12px;
  min-height: 16px;
  color: var(--stone);
}

.hint-ok {
  color: var(--green);
}

.hint-pending {
  color: var(--stone);
}

.auth-error {
  padding: 10px 12px;
  background: rgba(196, 78, 58, 0.08);
  border: 1px solid rgba(196, 78, 58, 0.25);
  border-radius: var(--r);
  color: var(--red-s);
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--stone);
}

.auth-footer-divider {
  color: var(--stone-2);
}

.auth-footer-muted {
  color: var(--stone);
}

/* ===== Auth pages — two-column brand-panel layout (login, signup) =====
   Direction A design. See mockups/login.html.
   The single-card .auth-* styles (used by forgot/reset/verify) remain
   for utility auth pages and are not changed here. */

.auth-2col-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}

.auth-2col-brand {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-2col-brand .gbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(109,74,224,.6), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 40%, rgba(192,57,155,.55), transparent 55%),
    radial-gradient(ellipse 90% 70% at 60% 100%, rgba(232,99,74,.5), transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 90%, rgba(232,162,58,.45), transparent 50%);
}

.auth-2col-brand > * {
  position: relative;
  z-index: 1;
}

.auth-2col-brand .logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}

.auth-2col-brand .logo .iw {
  position: relative;
  display: inline-block;
}

.auth-2col-brand .logo .iw::after {
  content: "";
  position: absolute;
  top: 0.02em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: var(--amber);
}

.auth-2col-brand .pitch {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.25;
  max-width: 380px;
}

.auth-2col-brand .pitch em {
  font-style: italic;
  color: #f5c97a;
}

.auth-2col-brand .foot {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-2col-form {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-2col-form .welcome {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--ink);
}

.auth-2col-form .welcome-sub {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 26px;
}

.auth-2col-form .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-2col-form .auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-2col-form .switch-link {
  text-align: center;
  font-size: 14px;
  color: var(--stone);
  margin-top: 22px;
}

.auth-2col-form .switch-link a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: none;
}

.auth-2col-form .switch-link a:hover {
  text-decoration: underline;
}

/* The LinkedIn button + divider (carried over from Brief 2's
   single-card design, slightly tweaked for this layout) */

.auth-2col-form .btn-linkedin {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 120ms ease;
  margin-bottom: 18px;
}

.auth-2col-form .btn-linkedin:hover:not(:disabled) {
  border-color: var(--ink);
}

.auth-2col-form .btn-linkedin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-2col-form .btn-linkedin .li-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0a66c2;
  color: white;
  font-weight: 700;
  font-size: 11px;
  font-style: italic;
}

.auth-2col-form .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--stone-2);
  font-size: 13px;
}

.auth-2col-form .auth-divider::before,
.auth-2col-form .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 720px) {
  .auth-2col-shell {
    grid-template-columns: 1fr;
  }
  .auth-2col-brand {
    padding: 32px 24px;
    min-height: 240px;
  }
  .auth-2col-brand .pitch {
    font-size: 26px;
  }
  .auth-2col-form {
    padding: 32px 24px;
  }
}

/* ===== Home page ===== */

.home-greeting {
  margin-bottom: 28px;
}

.home-org-context {
  font-size: 14px;
  color: var(--stone);
  margin-top: 4px;
}

.recommendation-card {
  padding: 28px;
  margin-bottom: 20px;
}

.rec-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}

.rec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.rec-description {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.rec-meta {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.rec-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-2);
}

.rec-meta-value {
  font-size: 14px;
  color: var(--ink-2);
}

.rec-rationale {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--r);
}

.rec-rationale-label {
  font-weight: 600;
  color: var(--ink);
}

.rec-actions {
  display: flex;
  gap: 12px;
}

.last-activity-widget {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--stone);
  border-top: 1px solid var(--line);
}

.last-activity-label {
  color: var(--stone-2);
}

.last-activity-detail {
  color: var(--ink-2);
}

.last-activity-date {
  color: var(--stone);
}

.last-activity-link {
  margin-left: auto;
}

.home-error,
.home-fallback {
  padding: 20px 24px;
  background: var(--paper);
  border-radius: var(--r);
  color: var(--ink-2);
  margin-bottom: 20px;
}

.home-fallback .section-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.home-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-skeleton .skeleton-card {
  height: 320px;
  background: var(--paper);
  border-radius: var(--r);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

.home-skeleton .skeleton-line {
  height: 22px;
  background: var(--paper);
  border-radius: var(--r-sm);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== Coming-soon page ===== */

.coming-soon {
  max-width: 540px;
  margin: 40px auto;
  text-align: center;
}

.coming-soon-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}

.coming-soon-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}

.coming-soon-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.coming-soon-quiet {
  font-size: 14px;
  font-style: italic;
  color: var(--stone);
  margin-top: 24px;
  margin-bottom: 32px;
}

.coming-soon-actions {
  margin-top: 12px;
}

/* ── DEMO DATA ribbon (UI-FULL) ─────────────────────────────────────────────
   Slim banner shown on any page fed by mock fixtures. On by default in this build. */
.demo-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: repeating-linear-gradient(
    45deg, #2a2520, #2a2520 10px, #322c26 10px, #322c26 20px
  );
  color: #f2eee6;
  border-bottom: 1px solid var(--line);
}
.demo-ribbon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 154, 60, 0.25);
  flex: none;
}
.demo-ribbon-text {
  font-weight: 600;
}
.demo-ribbon-sub {
  color: var(--stone-2);
  letter-spacing: 0;
}

/* ── Phase 1: org-branded login + invite + visibility ───────────────────────── */

/* Org brand aside (extends .auth-2col-brand) */
.org-brand .org-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.org-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  flex: none;
}
.org-brand .org-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}
.org-brand .org-program-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.org-brand .org-program {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  max-width: 360px;
}

/* Trust line under the org-login button */
.org-trust {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
}
.org-trust a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.org-trust a:hover { text-decoration: underline; }

/* ── Brief 9 P3b: simulation player (softened-workspace port of medhaq) ──────── */
/* The player OWNS the screen — a fullscreen takeover (no app shell). */
.pl-fullscreen, .pl-shell {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  padding: 0 0 80px; background: var(--bg-dark); color: #fff;
}
.pl-fullscreen { display: flex; align-items: center; justify-content: center; padding: 24px; }
.pl-fullscreen::before, .pl-shell::before { /* VERBATIM medhaq wallpaper (page.js .wp-b + .wp-r1..r4) */
  content: ""; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(139,92,246,.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(236,72,153,.45) 0%, transparent 55%),
    radial-gradient(ellipse 55% 75% at 50% 15%, rgba(245,158,11,.28) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 30% 85%, rgba(59,130,246,.35) 0%, transparent 50%),
    linear-gradient(135deg,#1a1a4e 0%,#2d1b69 15%,#6b21a8 30%,#be185d 50%,#f59e0b 68%,#ef4444 82%,#7c3aed 93%,#1e1b4b 100%);
}
.pl-fullscreen > *, .pl-shell > * { position: relative; z-index: 1; }

/* Mission card — YOUR MISSION + serif mission + objectives, on the brand field. */
.pl-mission { max-width: 560px; background: var(--white); color: var(--ink); border-radius: var(--r-lg);
  padding: 32px 34px; box-shadow: 0 28px 72px rgba(0,0,0,.4); }
.pl-mission-kicker { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.pl-mission-line { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.pl-mission-body { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.pl-mission-obj { font-size: 13px; color: var(--stone); margin-bottom: 18px; }
.pl-mission-obj b { color: var(--ink); }

.pl-phase-purpose { font-size: 13px; line-height: 1.6; color: rgba(0,0,0,.6); max-width: 720px; margin-bottom: 14px; }

/* VERBATIM medhaq menu bar (page.js .mbar / .mb-*). 27px, translucent dark, blur. */
.pl-menubar { display: flex; align-items: center; gap: 12px; height: 27px; padding: 0 14px;
  background: rgba(0,0,0,.52); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px; position: relative; z-index: 50; flex-shrink: 0; }
.pl-mb-apple { color: #fff; font-size: 13px; opacity: .85; margin-right: 1px; }
.pl-mb-item { color: rgba(255,255,255,.75); font-size: 12px; cursor: pointer; padding: 1px 5px; border-radius: 3px;
  background: none; border: none; line-height: 1; }
.pl-mb-item:hover { background: rgba(255,255,255,.12); }
.pl-mb-bold { font-weight: 700; color: #fff; }
.pl-menu-brand { font-weight: 600; color: #fff; }   /* legacy alias (brief screen) */
.pl-menu-title { color: rgba(255,255,255,.7); }
.pl-menu-spacer { flex: 1; }
.pl-chapters { display: inline-flex; gap: 5px; align-items: center; }
.pl-chapdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: all .3s; }
.pl-chapdot.cur { background: #818CF8; width: 12px; border-radius: 3px; }   /* medhaq current = indigo pill */
.pl-chapdot.done { background: rgba(255,255,255,.7); }
.pl-mb-mode { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(127,119,221,.1); color: #cdc9f5; padding: 2px 7px; border-radius: 10px; }
.pl-mb-time { color: #fff; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-batt { display: flex; align-items: center; gap: 2px; }
.pl-batt-b { width: 20px; height: 9px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 2px; padding: 1px; display: flex; align-items: center; }
.pl-batt-f { height: 100%; border-radius: 1px; background: #30D158; width: 74%; }
.pl-batt-t { width: 2px; height: 4px; background: rgba(255,255,255,.4); border-radius: 0 1px 1px 0; }

/* VERBATIM medhaq window chrome (.win / .wc) + traffic lights (.wb.cl/.mn/.mx). */
/* Window fills the desktop like medhaq's .win (top40/left40/right40) — wallpaper shows in the
   40px gutters, not a narrow centered card. */
.pl-window { margin: 22px 40px; max-width: none; background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.32); }
.pl-titlebar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.55); }
.pl-dots { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pl-dots i { width: 12px; height: 12px; border-radius: 50%; border: none; }
.pl-dots i:nth-child(1) { background: #FF5F57; }   /* close */
.pl-dots i:nth-child(2) { background: #FFBD2E; }   /* minimise */
.pl-dots i:nth-child(3) { background: #28CA41; }   /* maximise */
.pl-dots i.pl-dot-cl { cursor: pointer; }
.pl-title { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: rgba(0,0,0,.6); }

.pl-body { padding: 22px 24px; }
.pl-spine { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.pl-spine-node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; position: relative; }
.pl-spine-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--line); }
/* ordinal violet ramp (light → deep), active phase full saturation */
.pl-spine-node.lvl-0 .pl-spine-dot { background: rgba(109,74,224,.35); }
.pl-spine-node.lvl-1 .pl-spine-dot { background: rgba(109,74,224,.55); }
.pl-spine-node.lvl-2 .pl-spine-dot { background: rgba(109,74,224,.75); }
.pl-spine-node.lvl-3 .pl-spine-dot { background: rgba(109,74,224,.95); }
.pl-spine-node.future .pl-spine-dot { background: var(--line); color: var(--stone); }
.pl-spine-node.cur .pl-spine-dot { background: var(--violet); box-shadow: 0 0 0 4px rgba(109,74,224,.18); }
.pl-spine-label { font-size: 11px; color: var(--stone); text-transform: capitalize; }
.pl-spine-node.cur .pl-spine-label { color: var(--ink); font-weight: 700;
  background: linear-gradient(90deg, var(--violet), var(--magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pl-spine-here { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }

.pl-phase-kicker { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 6px; }
.pl-prompt { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pl-prompt-lead { font-size: 16px; font-weight: 700; color: var(--ink); }
.pl-prompt-count { font-size: 12px; color: var(--stone); }

.pl-board { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pl-card { width: 320px; max-width: 100%; background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--violet); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pl-card.lvl-0 { border-top-color: rgba(109,74,224,.45); }
.pl-card.lvl-1 { border-top-color: rgba(109,74,224,.65); }
.pl-card.lvl-2 { border-top-color: rgba(109,74,224,.85); }
.pl-card.lvl-3 { border-top-color: var(--violet); }
.pl-card.is-done { opacity: .6; }
.pl-card.is-done .pl-card-title { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.pl-card-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.pl-card-tile { width: 20px; height: 20px; border-radius: 6px; background: var(--violet-bg, rgba(109,74,224,.12)); flex: none; }
.pl-card-presence { font-size: 12px; color: var(--stone); margin-bottom: 4px; }
.pl-card-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.pl-card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.pl-card-cta { background: var(--ink); color: #fff; }
.pl-card-doneflag { font-size: 12px; font-weight: 600; color: var(--green); }

/* VERBATIM medhaq dock (.dock / .dock-glass / .di / .dk-icon). Glass bar, 48px hover-magnify icons. */
.pl-dock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 20px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.32); box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4); }
.pl-di { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; background: none; border: none; padding: 0; }
.pl-dk-icon { width: 48px; height: 48px; position: relative; display: flex; align-items: center; justify-content: center;
  transition: transform 200ms cubic-bezier(.25,.46,.45,.94); }
.pl-di:hover .pl-dk-icon { transform: scale(1.32) translateY(-9px); }
.pl-dk-inner { width: 100%; height: 100%; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2); overflow: hidden; }
.pl-dk-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px;
  background: #FF3B30; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; box-shadow: 0 1px 3px rgba(0,0,0,.3); border: 1.5px solid rgba(255,255,255,.9); }
.pl-di-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: rgba(20,20,28,.92); color: #fff; font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 8px;
  white-space: nowrap; opacity: 0; transition: all .15s ease; pointer-events: none; border: 1px solid rgba(255,255,255,.1); }
.pl-di:hover .pl-di-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.pl-di-dot { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.7); }

.pl-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,11,24,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.pl-medium-window { width: 100%; max-width: 620px; background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.4); max-height: 86vh; display: flex; flex-direction: column; }
/* B2a — Dashboard app window: wider than a medium window, scrolls its body (transplant of medhaq's
   .win-dashboard, softened to a biziga overlay panel). */
.pl-dash-window { width: 100%; max-width: 880px; background: var(--paper-2); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.4); max-height: 90vh; display: flex; flex-direction: column; }
.pl-dash-window > div:last-child { flex: 1; overflow: auto; }
.pl-chat { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.pl-chat-hint { color: var(--stone); font-size: 13px; }
.pl-chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pl-chat-input input { flex: 1; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pl-artifact { padding: 20px; }
.pl-scoring { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px; }
.pl-scoring-title { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 4px; }

.pl-micro { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 110;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 24px; font-size: 13.5px;
  max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pl-micro-who { font-weight: 700; color: var(--amber); }

.pl-channels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pl-channel { padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2);
  font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pl-channel:hover { border-color: var(--violet); color: var(--violet); }

.pl-bullets, .pl-options { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pl-bullet, .pl-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.pl-bullet.on, .pl-option.on { border-color: var(--violet); background: rgba(109,74,224,.06); }
.pl-reasoning { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-family: var(--sans); font-size: 13.5px; margin-bottom: 6px; }

.pl-mira-overlay { justify-content: flex-end; align-items: stretch; }
.pl-mira { width: 420px; max-width: 92vw; background: var(--white); display: flex; flex-direction: column;
  box-shadow: -16px 0 48px rgba(0,0,0,.3); }
.pl-mira-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pl-mira-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--role-mira, #C0399B); color: #fff; font-weight: 700; }
.pl-mira-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.pl-mira-sub { font-size: 11px; color: var(--stone); }
.pl-mira-chat { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pl-mira-msg { max-width: 85%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.pl-mira-msg.mira { align-self: flex-start; background: rgba(192,57,155,.08); color: var(--ink); border-bottom-left-radius: 4px; }
.pl-mira-msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
/* B2b — Mira: the loading-dots keyframe (verbatim medhaq) + "Mira has a message" dock badge. */
@keyframes miraDot { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.pl-dock-mira { position: relative; }
.pl-mira-badge { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: #7F77DD; border: 2px solid var(--white); box-sizing: content-box; }

@media (max-width: 768px) {
  .pl-window { margin: 14px; }
  .pl-card { width: 100%; }
  .pl-dock { position: static; transform: none; margin: 12px auto 0; width: max-content; }
  .pl-spine { gap: 2px; }
  .pl-spine-node { min-width: 64px; }
  .pl-mira { width: 100%; max-width: 100%; }
  .pl-medium-window { max-width: 100%; height: 100%; max-height: 100%; }
}

/* ── Brief 9 P1: operations-console org editor ──────────────────────────────── */
.org-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) { .org-editor-grid { grid-template-columns: 1fr; } }

.org-editor-note { font-size: 12px; color: var(--stone); margin-top: 6px; line-height: 1.5; }
.org-editor-readonly {
  font-size: 14px; color: var(--stone);
  padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r);
  background: var(--paper-2);
}
.org-editor-readonly b { color: var(--ink); }

.org-swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.org-swatch {
  width: 30px; height: 30px; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.org-swatch.on { border-color: var(--ink); }

/* The live login preview: the full-screen branded aside re-cast as a card. */
.org-preview {
  min-height: 0;
  border-radius: var(--r-lg, 14px);
  padding: 28px;
  gap: 18px;
}
.org-preview-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.org-contract { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.org-contract-title { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.org-contract .org-editor-note a { color: var(--magenta); font-weight: 600; }
.tag-readonly {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--stone); background: var(--paper-2);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 8px;
}

/* ── Brief 9 P2: invite UI (status tags, modal, copy box) ───────────────────── */
.inv-tag {
  font-size: 10.5px; font-weight: 600; border-radius: 5px; padding: 3px 9px;
  display: inline-block; border: 1px solid transparent;
}
.inv-tag--mute { background: var(--paper-2); color: var(--stone); border-color: var(--line-2); }
.inv-tag--good { background: #E4F4ED; color: #1A8761; }
.inv-tag--warn { background: #FCF3E2; color: #854F0B; }
.inv-tag--bad  { background: #F8EAE2; color: #8A3A1C; }

.inv-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(26,24,23,0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.inv-modal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg, 14px);
  padding: 22px 24px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.inv-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.inv-copybox {
  display: flex; gap: 8px; align-items: center; margin-top: 12px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
}
.inv-copybox code {
  flex: 1; font-size: 11.5px; color: var(--ink-soft, var(--ink));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Invite: 3-step progress strip */
.progress-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone-2);
}
.progress-step:not(:last-child)::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line);
  margin-left: 4px;
}
.progress-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-2);
}
.progress-step.active { color: var(--ink); font-weight: 600; }
.progress-step.active .progress-dot { border-color: var(--ink); color: var(--ink); }
.progress-step.done { color: var(--ink); }
.progress-step.done .progress-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Invite: verified-email chip */
.invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
  border-radius: var(--r);
  background: rgba(79, 157, 107, 0.1);
  border: 1px solid rgba(79, 157, 107, 0.3);
  color: var(--ink);
  font-size: 13px;
}
.invite-chip-ic {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
}
.invite-consent {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone);
  margin: 2px 0 0;
}
.invite-consent a { color: var(--magenta); font-weight: 600; text-decoration: none; }
.invite-consent a:hover { text-decoration: underline; }

/* Invite: completion state */
.invite-complete { text-align: left; }
.invite-complete-ic {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}
.invite-complete .auth-submit {
  display: inline-flex;
  width: auto;
  margin-top: 20px;
  text-decoration: none;
}

/* Public /visibility page */
.visibility-page {
  min-height: 100vh;
  background: var(--paper);
  padding: 48px 24px;
  display: flex;
  justify-content: center;
}
.visibility-inner { width: 100%; max-width: 860px; }
.logo-ink {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo-ink .iw { position: relative; display: inline-block; }
.logo-ink .iw::after {
  content: "";
  position: absolute;
  top: 0.02em; left: 50%;
  transform: translateX(-50%);
  width: 0.15em; height: 0.15em;
  border-radius: 50%;
  background: var(--amber);
}
.visibility-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin: 28px 0 8px;
}
.visibility-sub {
  font-size: 15px;
  color: var(--stone);
  max-width: 600px;
  margin-bottom: 32px;
}
.visibility-back { margin-top: 28px; }
.visibility-back a { color: var(--magenta); font-weight: 600; text-decoration: none; }

/* Visibility contract panel (reused in Phase 2 /settings/visibility) */
.vis-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.vis-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.vis-col-never { border-color: rgba(196, 78, 58, 0.3); }
.vis-col-head {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin: 0 0 14px;
}
.vis-col-never .vis-col-head { color: var(--red-s); }
.vis-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vis-item { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.vis-ic {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  flex: none;
  margin-top: 1px;
}
.vis-item-yes .vis-ic { background: rgba(79, 157, 107, 0.15); color: var(--green); }
.vis-item-no .vis-ic { background: rgba(196, 78, 58, 0.12); color: var(--red-s); }
.vis-why {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-radius: var(--r);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--stone);
}

@media (max-width: 720px) {
  .vis-panel { grid-template-columns: 1fr; }
  .progress-strip { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════════════════════════════
   COLOR ROLES — UI-FULL Phase 2. Apply throughout. Brand colors NEVER encode data.
   ────────────────────────────────────────────────────────────────────────────
   Violet  #6D4AE0  --role-primary      ALL primary interactive: links, active nav,
                                         kickers, focus rings, why-callouts.
   Amber   #E8A23A  --role-recognition  recognition ONLY: streaks, ready-to-make-
                                         official, milestones.
   Magenta #C0399B  --role-mira         Mira's identity EXCLUSIVELY: avatar ring,
                                         coach cards, plan events.
   Coral   #E8634A  --role-action       action invitations: rehearse tiles, practice
                                         prompts. Max 1 coral moment per screen.
   Full gradient --grad  RESERVED: primary CTA, hero top-rules, score ring. ≤2/screen.
   ────────────────────────────────────────────────────────────────────────────
   HARD BOUNDARY: the 4 band colors below encode skill status ONLY (skill tags, bars,
   heatmap cells) — never decoration. Bands: needs_work / developing / proficient /
   exceptional. Brand colors above never encode data; band colors never decorate.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --role-primary: #6D4AE0;
  --role-primary-soft: rgba(109, 74, 224, 0.10);
  --role-recognition: #E8A23A;
  --role-recognition-soft: rgba(232, 162, 58, 0.14);
  --role-mira: #C0399B;
  --role-action: #E8634A;
  --role-action-soft: rgba(232, 99, 74, 0.10);
  --grad: linear-gradient(135deg, #6D4AE0 0%, #C0399B 55%, #E8634A 100%);

  /* Band (skill-status) colors — DATA ONLY */
  --band-needs-work: #C0563E;
  --band-developing: #C98A2E;
  --band-proficient: #4F9D6B;
  --band-exceptional: #2E7D6B;
}

/* Primary gradient CTA (reserved moment) */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: none;
  border-radius: var(--r);
  background: var(--grad);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn-gradient:hover:not(:disabled) { filter: brightness(1.06); }
.btn-gradient:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Demo bar (ribbon + persona switcher) ─────────────────────────────────── */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 0 0;
  margin-bottom: 18px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}
.demo-ribbon--inline { border-bottom: none; flex: 1; min-width: 220px; }
.demo-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
}
.demo-switcher-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-2);
  margin-right: 2px;
}
/* A0 (login-gating): the demo-door CTA on /login + the exit-demo affordance in the DemoBar. */
.btn-demo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #6D4AE0;
  background: var(--white);
  border: 1px solid #6D4AE0;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.btn-demo-cta:hover { background: #6D4AE0; color: var(--white); }
.demo-exit-btn {
  padding: 6px 13px;
  margin-right: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms ease;
}
.demo-exit-btn:hover { background: var(--ink); color: var(--white); }

.demo-switcher-btn {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--stone);
  cursor: pointer;
  transition: all 120ms ease;
}
.demo-switcher-btn:hover { border-color: var(--role-primary); color: var(--role-primary); }
.demo-switcher-btn.active {
  background: var(--role-primary);
  border-color: var(--role-primary);
  color: #fff;
}

/* ── Learner page shell ───────────────────────────────────────────────────── */
.learner-page { max-width: 760px; margin: 0 auto; padding: 8px 4px 64px; }
.learner-page .kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--role-primary);
  margin-bottom: 8px;
}
.learner-head { margin-bottom: 28px; }
.back-link { color: var(--role-primary); text-decoration: none; font-weight: 600; text-transform: none; letter-spacing: 0; }
.meta-dim { font-size: 13px; color: var(--stone-2); }

.learner-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.learner-empty-title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.learner-empty-body { font-size: 14px; color: var(--stone); max-width: 460px; margin: 0 auto 20px; line-height: 1.5; }

/* ── Home: steady state ───────────────────────────────────────────────────── */
.home-targetline { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); }
.home-quiet { margin-top: 26px; font-size: 13px; color: var(--stone-2); }
.home-privacy { margin-top: 8px; font-size: 13px; color: var(--stone); }
.home-privacy a { color: var(--role-primary); font-weight: 600; text-decoration: none; }
.home-privacy a:hover { text-decoration: underline; }

.prescription-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prescription-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.prescription-title { font-family: var(--serif); font-size: 23px; color: var(--ink); margin: 6px 0 12px; }
.prescription-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.why-callout {
  border-left: 3px solid var(--role-primary);
  background: var(--role-primary-soft);
  padding: 12px 16px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.prescription-cta { width: 100%; }

.chip-target {
  background: var(--role-primary-soft);
  color: var(--role-primary);
  border: 1px solid transparent;
  font-weight: 600;
}
.chip-skill-sm {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--stone);
}

/* Rehearse / situation tiles — the one coral moment */
.rehearse { margin-top: 32px; }
.rehearse-title { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.situation-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.situation-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--role-action-soft);
  background: var(--role-action-soft);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}
.situation-tile:hover { border-color: var(--role-action); transform: translateY(-1px); }
.situation-tile-label { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.situation-tile-go { font-size: 12.5px; font-weight: 600; color: var(--role-action); }

/* ── Home: baseline state ─────────────────────────────────────────────────── */
.baseline-hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 40px 32px;
  margin-bottom: 28px;
  overflow: hidden;
}
.baseline-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.baseline-hero-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.baseline-hero-title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.25; max-width: 520px; }

.baseline-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.baseline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.baseline-item.ba-locked { opacity: 0.6; }
.baseline-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--paper-2); color: var(--stone);
  font-weight: 600; font-size: 13px;
}
.baseline-item.ba-done .baseline-num { background: var(--band-proficient); color: #fff; }
.baseline-item-text { flex: 1; }
.baseline-item-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.baseline-item-sub { font-size: 12.5px; color: var(--stone-2); }
.baseline-status { font-size: 13px; font-weight: 600; }
.baseline-status.ba-done { color: var(--band-proficient); }
.baseline-status.ba-locked { color: var(--stone-2); }
.baseline-honesty { font-size: 13.5px; font-style: italic; color: var(--stone); line-height: 1.5; }

/* ── Home: B2C ────────────────────────────────────────────────────────────── */
.b2c-choose-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.b2c-choose-title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.b2c-choose-body { font-size: 14px; color: var(--stone); line-height: 1.55; margin-bottom: 20px; max-width: 520px; }
.b2c-choose-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Skills ───────────────────────────────────────────────────────────────── */
.skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.skill-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.skill-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.skill-expect { font-size: 15px; color: var(--ink); line-height: 1.45; margin-bottom: 4px; }
.skill-stand { font-size: 13px; color: var(--stone); }
.skill-state { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.skill-state.st-attarget { background: rgba(79,157,107,0.12); color: var(--band-proficient); }
.skill-state.st-gap { background: var(--paper-2); color: var(--stone); }
.skill-state.st-ready { background: var(--role-recognition-soft); color: #B6781F; }
.skill-state.st-none { background: var(--paper-2); color: var(--stone-2); border: 1px dashed var(--line); }

.skill-row-bar { }
.bandbar { position: relative; height: 10px; border-radius: 999px; background: var(--paper-2); margin-bottom: 10px; }
.bandbar--empty { background: transparent; border: 1px dashed var(--line); }
.bandbar-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; }
.bandbar-fill.b-needs-work { background: var(--band-needs-work); }
.bandbar-fill.b-developing { background: var(--band-developing); }
.bandbar-fill.b-proficient { background: var(--band-proficient); }
.bandbar-fill.b-exceptional { background: var(--band-exceptional); }
.bandbar-practice {
  position: absolute; top: 0; height: 100%; border-radius: 999px;
  background-image: repeating-linear-gradient(45deg, rgba(26,24,23,0.30) 0 3px, transparent 3px 7px);
  border: 1px dashed rgba(26,24,23,0.35);
}
.bandbar-tick { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.skill-row-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.skill-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.skill-band-label { font-size: 12.5px; color: var(--stone); }
.skill-practice-note { font-size: 12px; color: var(--stone-2); font-style: italic; }

/* Band pill (debrief) */
.band-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.band-pill.b-needs-work { background: var(--band-needs-work); }
.band-pill.b-developing { background: var(--band-developing); }
.band-pill.b-proficient { background: var(--band-proficient); }
.band-pill.b-exceptional { background: var(--band-exceptional); }

/* ── Practice ─────────────────────────────────────────────────────────────── */
.practice-suggested { margin-bottom: 36px; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim-card {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 15px; padding: 22px 22px 18px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
/* gradient top-edge, revealed on hover (design-refs/practice_revitalized.html .scard::before) */
.sim-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .15s ease;
}
.sim-card:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,26,24,.10); }
.sim-card:hover::before { opacity: 1; }
.sim-reason {
  align-self: flex-start;
  padding: 3px 9px; border-radius: 999px;
  background: var(--role-primary-soft); color: var(--role-primary);
  font-size: 11px; font-weight: 600;
}
.sim-card-title { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.3; }
/* industry chip: violet pill (design-refs/practice_revitalized.html .industry) */
.sim-card-industry {
  align-self: flex-start;
  font-size: 12px; font-weight: 600; color: var(--role-primary);
  background: #F0EDFC; padding: 3px 10px; border-radius: 6px;
}
.sim-card-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sim-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.sim-card-go {
  font-size: 13px; font-weight: 600; color: var(--role-primary);
  display: inline-flex; align-items: center; gap: 5px; transition: gap .15s ease;
}
.sim-card:hover .sim-card-go { gap: 9px; }

/* Category-colored skill tags (design-refs/practice_revitalized.html). Applied ONLY on
   practice library cards (SimCard) — the base .chip-skill-sm is shared with the player
   shell (PlayerShell) and stays neutral there. 5 categories carry the brief's exact
   colors; execution/adaptability/self_management were owner-chosen (palette confirmed
   against design-refs/category_tag_palette.html) — adaptability deepened to green-teal
   and self_management to slate to widen the two tight cool pairs (vs blue / vs violet).
   .tag-cat-neutral remains the grey fallback for any uncategorized code. */
.sim-card-skills .chip-skill-sm { padding: 4px 10px; border-radius: 6px; font-weight: 600; border-color: transparent; }
.tag-cat-thinking        { background: #F0EDFC; color: #6D4AE0; }
.tag-cat-communication   { background: #E5F2FA; color: #1E88C7; }
.tag-cat-people          { background: #E4F4ED; color: #1A8761; }
.tag-cat-leadership      { background: #F9EDF5; color: #C0399B; }
.tag-cat-commercial      { background: #FCEEE9; color: #E8634A; }
.tag-cat-execution       { background: #FAF0DC; color: #D98A2B; }
.tag-cat-adaptability    { background: #E3F4F1; color: #0E9488; }
.tag-cat-self_management { background: #ECEEF4; color: #64708C; }
.tag-cat-neutral         { background: var(--paper-2); color: var(--stone); }

.practice-library { margin-top: 8px; }
.library-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.library-search {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--sans); font-size: 14px; background: var(--white); color: var(--ink);
}
.library-search:focus { outline: none; border-color: var(--role-primary); box-shadow: 0 0 0 3px var(--role-primary-soft); }
.industry-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 12.5px; color: var(--stone); cursor: pointer; transition: all 120ms ease;
}
.pill:hover { border-color: var(--role-primary); color: var(--role-primary); }
.pill.active { background: var(--role-primary); border-color: var(--role-primary); color: #fff; }
.library-empty { font-size: 14px; color: var(--stone-2); padding: 24px 0; text-align: center; }

/* ── Player shell ─────────────────────────────────────────────────────────── */
.player-head { margin-bottom: 20px; }
.player-brief { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.player-personas { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.player-persona { padding: 5px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.player-persona-you { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.player-persona-link { color: var(--stone-2); }
.player-brief-title { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.player-brief-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.player-measures { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.player-measures-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-2); }
.player-start { width: 100%; }

.player-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.player-pending {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 12.5px; font-weight: 500;
  background: var(--role-recognition-soft); color: #97650F;
  border-bottom: 1px solid var(--line);
}
.player-pending-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--role-recognition); flex: none; }
.player-stage { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.player-msg { max-width: 78%; padding: 14px 16px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.5; }
.player-msg-who { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-2); margin-bottom: 4px; }
.player-msg-npc { align-self: flex-start; background: var(--paper-2); color: var(--ink); }
.player-msg-you { align-self: flex-end; background: var(--ink); color: #fff; }
.player-msg-you .player-msg-who { color: rgba(255,255,255,0.6); }
.player-msg-ghost { opacity: 0.5; font-style: italic; }
.player-input { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.player-input-box { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; background: var(--paper-2); color: var(--stone-2); }

/* ── Debrief ──────────────────────────────────────────────────────────────── */
.debrief-head { margin-bottom: 24px; }
.debrief-narrative { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.debrief-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.debrief-section-head { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.debrief-section-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.debrief-signals { margin-bottom: 36px; }
.debrief-signal { padding: 14px 0; border-bottom: 1px solid var(--line); }
.debrief-signal:last-child { border-bottom: none; }
.debrief-signal-evidence { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
.debrief-scores { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.debrief-composite { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.debrief-composite-num { font-family: var(--serif); font-size: 40px; color: var(--ink); }
.debrief-composite-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-2); }
.debrief-score-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.debrief-score-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; }
.debrief-score-name { font-size: 14px; color: var(--ink); }
.debrief-score-num { font-family: var(--serif); font-size: 18px; color: var(--ink); min-width: 34px; text-align: right; }

@media (max-width: 720px) {
  .situation-tiles, .sim-grid { grid-template-columns: 1fr; }
  .demo-bar { flex-direction: column; align-items: stretch; }
  .demo-switcher { justify-content: flex-start; flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ORG-ADMIN APP (UI-FULL Phase 3) — People, progress, heatmap, dashboard,
   reports, settings. Chrome uses brand tokens; band colours (--band-*) encode
   DATA only (heatmap cells, readiness bars), per the color law above.
   ════════════════════════════════════════════════════════════════════════════ */
.admin-page { max-width: 1040px; margin: 0 auto; padding: 8px 4px 64px; }
.admin-head { margin-bottom: 24px; }
.admin-head .kicker { color: var(--stone); }

/* Cards + sections */
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 20px;
}
.admin-card--flush { padding: 0; overflow: hidden; }
.admin-section-title { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 0 0 4px; color: var(--ink); }

/* Dashboard tiles */
.admin-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px;
}
.admin-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
}
.admin-tile-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.admin-tile-value { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 6px 0 4px; color: var(--ink); }
.admin-tile-sub { font-size: 12.5px; color: var(--stone); }

/* Readiness distribution bars (band colours = DATA) */
.readiness-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.readiness-bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 12px; }
.readiness-bar-label { font-size: 13px; color: var(--stone); }
.readiness-bar-track { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.readiness-bar-fill { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.readiness-bar-fill.b-needs-work { background: var(--band-needs-work); }
.readiness-bar-fill.b-developing { background: var(--band-developing); }
.readiness-bar-fill.b-proficient { background: var(--band-proficient); }
.readiness-bar-fill.b-exceptional { background: var(--band-exceptional); }
.readiness-bar-count { font-size: 13px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table thead th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--stone); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.admin-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .cell-name { font-weight: 600; }

/* Status chips */
.activity-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stone); }
.activity-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--stone); display: inline-block; }
.activity-chip.a-active .activity-dot { background: var(--band-proficient); }
.activity-chip.a-quiet .activity-dot { background: var(--band-developing); }
.activity-chip.a-inactive .activity-dot { background: var(--line); }
.activity-chip.a-active { color: var(--ink); }

.baseline-chip { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--stone); }
.baseline-chip.bs-done { color: var(--band-proficient); border-color: rgba(79,157,107,0.4); background: rgba(79,157,107,0.08); }
.baseline-chip.bs-pending { color: var(--band-developing); border-color: rgba(201,138,46,0.4); background: rgba(201,138,46,0.07); }

.band-pill.band-pill--none { background: transparent; color: var(--stone); border: 1px dashed var(--line); font-weight: 500; }

.movement { font-size: 13px; }
.movement--up { color: var(--band-proficient); font-weight: 600; }
.movement--flat, .movement--none { color: var(--stone); }

/* Heatmap */
.heatmap-scroll { overflow-x: auto; }
.heatmap { border-collapse: collapse; font-size: 12.5px; }
.heatmap th, .heatmap td { border: 1px solid var(--line); }
.heatmap-corner, .heatmap-member { text-align: left; padding: 8px 12px; background: var(--paper); position: sticky; left: 0; }
.heatmap-member { font-weight: 600; color: var(--ink); white-space: nowrap; max-width: 160px; }
.heatmap-skill { padding: 8px 6px; vertical-align: bottom; background: var(--paper); min-width: 64px; max-width: 84px; }
.heatmap-skill-name { display: block; font-size: 11px; font-weight: 600; color: var(--stone); line-height: 1.2; }
.heatmap-cell { width: 64px; height: 34px; text-align: center; vertical-align: middle; }
.heatmap-cell.hm-b-needs-work { background: var(--band-needs-work); }
.heatmap-cell.hm-b-developing { background: var(--band-developing); }
.heatmap-cell.hm-b-proficient { background: var(--band-proficient); }
.heatmap-cell.hm-b-exceptional { background: var(--band-exceptional); }
.heatmap-cell--none { background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--paper-2) 4px, var(--paper-2) 8px); }
.heatmap-up { color: #fff; font-weight: 700; }
.heatmap-cell--none .heatmap-up { color: var(--ink); }
.heatmap-gap-head th, .heatmap-gap-head td { background: var(--paper); font-size: 12px; color: var(--stone); padding: 8px 12px; text-align: left; border-top: 2px solid var(--ink); }
.heatmap-gap-band { padding: 6px 12px; text-align: left; white-space: nowrap; color: var(--ink); font-weight: 500; }
.gap-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.gap-swatch.b-needs-work { background: var(--band-needs-work); }
.gap-swatch.b-developing { background: var(--band-developing); }
.gap-swatch.b-proficient { background: var(--band-proficient); }
.gap-swatch.b-exceptional { background: var(--band-exceptional); }
.gap-swatch.b-none { background: repeating-linear-gradient(45deg, #fff, #fff 3px, var(--paper-2) 3px, var(--paper-2) 6px); border: 1px solid var(--line); }
.heatmap-gap-count { text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Heatmap legend */
.heatmap-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--stone); }
.heatmap-legend-item { display: inline-flex; align-items: center; }
.heatmap-legend-up .heatmap-up { color: var(--ink); margin-right: 6px; }

/* Reports */
.report-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.report-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
}
.report-card-title { font-family: var(--serif); font-weight: 400; font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.report-card-desc { font-size: 13.5px; color: var(--stone); margin: 0; max-width: 64ch; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 12px 0 0; }
.settings-grid dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.settings-grid dd { margin: 3px 0 0; font-size: 15px; color: var(--ink); }
.settings-skill-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.settings-skill { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.settings-skill-name { font-size: 14px; color: var(--ink); }
.settings-skill-target { font-size: 12px; color: var(--stone); white-space: nowrap; }
.vis-columns { margin-top: 14px; }
.vis-col ul { margin: 8px 0 0; padding-left: 18px; }
.vis-col li { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.vis-col-title { font-size: 13px; font-weight: 600; margin: 0; }
.vis-col--never .vis-col-title { color: var(--band-needs-work); }
.vis-col--sees .vis-col-title { color: var(--band-proficient); }
.vis-why { margin-top: 14px; font-size: 13px; color: var(--stone); font-style: italic; }

/* Official-data footnote */
.admin-footnote { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stone); margin-top: 6px; }
.admin-footnote-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--band-proficient); display: inline-block; flex: none; }

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN OVERVIEW — first admin-portal tab (org-wide demo hero). Beta tokens only
   (warm paper, amber accent, IBM Plex Sans + Source Serif 4); band colours are DATA
   (--band-*), never decoration. Layout from the reference mockups; visuals are beta's.
   ════════════════════════════════════════════════════════════════════════════ */
.admin-overview { max-width: 1120px; }

/* Quick actions */
.ov-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ov-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, transform .12s;
}
.ov-action:hover { border-color: var(--amber); color: var(--ink); transform: translateY(-1px); }
.ov-action-ic { color: var(--amber); font-size: 14px; line-height: 1; }

/* K1: program scope bar (the org-first switcher above every admin tab) */
.prog-scope-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
}
.prog-scope-org { font-family: var(--serif); font-weight: 500; color: var(--ink); }
.prog-scope-sep { color: var(--stone); }
.prog-scope-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.prog-scope-tab {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--stone); cursor: pointer; white-space: nowrap; transition: all 120ms ease;
}
.prog-scope-tab:hover { border-color: var(--amber); color: var(--ink); }
.prog-scope-tab.active { background: var(--amber); border-color: var(--amber); color: var(--white); }

/* K1b: status chips (Draft / Archived) shown on pills + dropdown rows */
.prog-chip {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; vertical-align: middle;
}
.prog-chip--draft    { background: #FAF0DC; color: #854F0B; }
.prog-chip--archived { background: #F1F5F9; color: #64748B; }

/* K1b: dropdown switcher (≥4 programs, or any archived) */
.prog-dd { position: relative; }
.prog-dd-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-width: 180px; justify-content: space-between;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.prog-dd-trigger:hover { border-color: var(--amber); }
.prog-dd-caret { color: var(--stone); font-size: 11px; }
.prog-dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  width: 320px; max-width: 90vw; padding: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(26,24,23,0.12);
}
.prog-dd-menu.open { display: block; }
.prog-dd-search {
  width: 100%; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--ink); box-sizing: border-box;
}
.prog-dd-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.prog-dd-row {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: transparent; border-radius: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--ink); cursor: pointer;
}
.prog-dd-row:hover { background: var(--paper); }
.prog-dd-row.active { background: #FAF0DC; font-weight: 600; }
.prog-dd-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-dd-past-toggle {
  width: 100%; margin-top: 6px; padding: 8px 10px; border: none; border-top: 1px solid var(--line);
  background: transparent; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--stone);
  cursor: pointer; text-align: left;
}
.prog-dd-past-toggle:hover { color: var(--ink); }

/* K1: program cards (org-first rollup strip) */
.ov-programs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.ov-prog-card {
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); display: flex; flex-direction: column; gap: 10px;
}
.ov-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-prog-name { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-prog-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.ov-prog-badge--assessment  { background: #F0EDFC; color: #6D4AE0; }
.ov-prog-badge--development  { background: #E4F4ED; color: #0E5A43; }
.ov-prog-badge--blended      { background: #FAF0DC; color: #854F0B; }
.ov-prog-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ov-prog-count { font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-prog-headline { font-size: 12.5px; color: var(--stone); }

/* KPI cards */
.ov-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ov-kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.ov-kpi--accent { border-color: rgba(232,162,58,0.45); background: linear-gradient(180deg, rgba(232,162,58,0.07), var(--white) 60%); }
.ov-kpi--accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); }
.ov-kpi-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.ov-kpi-value { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 8px 0 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-kpi--accent .ov-kpi-value { color: var(--coral); }
.ov-kpi-sub { font-size: 12px; color: var(--stone); }

/* Two-column widget grid */
.ov-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; align-items: start; }
.ov-col { display: flex; flex-direction: column; gap: 16px; }
.ov-card { margin: 0; }
.ov-card-sub { font-size: 12.5px; color: var(--stone); margin: 2px 0 12px; }
.ov-card-head { display: flex; align-items: baseline; justify-content: space-between; }
.ov-card-pad { padding: 16px; }
.ov-num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-empty { font-size: 13px; color: var(--stone-2); padding: 8px 0; font-style: italic; }

/* Readiness distribution donut (per-learner, readiness scale) */
.ov-donut-wrap { display: flex; align-items: center; gap: 22px; }
.ov-donut { width: 132px; height: 132px; flex: none; }
.ov-donut-track { fill: none; stroke: var(--paper-2); stroke-width: 16; }
.ov-donut-seg { fill: none; stroke-width: 16; stroke-linecap: butt; }
.ov-donut-seg.b-needs-work { stroke: var(--band-needs-work); }
.ov-donut-seg.b-developing { stroke: var(--band-developing); }
.ov-donut-seg.b-proficient { stroke: var(--band-proficient); }
.ov-donut-seg.b-exceptional { stroke: var(--band-exceptional); }
.ov-donut-num { font-family: var(--serif); font-size: 30px; fill: var(--ink); }
.ov-donut-cap { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--stone); }
.ov-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ov-donut-legend-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.ov-donut-legend-label { color: var(--ink); flex: 1; }
.ov-donut-legend-val { color: var(--stone); font-variant-numeric: tabular-nums; }

/* Skill heatmap (stacked band bars) */
.ov-heat { display: flex; flex-direction: column; gap: 8px; }
.ov-heat-row { display: grid; grid-template-columns: 130px 1fr 24px; align-items: center; gap: 10px; }
.ov-heat-name { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-heat-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.ov-heat-seg { display: block; min-width: 3px; }
.ov-heat-empty { flex: 1; background: var(--paper-2); }
.ov-heat-seg.b-needs-work { background: var(--band-needs-work); }
.ov-heat-seg.b-developing { background: var(--band-developing); }
.ov-heat-seg.b-proficient { background: var(--band-proficient); }
.ov-heat-seg.b-exceptional { background: var(--band-exceptional); }
.ov-heat-total { font-size: 12px; color: var(--stone); text-align: right; font-variant-numeric: tabular-nums; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ov-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--stone); }
.ov-legend-dot { width: 9px; height: 9px; border-radius: 3px; }
.ov-legend-dot.b-needs-work { background: var(--band-needs-work); }
.ov-legend-dot.b-developing { background: var(--band-developing); }
.ov-legend-dot.b-proficient { background: var(--band-proficient); }
.ov-legend-dot.b-exceptional { background: var(--band-exceptional); }

/* Readiness trend sparkline */
.ov-trend-now { font-family: var(--serif); font-size: 22px; color: var(--coral); font-variant-numeric: tabular-nums; }
.ov-spark { width: 100%; height: 90px; display: block; }
.ov-spark-line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-spark-area { fill: rgba(232,162,58,0.12); stroke: none; }
.ov-spark-dot { fill: var(--amber); }
.ov-spark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--stone-2); }

/* Generic widget list (top skills / sims / at-risk / activity) */
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ov-list-row:last-child { border-bottom: none; }
.ov-list-name { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.ov-list-meta { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.ov-list-score, .ov-list-count { font-size: 12.5px; color: var(--stone); font-variant-numeric: tabular-nums; }
.ov-risk-reason { font-size: 12px; color: var(--band-needs-work); font-weight: 500; flex: none; }
.ov-act-text { font-size: 13px; color: var(--stone); }
.ov-act-text b { color: var(--ink); font-weight: 600; }
.ov-act-sim { color: var(--ink); }
.ov-act-when { font-size: 11.5px; color: var(--stone-2); font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .ov-grid { grid-template-columns: 1fr; }
  .ov-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .admin-tiles { grid-template-columns: repeat(2, 1fr); }
  .settings-grid, .settings-skill-list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN PORTAL — amber-branded chrome + tab placeholders. The avatar/primary-button
   purple is the GLOBAL vibrancy palette (the learner app keeps it); these overrides
   are SCOPED to .app--admin so only the admin surface goes amber. Beta tokens only.
   ════════════════════════════════════════════════════════════════════════════ */
.app--admin .topbar .avatar,
.app--admin .avatar { background: linear-gradient(135deg, var(--amber), var(--coral)); }
.app--admin .btn-primary { background: linear-gradient(120deg, var(--amber), var(--coral)); }
.app--admin .btn-link, .app--admin .btn-ghost:hover { color: var(--ink); }
/* active nav item gets an amber edge (replacing the global magenta accent) */
.app--admin .sidenav .nav-item.active { box-shadow: inset 3px 0 0 var(--amber), var(--shadow-sm); }
.app--admin .sidenav .nav-item.active .ico { color: var(--amber); }
/* more tabs than the 6 it was built for — let the mobile bar scroll, not squish */
.app--admin .bottomnav { overflow-x: auto; justify-content: flex-start; }
.app--admin .bottomnav-item { flex: none; }

/* Admin tab placeholder ("coming soon") shell — clearly demarcated, no fabricated data */
.admin-soon {
  display: flex; align-items: flex-start; gap: 16px;
  max-width: 660px; margin-top: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.admin-soon-mark {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px;
  background: rgba(232, 154, 60, 0.12); color: var(--amber);
}
.admin-soon-title { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 1px 0 6px; color: var(--ink); }
.admin-soon-text { font-size: 14px; color: var(--stone); line-height: 1.55; }
.admin-soon-will { margin-top: 12px; font-size: 13px; color: var(--stone-2); }

/* ════════════════════════════════════════════════════════════════════════════
   LEARNER VIBRANCY RAIL — design-refs/rail_final.html (C1 plum→charcoal).
   Scoped to .sidenav--learner so the shared light console rail (admin/CMS/support)
   is untouched. Values copied exactly from the design-ref; the gradient edge-bar's
   offset is adapted to biziga's 16px rail padding (design used -18px for 18px).
   The "biziga." logo stays in biziga's full-width top bar (structural difference
   from the mockup, which carries the logo inside the rail) — not moved.
   ════════════════════════════════════════════════════════════════════════════ */
.sidenav--learner {
  background: linear-gradient(170deg, #3B2456 0%, #241B2E 50%, #1C1A18 100%);
  border-right: none;
  color: #fff;
}
/* role label ("Learner") — muted white */
.sidenav--learner .group { color: rgba(255, 255, 255, 0.5); }
/* inactive items: muted white + leading dot */
.sidenav--learner .nav-item {
  position: relative;
  color: rgba(255, 255, 255, 0.6);
}
.sidenav--learner .nav-item::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.45; transition: all .16s;
}
.sidenav--learner .nav-item:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
}
.sidenav--learner .nav-item:hover::before { opacity: 0.8; }
/* active: frosted fill + inset white border + gradient edge-bar + glowing amber dot */
.sidenav--learner .nav-item.active {
  color: #fff; font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), 0 3px 14px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sidenav--learner .nav-item.active::before {
  opacity: 1; background: #E8A23A;
  box-shadow: 0 0 9px rgba(232, 162, 58, 0.9);
}
.sidenav--learner .nav-item.active::after {
  content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(160deg, #6D4AE0, #C0399B 55%, #E8634A);
}

/* ── M1a: New-program create card + modal ─────────────────────────────────── */
.ov-newprog-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--border, #CBD5E1); background: transparent; cursor: pointer;
  border-radius: 12px; min-height: 96px; color: var(--brand-violet, #6D4AE0);
  transition: border-color .15s, background .15s;
}
.ov-newprog-card:hover { border-color: var(--brand-violet, #6D4AE0); background: rgba(109,74,224,0.05); }
.ov-newprog-plus { font-size: 22px; line-height: 1; }
.ov-newprog-label { font-size: 13px; font-weight: 600; }
.prog-newprog-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--brand-violet, #6D4AE0); background: var(--brand-violet, #6D4AE0);
  color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}
.prog-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45); display: flex; align-items: center;
  justify-content: center; z-index: 1000; padding: 20px;
}
.prog-modal {
  background: #fff; border-radius: 14px; padding: 24px; width: min(480px, 100%);
  box-shadow: 0 20px 60px rgba(15,23,42,0.25); display: flex; flex-direction: column; gap: 14px;
  max-height: 90vh; overflow-y: auto;
}
.prog-modal-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #0F172A; }
.prog-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #334155; }
.prog-field em { font-weight: 400; color: #94A3B8; font-style: normal; }
.prog-field input, .prog-field select, .prog-field textarea {
  font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #CBD5E1; border-radius: 8px;
  color: #0F172A; background: #fff;
}
.prog-field input:focus, .prog-field select:focus, .prog-field textarea:focus {
  outline: none; border-color: var(--brand-violet, #6D4AE0); box-shadow: 0 0 0 3px rgba(109,74,224,0.12);
}
.prog-field-hint { margin: -8px 0 0; font-size: 12px; color: #64748B; }
.prog-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prog-modal-err { margin: 0; color: #B42318; font-size: 13px; font-weight: 600; }
.prog-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.prog-btn-ghost, .prog-btn-primary {
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid transparent;
}
.prog-btn-ghost { background: #fff; border-color: #CBD5E1; color: #334155; }
.prog-btn-primary { background: var(--brand-violet, #6D4AE0); color: #fff; }
.prog-btn-primary:disabled, .prog-btn-ghost:disabled { opacity: .55; cursor: not-allowed; }
.prog-modal-note { margin: 0; font-size: 12px; color: #94A3B8; }

/* ── M1a: Settings program manager ────────────────────────────────────────── */
.prog-mgr-toolbar { margin-bottom: 14px; }
.prog-mgr-head { display: flex; align-items: center; justify-content: space-between; }
.prog-mgr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prog-mgr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff;
}
.prog-mgr-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prog-mgr-name { font-weight: 600; color: #0F172A; }
.prog-mgr-actions { display: flex; gap: 8px; flex-shrink: 0; }
.prog-mgr-actions .prog-btn-ghost, .prog-mgr-actions .prog-btn-primary { padding: 6px 12px; font-size: 12px; }
.prog-chip--active { background: #DCFCE7; color: #166534; }

/* ── C1 Checkpoint 0: workspace placeholder ───────────────────────────────── */
.ws-placeholder { text-align: left; }
.ws-placeholder-lead { margin: 0 0 6px; font-weight: 600; color: #334155; font-size: 15px; }

/* ── C1 cp2: AI-assist loop ───────────────────────────────────────────────── */
.assist-inputs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assist-count { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 10px; background: #EEF2FF; color: #4338CA; font-size: 12px; font-weight: 700; }
.assist-input-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.assist-input-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; }
.assist-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: #F1F5F9; color: #64748B; }
.assist-kind--transcript { background: #FAF0DC; color: #854F0B; }
.assist-kind--doc { background: #E0F2FE; color: #075985; }
.assist-add { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin-top: 10px; }
.assist-add textarea { grid-column: 1 / -1; }
.assist-add select, .assist-add input, .assist-add textarea { font: inherit; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 8px; }
.assist-add button { grid-column: 1 / -1; justify-self: end; }
.assist-provenance { margin: 8px 0 0; font-size: 12px; color: #94A3B8; font-style: italic; }

/* ── C1 cp3: Charter page ──────────────────────────────────────────────────── */
.charter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.charter-activate { display: flex; align-items: center; gap: 12px; }
.charter-counter { font-size: 13px; font-weight: 600; color: #64748B; }
.charter-section-head { display: flex; align-items: center; justify-content: space-between; }
.charter-kpi-note { margin: 6px 0; font-size: 12px; color: #64748B; }
.charter-field { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 8px; margin-top: 8px; }
.charter-section-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.charter-proposal { margin-top: 10px; padding: 10px 12px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px; }
.charter-proposal-head { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #475569; }
.charter-proposal-body { margin: 0 0 8px; white-space: pre-wrap; font: inherit; font-size: 13px; color: #334155; }

/* ── C1 cp4: Framework page ────────────────────────────────────────────────── */
.fw-rolebar { display: flex; align-items: center; }
.fw-role-chip { font-size: 15px; color: #0F172A; }
.fw-role-src { color: #64748B; font-size: 13px; }
.fw-adopt { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fw-adopt select { font: inherit; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 8px; }
.fw-sec-head { display: flex; align-items: center; justify-content: space-between; }
.fw-activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.fw-activity-card { border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px; }
.fw-activity-card h4 { margin: 0 0 4px; font-size: 14px; }
.fw-activity-card p { margin: 0 0 8px; font-size: 13px; color: #475569; }
.fw-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fw-tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #EEF2FF; color: #4338CA; }
.fw-add-activity { display: flex; gap: 8px; flex-wrap: wrap; }
.fw-add-activity input { flex: 1; min-width: 160px; font: inherit; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 8px; }
.fw-targets { width: 100%; border-collapse: collapse; margin-top: 10px; }
.fw-targets th, .fw-targets td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #EEF2F6; font-size: 13px; }
.fw-unmapped { font-weight: 700; color: #B42318; }
.fw-bandpick { display: inline-flex; gap: 3px; }
.fw-band-cell { width: 26px; height: 26px; border: 1px solid #CBD5E1; background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; color: #94A3B8; }
.fw-band-cell--on { background: var(--brand-violet, #6D4AE0); color: #fff; border-color: var(--brand-violet, #6D4AE0); }
.fw-src { font-size: 11px; color: #64748B; }
.fw-footer { margin-top: 16px; display: flex; justify-content: flex-end; }

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!../../nodevenv/biziga/beta/20/lib/node_modules/next/font/local/target.css?{"path":"src/lib/fonts.ts","import":"","arguments":[{"variable":"--font-plex-serif","display":"swap","fallback":["Georgia","serif"],"src":[{"path":"../../public/fonts/ibm-plex-serif-600.woff2","weight":"600","style":"normal"},{"path":"../../public/fonts/ibm-plex-serif-700.woff2","weight":"700","style":"normal"}]}],"variableName":"plexSerif"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: '__plexSerif_1d4554';
src: url(/_next/static/media/4dba2a2e51d4d91b-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 600;
font-style: normal;
}

@font-face {
font-family: '__plexSerif_1d4554';
src: url(/_next/static/media/f302dc7ef3ce7cc4-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 700;
font-style: normal;
}@font-face {font-family: '__plexSerif_Fallback_1d4554';src: local("Arial");ascent-override: 93.11%;descent-override: 24.98%;line-gap-override: 0.00%;size-adjust: 110.09%
}.__className_1d4554 {font-family: '__plexSerif_1d4554', '__plexSerif_Fallback_1d4554', Georgia, serif
}.__variable_1d4554 {--font-plex-serif: '__plexSerif_1d4554', '__plexSerif_Fallback_1d4554', Georgia, serif
}

/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!../../nodevenv/biziga/beta/20/lib/node_modules/next/font/local/target.css?{"path":"src/lib/fonts.ts","import":"","arguments":[{"variable":"--font-plex-sans","display":"swap","fallback":["system-ui","sans-serif"],"src":[{"path":"../../public/fonts/ibm-plex-sans-400.woff2","weight":"400","style":"normal"},{"path":"../../public/fonts/ibm-plex-sans-500.woff2","weight":"500","style":"normal"},{"path":"../../public/fonts/ibm-plex-sans-600.woff2","weight":"600","style":"normal"},{"path":"../../public/fonts/ibm-plex-sans-700.woff2","weight":"700","style":"normal"}]}],"variableName":"plexSans"} ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: '__plexSans_74bff0';
src: url(/_next/static/media/e5b814548bfb4db7-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: '__plexSans_74bff0';
src: url(/_next/static/media/076cc51436553cf9-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: '__plexSans_74bff0';
src: url(/_next/static/media/a9a32ccb3dde5658-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 600;
font-style: normal;
}

@font-face {
font-family: '__plexSans_74bff0';
src: url(/_next/static/media/be218eeb35b1c9e0-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 700;
font-style: normal;
}@font-face {font-family: '__plexSans_Fallback_74bff0';src: local("Arial");ascent-override: 101.35%;descent-override: 27.19%;line-gap-override: 0.00%;size-adjust: 101.13%
}.__className_74bff0 {font-family: '__plexSans_74bff0', '__plexSans_Fallback_74bff0', system-ui, sans-serif
}.__variable_74bff0 {--font-plex-sans: '__plexSans_74bff0', '__plexSans_Fallback_74bff0', system-ui, sans-serif
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!../../nodevenv/biziga/beta/20/lib/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!../../nodevenv/biziga/beta/20/lib/node_modules/next/font/local/target.css?{"path":"src/lib/fonts.ts","import":"","arguments":[{"variable":"--font-plex-mono","display":"swap","fallback":["ui-monospace","SFMono-Regular","monospace"],"src":[{"path":"../../public/fonts/ibm-plex-mono-400.woff2","weight":"400","style":"normal"},{"path":"../../public/fonts/ibm-plex-mono-500.woff2","weight":"500","style":"normal"},{"path":"../../public/fonts/ibm-plex-mono-600.woff2","weight":"600","style":"normal"}]}],"variableName":"plexMono"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: '__plexMono_d51cf2';
src: url(/_next/static/media/731ebdadd749837e-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: '__plexMono_d51cf2';
src: url(/_next/static/media/8b504b98baaf3d47-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: '__plexMono_d51cf2';
src: url(/_next/static/media/82f2977c9161d058-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 600;
font-style: normal;
}@font-face {font-family: '__plexMono_Fallback_d51cf2';src: local("Arial");ascent-override: 77.95%;descent-override: 20.91%;line-gap-override: 0.00%;size-adjust: 131.49%
}.__className_d51cf2 {font-family: '__plexMono_d51cf2', '__plexMono_Fallback_d51cf2', ui-monospace, SFMono-Regular, monospace
}.__variable_d51cf2 {--font-plex-mono: '__plexMono_d51cf2', '__plexMono_Fallback_d51cf2', ui-monospace, SFMono-Regular, monospace
}

