/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./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 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 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]) {
  -webkit-text-decoration: underline dotted;
          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::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

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% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

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

  .\!container {
    max-width: 768px !important;
  }

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

  .\!container {
    max-width: 1024px !important;
  }

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

  .\!container {
    max-width: 1280px !important;
  }

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

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-right-0\.5 {
  right: -0.125rem;
}
.-top-0\.5 {
  top: -0.125rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-2 {
  bottom: 0.5rem;
}
.bottom-6 {
  bottom: 1.5rem;
}
.left-0 {
  left: 0px;
}
.left-2 {
  left: 0.5rem;
}
.left-3 {
  left: 0.75rem;
}
.left-4 {
  left: 1rem;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.right-3 {
  right: 0.75rem;
}
.right-6 {
  right: 1.5rem;
}
.top-0 {
  top: 0px;
}
.top-1\/2 {
  top: 50%;
}
.top-4 {
  top: 1rem;
}
.top-6 {
  top: 1.5rem;
}
.top-full {
  top: 100%;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-50 {
  z-index: 50;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[110\] {
  z-index: 110;
}
.z-\[60\] {
  z-index: 60;
}
.z-\[65\] {
  z-index: 65;
}
.z-\[70\] {
  z-index: 70;
}
.z-\[80\] {
  z-index: 80;
}
.z-\[9999\] {
  z-index: 9999;
}
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.m-0 {
  margin: 0px;
}
.m-5 {
  margin: 1.25rem;
}
.-mx-4 {
  margin-left: -1rem;
  margin-right: -1rem;
}
.-mx-px {
  margin-left: -1px;
  margin-right: -1px;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1\.5 {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.-mb-4 {
  margin-bottom: -1rem;
}
.-ml-1 {
  margin-left: -0.25rem;
}
.-mt-1 {
  margin-top: -0.25rem;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-2\.5 {
  margin-top: 0.625rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.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;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-fit {
  height: -moz-fit-content;
  height: fit-content;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.h-screen {
  height: 100vh;
}
.max-h-28 {
  max-height: 7rem;
}
.max-h-32 {
  max-height: 8rem;
}
.max-h-36 {
  max-height: 9rem;
}
.max-h-40 {
  max-height: 10rem;
}
.max-h-44 {
  max-height: 11rem;
}
.max-h-48 {
  max-height: 12rem;
}
.max-h-52 {
  max-height: 13rem;
}
.max-h-56 {
  max-height: 14rem;
}
.max-h-60 {
  max-height: 15rem;
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-80 {
  max-height: 20rem;
}
.max-h-\[32rem\] {
  max-height: 32rem;
}
.max-h-\[420px\] {
  max-height: 420px;
}
.max-h-\[520px\] {
  max-height: 520px;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[90dvh\] {
  max-height: 90dvh;
}
.max-h-\[calc\(100dvh-16rem\)\] {
  max-height: calc(100dvh - 16rem);
}
.max-h-full {
  max-height: 100%;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-11 {
  min-height: 2.75rem;
}
.min-h-28 {
  min-height: 7rem;
}
.min-h-36 {
  min-height: 9rem;
}
.min-h-8 {
  min-height: 2rem;
}
.min-h-9 {
  min-height: 2.25rem;
}
.min-h-\[2\.5rem\] {
  min-height: 2.5rem;
}
.min-h-\[32rem\] {
  min-height: 32rem;
}
.min-h-\[360px\] {
  min-height: 360px;
}
.min-h-\[3rem\] {
  min-height: 3rem;
}
.min-h-\[44px\] {
  min-height: 44px;
}
.min-h-\[560px\] {
  min-height: 560px;
}
.min-h-\[58vh\] {
  min-height: 58vh;
}
.min-h-\[72px\] {
  min-height: 72px;
}
.min-h-\[96px\] {
  min-height: 96px;
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1 {
  width: 0.25rem;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-1\/2 {
  width: 50%;
}
.w-1\/3 {
  width: 33.333333%;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-3\/4 {
  width: 75%;
}
.w-32 {
  width: 8rem;
}
.w-36 {
  width: 9rem;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-52 {
  width: 13rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[280px\] {
  width: 280px;
}
.w-\[320px\] {
  width: 320px;
}
.w-\[min\(92vw\2c 520px\)\] {
  width: min(92vw, 520px);
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[18px\] {
  min-width: 18px;
}
.min-w-\[210px\] {
  min-width: 210px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[260px\] {
  min-width: 260px;
}
.min-w-\[700px\] {
  min-width: 700px;
}
.min-w-\[760px\] {
  min-width: 760px;
}
.min-w-\[820px\] {
  min-width: 820px;
}
.min-w-\[980px\] {
  min-width: 980px;
}
.min-w-full {
  min-width: 100%;
}
.min-w-max {
  min-width: -moz-max-content;
  min-width: max-content;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-48 {
  max-width: 12rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-\[1500px\] {
  max-width: 1500px;
}
.max-w-\[260px\] {
  max-width: 260px;
}
.max-w-\[280px\] {
  max-width: 280px;
}
.max-w-\[340px\] {
  max-width: 340px;
}
.max-w-\[85\%\] {
  max-width: 85%;
}
.max-w-\[85vw\] {
  max-width: 85vw;
}
.max-w-\[calc\(100vw-32px\)\] {
  max-width: calc(100vw - 32px);
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-none {
  max-width: none;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.basis-full {
  flex-basis: 100%;
}
.border-collapse {
  border-collapse: collapse;
}
.border-separate {
  border-collapse: separate;
}
.border-spacing-0 {
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  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));
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  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));
}
.translate-x-0\.5 {
  --tw-translate-x: 0.125rem;
  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));
}
.translate-x-1 {
  --tw-translate-x: 0.25rem;
  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));
}
.translate-x-4 {
  --tw-translate-x: 1rem;
  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));
}
.translate-x-5 {
  --tw-translate-x: 1.25rem;
  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));
}
.rotate-180 {
  --tw-rotate: 180deg;
  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));
}
.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));
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-crosshair {
  cursor: crosshair;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-wait {
  cursor: wait;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.select-text {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}
.scroll-mt-6 {
  scroll-margin-top: 1.5rem;
}
.list-decimal {
  list-style-type: decimal;
}
.list-disc {
  list-style-type: disc;
}
.list-none {
  list-style-type: none;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-\[140px_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 140px minmax(0,1fr);
}
.grid-cols-\[180px_1fr_120px\] {
  grid-template-columns: 180px 1fr 120px;
}
.grid-cols-\[max-content_1fr\] {
  grid-template-columns: max-content 1fr;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.place-items-center {
  place-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-y-0\.5 {
  row-gap: 0.125rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-0 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-border-subtle > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--color-border-subtle);
}
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-divide-opacity, 1));
}
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1));
}
.divide-gray-50 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(249 250 251 / var(--tw-divide-opacity, 1));
}
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-divide-opacity, 1));
}
.self-start {
  align-self: flex-start;
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-panel {
  border-radius: var(--radius-panel);
}
.rounded-pill {
  border-radius: var(--radius-pill);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-l-\[3px\] {
  border-left-width: 3px;
}
.border-r {
  border-right-width: 1px;
}
.border-r-2 {
  border-right-width: 2px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-\[color\:var\(--ink-line\)\] {
  border-color: var(--ink-line);
}
.border-\[color\:var\(--status-approved-bg\)\] {
  border-color: var(--status-approved-bg);
}
.border-\[color\:var\(--status-failed-bg\)\] {
  border-color: var(--status-failed-bg);
}
.border-\[color\:var\(--status-pending-bg\)\] {
  border-color: var(--status-pending-bg);
}
.border-\[color\:var\(--status-released-bg\)\] {
  border-color: var(--status-released-bg);
}
.border-amber-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 243 199 / var(--tw-border-opacity, 1));
}
.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.border-amber-300 {
  --tw-border-opacity: 1;
  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1));
}
.border-blue-100 {
  --tw-border-opacity: 1;
  border-color: rgb(219 234 254 / var(--tw-border-opacity, 1));
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-border-strong {
  border-color: var(--color-border-strong);
}
.border-border-subtle {
  border-color: var(--color-border-subtle);
}
.border-brand {
  border-color: var(--color-accent);
}
.border-current {
  border-color: currentColor;
}
.border-cyan-100 {
  --tw-border-opacity: 1;
  border-color: rgb(207 250 254 / var(--tw-border-opacity, 1));
}
.border-emerald-100 {
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
}
.border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
}
.border-emerald-300 {
  --tw-border-opacity: 1;
  border-color: rgb(110 231 183 / var(--tw-border-opacity, 1));
}
.border-emerald-500 {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-gray-50 {
  --tw-border-opacity: 1;
  border-color: rgb(249 250 251 / var(--tw-border-opacity, 1));
}
.border-gray-500 {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}
.border-gray-900 {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.border-gray-950 {
  --tw-border-opacity: 1;
  border-color: rgb(3 7 18 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-indigo-100 {
  --tw-border-opacity: 1;
  border-color: rgb(224 231 255 / var(--tw-border-opacity, 1));
}
.border-indigo-200 {
  --tw-border-opacity: 1;
  border-color: rgb(199 210 254 / var(--tw-border-opacity, 1));
}
.border-indigo-300 {
  --tw-border-opacity: 1;
  border-color: rgb(165 180 252 / var(--tw-border-opacity, 1));
}
.border-indigo-400 {
  --tw-border-opacity: 1;
  border-color: rgb(129 140 248 / var(--tw-border-opacity, 1));
}
.border-indigo-500 {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}
.border-indigo-600 {
  --tw-border-opacity: 1;
  border-color: rgb(79 70 229 / var(--tw-border-opacity, 1));
}
.border-ink {
  border-color: var(--color-text);
}
.border-orange-100 {
  --tw-border-opacity: 1;
  border-color: rgb(255 237 213 / var(--tw-border-opacity, 1));
}
.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-300 {
  --tw-border-opacity: 1;
  border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));
}
.border-rose-100 {
  --tw-border-opacity: 1;
  border-color: rgb(255 228 230 / var(--tw-border-opacity, 1));
}
.border-rose-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1));
}
.border-rose-300 {
  --tw-border-opacity: 1;
  border-color: rgb(253 164 175 / var(--tw-border-opacity, 1));
}
.border-sky-100 {
  --tw-border-opacity: 1;
  border-color: rgb(224 242 254 / var(--tw-border-opacity, 1));
}
.border-sky-200 {
  --tw-border-opacity: 1;
  border-color: rgb(186 230 253 / var(--tw-border-opacity, 1));
}
.border-slate-100 {
  --tw-border-opacity: 1;
  border-color: rgb(241 245 249 / var(--tw-border-opacity, 1));
}
.border-slate-200 {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
}
.border-slate-300 {
  --tw-border-opacity: 1;
  border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
}
.border-stone-200 {
  --tw-border-opacity: 1;
  border-color: rgb(231 229 228 / var(--tw-border-opacity, 1));
}
.border-teal-100 {
  --tw-border-opacity: 1;
  border-color: rgb(204 251 241 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-violet-100 {
  --tw-border-opacity: 1;
  border-color: rgb(237 233 254 / var(--tw-border-opacity, 1));
}
.border-violet-200 {
  --tw-border-opacity: 1;
  border-color: rgb(221 214 254 / var(--tw-border-opacity, 1));
}
.border-violet-400 {
  --tw-border-opacity: 1;
  border-color: rgb(167 139 250 / var(--tw-border-opacity, 1));
}
.border-violet-500 {
  --tw-border-opacity: 1;
  border-color: rgb(139 92 246 / var(--tw-border-opacity, 1));
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}
.border-zinc-200 {
  --tw-border-opacity: 1;
  border-color: rgb(228 228 231 / var(--tw-border-opacity, 1));
}
.border-zinc-300 {
  --tw-border-opacity: 1;
  border-color: rgb(212 212 216 / var(--tw-border-opacity, 1));
}
.border-l-\[color\:var\(--accent-attention\)\] {
  border-left-color: var(--accent-attention);
}
.border-l-\[color\:var\(--color-accent\)\] {
  border-left-color: var(--color-accent);
}
.border-l-amber-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-l-emerald-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.border-l-gray-300 {
  --tw-border-opacity: 1;
  border-left-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-l-slate-400 {
  --tw-border-opacity: 1;
  border-left-color: rgb(148 163 184 / var(--tw-border-opacity, 1));
}
.border-l-teal-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(20 184 166 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-\[color\:var\(--color-accent\)\] {
  background-color: var(--color-accent);
}
.bg-\[color\:var\(--color-accent-soft\2c rgba\(99\2c 102\2c 241\2c 0\.06\)\)\] {
  background-color: var(--color-accent-soft,rgba(99,102,241,0.06));
}
.bg-\[color\:var\(--color-canvas\)\] {
  background-color: var(--color-canvas);
}
.bg-\[color\:var\(--color-paper\)\] {
  background-color: var(--color-paper);
}
.bg-\[color\:var\(--status-approved-bg\)\] {
  background-color: var(--status-approved-bg);
}
.bg-\[color\:var\(--status-draft-bg\)\] {
  background-color: var(--status-draft-bg);
}
.bg-\[color\:var\(--status-failed-bg\)\] {
  background-color: var(--status-failed-bg);
}
.bg-\[color\:var\(--status-neutral-bg\)\] {
  background-color: var(--status-neutral-bg);
}
.bg-\[color\:var\(--status-pending-bg\)\] {
  background-color: var(--status-pending-bg);
}
.bg-\[color\:var\(--status-released-bg\)\] {
  background-color: var(--status-released-bg);
}
.bg-\[color\:var\(--surface-inverse\)\] {
  background-color: var(--surface-inverse);
}
.bg-amber-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}
.bg-amber-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(253 230 138 / var(--tw-bg-opacity, 1));
}
.bg-amber-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-amber-50\/50 {
  background-color: rgb(255 251 235 / 0.5);
}
.bg-amber-50\/80 {
  background-color: rgb(255 251 235 / 0.8);
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-amber-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(217 119 6 / var(--tw-bg-opacity, 1));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/30 {
  background-color: rgb(0 0 0 / 0.3);
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-black\/5 {
  background-color: rgb(0 0 0 / 0.05);
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-border-strong {
  background-color: var(--color-border-strong);
}
.bg-border-subtle {
  background-color: var(--color-border-subtle);
}
.bg-brand {
  background-color: var(--color-accent);
}
.bg-canvas {
  background-color: var(--color-canvas);
}
.bg-cyan-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(207 250 254 / var(--tw-bg-opacity, 1));
}
.bg-cyan-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 254 255 / var(--tw-bg-opacity, 1));
}
.bg-cyan-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(6 182 212 / var(--tw-bg-opacity, 1));
}
.bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.bg-emerald-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1));
}
.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.bg-emerald-50\/50 {
  background-color: rgb(236 253 245 / 0.5);
}
.bg-emerald-50\/60 {
  background-color: rgb(236 253 245 / 0.6);
}
.bg-emerald-50\/70 {
  background-color: rgb(236 253 245 / 0.7);
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-emerald-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}
.bg-emerald-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(4 120 87 / var(--tw-bg-opacity, 1));
}
.bg-fuchsia-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(217 70 239 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-50\/60 {
  background-color: rgb(249 250 251 / 0.6);
}
.bg-gray-50\/70 {
  background-color: rgb(249 250 251 / 0.7);
}
.bg-gray-50\/80 {
  background-color: rgb(249 250 251 / 0.8);
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-gray-950 {
  --tw-bg-opacity: 1;
  background-color: rgb(3 7 18 / var(--tw-bg-opacity, 1));
}
.bg-gray-950\/45 {
  background-color: rgb(3 7 18 / 0.45);
}
.bg-gray-950\/55 {
  background-color: rgb(3 7 18 / 0.55);
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-indigo-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}
.bg-indigo-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(165 180 252 / var(--tw-bg-opacity, 1));
}
.bg-indigo-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(129 140 248 / var(--tw-bg-opacity, 1));
}
.bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1));
}
.bg-indigo-50\/40 {
  background-color: rgb(238 242 255 / 0.4);
}
.bg-indigo-50\/50 {
  background-color: rgb(238 242 255 / 0.5);
}
.bg-indigo-50\/60 {
  background-color: rgb(238 242 255 / 0.6);
}
.bg-indigo-50\/70 {
  background-color: rgb(238 242 255 / 0.7);
}
.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}
.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}
.bg-ink {
  background-color: var(--color-text);
}
.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.bg-orange-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}
.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-50\/50 {
  background-color: rgb(254 242 242 / 0.5);
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-rose-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));
}
.bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.bg-rose-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1));
}
.bg-rose-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(225 29 72 / var(--tw-bg-opacity, 1));
}
.bg-sky-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 242 254 / var(--tw-bg-opacity, 1));
}
.bg-sky-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1));
}
.bg-sky-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity, 1));
}
.bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}
.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}
.bg-slate-50\/60 {
  background-color: rgb(248 250 252 / 0.6);
}
.bg-slate-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(100 116 139 / var(--tw-bg-opacity, 1));
}
.bg-slate-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
}
.bg-slate-900\/40 {
  background-color: rgb(15 23 42 / 0.4);
}
.bg-slate-950 {
  --tw-bg-opacity: 1;
  background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1));
}
.bg-stone-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 244 / var(--tw-bg-opacity, 1));
}
.bg-stone-900\/40 {
  background-color: rgb(28 25 23 / 0.4);
}
.bg-surface {
  background-color: var(--color-surface);
}
.bg-surface-elevated {
  background-color: var(--color-surface-elevated);
}
.bg-surface-soft {
  background-color: var(--color-surface-soft);
}
.bg-teal-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(204 251 241 / var(--tw-bg-opacity, 1));
}
.bg-teal-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 250 / var(--tw-bg-opacity, 1));
}
.bg-teal-50\/60 {
  background-color: rgb(240 253 250 / 0.6);
}
.bg-teal-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 184 166 / var(--tw-bg-opacity, 1));
}
.bg-teal-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 118 110 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-violet-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.bg-violet-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(196 181 253 / var(--tw-bg-opacity, 1));
}
.bg-violet-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(167 139 250 / var(--tw-bg-opacity, 1));
}
.bg-violet-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 243 255 / var(--tw-bg-opacity, 1));
}
.bg-violet-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(139 92 246 / var(--tw-bg-opacity, 1));
}
.bg-violet-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(124 58 237 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.bg-white\/70 {
  background-color: rgb(255 255 255 / 0.7);
}
.bg-white\/75 {
  background-color: rgb(255 255 255 / 0.75);
}
.bg-white\/85 {
  background-color: rgb(255 255 255 / 0.85);
}
.bg-white\/95 {
  background-color: rgb(255 255 255 / 0.95);
}
.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.bg-yellow-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}
.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.bg-zinc-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity, 1));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.p-0 {
  padding: 0px;
}
.p-0\.5 {
  padding: 0.125rem;
}
.p-1 {
  padding: 0.25rem;
}
.p-10 {
  padding: 2.5rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-7 {
  padding: 1.75rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[2px\] {
  padding-top: 2px;
  padding-bottom: 2px;
}
.py-\[3px\] {
  padding-top: 3px;
  padding-bottom: 3px;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-12 {
  padding-bottom: 3rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-8 {
  padding-bottom: 2rem;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pl-9 {
  padding-left: 2.25rem;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-14 {
  padding-right: 3.5rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-20 {
  padding-right: 5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-10 {
  padding-top: 2.5rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-5 {
  padding-top: 1.25rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-7 {
  padding-top: 1.75rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-top {
  vertical-align: top;
}
.align-middle {
  vertical-align: middle;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-\[0\.85em\] {
  font-size: 0.85em;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-black {
  font-weight: 900;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.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);
}
.leading-4 {
  line-height: 1rem;
}
.leading-5 {
  line-height: 1.25rem;
}
.leading-6 {
  line-height: 1.5rem;
}
.leading-7 {
  line-height: 1.75rem;
}
.leading-\[1\.6\] {
  line-height: 1.6;
}
.leading-\[1\.7\] {
  line-height: 1.7;
}
.leading-\[18px\] {
  line-height: 18px;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-snug {
  line-height: 1.375;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[0\.08em\] {
  letter-spacing: 0.08em;
}
.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}
.tracking-\[0\.14em\] {
  letter-spacing: 0.14em;
}
.tracking-\[0\.16em\] {
  letter-spacing: 0.16em;
}
.tracking-\[0\.18em\] {
  letter-spacing: 0.18em;
}
.tracking-\[0\.22em\] {
  letter-spacing: 0.22em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-\[color\:var\(--accent-attention-fg\)\] {
  color: var(--accent-attention-fg);
}
.text-\[color\:var\(--color-accent\)\] {
  color: var(--color-accent);
}
.text-\[color\:var\(--ink-inverse\)\] {
  color: var(--ink-inverse);
}
.text-\[color\:var\(--ink-muted\)\] {
  color: var(--ink-muted);
}
.text-\[color\:var\(--rose-600\)\] {
  color: var(--rose-600);
}
.text-\[color\:var\(--status-approved-fg\)\] {
  color: var(--status-approved-fg);
}
.text-\[color\:var\(--status-draft-fg\)\] {
  color: var(--status-draft-fg);
}
.text-\[color\:var\(--status-failed-fg\)\] {
  color: var(--status-failed-fg);
}
.text-\[color\:var\(--status-neutral-fg\)\] {
  color: var(--status-neutral-fg);
}
.text-\[color\:var\(--status-pending-fg\)\] {
  color: var(--status-pending-fg);
}
.text-\[color\:var\(--status-released-fg\)\] {
  color: var(--status-released-fg);
}
.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}
.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.text-amber-900 {
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}
.text-amber-950 {
  --tw-text-opacity: 1;
  color: rgb(69 26 3 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.text-blue-950 {
  --tw-text-opacity: 1;
  color: rgb(23 37 84 / var(--tw-text-opacity, 1));
}
.text-border-strong {
  color: var(--color-border-strong);
}
.text-brand {
  color: var(--color-accent);
}
.text-brand-contrast {
  color: var(--color-accent-contrast);
}
.text-canvas {
  color: var(--color-canvas);
}
.text-cyan-700 {
  --tw-text-opacity: 1;
  color: rgb(14 116 144 / var(--tw-text-opacity, 1));
}
.text-cyan-900 {
  --tw-text-opacity: 1;
  color: rgb(22 78 99 / var(--tw-text-opacity, 1));
}
.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}
.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity, 1));
}
.text-emerald-900 {
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1));
}
.text-emerald-950 {
  --tw-text-opacity: 1;
  color: rgb(2 44 34 / var(--tw-text-opacity, 1));
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-gray-950 {
  --tw-text-opacity: 1;
  color: rgb(3 7 18 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-green-900 {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / var(--tw-text-opacity, 1));
}
.text-indigo-500 {
  --tw-text-opacity: 1;
  color: rgb(99 102 241 / var(--tw-text-opacity, 1));
}
.text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}
.text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}
.text-indigo-800 {
  --tw-text-opacity: 1;
  color: rgb(55 48 163 / var(--tw-text-opacity, 1));
}
.text-indigo-900 {
  --tw-text-opacity: 1;
  color: rgb(49 46 129 / var(--tw-text-opacity, 1));
}
.text-indigo-950 {
  --tw-text-opacity: 1;
  color: rgb(30 27 75 / var(--tw-text-opacity, 1));
}
.text-ink {
  color: var(--color-text);
}
.text-ink-muted {
  color: var(--color-text-muted);
}
.text-orange-500 {
  --tw-text-opacity: 1;
  color: rgb(249 115 22 / var(--tw-text-opacity, 1));
}
.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-orange-800 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-red-900 {
  --tw-text-opacity: 1;
  color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.text-rose-400 {
  --tw-text-opacity: 1;
  color: rgb(251 113 133 / var(--tw-text-opacity, 1));
}
.text-rose-500 {
  --tw-text-opacity: 1;
  color: rgb(244 63 94 / var(--tw-text-opacity, 1));
}
.text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}
.text-rose-700 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.text-rose-800 {
  --tw-text-opacity: 1;
  color: rgb(159 18 57 / var(--tw-text-opacity, 1));
}
.text-rose-900 {
  --tw-text-opacity: 1;
  color: rgb(136 19 55 / var(--tw-text-opacity, 1));
}
.text-sky-500 {
  --tw-text-opacity: 1;
  color: rgb(14 165 233 / var(--tw-text-opacity, 1));
}
.text-sky-700 {
  --tw-text-opacity: 1;
  color: rgb(3 105 161 / var(--tw-text-opacity, 1));
}
.text-sky-800 {
  --tw-text-opacity: 1;
  color: rgb(7 89 133 / var(--tw-text-opacity, 1));
}
.text-sky-900 {
  --tw-text-opacity: 1;
  color: rgb(12 74 110 / var(--tw-text-opacity, 1));
}
.text-slate-100 {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity, 1));
}
.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}
.text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}
.text-slate-950 {
  --tw-text-opacity: 1;
  color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.text-stone-500 {
  --tw-text-opacity: 1;
  color: rgb(120 113 108 / var(--tw-text-opacity, 1));
}
.text-teal-600 {
  --tw-text-opacity: 1;
  color: rgb(13 148 136 / var(--tw-text-opacity, 1));
}
.text-teal-700 {
  --tw-text-opacity: 1;
  color: rgb(15 118 110 / var(--tw-text-opacity, 1));
}
.text-teal-800 {
  --tw-text-opacity: 1;
  color: rgb(17 94 89 / var(--tw-text-opacity, 1));
}
.text-transparent {
  color: transparent;
}
.text-violet-500 {
  --tw-text-opacity: 1;
  color: rgb(139 92 246 / var(--tw-text-opacity, 1));
}
.text-violet-600 {
  --tw-text-opacity: 1;
  color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}
.text-violet-700 {
  --tw-text-opacity: 1;
  color: rgb(109 40 217 / var(--tw-text-opacity, 1));
}
.text-violet-800 {
  --tw-text-opacity: 1;
  color: rgb(91 33 182 / var(--tw-text-opacity, 1));
}
.text-violet-950 {
  --tw-text-opacity: 1;
  color: rgb(46 16 101 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}
.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}
.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / var(--tw-text-opacity, 1));
}
.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}
.text-zinc-950 {
  --tw-text-opacity: 1;
  color: rgb(9 9 11 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.decoration-border-subtle {
  text-decoration-color: var(--color-border-subtle);
}
.decoration-dotted {
  text-decoration-style: dotted;
}
.underline-offset-2 {
  text-underline-offset: 2px;
}
.accent-brand {
  accent-color: var(--color-accent);
}
.opacity-100 {
  opacity: 1;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-90 {
  opacity: 0.9;
}
.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);
}
.shadow-\[0_-8px_18px_rgba\(255\2c 255\2c 255\2c 0\.9\)\] {
  --tw-shadow: 0 -8px 18px rgba(255,255,255,0.9);
  --tw-shadow-colored: 0 -8px 18px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_0_0_2px_rgba\(15\2c 118\2c 110\2c 0\.22\)\] {
  --tw-shadow: 0 0 0 2px rgba(15,118,110,0.22);
  --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-none {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-panel {
  --tw-shadow: var(--shadow-panel);
  --tw-shadow-colored: var(--shadow-panel);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.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);
}
.ring-1 {
  --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(1px + 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);
}
.ring-2 {
  --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(2px + 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);
}
.ring-inset {
  --tw-ring-inset: inset;
}
.ring-amber-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(253 230 138 / var(--tw-ring-opacity, 1));
}
.ring-amber-300 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(252 211 77 / var(--tw-ring-opacity, 1));
}
.ring-emerald-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(167 243 208 / var(--tw-ring-opacity, 1));
}
.ring-gray-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1));
}
.ring-indigo-100 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(224 231 255 / var(--tw-ring-opacity, 1));
}
.ring-indigo-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(199 210 254 / var(--tw-ring-opacity, 1));
}
.ring-violet-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(221 214 254 / var(--tw-ring-opacity, 1));
}
.ring-white {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
}
.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);
}
.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.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;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-150 {
  transition-duration: 150ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.\[mask-image\:linear-gradient\(to_bottom\2c black_68\%\2c transparent\)\] {
  -webkit-mask-image: linear-gradient(to bottom,black 68%,transparent);
          mask-image: linear-gradient(to bottom,black 68%,transparent);
}
.\[overflow-wrap\:anywhere\] {
  overflow-wrap: anywhere;
}
.\[planner\:mark-started\] {
  planner: mark-started;
}

:root {
  --color-canvas: #f4f0e8;
  --color-canvas-strong: #f8f4ec;
  --color-surface: rgba(255, 251, 244, 0.92);
  --color-surface-elevated: rgba(255, 252, 248, 0.98);
  --color-surface-soft: rgba(255, 252, 248, 0.78);
  --color-text: #1d2a2f;
  --color-text-muted: #607177;
  --color-border-subtle: rgba(29, 42, 47, 0.12);
  --color-border-strong: rgba(29, 42, 47, 0.2);
  --color-accent: #0f766e;
  --color-accent-strong: #0b525b;
  --color-accent-contrast: #f4fbf9;
  --color-highlight: #c96f3b;
  --color-focus-outline: #0f766e;
  --color-focus-ring: rgba(15, 118, 110, 0.22);

  /* Role brand tokens. Professor = teal (same family as --color-accent
   * so the system feels coherent when no role is active). Student =
   * violet. Prefer these over inline bg-teal-X / bg-violet-X utilities
   * in role-specific surfaces so the palette is tunable in one place. */
  --color-brand-professor: #0f766e;
  --color-brand-professor-strong: #0b525b;
  --color-brand-student: #6d28d9;
  --color-brand-student-strong: #5b21b6;

  --radius-panel: 20px;
  --radius-pill: 999px;
  --shadow-panel: 0 12px 40px rgba(29, 42, 47, 0.08);

  /* Spacing rhythm tokens. Use these instead of magic pixel values in
   * panel chrome so padding across header / body / tabs / pills stays
   * in step. */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 14px;

  /* Legacy aliases for existing handcrafted styles. */
  --bg: var(--color-canvas);
  --panel: var(--color-surface);
  --muted: var(--color-text-muted);
  --line: var(--color-border-subtle);
  --accent: var(--color-accent);
  --accent-2: var(--color-highlight);
  /* Resolvable defaults for scope-only tokens. The actual values live
   * on role / agentic-panel containers further down this file (those
   * still take precedence in cascade); these :root entries exist so
   * css-token-resolution can read every declared custom property off
   * the document root without failing on scope-only declarations. */
  --chat-bubble-user-bg: var(--color-accent);
  --cf-dot-accent: var(--color-accent);
  --cf-dot-warn: #ea580c;
  --cf-dot-stroke: #ffffff;

  /* ----------------------------------------------------------------
   * Phase 0 — assistant-panel redesign tokens.
   *
   * Added per docs/design-system/redesign/handoff/phase-0-assistant-panel/SPEC.md.
   * Additive: no existing token is renamed or replaced. Tokens below
   * are consumed by the redesigned assistant panel only; legacy UI
   * continues to resolve against --color-* / --bg / --panel aliases.
   * ---------------------------------------------------------------- */

  /* Surfaces. --surface-0 is the page parchment; --surface-1 is a raised
   * card sitting on it; --surface-scrim is the dim used behind Focus. */
  --surface-0: #faf7ef;
  --surface-1: #fffcf8;
  --surface-scrim: rgba(29, 42, 47, 0.32);

  /* Ink. Three-step ramp; fg-2 (40545a) is a notch deeper than the
   * existing --color-text-muted (607177) and is used for panel sub-lines. */
  --fg-1: #1d2a2f;
  --fg-2: #40545a;
  --fg-3: #607177;

  /* Hairlines. Same opacities as --color-border-subtle / -strong, but
   * with the shorter names the panel artifact uses. */
  --rule: rgba(29, 42, 47, 0.12);
  --rule-strong: rgba(29, 42, 47, 0.2);

  /* Soft companion to the existing teal accent. --accent itself is
   * already defined above as an alias of --color-accent (#0f766e) — the
   * value matches SPEC, so we don't redeclare it here, only the soft
   * tint the artifact uses behind pellets and on active tabs. */
  --accent-soft: rgba(15, 118, 110, 0.08);

  /* Attention = "pending / draft / needs review". Same family as
   * --color-highlight (#c96f3b) but wired under the "attention" name
   * that the panel artifact reads. */
  --attention: #c96f3b;
  --attention-soft: rgba(201, 111, 59, 0.12);

  /* Panel-specific shape. --panel-radius is tighter (14px) than the
   * existing --radius-panel (20px) — the floating panel feels more
   * chrome-like at 14, where cards want the softer 20. --panel-shadow
   * is heavier than --shadow-panel because the floating surface lifts
   * off the page at elevation, not just out of a row. */
  --panel-radius: 14px;
  --panel-shadow: 0 24px 60px rgba(29, 42, 47, 0.18);

  /* ----------------------------------------------------------------
   * Phase 3 — professor-core visual refresh tokens.
   *
   * Additive: no existing token is renamed. Aliases first, then a
   * canonical status palette consumed by StatusBadge / Banner and
   * the Phase 3.5 recolor sweep across the professor surfaces.
   * ---------------------------------------------------------------- */

  /* Short-name aliases the redesign SPECs reference without the
   * legacy --color-* prefix. */
  --ink: var(--color-text);
  --ink-muted: var(--color-text-muted);
  --surface: var(--color-surface);
  --surface-elevated: var(--color-surface-elevated);
  --surface-soft: var(--color-surface-soft);
  --border-subtle: var(--color-border-subtle);
  --border-strong: var(--color-border-strong);

  /* Attention accent — drafts pending, at-risk, missing-submission.
   * Aliased to the warm orange already used by the Phase 0 panel
   * (--attention / --color-highlight) so the system reads as one
   * palette. The -fg pair is the deeper text color used on top of
   * --accent-attention-soft. */
  --accent-attention: var(--attention);
  --accent-attention-soft: var(--attention-soft);
  --accent-attention-fg: #9a3a13;

  /* Canonical status palette — one bg/fg pair per state. */
  --status-released-bg: rgba(16, 185, 129, 0.12);
  --status-released-fg: #065f46;
  --status-approved-bg: rgba(59, 130, 246, 0.12);
  --status-approved-fg: #1d4ed8;
  --status-pending-bg:  rgba(245, 158, 11, 0.14);
  --status-pending-fg:  #b45309;
  --status-draft-bg:    rgba(29, 42, 47, 0.06);
  --status-draft-fg:    var(--color-text-muted);
  --status-failed-bg:   rgba(225, 29, 72, 0.12);
  --status-failed-fg:   #be123c;
  --status-neutral-bg:  rgba(29, 42, 47, 0.06);
  --status-neutral-fg:  var(--color-text-muted);

  /* Course-card top-rule (Phase 3 home card). */
  --rule-course-top: var(--color-accent);
  --rule-course-top-hover: var(--color-accent-strong);

  /* Subtle lift on card hover — pairs with --shadow-panel default. */
  --shadow-card-hover: 0 16px 48px rgba(29, 42, 47, 0.12);

  /* Inverse surface for the dark CourseHero band — alias to existing
   * brand neutrals; introduces no new colour. */
  --surface-inverse: var(--color-text);
  --ink-inverse: var(--color-canvas-strong);

  /* ----------------------------------------------------------------
   * Phase 4 — Onboarding palette swatches.
   *
   * Per-step swatches in the teal / violet / rose / emerald families
   * the onboarding artifact reads directly. Same hexes that already
   * back --color-accent / --color-brand-* — we just expose the named
   * 50/100/500/600 stops the artifact uses.
   * ---------------------------------------------------------------- */
  --teal-500: #0f766e;
  --teal-600: #0b525b;
  --teal-100: rgba(15, 118, 110, 0.12);
  --teal-50: rgba(15, 118, 110, 0.06);
  --teal-contrast: #f4fbf9;

  --violet-500: #6d28d9;
  --violet-600: #5b21b6;
  --violet-100: rgba(109, 40, 217, 0.12);
  --violet-50: rgba(109, 40, 217, 0.06);

  --rose-600: #b91c1c;
  --rose-50: #fef2f2;
  --emerald-600: #047857;
  --emerald-50: #ecfdf5;
  --amber-600: #b45309;
  --amber-50: #fffbeb;

  /* Short-name canvas aliases the artifact references directly. */
  --canvas: var(--color-canvas);
  --canvas-strong: var(--color-canvas-strong);
  --canvas-deeper: #f1eadc;

  /* Phase 6 — content authoring aliases. The canvas CSS references
   * --accent-strong / --highlight / --highlight-100 directly. The
   * underlying values already exist as --color-accent-strong and
   * --color-highlight; the highlight-100 is a soft 12% tint of the
   * highlight rust used for "next up" scheduled releases. */
  --accent-strong: var(--color-accent-strong);
  --highlight: var(--color-highlight);
  --highlight-100: rgba(201, 111, 59, 0.12);

  /* Phase 5.5 — live-class remediation aliases. The cockpit + live-room
   * SPEC writes against --color-paper / --ink-line / --color-accent-soft.
   * Aliasing rather than renaming per the SPEC's "don't rename — alias"
   * rule (echoes Phase 3.5). --color-accent itself already exists at
   * line 15; do NOT redeclare it here (a self-reference like
   * `--color-accent: var(--color-accent)` cascades over the real value
   * and resolves to empty, breaking every utility built on the token). */
  --color-paper: var(--surface-1);
  --ink-line: var(--color-border-subtle);
  --color-accent-soft: var(--accent-soft);

  /* Font + product type scale. Source Serif 4 is loaded from
   * Google Fonts in the layout head; Georgia falls back without
   * layout shift. The product scale is 14px body / 20px h1 — the
   * --fs-display-2 stop is the editorial-pitch size used only on
   * auth pitch asides. */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display-2: clamp(1.5rem, 2.4vw, 1.75rem);
  --fs-h1: 1.25rem;
  --fs-h2: 1.0625rem;
  --fs-h3: 0.9375rem;
  --fs-h4: 0.8125rem;
  --fs-body: 0.875rem;
  --fs-body-sm: 0.8125rem;
  --fs-caption: 0.75rem;
  --fs-micro: 0.6875rem;

  --space-2xl: 24px;
}

/* Role scoping for the assistant panel. Set data-role="professor" or
 * data-role="student" on the panel root; accent flips without touching
 * structure. Other role-aware surfaces (nav, etc.) still key off the
 * existing --color-brand-* tokens — this scope only reaches components
 * written against --accent / --accent-soft under a data-role ancestor. */
[data-role="professor"] {
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --color-focus-outline: #0f766e;
  --color-focus-ring: rgba(15, 118, 110, 0.22);
  /* Chat user-bubble fill — intentionally LIGHTER than the brand
   * accent so the floating panel reads like iMessage (bright + airy)
   * rather than a corporate dashboard (dark teal blocks). 500-weight
   * shade keeps white text comfortably above WCAG AA contrast (4.6:1
   * on teal-500). */
  --chat-bubble-user-bg: #14b8a6;
}
[data-role="student"] {
  --accent: #6d28d9;
  --accent-soft: rgba(109, 40, 217, 0.08);
  --color-focus-outline: #6d28d9;
  --color-focus-ring: rgba(109, 40, 217, 0.22);
  /* Same logic as the professor variant — lighter violet-500 for the
   * chat bubble while keeping the deeper violet-700 for navigation /
   * focus outlines. */
  --chat-bubble-user-bg: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at left center, rgba(201, 111, 59, 0.14), transparent 30%),
    linear-gradient(180deg, var(--color-canvas-strong) 0%, #f1eadc 100%);
  color: var(--color-text);
  font-family: Georgia, "Times New Roman", serif;
}

/* body { padding } removed in Packet B (2026-05-13). The global gutter
 * is now each page/layout's responsibility — most authed surfaces
 * already wrap their content in `max-w-7xl mx-auto px-6` (or equivalent
 * `px-*` / `p-*`), and full-bleed canvases (`.p4-canvas`, `.p5-canvas`)
 * no longer need a negative-margin escape. */

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

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-elevated);
  color: var(--color-text);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0b525b);
  color: white;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.hero--compact {
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 20px;
  box-shadow: var(--shadow-panel);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.list {
  display: grid;
  gap: 12px;
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-rail--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.78);
}

.metric-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
}

.metric-value--small {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.live-status {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.74);
}

.live-status__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.live-status__meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.demo-explainer {
  display: grid;
  gap: 12px;
}

.demo-explainer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.demo-explainer__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

.pill--approved,
.pill--active,
.pill--current {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.pill--pending,
.pill--under-review {
  background: rgba(201, 111, 59, 0.12);
  color: var(--accent-2);
}

.pill--rejected,
.pill--stale {
  background: rgba(166, 63, 34, 0.1);
  color: #a63f22;
}

.pill--completed,
.pill--superseded,
.pill--promoted {
  background: rgba(29, 42, 47, 0.07);
  color: var(--muted);
}

.pill--source {
  background: rgba(29, 42, 47, 0.08);
  color: var(--ink);
}

.pill--source--subtle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  font-weight: 400;
}

.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow-x: auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 120px;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.flow-step__indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
  color: var(--muted);
  transition: all 0.2s ease;
}

.flow-step__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.flow-step--active .flow-step__indicator {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.flow-step--active .flow-step__label {
  color: var(--accent);
  font-weight: 700;
}

.flow-step--done .flow-step__indicator {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.flow-step--done .flow-step__label {
  color: var(--ink);
}

.card-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(29, 42, 47, 0.03);
  border: 1px solid var(--line);
}

.activity {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.activity:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity strong {
  display: block;
  margin-bottom: 4px;
}

.reflection-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.reflection-card p {
  margin: 8px 0 10px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 6px 0 8px;
}

.why-anchor {
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: not-allowed;
  opacity: 0.6;
}

.why-anchor:hover {
  color: var(--ink);
}

.action-button--done {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.2);
}

.action-group {
  display: grid;
  gap: 4px;
}

.action-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

.action-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.action-button--approve {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.action-button--reject {
  background: rgba(201, 111, 59, 0.12);
  color: var(--accent-2);
}

.error-text {
  color: #a63f22;
  font-size: 0.8rem;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
}

.text-input--textarea {
  min-height: 120px;
  resize: vertical;
}

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

  .metric-rail,
  .metric-rail--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .metric-rail,
  .metric-rail--compact {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

pre:not(.draft-body) {
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(29, 42, 47, 0.05);
}

@media (max-width: 900px) {
  /* body padding removed in Packet B; the mobile override is therefore
   * no longer needed. See the comment near the desktop block above. */

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .metric-rail {
    grid-template-columns: 1fr 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .metric-rail {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
 * Assistant chat
 * ------------------------------------------------------------------------- */
.assistant-chat { display: flex; flex-direction: column; flex: 1; min-height: 480px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.assistant-chat__context-ribbon { display: flex; align-items: center; gap: 7px; padding: 6px 12px 7px; border-bottom: 1px solid rgba(148, 163, 184, 0.22); background: rgba(248, 250, 252, 0.86); color: var(--muted); font-size: 11px; min-width: 0; }
.assistant-chat__context-kicker { border-radius: 999px; background: rgba(79, 70, 229, 0.08); color: rgb(67 56 202); font-size: 9px; font-weight: 700; line-height: 1; padding: 3px 5px; text-transform: uppercase; flex-shrink: 0; }
.assistant-chat__context-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 650; color: rgb(51 65 85); }
.assistant-chat__messages { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.assistant-chat__message-row { display: flex; width: 100%; }
.assistant-chat__message-row--user { justify-content: flex-end; }
.assistant-chat__message-row--assistant { justify-content: flex-start; }
/* iMessage-style turn grouping: rows where the previous row was from
 * the same sender collapse the inter-row gap and merge the shared
 * corner so consecutive bubbles read as one continued utterance.
 * The modifier is set by MessageList based on previous message role. */
.assistant-chat__message-row--continuation { margin-top: -8px; }
.assistant-chat__user-stack { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; width: -moz-fit-content; width: fit-content; max-width: min(85%, 520px); }
/* Assistant-side wrapper — mirror of `__user-stack` for the assistant
 * column (mode pill + bubble[s] stacked, left-aligned). It carries the
 * `min(85%, 520px)` cap so the bubble's `max-width` resolves against the
 * chat width. Without this wrapper the assistant `.assistant-message`
 * sat in a bare shrink-to-fit <div>, so its `max-width: 85%` resolved
 * against *its own content width* instead of the row — capping a short
 * line like "Drafted — confirm in the panel." at ~85% of itself and
 * forcing it to wrap mid-sentence. */
.assistant-chat__assistant-stack { display: flex; flex-direction: column; align-items: flex-start; width: -moz-fit-content; width: fit-content; min-width: 0; max-width: min(85%, 520px); }
/* Status now renders as a leading badge inside the input row (see
 * Composer.tsx) instead of a full-width bar above the input. The legacy
 * .assistant-chat__statusbar / __statusmeta classes are kept for any
 * external consumers but the live UI no longer mounts them. */
.assistant-chat__statusbar { display: grid; gap: 6px; padding: 4px 16px 2px; border-top: 1px solid var(--line); background: rgba(255, 252, 248, 0.82); }
.assistant-chat__statusmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 0.78rem; }
.assistant-chat__linkbutton { padding: 0; border: none; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
/* Inline status pill that lives at the leading edge of the composer input
 * row only when there's active state to report (streaming or queued). When
 * idle the pill is unmounted and the input row reclaims the full width. */
.assistant-chat__inline-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 6px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Pulled above the input row (not inside it) so the input keeps the full
 * width of the composer while a turn is still streaming — lets the user
 * type a queued message without the pill eating typing space. */
.assistant-chat__inline-status--above {
  align-self: flex-start;
  margin: 0 0 4px 4px;
}
.assistant-chat__inline-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: assistantInlineStatusPulse 1.1s ease-in-out infinite;
}
.assistant-chat__inline-status-dot--queued {
  background: var(--color-highlight);
  animation: none;
}
.assistant-chat__inline-status-label { color: inherit; }
.assistant-chat__inline-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
}
.assistant-chat__inline-status-action:hover {
  color: var(--color-accent-strong);
  background: rgba(15, 118, 110, 0.16);
}
.assistant-chat__inline-status-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
@keyframes assistantInlineStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-chat__inline-status-dot { animation: none; }
}
.assistant-chat__input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.assistant-chat__input input { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 0.9rem; }
.assistant-chat__input input:disabled { opacity: 0.6; }
.assistant-chat__input button { padding: 8px 16px; border: none; border-radius: 8px; background: var(--accent); color: white; font: inherit; font-size: 0.9rem; cursor: pointer; }
.assistant-chat__input button:disabled { opacity: 0.5; cursor: not-allowed; }
/* Composer outer + inner padding tightened to recover ~12px of vertical
 * space without crowding the input field. The input row keeps its rounded
 * border so it remains visually distinct from the status bar above. */
/* Composer integrates visually into the chat surface — no hard divider
 * between the message scroll area and the input. iMessage / WhatsApp
 * both flow the input as the bottom of one continuous chat region;
 * the prior `border-top` made it read as a separate panel. */
.assistant-chat__input-modern { padding: 2px 8px 4px; }
.assistant-chat__input-row { display: flex; align-items: center; gap: 4px; padding: 2px 2px 2px 12px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: border-color 0.15s; min-height: 32px; }
.assistant-chat__input-row:focus-within { border-color: var(--color-focus-outline); box-shadow: 0 0 0 3px var(--color-focus-ring); }
.assistant-chat__input-field { flex: 1; border: none; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 3px 0; box-shadow: none !important; }
.assistant-chat__input-field:focus-visible { outline: none; box-shadow: none !important; }
.assistant-chat__input-field::-moz-placeholder { color: var(--muted); font-size: 12.5px; }
.assistant-chat__input-field::placeholder { color: var(--muted); font-size: 12.5px; }
.assistant-chat__input-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
/* Desktop icon-btn 28px; coarse pointers (touch / mobile) keep 36px+
 * for safe tap targets per the L2 audit. */
.assistant-chat__icon-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; transition: all 0.15s; }
@media (pointer: coarse) {
  .assistant-chat__icon-btn { width: 36px; height: 36px; }
}
.assistant-chat__icon-btn:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.assistant-chat__icon-btn--active { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.assistant-chat__mic-waveform > path { transform-origin: center; transform-box: fill-box; animation: assistantMicWave 1.1s ease-in-out infinite; }
.assistant-chat__mic-waveform > path:nth-child(1) { animation-delay: 0s; }
.assistant-chat__mic-waveform > path:nth-child(2) { animation-delay: 0.15s; }
.assistant-chat__mic-waveform > path:nth-child(3) { animation-delay: 0.30s; }
.assistant-chat__mic-waveform > path:nth-child(4) { animation-delay: 0.20s; }
.assistant-chat__mic-waveform > path:nth-child(5) { animation-delay: 0.05s; }
@keyframes assistantMicWave {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-chat__mic-waveform > path { animation: none; }
}
.assistant-chat__send-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--accent); color: white; cursor: pointer; transition: all 0.15s; }
.assistant-chat__send-btn:hover { background: var(--color-accent-strong); }
.assistant-chat__send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
@media (pointer: coarse) {
  .assistant-chat__send-btn { width: 36px; height: 36px; }
}
.assistant-message {
  max-width: min(85%, 520px);
  padding: 6px 11px;
  border-radius: 16px;
  line-height: 1.35;
  font-size: 13px;
}
.assistant-chat__user-stack .assistant-message,
.assistant-chat__assistant-stack .assistant-message { max-width: 100%; }
/* iMessage-adapted bubble shapes. The notched corner points back
 * toward the sender's side — assistant bubble notched bottom-left,
 * user bubble notched bottom-right. When two bubbles from the same
 * sender stack (via `--continuation` on the row), the top-shared
 * corner of the second bubble also flattens so the two bubbles read
 * as one continued utterance. */
.assistant-message--assistant {
  background: rgb(229 231 235);
  color: rgb(15 23 42);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.assistant-message--reasoning {
  background: rgb(243 244 246);
  color: rgba(15, 23, 42, 0.62);
  align-self: flex-start;
  font-style: italic;
  white-space: pre-wrap;
  border-bottom-left-radius: 6px;
}
/* WS2: tool receipt — a quiet one-line "we did X" row. Lighter than an
   assistant bubble (no background fill, muted text, small leading glyph). */
.assistant-tool-receipt {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 2px 2px 0;
  font-size: 0.78rem;
  color: var(--muted, rgba(15, 23, 42, 0.55));
}
.assistant-tool-receipt__text::before {
  content: "✓ ";
  opacity: 0.7;
}
.assistant-message--user {
  /* Lighter than the brand accent — see --chat-bubble-user-bg in the
   * role data-attribute blocks. Falls back to --accent when the var
   * isn't set (e.g. outside the role scope), so legacy callers keep
   * working. */
  background: var(--chat-bubble-user-bg, var(--accent));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.assistant-chat__message-row--continuation.assistant-chat__message-row--assistant .assistant-message {
  border-top-left-radius: 6px;
}
.assistant-chat__message-row--continuation.assistant-chat__message-row--user .assistant-message {
  border-top-right-radius: 6px;
}
.assistant-message--user-latest { display: -webkit-box; max-width: min(85%, 520px); overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.assistant-message--user-with-meta { padding-bottom: 22px; }
.assistant-turn-status { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(29, 42, 47, 0.12); background: rgba(255, 252, 248, 0.92); color: var(--muted); font-size: 0.78rem; }
.assistant-turn-status--queued { gap: 7px; padding: 0; border: none; background: transparent; font-size: 0.64rem; color: rgba(223, 244, 239, 0.92); }
.assistant-turn-status--queued-inline { position: absolute; right: 14px; bottom: 7px; z-index: 1; }
.assistant-turn-status--active { animation: pulse 1.4s ease-in-out infinite; }
.typing-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 252, 248, 0.92); border: 1px solid rgba(29, 42, 47, 0.12); color: var(--muted); font-size: 0.82rem; animation: pulse 1.4s ease-in-out infinite; }
.assistant-chat__queuecancel { font-size: 0.64rem; color: #991b1b; text-decoration: underline; text-underline-offset: 2px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------------------------------------------------------------------------
 * Assistant panel
 * ------------------------------------------------------------------------- */
.assistant-panel {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.assistant-panel--open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.assistant-panel--desktop {
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
}

.assistant-panel--mobile {
  inset: auto 0 0 0;
  width: auto !important;
  height: min(88vh, 100dvh - 24px) !important;
  max-width: none;
  transform-origin: bottom center;
}

/* Focus mode: center a large overlay. The .assistant-panel--open transform
 * above would collide with the translate below, so we re-declare transform
 * here and let specificity + source order (this rule comes after --open) win.
 */
.assistant-panel--focus {
  left: 50% !important;
  top: 50% !important;
  width: min(90vw, 1200px) !important;
  height: min(88vh, 900px) !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center center;
  /* Above the account menu (z-[80]/z-[90]) and the app nav so focus mode
   * truly covers everything the user could interact with underneath. */
  z-index: 101;
}

/* Mini mode: compact dock at bottom-right. Two stacked rows — a slim
 * status/whisper strip on top, a full-width composer below — modeled
 * after chat-app docks (ChatGPT, Linear Ask) where the input never
 * competes with indicators for horizontal space. The status row is
 * hidden entirely in the idle state (no whisper, no attention) so the
 * dock is just the composer in the common case. Click the dock
 * (except on the input/mic) or press Esc / Cmd+J to expand back to
 * the full panel. */
.assistant-panel--mini {
  left: auto !important;
  right: 20px !important;
  top: auto !important;
  bottom: 20px !important;
  width: min(520px, calc(100vw - 40px)) !important;
  height: auto !important;
  transform: none !important;
  cursor: pointer;
}

/* Tablet range: the 520px dock eats most of the viewport, crowding
 * the page content behind it. Shrink it to keep a usable page area. */
@media (min-width: 520px) and (max-width: 1024px) {
  .assistant-panel--mini {
    width: min(380px, calc(100vw - 40px)) !important;
  }
}

.assistant-panel--mini .assistant-panel__surface {
  flex-direction: column;
  align-items: stretch;
  border-radius: 18px;
  padding: 6px 10px;
  gap: 2px;
  overflow: visible;
  position: relative;
}

/* Slim indicator strip above the composer. Sits visually close to the
 * input so it reads as "status for this dock" rather than a separate
 * region. Self-hides via :empty when there's nothing to show (see
 * below), but browsers only mark :empty on elements with no children
 * at all — since the status dot is always rendered, we use a
 * modifier class from the JSX side instead. For now the row is
 * always present and stays narrow; future tightening can add an
 * "is-idle" guard that hides it when the dot is all that would render. */
.assistant-panel--mini .assistant-panel__mini-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  padding: 0 4px;
  flex-shrink: 0;
}

/* Hide everything except the composer row when minimized. Using a
 * direct-child selector on .assistant-chat catches every ancillary
 * row (course-filter chips, mode pill, scope-lock notice, voicebar,
 * status bar, course pickers, message list) without needing
 * individual semantic classes on each — only the composer form
 * (.assistant-chat__input-modern) survives. */
.assistant-panel--mini .assistant-panel__header,
.assistant-panel--mini .assistant-panel__tabs,
.assistant-panel--mini .assistant-panel__tabpanel[hidden],
.assistant-panel--mini .assistant-panel__resize-handle {
  display: none !important;
}

.assistant-panel--mini .assistant-chat > *:not(.assistant-chat__input-modern):not(.assistant-chat__prompt-strip) {
  display: none !important;
}

/* Slim prompt strip that shows in both floating and mini desktop panel
 * modes when the thread is empty. Focus mode keeps the full
 * PromptPalette cards and hides the strip. Four compact chips in a
 * single row; click prefills the composer so the user can edit or
 * press Enter to send. */
.assistant-chat__prompt-strip {
  display: none;
}
.assistant-panel--desktop:not(.assistant-panel--focus) .assistant-chat__prompt-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 6px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.assistant-panel--desktop:not(.assistant-panel--focus) .assistant-chat__prompt-strip::-webkit-scrollbar {
  display: none;
}
/* Tighter in mini — every pixel matters in the dock. */
.assistant-panel--mini .assistant-chat__prompt-strip {
  padding: 2px 0 2px 4px;
  margin-bottom: 2px;
}
.assistant-chat__prompt-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.8);
  color: rgb(51 65 85);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
}
.assistant-chat__prompt-strip-chip:hover {
  background: rgba(224, 242, 254, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  color: rgb(49 46 129);
}
.assistant-chat__prompt-strip-chip:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 1px;
}
.assistant-chat__prompt-strip-kicker {
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: rgb(67 56 202);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}
.assistant-chat__prompt-strip-label {
  font-weight: 650;
}

/* Force the Chat tabpanel visible in mini even when the user had
 * Reviews / Today active — the dock is a chat affordance, so
 * pre-empting the persisted tab is the right UX. Exit mini and the
 * persisted tab comes back automatically.
 *
 * Both selectors below also include the [hidden] form so they
 * outweigh the `.assistant-panel__tabpanel[hidden]` hide-rule above
 * (specificity 0,3,0). Without [hidden] in the override, students
 * (whose default tab is "today") and professors viewing Reviews
 * land in mini mode with the chat tabpanel — and therefore the
 * composer input — invisible. */
.assistant-panel--mini .assistant-panel__tabpanel,
.assistant-panel--mini .assistant-panel__tabpanel[hidden] {
  display: none !important;
}

.assistant-panel--mini .assistant-panel__tabpanel--chat,
.assistant-panel--mini .assistant-panel__tabpanel--chat[hidden] {
  display: flex !important;
}

.assistant-panel--mini .assistant-panel__body {
  padding: 0;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.assistant-panel--mini .assistant-panel__tabpanel {
  width: 100%;
}

.assistant-panel--mini .assistant-chat {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* Let the composer sit on the dock row; tighten its visuals. */
.assistant-panel--mini .assistant-chat__input-modern {
  padding: 0;
  border: none;
  background: transparent;
}

/* The composer's inline "Generating… Stop" pill fights the input for
 * horizontal space in mini. The dock is meant to be minimal — users
 * who need to see progress or cancel a turn can expand back to the
 * full panel (Esc / Cmd+J / click the dock). */
.assistant-panel--mini .assistant-chat__inline-status {
  display: none !important;
}

.assistant-panel--mini .assistant-panel__mini-whisper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgb(71 85 105);
}

.assistant-panel--mini .assistant-panel__mini-whisper-button,
.assistant-panel--mini .assistant-panel__mini-whisper-idle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-panel--mini .assistant-panel__mini-whisper-button {
  color: rgb(14 116 144);
}

.assistant-panel--mini .assistant-panel__mini-whisper-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* On narrow viewports the whisper line truncates mid-word inside the
 * 280/48vw cap. Allow up to 2 wrapped lines so the CTA reads clearly. */
@media (max-width: 520px) {
  .assistant-panel--mini .assistant-panel__mini-whisper-button,
  .assistant-panel--mini .assistant-panel__mini-whisper-idle,
  .assistant-panel--mini .assistant-panel__mini-whisper-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: unset;
    font-size: 11px;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
  }
}

.assistant-panel--mini .assistant-panel__mini-whisper-chevron,
.assistant-panel--mini .assistant-panel__mini-whisper-dismiss {
  flex-shrink: 0;
}

.assistant-panel--mini .assistant-panel__mini-whisper-dismiss {
  color: rgb(100 116 139);
  font-size: 14px;
  line-height: 1;
}

/* (Header + mini dock both use .assistant-panel__status-dot — defined
 * above alongside .assistant-panel__identity.) */

.assistant-panel__backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2px);
  animation: assistant-panel-backdrop-fade 160ms ease-out;
}

@keyframes assistant-panel-backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-panel__backdrop {
    animation: none;
  }
}

.assistant-panel__surface {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--panel-radius);
  background-color: var(--surface-1);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
}

.assistant-panel--mobile .assistant-panel__surface {
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
}

.assistant-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--rule);
  cursor: grab;
}

.assistant-panel__identity-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.assistant-panel__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* "Neo" collaborator name — serif, tight tracking, sits beside the
 * status dot as the primary identity element in the header. Phase 0. */
.assistant-panel__name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.1;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* Italic sub-line under the identity row; one short sentence on what
 * Neo is currently tracking. Truncates on narrow panels so the header
 * never wraps. Phase 0. */
.assistant-panel__subline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-panel--mini .assistant-panel__subline {
  display: none;
}

/* Agentic variant: drop the italic subline ("Drafts, signals, and
 * questions" / "Today, materials, and grades") under the Citta name.
 * It's a static descriptor that doesn't change per session and was
 * eating a 14px row + 2px gap below the identity. The header is now
 * a single identity row (figure + name + role pill) + action buttons.
 *
 * Header padding + action button size also tightened so the upper-
 * right chrome doesn't claim more than the identity row itself
 * requires. Scoped via `.assistant-panel--agentic` so the original
 * non-agentic panel surface keeps its existing chrome budget. */
.assistant-panel--agentic .assistant-panel__subline {
  display: none;
}

.assistant-panel--agentic .assistant-panel__header {
  padding: 6px 10px;
  gap: 8px;
  align-items: center;
}

.assistant-panel--agentic .assistant-panel__icon-button {
  width: 24px;
  height: 24px;
  border-color: transparent;
  background: transparent;
}

.assistant-panel--agentic .assistant-panel__icon-button:hover {
  background: rgb(241 245 249);
  border-color: rgb(226 232 240);
}

.assistant-panel--agentic .assistant-panel__icon-button svg {
  width: 14px;
  height: 14px;
}

.assistant-panel--agentic .assistant-panel__actions {
  gap: 4px;
}

/* Coarse-pointer / mobile: restore the 36px+ target so the upper-
 * right buttons stay tappable. Desktop keeps the 24px tight chrome. */
@media (pointer: coarse) {
  .assistant-panel--agentic .assistant-panel__icon-button {
    width: 36px;
    height: 36px;
  }
}

.assistant-panel__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.28);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.assistant-panel__status-dot--attention {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
  animation: assistant-panel-status-pulse 2.4s ease-in-out infinite;
}

@keyframes assistant-panel-status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-panel__status-dot--attention {
    animation: none;
  }
}

.assistant-panel__role-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  /* Resolves through --accent / --accent-soft under [data-role="..."]
   * so professor reads teal and student reads violet without needing
   * the --student modifier below. The modifier is kept for any caller
   * that still tags it explicitly. */
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.2;
}

.assistant-panel__role-pill--student {
  background: rgba(124, 58, 237, 0.12);
  color: rgb(109, 40, 217);
}

.assistant-panel__scope-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid rgba(29, 42, 47, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 18ch;
  line-height: 1.2;
}

.assistant-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.assistant-panel__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.assistant-panel__icon-button:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-color: rgba(29, 42, 47, 0.14);
}

.assistant-panel__body {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 var(--space-lg) var(--space-lg);
}

.assistant-panel__tabs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) var(--space-sm);
}

.assistant-panel__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.assistant-panel__tab:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.assistant-panel__tab--active {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.2);
  color: rgb(15, 118, 110);
}

.assistant-panel__tab:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.65);
  outline-offset: 2px;
}

.assistant-panel__tab-badge {
  min-width: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
  font-size: 0.7rem;
  line-height: 1.35rem;
  text-align: center;
}

.assistant-panel__body .assistant-chat {
  min-height: 0;
  border-radius: 18px;
}

.assistant-panel__tabpanel {
  display: flex;
  min-height: 0;
  width: 100%;
}

.assistant-panel__tabpanel[hidden] {
  display: none;
}

.assistant-panel__reviews {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow-y: auto;
  padding: 4px 2px 0;
}

.assistant-panel__today {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow-y: auto;
  padding: 4px 2px 0;
}

/**
 * Always column-layout: the panel is 400px wide in floating mode and
 * 520px in mini mode, so there's never enough room for a horizontal
 * row (checkbox + main + actions). The old media-query-gated column
 * mode only kicked in below 767px viewport — useless for a desktop
 * floating container. Checkbox is absolute-positioned top-right so
 * the main column claims the full row width.
 */
.assistant-panel__review-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.assistant-panel__review-row--selected {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.06);
}

.assistant-panel__review-row--skeleton {
  gap: 10px;
}

/* Compact review row — embedded mode used by agentic L2 Section 3
 * (Messages & alerts). Drops the column layout, padding, badges,
 * preview body, and timestamp; keeps a single-line title + actions +
 * open icon. Standalone routes (e.g. /professor/inbox/drafts) keep
 * the verbose form. */
.assistant-panel__review-row--compact {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  min-height: 28px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgb(241 245 249);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease;
}

.assistant-panel__review-row--compact:hover,
.assistant-panel__review-row--compact:focus-within {
  background: rgb(241 245 249);
}

.assistant-panel__review-row--compact .assistant-panel__review-main {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.assistant-panel__review-row--compact .assistant-panel__review-title {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Compact actions: shrink-to-fit instead of stretching to 100% width,
 * and stop the child buttons from claiming `flex: 1` (that was the
 * regression — title got squeezed to 0). Icons size to 24px. */
.assistant-panel__review-row--compact .assistant-panel__review-actions {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  gap: 4px;
}

.assistant-panel__review-row--compact .assistant-panel__review-actions > button,
.assistant-panel__review-row--compact .assistant-panel__review-actions > a {
  flex: 0 0 auto;
}

.assistant-panel__review-row--compact .assistant-panel__review-open {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* Medium review row — Section 3 "View all" expansion. Single-row card
 * with kind-badge + 2-line text (title + 1-line preview) + 24px icon
 * actions + open icon. Stays inside the panel's 400px width budget so
 * a long View all list reads as one density-consistent column with
 * PendingActionCard medium and Inbox/Ops rows. Mid-point between
 * --compact (single line, no preview) and the detail-route card. */
.assistant-panel__review-row--medium {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border-color: rgb(241 245 249);
  background: transparent;
}

.assistant-panel__review-row--medium .assistant-panel__review-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assistant-panel__review-row-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.assistant-panel__review-row--medium .assistant-panel__review-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel__review-row--medium .assistant-panel__review-title-button {
  flex: 1 1 auto;
  min-width: 0;
}

.assistant-panel__review-row--medium .assistant-panel__review-preview {
  font-size: 11px;
  color: rgb(100 116 139);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assistant-panel__review-row--medium .assistant-panel__review-actions {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  gap: 4px;
}

.assistant-panel__review-row--medium .assistant-panel__review-actions > button,
.assistant-panel__review-row--medium .assistant-panel__review-actions > a {
  flex: 0 0 auto;
}

.assistant-panel__review-row--medium .assistant-panel__review-open {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

/* "View all" has the vertical room — un-flatten the ✓ / ✗ chips so they
 * match the open-in-app button next to them instead of staying at the
 * 22×18 "wider-than-tall" shape that's only there to keep collapsed rows
 * tight. Kept compact (20×20, 12px glyph) so the action column doesn't
 * eat into the card's text width. */
.assistant-panel__review-row--medium .assistant-panel__review-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.assistant-panel__review-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Square 18×18 in the collapsed card density (compact); `--medium`
   * "View all" bumps to 20×20. */
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 4px;
  background: white;
  color: rgb(71 85 105);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.assistant-panel__review-icon svg {
  width: 12px;
  height: 12px;
}

.assistant-panel__review-icon:hover:not(:disabled),
.assistant-panel__review-icon:focus-visible:not(:disabled) {
  outline: none;
}

.assistant-panel__review-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.assistant-panel__review-icon--approve {
  color: rgb(21 128 61);
}

.assistant-panel__review-icon--approve:hover:not(:disabled),
.assistant-panel__review-icon--approve:focus-visible:not(:disabled) {
  background: rgb(220 252 231);
  border-color: rgb(134 239 172);
}

.assistant-panel__review-icon--reject {
  color: rgb(185 28 28);
}

.assistant-panel__review-icon--reject:hover:not(:disabled),
.assistant-panel__review-icon--reject:focus-visible:not(:disabled) {
  background: rgb(254 226 226);
  border-color: rgb(252 165 165);
}

.assistant-panel__review-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-panel__review-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.assistant-panel__review-group-count {
  display: inline-flex;
  min-width: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: rgb(15, 118, 110);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
}

.assistant-panel__reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.assistant-panel__reviews-toolbar--active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.06);
}

/* In-panel confirm strip replaces window.confirm/prompt so bulk
 * actions stay inside the panel context. */
.assistant-panel__review-confirm {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(15, 118, 110, 0.45);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
}

.assistant-panel__review-confirm-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.assistant-panel__review-confirm-typebox {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.assistant-panel__review-confirm-typebox-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.assistant-panel__review-confirm-typebox input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(29, 42, 47, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.assistant-panel__review-confirm-typebox input:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 1px;
  border-color: rgba(15, 118, 110, 0.55);
}

.assistant-panel__review-confirm-actions {
  display: flex;
  gap: var(--space-sm);
}

.assistant-panel__review-confirm-actions > button {
  flex: 1 1 0;
  min-width: 0;
}

.assistant-panel__reviews-selectall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.assistant-panel__reviews-toolbar-actions {
  display: flex;
  gap: 8px;
}

.assistant-panel__review-select {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  margin: 0;
}

.assistant-panel__review-select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: rgb(15, 118, 110);
  cursor: pointer;
}

.assistant-panel__review-title-button {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px -6px;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s ease;
}

.assistant-panel__review-title-button:hover {
  background: rgba(29, 42, 47, 0.05);
}

.assistant-panel__review-title-button:focus-visible {
  background: rgba(29, 42, 47, 0.05);
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.assistant-panel__review-title-button:hover .assistant-panel__review-title,
.assistant-panel__review-title-button:focus-visible .assistant-panel__review-title {
  color: rgb(15, 118, 110);
}

.assistant-panel__review-chevron {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);
}

.assistant-panel__review-body {
  margin: 8px 0 0;
  padding: 10px 12px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(29, 42, 47, 0.04);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-panel__review-structured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.assistant-panel__review-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(29, 42, 47, 0.04);
  font-size: 0.78rem;
}

.assistant-panel__review-table th,
.assistant-panel__review-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(29, 42, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

.assistant-panel__review-table th {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.assistant-panel__review-table tbody tr:last-child td {
  border-bottom: none;
}

.assistant-panel__review-main {
  min-width: 0;
  flex: 1;
}

/* Narrow-panel-first, like .assistant-panel__review-row. The panel is
 * 400px wide floating and 520px mini regardless of viewport, so a
 * horizontal main+actions layout never has room to breathe. */
.assistant-panel__today-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: var(--space-lg);
}

.assistant-panel__today-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  flex: 1;
}

.assistant-panel__today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.assistant-panel__today-actions {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  width: 100%;
  margin-top: 2px;
}

.assistant-panel__today-actions > button {
  flex: 1 1 0;
  min-width: 0;
}

.assistant-panel__review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Reserve space for the absolute-positioned checkbox (top-right). */
  padding-right: 28px;
}

.assistant-panel__review-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.assistant-panel__review-preview {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  /* Limit to 3 lines with fade via line-clamp. Users expand for the full body. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assistant-panel__review-timestamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.assistant-panel__review-error {
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
}

/**
 * Full-width action bar at the bottom of the row. Approve/Discard split
 * 50/50 as the primary affordance; the open-in-new-tab icon floats as
 * a compact trailing control so it never fights the primary buttons
 * for width.
 */
.assistant-panel__review-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.assistant-panel__review-actions > button {
  flex: 1 1 0;
  min-width: 0;
}

.assistant-panel__review-actions-hint {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.35;
}

.assistant-panel__review-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(29, 42, 47, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.assistant-panel__review-open:hover {
  background: white;
  color: var(--ink);
  border-color: rgba(29, 42, 47, 0.14);
}

/* Closed FAB (Phase 0 state #1). Pill shape with Neo wordmark + role pill.
 * Role accent resolves through --accent under [data-role="..."] — the
 * button itself carries a data-role attribute so focus ring and text
 * tint follow the professor/student split. */
.assistant-panel__toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--fg-1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  box-shadow: var(--panel-shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.assistant-panel__toggle:hover {
  transform: translateY(-1px);
  border-color: var(--rule-strong);
}

.assistant-panel__toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.assistant-panel__toggle-dot--attention {
  background: var(--attention);
  box-shadow: 0 0 0 3px var(--attention-soft);
  animation: assistant-panel-status-pulse 2.4s ease-in-out infinite;
}

.assistant-panel__toggle-name {
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-1);
}

.assistant-panel__toggle-rolepill {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  padding-top: 1px;
}

/* On the closed button itself the role-pill text follows --accent,
 * which is teal under [data-role="professor"] and violet under
 * [data-role="student"]. The explicit --student override below exists
 * for any legacy call sites that still pass the class directly. */
.assistant-panel__toggle-rolepill--student {
  color: var(--color-brand-student);
}

.assistant-panel__toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--attention);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.assistant-panel__resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(29, 42, 47, 0.24) 42% 52%, transparent 52% 100%),
    linear-gradient(135deg, transparent 0 60%, rgba(29, 42, 47, 0.14) 60% 68%, transparent 68% 100%);
  border-radius: 6px;
}

.assistant-panel__header:focus-visible,
.assistant-panel__resize-handle:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.65);
  outline-offset: 2px;
}

.assistant-panel__header {
  outline: none;
}

@media (max-width: 767px) {
  .assistant-panel__toggle {
    right: 20px;
    bottom: 20px;
    /* Apple HIG / Material recommend a 44pt minimum touch target;
     * the desktop pill is ~32px tall, so bump padding on mobile to
     * meet that bar without changing the desktop look. */
    padding: 12px 16px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-panel {
    transition: none;
  }
}

.focus-mode-banner {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(201, 111, 59, 0.12);
  border: 1px solid rgba(201, 111, 59, 0.3);
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------------------
 * Scenario Redesign Styles
 * ------------------------------------------------------------------------- */

.status-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: rgba(255, 252, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.status-rail__info h2 {
  margin: 0;
  font-size: 1.25rem;
}

.status-rail__meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge--idle { background: rgba(29, 42, 47, 0.08); color: var(--muted); }
.status-badge--running { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.status-badge--paused { background: rgba(201, 111, 59, 0.12); color: var(--accent-2); }
.status-badge--completed { background: rgba(29, 42, 47, 0.15); color: var(--ink); }

.speed-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.speed-selector__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.speed-button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-button--active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.stage-stepper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.stage-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.stage-node__indicator {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.3s ease;
}

.stage-node--completed .stage-node__indicator {
  background: var(--accent);
}

.stage-node--current .stage-node__indicator {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.stage-node__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.stage-node--current .stage-node__label {
  color: var(--accent);
  font-weight: 700;
}

.timeline-container {
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.timeline-bar {
  height: 12px;
  background: rgba(29, 42, 47, 0.08);
  border-radius: 6px;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 16px;
  background: white;
  border: 1px solid var(--line);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  z-index: 2;
}

.timeline-marker--checkpoint {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.timeline-marker__label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-marker:hover .timeline-marker__label {
  opacity: 1;
}

.evidence-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.evidence-section h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evidence-content {
  font-size: 1.05rem;
  line-height: 1.5;
}

.evidence-content strong {
  color: var(--accent);
}

.details-toggle {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.details-toggle summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ============================================================================
 * Phase 4 — Onboarding & first-impression surfaces.
 *
 * Class-prefixed under .p4 so existing class names (.surface, .opt-card,
 * etc) cannot collide with rules anywhere else in the codebase. Routes
 * touched: /login, /login/{student,faculty}, /institution/select,
 * /onboard/{professor,student}/*, /account/voice/*.
 *
 * Tokens come from the :root block above + role-scoping on data-role.
 * No raw hex below outside the brand-lock gradient.
 * ========================================================================== */

.p4-canvas {
  /* Packet B (2026-05-13): the global `body { padding }` is gone, so
   * the canvas no longer needs a negative-margin escape to paint
   * edge-to-edge — it already does. `min-height: 100vh` (not `100vh +
   * 64px`) is the natural fit now. */
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% -12%, rgba(15, 118, 110, 0.10), transparent 40%),
    radial-gradient(circle at -8% 14%, rgba(201, 111, 59, 0.08), transparent 34%),
    linear-gradient(180deg, var(--canvas-strong) 0%, var(--canvas-deeper) 100%);
  color: var(--fg-1);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

/* ---------- Auth shell (login chooser + role logins) ---------------- */

.p4 .auth-shell {
  flex: 1;
  display: grid;
  /* `minmax(0, 480px)` instead of `480px` so the middle column can
   * shrink below 480px when the viewport demands it. Fixed `480px`
   * was forcing 258px of horizontal overflow on a 390px phone. */
  grid-template-columns: 1fr minmax(0, 480px) 1fr;
  align-items: center;
  padding: 36px 40px;
  gap: 24px;
}

/* Packet B (2026-05-13): removed the `.p4-canvas` mobile margin override
 * — there's no body padding left to escape. The base `min-height: 100vh`
 * is now correct at every viewport. The `.auth-shell` / `.auth-aside`
 * / `.auth-card` mobile overrides further down still need to live
 * AFTER their base rules to win on source order. */

.p4 .auth-aside {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 8px 32px 0;
}
.p4 .brandlock { display: flex; align-items: center; gap: 12px; }
.p4 .brandlock .logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}
.p4 .brandlock.neoschool .logo svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p4 .brandlock .name {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.p4 .brandlock.small .logo {
  width: 24px; height: 24px; border-radius: 7px;
  font-size: 12px;
}
.p4 .brandlock.small .name { font-size: 14px; letter-spacing: -0.005em; }

.p4 .auth-aside .pitch {
  margin-top: 28px;
  font-size: 26px; font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  max-width: 380px;
}
.p4 .auth-aside .pitch em {
  font-style: italic;
  color: var(--teal-600);
}
.p4 [data-role="student"] .auth-aside .pitch em { color: var(--violet-600); }
.p4 .auth-aside .pitch-sub {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 380px;
}
.p4 .auth-aside .foot {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: var(--fg-3);
}
.p4 .auth-aside .foot a { color: var(--fg-2); text-decoration: none; }

.p4 .auth-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-panel);
}
.p4 .auth-card .eyebrow-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-500);
  margin-bottom: 8px;
}
.p4 [data-role="student"] .auth-card .eyebrow-row { color: var(--violet-500); }
.p4 .auth-card .eyebrow-row::after {
  content: ""; flex: 1; height: 1px; background: var(--border-subtle);
}
.p4 .auth-card h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--fg-1);
}
.p4 .auth-card .lede {
  color: var(--fg-2); font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Role-picker cards */
.p4 .role-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.p4 .role-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  text-decoration: none;
  color: var(--fg-1);
}
.p4 .role-card:hover { border-color: var(--teal-500); transform: translateY(-1px); }
.p4 .role-card.student:hover { border-color: var(--violet-500); }
.p4 .role-card.admin:hover { border-color: var(--teal-600); }
.p4 .role-card .rc-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em;
}
.p4 .role-card.faculty .rc-mark { background: var(--teal-100); color: var(--teal-600); }
.p4 .role-card.student .rc-mark { background: var(--violet-100); color: var(--violet-600); }
.p4 .role-card.admin .rc-mark {
  background: var(--surface-soft); color: var(--fg-1);
  border: 1px solid var(--border-subtle);
}
.p4 .role-card .rc-body .rc-name {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--fg-1);
}
.p4 .role-card .rc-body .rc-desc {
  font-size: 12px; color: var(--fg-2);
  margin-top: 2px; line-height: 1.45;
}
.p4 .role-card .rc-arr { color: var(--fg-3); display: grid; place-items: center; }
.p4 .role-card:hover .rc-arr { color: var(--teal-500); }
.p4 .role-card.student:hover .rc-arr { color: var(--violet-500); }

.p4 .auth-card .pwd-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11.5px; color: var(--fg-3);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.p4 .auth-card .pwd-foot .demo {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-soft);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg-2);
}
.p4 .login-switch-link {
  margin-top: 14px;
}

.login-switch-row {
  margin-top: 14px;
}

.login-switch-link {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--fg-1);
  text-decoration: none;
}

.login-switch-link:hover,
.login-switch-link:focus-visible {
  border-color: var(--teal-500);
}

.login-switch-link__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--teal-600);
  font-weight: 900;
}

.login-switch-link--neoschool .login-switch-link__mark svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-switch-link__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.login-switch-link__body strong {
  font-size: 13.5px;
  line-height: 1.2;
}

.login-switch-link__body span {
  color: var(--fg-2);
  font-size: 12px;
  line-height: 1.3;
}

.login-switch-link__arrow {
  color: var(--fg-3);
  font-weight: 800;
}

/* Mobile auth overrides. Placed after all the base `.auth-shell` /
 * `.auth-aside` / `.auth-card` rules so source order makes these win
 * when the media query matches. (An earlier version of this block
 * lived right under `.auth-shell` and was beaten by the later base
 * rules — Codex audit 2026-05-13.) Collapses the 3-column grid to a
 * single column, hides the decorative aside, and tightens card
 * padding. Triggered at `max-width: 720px` so phone + small-tablet
 * portrait both get the single-column layout. */
@media (max-width: 720px) {
  .p4 .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .p4 .auth-aside {
    padding: 0;
    display: none;
  }
  .p4 .auth-card {
    padding: 24px 20px;
  }
}

/* Single-form login */
.p4 .login-form { display: flex; flex-direction: column; gap: 14px; }
.p4 .login-form .field { display: flex; flex-direction: column; gap: 5px; }
.p4 .login-form .field > label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
}
.p4 .login-form .field input,
.p4 .login-form .field .combobox {
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--fg-1);
  outline: none;
}
.p4 .login-form .field input:focus { border-color: var(--teal-500); background: #fff; }
.p4 [data-role="student"] .login-form .field input:focus { border-color: var(--violet-500); }
.p4 .login-form .helper { font-size: 11.5px; color: var(--fg-3); line-height: 1.45; }
.p4 .login-form .helper a { color: var(--teal-500); text-decoration: none; }
.p4 [data-role="student"] .login-form .helper a { color: var(--violet-500); }

.p4 .btn-primary {
  border: 0; cursor: pointer;
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--teal-500); color: #fff;
  transition: background .15s;
}
.p4 .btn-primary:hover { background: var(--teal-600); }
.p4 .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.p4 .btn-primary.violet { background: var(--violet-500); }
.p4 .btn-primary.violet:hover { background: var(--violet-600); }
.p4 .btn-primary.danger { background: var(--rose-600); }

.p4 .btn-secondary {
  border: 1px solid var(--border-strong); cursor: pointer;
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 700;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--fg-1);
}
.p4 .btn-secondary:hover { background: var(--surface-elevated); border-color: var(--teal-500); }
.p4 [data-role="student"] .btn-secondary:hover { border-color: var(--violet-500); }

.p4 .btn-ghost {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 600;
  padding: 9px 12px; border-radius: 8px;
  color: var(--fg-2);
}
.p4 .btn-ghost:hover { background: var(--surface-soft); color: var(--fg-1); }

.p4 .alert-banner {
  background: rgba(185,28,28,.06);
  border: 1px solid rgba(185,28,28,.25);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--rose-600);
  display: flex; align-items: flex-start; gap: 8px;
}
.p4 .alert-banner.info {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-600);
}

/* ---------- Institution chooser ------------------------------------- */

.p4 .inst-shell {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 56px 40px 80px;
}
.p4 .inst-shell .topcap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.p4 .inst-shell h1 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  margin: 4px 0 6px;
  text-align: center;
  color: var(--fg-1);
}
.p4 .inst-shell .lede {
  font-size: 14px; color: var(--fg-2);
  max-width: 540px;
  text-align: center;
  line-height: 1.55;
}
.p4 .inst-card-grid {
  margin-top: 28px;
  width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p4 .inst-radio-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.p4 .inst-radio-card:hover { border-color: var(--teal-500); }
.p4 .inst-radio-card.checked {
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.p4 .inst-radio-card .radio {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
}
.p4 .inst-radio-card.checked .radio { border-color: var(--teal-500); }
.p4 .inst-radio-card.checked .radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--teal-500);
}
.p4 .inst-radio-card .nm {
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--fg-1);
}
.p4 .inst-radio-card .full { font-size: 12px; color: var(--fg-2); margin-top: 2px; }
.p4 .inst-empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  width: 720px;
  font-size: 13px;
  color: var(--fg-2);
}
.p4 .inst-actions {
  width: 720px;
  margin-top: 22px;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ---------- Wizard shell -------------------------------------------- */

.p4 .wiz-shell {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 40px 40px 64px;
}
.p4 .wiz-shell .wiz-cap { text-align: center; margin-bottom: 28px; }
.p4 .wiz-shell .wiz-cap .eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-500);
}
.p4 [data-role="student"] .wiz-shell .wiz-cap .eyebrow { color: var(--violet-500); }
.p4 .wiz-shell .wiz-cap h1 {
  margin-top: 8px;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--fg-1);
}
.p4 .wiz-shell .wiz-cap .lede {
  margin: 10px auto 0;
  max-width: 580px;
  font-size: 13.5px;
  color: var(--fg-2); line-height: 1.55;
  text-wrap: pretty;
}
.p4 .wiz-shell .wiz-cap .skip {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--fg-3);
  -webkit-text-decoration: dotted underline;
          text-decoration: dotted underline;
  text-underline-offset: 4px;
  cursor: pointer;
  background: transparent; border: 0; font-family: inherit;
}
.p4 .wiz-shell .wiz-cap .skip:hover { color: var(--fg-2); }

.p4 .wiz-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  width: 920px;
  margin: 0 auto;
  align-items: start;
}

.p4 .wiz-steps { display: flex; flex-direction: column; gap: 4px; }
.p4 .wiz-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.p4 .wiz-step:hover { background: var(--surface-soft); }
.p4 .wiz-step.active {
  background: var(--surface-elevated);
  box-shadow: 0 0 0 1px var(--border-subtle);
}
.p4 .wiz-step.future { opacity: .5; cursor: default; }
.p4 .wiz-step .dot {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: var(--surface-soft);
  color: var(--fg-3);
  border: 1px solid var(--border-subtle);
}
.p4 .wiz-step.active .dot {
  background: var(--teal-100); color: var(--teal-600); border-color: var(--teal-100);
}
.p4 [data-role="student"] .wiz-step.active .dot {
  background: var(--violet-100); color: var(--violet-600); border-color: var(--violet-100);
}
.p4 .wiz-step.done .dot {
  background: var(--emerald-50); color: var(--emerald-600); border-color: var(--emerald-50);
}
.p4 .wiz-step .label {
  font-size: 13px; font-weight: 700; color: var(--fg-1);
  letter-spacing: -0.005em;
}
.p4 .wiz-step .desc { font-size: 11.5px; color: var(--fg-2); margin-top: 1px; }

.p4 .wiz-canvas {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 24px 18px;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.p4 .wiz-canvas h2 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--fg-1);
}
.p4 .wiz-canvas .canvas-lede {
  font-size: 12.5px; color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.p4 .wiz-canvas .canvas-flow {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.p4 .wiz-canvas .canvas-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}

.p4 .opt-list { display: flex; flex-direction: column; gap: 8px; }
.p4 .opt-card {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  cursor: pointer;
  align-items: center;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.p4 .opt-card:hover { border-color: var(--teal-500); }
.p4 .opt-card:disabled,
.p4 .opt-card.disabled {
  opacity: .52;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--surface) 78%, #e5e7eb);
}
.p4 .opt-card:disabled:hover,
.p4 .opt-card.disabled:hover {
  border-color: var(--border-subtle);
}
.p4 .opt-card.checked {
  background: var(--teal-50);
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(15,118,110,.10);
}
.p4 [data-role="student"] .opt-card:hover { border-color: var(--violet-500); }
.p4 [data-role="student"] .opt-card.checked {
  background: var(--violet-50);
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(109,40,217,.10);
}
.p4 .opt-card .check-square {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  background: transparent;
}
.p4 .opt-card.checked .check-square {
  background: var(--teal-500); border-color: var(--teal-500); color: #fff;
}
.p4 [data-role="student"] .opt-card.checked .check-square {
  background: var(--violet-500); border-color: var(--violet-500);
}
.p4 .opt-card .check-square svg { width: 12px; height: 12px; }
.p4 .opt-card .opt-title {
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--fg-1);
}
.p4 .opt-card .opt-sub {
  font-size: 12px; color: var(--fg-2); margin-top: 2px; line-height: 1.45;
}
.p4 .opt-card .opt-acc {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}

.p4 .tri-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.p4 .tri-grid .opt-card {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.p4 .tri-grid .opt-card .check-square { width: 18px; height: 18px; }

.p4 .tag-input-row { display: flex; gap: 8px; }
.p4 .tag-input-row input {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--fg-1);
  outline: none;
}
.p4 .tag-input-row input:focus { border-color: var(--teal-500); background: #fff; }
.p4 [data-role="student"] .tag-input-row input:focus { border-color: var(--violet-500); }

.p4 .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.p4 .tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--teal-50);
  color: var(--teal-600);
  border: 1px solid var(--teal-100);
  cursor: pointer;
  font-family: inherit;
}
.p4 .tag-pill .x {
  width: 14px; height: 14px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(15,118,110,.18);
  font-size: 9px; font-weight: 800;
}
.p4 [data-role="student"] .tag-pill {
  background: var(--violet-50); color: var(--violet-600); border-color: var(--violet-100);
}
.p4 [data-role="student"] .tag-pill .x { background: rgba(109,40,217,.18); }

.p4 .field-block { display: flex; flex-direction: column; gap: 6px; }
.p4 .field-block > label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
}
.p4 .field-block .h-help { font-size: 11.5px; color: var(--fg-3); line-height: 1.45; }
.p4 .field-block input, .p4 .field-block select, .p4 .field-block textarea {
  font-family: var(--font-serif);
  font-size: 13.5px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--fg-1);
  outline: none;
}
.p4 .field-block input:focus,
.p4 .field-block select:focus,
.p4 .field-block textarea:focus {
  border-color: var(--teal-500); background: #fff;
}
.p4 [data-role="student"] .field-block input:focus,
.p4 [data-role="student"] .field-block select:focus,
.p4 [data-role="student"] .field-block textarea:focus {
  border-color: var(--violet-500);
}
.p4 .field-block textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
.p4 .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Research-directions confirmation ------------------------ */

.p4 .confirm-shell {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 40px 64px;
}
.p4 .confirm-shell .cs-cap {
  text-align: center; max-width: 620px;
  margin-bottom: 24px;
}
.p4 .confirm-shell .cs-cap .eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-500);
}
.p4 .confirm-shell .cs-cap h1 {
  margin-top: 8px;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.18;
  color: var(--fg-1);
}
.p4 .confirm-shell .cs-cap .lede {
  margin-top: 10px;
  font-size: 13.5px; color: var(--fg-2); line-height: 1.55;
}
.p4 .confirm-card {
  width: 720px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 24px;
}
.p4 .confirm-card .meta {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: var(--fg-2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-subtle);
}
.p4 .confirm-card .meta strong { color: var(--fg-1); }
.p4 .candidate-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.p4 .candidate-row:last-child { border-bottom: 0; }
.p4 .candidate-row .cand-name {
  font-size: 14px; font-weight: 600; color: var(--fg-1);
  letter-spacing: -0.005em;
}
.p4 .candidate-row .conf {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-2);
}
.p4 .candidate-row .conf .bar {
  width: 60px; height: 4px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
}
.p4 .candidate-row .conf .bar > i {
  display: block; height: 100%;
  background: var(--teal-500);
  border-radius: 999px;
}
.p4 .candidate-row .papers {
  font-size: 11.5px; color: var(--teal-500);
  font-weight: 600;
  cursor: pointer;
  background: transparent; border: 0;
  font-family: inherit;
}
.p4 .confirm-add {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}
.p4 .confirm-add > label {
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 6px;
}
.p4 .confirm-status {
  width: 720px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.p4 .confirm-status .glyph {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--teal-50);
  display: grid; place-items: center;
  margin: 0 auto 12px;
  color: var(--teal-500);
}
.p4 .confirm-status h2 { font-size: 16px; margin: 0 0 6px; color: var(--fg-1); }
.p4 .confirm-status p {
  font-size: 13px; color: var(--fg-2); line-height: 1.55;
  max-width: 460px; margin: 0 auto;
}

/* ---------- Voice attribution surfaces ------------------------------ */

.p4 .voice-shell {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 36px 40px 56px;
}
.p4 .voice-shell .vs-cap {
  max-width: 720px;
  margin: 0 auto 22px;
}
.p4 .voice-shell .vs-cap .eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-500);
}
.p4 .voice-shell .vs-cap h1 {
  margin-top: 8px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--fg-1);
}
.p4 .voice-shell .vs-cap .lede {
  margin-top: 10px;
  font-size: 13px; color: var(--fg-2); line-height: 1.55;
}
.p4 .voice-cards {
  width: 720px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.p4 .voice-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
}
.p4 .voice-card.consent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.p4 .voice-card .vc-h {
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-1);
}
.p4 .voice-card .vc-sub {
  font-size: 12.5px; color: var(--fg-2);
  margin-top: 4px;
  line-height: 1.55;
}
.p4 .voice-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: var(--fg-2);
  cursor: pointer;
  font-family: inherit;
}
.p4 .voice-toggle.on {
  background: var(--teal-50);
  color: var(--teal-600);
  border-color: var(--teal-100);
}
.p4 .voice-toggle .switch {
  width: 28px; height: 16px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.p4 .voice-toggle .switch::after {
  content: "";
  position: absolute;
  top: 1.5px; left: 1.5px;
  width: 13px; height: 13px;
  border-radius: 999px;
  background: #fff;
  transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.p4 .voice-toggle.on .switch { background: var(--teal-500); }
.p4 .voice-toggle.on .switch::after { transform: translateX(12px); }

.p4 .voice-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
  padding-top: 14px;
}
.p4 .voice-status-grid .vsg-cell {
  padding: 0 14px;
  border-right: 1px solid var(--border-subtle);
}
.p4 .voice-status-grid .vsg-cell:last-child { border-right: 0; }
.p4 .voice-status-grid .vsg-cell:first-child { padding-left: 0; }
.p4 .voice-status-grid .lbl {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 6px;
}
.p4 .voice-status-grid .v {
  font-size: 14px; font-weight: 700; color: var(--fg-1);
  letter-spacing: -0.005em;
}
.p4 .voice-status-grid .vsub {
  font-size: 11.5px; color: var(--fg-2); margin-top: 2px;
}

.p4 .voice-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.p4 .voice-actions .spacer { flex: 1; }
.p4 .voice-actions .danger-text {
  color: var(--rose-600) !important;
  border-color: rgba(185,28,28,.35) !important;
}

.p4 .voice-disclosure {
  background: var(--canvas);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.55;
  border-left: 3px solid var(--teal-100);
}
.p4 .voice-disclosure strong { color: var(--fg-1); font-weight: 700; }
.p4 .voice-disclosure ul { margin: 6px 0 0; padding-left: 18px; }
.p4 .voice-disclosure li { margin-bottom: 3px; }

/* Recorder */
.p4 .recorder-shell {
  width: 720px;
  margin: 0 auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.p4 .recorder-prompt {
  background: var(--canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg-1);
  font-style: italic;
}
.p4 .recorder-prompt::before {
  content: "“";
  display: inline-block;
  font-size: 28px;
  color: var(--teal-500);
  vertical-align: -8px;
  margin-right: 4px;
  font-style: normal;
}
.p4 .recorder-controls {
  display: flex; align-items: center; gap: 18px;
  background: var(--canvas);
  border-radius: 12px;
  padding: 16px 18px;
}
.p4 .rec-button {
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--rose-600);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  border: 0;
  box-shadow: 0 0 0 4px rgba(185,28,28,.18);
}
.p4 .rec-button:disabled { opacity: .6; cursor: not-allowed; }
.p4 .rec-button.recording { animation: p4-rec-pulse 1.6s ease-in-out infinite; }
@keyframes p4-rec-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(185,28,28,.18); }
  50% { box-shadow: 0 0 0 10px rgba(185,28,28,.12); }
}
.p4 .rec-button .stop-square {
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 3px;
}
.p4 .rec-button .mic-glyph { width: 22px; height: 22px; display: inline-block; }
.p4 .rec-meta {
  display: flex; flex-direction: column;
  gap: 4px;
  flex: 1;
}
.p4 .rec-meta .timer {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.p4 .rec-meta .timer .rem { color: var(--fg-3); font-weight: 500; }
.p4 .rec-meta .label {
  font-size: 11.5px; color: var(--fg-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.p4 .waveform {
  flex: 1;
  height: 44px;
  display: flex; align-items: center; gap: 2px;
  justify-content: flex-end;
}
.p4 .waveform .bar {
  width: 3px;
  border-radius: 2px;
  background: var(--teal-500);
  display: inline-block;
}
.p4 .recorder-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--fg-2);
  flex-wrap: wrap; gap: 8px;
}
.p4 .recorder-foot .privacy {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-2);
}
.p4 .recorder-foot .privacy strong { color: var(--fg-1); }

/* Match log table */
.p4 .matchlog {
  width: 720px;
  margin: 0 auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}
.p4 .matchlog .ml-head {
  display: grid;
  grid-template-columns: 1fr 80px 100px 120px;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
}
.p4 .matchlog .ml-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px 120px;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  align-items: center;
}
.p4 .matchlog .ml-row:last-child { border-bottom: 0; }
.p4 .matchlog .ml-row .src { color: var(--fg-1); font-weight: 600; }
.p4 .matchlog .ml-row .src .sub {
  font-size: 11px; color: var(--fg-2); margin-top: 1px; font-weight: 400;
}
.p4 .matchlog .ml-row .conf {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-1);
}
.p4 .matchlog .ml-row .when {
  color: var(--fg-2);
  font-size: 11.5px;
}
.p4 .matchlog .ml-row .conf-bar {
  height: 4px; border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
  margin-top: 4px;
}
.p4 .matchlog .ml-row .conf-bar > i {
  display: block; height: 100%;
  background: var(--teal-500);
  border-radius: 999px;
}

/* helpers */
.p4 .row { display: flex; align-items: center; gap: 8px; }
.p4 .col { display: flex; flex-direction: column; gap: 8px; }
.p4 .muted { color: var(--fg-2); }

/* ==================================================================
 * Phase 6 — Course content authoring.
 *
 * Visual source of truth: docs/design-system/redesign/phase-6-content/.
 * All rules scoped under .p6 to keep generic class names (.item, .week,
 * .badge, .sheet, ...) from leaking across surfaces. No new colour
 * values — uses --teal-*, --amber-*, --violet-*, --rose-*, --highlight,
 * --canvas, --fg-*, --border-* tokens already declared at :root.
 * ================================================================== */

.p6 {
  font-family: var(--font-serif);
  color: var(--fg-1);
  font-size: 14px;
  line-height: 1.45;
}

/* Body grid: timeline + slim rail */
.p6 .workbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 0;
  background: var(--canvas);
}
.p6 .workbody.no-rail { grid-template-columns: minmax(0, 1fr); }
.p6 .workbody.threecol { grid-template-columns: 220px minmax(0, 1fr) 380px; }

.p6 .workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

/* Header strip */
.p6 .work-head {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
}
.p6 .work-head .title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.p6 .work-head h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 10px;
  margin: 0;
}
.p6 .work-head h1 .code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  padding: 3px 7px; border-radius: 5px;
  background: rgba(29, 42, 47, 0.06);
  position: relative; top: -2px;
}
.p6 .work-head h1 .term { font-size: 12px; font-weight: 500; color: var(--fg-2); }
.p6 .work-head .stats {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; color: var(--fg-2);
}
.p6 .work-head .stats .stat { display: inline-flex; align-items: baseline; gap: 4px; }
.p6 .work-head .stats .v {
  font-size: 14px; font-weight: 700; color: var(--fg-1);
  font-feature-settings: "tnum";
}
.p6 .work-head .stats .sep { color: var(--fg-3); }

.p6 .phase-pills {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.p6 .phase-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.6);
  color: var(--fg-2);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  font-size: 12px;
  font-family: inherit;
}
.p6 .phase-pill:hover { color: var(--fg-1); }
.p6 .phase-pill .num {
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  background: rgba(29, 42, 47, 0.08); color: var(--fg-2);
  width: 16px; height: 16px; border-radius: 4px;
  display: inline-grid; place-items: center;
}
.p6 .phase-pill .ct {
  font-size: 10.5px; color: var(--fg-3);
  font-feature-settings: "tnum";
  font-weight: 700;
}
.p6 .phase-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.p6 .phase-pill.active .num { background: var(--accent); color: #fff; }

/* Command bar */
.p6 .commandbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  position: sticky;
  top: 0;
  z-index: 3;
}
.p6 .commandbar .left,
.p6 .commandbar .center,
.p6 .commandbar .right {
  display: inline-flex; align-items: center; gap: 8px;
}

.p6 .search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(29, 42, 47, 0.04);
  border: 1px solid transparent;
  font-size: 12.5px;
  color: var(--fg-2);
  width: 280px;
}
.p6 .search:focus-within { background: #fff; border-color: var(--accent); }
.p6 .search input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  font-family: inherit; font-size: inherit; color: var(--fg-1);
}
.p6 .search .kbd {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
}

.p6 .density-toggle {
  display: inline-flex; align-items: stretch;
  background: rgba(29, 42, 47, 0.04);
  border-radius: 7px;
  padding: 2px;
}
.p6 .density-toggle .opt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0;
  font-family: inherit;
}
.p6 .density-toggle .opt:hover { color: var(--fg-1); }
.p6 .density-toggle .opt.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(29, 42, 47, 0.06);
}

/* Buttons */
.p6 .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 12.5px; font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 6px 11px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  background: transparent; color: inherit;
}
.p6 .btn.lg { padding: 8px 14px; font-size: 13px; }
.p6 .btn.sm { padding: 4px 8px; font-size: 11.5px; }
.p6 .btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.p6 .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.p6 .btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-strong);
}
.p6 .btn-ghost:hover { background: rgba(29, 42, 47, 0.04); }
.p6 .btn-soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}
.p6 .btn-soft:hover { background: var(--teal-100); }
.p6 .btn-quiet {
  color: var(--fg-2);
}
.p6 .btn-quiet:hover { background: rgba(29, 42, 47, 0.05); color: var(--fg-1); }
.p6 .btn-danger {
  background: var(--rose-50);
  color: var(--rose-600);
  border-color: rgba(185, 28, 28, 0.2);
}
.p6 .btn-icon {
  width: 28px; height: 28px;
  padding: 0; border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.p6 .btn-icon:hover { background: rgba(29, 42, 47, 0.06); color: var(--fg-1); }

/* Status badges + chips */
.p6 .badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
  white-space: nowrap;
}
.p6 .badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.p6 .badge.published { background: rgba(15, 118, 110, 0.10); color: var(--teal-600); }
.p6 .badge.draft     { background: var(--amber-50);    color: var(--amber-600); }
.p6 .badge.scheduled { background: var(--highlight-100); color: var(--highlight); }
.p6 .badge.archived  { background: rgba(29, 42, 47, 0.06); color: var(--fg-3); }
.p6 .badge.attention { background: var(--rose-50);    color: var(--rose-600); }
.p6 .badge.preview   { background: var(--violet-100); color: var(--violet-600); }
.p6 .badge.live      { background: var(--accent); color: #fff; }

.p6 .chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(29, 42, 47, 0.05);
  color: var(--fg-2);
}
.p6 .chip.kind-doc      { background: rgba(15, 118, 110, 0.08); color: var(--teal-600); }
.p6 .chip.kind-video    { background: rgba(109, 40, 217, 0.08); color: var(--violet-600); }
.p6 .chip.kind-quiz     { background: rgba(180, 83, 9, 0.08);   color: var(--amber-600); }
.p6 .chip.kind-link     { background: rgba(29, 42, 47, 0.06);   color: var(--fg-2); }
.p6 .chip.kind-deck     { background: rgba(15, 118, 110, 0.08); color: var(--teal-600); }
.p6 .chip.kind-reading  { background: rgba(180, 83, 9, 0.08);   color: var(--amber-600); }
.p6 .chip.kind-assignment { background: var(--rose-50); color: var(--rose-600); }

/* Timeline + sticky phase headers */
.p6 .timeline {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 24px;
  scroll-padding-top: 64px;
}
.p6 .phase-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.p6 .phase-header:first-child { margin-top: 12px; }
.p6 .phase-header .title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.005em;
}
.p6 .phase-header .title .num {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--accent); color: #fff;
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-grid; place-items: center;
}
.p6 .phase-header .title .meta { font-size: 11px; color: var(--fg-2); font-weight: 500; }
.p6 .phase-header .right .summary {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--fg-2);
}
.p6 .phase-header .right .summary .stat { font-feature-settings: "tnum"; }

/* Week block */
.p6 .week {
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.6);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  overflow: hidden;
}
.p6 .week.collapsed { background: rgba(255, 252, 248, 0.4); }
.p6 .week.current {
  background: rgba(255, 252, 248, 0.92);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.16), 0 4px 12px rgba(15, 118, 110, 0.06);
}
.p6 .week.empty { background: rgba(255, 252, 248, 0.35); border-style: dashed; }

.p6 .week-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.p6 .week.current .week-head {
  background: linear-gradient(90deg, rgba(15,118,110,.04), transparent 40%);
}
.p6 .week-head .twist {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--fg-3);
  transition: transform .15s;
}
.p6 .week.collapsed .week-head .twist { transform: rotate(-90deg); }

.p6 .week-head .body {
  display: flex; align-items: baseline; gap: 10px;
  min-width: 0;
}
.p6 .week-head .num {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  background: rgba(29, 42, 47, 0.06); color: var(--fg-2);
  padding: 2px 7px; border-radius: 5px;
}
.p6 .week.current .week-head .num { background: var(--accent); color: #fff; }
.p6 .week-head h2 {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0;
}
.p6 .week-head .date {
  font-size: 11px; color: var(--fg-2);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.p6 .week-head .now-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--accent);
}
.p6 .week-head .now-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.p6 .week-head .right {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; color: var(--fg-2);
}
.p6 .week-head .right .ct { display: inline-flex; align-items: baseline; gap: 4px; }
.p6 .week-head .right .ct .v {
  font-size: 13px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.p6 .week-head .right .release {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--highlight);
}

.p6 .items {
  border-top: 1px solid var(--border-subtle);
  list-style: none; margin: 0; padding: 0;
}
.p6 .week.collapsed .items { display: none; }

.p6 .item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px 8px 38px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  transition: background .12s;
}
.p6 .item:last-child { border-bottom: 0; }
.p6 .item:hover { background: rgba(29, 42, 47, 0.025); }
.p6 .item.selected {
  background: rgba(15, 118, 110, 0.05);
  box-shadow: inset 2px 0 0 var(--accent);
}
.p6 .item.batch-on { background: rgba(15, 118, 110, 0.08); }

.p6 .item .checkbox {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: grid; place-items: center;
  color: transparent;
  cursor: pointer;
}
.p6 .item.batch-on .checkbox {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.p6 .item .body {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.p6 .item .row1 {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
.p6 .item .row1 .title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--fg-1);
  flex-shrink: 1;
}
.p6 .item .row2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--fg-2);
}
.p6 .item .row2 .meta { display: inline-flex; align-items: center; gap: 4px; }
.p6 .item .row2 .sep { color: var(--fg-3); }
.p6 .item .row2 .scheduled-chip {
  background: var(--highlight-100);
  color: var(--highlight);
  padding: 1px 6px; border-radius: 4px;
  font-weight: 700; font-size: 10px; letter-spacing: 0.02em;
}

.p6 .item .right {
  display: inline-flex; align-items: center; gap: 4px;
}
.p6 .item .right .badge { margin-right: 6px; }
.p6 .item .right .btn-icon { width: 24px; height: 24px; }

/* compact density */
.p6.density-compact .item { padding: 5px 14px 5px 38px; font-size: 12.5px; }
.p6.density-compact .item .row2 { display: none; }
.p6.density-compact .week-head { padding: 8px 14px; }

/* Empty week placeholder */
.p6 .week-empty {
  padding: 20px 38px;
  font-size: 12.5px; color: var(--fg-3);
  display: flex; align-items: center; gap: 12px;
}
.p6 .week-empty .add {
  font-size: 11.5px; font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: transparent; border: 0; padding: 0;
  font-family: inherit;
}

.p6 .course-wide {
  margin-top: 12px; margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(244, 240, 232, 0.4);
  overflow: hidden;
}
.p6 .course-wide .week-head .num {
  background: rgba(15, 118, 110, 0.16);
  color: var(--teal-600);
}

/* Item detail (inline expand) */
.p6 .item-detail {
  background: rgba(255, 252, 248, 0.92);
  border-top: 1px dashed rgba(15, 118, 110, 0.32);
  border-left: 3px solid var(--accent);
  padding: 16px 20px 18px 38px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
}
.p6 .item-detail .head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.p6 .item-detail .head .title-block {
  display: flex; flex-direction: column; gap: 4px;
}
.p6 .item-detail .head .title-block h3 {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
.p6 .item-detail .head .meta-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--fg-2);
  flex-wrap: wrap;
}
.p6 .item-detail .head .meta-row .sep { color: var(--fg-3); }
.p6 .item-detail .actions {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.p6 .item-detail .preview {
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #fdfaf3 0%, #f7f1e2 100%);
  padding: 14px 16px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--fg-2);
  position: relative;
  overflow: hidden;
  max-height: 180px;
}
.p6 .item-detail .preview strong { color: var(--fg-1); }
.p6 .item-detail .preview p { margin: 0 0 8px; }

.p6 .item-detail .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.p6 .item-detail .field { display: flex; flex-direction: column; gap: 4px; }
.p6 .item-detail .field label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
}
.p6 .item-detail .field .value {
  font-size: 13px; color: var(--fg-1);
  display: inline-flex; align-items: center; gap: 6px;
}
.p6 .item-detail .side {
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.p6 .item-detail .side h4 {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.p6 .item-detail .side h4 .more {
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  cursor: pointer; text-transform: none; letter-spacing: 0;
  background: transparent; border: 0; padding: 0; font-family: inherit;
}

.p6 .audience-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.p6 .audience-list .row {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 8px;
  align-items: center;
}
.p6 .audience-list .row .swatch {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
}
.p6 .audience-list .row.on .swatch { background: currentColor; }
.p6 .audience-list .row .ct {
  font-size: 11px; color: var(--fg-2);
  font-feature-settings: "tnum"; font-weight: 700;
}

.p6 .history-mini {
  display: flex; flex-direction: column; gap: 4px; font-size: 11.5px;
}
.p6 .history-mini .h-row {
  display: grid; grid-template-columns: 6px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
}
.p6 .history-mini .h-row .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3);
  margin-top: 6px;
}
.p6 .history-mini .h-row.current .dot { background: var(--accent); }
.p6 .history-mini .h-row .who { font-weight: 600; color: var(--fg-1); }
.p6 .history-mini .h-row .when { color: var(--fg-3); font-size: 10.5px; font-feature-settings: "tnum"; }

/* Batch toolbar (sticky bottom inside workspace) */
.p6 .batch-toolbar-wrap {
  position: sticky;
  bottom: 0;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 0 16px;
  z-index: 5;
}
.p6 .batch-toolbar {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  background: var(--fg-1);
  color: #f4fbf9;
  box-shadow: 0 16px 40px rgba(15, 32, 38, 0.32), 0 2px 6px rgba(15, 32, 38, 0.18);
  font-size: 12px;
}
.p6 .batch-toolbar .ct { font-weight: 700; font-feature-settings: "tnum"; }
.p6 .batch-toolbar .sep {
  width: 1px; height: 16px;
  background: rgba(244, 251, 249, 0.18);
  margin: 0 4px;
}
.p6 .batch-toolbar .b-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 251, 249, 0.86);
  font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.p6 .batch-toolbar .b-action:hover { background: rgba(244, 251, 249, 0.10); color: #fff; }
.p6 .batch-toolbar .b-action.danger { color: #ffb8b8; }

/* Right rail (slim) */
.p6 .rail {
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.p6 .rail-section {
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.p6 .rail-section:last-child { border-bottom: 0; }
.p6 .rail-section h3 {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.p6 .rail-section h3 .ct {
  font-size: 10.5px; font-weight: 700;
  color: var(--fg-3);
  font-feature-settings: "tnum";
}

.p6 .upnext { display: flex; flex-direction: column; gap: 8px; }
.p6 .upnext-row {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--border-subtle);
  font-size: 12px; line-height: 1.35;
}
.p6 .upnext-row.next {
  border-color: rgba(201, 111, 59, 0.32);
  background: rgba(201, 111, 59, 0.04);
}
.p6 .upnext-row .when {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid var(--border-subtle);
  padding-right: 8px;
  font-feature-settings: "tnum";
}
.p6 .upnext-row.next .when { color: var(--highlight); }
.p6 .upnext-row .when .day {
  font-size: 16px; font-weight: 700;
  color: var(--fg-1);
}
.p6 .upnext-row.next .when .day { color: var(--highlight); }
.p6 .upnext-row .body strong {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 2px;
}
.p6 .upnext-row .body .meta { font-size: 10.5px; color: var(--fg-2); }

.p6 .activity { display: flex; flex-direction: column; gap: 0; font-size: 12px; }
.p6 .activity .row {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(29, 42, 47, 0.06);
  align-items: flex-start;
}
.p6 .activity .row:last-child { border-bottom: 0; }
.p6 .activity .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(29, 42, 47, 0.08);
  color: var(--fg-2);
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
}
.p6 .activity .av.you { background: var(--accent); color: #fff; }
.p6 .activity .body { font-size: 11.5px; line-height: 1.4; color: var(--fg-2); }
.p6 .activity .body strong { color: var(--fg-1); font-weight: 600; }
.p6 .activity .body .when {
  font-size: 10.5px; color: var(--fg-3);
  display: block; margin-top: 1px;
  font-feature-settings: "tnum";
}

.p6 .rail-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.p6 .rail-list .row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--fg-2);
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}
.p6 .rail-list .row:hover { background: rgba(29, 42, 47, 0.04); color: var(--fg-1); }

/* Empty state */
.p6 .empty-state {
  flex: 1;
  display: grid; place-items: center;
  padding: 60px 24px;
}
.p6 .empty-state .panel {
  max-width: 520px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.p6 .empty-state .glyph {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,118,110,.12) 0%, rgba(201,111,59,.08) 100%);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
}
.p6 .empty-state h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.p6 .empty-state p {
  font-size: 14px; color: var(--fg-2);
  line-height: 1.55;
  max-width: 420px;
  text-wrap: pretty;
  margin: 0;
}
.p6 .empty-state .actions { display: flex; gap: 10px; margin-top: 8px; }
.p6 .empty-state .scaffold {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 460px;
}
.p6 .empty-state .scaffold .card {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 252, 248, 0.5);
  text-align: left;
  font-size: 11px;
  color: var(--fg-2);
}
.p6 .empty-state .scaffold .card .h {
  font-size: 11px; font-weight: 700;
  color: var(--fg-1);
  margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.p6 .empty-state .scaffold .card .h .num {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em;
  background: rgba(29,42,47,.06); color: var(--fg-2);
  padding: 1px 5px; border-radius: 3px;
}

/* Add / History sheet (right drawer) */
:where(.p6, .p7) .sheet-scrim {
  position: fixed; inset: 0;
  background: rgba(15, 32, 38, 0.32);
  z-index: 60;
}
:where(.p6, .p7) .sheet {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 520px;
  max-width: 100vw;
  background: var(--surface-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -24px 0 60px rgba(15, 32, 38, 0.12);
  display: flex; flex-direction: column;
  z-index: 61;
}
:where(.p6, .p7) .sheet.wide { width: 640px; }

:where(.p6, .p7) .sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
:where(.p6, .p7) .sheet-head h2 {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
:where(.p6, .p7) .sheet-head .close {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: transparent;
  border: 0;
  color: var(--fg-2);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: inherit;
  font-size: 16px;
}
:where(.p6, .p7) .sheet-head .close:hover { background: rgba(29, 42, 47, 0.06); color: var(--fg-1); }

:where(.p6, .p7) .sheet-tabs {
  display: flex; gap: 2px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.4);
}
:where(.p6, .p7) .sheet-tabs .tab {
  padding: 10px 14px 11px;
  font-size: 12.5px; font-weight: 600;
  color: var(--fg-2);
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  font-family: inherit;
}
:where(.p6, .p7) .sheet-tabs .tab:hover { color: var(--fg-1); }
:where(.p6, .p7) .sheet-tabs .tab.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

:where(.p6, .p7) .sheet-body { flex: 1; overflow-y: auto; padding: 18px 20px 12px; }
:where(.p6, .p7) .sheet-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.6);
  gap: 12px;
}
:where(.p6, .p7) .sheet-foot .left { font-size: 11.5px; color: var(--fg-2); flex: 1; }
:where(.p6, .p7) .sheet-foot .right { display: inline-flex; gap: 8px; }

/* Form bits */
.p6 .field-block { margin-bottom: 14px; }
.p6 .field-block label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  margin-bottom: 5px;
}
.p6 .field-block label .req { color: var(--rose-600); }
.p6 .field-block .input,
.p6 .field-block .select,
.p6 .field-block textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-1);
  outline: 0;
}
.p6 .field-block .input:focus,
.p6 .field-block .select:focus,
.p6 .field-block textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}
.p6 .field-block textarea { min-height: 80px; resize: vertical; }
.p6 .field-block .help {
  font-size: 11px; color: var(--fg-3);
  margin-top: 4px;
}
.p6 .field-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.p6 .upload-card {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}
.p6 .upload-card .icon-glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.p6 .upload-card .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p6 .upload-card .body .name {
  font-size: 13px; font-weight: 600;
  color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p6 .upload-card .body .meta {
  font-size: 11px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.p6 .upload-card .body .meta .sep { color: var(--fg-3); }
.p6 .upload-card .body .progress {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.08);
  overflow: hidden;
}
.p6 .upload-card .body .progress .fill {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.p6 .upload-card.uploading { border-color: rgba(15, 118, 110, 0.32); }
.p6 .upload-card.error {
  border-color: rgba(185, 28, 28, 0.32);
  background: var(--rose-50);
}
.p6 .upload-card.error .icon-glyph { background: var(--rose-50); color: var(--rose-600); }
.p6 .upload-card.conflict {
  border-color: rgba(180, 83, 9, 0.32);
  background: var(--amber-50);
}

.p6 .dropzone {
  border-radius: 12px;
  border: 2px dashed var(--border-strong);
  padding: 32px 24px;
  text-align: center;
  background: rgba(255, 252, 248, 0.4);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}
.p6 .dropzone.active {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.05);
}
.p6 .dropzone .glyph {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.p6 .dropzone .label { font-size: 14px; font-weight: 600; }
.p6 .dropzone .hint { font-size: 12px; color: var(--fg-2); }
.p6 .dropzone .hint .browse {
  color: var(--accent); font-weight: 600;
  background: transparent; border: 0; padding: 0;
  font-family: inherit; font-size: inherit;
  cursor: pointer;
}

/* Version history sheet */
.p6 .version-list {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}
.p6 .version-list::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 1.5px;
  background: var(--border-subtle);
}
.p6 .version-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(29, 42, 47, 0.08);
  position: relative;
}
.p6 .version-row:last-child { border-bottom: 0; }
.p6 .version-row::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 18px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.92);
  border: 2px solid var(--border-strong);
}
.p6 .version-row.current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.p6 .version-row .head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.p6 .version-row .head .v {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
  padding: 2px 7px;
  border-radius: 5px;
}
.p6 .version-row.current .head .v { background: var(--accent); color: #fff; }
.p6 .version-row .head .who { font-size: 13px; font-weight: 600; }
.p6 .version-row .head .when {
  font-size: 11px; color: var(--fg-3);
  font-feature-settings: "tnum";
}
.p6 .version-row .summary {
  font-size: 12.5px; color: var(--fg-2);
  line-height: 1.5;
}
.p6 .version-row .summary .diff-add {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-600);
  padding: 0 2px;
  border-radius: 2px;
}
.p6 .version-row .summary .diff-cut {
  background: var(--rose-50);
  color: var(--rose-600);
  text-decoration: line-through;
  padding: 0 2px;
  border-radius: 2px;
}
.p6 .version-row .actions { display: inline-flex; gap: 4px; align-items: flex-start; }

/* Student preview */
.p6 .preview-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: var(--violet-100);
  border-bottom: 1px solid rgba(109, 40, 217, 0.24);
  font-size: 12.5px;
  color: var(--violet-600);
}
.p6 .preview-banner .glyph {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--violet-500);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.p6 .preview-banner strong { color: var(--violet-600); }
.p6 .preview-banner .who-select {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.p6 .preview-banner .who-select select {
  font-size: 12px; padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(109, 40, 217, 0.24);
  background: #fff;
  color: var(--violet-600);
  font-family: inherit;
  font-weight: 600;
}
.p6 .preview-banner .exit {
  font-size: 11.5px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(109, 40, 217, 0.32);
  background: #fff;
  color: var(--violet-600);
  cursor: pointer;
  font-family: inherit;
}

.p6 .student-view {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
  background: rgba(255, 252, 248, 0.55);
}
.p6 .student-view .crumbs {
  font-size: 11px; color: var(--violet-600);
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.p6 .student-view h1 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.p6 .student-view .lede {
  font-size: 13.5px; color: var(--fg-2);
  margin-bottom: 22px;
  max-width: 560px;
  line-height: 1.55;
}

.p6 .sv-week { margin-top: 26px; }
.p6 .sv-week .head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.p6 .sv-week .head .num {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--violet-600);
}
.p6 .sv-week .head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.p6 .sv-week .head .due {
  margin-left: auto;
  font-size: 12px; color: var(--fg-2);
}
.p6 .sv-list { display: flex; flex-direction: column; gap: 6px; }
.p6 .sv-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}
.p6 .sv-row.locked {
  background: rgba(29, 42, 47, 0.03);
  color: var(--fg-3);
}
.p6 .sv-row .glyph {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--violet-100);
  color: var(--violet-600);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
}
.p6 .sv-row.locked .glyph { background: rgba(29, 42, 47, 0.06); color: var(--fg-3); }
.p6 .sv-row .body strong { display: block; font-size: 13.5px; font-weight: 600; }
.p6 .sv-row .body .meta { font-size: 11px; color: var(--fg-2); margin-top: 2px; }
.p6 .sv-row.locked .body strong { color: var(--fg-3); }
.p6 .sv-row .right {
  font-size: 11px; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.p6 .sv-author-note {
  margin-top: 28px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(109, 40, 217, 0.32);
  background: var(--violet-50);
  color: var(--violet-600);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* Variation B — three-column */
.p6 .threecol-nav {
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
  overflow-y: auto;
  padding: 16px 8px;
}
.p6 .threecol-nav .head {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 0 10px 8px;
}
.p6 .threecol-nav .row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--fg-2);
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.p6 .threecol-nav .row:hover { background: rgba(29, 42, 47, 0.04); color: var(--fg-1); }
.p6 .threecol-nav .row.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.p6 .threecol-nav .row .num {
  font-size: 10px; font-weight: 800;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
  display: grid; place-items: center;
  font-feature-settings: "tnum";
}
.p6 .threecol-nav .row.active .num { background: var(--accent); color: #fff; }
.p6 .threecol-nav .row .ct {
  font-size: 10.5px; color: var(--fg-3); font-feature-settings: "tnum";
}
.p6 .threecol-nav .nav-section { margin-bottom: 10px; }

.p6 .threecol-table {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}
.p6 .threecol-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.p6 .threecol-table th {
  text-align: left;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(29, 42, 47, 0.04);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0;
}
.p6 .threecol-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-1);
  vertical-align: middle;
}
.p6 .threecol-table tr { cursor: pointer; }
.p6 .threecol-table tr:hover td { background: rgba(29, 42, 47, 0.025); }
.p6 .threecol-table tr.selected td { background: var(--accent-soft); }
.p6 .threecol-table td .filename { font-weight: 600; }

.p6 .threecol-detail {
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.62);
  overflow-y: auto;
  padding: 18px 18px 24px;
}
.p6 .threecol-detail h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.p6 .threecol-detail .empty {
  display: grid; place-items: center;
  height: 100%;
  color: var(--fg-3);
  font-size: 13px;
}

/* Batch import (full-page route) */
.p6 .batchpage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 0;
}
.p6 .batchpage .main {
  padding: 24px 32px 32px;
  overflow-y: auto;
}
.p6 .batchpage .main h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.p6 .batchpage .main .lede {
  font-size: 13px; color: var(--fg-2);
  max-width: 560px; margin-bottom: 16px;
  line-height: 1.5;
}
.p6 .batchpage .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.p6 .batchpage .step {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.6);
  padding: 12px;
}
.p6 .batchpage .step.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.p6 .batchpage .step.done {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.04);
}
.p6 .batchpage .step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(29, 42, 47, 0.08);
  color: var(--fg-2);
  font-size: 11px; font-weight: 800;
  margin-bottom: 6px;
}
.p6 .batchpage .step.active .num { background: var(--accent); color: #fff; }
.p6 .batchpage .step.done .num {
  background: rgba(15, 118, 110, 0.16);
  color: var(--teal-600);
}
.p6 .batchpage .step .label { font-size: 13px; font-weight: 600; }
.p6 .batchpage .step .hint { font-size: 11px; color: var(--fg-2); margin-top: 2px; }

.p6 .batchpage .side {
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}

.p6 .batchpage .file-list {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  overflow: hidden;
  margin-bottom: 12px;
}
.p6 .batchpage .file-list .head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 110px 130px 80px 100px 28px;
  gap: 10px;
  padding: 9px 14px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(29, 42, 47, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.p6 .batchpage .file-list .row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 110px 130px 80px 100px 28px;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  font-size: 12.5px;
  background: transparent;
}
.p6 .batchpage .file-list .row:last-child { border-bottom: 0; }
.p6 .batchpage .file-list .row .name {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.p6 .batchpage .file-list .row .filename {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p6 .batchpage .file-list .row.warn { background: var(--amber-50); }
.p6 .batchpage .file-list .row.error { background: var(--rose-50); }
.p6 .batchpage .file-list .row select,
.p6 .batchpage .file-list .row input {
  width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--fg-1);
}

.p6 .summary-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  padding: 12px 14px;
}
.p6 .summary-card h4 {
  font-size: 10px; font-weight: 800; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 8px;
}
.p6 .summary-card .stat-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 12px; color: var(--fg-2);
}
.p6 .summary-card .stat-row .v {
  color: var(--fg-1); font-weight: 700;
  font-feature-settings: "tnum";
}
.p6 .summary-card .stat-row.warn .v { color: var(--amber-600); }
.p6 .summary-card .stat-row.error .v { color: var(--rose-600); }

/* Misc */
.p6 .muted { color: var(--fg-2); }
.p6 .dim { color: var(--fg-3); }
.p6 .tnum { font-feature-settings: "tnum"; }
.p6 .row-flex { display: flex; align-items: center; gap: 8px; }
.p6 .spacer { flex: 1; }

@keyframes p6-spin { to { transform: rotate(360deg); } }
.p6 .spin { animation: p6-spin 1.2s linear infinite; }
/* RA source-grade badges are institution-toggleable via metadata_jsonb.ra_feature_flags. */
[data-ra-badges='off'] .ra-source-badge {
  display: none;
}


/* ============================================================
 * Agentic L2 panel (Phase 1A) — only mounted when
 * config.assistantPanelStyle === "agentic". The original surface
 * lives above; nothing here applies to original-mode users.
 * ============================================================ */

.assistant-panel--agentic {
  display: flex;
  flex-direction: column;
  /* Phase 12.5 head-icon dot palette. Scoped to the agentic surface so
   * the original style is unaffected. Token names match CittaFigure. */
  --cf-dot-accent: #6d28d9;
  --cf-dot-warn: #ea580c;
  --cf-dot-stroke: #ffffff;
}

/* Header figure wrapper — the CittaFigure replaces the green status
 * dot + "Neo" label of original style. Sized to match the existing
 * 22px row baseline so the role pill ("TA"/"LA") still aligns. */
.assistant-panel-agentic__hdr-figure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: rgb(71 85 105);
  margin-right: 2px;
}

.assistant-panel-agentic__layout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Sections — phone-sized L2 layout per the source PDF. The PDF mocks
 * up exactly one item in each of Sections 2 and 3, and 2-3 in
 * Section 1; the section heights are sized to fit those exactly with
 * NO body scroll in the collapsed state. "View all" / "See all"
 * expands the section to fill the panel (see `[data-focused-section]`
 * rules below) where overflow: auto kicks in for the long list.
 *
 * Fixed pixel caps (not percentages) chosen so a single item appears
 * cleanly regardless of total panel size — earlier 18% scaled with
 * the panel and could cut a ~90px card short on small panels. */
.assistant-panel-agentic__section1,
.assistant-panel-agentic__section2,
.assistant-panel-agentic__section3 {
  flex: 0 0 auto;
  min-height: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 10px;
  background: rgb(248 250 252 / 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Section 1 — Agenda. Header (~22) + 3 × ~22 rows + list padding (~6)
 * ≈ 94. Caps at 110 so browser line-height variance + tabular-num
 * descenders never tip the body into auto-scroll. The standalone
 * "Today · …" subheader row is folded into the header itself.
 * The "View all" header button toggles inline-expand via the existing
 * `[data-focused-section="section1"]` rules, which lift this cap and
 * hide the sibling sections (parity with Section 2 / Section 3). */
.assistant-panel-agentic__section1 {
  max-height: 100px;
}

/* Section 2 — Annotated Key News: one picture-article card with a
 * 44px thumb + 3-line text column (meta + title + summary). Footer
 * row hidden in the collapsed state via the rule below — that's where
 * the "scrollbar even on one card" came from. */
.assistant-panel-agentic__section2 {
  /* Header ~22 + one card ~44 + small buffer = 70-72. Cap at 76 with
   * comfortable headroom for line-height variance. */
  max-height: 76px;
}

/* Section 3 — Messages & alerts. Shows up to TWO category rows/cards
 * in the collapsed state (0 / 1 / 2 depending on which categories have
 * items today). Each sub-renderer slices itself to 1 row when !focused
 * and the `nth-child(n + 3)` rule below hides the 3rd-and-later groups,
 * so even with content in all 5 sub-renderers the collapsed view shows
 * the top 2. Header (~22) + 2 cards (worst case a ~56px PendingAction-
 * Card + a ~52px compact draft row) + buffer ≈ 132; cap at 140 absorbs
 * line-height variance / a wrapped title. */
.assistant-panel-agentic__section3 {
  max-height: 140px;
}

/* Cap the collapsed Section 3 body to at most 2 category groups so a
 * professor with content in every sub-renderer still sees a clean
 * single-page snapshot — no scrollbar in the collapsed state. The
 * `overflow: hidden` belt-and-suspenders ensures no scrollbar even
 * if a card renders slightly taller than estimated (e.g. wrapped
 * title, conflict alert) — overflow past the 2nd card clips silently
 * rather than introducing a scrollbar that the user has to interact
 * with.
 *
 * Sub-renderer priority order (defined by JSX in
 * `Section3MessagesAlerts`): pending actions → ops → inbox →
 * follow-ups → drafts. The 3rd-and-later categories only appear when
 * the user opens "View all" (the rule's `:not([data-focused…])`
 * guard lifts both the visibility cap and the overflow clip).
 */
.assistant-panel-agentic__layout:not([data-focused-section="section3"])
  .assistant-panel-agentic__section3
  .assistant-panel-agentic__section-body
  > *:nth-child(n + 3) {
  display: none;
}

.assistant-panel-agentic__layout:not([data-focused-section="section3"])
  .assistant-panel-agentic__section3
  .assistant-panel-agentic__section-body {
  overflow: hidden;
}

/* Collapsed-state cleanup for Section 2: drop the footer pill / "why"
 * annotation so the one visible card stays inside the cap. Both pieces
 * of metadata are still rendered in the focused / View-all variant
 * where there's room for them. */
.assistant-panel-agentic__layout:not([data-focused-section="section2"]) .assistant-panel-agentic__section2 .agentic-section2__footer {
  display: none;
}

/* Belt-and-suspenders against the section-body's overflow-y: auto
 * showing a scrollbar when content nudges past the cap by a few pixels
 * (e.g. a longer title at edge of the truncation). Same pattern that
 * fixed Section 3. */
.assistant-panel-agentic__layout:not([data-focused-section="section2"])
  .assistant-panel-agentic__section2
  .assistant-panel-agentic__section-body {
  overflow: hidden;
}

/* Section bodies use the global `overflow-y: auto` from
 * `.assistant-panel-agentic__section-body`. When a single item fits
 * inside the section's pixel cap, no scrollbar appears (auto only
 * shows when content actually overflows). When a row is genuinely
 * too tall (browser zoom, long copy, dense subcomponent), the
 * scrollbar shows — explicitly preferred over clipping. Earlier rev
 * had `overflow: hidden` for the collapsed state which dropped
 * subpixel scrollbars but also hid real overflow; reverted. */

/* Compact: sections take more space; chat shrinks but stays usable.
 * Cap 24% per section × 3 = 72% leaves ~28% for chat which still hits
 * its 180px min-height at the 640px default panel. */
.assistant-panel-agentic__layout[data-chat-size="compact"] .assistant-panel-agentic__section1,
.assistant-panel-agentic__layout[data-chat-size="compact"] .assistant-panel-agentic__section2,
.assistant-panel-agentic__layout[data-chat-size="compact"] .assistant-panel-agentic__section3 {
  flex: 1 1 0;
  max-height: 24%;
}

/* Phase-12.5 section focus: when one section is "View all"-expanded,
 * it fills the panel and siblings + chat hide. Implementation parity
 * with chat-size="full". Mutually exclusive with chat-size="full"
 * by construction in the parent component (setting one clears the
 * other). The expanded section drops its max-height cap and grows
 * to take the remaining flex space; its body's overflow-y: auto
 * already handles internal scroll. */
.assistant-panel-agentic__layout[data-focused-section] .assistant-panel-agentic__chat,
.assistant-panel-agentic__layout[data-focused-section="section1"] .assistant-panel-agentic__section2,
.assistant-panel-agentic__layout[data-focused-section="section1"] .assistant-panel-agentic__section3,
.assistant-panel-agentic__layout[data-focused-section="section2"] .assistant-panel-agentic__section1,
.assistant-panel-agentic__layout[data-focused-section="section2"] .assistant-panel-agentic__section3,
.assistant-panel-agentic__layout[data-focused-section="section3"] .assistant-panel-agentic__section1,
.assistant-panel-agentic__layout[data-focused-section="section3"] .assistant-panel-agentic__section2 {
  display: none;
}

/* Specificity 0,3,1 — must beat variant caps
 * (`.assistant-panel--agentic[data-agentic-variant="…"] .assistant-panel-agentic__sectionN`,
 * which are 0,2,1 and come later in the file). Without the
 * `.assistant-panel--agentic` prefix, variant rules win on source order
 * and pin focused Section 3 to its collapsed ~86–90px cap. */
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section1"] .assistant-panel-agentic__section1,
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section2"] .assistant-panel-agentic__section2,
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section3"] .assistant-panel-agentic__section3 {
  flex: 1 1 0;
  max-height: none;
}

.assistant-panel-agentic__layout[data-chat-size="compact"] .assistant-panel-agentic__chat {
  flex: 0 0 auto;
  min-height: 180px;
  max-height: 32%;
}

/* Full: sections hidden, chat owns the panel. */
.assistant-panel-agentic__layout[data-chat-size="full"] .assistant-panel-agentic__section1,
.assistant-panel-agentic__layout[data-chat-size="full"] .assistant-panel-agentic__section2,
.assistant-panel-agentic__layout[data-chat-size="full"] .assistant-panel-agentic__section3 {
  display: none;
}

/* Chat — fills whatever the sections leave. */
.assistant-panel-agentic__chat {
  flex: 1 1 0;
  /* Reduced from 220 → 140 so the chat region (and its composer at
   * the bottom) stays visible inside short panels. Above 220px the
   * chat grows to fill all remaining space anyway via flex:1; the
   * min only matters when the panel runs out of vertical room, which
   * is where the prior 220 was pushing the composer below the
   * layout's overflow:hidden edge — invisible to the user. */
  min-height: 140px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(226 232 240);
  border-radius: 10px;
  background: white;
  /* `overflow: visible` (not hidden) lets the Manage popover float
   * outside the chat container's bounds. The chat-body below has its
   * own `overflow-y: auto` for the message list, and the composer
   * sits inside the rounded border by virtue of its own padding —
   * nothing else needs the parent clip. */
  overflow: visible;
}

/* Composer never shrinks below its content height — the message list
 * above absorbs any size reduction by hiding the oldest messages
 * inside its own overflow-y: auto. Guarantees the input bar at the
 * bottom is always reachable regardless of panel size. */
.assistant-panel-agentic__chat-body .assistant-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.assistant-panel-agentic__chat-body .assistant-chat__input-modern {
  flex: 0 0 auto;
}

/* Sections can shrink below their max-height when the panel runs out
 * of vertical room. Without this, sections held their natural height
 * and pushed the chat container's composer past the layout's clipped
 * edge. Each section's internal overflow-y: auto on the section-body
 * keeps content reachable. */
.assistant-panel-agentic__section1,
.assistant-panel-agentic__section2,
.assistant-panel-agentic__section3 {
  flex-shrink: 1;
  min-height: 0;
}

.assistant-panel-agentic__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(51 65 85);
  border-bottom: 1px solid rgb(226 232 240);
  background: rgb(241 245 249 / 0.7);
}

/* Tone-down subtitle next to a section-header title; used when we
 * merge the standalone Section 1 date row into its header. */
.assistant-panel-agentic__section-header-sub {
  font-weight: 400;
  color: rgb(100 116 139);
  margin-left: 6px;
}

.assistant-panel-agentic__section-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section 3 specifically — every child wrapper (group, pending-
 * actions container, ul, etc.) collapses any inherited margin so
 * rows touch directly with only the row's own border-bottom as a
 * divider. Matches Section 1's "no gap, hairline between rows"
 * pattern. */
.assistant-panel-agentic__section3 .assistant-panel-agentic__section-body > * {
  margin: 0;
}

.assistant-panel-agentic__section3 .assistant-panel-agentic__group,
.assistant-panel-agentic__section3 .assistant-panel-agentic__pending-actions,
.assistant-panel-agentic__section3 .assistant-panel__reviews {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section header right-aligned link ("View all" / "See all" per the
 * phase-12.5 PDF). Same visual as the Section 2 inline-toggle button
 * but rendered as an anchor when the destination is a real route. */
.assistant-panel-agentic__section-link {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(124 58 237);
  text-decoration: none;
  text-transform: none;
  padding: 2px 4px;
  border-radius: 4px;
}

.assistant-panel-agentic__section-link:hover,
.assistant-panel-agentic__section-link:focus-visible {
  /* Faint translucent violet instead of an opaque violet-100 block —
   * the latter read as a bright lavender chip, especially over the
   * tinted "dawn" §1/§2/§3 cards. */
  background: rgba(124, 58, 237, 0.07);
  outline: none;
}

.assistant-panel-agentic__section-empty {
  padding: 14px;
  font-size: 12px;
  color: rgb(100 116 139);
}

/* Section "View all" group header. Sticks to the top of its parent
 * scroll container as the user scrolls a long list — so a stack of
 * "PENDING ACTIONS (2)" / "OPS (1)" / "INBOX (5)" / "DRAFTS" anchors
 * even when scrolled past. Only renders when Section 3 is focused
 * (View all expanded); collapsed mode has no group chrome. */
.assistant-panel-agentic__group {
  /* Container is just a logical wrapper — no padding so the sticky
   * header touches the section-body's scroll edge. */
}

.assistant-panel-agentic__group-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgb(100 116 139);
  background: rgb(241 245 249 / 0.94);
  border-bottom: 1px solid rgb(226 232 240);
  border-top: 1px solid rgb(226 232 240);
}

.assistant-panel-agentic__group:first-child .assistant-panel-agentic__group-header {
  border-top: 0;
}

.assistant-panel-agentic__group-count {
  font-size: 10.5px;
  font-weight: 400;
  color: rgb(124 58 237);
}

.assistant-panel-agentic__group-count::before {
  content: "·\00a0";
  color: rgb(148 163 184);
}

/* ---- Section 1 — Important Tasks & Agenda (chronological day) ---- */

.agentic-section1__date {
  padding: 4px 10px 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(100 116 139);
}

.agentic-section1__list {
  list-style: none;
  margin: 0;
  padding: 0 6px 2px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agentic-section1__row {
  margin: 0;
}

.agentic-section1__row-link {
  display: grid;
  /* time | icon | text (flex 1) | badge */
  grid-template-columns: 56px 16px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: rgb(15 23 42);
  font-size: 11px;
  line-height: 1.2;
}

.agentic-section1__row-link:hover {
  background: rgb(241 245 249);
}

.agentic-section1__row-link--static,
.agentic-section1__row-link--static:hover {
  background: transparent;
  cursor: default;
}

.agentic-section1__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgb(71 85 105);
  font-size: 10.5px;
  white-space: nowrap;
}

.agentic-section1__icon {
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.agentic-section1__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agentic-section1__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.agentic-section1__subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: rgb(100 116 139);
}

.agentic-section1__badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(71 85 105);
  background: rgb(241 245 249);
  border: 1px solid rgb(226 232 240);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ---- Section 1 — focused month + agenda (iOS-Calendar-inspired) ----
 *
 * Layout principle: the month section sits compact at the top
 * (`flex: 0 0 auto`) and the agenda flexes to fill remaining space
 * with its own internal scroll. iPhone Calendar pins the month while
 * the agenda scrolls under it; we mirror that. The outer
 * `.section-body` would normally also scroll — overridden below for
 * `data-focused-section="section1"` so the page doesn't double-scroll. */
.assistant-panel-agentic__layout[data-focused-section="section1"]
  .assistant-panel-agentic__section1
  > .assistant-panel-agentic__section-body {
  overflow: hidden;
}

.agentic-section1__monthagenda {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  gap: 6px;
  padding: 8px 10px 0;
}

.agentic-section1__month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}

.agentic-section1__month-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(15 23 42);
  font-variant-numeric: tabular-nums;
}

.agentic-section1__month-nav {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: rgb(124 58 237);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agentic-section1__month-nav:hover,
.agentic-section1__month-nav:focus-visible {
  background: rgb(243 232 255);
  outline: none;
}

.agentic-section1__month-nav:disabled {
  color: rgb(203 213 225);
  cursor: default;
  background: transparent;
}

.agentic-section1__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  flex: 0 0 auto;
}

.agentic-section1__dow-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(148 163 184);
  padding: 2px 0;
}

.agentic-section1__monthgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 32px;
  gap: 0;
  flex: 0 0 auto;
}

.agentic-section1__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgb(15 23 42);
  cursor: pointer;
  line-height: 1;
}

.agentic-section1__cell:hover {
  background: rgb(248 250 252);
}

.agentic-section1__cell--other-month {
  color: rgb(203 213 225);
}

/* Today: filled colored circle around just the number — matches iPhone
 * Calendar exactly. Use width=height=24px so the circle hugs the digit
 * without stretching the cell. */
.agentic-section1__cell--today .agentic-section1__cell-num {
  background: rgb(220 38 38);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Selected (and not today): ring around the digit area — same 24px
 * circle but with a 1.5px outline instead of fill. */
.agentic-section1__cell--selected:not(.agentic-section1__cell--today) .agentic-section1__cell-num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgb(124 58 237);
  border-radius: 50%;
  font-weight: 600;
  color: rgb(124 58 237);
}

.agentic-section1__cell-num {
  line-height: 1;
}

.agentic-section1__cell-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(124 58 237);
}

/* On today, the dot sits centered below the filled circle but uses
 * the today-color so it reads as part of the same marker. */
.agentic-section1__cell--today .agentic-section1__cell-dot {
  background: rgb(220 38 38);
  bottom: 1px;
}

/* Day section — gets all remaining vertical space and scrolls
 * independently. iPhone Calendar pattern. */
.agentic-section1__day-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid rgb(226 232 240);
  padding: 8px 0 12px;
  margin-top: 4px;
}

.agentic-section1__day-header {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: rgb(15 23 42);
  padding: 0 2px 6px;
  letter-spacing: -0.01em;
}

.agentic-section1__day-header--today {
  color: rgb(220 38 38);
}

/* Agenda rows in focused mode get the iOS-style colored left bar.
 * Time column on the left, content on the right. Reuses the existing
 * .agentic-section1__row{,-link,-text,…} primitives but adds a
 * per-kind color stripe via a row modifier class. */
.agentic-section1__row--focused {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: stretch;
  gap: 8px;
  padding: 6px 4px;
  border-top: 1px solid rgb(241 245 249);
}

.agentic-section1__row--focused:first-child {
  border-top: none;
}

.agentic-section1__row-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
  color: rgb(71 85 105);
  padding-top: 1px;
}

.agentic-section1__row-time-h {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  color: rgb(15 23 42);
}

.agentic-section1__row-time-m {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(100 116 139);
  text-transform: uppercase;
}

.agentic-section1__row-content {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  padding: 2px 4px 2px 0;
}

.agentic-section1__row-content:hover {
  background: rgb(248 250 252);
}

.agentic-section1__row-bar {
  border-radius: 2px;
  align-self: stretch;
  width: 3px;
}

.agentic-section1__row-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.agentic-section1__row-body-title {
  font-size: 12px;
  font-weight: 600;
  color: rgb(15 23 42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.agentic-section1__row-body-sub {
  font-size: 10.5px;
  color: rgb(100 116 139);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Per-kind bar colors — same hue family as Section 2 / ScheduleClient
 * so the panel and the main app calendar read as one calendar. */
.agentic-section1__row-bar--blue { background: rgb(59 130 246); }
.agentic-section1__row-bar--emerald { background: rgb(16 185 129); }
.agentic-section1__row-bar--amber { background: rgb(245 158 11); }
.agentic-section1__row-bar--rose { background: rgb(244 63 94); }
.agentic-section1__row-bar--indigo { background: rgb(99 102 241); }
.agentic-section1__row-bar--gray { background: rgb(148 163 184); }

.agentic-section1__day-empty {
  font-size: 12px;
  color: rgb(100 116 139);
  padding: 16px 4px;
  text-align: center;
}

/* ---- Pending action card (assistant-proposed mutations) ----
 *
 * Same component used in two places: Section 3 (durable mirror) and
 * inline in chat (where the LLM proposed it). PR-1 substrate; PR-2
 * fills in calendar.* kinds. Visual style mirrors PanelReviewList
 * draft cards so faculty learns one approval pattern. */

.assistant-panel-agentic__pending-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.pending-action-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pending-action-card--pending {
  border-left: 3px solid rgb(124 58 237);
}

.pending-action-card--confirmed {
  border-left: 3px solid rgb(16 185 129);
  background: rgb(236 253 245 / 0.4);
}

.pending-action-card--cancelled,
.pending-action-card--expired {
  border-left: 3px solid rgb(148 163 184);
  background: rgb(248 250 252);
  color: rgb(100 116 139);
}

.pending-action-card--loading {
  border-left: 3px solid rgb(203 213 225);
  color: rgb(148 163 184);
  font-style: italic;
}

/* Compact "Action already resolved" pill for rehydrated chat-history
 * cards that point to an action no longer in the pending listing.
 * Visually a single-line muted chip — no actions, no detail. The
 * chat just acknowledges the past turn without re-staging a dead card. */
.pending-action-card--resolved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  font-style: italic;
}

.pending-action-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pending-action-card__title {
  font-weight: 600;
  color: rgb(15 23 42);
  font-size: 12.5px;
}

.pending-action-card__status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.pending-action-card--pending .pending-action-card__status {
  color: rgb(124 58 237);
}

.pending-action-card--confirmed .pending-action-card__status {
  color: rgb(16 185 129);
}

.pending-action-card__subtitle {
  margin: 0;
  font-size: 11.5px;
  color: rgb(51 65 85);
  line-height: 1.4;
}

.pending-action-card__rationale {
  margin: 0;
  font-size: 11px;
  color: rgb(100 116 139);
  font-style: italic;
}

.pending-action-card__conflicts {
  background: rgb(254 243 199);
  border: 1px solid rgb(252 211 77);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  color: rgb(120 53 15);
}

.pending-action-card__conflicts-label {
  font-weight: 600;
  margin-right: 4px;
}

.pending-action-card__conflicts ul {
  list-style: disc inside;
  margin: 2px 0 0 0;
  padding: 0;
}

.pending-action-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.pending-action-card__btn {
  flex: 1;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.pending-action-card__btn--confirm {
  background: rgb(124 58 237);
  border-color: rgb(124 58 237);
  color: white;
}

.pending-action-card__btn--confirm:hover:not(:disabled) {
  background: rgb(109 40 217);
}

.pending-action-card__btn--cancel,
.pending-action-card__btn--edit {
  background: white;
  border-color: rgb(226 232 240);
  color: rgb(71 85 105);
}

.pending-action-card__btn--cancel:hover:not(:disabled),
.pending-action-card__btn--edit:hover:not(:disabled) {
  background: rgb(248 250 252);
}

.pending-action-card__btn--edit {
  flex: 0 0 auto;
  padding: 5px 10px;
}

.pending-action-card__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Three-tier density overlay on .pending-action-card. Default cascade
 * stays the "detail" layout (column, full subtitle/rationale/conflicts,
 * wide Confirm/Edit/Cancel pills) used by the chat-inline render path.
 * --medium and --compact override to a row layout used by Section 3 in
 * the agentic L2 panel. */
.pending-action-card--medium,
.pending-action-card--compact {
  padding: 0 8px;
  gap: 0;
  font-size: 11px;
  /* Match the shared Section 3 row treatment (.__row): min-height +
   * hairline bottom-only border instead of a full card border + radius.
   * The card's left-side status stripe (--pending / --confirmed /
   * --cancelled) is intentionally dropped in this density mode —
   * status is still communicated by the inline confirm/cancel icons
   * and the kind badge. */
  min-height: 28px;
  justify-content: center;
  border: none;
  border-bottom: 1px solid rgb(241 245 249);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease;
}

.pending-action-card--compact:hover,
.pending-action-card--medium:hover,
.pending-action-card--compact:focus-within,
.pending-action-card--medium:focus-within {
  background: rgb(241 245 249);
}

.pending-action-card--compact:last-child,
.pending-action-card--medium:last-child {
  border-bottom: none;
}

.pending-action-card--compact {
  /* Single-line row in the collapsed Section 3 (~32px including the
   * card's left border-stripe). Mirrors the height budget of the
   * compact PanelReviewList row so a stack of mixed items reads as
   * one consistent column. */
}

.pending-action-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pending-action-card__title-button {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.pending-action-card__title-button .pending-action-card__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-action-card__title-button:hover .pending-action-card__title,
.pending-action-card__title-button:focus-visible .pending-action-card__title {
  color: rgb(124 58 237);
}

.pending-action-card__title-button:focus-visible {
  outline: 2px solid rgb(124 58 237);
  outline-offset: 2px;
  border-radius: 4px;
}

.pending-action-card__chevron {
  font-size: 10px;
  color: rgb(148 163 184);
  flex: 0 0 auto;
}

.pending-action-card__subtitle--inline {
  /* Inline subtitle on .pending-action-card--medium when the row is
   * collapsed. Truncates to one line; full subtitle reappears in the
   * accordion drawer when the card is tap-expanded. */
  flex: 1 1 auto;
  margin: 0;
  font-size: 11px;
  color: rgb(100 116 139);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pending-action-card__row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.pending-action-card__icon {
  /* Compact (collapsed Section 3) action chip — square 18×18 so the
   * action column stays narrow without looking flattened. (`--medium`
   * "View all" bumps these to 20×20; the inline-chat "detail" layout
   * uses the wider `__btn--*` pills instead, not this class.) */
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 4px;
  background: white;
  color: rgb(71 85 105);
  cursor: pointer;
}

.pending-action-card__icon svg {
  width: 12px;
  height: 12px;
}

.pending-action-card__icon:hover:not(:disabled) {
  background: rgb(248 250 252);
}

.pending-action-card__icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pending-action-card__icon--confirm:not(:disabled) {
  color: rgb(16 185 129);
  border-color: rgb(167 243 208);
}

.pending-action-card__icon--confirm:hover:not(:disabled) {
  background: rgb(236 253 245);
}

.pending-action-card__icon--cancel:not(:disabled) {
  color: rgb(244 63 94);
  border-color: rgb(253 164 175);
}

.pending-action-card__icon--cancel:hover:not(:disabled) {
  background: rgb(255 241 242);
}

.pending-action-card__icon--edit:not(:disabled) {
  color: rgb(124 58 237);
  border-color: rgb(196 181 253);
}

.pending-action-card__icon--edit:hover:not(:disabled) {
  background: rgb(245 243 255);
}

/* In the medium ("View all") density there's vertical room — square the
 * ✓ / ✗ / edit chips (20×20) so they don't read as flattened next to the
 * open-in-app buttons on neighbouring review rows, but keep them small so
 * the action column doesn't eat the card's text width. The compact
 * density keeps the tight 22×18 shape. */
.pending-action-card--medium .pending-action-card__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.pending-action-card__expanded {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgb(226 232 240);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Edit-mode form (calendar.add inline editing). The card swaps from
 * summary view to a compact form when the user clicks Edit. Same
 * actionId — PATCH the payload, then Confirm runs the dispatcher
 * with the edited payload. */
.pending-action-card--editing {
  background: rgb(248 250 252);
  border-left: 3px solid rgb(124 58 237);
}

.pending-action-card__edit-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.pending-action-card__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pending-action-card__field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.pending-action-card__field input,
.pending-action-card__field select {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid rgb(203 213 225);
  border-radius: 4px;
  background: white;
  color: rgb(15 23 42);
}

.pending-action-card__field input:focus,
.pending-action-card__field select:focus {
  outline: none;
  border-color: rgb(124 58 237);
  box-shadow: 0 0 0 1px rgb(124 58 237);
}

.pending-action-card__error {
  font-size: 11px;
  color: rgb(190 18 60);
  margin: 4px 0 0;
}

/* ---- Section 2 — Annotated Key News (phase-12.5 slice 3) ---- */

.agentic-section2__hdr-title {
  /* Match the shared section-header treatment — sentence-case, 11px
   * medium-weight. The prior 700-weight uppercase tracking made this
   * heading visually heavier than the Agenda / Messages headings. */
  font-size: 11px;
  font-weight: 600;
  color: rgb(51 65 85);
  flex: 1 1 auto;
}

/* Section 2's "See all (N)" / "Show less" button now uses the shared
 * `.assistant-panel-agentic__section-link` style — no separate class. */

.agentic-section2__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agentic-section2__list li {
  margin: 0;
}

.agentic-section2__empty {
  padding: 12px 14px;
  font-size: 11.5px;
  font-style: italic;
  color: rgb(100 116 139);
  line-height: 1.45;
}

.agentic-section2__card {
  /* iOS news-row density. Matches the Section 1 / Section 3 row
   * treatment — no inner card frame, no border-radius. Each item is
   * a flat row with a hairline bottom-divider; visual identity comes
   * from the row layout itself (thumb + meta + title + summary). */
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  min-height: 44px;
  border: none;
  border-bottom: 1px solid rgb(241 245 249);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 120ms ease;
}

.agentic-section2__list li:last-child .agentic-section2__card {
  border-bottom: none;
}

.agentic-section2__thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(201, 111, 59, 0.14)),
    rgb(241 245 249);
  display: grid;
  place-items: center;
  color: rgb(15 118 110);
  flex-shrink: 0;
  align-self: center;
}

.agentic-section2__thumb svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.agentic-section2__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.agentic-section2__card:hover,
.agentic-section2__card:focus-visible {
  background: rgb(241 245 249);
  outline: none;
}

.agentic-section2__meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 9px;
  color: rgb(100 116 139);
  font-weight: 600;
  margin-bottom: 0;
}

.agentic-section2__sep {
  letter-spacing: 0;
  color: rgb(148 163 184);
}

.agentic-section2__time {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.agentic-section2__title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(15 23 42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.agentic-section2__summary {
  font-size: 10.5px;
  line-height: 1.25;
  color: rgb(71 85 105);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.agentic-section2__annot {
  /* Highlighter-style underline block (light green), matching the
   * `quiet` variant's gradient approach. Sits in the lower third of
   * the line-box so it: never renders as a clipped half-box when a
   * highlighted phrase falls at the title's `text-overflow: ellipsis`
   * boundary; never shifts surrounding text (no horizontal padding);
   * and reads as an intentional annotation rather than a stray
   * coloured box even when the phrase spans most of the title. The
   * old boxed `background` + `border-radius` + `padding` + `underline`
   * stack produced the "weird highlight" artifacts at truncation.
   * (Was warm amber pre-2026-05-12; switched to a light mint-green —
   * emerald-200, deliberately away from the yellow-leaning greens — to
   * echo the phase-12.5 mockup's green Key-News annotation in the light
   * theme too. The aurora theme uses its own deeper green.) */
  /* `<mark>` ships a UA `background-color: yellow` — without resetting it
   * the bright yellow shows through the transparent top 58% of the
   * gradient (and tints the green band below), so the highlight reads as
   * "yellow on top, green underline" instead of a clean green block.
   * Kill it. This `background-color` cascades into the aurora / dawn
   * overrides too (they only set `background-image`). */
  background-color: transparent;
  background-image: linear-gradient(transparent 58%, rgb(167 243 208 / 0.85) 58%);
  background-repeat: no-repeat;
  color: inherit;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}

.agentic-section2__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 2px;
  overflow: hidden;
}

.agentic-section2__pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgb(124 58 237);
  background: rgb(237 233 254);
  padding: 0 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.agentic-section2__why {
  font-size: 10.5px;
  font-style: italic;
  color: rgb(100 116 139);
  line-height: 1.3;
  /* Single-line clamp; expanded view shows full why on hover (title attr). */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

/* ---- Citta external article viewer ---- */

.external-viewer-page {
  min-height: 100dvh;
  background: rgb(248 250 252);
  color: rgb(15 23 42);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.external-viewer-page--empty {
  place-items: center;
  padding: 24px;
}

.external-viewer-empty {
  width: min(100%, 420px);
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  background: white;
  padding: 24px;
}

.external-viewer-empty__eyebrow,
.external-viewer-title p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgb(71 85 105);
}

.external-viewer-empty h1,
.external-viewer-title h1 {
  margin: 0;
  letter-spacing: 0;
}

.external-viewer-empty h1 {
  font-size: 22px;
}

.external-viewer-empty p:last-child {
  margin: 10px 0 0;
  color: rgb(71 85 105);
}

.external-viewer-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.external-viewer-main,
.citta-doc-editor-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.surface-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgb(203 213 225);
  border-radius: 8px;
  background: white;
  color: rgb(15 23 42);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.surface-back-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surface-back-button:hover,
.surface-back-button:focus-visible {
  border-color: rgb(148 163 184);
  background: rgb(248 250 252);
  outline: none;
}

.external-viewer-title {
  min-width: 0;
}

.external-viewer-title h1 {
  max-width: 72ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
}

.external-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.external-viewer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(203 213 225);
  border-radius: 8px;
  background: white;
  color: rgb(15 23 42);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.external-viewer-action:hover,
.external-viewer-action:focus-visible {
  border-color: rgb(148 163 184);
  background: rgb(248 250 252);
  outline: none;
}

.external-viewer-action--primary {
  border-color: rgb(15 118 110);
  background: rgb(15 118 110);
  color: white;
}

.external-viewer-action--primary:hover,
.external-viewer-action--primary:focus-visible {
  border-color: rgb(17 94 89);
  background: rgb(17 94 89);
}

.external-viewer-frame-shell {
  min-height: 0;
  padding: 12px;
}

.external-viewer-frame-shell[data-viewer-mode="pdf"] {
  padding: 0;
  background: rgb(100 116 139);
}

.external-viewer-frame {
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - 84px);
  display: block;
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  background: white;
}

.external-viewer-frame-shell[data-viewer-mode="pdf"] .external-viewer-frame {
  border: 0;
  border-radius: 0;
}

.citta-pdf-viewer {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgb(100 116 139);
}

.citta-pdf-viewer--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  height: 100dvh;
}

.citta-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(71 85 105);
  background: rgb(30 41 59);
  color: white;
}

.citta-pdf-page-controls,
.citta-pdf-zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.citta-pdf-page-controls span {
  min-width: 58px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.citta-pdf-toolbar button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgb(148 163 184 / 0.55);
  border-radius: 8px;
  background: rgb(51 65 85);
  color: white;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.citta-pdf-toolbar button:hover,
.citta-pdf-toolbar button:focus-visible {
  background: rgb(71 85 105);
  outline: none;
}

.citta-pdf-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.citta-pdf-stage {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.citta-pdf-stage canvas {
  display: block;
  background: white;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.22);
  max-width: none;
}

@media (max-width: 720px) {
  .citta-pdf-toolbar {
    padding: 7px 8px;
  }

  .citta-pdf-stage {
    padding: 0;
  }

  .citta-pdf-stage canvas {
    box-shadow: none;
  }
}

/* ---- Citta document editor ---- */

.citta-doc-editor-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.citta-doc-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.citta-doc-editor-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.citta-doc-editor-kicker {
  display: block;
  margin-bottom: 2px;
  color: rgb(71 85 105);
  font-size: 11px;
  font-weight: 800;
}

.citta-doc-editor-title-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgb(15 23 42);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
}

.citta-doc-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.citta-doc-editor-actions button,
.citta-doc-editor-toolbar button {
  min-height: 34px;
  border: 1px solid rgb(203 213 225);
  border-radius: 8px;
  background: white;
  color: rgb(15 23 42);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.citta-doc-editor-actions button {
  padding: 0 12px;
}

.citta-doc-editor-actions button:hover,
.citta-doc-editor-actions button:focus-visible,
.citta-doc-editor-toolbar button:hover,
.citta-doc-editor-toolbar button:focus-visible {
  border-color: rgb(15 118 110);
  outline: none;
}

.citta-doc-editor-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.citta-doc-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgb(241 245 249);
  overflow-x: auto;
}

.citta-doc-editor-toolbar button {
  padding: 0 10px;
  flex: 0 0 auto;
}

.citta-doc-editor-toolbar button.is-active {
  border-color: rgb(15 118 110);
  background: rgb(15 118 110);
  color: white;
}

.citta-doc-editor-sheet {
  width: min(100%, 860px);
  min-height: 0;
  margin: 0 auto;
  padding: 24px 22px 80px;
  overflow-y: auto;
  background: white;
}

.citta-doc-editor-block {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.citta-doc-editor-block-marker {
  padding-top: 8px;
  color: rgb(100 116 139);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.citta-doc-editor-block textarea {
  width: 100%;
  min-height: 44px;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgb(15 23 42);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  padding: 8px 10px;
  outline: none;
}

.citta-doc-editor-block textarea:focus {
  border-color: rgb(203 213 225);
  background: rgb(248 250 252);
}

.citta-doc-editor-block[data-type="heading1"] textarea {
  font-size: 26px;
  font-weight: 850;
  line-height: 1.18;
}

.citta-doc-editor-block[data-type="heading2"] textarea {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.citta-doc-editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 14px;
  border-top: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  font-size: 12px;
  font-weight: 700;
}

.citta-doc-editor-error {
  color: rgb(190 18 60);
}

@media (max-width: 720px) {
  body:has(.citta-doc-editor-page) {
    padding: 0;
    overflow: hidden;
  }

  .citta-doc-editor-page {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
  }

  .citta-doc-editor-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .citta-doc-editor-actions {
    width: 100%;
  }

  .citta-doc-editor-actions button {
    flex: 1 1 0;
  }

  .citta-doc-editor-toolbar {
    padding: 7px 10px;
  }

  .citta-doc-editor-sheet {
    width: 100%;
    padding: 14px 10px 72px;
  }

  .citta-doc-editor-block {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
  }

  .citta-doc-editor-block textarea {
    font-size: 16px;
    padding: 8px;
  }
  body:has(.external-viewer-page) {
    padding: 0;
    overflow: hidden;
  }

  .external-viewer-page {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
  }

  .external-viewer-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
  }

  .external-viewer-main,
  .citta-doc-editor-main {
    width: 100%;
  }

  .surface-back-button--hide-agentic-mobile {
    display: none;
  }

  .external-viewer-title h1 {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .external-viewer-actions {
    width: 100%;
  }

  .external-viewer-action {
    flex: 1 1 0;
  }

  .external-viewer-frame-shell {
    padding: 0;
  }

  .external-viewer-frame {
    min-height: calc(100dvh - 128px);
    border-right: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .surface-back-button--hide-agentic-mobile {
    display: none;
  }
}

.agentic-variant-picker {
  position: relative;
}

/* Desktop popover (portaled to body via createPortal). Position is set
 * inline via `style={{ position: "fixed", top, right }}` computed from
 * the trigger's bounding rect — escapes the L2 panel's overflow:hidden
 * stacking context entirely. */
.agentic-variant-picker__popover {
  /* Highest practical z-index so no app-level overlay can ever paint
   * on top. */
  z-index: 2147483600;
  width: 300px;
  /* `max-height` is set inline (via JS) on desktop to match the actual
   * available viewport space between trigger and screen edge. The
   * `--mobile` variant below uses 75vh. The default 60vh here is the
   * safety floor for any other render path. */
  max-height: 60vh;
  /* Always show a vertical scrollbar so the affordance is unmistakable —
   * the user knows the popover is scrollable. */
  overflow-y: scroll;
  scrollbar-gutter: stable;
  border: 1px solid rgb(226 232 240);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.18), 0 2px 8px rgb(15 23 42 / 0.08);
  padding: 10px 8px 8px;
  font-size: 12px;
}

/* WebKit (Chrome / Safari / Edge): style the scrollbar so it's
 * always visible (not just on hover) and unmistakable. Native auto-
 * hiding scrollbars on macOS made the affordance invisible. */
.agentic-variant-picker__popover::-webkit-scrollbar {
  width: 10px;
}
.agentic-variant-picker__popover::-webkit-scrollbar-track {
  background: rgb(248 250 252);
  border-radius: 6px;
}
.agentic-variant-picker__popover::-webkit-scrollbar-thumb {
  background: rgb(203 213 225);
  border-radius: 6px;
  border: 2px solid rgb(248 250 252);
}
.agentic-variant-picker__popover::-webkit-scrollbar-thumb:hover {
  background: rgb(148 163 184);
}

/* Mobile / coarse-pointer: render as a bottom sheet. Anchored to the
 * bottom of the viewport, full-width, with internal scroll. Drag-
 * handle bar at the top mimics iOS sheet affordance. */
.agentic-variant-picker__popover--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 75vh;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  padding: 8px 12px max(16px, env(safe-area-inset-bottom));
  /* Inherits the highest-practical z-index from the base rule above. */
  box-shadow: 0 -8px 24px rgb(15 23 42 / 0.16);
}

.agentic-variant-picker__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgb(203 213 225);
  margin: 0 auto 8px;
}

/* Backdrop — full-viewport invisible overlay on desktop that catches
 * stray clicks outside the popover. On mobile it's a dim panel that
 * makes the bottom sheet pop. */
.agentic-variant-picker__backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  /* One below the popover's max z-index — same stacking layer family. */
  z-index: 2147483599;
}

.agentic-variant-picker__backdrop--mobile {
  background: rgb(15 23 42 / 0.32);
  backdrop-filter: blur(2px);
}

/* Section divider inside the Manage popover — separates the scope
 * block(s) from the design-variant block. Hairline so the visual
 * weight stays in the option rows. */
.agentic-variant-picker__divider {
  height: 1px;
  background: rgb(226 232 240);
  margin: 6px -8px 8px;
}

/* Scope section wrapper — same title/list visuals as the variant
 * section but tightens the top padding since the popover already
 * has its own. */
.agentic-scope-section {
  padding-bottom: 4px;
}

.agentic-scope-section .agentic-variant-picker__title {
  margin-bottom: 4px;
}

.agentic-variant-picker__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(71 85 105);
  padding: 0 6px;
}

.agentic-variant-picker__sub {
  font-size: 11px;
  color: rgb(100 116 139);
  font-style: italic;
  line-height: 1.35;
  padding: 2px 6px 8px;
}

.agentic-variant-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agentic-variant-picker__option {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: rgb(15 23 42);
}

.agentic-variant-picker__option:hover:not([disabled]),
.agentic-variant-picker__option:focus-visible:not([disabled]) {
  background: rgb(241 245 249);
  outline: none;
}

.agentic-variant-picker__option--current {
  background: rgb(237 233 254);
  color: rgb(76 29 149);
}

.agentic-variant-picker__option--current:hover {
  background: rgb(221 214 254);
}

.agentic-variant-picker__option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.agentic-variant-picker__radio {
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  color: rgb(124 58 237);
}

.agentic-variant-picker__option:not(.agentic-variant-picker__option--current) .agentic-variant-picker__radio {
  color: rgb(148 163 184);
}

.agentic-variant-picker__label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
}

.agentic-variant-picker__desc {
  display: block;
  font-size: 11px;
  color: rgb(100 116 139);
  line-height: 1.35;
  margin-top: 2px;
}

.agentic-variant-picker__option--current .agentic-variant-picker__desc {
  color: rgb(91 33 182);
}

/* ============================================================
 * Phase-12.5 variant B — "Loose cards"
 *
 * Same JSX as v1; CSS reskin only. Drops the per-section pixel caps
 * and lets the layout body become the scroll surface (single scroll,
 * no double scrollbars). Each card gets generous padding, a warmer
 * parchment background, and a larger corner radius. The dashboard-y
 * blue header tint is removed.
 *
 * Selector specificity: `.assistant-panel--agentic[data-agentic-variant="loose"]`
 * is 0,2,1 — wins over the unattributed defaults.
 * ============================================================ */

.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__layout {
  /* Loose's identity is more breath BETWEEN sections, not within them.
   * Section gap goes back up to 10 vs v1's 4 so the parchment cards
   * read as distinct islands; outer padding 12 vs v1's 6 frames the
   * stack on a soft margin. */
  gap: 10px;
  padding: 12px 12px 8px;
}

.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section1,
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section2,
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section3 {
  /* Parchment background + larger radius are the visual signature of
   * Loose. Content density inside is the same as v1 so the panel
   * doesn't balloon; the wrapper looks different. */
  background: rgba(255, 252, 248, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  padding: 6px 8px 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Pixel caps tuned for the post-tightening row heights (~21px Section
 * 1, ~44 Section 2, ~28 Section 3 ×2). Loose stays ~6-8px taller than
 * v1 in each section so its parchment-card identity still reads as
 * "more breath" without ballooning the panel. */
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section1 {
  max-height: 116px;
}
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section2 {
  max-height: 92px;
}
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section3 {
  max-height: 116px;
}

.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__section-header {
  background: transparent;
  border-bottom: none;
  padding: 2px 4px 4px;
  font-size: 11px;
  font-weight: 600;
  /* Drop the prior uppercase + 0.16em tracking — same "stop shouting"
   * pass applied to v1 headers. Loose keeps its parchment card frame
   * for identity; the heading itself reads sentence-case medium. */
  letter-spacing: 0;
  text-transform: none;
  color: rgb(51 65 85);
}

/* Section 2 picture-article in Loose — slightly larger thumb (40 vs
 * v1's 32) to honour the "more breath" feeling, but otherwise matches
 * the flat row treatment. */
.assistant-panel--agentic[data-agentic-variant="loose"] .agentic-section2__card {
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 4px 4px;
  border: none;
  /* No `background` here — the base `.agentic-section2__card` is already
   * transparent, and re-declaring it at this higher specificity would
   * out-rank `.agentic-section2__card:hover`, killing the hover tint
   * (the bug that made loose / quiet news cards feel un-clickable). */
  border-radius: 0;
}

.assistant-panel--agentic[data-agentic-variant="loose"] .agentic-section2__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.assistant-panel--agentic[data-agentic-variant="loose"] .agentic-section2__title {
  font-size: 12px;
  -webkit-line-clamp: 1;
  margin-bottom: 0;
}

.assistant-panel--agentic[data-agentic-variant="loose"] .agentic-section2__summary {
  font-size: 11px;
  -webkit-line-clamp: 1;
  margin-bottom: 0;
}

/* Loose chat container keeps the rounded-card identity but pulls the
 * border in tighter to match the smaller section frames. */
.assistant-panel--agentic[data-agentic-variant="loose"] .assistant-panel-agentic__chat {
  border-radius: 12px;
}

/* ============================================================
 * Phase-12.5 variant A — "Quiet flow"
 *
 * One column. No card chrome — sections are just groups separated by
 * hairline dividers. The whole layout body is the only scroll surface.
 * No tinted eyebrow, no rounded corners, no nested boxes. Reads
 * top-to-bottom like a calm morning briefing.
 *
 * Same JSX as v1; CSS reskin only.
 * ============================================================ */

.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__layout {
  gap: 0;
  padding: 4px 10px 6px;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section1,
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section2,
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section3 {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgb(226 232 240);
  padding: 4px 0;
}

/* Pixel caps tuned for the post-tightening rows. Quiet flow is the
 * tightest variant — no card padding, hairlines only. */
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section1 {
  max-height: 100px;
}
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section2 {
  /* Header ~22 + section padding 4+4 + card ~44 = ~74. Cap at 88 so
   * the news card never clips when title/summary nudge into the
   * ellipsis edge. Quiet's hairline-only section dividers + no nested
   * boxes still hold visually. */
  max-height: 88px;
}
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section3 {
  max-height: 100px;
  border-bottom: none;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__section-header {
  background: transparent;
  border-bottom: none;
  padding: 2px 4px 2px;
  font-size: 10.5px;
  font-weight: 600;
  /* Same "stop shouting" treatment as v1 — sentence-case, no uppercase
   * + tracking. Quiet's identity comes from the absence of frames, not
   * from header noise. */
  letter-spacing: 0;
  text-transform: none;
  color: rgb(100 116 139);
}

/* Section 2 article in Quiet — flat row matching v1, slightly tighter
 * still. */
.assistant-panel--agentic[data-agentic-variant="quiet"] .agentic-section2__card {
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 4px 4px;
  min-height: 40px;
  border: none;
  /* See the loose override above — no `background` here so the
   * `.agentic-section2__card:hover` tint isn't out-ranked. */
  border-radius: 0;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .agentic-section2__thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .agentic-section2__title {
  font-size: 11.5px;
  font-weight: 600;
  -webkit-line-clamp: 1;
  margin-bottom: 0;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .agentic-section2__summary {
  font-size: 10.5px;
  font-style: italic;
  color: rgb(71 85 105);
  -webkit-line-clamp: 1;
  margin-bottom: 0;
}

/* Quiet flow flattens the chat container too — no card frame, just a
 * hairline rule above the chat region matching the section dividers.
 * Prior rev kept the v1 chat border + rounded radius even under Quiet,
 * which broke the "no nested boxes" design intent. */
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__chat {
  border: none;
  border-top: 1px solid rgb(226 232 240);
  border-radius: 0;
  background: transparent;
}

.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__chat-toolbar {
  background: transparent;
  padding: 4px 0 2px;
}

/* Quiet annotation: light mint-green underline-half-block — same hue as
 * the base `.agentic-section2__annot` but a touch more restrained for
 * the "quiet flow" treatment. (Was a darker teal `rgba(15,118,110,0.18)`
 * pre-2026-05-12; aligned to the light mint-green Key-News highlight when
 * the base switched off amber. The aurora theme's deeper-green override
 * still wins over this in aurora + quiet by source order.) */
.assistant-panel--agentic[data-agentic-variant="quiet"] .agentic-section2__annot {
  background: linear-gradient(transparent 60%, rgb(167 243 208 / 0.6) 60%);
  text-decoration: none;
  padding: 0;
  border-radius: 0;
}

/* Quiet rows in Section 1 — drop the kind-pill, use a small bullet
 * dot instead, per the `.quiet .ledeline .dot` pattern from the
 * design pack. We keep the kind-pill markup but mute it visually. */
.assistant-panel--agentic[data-agentic-variant="quiet"] .assistant-panel-agentic__row-kind {
  background: transparent;
  border: none;
  color: rgb(100 116 139);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 0;
}

/* Thin (~22px) chat toolbar pinned above the message list. Carries
 * three things in one row, each pulling its weight visually:
 *   • Title with persona + scope context ("Chat with Citta · TA · 6.0001")
 *   • Manage link (opens the design-review variant picker popover)
 *   • Expand/shrink button (chatSize standard ↔ full)
 * The title is what made the prior ⋯-only approach insufficient — the
 * user can't see who they're chatting with at a glance without it. */
.assistant-panel-agentic__chat-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 2px 10px;
  border-bottom: 1px solid rgb(241 245 249);
  min-height: 22px;
  background: rgb(248 250 252 / 0.6);
}

.assistant-panel-agentic__chat-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(51 65 85);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-agentic__chat-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.assistant-panel-agentic__chat-manage {
  background: transparent;
  border: 0;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(124 58 237);
  cursor: pointer;
  border-radius: 4px;
}

.assistant-panel-agentic__chat-manage:hover,
.assistant-panel-agentic__chat-manage:focus-visible {
  /* Match the toned-down section-link hover — faint violet, not an
   * opaque violet-100 chip. */
  background: rgba(124, 58, 237, 0.07);
  outline: none;
}

.assistant-panel-agentic__chat-manage[aria-expanded="true"] {
  /* A touch stronger than hover so the open state still reads as active,
   * but well short of the old bright chip. */
  background: rgba(124, 58, 237, 0.11);
}

.assistant-panel-agentic__chat-expand {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgb(100 116 139);
  cursor: pointer;
}

.assistant-panel-agentic__chat-expand svg {
  width: 12px;
  height: 12px;
}

.assistant-panel-agentic__chat-expand:hover,
.assistant-panel-agentic__chat-expand:focus-visible {
  background: rgb(241 245 249);
  outline: none;
  color: rgb(15 23 42);
}

.assistant-panel-agentic__chat-expand[aria-pressed="true"] {
  background: rgb(226 232 240);
  border-color: rgb(203 213 225);
  color: rgb(15 23 42);
}

.assistant-panel-agentic__keyboard-bar {
  display: none;
}

.assistant-panel-agentic__keyboard-done {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(203 213 225);
  border-radius: 999px;
  background: white;
  color: rgb(15 118 110);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.assistant-panel-agentic__keyboard-done:hover,
.assistant-panel-agentic__keyboard-done:focus-visible {
  background: rgb(240 253 250);
  border-color: rgb(94 234 212);
  outline: none;
}

.assistant-panel-agentic__chat-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

/* Tighter message-list + composer density inside the agentic panel.
 * The standalone /assistant route keeps the comfortable 16/12/8/12/12
 * defaults declared globally above; this only overrides when the chat
 * is mounted inside the floating L2 surface. Saves ~14-20px of chrome
 * + per-message gap, which is meaningful when the chat is sharing a
 * panel with three sections that already eat ~310px of fixed height. */
.assistant-panel-agentic__chat-body .assistant-chat__messages {
  padding: 10px 12px;
  gap: 8px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.assistant-panel-agentic__chat-body .assistant-chat__input-modern {
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  scroll-margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* Agentic chat host overrides — `.assistant-chat` ships a hard
 * `min-height: 480px` (globals.css:830) so the chat takes a sensible
 * height when used standalone. Inside the agentic chat body it must
 * shrink to fit the flex slot the layout left for it; otherwise the
 * 480px floor pushes the chat past `.assistant-panel-agentic__chat`'s
 * `overflow: hidden` boundary and clips the input row at the bottom.
 * Border + radius are also redundant inside the chat container which
 * already paints them. */
.assistant-panel-agentic__chat-body .assistant-chat {
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Section 3 message rows (agentic) — inbox + reviews merged. */
/* Compact row — shared by Section 1 (agenda), Section 3 (inbox + Neo).
 * Phase-12.5 compaction: rows used to be padding 8/10 + font 12, which
 * pushed sections past their pixel caps once the compact review row
 * landed alongside them. Tightened to padding 4/8 + font 11.5 so a
 * full row clocks ~22px and Section 1 fits 3 / Section 3 fits 1 with
 * room for the section eyebrow. */
.assistant-panel-agentic__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  /* Normalised height: every Section 3 alert row (ops, inbox, Neo,
   * pending-action compact, draft compact) shares this min-height so
   * the 2-card collapsed view reads as a consistent stack instead of
   * three different shapes. */
  min-height: 28px;
  border-bottom: 1px solid rgb(241 245 249);
  font-size: 11px;
  line-height: 1.25;
  color: rgb(30 41 59);
  cursor: pointer;
  transition: background 0.12s ease;
}

.assistant-panel-agentic__row:hover,
.assistant-panel-agentic__row:focus-within {
  background: rgb(241 245 249);
}

.assistant-panel-agentic__row:last-child {
  border-bottom: none;
}

.assistant-panel-agentic__row-kind {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgb(226 232 240);
  color: rgb(51 65 85);
}

.assistant-panel-agentic__row-kind--inbox {
  background: rgb(219 234 254);
  color: rgb(30 64 175);
}

.assistant-panel-agentic__row-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-agentic__row-time {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: rgb(148 163 184);
}

/* Rich whisper card — replaces single-line whisper in agentic mode. */
.assistant-panel__rich-whisper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  background: white;
}

.assistant-panel__rich-whisper[data-priority="deadline-alert"] {
  border-color: rgb(252 165 165);
  background: rgb(254 242 242 / 0.7);
}

.assistant-panel__rich-whisper-body {
  flex: 1 1 auto;
  min-width: 0;
}

.assistant-panel__rich-whisper-title {
  font-size: 12px;
  font-weight: 600;
  color: rgb(15 23 42);
  margin-bottom: 2px;
}

.assistant-panel__rich-whisper-text {
  font-size: 11px;
  color: rgb(71 85 105);
  line-height: 1.35;
}

.assistant-panel__rich-whisper-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.assistant-panel__rich-whisper-cta {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgb(125 211 252);
  background: rgb(224 242 254);
  color: rgb(7 89 133);
  cursor: pointer;
}

.assistant-panel__rich-whisper-cta:hover {
  background: rgb(186 230 253);
}

.assistant-panel__rich-whisper-dismiss {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: rgb(148 163 184);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.assistant-panel__rich-whisper-dismiss:hover {
  background: rgb(241 245 249);
  color: rgb(51 65 85);
}

/* L1 corner avatar — closed/mini state in agentic mode. Per source
 * PDF: 半透明线条式人物 (half-transparent line-drawing person), basic
 * 不会影响电脑使用和阅读 — should sit lightly over wallpaper, not
 * compete with the page. Hover lifts opacity so the user can grab it
 * deliberately. */
.assistant-panel__l1-avatar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgb(226 232 240 / 0.6);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 60;
  font-size: 12px;
  text-align: left;
  color: rgb(71 85 105);
  box-shadow: 0 2px 6px rgb(15 23 42 / 0.04);
  opacity: 0.92;
  max-width: 360px;
  transition: opacity 120ms ease, background 120ms ease, box-shadow 120ms ease;
  /* CittaFigure dot palette — same tokens as the agentic panel root,
   * declared again here because the L1 avatar renders OUTSIDE the
   * `.assistant-panel--agentic` element. */
  --cf-dot-accent: #6d28d9;
  --cf-dot-warn: #ea580c;
  --cf-dot-stroke: #ffffff;
}

.assistant-panel__l1-avatar:hover,
.assistant-panel__l1-avatar:focus-visible {
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 6px 16px rgb(15 23 42 / 0.1);
  opacity: 1;
}

/* Bare variant — avatar only, no whisper. Used for the closed
 * agentic state (X button); the with-whisper variant is reserved for
 * mini (– button). Tighter padding + no card body so it reads as a
 * quiet entrypoint rather than a notification chip. */
.assistant-panel__l1-avatar--bare {
  padding: 4px;
  gap: 0;
  border-radius: 999px;
  opacity: 0.6;
  max-width: none;
}

.assistant-panel__l1-avatar--bare:hover,
.assistant-panel__l1-avatar--bare:focus-visible {
  opacity: 1;
}

.assistant-panel__l1-avatar-svg {
  flex: 0 0 auto;
  color: rgb(100 116 139);
}

/* ---- Phase-12.5 slice 4a — L3 character overlay ----
 *
 * Vertical character + transparent bubble, anchored bottom-right of
 * the workspace. Lives over the host page; renders alongside (not
 * replacing) the L1 corner avatar in this slice. Same dot palette
 * as the L1 avatar — we let the CittaFigure dot tokens cascade from
 * the parent.
 */
.assistant-panel__l3-character {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: right;
  font: inherit;
  color: rgb(71 85 105);
  transition: opacity 280ms ease;
  --cf-dot-accent: #6d28d9;
  --cf-dot-warn: #ea580c;
  --cf-dot-stroke: #ffffff;
}

.assistant-panel__l3-head {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.assistant-panel__l3-figure {
  color: rgb(71 85 105);
}

.assistant-panel__l3-label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgb(15 23 42);
  letter-spacing: -0.005em;
}

.assistant-panel__l3-bubble {
  display: inline-block;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(226 232 240 / 0.7);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
  color: rgb(15 23 42);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  /* Keep the bubble unobtrusive at long labels; clamp to two lines. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assistant-panel__l3-bubble[data-phase="working"] {
  font-style: italic;
  color: rgb(71 85 105);
}

html[data-citta-assistant-surface="l1"],
html[data-citta-assistant-surface="l1"] body,
html[data-citta-assistant-surface="l1"] .agentic-mobile-device,
html[data-citta-assistant-surface="l3"],
html[data-citta-assistant-surface="l3"] body,
html[data-citta-assistant-surface="l3"] .agentic-mobile-device {
  background: transparent !important;
}

html[data-citta-assistant-surface="l1"] body,
html[data-citta-assistant-surface="l3"] body {
  min-height: 100vh;
  overflow: hidden;
}

html[data-citta-assistant-surface="l1"] .agentic-mobile-device,
html[data-citta-assistant-surface="l3"] .agentic-mobile-device {
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

html[data-citta-assistant-surface="l1"] .assistant-panel__l1-avatar {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.92;
  transform: translate(-50%, -50%);
}

html[data-citta-assistant-surface="l1"] .assistant-panel__l1-avatar:hover,
html[data-citta-assistant-surface="l1"] .assistant-panel__l1-avatar:focus-visible {
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

html[data-citta-assistant-surface="l1"] .assistant-panel__l1-avatar-svg {
  width: 52px;
  height: 52px;
}

html[data-citta-assistant-surface="l3"] .assistant-panel__l3-character {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  max-width: calc(100vw - 16px);
  transform: translate(-50%, -50%);
}

html[data-citta-assistant-surface="l3"] .assistant-panel__l3-bubble {
  max-width: min(280px, calc(100vw - 76px));
}

@media (max-width: 520px) {
  .assistant-panel__l1-avatar {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: min(320px, calc(100vw - 32px));
  }

  .assistant-panel__l1-avatar--bare {
    padding: 5px;
  }

  .assistant-panel__l3-character {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: min(300px, calc(100vw - 32px));
  }

  .assistant-panel__l3-bubble {
    max-width: min(260px, calc(100vw - 40px));
  }
}

/* Phase-12.5 mini "L1 notification" card body — name top, optional
 * title, optional body. Multi-line; truncates the body to two lines
 * so a verbose whisper doesn't blow the corner footprint. */
.assistant-panel__l1-avatar-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.assistant-panel__l1-avatar-card-hdr {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.assistant-panel__l1-avatar-card-name {
  font-weight: 700;
  font-size: 12.5px;
  color: rgb(15 23 42);
  letter-spacing: -0.005em;
}

.assistant-panel__l1-avatar-card-title {
  font-weight: 600;
  font-size: 12.5px;
  color: rgb(15 23 42);
  /* Single-line clamp on the heading — keeps layout stable. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.assistant-panel__l1-avatar-card-body {
  color: rgb(71 85 105);
  font-size: 11.5px;
  /* Two-line clamp on the body. Stable across browsers via the
   * `-webkit-line-clamp` recipe; falls back to overflow ellipsis on
   * the rare engine without it. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 280px;
  white-space: normal;
  text-overflow: ellipsis;
}

/* ===================================================================
 * Agentic L2 panel — "aurora glass" theme (data-agentic-theme="aurora")
 *
 * Dark gradient surface from the phase-12.5 PDF mockup: a near-black
 * panel washed with violet (top-right), green (bottom) and orange
 * (mid-left) radial glows; glass-tinted section cards; per-section
 * numbered badges (violet / green / orange); a green Key-News
 * annotation. Orthogonal to the density variants (v1 / loose / quiet) —
 * every rule here is scoped under `[data-agentic-theme="aurora"]` so
 * the default `light` theme is byte-for-byte unchanged.
 *
 * User-selectable in the chat toolbar's "Manage" popover; persisted
 * per account via `/api/user/assistant-panel-prefs` while the team
 * compares the two treatments. The Manage popover itself is portaled
 * to <body> (outside this selector's reach) and stays on the light
 * treatment in both themes — acceptable for a transient menu.
 * =================================================================== */

.assistant-panel--agentic[data-agentic-theme="aurora"] {
  --aurora-text-1: rgba(255, 255, 255, 0.95);
  --aurora-text-2: rgba(255, 255, 255, 0.66);
  --aurora-text-3: rgba(255, 255, 255, 0.42);
  --dawn-card-bg: rgba(255, 255, 255, 0.055);
  --dawn-card-border: rgba(255, 255, 255, 0.10);
  --aurora-divider: rgba(255, 255, 255, 0.08);
  --aurora-hover: rgba(255, 255, 255, 0.06);
  --aurora-violet: #9d7cff;
  --aurora-violet-soft: #b8a1ff;
  --aurora-green: #4dd89e;
  --aurora-green-soft: #8ef0c2;
  --aurora-orange: #f7a66e;
  --aurora-orange-soft: #ffd0ac;
  --aurora-link: #9dc2ff;
  --aurora-link-hover: #bfd6ff;
}

/* Surface — the dark aurora gradient stack. Replaces the light
 * `var(--surface-1)` fill + slate rule. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__surface {
  background:
    radial-gradient(120% 70% at 80% -10%, rgba(217, 119, 87, 0.40), transparent 55%),
    radial-gradient(120% 80% at -10% 30%, rgba(124, 58, 237, 0.42), transparent 55%),
    radial-gradient(120% 70% at 50% 112%, rgba(15, 118, 110, 0.38), transparent 55%),
    linear-gradient(180deg, #1a1b2e 0%, #211b36 60%, #2a1f40 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--aurora-text-1);
  box-shadow: 0 24px 60px -12px rgba(8, 8, 18, 0.7);
}

/* Header — transparent over the gradient; light identity text. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__header {
  border-bottom-color: var(--aurora-divider);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__name {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__subline {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__role-pill {
  background: rgba(157, 124, 255, 0.22);
  color: var(--aurora-violet-soft);
  border-color: transparent;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__role-pill--student {
  background: rgba(77, 216, 158, 0.20);
  color: var(--aurora-green-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__icon-button {
  color: rgba(255, 255, 255, 0.78);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__icon-button:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__resize-handle {
  /* The diagonal grip lines read as a faint light corner. */
  opacity: 0.5;
}

/* Section cards — glass tint, faint per-section header wash. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section1,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section2,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section3 {
  background: var(--dawn-card-bg);
  border-color: var(--dawn-card-border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-header {
  color: var(--aurora-text-2);
  border-bottom-color: var(--aurora-divider);
  /* Numbered badge sits at the left; title flexes, link stays right. */
  justify-content: flex-start;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section1 .assistant-panel-agentic__section-header {
  background: rgba(157, 124, 255, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section2 .assistant-panel-agentic__section-header {
  background: rgba(77, 216, 158, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section3 .assistant-panel-agentic__section-header {
  background: rgba(247, 166, 110, 0.11);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-header > span {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-header-sub {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-link {
  color: var(--aurora-link);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-link:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-link:focus-visible {
  background: rgba(157, 194, 255, 0.14);
  color: var(--aurora-link-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-empty,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-body {
  color: var(--aurora-text-2);
}

/* Numbered section badge — hidden in the light theme (DOM is rendered
 * always so the markup is stable), shown only under aurora. */
.assistant-panel-agentic__section-num {
  display: none;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
/* The title <span> directly follows the badge — give it the remaining
 * width so the "View all" link still anchors to the right edge. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section-num + span {
  flex: 1 1 auto;
  min-width: 0;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section1 .assistant-panel-agentic__section-num {
  background: rgba(157, 124, 255, 0.32);
  color: #c8b5ff;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section2 .assistant-panel-agentic__section-num {
  background: rgba(77, 216, 158, 0.28);
  color: var(--aurora-green-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__section3 .assistant-panel-agentic__section-num {
  background: rgba(247, 166, 110, 0.32);
  color: var(--aurora-orange-soft);
}
/* Chat section badge ("4") — violet, matching the mockup's chat badge
 * (and Section 1's hue, which is fine: the chat is the agenda's
 * conversational counterpart). Lives in the chat toolbar, not under a
 * `.sectionN` wrapper, so it needs its own colour rule. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-toolbar .assistant-panel-agentic__section-num {
  background: rgba(157, 124, 255, 0.32);
  color: #c8b5ff;
}

/* ---- Section 1 — Agenda (rows + month grid) ---- */
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__date {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__row {
  border-color: var(--aurora-divider);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__row-link:hover {
  background: var(--aurora-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__time {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__title {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__subtitle {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__icon {
  background: rgba(157, 124, 255, 0.18);
  color: var(--aurora-violet-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__badge {
  background: rgba(157, 124, 255, 0.18);
  color: var(--aurora-violet-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__month-title {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__month-nav {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__month-nav:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__month-nav:focus-visible {
  background: var(--aurora-hover);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__dow-label {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__cell {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__cell:hover {
  background: var(--aurora-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__cell--other-month {
  color: var(--aurora-text-3);
  opacity: 0.55;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__cell--today .agentic-section1__cell-num {
  background: var(--aurora-violet);
  color: #fff;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section1__cell--selected:not(.agentic-section1__cell--today) .agentic-section1__cell-num {
  background: rgba(157, 124, 255, 0.28);
  color: var(--aurora-violet-soft);
}

/* ---- Section 2 — Annotated Key News (green accent) ---- */
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__card:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__card:focus-visible {
  background: var(--aurora-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__card {
  border-bottom-color: var(--aurora-divider);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__thumb {
  background:
    radial-gradient(circle at 30% 35%, rgba(120, 180, 255, 0.45), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(77, 216, 158, 0.40), transparent 55%),
    linear-gradient(135deg, #1a2548, #14233a);
  color: rgba(255, 255, 255, 0.85);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__meta,
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__source {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__sep,
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__time {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__title {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__summary {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__hdr-title {
  color: var(--aurora-text-1);
}
/* The "key news highlight is green" — half-block underline in the
 * mockup's green, replacing the light theme's amber. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__annot {
  background-image: linear-gradient(transparent 58%, rgba(77, 216, 158, 0.34) 58%);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__pill {
  background: rgba(77, 216, 158, 0.16);
  color: var(--aurora-green-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__why,
.assistant-panel--agentic[data-agentic-theme="aurora"] .agentic-section2__empty {
  color: var(--aurora-text-3);
}

/* ---- Section 3 — Messages & alerts (rows / groups / cards) ---- */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row {
  border-bottom-color: var(--aurora-divider);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row:focus-within {
  background: var(--aurora-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row-kind {
  background: rgba(157, 124, 255, 0.18);
  color: var(--aurora-violet-soft);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row-kind--inbox {
  background: rgba(120, 180, 255, 0.18);
  color: #a8c8ff;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row-text {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__row-time {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__group-header {
  background: rgba(20, 20, 34, 0.88);
  color: var(--aurora-text-3);
  border-color: var(--aurora-divider);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__group-count {
  color: var(--aurora-link);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__group-count::before {
  color: var(--aurora-text-3);
}
/* Rich whisper card (ops alerts) inside Section 3. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper {
  background: var(--dawn-card-bg);
  border-color: var(--dawn-card-border);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-title {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-text {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-cta {
  color: var(--aurora-link);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-cta:hover {
  color: var(--aurora-link-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-dismiss {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__rich-whisper-dismiss:hover {
  color: var(--aurora-text-1);
}
/* Pending-action / review rows inside Section 3 — generic dark pass:
 * transparent fills, light text, hairline-light borders. Fine-grained
 * polish of the type-to-confirm sub-UI can follow. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-row,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__today-row {
  border-color: var(--aurora-divider);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-row:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__today-row:hover {
  background: var(--aurora-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-title,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-title-button,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__today-main {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-meta,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-preview,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-timestamp,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__today-meta {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel__review-open {
  color: var(--aurora-link);
}

/* ---- Chat region (toolbar + container + composer + messages) ---- */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat {
  background: var(--dawn-card-bg);
  border-color: var(--dawn-card-border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-toolbar {
  border-bottom-color: var(--aurora-divider);
  /* Faint violet wash, mirroring the Section-1/2/3 header bars so the
   * chat reads as the 4th numbered section rather than a bare strip. */
  background: rgba(157, 124, 255, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-title {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-manage {
  color: var(--aurora-link);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-manage:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-manage:focus-visible {
  background: rgba(157, 194, 255, 0.14);
  color: var(--aurora-link-hover);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-manage[aria-expanded="true"] {
  background: rgba(157, 194, 255, 0.16);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-expand {
  color: var(--aurora-text-2);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-expand:hover,
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-expand:focus-visible {
  background: var(--aurora-hover);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-expand[aria-pressed="true"] {
  background: rgba(157, 124, 255, 0.18);
  color: var(--aurora-violet-soft);
}
/* The embedded AssistantChat ships a light `--panel` fill + slate
 * border; neutralise both so it blends into the glass chat card. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-body .assistant-chat {
  background: transparent;
  border: none;
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-panel-agentic__chat-body {
  color: var(--aurora-text-2);
}
/* Message bubbles — assistant = dark glass, user = violet, both with
 * light text. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-message--assistant {
  background: rgba(255, 255, 255, 0.085);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-message--reasoning {
  background: rgba(255, 255, 255, 0.05);
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-message--user {
  background: rgba(124, 58, 237, 0.62);
  color: #fff;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-tool-receipt {
  color: var(--aurora-text-3);
}
/* Composer pill. */
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__input-row {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__input-row:focus-within {
  border-color: rgba(157, 124, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(157, 124, 255, 0.22);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__input-field {
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__input-field::-moz-placeholder {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__input-field::placeholder {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__icon-btn {
  color: var(--aurora-text-3);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--aurora-text-1);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__send-btn {
  background: var(--aurora-violet);
}
.assistant-panel--agentic[data-agentic-theme="aurora"] .assistant-chat__send-btn:hover {
  background: #8a66f0;
}

/* Scrollbars inside the aurora panel — light thumb on the dark glass. */
.assistant-panel--agentic[data-agentic-theme="aurora"] *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.assistant-panel--agentic[data-agentic-theme="aurora"] *::-webkit-scrollbar-track {
  background: transparent;
}
/* ===================================================================
 * Agentic L2 panel — "mist" theme (data-agentic-theme="mist")
 *
 * A LIGHT treatment matching the phase-12.5 PDF reference: a soft
 * periwinkle-lavender surface washed with whisper-faint warm-peach
 * (top-right), violet (left) and green (bottom) glows; white frosted
 * section cards with hairline edges + a soft float shadow; numbered
 * 1/2/3/4 section badges in pastel hues (violet / green / amber /
 * violet); faint per-section header tints; the green Key-News
 * annotation (inherited from the base `.agentic-section2__annot`).
 *
 * Orthogonal to the density variants (v1 / loose / quiet) — every rule
 * is scoped under `[data-agentic-theme="mist"]` so the default
 * `light` theme is byte-for-byte unchanged. Because the surface stays
 * light, text colours are inherited from the light theme; this block
 * only retints the surface, the card chrome and the badges.
 *
 * Companion to the dark `aurora` theme above — "mist" is the lighter
 * periwinkle reading of the same PDF reference, and the paler sibling of
 * the richer `dawn` theme below.
 *
 * User-selectable in the chat toolbar's "Manage" popover ("Theme (dev)"
 * group); persisted per account via `/api/user/assistant-panel-prefs`.
 * The Manage popover itself is portaled to <body> (outside this
 * selector's reach) and is unaffected — fine for a transient menu.
 * =================================================================== */

.assistant-panel--agentic[data-agentic-theme="mist"] {
  --dawn-card-bg: rgba(255, 255, 255, 0.62);
  --dawn-card-border: rgba(255, 255, 255, 0.9);
  --dawn-card-shadow: 0 1px 3px rgba(38, 33, 70, 0.06), 0 6px 18px -10px rgba(38, 33, 70, 0.12);
}

/* Surface — the light periwinkle-lavender aurora. Replaces the light
 * theme's flat `var(--surface-1)` fill; keeps the slate rule + a
 * slightly softened float shadow. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel__surface {
  background:
    radial-gradient(120% 58% at 86% -8%, rgba(233, 170, 134, 0.18), transparent 60%),
    radial-gradient(120% 70% at -8% 24%, rgba(140, 112, 222, 0.17), transparent 60%),
    radial-gradient(130% 58% at 50% 112%, rgba(52, 170, 132, 0.15), transparent 60%),
    linear-gradient(165deg, #edeef8 0%, #e6e6f3 52%, #eae7f4 100%);
  box-shadow: 0 22px 56px -16px rgba(28, 24, 60, 0.28);
}

/* Section cards + chat region — white frosted glass over the lavender,
 * hairline white edge, soft float shadow. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section1,
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section2,
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section3,
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__chat {
  background: var(--dawn-card-bg);
  border-color: var(--dawn-card-border);
  border-radius: 14px;
  box-shadow: var(--dawn-card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Section headers — faint per-section pastel tint; numbered badge sits
 * at the left, title flexes, the "View all" link stays right. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section-header {
  justify-content: flex-start;
  border-bottom-color: rgba(148, 163, 184, 0.28);
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section1 .assistant-panel-agentic__section-header {
  background: rgba(124, 58, 237, 0.07);
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section2 .assistant-panel-agentic__section-header {
  background: rgba(16, 185, 129, 0.08);
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section3 .assistant-panel-agentic__section-header {
  background: rgba(234, 160, 90, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__chat-toolbar {
  background: rgba(124, 58, 237, 0.07);
  border-bottom-color: rgba(148, 163, 184, 0.28);
}

/* Numbered section badge — hidden in the light theme (markup is always
 * rendered so the DOM stays stable); pastel chip under mist. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
/* The title <span> directly follows the badge — give it the remaining
 * width so the right-aligned link still anchors to the right edge. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section-num + span {
  flex: 1 1 auto;
  min-width: 0;
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section1 .assistant-panel-agentic__section-num {
  background: rgba(124, 58, 237, 0.13);
  color: #6d4dd0;
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section2 .assistant-panel-agentic__section-num {
  background: rgba(16, 185, 129, 0.16);
  color: #0c9b6c;
}
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__section3 .assistant-panel-agentic__section-num {
  background: rgba(234, 160, 90, 0.20);
  color: #b3720d;
}
/* Chat section badge ("4") — violet, like Section 1 (the chat is the
 * agenda's conversational counterpart); it lives in the chat toolbar,
 * not under a `.sectionN` wrapper, so it needs its own colour. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__chat-toolbar .assistant-panel-agentic__section-num {
  background: rgba(124, 58, 237, 0.13);
  color: #6d4dd0;
}

/* Section 2 "High relevance" pill — green under aurora, echoing the
 * reference's green Key-News accent (base theme keeps it violet). */
.assistant-panel--agentic[data-agentic-theme="mist"] .agentic-section2__pill {
  background: rgba(16, 185, 129, 0.14);
  color: #0c9b6c;
}

/* Group headers in Section 3's "View all" mode — slightly more opaque
 * so the sticky bar reads over the frosted card while scrolling. */
.assistant-panel--agentic[data-agentic-theme="mist"] .assistant-panel-agentic__group-header {
  background: rgba(247, 248, 252, 0.94);
}

/* ===================================================================
 * Agentic L2 panel — "dawn" theme (data-agentic-theme="dawn")
 *
 * The richer reading of the same periwinkle anatomy as the "mist"
 * block above — lifted from the original phase-12.5 mockup
 * (`dawn-theme-v1.html`). Same four-section layout; what changes is
 * the *treatment*: a deeper periwinkle surface (#c7cbe0 → #b8bed7)
 * with stronger warm-peach / lavender / mint washes; more saturated
 * white frosted cards (18px corners, `blur(18px) saturate(120%)`, an
 * inset white highlight); punchier pastel badge inks; a mint Key-News
 * annotation; the earth-from-space §2 thumbnail.
 *
 * Selectable alongside "mist" in the chat toolbar's "Manage" popover
 * ("Theme (dev)") so the team can compare Dawn vs. Mist; persisted
 * per account via `/api/user/assistant-panel-prefs`. Orthogonal to the
 * density variants (v1 / loose / quiet) — every rule is scoped under
 * `[data-agentic-theme="dawn"]` so the default `light` theme is
 * byte-for-byte unchanged. The Manage popover itself is portaled to
 * <body> (outside this selector's reach) and is unaffected.
 * =================================================================== */

.assistant-panel--agentic[data-agentic-theme="dawn"] {
  --dawn-card-bg: rgba(255, 255, 255, 0.62);
  --dawn-card-border: rgba(255, 255, 255, 0.85);
  --dawn-card-shadow:
    0 6px 18px rgba(46, 52, 86, 0.10),
    0 1px 2px rgba(46, 52, 86, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Surface — the deeper periwinkle aurora: a vertical #c7cbe0 → #b8bed7
 * gradient washed with a warm-peach bloom top-right, a lavender bloom
 * on the left, and a mint kiss at the bottom. Keeps the slate rule. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel__surface {
  background:
    radial-gradient(120% 60% at 100% -4%, rgba(244, 196, 158, 0.45), transparent 55%),
    radial-gradient(120% 78% at -8% 28%, rgba(170, 158, 230, 0.55), transparent 60%),
    radial-gradient(130% 56% at 50% 112%, rgba(170, 210, 195, 0.28), transparent 50%),
    linear-gradient(180deg, #c7cbe0 0%, #b8bed7 100%);
  box-shadow: 0 24px 56px -14px rgba(46, 52, 86, 0.30);
}

/* Section cards + chat region — saturated white frosted glass over the
 * periwinkle: 18px corners, blur+saturate so the washes bleed through
 * without muddying the surface, soft drop + inset white highlight. The
 * per-section accent now washes the *whole* card (see below) rather
 * than just the header band. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section1,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section2,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section3,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__chat {
  background: var(--dawn-card-bg);
  border-color: var(--dawn-card-border);
  border-radius: 18px;
  box-shadow: var(--dawn-card-shadow);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
/* Whole-card accent wash — a flat tint layered over the frosted white
 * so each section reads in its hue (violet / mint / orange), not just a
 * coloured strip behind the badge. Same hue family as the badge chips,
 * far lower alpha so body text + thumbnails stay legible. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section1 {
  background:
    linear-gradient(rgba(123, 108, 232, 0.10), rgba(123, 108, 232, 0.10)),
    var(--dawn-card-bg);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section2 {
  background:
    linear-gradient(rgba(63, 176, 130, 0.09), rgba(63, 176, 130, 0.09)),
    var(--dawn-card-bg);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section3 {
  background:
    linear-gradient(rgba(226, 148, 90, 0.11), rgba(226, 148, 90, 0.11)),
    var(--dawn-card-bg);
}

/* Section headers — transparent over the tinted card (the hue lives on
 * the whole card now); numbered badge at the left, title flexes, the
 * "View all" link stays right. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section-header {
  justify-content: flex-start;
  background: transparent;
  border-bottom-color: rgba(46, 52, 86, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__chat-toolbar {
  background: rgba(123, 108, 232, 0.10);
  border-bottom-color: rgba(46, 52, 86, 0.10);
}

/* Hover / focus highlight — the base theme paints an opaque pale slate
 * (`rgb(241 245 249)`), which over a tinted card reads as a bright
 * white patch. Replace it with a faint translucent ink wash: the
 * hovered row darkens a touch and keeps its section hue, so the
 * highlight stays muted (closer to the "Mist" feel) instead of
 * flashing white. Covers every collapsed-state row/card in §1–§3. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section1__row-link:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__card:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__card:focus-visible,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__row:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__row:focus-within,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--compact:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--medium:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--compact:focus-within,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--medium:focus-within,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel__review-row--compact:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel__review-row--compact:focus-within {
  background: rgba(46, 52, 86, 0.07);
}
/* Chat toolbar's expand/shrink button — same faint ink wash so its
 * hover doesn't flash brighter than the violet-tinted toolbar strip. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__chat-expand:hover,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__chat-expand:focus-visible {
  background: rgba(46, 52, 86, 0.07);
  color: rgb(15 23 42);
}

/* Row / card dividers — the base theme's near-white hairline
 * (`rgb(241 245 249)`) is invisible on the white "mist" card, but over
 * the "dawn" tinted cards it reads as a stray white seam — most visibly the
 * trailing divider hanging under a lone collapsed Section 3 row (an
 * ops/inbox/Neo row or a draft row) and the Section 2 article row.
 * Retint every such divider to a faint ink hairline (matching the
 * section-header divider) so it reads as a real divider between rows,
 * and — crucially — drop it on the *last* row of every list so a lone
 * card isn't trailed by a dangling line. (`.pending-action-card` and
 * `.agentic-section2__card` already get this `:last-child` exemption in
 * the base CSS; `.__row` and `.__review-row--compact` never did — those
 * are the seams that were still showing.) */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__row,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--compact,
.assistant-panel--agentic[data-agentic-theme="dawn"] .pending-action-card--medium,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel__review-row--compact,
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__card {
  border-bottom-color: rgba(46, 52, 86, 0.10);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__row:last-child,
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel__review-row--compact:last-child {
  border-bottom: none;
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__group-header {
  border-bottom-color: rgba(46, 52, 86, 0.10);
}

/* Numbered section badge — hidden in the light theme (markup is always
 * rendered so the DOM stays stable); pastel chip under dawn, a touch
 * larger / rounder than the mist chip per the mockup. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section-num + span {
  flex: 1 1 auto;
  min-width: 0;
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section1 .assistant-panel-agentic__section-num {
  background: rgba(123, 108, 232, 0.18);
  color: #4f3fbf;
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section2 .assistant-panel-agentic__section-num {
  background: rgba(63, 176, 130, 0.18);
  color: #1f7a55;
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__section3 .assistant-panel-agentic__section-num {
  background: rgba(226, 148, 90, 0.20);
  color: #b46431;
}
/* Chat section badge ("4") — violet, like Section 1 (the chat is the
 * agenda's conversational counterpart); lives in the chat toolbar, not
 * under a `.sectionN` wrapper, so it needs its own colour rule. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__chat-toolbar .assistant-panel-agentic__section-num {
  background: rgba(123, 108, 232, 0.18);
  color: #4f3fbf;
}

/* Section 1 — agenda icon tiles read as violet-tinted squares. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section1__icon {
  background: rgba(123, 108, 232, 0.16);
  color: #4f3fbf;
}

/* Section 2 — earth-from-space thumbnail (warm + cool radials over a
 * deep navy) and the mint Key-News annotation underline (the "mist"
 * theme keeps the inherited light-theme annotation; "dawn" restores the
 * mint). */
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__thumb {
  background:
    radial-gradient(circle at 70% 75%, rgba(255, 215, 170, 0.55), transparent 45%),
    radial-gradient(circle at 35% 40%, rgba(110, 165, 245, 0.70), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 220, 180, 0.50), transparent 40%),
    linear-gradient(135deg, #1b2a55 0%, #0e1a38 100%);
  color: rgba(255, 255, 255, 0.9);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__annot {
  background-image: linear-gradient(transparent 58%, rgba(99, 200, 158, 0.42) 58%);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .agentic-section2__pill {
  background: rgba(63, 176, 130, 0.18);
  color: #1f7a55;
}

/* Section 3 — "View all" sticky group headers a touch more opaque so
 * the sticky bar stays legible over the frosted card while scrolling. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-panel-agentic__group-header {
  background: rgba(238, 239, 248, 0.92);
}

/* Send button in the embedded chat — the punchier dawn violet with a
 * soft drop, matching the mockup's composer. */
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-chat__send-btn {
  background: #7b6ce8;
  box-shadow: 0 4px 10px rgba(123, 108, 232, 0.34);
}
.assistant-panel--agentic[data-agentic-theme="dawn"] .assistant-chat__send-btn:hover {
  background: #6a5bd8;
}

/* Agentic/mobile web entrance ------------------------------------------------
 * `/m/login` and `/m/assistant` share the main app backend but present a
 * phone-first L2 surface. Desktop browsers intentionally keep the same narrow
 * frame so Tauri/mobile wrappers and web demos exercise the same behavior.
 */
.agentic-login,
.agentic-mobile-shell {
  min-height: 100dvh;
  min-height: var(--agentic-shell-height, var(--agentic-visual-height, 100dvh));
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(238, 244, 248, 0.96)),
    #f3f6f8;
  color: var(--fg-1);
  overscroll-behavior: none;
}

.agentic-login {
  display: grid;
  place-items: center;
  padding: 18px;
  touch-action: none;
}

.agentic-login__phone,
.agentic-mobile-device {
  width: min(100%, 430px);
  background: var(--surface-elevated);
  overscroll-behavior: none;
  touch-action: none;
}

.agentic-login__phone {
  min-height: min(760px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 31, 37, 0.10);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(18, 31, 37, 0.16);
  overflow: hidden;
}

.agentic-login__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 10px;
  -webkit-app-region: drag;
}

.agentic-login__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agentic-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-1);
  text-decoration: none;
  font-weight: 800;
}

.agentic-login__header a,
.agentic-login__header button,
.agentic-mobile-device .assistant-panel__header button,
.agentic-mobile-device .assistant-panel__header a {
  -webkit-app-region: no-drag;
}

/* Tauri drag is handled by the injected host shim so interactive header
 * controls (NeoSchool, inbox, minimize, close) still receive clicks. */
.agentic-mobile-device .assistant-panel__header[data-tauri-drag-region] {
  -webkit-app-region: no-drag;
}

.agentic-login__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal-500);
  color: #fff;
  font-weight: 900;
}

.agentic-login[data-role="student"] .agentic-login__mark {
  background: var(--violet-500);
}

.agentic-login__mode {
  padding: 5px 9px;
  border: 1px solid rgba(18, 31, 37, 0.10);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agentic-login__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 31, 37, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--fg-2);
  cursor: pointer;
}

.agentic-login__close:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--fg-1);
}

.agentic-login__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px 28px;
}

.agentic-login .eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--teal-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agentic-login[data-role="student"] .eyebrow-row {
  color: var(--violet-500);
}

.agentic-login .eyebrow-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.agentic-login h1 {
  margin: 0 0 8px;
  color: var(--fg-1);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.agentic-login .lede {
  margin-bottom: 22px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
}

.agentic-role-grid,
.agentic-login .login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agentic-role-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(18, 31, 37, 0.10);
  border-radius: 14px;
  background: #fff;
  color: var(--fg-1);
  text-decoration: none;
}

.agentic-role-card:hover {
  border-color: var(--teal-500);
}

.agentic-role-card.student:hover {
  border-color: var(--violet-500);
}

.agentic-role-card__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-600);
  font-weight: 900;
}

.agentic-role-card.student .agentic-role-card__mark {
  background: var(--violet-100);
  color: var(--violet-600);
}

.agentic-role-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agentic-role-card__body strong {
  font-size: 15px;
  line-height: 1.2;
}

.agentic-role-card__body span {
  color: var(--fg-2);
  font-size: 12.5px;
  line-height: 1.35;
}

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

.agentic-login .field > label {
  color: var(--fg-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agentic-login .field input,
.agentic-login .field .combobox {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #fff;
  color: var(--fg-1);
  font: inherit;
  font-size: 15px;
}

.agentic-login .field input:focus,
.agentic-login .field .combobox:focus-within {
  outline: 2px solid rgba(20, 184, 166, 0.24);
  border-color: var(--teal-500);
}

.agentic-login[data-role="student"] .field input:focus,
.agentic-login[data-role="student"] .field .combobox:focus-within {
  outline-color: rgba(139, 92, 246, 0.24);
  border-color: var(--violet-500);
}

.agentic-login .helper {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-3);
  font-size: 11.5px;
}

.agentic-login .helper a {
  color: var(--teal-500);
  text-decoration: none;
}

.agentic-login[data-role="student"] .helper a {
  color: var(--violet-500);
}

.agentic-login .btn-primary {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: var(--teal-500);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.agentic-login .btn-primary:hover {
  background: var(--teal-600);
}

.agentic-login .btn-primary.violet {
  background: var(--violet-500);
}

.agentic-login .btn-primary.violet:hover {
  background: var(--violet-600);
}

.agentic-login .btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.agentic-login .pwd-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-3);
  font-size: 11.5px;
}

.agentic-login .pwd-foot .demo {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.assistant-panel--agentic .agentic-mobile-header-action {
  text-decoration: none;
}

.assistant-panel--agentic .agentic-mobile-neoschool-action svg,
.assistant-panel--agentic .agentic-mobile-neoscholar-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-agentic-mobile-handoff="true"] .agentic-mobile-handoff-hide {
  display: none !important;
}

html[data-citta-workspace="true"] .assistant-panel,
html[data-citta-workspace="true"] .assistant-panel__toggle,
html[data-citta-workspace="true"] .assistant-panel__l1-avatar,
html[data-citta-workspace="true"] .assistant-panel__l3-character {
  display: none !important;
}

html[data-agentic-mobile-shell="true"],
html[data-agentic-mobile-shell="true"] body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(238, 244, 248, 0.96)),
    #f3f6f8;
}

html[data-agentic-mobile-shell="true"] body {
  position: fixed;
  inset: 0;
}

html[data-agentic-focus-scroll-guard="true"] .agentic-mobile-device .assistant-chat__input-field {
  opacity: 0;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__section1,
html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__section2,
html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__section3 {
  display: none !important;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__layout {
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  border-radius: 12px;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat-toolbar {
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__keyboard-bar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 8px 4px;
  border-bottom: 1px solid rgb(241 245 249);
  background: rgb(248 250 252 / 0.76);
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat-body,
html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat-body .assistant-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat-body .assistant-chat__messages {
  padding-top: 12px;
}

html[data-agentic-keyboard-open="true"] .agentic-mobile-device .assistant-panel-agentic__chat-body .assistant-chat__input-modern {
  position: relative;
  bottom: auto;
  z-index: 2;
  padding-bottom: 8px;
  background: white;
  border-top: 1px solid rgb(241 245 249);
}

.agentic-mobile-settings {
  position: relative;
  display: inline-flex;
}

.agentic-mobile-settings__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(268px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgb(226 232 240);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  color: rgb(15 23 42);
}

.agentic-mobile-settings__group {
  display: grid;
  gap: 8px;
}

.agentic-mobile-settings__label {
  font-size: 12px;
  font-weight: 700;
  color: rgb(51 65 85);
}

.agentic-mobile-settings__segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(226 232 240);
  border-radius: 12px;
  background: rgb(248 250 252);
}

.agentic-mobile-settings__segmented button,
.agentic-mobile-settings__reset,
.agentic-mobile-settings__signout {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgb(71 85 105);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.agentic-mobile-settings__segmented button:hover,
.agentic-mobile-settings__segmented button:focus-visible,
.agentic-mobile-settings__reset:hover,
.agentic-mobile-settings__reset:focus-visible,
.agentic-mobile-settings__signout:hover,
.agentic-mobile-settings__signout:focus-visible {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
  outline: none;
}

.agentic-mobile-settings__segmented button.is-active {
  background: rgb(15 118 110);
  color: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.agentic-mobile-settings__reset {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgb(226 232 240);
  background: white;
}

.agentic-mobile-settings__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  color: rgb(51 65 85);
}

.agentic-mobile-settings__toggle span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.agentic-mobile-settings__toggle small {
  max-width: 190px;
  color: rgb(100 116 139);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}

.agentic-mobile-settings__toggle input {
  flex: 0 0 auto;
  width: 34px;
  height: 18px;
  margin-top: 1px;
  accent-color: rgb(15 118 110);
  cursor: pointer;
}

.agentic-mobile-settings__divider {
  height: 1px;
  margin: 10px 0;
  background: rgb(226 232 240);
}

.agentic-mobile-settings__signout {
  width: 100%;
  border: 1px solid rgb(254 202 202);
  background: rgb(254 242 242);
  color: rgb(185 28 28);
}

.agentic-mobile-settings__signout:hover,
.agentic-mobile-settings__signout:focus-visible {
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size="compact"] {
  --agentic-mobile-name-size: 0.9rem;
  --agentic-mobile-role-size: 0.7rem;
  --agentic-mobile-section-header-size: 11px;
  --agentic-mobile-link-size: 10.5px;
  --agentic-mobile-row-size: 11px;
  --agentic-mobile-meta-size: 10.5px;
  --agentic-mobile-badge-size: 9.5px;
  --agentic-mobile-chat-size: 13px;
  --agentic-mobile-placeholder-size: 12.5px;
  --agentic-mobile-section1-max: 116px;
  --agentic-mobile-section2-max: 92px;
  --agentic-mobile-section3-max: 116px;
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size="standard"] {
  --agentic-mobile-name-size: 1rem;
  --agentic-mobile-role-size: 0.78rem;
  --agentic-mobile-section-header-size: 12.3px;
  --agentic-mobile-link-size: 11.8px;
  --agentic-mobile-row-size: 12.3px;
  --agentic-mobile-meta-size: 11.8px;
  --agentic-mobile-badge-size: 10.6px;
  --agentic-mobile-chat-size: 14.6px;
  --agentic-mobile-placeholder-size: 14px;
  --agentic-mobile-section1-max: 125px;
  --agentic-mobile-section2-max: 99px;
  --agentic-mobile-section3-max: 125px;
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size="large"] {
  --agentic-mobile-name-size: 1.12rem;
  --agentic-mobile-role-size: 0.84rem;
  --agentic-mobile-section-header-size: 13.5px;
  --agentic-mobile-link-size: 12.8px;
  --agentic-mobile-row-size: 13.6px;
  --agentic-mobile-meta-size: 12.8px;
  --agentic-mobile-badge-size: 11.4px;
  --agentic-mobile-chat-size: 16px;
  --agentic-mobile-placeholder-size: 15.2px;
  --agentic-mobile-section1-max: 138px;
  --agentic-mobile-section2-max: 110px;
  --agentic-mobile-section3-max: 138px;
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__name {
  font-size: var(--agentic-mobile-name-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__role-pill {
  font-size: var(--agentic-mobile-role-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__section-header,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__hdr-title {
  font-size: var(--agentic-mobile-section-header-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__section-link,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__group-header,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__group-count {
  font-size: var(--agentic-mobile-link-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section1__row-link,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__title,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__row,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__row-text,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card--compact,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card--medium,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__title,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__title-button,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__review-row--compact .assistant-panel__review-title,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__review-row--medium .assistant-panel__review-title,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__review-title-button {
  font-size: var(--agentic-mobile-row-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section1__time,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section1__subtitle,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__summary,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__why,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__row-time,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__subtitle,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__subtitle--inline,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__rationale,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel__review-preview {
  font-size: var(--agentic-mobile-meta-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section1__badge,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__meta,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .agentic-section2__pill,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__row-kind,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__status,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .pending-action-card__field-label {
  font-size: var(--agentic-mobile-badge-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-message,
.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-chat__input-field {
  font-size: var(--agentic-mobile-chat-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-chat__input-field::-moz-placeholder {
  font-size: var(--agentic-mobile-placeholder-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-chat__input-field::placeholder {
  font-size: var(--agentic-mobile-placeholder-size);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__section1 {
  max-height: var(--agentic-mobile-section1-max);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__section2 {
  max-height: var(--agentic-mobile-section2-max);
}

.agentic-mobile-device .assistant-panel--agentic[data-agentic-text-size] .assistant-panel-agentic__section3 {
  max-height: var(--agentic-mobile-section3-max);
}

/* Final focused-section guard. The base focus rules live with the L2
 * layout, but density/theme/mobile text-size blocks later in this file
 * also set section max-heights. Keep every "View all" / "See all"
 * expansion full-height regardless of variant or shell. */
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section1"] > .assistant-panel-agentic__section1,
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section2"] > .assistant-panel-agentic__section2,
.assistant-panel--agentic .assistant-panel-agentic__layout[data-focused-section="section3"] > .assistant-panel-agentic__section3 {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.agentic-mobile-shell {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.agentic-mobile-device {
  position: relative;
  min-height: var(--agentic-visual-height, 100dvh);
  overflow: hidden;
  touch-action: auto;
  transform: translateY(var(--agentic-device-offset-y, 0px));
}

@media (max-width: 699px) {
  body:has(.agentic-login),
  body:has(.agentic-mobile-shell) {
    padding: 0;
  }

  body:has(.agentic-mobile-shell) {
    overflow: hidden;
  }

  .agentic-login,
  .agentic-mobile-shell {
    width: 100vw;
    min-height: var(--agentic-shell-height, var(--agentic-visual-height, 100dvh));
    height: var(--agentic-shell-height, var(--agentic-visual-height, 100dvh));
    overflow: hidden;
  }

  html[data-agentic-mobile-shell="true"] .agentic-login,
  html[data-agentic-mobile-shell="true"] .agentic-mobile-shell {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
  }

  .agentic-mobile-shell {
    display: block;
  }

  .agentic-mobile-device {
    width: 100vw;
    min-height: var(--agentic-visual-height, 100dvh);
    height: var(--agentic-visual-height, 100dvh);
  }
}

.agentic-mobile-device .assistant-panel {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: var(--agentic-visual-height, 100dvh) !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  transform-origin: center !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1;
}

.agentic-mobile-device .assistant-panel--closed {
  display: none;
}

.agentic-mobile-device .assistant-panel__surface {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.agentic-mobile-device .assistant-panel__header {
  cursor: default;
}

.agentic-mobile-device .assistant-panel__resize-handle {
  display: none;
}

.agentic-handoff-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(242, 247, 250, 0.98) 48%, rgba(229, 238, 243, 0.98)),
    #f3f6f8;
  color: var(--fg-1);
  pointer-events: all;
}

.agentic-handoff-transition__panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(18, 31, 37, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 60px rgba(18, 31, 37, 0.14);
  font-size: 14px;
  font-weight: 700;
}

.agentic-handoff-transition__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(31, 111, 106, 0.22);
  border-top-color: var(--teal-600);
  animation: agentic-handoff-spin 0.8s linear infinite;
}

@keyframes agentic-handoff-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 700px) {
  .agentic-mobile-shell {
    padding: 18px;
  }

  .agentic-mobile-device {
    min-height: min(calc(100dvh - 36px), 784px);
    height: min(calc(100dvh - 36px), 784px);
    max-height: min(calc(100dvh - 36px), 784px);
    border: 1px solid rgba(18, 31, 37, 0.10);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(18, 31, 37, 0.16);
  }

  .agentic-mobile-device .assistant-panel {
    height: min(calc(100dvh - 36px), 784px) !important;
    max-height: min(calc(100dvh - 36px), 784px) !important;
  }
}

@media (max-width: 480px) {
  .agentic-login {
    padding: 0;
  }

  .agentic-login__phone {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .agentic-login__card {
    padding: 20px 18px 24px;
  }
}

html[data-citta-assistant-surface="l1"],
html[data-citta-assistant-surface="l1"] body,
html[data-citta-assistant-surface="l1"] .agentic-mobile-shell,
html[data-citta-assistant-surface="l1"] .agentic-mobile-device,
html[data-citta-assistant-surface="l3"],
html[data-citta-assistant-surface="l3"] body,
html[data-citta-assistant-surface="l3"] .agentic-mobile-shell,
html[data-citta-assistant-surface="l3"] .agentic-mobile-device {
  background: transparent !important;
}

html[data-citta-assistant-surface="l1"] .agentic-mobile-shell,
html[data-citta-assistant-surface="l3"] .agentic-mobile-shell {
  display: block;
  min-height: 100vh;
  overflow: hidden;
}

.file\:mr-3::file-selector-button {
  margin-right: 0.75rem;
}

.file\:rounded-md::file-selector-button {
  border-radius: 0.375rem;
}

.file\:border-0::file-selector-button {
  border-width: 0px;
}

.file\:bg-gray-900::file-selector-button {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

.file\:bg-surface-soft::file-selector-button {
  background-color: var(--color-surface-soft);
}

.file\:px-3::file-selector-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.file\:py-1\.5::file-selector-button {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.file\:font-medium::file-selector-button {
  font-weight: 500;
}

.file\:font-semibold::file-selector-button {
  font-weight: 600;
}

.file\:text-ink::file-selector-button {
  color: var(--color-text);
}

.file\:text-white::file-selector-button {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.placeholder\:text-gray-400::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.placeholder\:text-gray-400::placeholder {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.placeholder\:text-ink-muted::-moz-placeholder {
  color: var(--color-text-muted);
}

.placeholder\:text-ink-muted::placeholder {
  color: var(--color-text-muted);
}

.first\:pt-0:first-child {
  padding-top: 0px;
}

.last\:border-0:last-child {
  border-width: 0px;
}

.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}

.last\:pb-0:last-child {
  padding-bottom: 0px;
}

.hover\:border-amber-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1));
}

.hover\:border-border-strong:hover {
  border-color: var(--color-border-strong);
}

.hover\:border-border-subtle:hover {
  border-color: var(--color-border-subtle);
}

.hover\:border-brand:hover {
  border-color: var(--color-accent);
}

.hover\:border-emerald-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(110 231 183 / var(--tw-border-opacity, 1));
}

.hover\:border-gray-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.hover\:border-gray-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.hover\:border-indigo-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(199 210 254 / var(--tw-border-opacity, 1));
}

.hover\:border-indigo-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(165 180 252 / var(--tw-border-opacity, 1));
}

.hover\:border-indigo-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(129 140 248 / var(--tw-border-opacity, 1));
}

.hover\:border-red-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}

.hover\:border-teal-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(153 246 228 / var(--tw-border-opacity, 1));
}

.hover\:border-violet-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(221 214 254 / var(--tw-border-opacity, 1));
}

.hover\:border-violet-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(196 181 253 / var(--tw-border-opacity, 1));
}

.hover\:bg-\[color\:var\(--color-accent-strong\)\]:hover {
  background-color: var(--color-accent-strong);
}

.hover\:bg-amber-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}

.hover\:bg-amber-100\/60:hover {
  background-color: rgb(254 243 199 / 0.6);
}

.hover\:bg-amber-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-amber-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(217 119 6 / var(--tw-bg-opacity, 1));
}

.hover\:bg-black\/\[0\.02\]:hover {
  background-color: rgb(0 0 0 / 0.02);
}

.hover\:bg-black\/\[0\.03\]:hover {
  background-color: rgb(0 0 0 / 0.03);
}

.hover\:bg-black\/\[0\.04\]:hover {
  background-color: rgb(0 0 0 / 0.04);
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-brand-strong:hover {
  background-color: var(--color-accent-strong);
}

.hover\:bg-canvas:hover {
  background-color: var(--color-canvas);
}

.hover\:bg-emerald-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}

.hover\:bg-emerald-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.hover\:bg-emerald-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(4 120 87 / var(--tw-bg-opacity, 1));
}

.hover\:bg-emerald-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(6 95 70 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(199 210 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-50\/40:hover {
  background-color: rgb(238 242 255 / 0.4);
}

.hover\:bg-indigo-50\/50:hover {
  background-color: rgb(238 242 255 / 0.5);
}

.hover\:bg-indigo-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(67 56 202 / var(--tw-bg-opacity, 1));
}

.hover\:bg-ink-muted:hover {
  background-color: var(--color-text-muted);
}

.hover\:bg-red-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.hover\:bg-rose-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-slate-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}

.hover\:bg-slate-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(51 65 85 / var(--tw-bg-opacity, 1));
}

.hover\:bg-slate-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
}

.hover\:bg-surface:hover {
  background-color: var(--color-surface);
}

.hover\:bg-surface-elevated:hover {
  background-color: var(--color-surface-elevated);
}

.hover\:bg-surface-soft:hover {
  background-color: var(--color-surface-soft);
}

.hover\:bg-teal-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(17 94 89 / var(--tw-bg-opacity, 1));
}

.hover\:bg-violet-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-violet-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(109 40 217 / var(--tw-bg-opacity, 1));
}

.hover\:bg-white:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-yellow-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
}

.hover\:text-\[color\:var\(--color-accent\)\]:hover {
  color: var(--color-accent);
}

.hover\:text-amber-800:hover {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}

.hover\:text-brand:hover {
  color: var(--color-accent);
}

.hover\:text-brand-strong:hover {
  color: var(--color-accent-strong);
}

.hover\:text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-800:hover {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-900:hover {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.hover\:text-indigo-500:hover {
  --tw-text-opacity: 1;
  color: rgb(99 102 241 / var(--tw-text-opacity, 1));
}

.hover\:text-indigo-700:hover {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}

.hover\:text-indigo-800:hover {
  --tw-text-opacity: 1;
  color: rgb(55 48 163 / var(--tw-text-opacity, 1));
}

.hover\:text-indigo-900:hover {
  --tw-text-opacity: 1;
  color: rgb(49 46 129 / var(--tw-text-opacity, 1));
}

.hover\:text-ink:hover {
  color: var(--color-text);
}

.hover\:text-ink-muted:hover {
  color: var(--color-text-muted);
}

.hover\:text-red-600:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.hover\:text-red-700:hover {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.hover\:text-red-800:hover {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.hover\:text-rose-700:hover {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}

.hover\:text-rose-800:hover {
  --tw-text-opacity: 1;
  color: rgb(159 18 57 / var(--tw-text-opacity, 1));
}

.hover\:text-slate-900:hover {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.hover\:opacity-100:hover {
  opacity: 1;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-sm:hover {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-xl:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-\[var\(--shadow-card-hover\)\]:hover {
  --tw-shadow-color: var(--shadow-card-hover);
  --tw-shadow: var(--tw-shadow-colored);
}

.hover\:ring-2:hover {
  --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(2px + 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);
}

.hover\:ring-indigo-200\/60:hover {
  --tw-ring-color: rgb(199 210 254 / 0.6);
}

.focus\:border-brand:focus {
  border-color: var(--color-accent);
}

.focus\:border-indigo-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(129 140 248 / var(--tw-border-opacity, 1));
}

.focus\:border-indigo-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-1:focus {
  --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(1px + 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);
}

.focus\:ring-2:focus {
  --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(2px + 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);
}

.focus\:ring-brand:focus {
  --tw-ring-color: var(--color-accent);
}

.focus\:ring-indigo-100:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(224 231 255 / var(--tw-ring-opacity, 1));
}

.focus\:ring-indigo-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity, 1));
}

.focus\:ring-indigo-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}

.focus\:ring-teal-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(20 184 166 / var(--tw-ring-opacity, 1));
}

.focus\:ring-offset-1:focus {
  --tw-ring-offset-width: 1px;
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:outline:focus-visible {
  outline-style: solid;
}

.focus-visible\:outline-2:focus-visible {
  outline-width: 2px;
}

.focus-visible\:outline-offset-2:focus-visible {
  outline-offset: 2px;
}

.focus-visible\:outline-brand:focus-visible {
  outline-color: var(--color-accent);
}

.focus-visible\:ring-2:focus-visible {
  --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(2px + 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);
}

.focus-visible\:ring-amber-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-brand:focus-visible {
  --tw-ring-color: var(--color-accent);
}

.focus-visible\:ring-emerald-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-indigo-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-red-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-slate-400:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(148 163 184 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-yellow-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(234 179 8 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:cursor-wait:disabled {
  cursor: wait;
}

.disabled\:border-gray-200:disabled {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.disabled\:bg-gray-200:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-300:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-400:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-50:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.disabled\:text-gray-400:disabled {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.disabled\:opacity-40:disabled {
  opacity: 0.4;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:opacity-60:disabled {
  opacity: 0.6;
}

.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  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));
}

.group:hover .group-hover\:gap-3 {
  gap: 0.75rem;
}

.group:hover .group-hover\:border-indigo-200 {
  --tw-border-opacity: 1;
  border-color: rgb(199 210 254 / var(--tw-border-opacity, 1));
}

.group:hover .group-hover\:bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.group:hover .group-hover\:text-\[color\:var\(--color-accent\)\] {
  color: var(--color-accent);
}

.group:hover .group-hover\:text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-indigo-800 {
  --tw-text-opacity: 1;
  color: rgb(55 48 163 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-teal-700 {
  --tw-text-opacity: 1;
  color: rgb(15 118 110 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-violet-600 {
  --tw-text-opacity: 1;
  color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}

@media (min-width: 640px) {

  .sm\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .sm\:-mx-6 {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:inline-flex {
    display: inline-flex;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sm\:grid-cols-\[1fr_auto_auto\] {
    grid-template-columns: 1fr auto auto;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-start {
    align-items: flex-start;
  }

  .sm\:items-end {
    align-items: flex-end;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:justify-between {
    justify-content: space-between;
  }

  .sm\:p-4 {
    padding: 1rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:pl-10 {
    padding-left: 2.5rem;
  }

  .sm\:pl-5 {
    padding-left: 1.25rem;
  }

  .sm\:pt-24 {
    padding-top: 6rem;
  }

  .sm\:text-right {
    text-align: right;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 768px) {

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .md\:col-span-9 {
    grid-column: span 9 / span 9;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:contents {
    display: contents;
  }

  .md\:hidden {
    display: none;
  }

  .md\:w-32 {
    width: 8rem;
  }

  .md\:w-\[200px\] {
    width: 200px;
  }

  .md\:w-\[320px\] {
    width: 320px;
  }

  .md\:max-w-\[44rem\] {
    max-width: 44rem;
  }

  .md\:flex-1 {
    flex: 1 1 0%;
  }

  .md\:flex-\[2\] {
    flex: 2;
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .md\:grid-cols-\[120px_1fr\] {
    grid-template-columns: 120px 1fr;
  }

  .md\:grid-cols-\[1fr_1fr_120px_auto\] {
    grid-template-columns: 1fr 1fr 120px auto;
  }

  .md\:grid-cols-\[220px\2c 1fr\] {
    grid-template-columns: 220px 1fr;
  }

  .md\:grid-cols-\[220px_1fr\] {
    grid-template-columns: 220px 1fr;
  }

  .md\:grid-cols-\[260px_1fr\] {
    grid-template-columns: 260px 1fr;
  }

  .md\:grid-cols-\[260px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 260px minmax(0,1fr);
  }

  .md\:grid-cols-\[minmax\(0\2c 1fr\)_160px_auto\] {
    grid-template-columns: minmax(0,1fr) 160px auto;
  }

  .md\:grid-cols-\[minmax\(0\2c 1fr\)_220px_auto_auto\] {
    grid-template-columns: minmax(0,1fr) 220px auto auto;
  }

  .md\:grid-cols-\[minmax\(0\2c 1fr\)_260px\] {
    grid-template-columns: minmax(0,1fr) 260px;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-start {
    align-items: flex-start;
  }

  .md\:items-end {
    align-items: flex-end;
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:justify-between {
    justify-content: space-between;
  }

  .md\:overflow-hidden {
    overflow: hidden;
  }

  .md\:border-b-0 {
    border-bottom-width: 0px;
  }

  .md\:border-r {
    border-right-width: 1px;
  }

  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .md\:pt-0 {
    padding-top: 0px;
  }
}

@media (min-width: 1024px) {

  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-4 {
    top: 1rem;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:-mx-8 {
    margin-left: -2rem;
    margin-right: -2rem;
  }

  .lg\:mx-0 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .lg\:ml-8 {
    margin-left: 2rem;
  }

  .lg\:block {
    display: block;
  }

  .lg\:inline {
    display: inline;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:w-80 {
    width: 20rem;
  }

  .lg\:flex-1 {
    flex: 1 1 0%;
  }

  .lg\:shrink-0 {
    flex-shrink: 0;
  }

  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-\[0\.95fr\2c 1\.05fr\] {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .lg\:grid-cols-\[1\.05fr\2c 0\.95fr\] {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .lg\:grid-cols-\[1\.15fr\2c 0\.85fr\] {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .lg\:grid-cols-\[1\.2fr\2c 0\.8fr\] {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .lg\:grid-cols-\[1\.3fr\2c 1fr\] {
    grid-template-columns: 1.3fr 1fr;
  }

  .lg\:grid-cols-\[1\.45fr\2c 1fr\] {
    grid-template-columns: 1.45fr 1fr;
  }

  .lg\:grid-cols-\[1fr\2c 360px\] {
    grid-template-columns: 1fr 360px;
  }

  .lg\:grid-cols-\[1fr_1fr\] {
    grid-template-columns: 1fr 1fr;
  }

  .lg\:grid-cols-\[1fr_1fr_1fr\] {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .lg\:grid-cols-\[260px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 260px minmax(0,1fr);
  }

  .lg\:grid-cols-\[360px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 360px minmax(0,1fr);
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_16rem\] {
    grid-template-columns: minmax(0,1fr) 16rem;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_220px\] {
    grid-template-columns: minmax(0,1fr) 220px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_220px_auto_auto\] {
    grid-template-columns: minmax(0,1fr) 220px auto auto;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_22rem\] {
    grid-template-columns: minmax(0,1fr) 22rem;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_320px\] {
    grid-template-columns: minmax(0,1fr) 320px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_380px\] {
    grid-template-columns: minmax(0,1fr) 380px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_auto\] {
    grid-template-columns: minmax(0,1fr) auto;
  }

  .lg\:grid-cols-\[minmax\(220px\2c 1fr\)_auto\] {
    grid-template-columns: minmax(220px,1fr) auto;
  }

  .lg\:grid-cols-\[minmax\(220px\2c 280px\)_1fr\] {
    grid-template-columns: minmax(220px,280px) 1fr;
  }

  .lg\:grid-cols-\[minmax\(280px\2c 360px\)_1fr\] {
    grid-template-columns: minmax(280px,360px) 1fr;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:flex-col {
    flex-direction: column;
  }

  .lg\:items-start {
    align-items: flex-start;
  }

  .lg\:items-end {
    align-items: flex-end;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:justify-between {
    justify-content: space-between;
  }

  .lg\:self-end {
    align-self: flex-end;
  }

  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {

  .xl\:sticky {
    position: sticky;
  }

  .xl\:top-4 {
    top: 1rem;
  }

  .xl\:max-h-\[calc\(100vh-2rem\)\] {
    max-height: calc(100vh - 2rem);
  }

  .xl\:max-h-\[calc\(100vh-6rem\)\] {
    max-height: calc(100vh - 6rem);
  }

  .xl\:max-h-\[calc\(100vh-7rem\)\] {
    max-height: calc(100vh - 7rem);
  }

  .xl\:min-h-\[calc\(100vh-13rem\)\] {
    min-height: calc(100vh - 13rem);
  }

  .xl\:w-80 {
    width: 20rem;
  }

  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .xl\:grid-cols-\[1\.15fr\2c 0\.85fr\] {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .xl\:grid-cols-\[1\.5fr\2c 1fr\] {
    grid-template-columns: 1.5fr 1fr;
  }

  .xl\:grid-cols-\[minmax\(0\2c 0\.95fr\)_minmax\(0\2c 1\.25fr\)\] {
    grid-template-columns: minmax(0,0.95fr) minmax(0,1.25fr);
  }

  .xl\:grid-cols-\[minmax\(0\2c 1\.35fr\)_minmax\(320px\2c 0\.65fr\)\] {
    grid-template-columns: minmax(0,1.35fr) minmax(320px,0.65fr);
  }

  .xl\:grid-cols-\[minmax\(0\2c 1\.45fr\)_minmax\(320px\2c 0\.75fr\)\] {
    grid-template-columns: minmax(0,1.45fr) minmax(320px,0.75fr);
  }

  .xl\:grid-cols-\[minmax\(0\2c 1\.8fr\)_minmax\(280px\2c 0\.8fr\)\] {
    grid-template-columns: minmax(0,1.8fr) minmax(280px,0.8fr);
  }

  .xl\:grid-cols-\[minmax\(0\2c 1fr\)_340px\] {
    grid-template-columns: minmax(0,1fr) 340px;
  }

  .xl\:grid-cols-\[minmax\(0\2c 1fr\)_380px\] {
    grid-template-columns: minmax(0,1fr) 380px;
  }

  .xl\:flex-row {
    flex-direction: row;
  }

  .xl\:self-start {
    align-self: flex-start;
  }

  .xl\:overflow-hidden {
    overflow: hidden;
  }

  .xl\:overflow-y-auto {
    overflow-y: auto;
  }

  .xl\:pr-1 {
    padding-right: 0.25rem;
  }
}

@media (min-width: 1536px) {

  .\32xl\:grid-cols-\[minmax\(0\2c 1fr\)_420px\] {
    grid-template-columns: minmax(0,1fr) 420px;
  }
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/phase5.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Phase 5 — Live class loop.
 *
 * All styles class-prefixed under .p5 so they cannot collide with
 * existing surfaces. Tokens (.teal-*, .violet-*, .canvas, .fg-1, etc)
 * come from globals.css :root — no new tokens added in this phase.
 *
 * Density target is HIGHER than Phase 4 onboarding — the live room is
 * operator software, not first-impression material. Body 14px, chips
 * 11px, gaps tighter. Two surfaces (pre-class cockpit, student live)
 * keep the 16/14 onboarding scale because they're approached fresh.
 *
 * Color discipline:
 *   • Teal-500 = "live" / active / accent. Used sparingly.
 *   • Highlight (warm orange) = "attention required" — confusion spike,
 *     unanswered question crossing a threshold, recording warning.
 *   • Rose = destructive only.
 *
 * Animation discipline:
 *   • One pulse animation, used in 3 places max per surface.
 *   • Speaking-bars animation only when the .live class is set.
 */

/* ---------- Surface frame ------------------------------------------- */

.p5 {
  font-family: var(--font-serif);
  color: var(--fg-1);
}

.p5-canvas {
  /* Packet B (2026-05-13): the body-padding escape is gone — no more
   * `margin: -32px` / `100vh + 64px` math; the canvas paints edge-to-
   * edge by default now. */
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% -12%, rgba(15, 118, 110, 0.10), transparent 40%),
    radial-gradient(circle at -8% 14%, rgba(201, 111, 59, 0.07), transparent 34%),
    linear-gradient(180deg, var(--canvas-strong) 0%, var(--canvas-deeper) 100%);
  color: var(--fg-1);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}
.p5-canvas.flat { background: var(--canvas); }
.p5-canvas.projector {
  background: linear-gradient(180deg, #0e1f23 0%, #08151a 100%);
  color: #e6f3f0;
  min-height: 100vh;
}
.p5-canvas.mobile {
  /* Mobile full-bleed; same Packet B simplification as the base. */
  min-height: 100vh;
  background: var(--canvas);
  display: flex; flex-direction: column;
}

/* ---------- Brand lock --------------------------------------------- */

.p5 .brandlock-chrome {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-serif);
}
.p5 .brandlock-chrome .logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  letter-spacing: -0.01em;
}
.p5 .brandlock-chrome .name {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-1);
}

.p5 .brandlock-project {
  display: inline-flex; align-items: center; gap: 18px;
  color: #f4fbf9;
}
.p5 .brandlock-project .logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff; display: grid; place-items: center;
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.4);
}
.p5 .brandlock-project .name {
  font-size: 36px; font-weight: 700; letter-spacing: -0.01em;
  color: #f4fbf9;
}

/* ---------- Live pulse + speaking bars + sparkbar ------------------ */

.p5 .live-pulse {
  position: relative;
  display: inline-flex;
  width: 10px; height: 10px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.p5 .live-pulse .dot {
  position: relative; z-index: 2;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pulse-color, var(--teal-500));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.p5 .live-pulse .ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--pulse-color, var(--teal-500));
  opacity: 0.5;
  animation: p5-live-pulse-ring 2s ease-out infinite;
}
@keyframes p5-live-pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.5; }
  80%  { transform: scale(2.2); opacity: 0;   }
  100% { transform: scale(2.2); opacity: 0;   }
}

.p5 .speak-bars {
  display: inline-flex; align-items: center; gap: 2px;
  height: 18px; width: 22px;
}
.p5 .speak-bars .bar {
  flex: 1;
  background: var(--teal-500);
  border-radius: 1px;
  min-height: 3px;
  align-self: center;
}
.p5 .speak-bars.live .bar {
  animation: p5-speak-bar-bounce 0.9s ease-in-out infinite alternate;
}
@keyframes p5-speak-bar-bounce {
  0%   { transform: scaleY(0.4); }
  100% { transform: scaleY(1.0); }
}

.p5 .sparkbar {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(29, 42, 47, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.p5 .sparkbar .fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.p5 .sparkbar.tone-teal      .fill { background: var(--teal-500); }
.p5 .sparkbar.tone-violet    .fill { background: var(--violet-500); }
.p5 .sparkbar.tone-amber     .fill { background: var(--amber-600); }
.p5 .sparkbar.tone-highlight .fill { background: var(--highlight); }
.p5 .sparkbar.tone-rose      .fill { background: var(--rose-600); }

/* ---------- Mobile status bar -------------------------------------- */

.p5 .mobile-status {
  height: 44px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px 28px 6px;
  font-size: 14px; font-weight: 600;
  font-family: var(--font-sans);
}
.p5 .mobile-status.tone-dark { color: #0f1c1f; }
.p5 .mobile-status.tone-light { color: #f4fbf9; }
.p5 .mobile-status .indicators {
  display: inline-flex; align-items: center; gap: 6px;
}
.p5 .mobile-status .signal-dots {
  display: inline-flex; gap: 2px; align-items: flex-end;
}
.p5 .mobile-status .signal-dots i {
  display: block; width: 3px; background: currentColor; border-radius: 1px;
}
.p5 .mobile-status .signal-dots i:nth-child(1) { height: 4px; }
.p5 .mobile-status .signal-dots i:nth-child(2) { height: 6px; }
.p5 .mobile-status .signal-dots i:nth-child(3) { height: 8px; }
.p5 .mobile-status .signal-dots i:nth-child(4) { height: 10px; }
.p5 .mobile-status .battery {
  position: relative;
  width: 24px; height: 11px;
  border: 1px solid currentColor; border-radius: 3px;
  padding: 1px;
}
.p5 .mobile-status .battery .cap {
  position: absolute; right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: currentColor; border-radius: 0 1px 1px 0;
}
.p5 .mobile-status .battery .fill {
  display: block; width: 80%; height: 100%;
  background: currentColor; border-radius: 1px;
}

/* ---------- Buttons (live-room flavor) ----------------------------- */

.p5 .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  background: transparent; color: var(--fg-1);
}
.p5 .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.p5 .btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

.p5 .btn-primary {
  background: var(--accent);
  color: var(--accent-contrast, #fff);
  border-color: var(--accent);
}
.p5 .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.p5 .btn-primary.danger { background: var(--rose-600); border-color: var(--rose-600); }
.p5 .btn-primary.danger:hover { background: #8a1414; border-color: #8a1414; }

.p5 .btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-strong);
}
.p5 .btn-ghost:hover { background: rgba(29, 42, 47, 0.04); }

.p5 .btn-soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}
.p5 .btn-soft:hover { background: var(--teal-100); }

.p5 .btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.p5 .btn-icon:hover { background: rgba(29, 42, 47, 0.06); color: var(--fg-1); }
.p5 .btn-icon .icon { width: 16px; height: 16px; }

.p5 .btn.lg { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.p5 .btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

/* ---------- Tags / chips / badges ---------------------------------- */

.p5 .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
  white-space: nowrap;
}
.p5 .chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.p5 .chip.live    { background: var(--teal-100);   color: var(--teal-600); }
.p5 .chip.attention { background: var(--highlight-100); color: var(--highlight); }
.p5 .chip.danger  { background: var(--rose-50);    color: var(--rose-600); }
.p5 .chip.ok      { background: var(--emerald-50); color: var(--emerald-600); }
.p5 .chip.violet  { background: var(--violet-100); color: var(--violet-600); }
.p5 .chip.recording {
  background: rgba(185, 28, 28, 0.10);
  color: var(--rose-600);
}

/* ============================================================
 * 01 · Pre-class cockpit
 * ============================================================ */

.p5 .cockpit {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 18px 32px 32px;
}

.p5 .cockpit-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.p5 .cockpit-bar .left { display: inline-flex; align-items: center; gap: 16px; }
.p5 .cockpit-bar .crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-2);
}
.p5 .cockpit-bar .crumb .sep { color: var(--fg-3); }
.p5 .cockpit-bar .crumb .here { color: var(--fg-1); font-weight: 600; }
.p5 .cockpit-bar .right { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-2); }

.p5 .hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 28px 32px 26px;
  color: #f4fbf9;
  background:
    linear-gradient(135deg, #0e514a 0%, #126661 38%, #1c7d6e 70%, #2d9586 100%);
}
.p5 .hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at -10% 110%, rgba(201, 111, 59, 0.18), transparent 50%);
  pointer-events: none;
}
.p5 .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}
.p5 .hero-left .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(244, 251, 249, 0.7);
}
.p5 .hero-left .hero-eyebrow .chip {
  background: rgba(244, 251, 249, 0.16);
  color: #fff;
  letter-spacing: 0.04em;
}
.p5 .hero-left h1 {
  margin-top: 12px;
  font-size: 28px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.012em;
  max-width: 480px;
  text-wrap: balance;
  color: #fff;
}
.p5 .hero-left .lede {
  margin-top: 12px;
  font-size: 14px; line-height: 1.55;
  color: rgba(244, 251, 249, 0.82);
  max-width: 480px;
}
.p5 .hero-left .meta {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; color: rgba(244, 251, 249, 0.72);
  flex-wrap: wrap;
}
.p5 .hero-left .meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.p5 .hero-left .actions {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.p5 .hero-left .actions .btn-primary {
  background: #fff;
  color: var(--teal-600);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.p5 .hero-left .actions .btn-primary:hover { background: rgba(255, 255, 255, 0.92); }
.p5 .hero-left .actions .btn-ghost {
  background: rgba(244, 251, 249, 0.1);
  border-color: rgba(244, 251, 249, 0.3);
  color: #fff;
}
.p5 .hero-left .actions .btn-ghost:hover { background: rgba(244, 251, 249, 0.18); }

.p5 .hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p5 .hero-tile {
  border-radius: 14px;
  background: rgba(244, 251, 249, 0.08);
  border: 1px solid rgba(244, 251, 249, 0.14);
  padding: 12px 14px;
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.p5 .hero-tile .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(244, 251, 249, 0.62);
}
.p5 .hero-tile .value {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.01em; color: #fff;
  font-feature-settings: "tnum";
}
.p5 .hero-tile .hint { font-size: 11px; color: rgba(244, 251, 249, 0.6); }
.p5 .hero-tile .delta {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-weight: 700;
  color: rgba(244, 251, 249, 0.55);
}
.p5 .hero-tile.attention {
  background: rgba(201, 111, 59, 0.18);
  border-color: rgba(201, 111, 59, 0.35);
}
.p5 .hero-tile.attention .value { color: #ffe1c9; }

.p5 .cockpit-cols {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.p5 .cockpit-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 18px;
}
.p5 .cockpit-card .head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
}
.p5 .cockpit-card .head .eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.p5 .cockpit-card .head .right {
  font-size: 11px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}
.p5 .cockpit-card h2 {
  font-size: 16px; font-weight: 700; letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--fg-1);
}
.p5 .cockpit-card p.sub { font-size: 12px; color: var(--fg-2); margin: 0; }

.p5 .prep-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.p5 .prep-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.5);
}
.p5 .prep-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.p5 .prep-item.done .check { background: var(--emerald-50); color: var(--emerald-600); }
.p5 .prep-item.done .check svg { width: 12px; height: 12px; }
.p5 .prep-item.todo .check {
  background: transparent;
  border: 1.5px dashed var(--border-strong);
}
.p5 .prep-item.attn .check {
  background: var(--highlight-100);
  color: var(--highlight);
}
.p5 .prep-item.attn .check svg { width: 11px; height: 11px; }
.p5 .prep-item .body { font-size: 13px; line-height: 1.4; color: var(--fg-1); }
.p5 .prep-item .body small { display: block; color: var(--fg-2); font-size: 11px; margin-top: 2px; }
.p5 .prep-item .action {
  font-size: 11px; font-weight: 600;
  color: var(--accent); cursor: pointer;
  background: transparent; border: 0;
  font-family: inherit;
}
.p5 .prep-item .action:hover { text-decoration: underline; }

.p5 .tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.p5 .tool-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 252, 248, 0.5);
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
}
.p5 .tool-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.p5 .tool-card .glyph {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.p5 .tool-card .glyph svg { width: 16px; height: 16px; }
.p5 .tool-card .label { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.p5 .tool-card .hint  { font-size: 11px; color: var(--fg-2); }

/* ============================================================
 * 02 / 03 / 04 / 10 · Live room (shared chrome) — primitives
 * ============================================================
 *
 * The full live-room layout is implemented by PR-2 (which extracts
 * sections from the existing 2051-LOC live page). PR-1 ships only
 * the primitives so the foundation is in place.
 */

.p5 .liveroom {
  flex: 1;
  display: grid;
  grid-template-rows: 56px 1fr;
  background: var(--canvas);
  font-family: var(--font-serif);
}

.p5 .lr-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: rgba(255, 252, 248, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}
.p5 .lr-header .left { display: inline-flex; align-items: center; gap: 14px; }
.p5 .lr-header .center { display: inline-flex; justify-content: center; }
.p5 .lr-header .right { display: inline-flex; align-items: center; gap: 10px; }
.p5 .lr-header .session-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.2;
}
.p5 .lr-header .session-meta .course-code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  padding: 3px 7px; border-radius: 5px;
  background: rgba(29, 42, 47, 0.06);
}
.p5 .lr-header .session-meta .title {
  font-size: 14px; font-weight: 600;
  color: var(--fg-1);
}
.p5 .lr-header .session-meta .sep { color: var(--fg-3); }
.p5 .lr-header .session-meta .clock {
  font-size: 12px; color: var(--fg-2);
  font-feature-settings: "tnum";
}
.p5 .lr-header .live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
}
.p5 .lr-header .live-badge.recording {
  background: rgba(185, 28, 28, 0.10);
  color: var(--rose-600);
  /* Reserve enough width for HH:MM rec timers so the badge doesn't
   * reflow when a class crosses one hour. Pads "REC · MM:SS" comfortably
   * and keeps "REC · HH:MM:SS" from wrapping. */
  min-width: 108px;
  justify-content: center;
}

/* Two-column header variant — used by surfaces that don't need a
 * center column (mode switcher etc). Keeps the right side anchored
 * right without an empty center cell. */
.p5 .lr-header--no-center {
  grid-template-columns: auto 1fr;
}
.p5 .lr-header--no-center .right { justify-self: end; }

/* Inline banner for transient errors below the header. Replaces the
 * raw inline-style version that shipped with the first live-room
 * reskin commit. */
.p5 .lr-banner {
  margin: 8px 16px 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.p5 .lr-banner.error {
  background: var(--rose-50);
  color: var(--rose-600);
  border: 1px solid rgba(185, 28, 28, 0.2);
}
.p5 .lr-banner.info {
  background: var(--teal-50);
  color: var(--teal-600);
  border: 1px solid var(--teal-100);
}
.p5 .lr-header .live-badge.scheduled,
.p5 .lr-header .live-badge.ended {
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
}

/* Mode switcher (soft modes) */
.p5 .mode-switcher {
  display: inline-flex; align-items: stretch;
  background: rgba(29, 42, 47, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2px;
  font-size: 12px;
}
.p5 .mode-switcher .mode {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--fg-2);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  background: transparent; border: 0;
  font-family: inherit;
}
.p5 .mode-switcher .mode .icon { width: 13px; height: 13px; }
.p5 .mode-switcher .mode:hover { color: var(--fg-1); }
.p5 .mode-switcher .mode.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(29, 42, 47, 0.06);
}
.p5 .mode-switcher .mode.active .icon { color: var(--accent); }

/* Live room body grid */
.p5 .lr-body { position: relative; overflow: hidden; }
.p5 .lr-body.layout-a {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 0;
}

/* Aside (Now / Tools columns, layout A) */
.p5 .lr-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.65);
  min-height: 0;
}
.p5 .lr-col {
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.p5 .lr-col + .lr-col { border-left: 1px solid var(--border-subtle); }
.p5 .lr-col-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(255, 252, 248, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(6px);
}
.p5 .lr-col-head .label { display: inline-flex; align-items: center; gap: 8px; }
.p5 .lr-col-head .label .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.p5 .lr-col-head .label .swatch.now { background: var(--teal-500); }
.p5 .lr-col-head .label .swatch.tools { background: var(--highlight); }

.p5 .lr-section {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 14px;
}
.p5 .lr-section:last-child { border-bottom: 0; }
.p5 .lr-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.p5 .lr-section-head h3 {
  font-size: 12px; font-weight: 700;
  color: var(--fg-1);
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
}
.p5 .lr-section-head h3 .icon { width: 13px; height: 13px; color: var(--fg-2); }
.p5 .lr-section-head .count {
  font-size: 11px; font-weight: 700;
  color: var(--fg-2);
  font-feature-settings: "tnum";
}

.p5 .lr-section.suggested { background: rgba(15, 118, 110, 0.04); }
.p5 .lr-section.suggested .lr-section-head h3::before {
  content: "";
  display: inline-block; width: 3px; height: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.p5 .lr-section.dimmed { opacity: 0.55; }

/* ============================================================
 * Phase 5.5 — live-room body shell (lr-main / lr-grid / lr-stage /
 * lr-deck). The Phase 5 packet shipped chrome + primitives; this
 * section is the body wrapper SPEC §R2.1 references. Three columns
 * top-level: stage + Now + Tools.
 * ============================================================ */

.p5 .lr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.p5 .lr-main > .mode-switcher {
  margin: 12px 24px 6px;
  align-self: flex-start;
}

.p5 .lr-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px 320px;
  gap: 0;
  min-height: 0;
}

.p5 .lr-stage {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 24px;
  min-height: 0;
  overflow-y: auto;
}

.p5 .lr-deck {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--color-paper);
  overflow: hidden;
  min-height: 0;
}

.p5 .lr-deck-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
}

.p5 .lr-deck-head .meta {
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.p5 .lr-deck-head .meta .title {
  font-size: 13px; font-weight: 600;
  color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.p5 .lr-deck-head .meta .file {
  font-size: 11px; color: var(--fg-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.p5 .lr-deck-empty {
  padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  color: var(--fg-2);
  font-size: 13px;
}

.p5 .lr-deck-empty .glyph {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid; place-items: center;
}

.p5 .lr-deck-empty h3 {
  margin: 0;
  font-size: 16px; font-weight: 700;
  color: var(--fg-1);
}

.p5 .lr-deck-empty p { margin: 0; max-width: 480px; line-height: 1.5; }

.p5 .lr-deck-frame {
  position: relative;
  flex: 1;
  min-height: 320px;
  background: var(--canvas-strong);
}

.p5 .lr-deck-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: rgba(15, 32, 38, 0.55);
  color: #f4fbf9;
}

.p5 .lr-deck-overlay strong {
  font-size: 18px;
  font-weight: 700;
}

.p5 .lr-deck-overlay span { font-size: 12px; opacity: 0.85; }

.p5 .lr-deck-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--ink-line);
}

.p5 .lr-deck-foot .nav { display: inline-flex; align-items: center; gap: 8px; }

.p5 .lr-deck-foot .nav .pos {
  min-width: 64px;
  font-size: 12px; color: var(--fg-2);
  font-feature-settings: "tnum";
  text-align: center;
}

.p5 .lr-deck-foot .rec-controls {
  display: inline-flex; align-items: center; gap: 8px;
}

.p5 .lr-deck-foot .rec-controls select,
.p5 .lr-deck-foot .nav button {
  font-family: inherit;
}

.p5 .lr-pulse-count {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  font-feature-settings: "tnum";
}

.p5 .lr-list {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
}

.p5 .lr-list .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.85);
  border: 1px solid var(--ink-line);
}

.p5 .lr-list .row .body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}

.p5 .lr-list .row .body strong {
  font-size: 12.5px; color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.p5 .lr-list .row .body span {
  font-size: 11px; color: var(--fg-2);
}

.p5 .lr-list .row .actions {
  display: inline-flex; gap: 4px; align-items: center;
}

.p5 .lr-poll-bar {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}

.p5 .lr-poll-bar .track {
  height: 6px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.06);
  overflow: hidden;
}

.p5 .lr-poll-bar .track .fill {
  display: block; height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
}

.p5 .lr-poll-bar .ct {
  font-size: 11px; color: var(--fg-2);
  font-feature-settings: "tnum";
  text-align: right;
}

.p5 .lr-stack {
  display: flex; flex-direction: column;
  gap: 8px;
}

.p5 .lr-stack .row-action {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--fg-1);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.p5 .lr-stack .row-action:hover { background: rgba(29, 42, 47, 0.025); }
.p5 .lr-stack .row-action[disabled] { opacity: 0.55; cursor: default; }
.p5 .lr-stack .row-action.danger { color: var(--rose-600); border-color: rgba(185, 28, 28, 0.2); }
.p5 .lr-stack .row-action.danger:hover { background: var(--rose-50); }

.p5 .lr-foot-note {
  margin-top: 6px;
  font-size: 11px; color: var(--fg-3);
  line-height: 1.4;
}

/* Header `.meta` rename target — same rules as `.clock` (R2.5). The
 * old `.clock` selector stays alongside as a back-compat alias. */
.p5 .lr-header .session-meta .meta {
  font-size: 12px; color: var(--fg-2);
  font-feature-settings: "tnum";
}

/* Speaking-now tile */
.p5 .speaking-tile {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(15, 118, 110, 0.08) 0%,
    rgba(15, 118, 110, 0.02) 80%);
  border: 1px solid rgba(15, 118, 110, 0.16);
}
.p5 .speaking-tile.idle {
  background: rgba(29, 42, 47, 0.03);
  border-color: var(--border-subtle);
}
.p5 .speaking-tile .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  position: relative;
}
.p5 .speaking-tile .avatar.idle {
  background: rgba(29, 42, 47, 0.08);
  color: var(--fg-3);
}
.p5 .speaking-tile .avatar .pulse-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--teal-500);
  opacity: 0.5;
  animation: p5-live-pulse-ring 2.4s ease-out infinite;
}
.p5 .speaking-tile .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p5 .speaking-tile .name { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.p5 .speaking-tile .name.idle { color: var(--fg-3); font-style: italic; font-weight: 500; }
.p5 .speaking-tile .meta { font-size: 11px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; }
.p5 .speaking-tile .meta .conf { font-feature-settings: "tnum"; }
.p5 .speaking-tile .right { display: flex; align-items: center; gap: 8px; }

.p5 .privacy-foot {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--fg-2);
  cursor: pointer;
}
.p5 .privacy-foot .icon { width: 11px; height: 11px; color: var(--teal-500); }
.p5 .privacy-foot:hover { color: var(--fg-1); }

/* Confusion meter */
.p5 .confusion {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}
.p5 .confusion-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center;
}
.p5 .confusion-bar .label {
  font-size: 12px; font-weight: 600;
}
.p5 .confusion-bar .value {
  font-size: 13px; font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--fg-1);
}
.p5 .confusion .signals {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; color: var(--fg-2);
}
.p5 .confusion .signals .s {
  display: grid; grid-template-columns: 14px 1fr auto;
  align-items: center; gap: 8px;
  padding: 4px 0;
}
.p5 .confusion .signals .s .icon { width: 12px; height: 12px; color: var(--fg-3); }
.p5 .confusion .signals .s.hot .icon { color: var(--highlight); }
.p5 .confusion .signals .s .count {
  font-feature-settings: "tnum"; font-weight: 700; color: var(--fg-1);
}
.p5 .confusion-spike {
  margin-top: 4px;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--highlight-100);
  color: #6b3a18;
  font-size: 12px; line-height: 1.4;
}
.p5 .confusion-spike .icon { width: 14px; height: 14px; color: var(--highlight); flex-shrink: 0; margin-top: 1px; }
.p5 .confusion-spike strong { color: var(--highlight); }

/* ============================================================
 * 05 · Attendance projector
 * ============================================================ */

.p5 .projector-shell {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 56px;
  gap: 18px;
  color: #f4fbf9;
}
.p5 .projector-shell .top {
  display: flex; align-items: center; justify-content: space-between;
}
.p5 .projector-shell .top .meta {
  font-size: 14px;
  color: rgba(244, 251, 249, 0.65);
  display: inline-flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.p5 .projector-shell .top .meta .clock {
  font-size: 14px; font-feature-settings: "tnum";
  color: rgba(244, 251, 249, 0.85);
}
.p5 .projector-shell .center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.p5 .projector-shell .center .copy h1 {
  font-size: 64px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.0;
  text-wrap: balance;
  color: #f4fbf9;
}
.p5 .projector-shell .center .copy h1 em {
  font-style: normal;
  color: var(--teal-500);
}
.p5 .projector-shell .center .copy .lede {
  margin-top: 24px;
  font-size: 22px; line-height: 1.4;
  color: rgba(244, 251, 249, 0.78);
  max-width: 460px;
}
.p5 .projector-shell .center .copy .course {
  margin-top: 36px;
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(244, 251, 249, 0.06);
  border: 1px solid rgba(244, 251, 249, 0.14);
}
.p5 .projector-shell .center .copy .course .label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244, 251, 249, 0.55);
}
.p5 .projector-shell .center .copy .course .name {
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  color: #f4fbf9;
}
.p5 .projector-shell .center .qrwrap {
  position: relative;
  justify-self: end;
  background: #fff;
  padding: 32px;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.p5 .projector-shell .center .qrwrap .qrcode {
  width: 360px; height: 360px;
  border-radius: 8px;
  display: grid;
  background: #fff;
}
.p5 .projector-shell .center .qrwrap .qrlabel {
  margin-top: 18px;
  text-align: center;
  font-size: 13px; color: var(--fg-2);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}
.p5 .projector-shell .bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
  color: rgba(244, 251, 249, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.p5 .projector-shell .bottom .rotate {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 251, 249, 0.08);
}
.p5 .projector-shell .bottom .rotate .icon { width: 14px; height: 14px; }

/* ============================================================
 * 06 / 07 · Student live room
 * ============================================================ */

.p5 .student-shell {
  flex: 1;
  display: grid;
  grid-template-rows: 52px 1fr;
  font-family: var(--font-serif);
  min-height: 100vh;
}
.p5 .student-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: rgba(255, 252, 248, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}
.p5 .student-header .left { display: inline-flex; align-items: center; gap: 14px; }
.p5 .student-header .right { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; }
.p5 .student-header .session-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.p5 .student-header .session-meta .course-code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  padding: 3px 7px; border-radius: 5px;
  background: rgba(29, 42, 47, 0.06);
}
.p5 .student-header .session-meta .title {
  font-size: 14px; font-weight: 600;
  color: var(--fg-1);
}
.p5 .student-header .session-meta .sep { color: var(--fg-3); }
.p5 .student-header .session-meta .clock {
  font-size: 12px; color: var(--fg-2);
  font-feature-settings: "tnum";
}
.p5 .student-header .live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet-100);
  color: var(--violet-600);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
}

.p5 .student-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 0;
}

.p5 .student-stage {
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.p5 .student-stage .deck-frame {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #15212a;
  position: relative;
  min-height: 360px;
}
.p5 .student-stage .follow-pill {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-600);
  z-index: 2;
}
.p5 .student-stage .student-deck-slide {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(109, 40, 217, 0.18), transparent 60%),
    linear-gradient(180deg, #f4eedf 0%, #efe6d2 100%);
  display: flex; flex-direction: column;
  padding: 36px 48px;
  color: #1d2a2f;
}
.p5 .student-stage .student-deck-slide .deck-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-600);
}
.p5 .student-stage .student-deck-slide h1 {
  margin-top: 10px;
  font-size: 28px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.012em;
  max-width: 540px;
  color: var(--fg-1);
}
.p5 .student-stage .student-deck-slide ol {
  margin-top: 24px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  list-style: none;
}
.p5 .student-stage .student-deck-slide ol li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: 14.5px; line-height: 1.4;
}
.p5 .student-stage .student-deck-slide ol li::before {
  content: counter(p5sd);
  counter-increment: p5sd;
  font-size: 11px; font-weight: 700;
  background: rgba(109, 40, 217, 0.16); color: var(--violet-600);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
}
.p5 .student-stage .student-deck-slide ol { counter-reset: p5sd; }

.p5 .student-stage .deck-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-2);
  flex-wrap: wrap; gap: 8px;
}

/* Student aside */
.p5 .student-aside {
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.65);
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.p5 .student-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.92);
  padding: 14px;
}
.p5 .student-card h3 {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.p5 .student-card h3 .icon { width: 12px; height: 12px; }

/* Hand raise button */
.p5 .hand-raise {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.18);
  font-size: 13px;
  cursor: pointer;
  width: 100%; text-align: left;
  font-family: inherit; color: inherit;
}
.p5 .hand-raise:hover { background: rgba(109, 40, 217, 0.10); }
.p5 .hand-raise .glyph {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--violet-100);
  color: var(--violet-600);
  display: grid; place-items: center;
}
.p5 .hand-raise .glyph .icon { width: 18px; height: 18px; }
.p5 .hand-raise.raised {
  background: var(--violet-500);
  color: #fff;
  border-color: var(--violet-500);
}
.p5 .hand-raise.raised .glyph {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.p5 .hand-raise.raised .since {
  font-size: 10px; opacity: 0.8;
  font-feature-settings: "tnum";
}
.p5 .hand-raise .body strong { font-size: 14px; font-weight: 700; }
.p5 .hand-raise .body .sub { font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* Mic-array opt-in */
.p5 .mic-array {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px; align-items: center;
}
.p5 .mic-array .glyph {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(29, 42, 47, 0.05);
  color: var(--fg-2);
  display: grid; place-items: center;
}
.p5 .mic-array .glyph .icon { width: 14px; height: 14px; }
.p5 .mic-array.on .glyph {
  background: var(--violet-100);
  color: var(--violet-500);
}
.p5 .mic-array .body .label { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.p5 .mic-array .body .sub { font-size: 11px; color: var(--fg-2); margin-top: 1px; }

/* Toggle pill (student-side, violet) */
.p5 .toggle {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.12);
  cursor: pointer;
  transition: background .15s;
  border: 0;
  flex-shrink: 0;
}
.p5 .toggle::after {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform .15s;
}
.p5 .toggle.on { background: var(--violet-500); }
.p5 .toggle.on::after { transform: translateX(16px); }

.p5 .privacy-row {
  margin-top: 10px;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(29, 42, 47, 0.03);
  font-size: 11px; line-height: 1.45;
  color: var(--fg-2);
}
.p5 .privacy-row .icon { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--violet-500); }

/* Student poll card */
.p5 .student-poll {
  border: 1px solid var(--violet-500);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, var(--violet-50) 0%, rgba(255, 252, 248, 0.92) 80%);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.10);
}
.p5 .student-poll .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.p5 .student-poll .head .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--violet-600);
}
.p5 .student-poll .head .timer {
  font-size: 12px; font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--violet-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.p5 .student-poll .head .timer .icon { width: 12px; height: 12px; }
.p5 .student-poll h2 {
  font-size: 16px; font-weight: 600; line-height: 1.3;
  margin: 0 0 14px;
  color: var(--fg-1);
}
.p5 .student-poll .opts { display: flex; flex-direction: column; gap: 6px; }
.p5 .student-poll .opt {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  color: inherit;
}
.p5 .student-poll .opt:hover { border-color: var(--violet-500); }
.p5 .student-poll .opt.selected {
  border-color: var(--violet-500);
  background: var(--violet-50);
}
.p5 .student-poll .opt .letter {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.p5 .student-poll .opt.selected .letter {
  background: var(--violet-500);
  color: #fff;
}
.p5 .student-poll .foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
}
.p5 .student-poll .foot .submit {
  background: var(--violet-500);
  border-color: var(--violet-500);
  color: #fff;
}
.p5 .student-poll .foot .submit:hover { background: var(--violet-600); border-color: var(--violet-600); }

/* Question composer */
.p5 .q-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px; align-items: center;
}
.p5 .q-compose input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  font-family: inherit; font-size: 13px;
  color: var(--fg-1);
}
.p5 .q-compose input::-moz-placeholder { color: var(--fg-3); font-style: italic; }
.p5 .q-compose input::placeholder { color: var(--fg-3); font-style: italic; }
.p5 .q-compose input:focus {
  outline: 2px solid var(--violet-500);
  outline-offset: 0;
  border-color: var(--violet-500);
}

/* ============================================================
 * 08 · Mobile attend
 * ============================================================ */

.p5 .attend-shell {
  display: flex; flex-direction: column;
  gap: 18px;
  flex: 1;
  padding: 0 0 24px;
}
.p5 .attend-shell .head {
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  padding: 28px 24px 0;
}
.p5 .attend-shell .head .badge {
  align-self: center;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 4px;
}
.p5 .attend-shell .head h1 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--fg-1);
  margin: 0;
}
.p5 .attend-shell .head p {
  font-size: 13px; color: var(--fg-2);
  margin: 0;
}
.p5 .attend-shell .course-card {
  margin: 0 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 252, 248, 0.92);
  display: flex; flex-direction: column; gap: 12px;
}
.p5 .attend-shell .course-card .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.p5 .attend-shell .course-card .row .glyph {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.p5 .attend-shell .course-card .row .glyph .icon { width: 14px; height: 14px; }
.p5 .attend-shell .course-card .row strong { font-weight: 700; color: var(--fg-1); }
.p5 .attend-shell .course-card .row small { color: var(--fg-2); display: block; font-size: 11px; }
.p5 .attend-shell .you {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
}
.p5 .attend-shell .you .who { font-size: 13px; color: var(--fg-1); }
.p5 .attend-shell .you .who small { color: var(--fg-2); display: block; font-size: 11px; }
.p5 .attend-shell .actions {
  margin-top: auto;
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.p5 .attend-shell .actions .btn { padding: 14px; font-size: 15px; border-radius: 14px; }
.p5 .attend-shell .actions .privacy {
  font-size: 11px; color: var(--fg-3);
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.p5 .attend-shell .actions .privacy .icon { width: 11px; height: 11px; }

/* ============================================================
 * 09 · Mobile proctor
 * ============================================================ */

.p5-canvas.proctor {
  /* Packet B (2026-05-13): no more body-padding escape — see the base
   * .p5-canvas comment near the top of this file. */
  min-height: 100vh;
  background: #0e1f23;
  color: #e6f3f0;
  display: flex; flex-direction: column;
}
.p5 .proctor-shell {
  flex: 1;
  display: flex; flex-direction: column;
  background: #0e1f23;
  color: #e6f3f0;
}
.p5 .proctor-shell .top {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(244, 251, 249, 0.08);
}
.p5 .proctor-shell .top .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.p5 .proctor-shell .top .meta .badge {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(230, 243, 240, 0.55);
}
.p5 .proctor-shell .top h1 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.005em;
  color: #fff;
  margin: 0;
}
.p5 .proctor-shell .top p {
  font-size: 12px; color: rgba(230, 243, 240, 0.65);
  margin: 4px 0 0;
}
.p5 .proctor-shell .video {
  flex: 1;
  margin: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #050d10;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.p5 .proctor-shell .video .videoframe {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 240, 220, 0.12), transparent 50%),
    linear-gradient(180deg, #2c1d12 0%, #1a0f08 100%);
}
.p5 .proctor-shell .video .videoframe video {
  width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover;
}
.p5 .proctor-shell .video .vp-overlay {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 21, 26, 0.7);
  backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.p5 .proctor-shell .video .vp-frame-counter {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 21, 26, 0.7);
  backdrop-filter: blur(8px);
  font-size: 11px; color: rgba(244, 251, 249, 0.85);
  font-feature-settings: "tnum";
  z-index: 2;
}
.p5 .proctor-shell .stats {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p5 .proctor-shell .stat {
  border: 1px solid rgba(244, 251, 249, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(244, 251, 249, 0.04);
}
.p5 .proctor-shell .stat .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(230, 243, 240, 0.55);
}
.p5 .proctor-shell .stat .value {
  font-size: 16px; font-weight: 700;
  margin-top: 2px;
  color: #fff;
  font-feature-settings: "tnum";
}
.p5 .proctor-shell .stat .value.ok { color: #7ad0bf; }
.p5 .proctor-shell .stat .value.warn { color: var(--highlight); }
.p5 .proctor-shell .stat .value.bad { color: var(--rose-600); }
.p5 .proctor-shell .stat .sub { font-size: 10.5px; color: rgba(230, 243, 240, 0.55); }
.p5 .proctor-shell .foot {
  padding: 16px 20px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.p5 .proctor-shell .foot .sticky {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: 11px;
  color: rgba(230, 243, 240, 0.6);
  line-height: 1.5;
}
.p5 .proctor-shell .foot .sticky .icon {
  width: 14px; height: 14px; flex-shrink: 0;
  color: rgba(230, 243, 240, 0.6); margin-top: 1px;
}
.p5 .proctor-shell .foot .btn-primary.danger {
  background: var(--rose-600); color: #fff; border-color: var(--rose-600);
}

/* ============================================================
 * Misc — empty states, dividers
 * ============================================================ */

.p5 .divider-soft { height: 1px; background: var(--border-subtle); margin: 8px 0; }
.p5 .empty-soft {
  font-size: 12px; color: var(--fg-3);
  text-align: center;
  padding: 14px 8px;
  font-style: italic;
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_@opentelemetry+api@1.9.1_@playwright+test@1.59.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/phase7.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Phase 7 — Grading loop.
 *
 * Inherits the full vocabulary from phase6.css (which inherits from
 * colors_and_type.css). Phase 7 adds only what's grading-specific:
 *   • Split-pane shell (queue list + grade panel right)
 *   • Reading column (submission body, type-set like a paper)
 *   • Grade panel (Neo-pre-filled fields, post button)
 *   • Rubric checklist (per-criterion scores, inline)
 *   • Gradebook grid (curriculum-dense — students × weeks)
 *   • KP1 formative treatment (no grade, completion confirmation)
 *
 * Color discipline (re-stated):
 *   • Teal-500 = posted / accent / "graded" state.
 *   • Amber/highlight = draft / awaiting / pending review.
 *   • Violet = Neo's contribution (subtle — eyebrow only, no chrome).
 *   • Rose = late / missing / destructive only.
 *   • KP1 formative = teal hairline, no number, completion glyph.
 *
 * Density target: highest in the redesign. The gradebook is the
 * densest single surface in the product.
 */

/* ---------- Two-pane shell (submissions queue) -------------------- */

.p7 .gradebody {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 0;
  flex: 1;
}
.gradebody.gb-grid { grid-template-columns: 1fr; }

.p7 .queue {
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
  display: flex; flex-direction: column;
  min-height: 0;
}

.p7 .queue-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.72);
}
.p7 .queue-head .title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.p7 .queue-head h2 {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.p7 .queue-head h2 .ct {
  font-size: 12px; font-weight: 600;
  color: var(--fg-2);
  font-feature-settings: "tnum";
}
.p7 .queue-head .filters {
  display: inline-flex; gap: 4px;
  font-size: 11px;
}
.p7 .queue-filter {
  padding: 4px 9px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-2);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.queue-filter:hover { color: var(--fg-1); background: rgba(29,42,47,.04); }
.p7 .queue-filter.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.p7 .queue-filter .ct {
  font-size: 10px; font-weight: 800;
  font-feature-settings: "tnum";
  color: var(--fg-3);
}
.queue-filter.active .ct { color: var(--accent-strong); }

.p7 .queue-search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(29, 42, 47, 0.04);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--fg-2);
}
.queue-search:focus-within { background: #fff; border-color: var(--accent); }
.queue-search .icon { width: 13px; height: 13px; }
.p7 .queue-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: inherit; font-size: inherit; color: var(--fg-1);
}

.p7 .queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Assignment group header inside queue */
.p7 .queue-group {
  padding: 10px 14px 6px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(244, 240, 232, 0.4);
  display: flex; align-items: baseline; justify-content: space-between;
  position: sticky; top: 0; z-index: 1;
}
.queue-group:first-child { border-top: 0; }
.p7 .queue-group .label {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  color: var(--fg-1);
}
.p7 .queue-group .label .week {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(29, 42, 47, 0.08);
  color: var(--fg-2);
  padding: 1px 6px;
  border-radius: 4px;
}
.p7 .queue-group .progress {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--fg-2);
  font-feature-settings: "tnum";
}
.p7 .queue-group .bar {
  width: 64px; height: 4px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.10);
  overflow: hidden;
}
.p7 .queue-group .bar .fill {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* Submission row in the queue */
.p7 .qrow {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  background: transparent;
  transition: background .12s;
}
.qrow:hover { background: rgba(29, 42, 47, 0.025); }
.p7 .qrow.selected {
  background: rgba(15, 118, 110, 0.06);
  box-shadow: inset 3px 0 0 var(--accent);
}

.p7 .qrow .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.qrow .av.tone-amber { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }
.qrow .av.tone-violet { background: linear-gradient(135deg, var(--violet-500), var(--violet-600)); }
.qrow .av.tone-rose { background: linear-gradient(135deg, #c2536a, #a73a52); }
.qrow .av.tone-stone { background: rgba(29, 42, 47, 0.16); color: var(--fg-2); }

.qrow .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p7 .qrow .row1 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.p7 .qrow .row1 .name {
  font-weight: 600;
  color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex-shrink: 1;
}
.p7 .qrow .row1 .when {
  font-size: 10.5px; color: var(--fg-3);
  font-feature-settings: "tnum";
  flex-shrink: 0;
}
.p7 .qrow .row2 {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-2);
}
.qrow .row2 .sep { color: var(--fg-3); }

.qrow .right { display: inline-flex; align-items: center; gap: 5px; }

/* Status pellet on the right */
.p7 .status-pellet {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.status-pellet.unread { background: var(--amber-50); color: var(--amber-600); }
.p7 .status-pellet.unread .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500);
}
.status-pellet.neo-drafted { background: rgba(109, 40, 217, 0.10); color: var(--violet-600); }
.p7 .status-pellet.neo-drafted .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-500);
}
.status-pellet.posted { background: rgba(15, 118, 110, 0.10); color: var(--teal-600); }
.status-pellet.late { background: var(--rose-50); color: var(--rose-600); }
.status-pellet.formative { background: rgba(15, 118, 110, 0.08); color: var(--teal-600); }
.status-pellet.missing { background: rgba(29, 42, 47, 0.06); color: var(--fg-3); }

.p7 .qrow .grade-num {
  font-size: 13px; font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--fg-1);
}
.p7 .qrow .grade-num .max {
  font-size: 10.5px; font-weight: 600;
  color: var(--fg-3);
}

/* Empty queue */
.p7 .queue-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--fg-3);
  font-size: 12.5px;
}

/* ---------- Grade panel (right side) ------------------------------ */

.p7 .gpanel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  background: var(--canvas-strong);
}

/* Header — student + assignment + segmented control */
.p7 .gpanel-head {
  padding: 14px 24px 0;
  background: rgba(255, 252, 248, 0.62);
  border-bottom: 1px solid var(--border-subtle);
}
.p7 .gpanel-head .top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.p7 .gpanel-head .who {
  display: flex; align-items: center; gap: 12px;
}
.p7 .gpanel-head .who .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.p7 .gpanel-head .who .nameblock {
  display: flex; flex-direction: column; gap: 2px;
}
.p7 .gpanel-head .who .name {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em;
}
.p7 .gpanel-head .who .meta {
  font-size: 11.5px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.gpanel-head .who .meta .sep { color: var(--fg-3); }
.p7 .gpanel-head .who .meta .stat {
  display: inline-flex; align-items: baseline; gap: 3px;
}
.p7 .gpanel-head .who .meta .stat .v {
  font-weight: 700; color: var(--fg-1);
  font-feature-settings: "tnum";
}

.p7 .gpanel-head .ctrl {
  display: inline-flex; align-items: center; gap: 6px;
}

.p7 .gpanel-head .assignment-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.p7 .gpanel-head .assignment-row .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.06);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-1);
}
.gpanel-head .assignment-row .pill .icon { width: 11px; height: 11px; }
.p7 .gpanel-head .assignment-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.gpanel-head .assignment-row a:hover { text-decoration: underline; }
.p7 .gpanel-head .assignment-row .due {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--fg-2);
}

/* Segmented control: text / paper-pdf / KP1 */
.p7 .seg {
  display: inline-flex;
  background: rgba(29, 42, 47, 0.04);
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 8px;
}
.p7 .seg .opt {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px; font-weight: 700;
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.seg .opt .icon { width: 12px; height: 12px; }
.seg .opt:hover { color: var(--fg-1); }
.p7 .seg .opt.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(29, 42, 47, 0.06);
}
.p7 .seg .opt.disabled {
  color: var(--fg-3);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Reading column + grade column split */
.p7 .gpanel-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 0;
  overflow: hidden;
}

/* The submission body — reads like a manuscript, not a textarea */
.p7 .reading {
  overflow-y: auto;
  padding: 22px 32px 40px;
  background: rgba(255, 252, 248, 0.62);
  position: relative;
}
.p7 .reading-inner {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fg-1);
}
.p7 .reading-inner h1 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.p7 .reading-inner .submitted-meta {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 11px; color: var(--fg-3);
  font-feature-settings: "tnum";
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.p7 .reading-inner p {
  margin: 0 0 14px;
  text-wrap: pretty;
}
.p7 .reading-inner blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--fg-2);
  font-style: italic;
}
.p7 .reading-inner code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(29, 42, 47, 0.05);
  padding: 1px 5px; border-radius: 3px;
}

/* Floating "Read" indicator — soft nudge */
.p7 .read-nudge {
  position: sticky;
  bottom: 16px;
  margin-left: auto;
  margin-right: 0;
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  color: var(--fg-2);
  box-shadow: 0 4px 12px rgba(15, 32, 38, 0.08);
}
.read-nudge .icon { width: 11px; height: 11px; }
.p7 .read-nudge.read {
  color: var(--teal-600);
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.08);
}

/* Paper PDF mode */
.p7 .paper-frame {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}
.p7 .paper-frame .pdf-thumb {
  position: sticky; top: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 32, 38, 0.08);
}
.p7 .paper-frame .pdf-thumb .preview {
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(180deg, #fff 0%, #fdfaf3 100%);
  position: relative;
  font-family: var(--font-serif);
  padding: 14px;
  font-size: 7px;
  line-height: 1.32;
  color: var(--fg-2);
  overflow: hidden;
}
.p7 .paper-frame .pdf-thumb .preview .ink-line {
  height: 4px;
  margin: 4px 0;
  border-radius: 2px;
  background: rgba(29, 42, 47, 0.18);
  position: relative;
}
.paper-frame .pdf-thumb .preview .ink-line.short { width: 60%; }
.paper-frame .pdf-thumb .preview .ink-line.shorter { width: 35%; }
.p7 .paper-frame .pdf-thumb .preview .ink-line.head {
  height: 7px;
  background: rgba(29, 42, 47, 0.4);
}
.p7 .paper-frame .pdf-thumb .preview .handwriting {
  position: absolute;
  font-family: cursive;
  color: rgba(15, 118, 110, 0.6);
  font-size: 9px;
  transform: rotate(-3deg);
}
.p7 .paper-frame .pdf-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px; color: var(--fg-2);
}
.p7 .paper-frame .pdf-foot .pages {
  font-feature-settings: "tnum";
}
.p7 .paper-frame .pdf-foot a {
  color: var(--accent); text-decoration: none; font-weight: 600;
}
.p7 .paper-frame .ocr-text {
  padding-top: 4px;
}
.p7 .paper-frame .ocr-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.paper-frame .ocr-eyebrow .icon { width: 11px; height: 11px; }
.p7 .paper-frame .ocr-eyebrow .conf {
  background: rgba(15, 118, 110, 0.10);
  color: var(--teal-600);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* KP1 formative mode */
.p7 .kp1-card {
  max-width: 580px;
  margin: 60px auto 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.p7 .kp1-card .glyph {
  width: 72px; height: 72px;
  border-radius: 22px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
}
.kp1-card .glyph .icon { width: 36px; height: 36px; }
.p7 .kp1-card h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.p7 .kp1-card .lede {
  font-size: 14px; color: var(--fg-2);
  max-width: 460px;
  text-wrap: pretty;
  line-height: 1.55;
}
.p7 .kp1-card .signal-block {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.p7 .kp1-card .signal {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  text-align: center;
}
.p7 .kp1-card .signal .v {
  font-size: 18px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.p7 .kp1-card .signal .l {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}
.p7 .kp1-card .footnote {
  margin-top: 18px;
  font-size: 11.5px; color: var(--fg-3);
  max-width: 440px;
  font-style: italic;
  line-height: 1.55;
}

/* Grade column (right side of body) */
.p7 .gradecol {
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.42);
  overflow-y: auto;
  padding: 18px 18px 24px;
  display: flex; flex-direction: column; gap: 16px;
}

.p7 .gradecol .neo-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--violet-600);
  margin-bottom: 4px;
}
.gradecol .neo-eyebrow .icon { width: 11px; height: 11px; }
.p7 .gradecol .neo-eyebrow .when {
  color: var(--fg-3);
  letter-spacing: 0.02em;
  font-weight: 600;
  margin-left: 4px;
}

/* Big grade input */
.p7 .grade-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
}
.grade-input.neo-prefilled { border-color: rgba(109, 40, 217, 0.32); }
.p7 .grade-input .num-block {
  display: flex; flex-direction: column; gap: 2px;
}
.p7 .grade-input .num-block label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
}
.p7 .grade-input .num-block .input-flex {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-feature-settings: "tnum";
}
.p7 .grade-input .num-block input {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700;
  color: var(--fg-1);
  border: 0; outline: 0;
  background: transparent;
  width: 80px;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}
.p7 .grade-input .num-block .max {
  font-size: 16px; font-weight: 600;
  color: var(--fg-3);
}
.p7 .grade-input .pct {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-feature-settings: "tnum";
}

/* Rubric checklist (per-criterion) */
.p7 .rubric-block {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.62);
  overflow: hidden;
}
.p7 .rubric-block .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(29, 42, 47, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}
.p7 .rubric-block .head .label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.p7 .rubric-block .head .total {
  font-size: 12.5px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.rubric-block .head .total .v { font-size: 14px; }
.rubric-block .head .total .max { color: var(--fg-3); font-size: 11px; }

.p7 .criterion {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  align-items: start;
}
.criterion:last-child { border-bottom: 0; }
.criterion .body { display: flex; flex-direction: column; gap: 3px; }
.criterion .name { font-size: 12.5px; font-weight: 600; color: var(--fg-1); }
.criterion .desc { font-size: 11px; color: var(--fg-2); line-height: 1.45; }
.p7 .criterion .neo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--violet-600);
  margin-top: 3px;
}
.criterion .neo-tag .icon { width: 10px; height: 10px; }
.p7 .criterion .score {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.p7 .criterion .score .input-flex {
  display: inline-flex; align-items: baseline; gap: 3px;
}
.p7 .criterion .score input {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--fg-1);
  border: 0; outline: 0;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 5px 7px;
  width: 56px;
  text-align: right;
  font-feature-settings: "tnum";
}
.p7 .criterion .score input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}
.p7 .criterion .score .max {
  font-size: 10.5px; font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* Feedback textarea */
.p7 .feedback-block {
  display: flex; flex-direction: column; gap: 6px;
}
.p7 .feedback-block label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
  display: flex; align-items: center; justify-content: space-between;
}
.p7 .feedback-block label .neo-eyebrow-inline {
  font-size: 10px; font-weight: 700;
  color: var(--violet-600);
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.feedback-block label .neo-eyebrow-inline .icon { width: 11px; height: 11px; }
.p7 .feedback-block textarea {
  width: 100%;
  min-height: 140px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-1);
  outline: 0;
  resize: vertical;
}
.p7 .feedback-block textarea.neo-prefilled {
  border-color: rgba(109, 40, 217, 0.32);
  background: rgba(255, 252, 248, 0.92);
}
.p7 .feedback-block textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}
.p7 .feedback-block .helpers {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--fg-3);
}
.p7 .feedback-block .helpers a {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Grade panel footer (post button) */
.p7 .gpanel-foot {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
}
.p7 .gpanel-foot .nudge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--fg-2);
}
.p7 .gpanel-foot .nudge.unread {
  color: var(--amber-600);
}
.p7 .gpanel-foot .nudge.read {
  color: var(--teal-600);
}
.p7 .gpanel-foot .nudge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500);
}
.gpanel-foot .nudge.read .dot { background: var(--teal-500); }
.p7 .gpanel-foot .keys {
  font-size: 10.5px; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 4px;
}
.p7 .gpanel-foot .keys .kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-2);
}

/* Posted state — empty/done view */
.p7 .gpanel-empty {
  display: grid; place-items: center;
  height: 100%;
  padding: 60px 24px;
  background: rgba(255, 252, 248, 0.4);
}
.p7 .gpanel-empty .panel {
  text-align: center;
  max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.p7 .gpanel-empty .glyph {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  display: grid; place-items: center;
}
.p7 .gpanel-empty h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.005em;
}
.p7 .gpanel-empty p {
  font-size: 12.5px; color: var(--fg-2);
  line-height: 1.55;
}

/* ---------- Gradebook grid ---------------------------------------- */

.p7 .gbpage {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.p7 .gbpage-head {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
}
.p7 .gbpage-head .title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.p7 .gbpage-head h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.p7 .gbpage-head h1 .code {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 3px 7px; border-radius: 5px;
  background: rgba(29, 42, 47, 0.06);
  position: relative; top: -2px;
}
.p7 .gbpage-head .toggle {
  display: inline-flex; align-items: center; gap: 6px;
}

/* The grid itself — students × weeks */
.p7 .gbgrid {
  overflow: auto;
  padding: 0;
  background: var(--canvas);
}
.p7 .gbgrid table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12.5px;
  font-feature-settings: "tnum";
}
.p7 .gbgrid th,
.p7 .gbgrid td {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.62);
}
.gbgrid th:last-child, .gbgrid td:last-child { border-right: 0; }
.p7 .gbgrid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid var(--border-strong);
}

/* Student column — sticky left */
.p7 .gbgrid th.gb-student-h,
.p7 .gbgrid td.gb-student {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255, 252, 248, 0.96);
  border-right: 1px solid var(--border-strong);
  min-width: 240px;
  width: 240px;
}
.p7 .gbgrid thead th.gb-student-h {
  z-index: 4;
  background: rgba(244, 240, 232, 0.96);
}

.p7 .gbgrid th.gb-student-h .stu-head {
  padding: 10px 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
}
.p7 .gbgrid th.gb-student-h .stu-head .label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
}
.p7 .gbgrid th.gb-student-h .stu-head .ct {
  font-size: 10.5px; color: var(--fg-3);
}

.p7 .gbgrid td.gb-student .stu-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
}
/* Phase 7.5: the row is a button so the whole student cell opens the
 * detail drawer. Keep the visual identical to the static row. */
.p7 .gbgrid td.gb-student .stu-row--button {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.p7 .gbgrid td.gb-student .stu-row--button:hover {
  background: rgba(15, 118, 110, 0.04);
}
.p7 .gbgrid td.gb-student .stu-row--button:focus-visible {
  outline: 2px solid var(--color-focus-outline, var(--accent));
  outline-offset: -2px;
}
.p7 .gbgrid td.gb-student .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.gbgrid td.gb-student .av.tone-amber { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }
.gbgrid td.gb-student .av.tone-violet { background: linear-gradient(135deg, var(--violet-500), var(--violet-600)); }
.gbgrid td.gb-student .av.tone-rose { background: linear-gradient(135deg, #c2536a, #a73a52); }
.gbgrid td.gb-student .av.tone-stone { background: rgba(29, 42, 47, 0.18); color: var(--fg-2); }
.gbgrid td.gb-student .info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.p7 .gbgrid td.gb-student .name {
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p7 .gbgrid td.gb-student .id {
  font-size: 10px; color: var(--fg-3);
  font-feature-settings: "tnum";
}
.p7 .gbgrid td.gb-student .overall {
  font-size: 13px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.gbgrid td.gb-student .overall.warn { color: var(--amber-600); }
.gbgrid td.gb-student .overall.danger { color: var(--rose-600); }

/* Week column header */
.p7 .gbgrid thead th.gb-week-h {
  min-width: 92px;
  width: 92px;
  vertical-align: bottom;
  padding: 8px 10px 8px;
  font-weight: 600;
}
.p7 .gbgrid thead th.gb-week-h .num {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(29, 42, 47, 0.08);
  color: var(--fg-2);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.p7 .gbgrid thead th.gb-week-h.current .num {
  background: var(--accent);
  color: #fff;
}
.p7 .gbgrid thead th.gb-week-h .lbl {
  display: block;
  font-size: 11.5px;
  color: var(--fg-1);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 86px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.p7 .gbgrid thead th.gb-week-h .when {
  display: block;
  font-size: 9.5px;
  color: var(--fg-3);
  margin-top: 2px;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

/* Cells — the stack of items in a week, per student */
.p7 .gbgrid td.gb-cell {
  padding: 6px 8px;
  min-width: 92px;
  width: 92px;
  cursor: pointer;
  position: relative;
}
.gbgrid td.gb-cell:hover { background: rgba(15, 118, 110, 0.05); }
.p7 .gbgrid td.gb-cell.current {
  background: rgba(15, 118, 110, 0.04);
}

/* Stack of pellets, one per assignment */
.p7 .cell-stack {
  display: flex; flex-direction: column; gap: 3px;
}
.p7 .cell-pellet {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 5px;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(29, 42, 47, 0.04);
  font-size: 10.5px;
  color: var(--fg-2);
  line-height: 1;
}
.p7 .cell-pellet .ic {
  width: 11px; height: 11px;
  display: grid; place-items: center;
  color: var(--fg-3);
}
.cell-pellet .ic .icon { width: 10px; height: 10px; }
.cell-pellet .ic.text   { color: var(--teal-600); }
.cell-pellet .ic.paper  { color: var(--amber-600); }
.cell-pellet .ic.kp1    { color: var(--accent); }
.cell-pellet .ic.video  { color: var(--violet-600); }
.p7 .cell-pellet .label {
  font-size: 10px;
  color: var(--fg-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}
.p7 .cell-pellet .v {
  font-size: 11px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.cell-pellet.posted { background: rgba(15, 118, 110, 0.06); }
.cell-pellet.posted .v { color: var(--teal-600); }
.cell-pellet.draft  { background: rgba(109, 40, 217, 0.06); }
.cell-pellet.draft  .v { color: var(--violet-600); }
.p7 .cell-pellet.draft::after {
  content: "·";
  font-size: 16px;
  position: absolute;
  margin-left: -10px;
}
.cell-pellet.unread { background: var(--amber-50); }
.cell-pellet.unread .v { color: var(--amber-600); }
.p7 .cell-pellet.unread .v::before {
  content: "·";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
  margin-right: 4px;
  vertical-align: middle;
}
.cell-pellet.formative .v { color: var(--teal-600); }
.cell-pellet.late { background: var(--rose-50); }
.cell-pellet.late .v { color: var(--rose-600); }
.cell-pellet.missing { background: rgba(29, 42, 47, 0.04); }
.cell-pellet.missing .v { color: var(--fg-3); }
.p7 .cell-pellet.empty {
  background: transparent;
  color: var(--fg-3);
  height: 18px;
}

.p7 .cell-empty {
  height: 18px;
  background: transparent;
  border-radius: 4px;
  border: 1px dashed transparent;
}

/* Cell summary — when a week has 4+ items, collapse */
.p7 .cell-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(29, 42, 47, 0.03);
}
.p7 .cell-summary .agg {
  font-size: 13px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.cell-summary .agg.warn { color: var(--amber-600); }
.cell-summary .agg.posted { color: var(--teal-600); }
.p7 .cell-summary .ct {
  font-size: 9.5px;
  color: var(--fg-3);
  font-feature-settings: "tnum";
}

/* Drilldown — a week ribbon showing students × assignments for one week */
.p7 .drill-ribbon {
  border-top: 1px solid var(--border-strong);
  background: rgba(255, 252, 248, 0.92);
  padding: 14px 24px;
}
.p7 .drill-ribbon .head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.p7 .drill-ribbon .head h3 {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.p7 .drill-ribbon .head h3 .num {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
}
.p7 .drill-ribbon .head .meta {
  font-size: 11.5px; color: var(--fg-2);
}

.p7 .drill-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.p7 .drill-table th,
.p7 .drill-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.p7 .drill-table th {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(29, 42, 47, 0.04);
}
.p7 .drill-table td.cell-mini {
  text-align: right;
  font-weight: 700;
  font-feature-settings: "tnum";
}

/* ---------- Late & extension banner ------------------------------- */

.p7 .late-banner {
  margin: 8px 18px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--rose-50);
  border: 1px solid rgba(185, 28, 28, 0.16);
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  color: var(--rose-600);
}
.late-banner .icon { width: 13px; height: 13px; }
.late-banner strong { color: var(--rose-600); }
.p7 .late-banner .ext-link {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--rose-600);
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Bulk-grade toolbar (when multiple selected in queue) -- */

.p7 .bulk-toolbar {
  position: sticky;
  bottom: 12px;
  margin: 12px 14px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: var(--fg-1);
  color: #f4fbf9;
  box-shadow: 0 16px 40px rgba(15, 32, 38, 0.32);
  font-size: 11.5px;
}
.bulk-toolbar .ct { font-weight: 700; font-feature-settings: "tnum"; }
.bulk-toolbar .b-sep { width: 1px; height: 14px; background: rgba(244, 251, 249, 0.18); }
.p7 .bulk-toolbar .b-action {
  padding: 3px 9px;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 251, 249, 0.86);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.bulk-toolbar .b-action:hover { background: rgba(244, 251, 249, 0.10); color: #fff; }
.bulk-toolbar .b-action .icon { width: 12px; height: 12px; }

/* ---------- Rubric editor — full reset --------------------------- */

.p7 .rubric-editor {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  background: rgba(255, 252, 248, 0.55);
  display: flex; flex-direction: column;
  gap: 16px;
}
.p7 .rubric-editor .rubric-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.p7 .rubric-editor .rubric-head h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
}
.p7 .rubric-editor .rubric-head .when {
  font-size: 11px; color: var(--fg-3);
  font-feature-settings: "tnum";
}

.p7 .rubric-editor .title-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  padding: 16px 20px;
}
.p7 .rubric-editor .title-card label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
  display: block;
  margin-bottom: 6px;
}
.p7 .rubric-editor .title-card input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  color: var(--fg-1);
  border: 0; outline: 0;
  background: transparent;
  padding: 4px 0;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--border-subtle);
}
.p7 .rubric-editor .title-card input:focus {
  border-bottom-color: var(--accent);
}

.p7 .rubric-editor .crit-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.p7 .rubric-editor .crit-card::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--accent);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.p7 .rubric-editor .crit-head {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 12px;
  align-items: end;
}
.p7 .rubric-editor .crit-head .num {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.p7 .rubric-editor .crit-head .name-input {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600;
  color: var(--fg-1);
  border: 0; outline: 0;
  background: transparent;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}
.rubric-editor .crit-head .name-input:focus { border-bottom-color: var(--accent); }
.p7 .rubric-editor .crit-head .points-input {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--fg-1);
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  width: 80px;
  text-align: right;
  font-feature-settings: "tnum";
}
.p7 .rubric-editor .crit-head .points-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}
.p7 .rubric-editor .crit-head .reorder {
  display: inline-flex; gap: 4px;
}
.p7 .rubric-editor .crit-desc {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.6);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  outline: 0;
  resize: vertical;
  min-height: 60px;
}
.p7 .rubric-editor .crit-desc:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

.p7 .rubric-editor .add-row {
  display: flex; justify-content: flex-start;
}

.p7 .rubric-editor .footer-bar {
  position: sticky;
  bottom: 16px;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(15, 32, 38, 0.10);
  display: flex; align-items: center; justify-content: space-between;
}
.p7 .rubric-editor .footer-bar .total {
  display: flex; flex-direction: column; gap: 1px;
}
.p7 .rubric-editor .footer-bar .total label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
}
.p7 .rubric-editor .footer-bar .total .v {
  font-size: 22px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}
.p7 .rubric-editor .footer-bar .right {
  display: inline-flex; gap: 8px;
}

/* ---------- Assignments list — full reset ------------------------ */

.p7 .assignments-page {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 32px;
  background: rgba(255, 252, 248, 0.55);
}
.p7 .assignments-page .top-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.p7 .assignments-page .top-row h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
}
.p7 .assignments-page .top-row .stats {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--fg-2);
}
.p7 .assignments-page .top-row .stats .stat .v {
  font-size: 14px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}

.p7 .assignments-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.p7 .assn-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  padding: 14px 18px;
  margin-bottom: 10px;
  position: relative;
}
.p7 .assn-card.current {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.16), 0 4px 12px rgba(15, 118, 110, 0.06);
}
.p7 .assn-card.current::before {
  content: "";
  position: absolute;
  left: -1px; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.assn-card.past { opacity: 0.78; }
.p7 .assn-card .head-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.p7 .assn-card .head-row .meta {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.p7 .assn-card h2 {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
.p7 .assn-card .body {
  font-size: 12.5px; color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.p7 .assn-card .stripe {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr auto;
  gap: 18px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}
.p7 .assn-card .stripe .stat {
  display: flex; flex-direction: column; gap: 1px;
}
.p7 .assn-card .stripe .stat .l {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3);
}
.p7 .assn-card .stripe .stat .v {
  font-size: 13px; font-weight: 700;
  color: var(--fg-1);
  font-feature-settings: "tnum";
}
.assn-card .stripe .stat .v.warn { color: var(--amber-600); }
.assn-card .stripe .stat .v.posted { color: var(--teal-600); }
.p7 .assn-card .stripe .progress {
  display: flex; align-items: center; gap: 8px;
}
.p7 .assn-card .stripe .progress .bar {
  width: 80px; height: 5px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.10);
  overflow: hidden;
}
.p7 .assn-card .stripe .progress .bar .fill {
  display: block; height: 100%;
  background: var(--accent);
}
.assn-card .stripe .right { display: inline-flex; gap: 6px; }

.p7 .assn-rail {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky;
  top: 16px;
  align-self: start;
}
.p7 .assn-rail .panel {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.92);
  padding: 14px;
}
.p7 .assn-rail .panel h3 {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.assn-rail .panel .field-block { margin-bottom: 10px; }

/* ---------- Page header (reused across all surfaces) -------------- */

.p7 .gpage-head {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 252, 248, 0.55);
  display: flex; align-items: center; justify-content: space-between;
}
.p7 .gpage-head h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.p7 .gpage-head h1 .code {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 3px 7px; border-radius: 5px;
  background: rgba(29, 42, 47, 0.06);
  position: relative; top: -2px;
}
.p7 .gpage-head .right {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Phase 7.5: bulk-grade toolbar + sheet ----------------- */

/* Multi-selected qrow gets a subtle violet rail to distinguish from
   the single-selected teal rail set above. ⌘-click toggles individual
   rows; shift-click extends a range. */
.p7 .qrow.multi {
  background: rgba(109, 40, 217, 0.05);
  box-shadow: inset 3px 0 0 var(--violet-500);
}
.p7 .qrow.multi.selected {
  /* Both classes can coexist when a multi-selected row is also the
     active grade-panel target. Combine the rails as a stacked shadow. */
  box-shadow: inset 3px 0 0 var(--accent), inset 6px 0 0 var(--violet-500);
}

/* Sticky pill anchored to the grade-body bottom. Wrap is non-interactive
   so the queue + grade panel can still scroll under it; only the pill
   captures pointer events. */
.p7 .bulk-toolbar-wrap {
  position: sticky;
  bottom: 16px;
  display: flex; justify-content: center;
  pointer-events: none;
  margin-top: -56px; /* float above the grade-panel footer */
  z-index: 6;
}
.p7 .bulk-toolbar {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--fg-1);
  color: #f4fbf9;
  box-shadow: 0 16px 40px rgba(15, 32, 38, 0.32), 0 2px 6px rgba(15, 32, 38, 0.18);
  font-size: 12px;
}
.p7 .bulk-toolbar .ct {
  font-weight: 700;
  font-feature-settings: "tnum";
  background: rgba(244, 251, 249, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}
.p7 .bulk-toolbar .sep {
  width: 1px; height: 16px;
  background: rgba(244, 251, 249, 0.18);
  margin: 0 2px;
}
.p7 .bulk-toolbar .b-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 251, 249, 0.86);
  font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.p7 .bulk-toolbar .b-action:hover { background: rgba(244, 251, 249, 0.10); color: #fff; }

/* Bulk-grade sheet body (re-uses .sheet primitive). */
.p7 .bulk-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.p7 .bulk-form .row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px;
}
.p7 .bulk-form .row .lbl,
.p7 .bulk-form .field .lbl {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
}
.p7 .bulk-form .row .val { color: var(--fg-1); font-weight: 600; }
.p7 .bulk-form .field { display: flex; flex-direction: column; gap: 6px; }
.p7 .bulk-form .grade-input-flex {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  width: -moz-max-content;
  width: max-content;
}
.p7 .bulk-form .grade-input-flex:focus-within {
  background: #fff;
  border-color: var(--accent);
}
.p7 .bulk-form .grade-input-flex input {
  width: 56px;
  border: 0; background: transparent;
  font-size: 18px; font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--fg-1);
  outline: none;
}
.p7 .bulk-form .grade-input-flex .max {
  font-size: 11px; color: var(--fg-3);
  font-feature-settings: "tnum";
}
.p7 .bulk-form textarea {
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  color: var(--fg-1);
}
.p7 .bulk-form textarea:focus { background: #fff; border-color: var(--accent); outline: none; }
.p7 .bulk-form .bulk-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-3);
  margin: 0;
}
.p7 .bulk-failures {
  border: 1px solid var(--rose-200, rgba(194, 83, 106, 0.3));
  background: var(--rose-50);
  color: var(--rose-600);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
}
.p7 .bulk-failures ul { margin: 4px 0 0; padding-left: 16px; }

/* ---------- Phase 7.5: extension sheet body ---------------------- */
.p7 .ext-empty { font-size: 12px; color: var(--fg-3); }
.p7 .ext-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.p7 .ext-context {
  display: grid; grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(15, 32, 38, 0.04);
  border-radius: 8px;
}
.p7 .ext-context .row {
  display: grid; grid-template-columns: 130px 1fr;
  align-items: baseline; gap: 8px;
  font-size: 12px;
}
.p7 .ext-context .row .lbl,
.p7 .ext-form .field .lbl {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.p7 .ext-context .row .val { color: var(--fg-1); font-weight: 600; }
.p7 .ext-context .row .val.warn {
  color: var(--rose-600);
  display: inline-flex; align-items: center; gap: 4px;
}
.p7 .ext-scope {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
}
.p7 .ext-scope legend {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 0 4px;
}
.p7 .ext-scope label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--fg-1);
  cursor: pointer;
}
.p7 .ext-form .field {
  display: flex; flex-direction: column; gap: 6px;
}
.p7 .ext-form .field input[type="datetime-local"] {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  color: var(--fg-1);
  width: -moz-max-content;
  width: max-content;
}
.p7 .ext-form .field input[type="datetime-local"]:focus {
  background: #fff; border-color: var(--accent); outline: none;
}
.p7 .ext-form .field textarea {
  resize: vertical;
  min-height: 70px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  color: var(--fg-1);
}
.p7 .ext-form .field textarea:focus { background: #fff; border-color: var(--accent); outline: none; }
.p7 .ext-form .field .hint { font-size: 10.5px; color: var(--fg-3); }

/* ---------- Phase 7.5: trajectory + spreadsheet gradebook views -- */

.p7 .gb-traj { padding: 16px 24px 24px; }
.p7 .gb-traj table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: 12.5px;
}
.p7 .gb-traj th, .p7 .gb-traj td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.p7 .gb-traj th {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(29, 42, 47, 0.04);
}
.p7 .gb-traj-stu { width: 220px; }
.p7 .gb-traj-stu .stu-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  color: var(--fg-1); font: inherit;
}
.p7 .gb-traj-stu .stu-link .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
}
.p7 .gb-traj-stu .stu-link .name { font-weight: 600; }
.p7 .gb-traj-spark { width: 240px; padding-right: 18px; }
.p7 .gb-traj-empty {
  font-size: 10.5px; color: var(--fg-3); font-style: italic;
}
.p7 .gb-traj-overall {
  font-weight: 700;
  font-feature-settings: "tnum";
  text-align: right;
  color: var(--fg-1);
  width: 80px;
}
.p7 .gb-traj-overall.warn { color: var(--amber-600); }
.p7 .gb-traj-overall.danger { color: var(--rose-600); }
.p7 .gb-traj-flag { width: 110px; text-align: right; }
.p7 .gb-traj-flag .flag-pellet {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(29, 42, 47, 0.06);
  color: var(--fg-3);
}
.p7 .gb-traj-flag .flag-pellet.warn {
  background: var(--amber-50);
  color: var(--amber-600);
}

.p7 .gb-sheet { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.p7 .gb-sheet-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
}
.p7 .gb-sheet-meta { font-size: 11.5px; color: var(--fg-2); }
.p7 .gb-sheet-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.p7 .gb-sheet-table { font-size: 12px; }
.p7 .gb-sheet-table th {
  white-space: nowrap;
  position: sticky; top: 0;
  z-index: 1;
  background: rgba(244, 251, 249, 0.95);
}
.p7 .gb-sheet-table td.cell-mini { white-space: nowrap; }
.p7 .gb-sheet-table th.sticky-col,
.p7 .gb-sheet-table td.sticky-col {
  position: sticky; left: 0;
  background: rgba(244, 251, 249, 0.95);
  font-weight: 600;
  z-index: 2;
  text-align: left;
  white-space: nowrap;
  min-width: 160px;
}
.p7 .gb-sheet-table thead th.sticky-col { z-index: 3; }

