/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].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.17 | 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;
}
.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;
}
.visible {
  visibility: visible;
}
.relative {
  position: relative;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-auto {
  margin-top: auto;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-9 {
  height: 2.25rem;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.min-h-10 {
  min-height: 2.5rem;
}
.min-h-11 {
  min-height: 2.75rem;
}
.min-h-24 {
  min-height: 6rem;
}
.min-h-6 {
  min-height: 1.5rem;
}
.min-h-9 {
  min-height: 2.25rem;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-5 {
  width: 1.25rem;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.shrink-0 {
  flex-shrink: 0;
}
.caption-bottom {
  caption-side: bottom;
}
.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-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));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.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-slate-800 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(30 41 59 / var(--tw-divide-opacity, 1));
}
.overflow-auto {
  overflow: auto;
}
.break-words {
  overflow-wrap: break-word;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-amber-400\/25 {
  border-color: rgb(251 191 36 / 0.25);
}
.border-amber-400\/40 {
  border-color: rgb(251 191 36 / 0.4);
}
.border-blue-400\/40 {
  border-color: rgb(96 165 250 / 0.4);
}
.border-cyan-400\/40 {
  border-color: rgb(34 211 238 / 0.4);
}
.border-cyan-400\/50 {
  border-color: rgb(34 211 238 / 0.5);
}
.border-emerald-400\/35 {
  border-color: rgb(52 211 153 / 0.35);
}
.border-red-400\/40 {
  border-color: rgb(248 113 113 / 0.4);
}
.border-slate-700 {
  --tw-border-opacity: 1;
  border-color: rgb(51 65 85 / var(--tw-border-opacity, 1));
}
.border-slate-800 {
  --tw-border-opacity: 1;
  border-color: rgb(30 41 59 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.bg-amber-950\/15 {
  background-color: rgb(69 26 3 / 0.15);
}
.bg-amber-950\/35 {
  background-color: rgb(69 26 3 / 0.35);
}
.bg-blue-950\/35 {
  background-color: rgb(23 37 84 / 0.35);
}
.bg-cyan-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(14 116 144 / var(--tw-bg-opacity, 1));
}
.bg-cyan-950\/30 {
  background-color: rgb(8 51 68 / 0.3);
}
.bg-cyan-950\/35 {
  background-color: rgb(8 51 68 / 0.35);
}
.bg-emerald-950\/35 {
  background-color: rgb(2 44 34 / 0.35);
}
.bg-red-950\/30 {
  background-color: rgb(69 10 10 / 0.3);
}
.bg-red-950\/35 {
  background-color: rgb(69 10 10 / 0.35);
}
.bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}
.bg-slate-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
}
.bg-slate-800\/80 {
  background-color: rgb(30 41 59 / 0.8);
}
.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-900\/80 {
  background-color: rgb(15 23 42 / 0.8);
}
.bg-slate-950\/40 {
  background-color: rgb(2 6 23 / 0.4);
}
.bg-slate-950\/45 {
  background-color: rgb(2 6 23 / 0.45);
}
.bg-slate-950\/50 {
  background-color: rgb(2 6 23 / 0.5);
}
.bg-slate-950\/55 {
  background-color: rgb(2 6 23 / 0.55);
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-cyan-600 {
  --tw-gradient-from: #0891b2 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-indigo-600 {
  --tw-gradient-to: #4f46e5 var(--tw-gradient-to-position);
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.text-left {
  text-align: left;
}
.align-top {
  vertical-align: top;
}
.align-middle {
  vertical-align: middle;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.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-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.leading-5 {
  line-height: 1.25rem;
}
.leading-6 {
  line-height: 1.5rem;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.text-amber-200 {
  --tw-text-opacity: 1;
  color: rgb(253 230 138 / var(--tw-text-opacity, 1));
}
.text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity, 1));
}
.text-cyan-100 {
  --tw-text-opacity: 1;
  color: rgb(207 250 254 / var(--tw-text-opacity, 1));
}
.text-cyan-200 {
  --tw-text-opacity: 1;
  color: rgb(165 243 252 / var(--tw-text-opacity, 1));
}
.text-emerald-200 {
  --tw-text-opacity: 1;
  color: rgb(167 243 208 / var(--tw-text-opacity, 1));
}
.text-red-100 {
  --tw-text-opacity: 1;
  color: rgb(254 226 226 / var(--tw-text-opacity, 1));
}
.text-red-200 {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.text-slate-100 {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity, 1));
}
.text-slate-200 {
  --tw-text-opacity: 1;
  color: rgb(226 232 240 / var(--tw-text-opacity, 1));
}
.text-slate-300 {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}
.text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
.text-slate-50 {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity, 1));
}
.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.text-slate-950 {
  --tw-text-opacity: 1;
  color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.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-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);
}
.shadow-black\/10 {
  --tw-shadow-color: rgb(0 0 0 / 0.1);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-black\/20 {
  --tw-shadow-color: rgb(0 0 0 / 0.2);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-indigo-950\/20 {
  --tw-shadow-color: rgb(30 27 75 / 0.2);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline {
  outline-style: solid;
}
.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);
}
.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-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

:root {
  color-scheme: light;
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222 47% 10%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 10%;
  --popover-foreground: 210 40% 98%;
  --primary: 238 78% 70%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217 32% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted-ui: 217 32% 17%;
  --muted-foreground: 215 20% 65%;
  --accent-ui: 190 95% 42%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 22%;
  --input: 217 33% 22%;
  --ring: 238 78% 70%;
  --radius: 0.6rem;
  --ink: #17201d;
  --muted: #66716d;
  --line: #d9e0dc;
  --surface: #f4f7f5;
  --panel: #ffffff;
  --panel-strong: #edf5f1;
  --accent: #2563eb;
  --accent-2: #dc2626;
  --accent-3: #059669;
  --warning: #b7791f;
  --danger: #c2410c;
  --focus: #0f766e;
  --shadow: 0 22px 60px rgb(20 34 30 / 12%);
  --soft-shadow: 0 10px 30px rgb(20 34 30 / 8%);
  --font-sans:
    "Geist", "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display:
    "Geist", "Inter Display", "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgb(15 118 110 / 10%), transparent 28rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--surface) 44rem),
    var(--surface);
  font-family: var(--font-sans);
  font-feature-settings:
    "ss01" 1,
    "cv01" 1,
    "tnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0;
}

.app-header nav {
  display: flex;
  gap: 8px;
}

.app-header nav a,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: var(--ink);
  font-weight: 650;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  min-height: calc(100vh - 64px);
}

.tree-workspace {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.workspace-toolbar,
.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.metric-card strong,
.status-card strong,
.donut strong,
.chart-summary strong {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

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

button,
.primary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

button:hover,
.ghost-link:hover {
  border-color: var(--focus);
  box-shadow: 0 8px 22px rgb(15 118 110 / 12%);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-color: var(--focus);
  background: var(--focus);
  color: #fff;
  text-align: center;
}

.ghost-button {
  padding: 0 15px;
  background: rgb(255 255 255 / 74%);
}

.danger-button {
  padding: 0 15px;
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
  background: #fff8f7;
  color: var(--danger);
}

.system-warning,
.system-note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
  border-radius: 7px;
  background: #fff8f7;
  color: var(--danger);
  font-weight: 650;
}

.system-note {
  border-color: color-mix(in srgb, var(--accent-3) 45%, var(--line));
  background: #f4fbf4;
  color: #315f2e;
}

.tree-stage {
  position: relative;
  overflow: auto;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(239 244 240 / 92%)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.trunk {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 4px;
  height: calc(100% - 48px);
  border-radius: 999px;
  background: linear-gradient(180deg, #6f7c54, #5a513b);
  transform: translateX(-50%);
}

.tree-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  width: min(260px, 34vw);
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgb(34 45 40 / 12%);
  transform: translateX(-50%);
}

.tree-node strong {
  font-size: 0.86rem;
  line-height: 1.18;
}

.tree-node span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.tree-node.active-node {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(27 95 119 / 16%), 0 12px 30px rgb(34 45 40 / 18%);
}

.tree-node.affected-node {
  border-color: var(--warning);
  background: #fff9ec;
}

.tree-node.omni-node {
  border-color: #b5c4b8;
}

.branch-line {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: #8a936f;
  transform: translateX(-50%);
}

.decision-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  background: rgb(255 255 255 / 78%);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metrics-row div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metrics-row span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metrics-row strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
  line-height: 1;
}

.flow-section,
.summary-section,
.rewind-box,
.editor-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.context-text {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.answer-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.answer-list button,
.topic-button {
  display: grid;
  gap: 6px;
  justify-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 12px 13px;
  text-align: left;
  white-space: normal;
}

.answer-list button span,
.topic-button span {
  font-weight: 720;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.answer-list button small,
.topic-button small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.answer-list .blocked-answer {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: #fff8f7;
  color: #7a2b2b;
}

.topic-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.rewind-box {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  background: #fff9ec;
}

.summary-section ul,
.validation-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.summary-section li,
.validation-box li {
  margin: 6px 0;
  line-height: 1.35;
}

.summary-section p,
.rewind-box p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.admin-dashboard-shell .admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 56px;
}

.admin-hero {
  align-items: center;
  padding: 28px;
  border: 1px solid rgb(217 224 220 / 88%);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 96%), rgb(246 250 248 / 94%)),
    var(--panel);
  box-shadow: var(--shadow);
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.status-list div {
  padding: 14px;
  border: 1px solid rgb(217 224 220 / 88%);
  border-radius: 13px;
  background: rgb(248 250 249 / 90%);
}

.status-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-list dd {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 720;
}

.editor-panel h2 {
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 90%);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.answer-editor {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 160px 1.3fr;
  gap: 10px;
}

.validation-box {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.validation-box.valid {
  border-color: color-mix(in srgb, var(--accent-3) 50%, var(--line));
  background: #f5fbf4;
}

.validation-box.invalid {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  background: #fff8f7;
}

.check-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  min-height: calc(100vh - 68px);
}

.check-main {
  min-width: 0;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.hero-copy {
  max-width: 780px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.progress-pill {
  display: grid;
  gap: 1px;
  min-width: 104px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--focus) 24%, var(--line));
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--soft-shadow);
}

.progress-pill span {
  color: var(--focus);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.progress-pill small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  text-transform: uppercase;
}

.profile-panel,
.question-panel,
.result-panel .summary-section {
  border: 1px solid rgb(217 224 220 / 84%);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.profile-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 26px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(250 252 251 / 94%)),
    var(--panel);
}

.section-heading h2,
.question-panel h3 {
  margin-bottom: 0;
}

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  text-align: center;
}

.segmented-grid,
.preset-grid,
.checkbox-grid,
.profile-grid {
  display: grid;
  gap: 12px;
}

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

.preset-grid,
.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-card,
.answer-option {
  position: relative;
  display: grid;
  align-items: start;
  gap: 7px;
  height: auto;
  min-height: 78px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px;
  border-color: rgb(217 224 220 / 90%);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(248 250 249 / 96%)),
    var(--panel);
  text-align: left;
  white-space: normal;
}

.choice-card span,
.answer-option span {
  display: block;
  max-width: 100%;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.22;
  overflow-wrap: anywhere;
  white-space: normal;
}

.choice-card small,
.answer-option small,
.issue-card small,
.claim-list small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.choice-card.selected,
.answer-option.selected {
  border-color: var(--focus);
  background:
    linear-gradient(180deg, rgb(236 253 245 / 92%), rgb(240 253 250 / 88%)),
    #eef8fb;
  box-shadow:
    inset 5px 0 0 var(--focus),
    inset 0 0 0 1px var(--focus),
    0 14px 30px rgb(15 118 110 / 12%);
}

.choice-card.selected::after,
.answer-option.selected::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--focus);
  box-shadow: 0 0 0 4px rgb(15 118 110 / 12%);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgb(217 224 220 / 90%);
  border-radius: 12px;
  background: rgb(255 255 255 / 74%);
  font-size: 1.02rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.check-row:has(input:checked) {
  border-color: color-mix(in srgb, var(--focus) 48%, var(--line));
  background: rgb(236 253 245 / 72%);
  box-shadow: inset 0 0 0 1px rgb(15 118 110 / 22%);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--focus);
}

.profile-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.profile-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 90%);
  color: var(--ink);
  font-size: 1rem;
  padding: 0 14px;
}

.claim-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 4px;
}

.claim-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgb(217 224 220 / 90%);
  border-radius: 999px;
  background: rgb(244 247 245 / 86%);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.question-stack {
  display: grid;
  gap: 16px;
}

.question-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 22px;
}

.question-panel > div {
  min-width: 0;
  max-width: 100%;
}

.question-panel h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.selected-answer-note {
  margin: 10px 0 0;
  color: #1677ff;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.topic-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.result-panel {
  position: sticky;
  top: 68px;
  align-self: start;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 24px;
  background: rgb(255 255 255 / 45%);
}

.status-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgb(217 224 220 / 88%);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 96%), rgb(246 250 248 / 94%)),
    var(--panel);
  box-shadow: var(--shadow);
}

.status-card span {
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

.status-meter {
  overflow: hidden;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgb(23 32 29 / 8%);
}

.status-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--focus);
}

.status-consistent {
  border-color: color-mix(in srgb, var(--accent-3) 45%, var(--line));
}

.status-tension,
.status-meta-exception {
  border-color: color-mix(in srgb, var(--warning) 55%, var(--line));
}

.status-conflict {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
}

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

.issue-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(248 250 249 / 90%);
}

.issue-card span {
  color: var(--focus);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.issue-card h3,
.issue-card p {
  margin: 0;
}

.issue-conflict {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: #fff8f7;
}

.issue-tension,
.issue-meta-exception {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  background: #fffaf0;
}

.claim-list,
.admin-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.claim-list li {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.claim-list li:last-child {
  border-bottom: 0;
}

.admin-question-list {
  display: grid;
  gap: 12px;
}

.admin-question-list article {
  padding: 16px;
  border: 1px solid rgb(217 224 220 / 88%);
  border-radius: 13px;
  background: rgb(248 250 249 / 90%);
}

.admin-question-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

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

.statement-filters {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr);
  gap: 12px;
  min-width: min(460px, 100%);
}

.statement-crud-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.statement-form,
.condition-editor,
.statement-list {
  display: grid;
  gap: 12px;
}

.statement-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(248 250 249 / 88%);
}

.wide-field {
  grid-column: span 2;
}

.compact-heading {
  align-items: center;
  margin-top: 4px;
}

.condition-row {
  display: grid;
  grid-template-columns: 1fr 150px 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.condition-value-placeholder {
  min-height: 46px;
  display: grid;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.statement-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.statement-low {
  border-left: 5px solid #2563eb;
}

.statement-medium {
  border-left: 5px solid #f59e0b;
}

.statement-high {
  border-left: 5px solid var(--danger);
}

.statement-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.statement-card-top span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.statement-card-top strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgb(238 242 246 / 88%);
  font-size: 0.76rem;
}

.statement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.statement-actions {
  justify-content: flex-start;
}

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

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

  .tree-workspace {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .check-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-panel {
    padding-top: 0;
  }

  .result-panel {
    position: static;
    max-height: none;
  }

  .tree-node {
    width: min(230px, 62vw);
  }

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

  .statement-crud-layout,
  .statement-filters,
  .condition-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-header,
  .workspace-toolbar,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header {
    padding: 12px 16px;
  }

  .workspace-shell {
    min-height: auto;
  }

  .tree-workspace,
  .decision-panel,
  .check-main,
  .result-panel {
    padding: 16px;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .toolbar-actions > * {
    flex: 1;
  }

  .metrics-row,
  .form-grid,
  .status-list,
  .answer-row,
  .statement-crud-layout,
  .statement-filters,
  .condition-row,
  .segmented-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .admin-shell {
    width: min(100% - 24px, 1180px);
  }
}

body:has(.dashboard-shell) .app-header {
  display: none;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%),
    var(--surface);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  padding: 26px 20px;
  border-right: 1px solid #e5eaf0;
  background: #ffffff;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.dashboard-logo span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-logo strong {
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 6px;
}

.dashboard-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active {
  background: #eef6ff;
  color: #1677ff;
}

.sidebar-subnav {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding-left: 16px;
}

.sidebar-subnav button {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

.sidebar-subnav button:hover,
.sidebar-subnav button.active {
  background: #eef6ff;
  color: #1677ff;
  box-shadow: none;
  transform: none;
}

.sidebar-note {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #f8fafc;
}

.sidebar-note span {
  color: #1f2937;
  font-weight: 760;
}

.sidebar-note small {
  color: #667085;
  font-weight: 650;
}

.dashboard-workspace {
  min-width: 0;
  padding: 28px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-topbar h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.04;
}

.dashboard-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mode-card h2 {
  margin-bottom: 0;
}

.mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #f8fafc;
}

.mode-toggle button {
  min-height: 38px;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}

.mode-toggle button.selected {
  border-color: #1677ff;
  background: #ffffff;
  color: #1677ff;
  box-shadow: 0 8px 20px rgb(22 119 255 / 10%);
}

.metric-card,
.dashboard-card {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgb(15 23 42 / 6%);
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 18px;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--metric-bg);
}

.metric-card span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.metric-card strong {
  color: #111827;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  color: #667085;
  font-weight: 650;
}

.metric-blue {
  --metric-bg: #e8f2ff;
}

.metric-red {
  --metric-bg: #fff1f0;
}

.metric-amber {
  --metric-bg: #fff7e6;
}

.metric-green {
  --metric-bg: #ecfdf3;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.dashboard-grid-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-question-grid {
  grid-template-columns: minmax(0, 1fr);
}

.quiz-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-answer-grid .choice-card {
  min-height: 64px;
  align-items: center;
}

.quiz-question-card .section-heading {
  text-align: center;
}

.quiz-question-card .form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.readonly-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
}

.dashboard-card {
  padding: 18px;
}

.dashboard-card.profile-panel {
  grid-row: span 3;
  gap: 18px;
  margin: 0;
  background: #fff;
}

.dashboard-card.profile-editor-panel {
  grid-column: 1 / -1;
}

.card-heading-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eef6ff;
  color: #1677ff;
  font-size: 0.78rem;
  font-weight: 760;
}

.edit-link:hover {
  border-color: #1677ff;
  box-shadow: 0 8px 20px rgb(22 119 255 / 10%);
}

.position-summary {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.position-summary strong {
  color: #111827;
}

.chart-card,
.analysis-card,
.assumptions-card,
.doctrine-card {
  display: grid;
  gap: 16px;
}

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

.claim-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.doctrine-row {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfd;
}

.doctrine-row-header {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.doctrine-row-header > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.doctrine-row-header strong {
  display: block;
  color: #111827;
  line-height: 1.2;
}

.doctrine-row-header small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 700;
}

.doctrine-row-header b {
  color: #111827;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.doctrine-meter {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e8edf3;
}

.doctrine-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.doctrine-row p,
.empty-note {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mini-trend {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background:
    linear-gradient(#f1f5f9 1px, transparent 1px),
    linear-gradient(90deg, #f1f5f9 1px, transparent 1px),
    #ffffff;
  background-size: 100% 38px, 56px 100%;
}

.trend-line {
  position: absolute;
  left: 8%;
  right: 7%;
  bottom: 28%;
  height: 70px;
  border-top: 5px solid #1677ff;
  border-radius: 48% 56% 0 0;
  filter: drop-shadow(0 12px 12px rgb(22 119 255 / 22%));
  transform: skewY(-8deg);
}

.mini-trend i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #1677ff;
  border-radius: 999px;
  background: #fff;
}

.chart-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.chart-summary span {
  color: #667085;
  font-weight: 720;
}

.chart-summary strong {
  color: #1677ff;
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.donut {
  --ring: #1677ff;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 54%, transparent 55%),
    conic-gradient(var(--ring) var(--progress), #e8edf3 0);
}

.donut strong {
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.donut span {
  margin-top: 4px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.donut-conflict {
  --ring: #ef4444;
}

.donut-tension,
.donut-meta-exception {
  --ring: #f59e0b;
}

.donut-consistent {
  --ring: #22c55e;
}

.dashboard-shell .profile-grid,
.dashboard-shell .segmented-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-shell .checkbox-grid,
.dashboard-shell .preset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-shell .choice-card,
.dashboard-shell .answer-option,
.dashboard-shell .check-row {
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-shell .choice-card.selected,
.dashboard-shell .answer-option.selected,
.dashboard-shell .check-row:has(input:checked) {
  background: #eef6ff;
  border-color: #1677ff;
  box-shadow:
    inset 5px 0 0 #1677ff,
    inset 0 0 0 1px #1677ff;
}

.dashboard-shell .choice-card.selected::after,
.dashboard-shell .answer-option.selected::after {
  background: #1677ff;
  box-shadow: 0 0 0 4px rgb(22 119 255 / 12%);
}

.dashboard-shell .claim-strip {
  align-content: start;
  max-height: 176px;
  overflow: auto;
}

.dashboard-shell .claim-strip span {
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-shell .question-stack {
  gap: 14px;
}

.dashboard-shell .question-panel {
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-shell .summary-section.compact {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.dashboard-shell .issue-card {
  border-radius: 8px;
}

.debate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.topic-card > span {
  color: #1677ff;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.topic-card p,
.topic-card small,
.debate-question-text {
  color: #667085;
  line-height: 1.5;
}

.topic-card .primary-button {
  justify-self: start;
  margin-top: 4px;
}

.debate-question-card {
  display: grid;
  gap: 16px;
}

.debate-question-card,
.debate-result-card {
  min-height: 630px;
}

.question-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.question-card-topline h2 {
  margin-bottom: 0;
}

.debate-question-text {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 720;
}

.debate-textarea-label {
  display: grid;
  gap: 8px;
}

.debate-textarea-label span,
.free-text-controls h3 {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 760;
}

.debate-textarea-label textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 12px;
  color: #111827;
  background: #fff;
}

.position-panel {
  position: sticky;
  top: 28px;
}

.position-list,
.manual-variable-list,
.summary-grid {
  display: grid;
  gap: 10px;
}

.position-list > div,
.manual-variable-list > div,
.summary-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfd;
}

.position-list > div {
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.position-list > div.position-high {
  border-color: #fca5a5;
  background: #fff7f7;
  box-shadow: inset 5px 0 0 #ef4444;
}

.position-list > div.position-medium {
  border-color: #fcd34d;
  background: #fffbeb;
  box-shadow: inset 5px 0 0 #f59e0b;
}

.position-list > div.position-low {
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: inset 5px 0 0 #2563eb;
}

.position-value-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.position-value-row small {
  padding: 3px 7px;
  border-radius: 999px;
  color: #475467;
  background: #eef2f6;
  font-size: 0.72rem;
  font-weight: 800;
}

.position-high .position-value-row small {
  color: #991b1b;
  background: #fee2e2;
}

.position-medium .position-value-row small {
  color: #92400e;
  background: #fef3c7;
}

.position-low .position-value-row small {
  color: #1d4ed8;
  background: #dbeafe;
}

.position-list span,
.manual-variable-list span,
.summary-grid span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.position-list strong,
.summary-grid strong {
  color: #111827;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.free-text-controls {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfd;
}

.resolution-toggle {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.resolution-toggle button {
  min-width: 0;
  padding: 0 8px;
  font-size: 0.82rem;
}

.mini-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mini-toggle button {
  min-height: 34px;
  border-radius: 7px;
  background: #fff;
  font-size: 0.82rem;
}

.mini-toggle button.selected {
  border-color: #1677ff;
  background: #eef6ff;
  color: #1677ff;
}

.definition-notice {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}

.definition-notice p {
  margin: 0;
  line-height: 1.45;
}

.result-actions {
  margin-top: 16px;
}

.syllogism-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding-left: 22px;
  color: #374151;
  line-height: 1.45;
}

.issue-high {
  border-color: #fecaca;
  background: #fff7f7;
}

.issue-medium {
  border-color: #fde68a;
  background: #fffaf0;
}

.issue-low {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.summary-card {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-recommendations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: auto;
    max-height: 100vh;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid #e5eaf0;
  }

  .dashboard-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-subnav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .sidebar-note {
    margin-left: auto;
    margin-top: 0;
  }

  .dashboard-grid,
  .dashboard-metrics,
  .debate-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .position-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .dashboard-workspace {
    padding: 16px;
  }

  .dashboard-topbar,
  .dashboard-sidebar,
  .mode-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-sidebar {
    max-height: 100vh;
    overflow-y: auto;
  }

  .sidebar-note {
    margin-left: 0;
  }

  .sidebar-subnav {
    display: grid;
  }

  .dashboard-grid,
  .dashboard-metrics,
  .dashboard-shell .profile-grid,
    .dashboard-shell .segmented-grid,
    .dashboard-shell .checkbox-grid,
    .dashboard-shell .preset-grid,
    .claim-check-grid,
    .mode-toggle,
    .debate-grid,
    .topic-grid,
    .summary-grid,
    .resolution-toggle {
    grid-template-columns: 1fr;
  }
}

/* Tailwind/shadcn-inspired dark admin and analysis theme */
body:has(.dashboard-shell) {
  color-scheme: dark;
  --ink: #e5edf8;
  --muted: #94a3b8;
  --line: #203044;
  --surface: #020617;
  --panel: #0f172a;
  --panel-strong: #111c30;
  --accent: #38bdf8;
  --accent-2: #ef4444;
  --accent-3: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --focus: #818cf8;
  --shadow: 0 24px 70px rgb(0 0 0 / 34%);
  --soft-shadow: 0 18px 42px rgb(0 0 0 / 22%);
  background:
    radial-gradient(circle at 18% -10%, rgb(56 189 248 / 16%), transparent 32rem),
    radial-gradient(circle at 82% 4%, rgb(129 140 248 / 15%), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #07111f 54%, #020617 100%);
}

.dashboard-shell {
  color: #e5edf8;
  background:
    radial-gradient(circle at 12% -8%, rgb(34 211 238 / 12%), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #07111f 58%, #020617 100%);
}

.dashboard-sidebar {
  border-right-color: rgb(148 163 184 / 18%);
  background:
    linear-gradient(180deg, rgb(15 23 42 / 98%), rgb(2 6 23 / 98%)),
    #020617;
  box-shadow: 16px 0 42px rgb(0 0 0 / 22%);
}

.dashboard-logo span {
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #020617;
  box-shadow: 0 12px 28px rgb(34 211 238 / 20%);
}

.dashboard-logo strong,
.dashboard-topbar h1,
.admin-hero h1,
.dashboard-card h2,
.editor-panel h2,
.statement-form h3,
.statement-card h3,
.topic-card h2,
.debate-question-card h2,
.debate-result-card h2 {
  color: #f8fafc;
}

.dashboard-sidebar nav a,
.sidebar-subnav button {
  color: #94a3b8;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active,
.sidebar-subnav button:hover,
.sidebar-subnav button.active {
  background: rgb(34 211 238 / 18%);
  color: #ecfeff;
}

.sidebar-subnav {
  border-left: 1px solid rgb(148 163 184 / 18%);
}

.sidebar-note {
  border-color: rgb(148 163 184 / 18%);
  background: rgb(15 23 42 / 72%);
}

.sidebar-note span {
  color: #e2e8f0;
}

.sidebar-note small,
.dashboard-topbar .eyebrow,
.step-label,
.metric-card span,
.statement-card-top span,
.admin-question-list span,
.topic-card > span {
  color: #67e8f9;
}

.dashboard-workspace {
  background: transparent;
}

.metric-card,
.dashboard-card,
.editor-panel,
.admin-hero,
.summary-section,
.flow-section,
.rewind-box,
.statement-form,
.condition-editor,
.condition-row,
.statement-card,
.admin-question-list article,
.status-list div,
.topic-card,
.debate-question-card,
.debate-result-card,
.free-text-controls,
.position-list > div,
.manual-variable-list > div,
.summary-grid div,
.question-panel {
  border-color: rgb(148 163 184 / 18%);
  background: rgb(15 23 42 / 82%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
}

.admin-hero,
.metric-card,
.dashboard-card,
.editor-panel {
  backdrop-filter: blur(18px);
}

.metric-card::after {
  opacity: 0.9;
}

.metric-blue {
  --metric-bg: rgb(59 130 246 / 18%);
}

.metric-green {
  --metric-bg: rgb(34 197 94 / 16%);
}

.metric-amber {
  --metric-bg: rgb(245 158 11 / 17%);
}

.metric-red {
  --metric-bg: rgb(239 68 68 / 16%);
}

.metric-card strong,
.status-list dd,
.chart-summary strong,
.donut strong,
.position-list strong,
.summary-grid strong,
.question-panel h3,
.debate-question-text,
.free-text-controls h3,
.debate-textarea-label span,
.choice-card span,
.answer-option span,
.check-row,
.profile-grid select,
.claim-list strong {
  color: #f8fafc;
}

.metric-card small,
.admin-hero p:not(.eyebrow),
.context-text,
.position-summary,
.topic-card p,
.topic-card small,
.debate-question-text + p,
.choice-card small,
.answer-option small,
.issue-card small,
.claim-list small,
.statement-card p,
.position-list span,
.manual-variable-list span,
.summary-grid span,
label,
.profile-grid label {
  color: #94a3b8;
}

input,
select,
textarea,
.debate-textarea-label textarea,
.profile-grid select {
  border-color: rgb(148 163 184 / 22%);
  background: rgb(2 6 23 / 58%);
  color: #e5edf8;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #64748b;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus,
.debate-textarea-label textarea:focus {
  border-color: #818cf8;
  outline: 2px solid rgb(129 140 248 / 22%);
  outline-offset: 2px;
}

button,
.primary-button,
.ghost-button,
.danger-button {
  border-color: rgb(148 163 184 / 22%);
  background: rgb(15 23 42 / 78%);
  color: #e2e8f0;
}

button:hover,
.ghost-link:hover {
  border-color: rgb(34 211 238 / 55%);
  box-shadow: 0 12px 28px rgb(34 211 238 / 12%);
}

.primary-button {
  border-color: rgb(34 211 238 / 60%);
  background: linear-gradient(135deg, #0891b2, #4f46e5);
  color: #f8fafc;
  box-shadow: 0 14px 36px rgb(79 70 229 / 22%);
}

.ghost-button {
  background: rgb(15 23 42 / 62%);
}

.danger-button {
  border-color: rgb(248 113 113 / 46%);
  background: rgb(127 29 29 / 22%);
  color: #fecaca;
}

.choice-card,
.answer-option,
.check-row,
.answer-list button,
.topic-button {
  border-color: rgb(148 163 184 / 18%);
  background: rgb(15 23 42 / 72%);
}

.choice-card.selected,
.answer-option.selected,
.dashboard-shell .choice-card.selected,
.dashboard-shell .answer-option.selected,
.dashboard-shell .check-row:has(input:checked),
.check-row:has(input:checked) {
  border-color: rgb(34 211 238 / 88%);
  background: linear-gradient(180deg, rgb(14 165 233 / 34%), rgb(79 70 229 / 26%));
  box-shadow:
    inset 5px 0 0 #22d3ee,
    inset 0 0 0 1px rgb(34 211 238 / 58%),
    0 18px 38px rgb(14 165 233 / 18%);
}

.choice-card.selected span,
.answer-option.selected span,
.dashboard-shell .choice-card.selected span,
.dashboard-shell .answer-option.selected span,
.dashboard-shell .check-row:has(input:checked),
.check-row:has(input:checked) {
  color: #ffffff;
}

.choice-card.selected small,
.answer-option.selected small,
.dashboard-shell .choice-card.selected small,
.dashboard-shell .answer-option.selected small {
  color: #dbeafe;
}

.dashboard-shell .choice-card.selected::after,
.dashboard-shell .answer-option.selected::after,
.choice-card.selected::after,
.answer-option.selected::after {
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgb(34 211 238 / 14%);
}

.claim-strip span,
.dashboard-shell .claim-strip span,
.position-value-row small,
.statement-card-top strong,
.condition-value-placeholder {
  border: 1px solid rgb(148 163 184 / 16%);
  background: rgb(30 41 59 / 78%);
  color: #cbd5e1;
}

.validation-box.valid,
.system-note,
.donut-consistent {
  border-color: rgb(34 197 94 / 35%);
}

.validation-box.valid,
.system-note {
  background: rgb(20 83 45 / 20%);
  color: #bbf7d0;
}

.validation-box.invalid,
.system-warning {
  border-color: rgb(248 113 113 / 38%);
  background: rgb(127 29 29 / 24%);
  color: #fecaca;
}

.statement-low,
.issue-low,
.position-list > div.position-low {
  border-color: rgb(59 130 246 / 45%);
  background: rgb(30 64 175 / 14%);
  box-shadow: inset 5px 0 0 #3b82f6;
}

.statement-medium,
.issue-medium,
.position-list > div.position-medium,
.definition-notice {
  border-color: rgb(245 158 11 / 46%);
  background: rgb(120 53 15 / 18%);
  color: #fde68a;
  box-shadow: inset 5px 0 0 #f59e0b;
}

.statement-high,
.issue-high,
.issue-conflict,
.position-list > div.position-high {
  border-color: rgb(248 113 113 / 48%);
  background: rgb(127 29 29 / 18%);
  box-shadow: inset 5px 0 0 #ef4444;
}

.issue-tension {
  border-color: rgb(245 158 11 / 46%);
  background: rgb(120 53 15 / 18%);
}

.issue-meta-exception {
  border-color: rgb(59 130 246 / 44%);
  background: rgb(30 64 175 / 14%);
}

.position-high .position-value-row small {
  color: #fecaca;
  background: rgb(127 29 29 / 54%);
}

.position-medium .position-value-row small {
  color: #fde68a;
  background: rgb(120 53 15 / 54%);
}

.position-low .position-value-row small {
  color: #bfdbfe;
  background: rgb(30 64 175 / 46%);
}

.donut {
  background:
    radial-gradient(circle at center, rgb(15 23 42 / 96%) 0 58%, transparent 59%),
    conic-gradient(var(--ring) var(--progress), rgb(30 41 59) 0);
}

.donut span,
.chart-summary span {
  color: #94a3b8;
}

.donut-conflict {
  --ring: #ef4444;
}

.donut-tension,
.donut-meta-exception {
  --ring: #f59e0b;
}

.donut-consistent {
  --ring: #22c55e;
}

.mini-toggle button,
.resolution-toggle button,
.mode-toggle button {
  border-color: rgb(148 163 184 / 18%);
  background: rgb(2 6 23 / 44%);
}

.mini-toggle button.selected,
.mode-toggle button.selected {
  border-color: rgb(34 211 238 / 62%);
  background: rgb(14 165 233 / 14%);
  color: #67e8f9;
}

.admin-list li,
.claim-list li {
  border-color: rgb(148 163 184 / 14%);
}

@media (max-width: 1180px) {
  .dashboard-sidebar {
    border-bottom-color: rgb(148 163 184 / 18%);
    box-shadow: 0 16px 38px rgb(0 0 0 / 22%);
  }
}

/* Shared AppShell and local shadcn-style surfaces */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.app-shell > .app-shell-sidebar {
  position: sticky;
  top: 0;
}

.app-shell-drawer,
.app-shell-close,
.app-shell-menu-button {
  display: none;
}

.app-shell-topbar {
  align-items: center;
  min-height: 58px;
  margin-bottom: 24px;
}

.app-shell-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-shell-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(620px, 48vw);
}

.app-shell-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.app-shell-search svg {
  position: absolute;
  left: 12px;
  z-index: 1;
  color: #64748b;
}

.app-shell-search input {
  min-height: 40px;
  padding-left: 38px;
}

.app-shell-primary-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.statement-table-panel {
  min-width: 0;
}

.statement-title-link {
  display: inline-flex;
  margin-bottom: 6px;
  color: #e0f2fe;
  font-weight: 800;
}

.statement-title-link:hover {
  color: #67e8f9;
}

.statement-row p {
  max-width: 44rem;
  margin: 0;
  color: #94a3b8;
  line-height: 1.45;
}

.compact-tags {
  max-height: none;
  padding: 0;
}

.attribute-matrix {
  display: grid;
  gap: 10px;
}

.attribute-matrix-item {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 72%);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.attribute-matrix-item > span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
}

.attribute-matrix-item strong {
  color: #f8fafc;
  font-size: 1.12rem;
}

.attribute-success {
  border-color: rgb(34 197 94 / 38%);
  background: rgb(20 83 45 / 16%);
}

.attribute-info {
  border-color: rgb(59 130 246 / 38%);
  background: rgb(30 64 175 / 14%);
}

.syllogism-card {
  margin-top: 12px;
  box-shadow: none;
}

.syllogism-card .syllogism-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.syllogism-card .syllogism-list li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(148 163 184 / 12%);
}

.syllogism-card .syllogism-list li:last-child {
  border-bottom: 0;
}

.syllogism-card .syllogism-list li span {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.syllogism-conclusion {
  color: #f8fafc;
  font-weight: 750;
}

.syllogism-variables {
  margin-top: 12px;
}

.statement-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.statement-detail-card {
  min-width: 0;
}

.statement-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.statement-detail-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.statement-claim {
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 700;
}

@media (max-width: 1180px) and (min-width: 900px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .app-shell > .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    border-right: 1px solid rgb(148 163 184 / 18%);
    border-bottom: 0;
  }

  .app-shell > .dashboard-sidebar nav {
    display: grid;
  }

  .app-shell > .dashboard-sidebar .sidebar-note {
    margin-top: auto;
    margin-left: 0;
  }

  .app-shell > .dashboard-sidebar .sidebar-subnav {
    display: grid;
    padding-left: 14px;
  }
}

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

  .app-shell > .app-shell-sidebar {
    display: none;
  }

  .app-shell-menu-button {
    display: inline-flex;
  }

  .app-shell-header-tools {
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  .app-shell-search {
    order: 3;
    flex-basis: 100%;
  }

  .app-shell-drawer.open {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
  }

  .app-shell-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(2 6 23 / 72%);
    backdrop-filter: blur(8px);
  }

  .app-shell-drawer .dashboard-sidebar {
    position: relative;
    z-index: 1;
    width: min(86vw, 320px);
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    border-right: 1px solid rgb(148 163 184 / 18%);
    border-bottom: 0;
  }

  .app-shell-drawer .dashboard-sidebar nav,
  .app-shell-drawer .sidebar-subnav {
    display: grid;
  }

  .app-shell-close.visible {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 90;
    display: inline-flex;
  }

  .statement-detail-grid,
  .statement-crud-layout {
    grid-template-columns: 1fr;
  }
}

html.light body:has(.dashboard-shell) {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d9e2ec;
  --surface: #eef4f8;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --accent: #0ea5e9;
  --focus: #4f46e5;
  background:
    radial-gradient(circle at 20% -10%, rgb(14 165 233 / 12%), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

html.light .dashboard-shell {
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

html.light .dashboard-sidebar {
  border-color: #d9e2ec;
  background: #ffffff;
  box-shadow: 16px 0 42px rgb(15 23 42 / 8%);
}

html.light .dashboard-logo strong,
html.light .dashboard-topbar h1,
html.light .admin-hero h1,
html.light .dashboard-card h2,
html.light .editor-panel h2,
html.light .statement-form h3,
html.light .topic-card h2,
html.light .debate-question-card h2,
html.light .debate-result-card h2,
html.light .metric-card strong,
html.light .position-list strong,
html.light .summary-grid strong,
html.light .question-panel h3,
html.light .debate-question-text,
html.light .choice-card span,
html.light .answer-option span,
html.light .check-row,
html.light .attribute-matrix-item strong,
html.light .statement-claim {
  color: #0f172a;
}

html.light .dashboard-sidebar nav a,
html.light .sidebar-subnav button,
html.light .metric-card small,
html.light .admin-hero p:not(.eyebrow),
html.light .choice-card small,
html.light .answer-option small,
html.light .statement-row p,
html.light .attribute-matrix-item > span,
html.light .position-list span,
html.light label {
  color: #64748b;
}

html.light .choice-card.selected span,
html.light .answer-option.selected span,
html.light .dashboard-shell .choice-card.selected span,
html.light .dashboard-shell .answer-option.selected span,
html.light .dashboard-shell .check-row:has(input:checked),
html.light .dashboard-shell .check-row:has(input:checked) span,
html.light .check-row:has(input:checked),
html.light .check-row:has(input:checked) span {
  color: #0f172a;
}

html.light .choice-card.selected small,
html.light .answer-option.selected small,
html.light .dashboard-shell .choice-card.selected small,
html.light .dashboard-shell .answer-option.selected small {
  color: #475569;
}

html.light .metric-card,
html.light .dashboard-card,
html.light .editor-panel,
html.light .admin-hero,
html.light .statement-form,
html.light .condition-editor,
html.light .condition-row,
html.light .statement-card,
html.light .topic-card,
html.light .free-text-controls,
html.light .attribute-matrix-item,
html.light .position-list > div,
html.light .manual-variable-list > div,
html.light .summary-grid div,
html.light .question-panel {
  border-color: #d9e2ec;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 18px 48px rgb(15 23 42 / 7%);
}

html.light input,
html.light select,
html.light textarea,
html.light .debate-textarea-label textarea,
html.light .profile-grid select {
  border-color: #d9e2ec;
  background: #ffffff;
  color: #0f172a;
}

html.light .claim-strip span,
html.light .position-value-row small,
html.light .condition-value-placeholder {
  border-color: #d9e2ec;
  background: #f8fafc;
  color: #475569;
}

.dashboard-shell .summary-section.compact,
html.light .dashboard-shell .summary-section.compact {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-shell .result-panel,
html.light .dashboard-shell .result-panel {
  padding: 0;
  background: transparent;
}

.dashboard-shell .summary-section.compact > p {
  margin: 0;
  color: #cbd5e1;
}

html.light .dashboard-shell .summary-section.compact > p {
  color: #64748b;
}

/* Integrate-inspired dashboard skin */
body:has(.dashboard-shell) {
  color-scheme: dark;
  background:
    radial-gradient(circle at 52% -12%, rgb(255 255 255 / 16%), transparent 22rem),
    radial-gradient(circle at 0% 18%, rgb(139 92 246 / 20%), transparent 28rem),
    repeating-linear-gradient(
      106deg,
      rgb(255 255 255 / 5%) 0,
      rgb(255 255 255 / 5%) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(135deg, #050508 0%, #15171a 48%, #07080b 100%);
}

.dashboard-shell.app-shell,
html.light .dashboard-shell.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(1220px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 56px;
  color: #050711;
  background: transparent;
}

.app-shell > .dashboard-sidebar,
html.light .app-shell > .dashboard-sidebar {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  width: 100%;
  height: auto;
  min-height: 61px;
  max-height: none;
  overflow: visible;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 34%);
  backdrop-filter: blur(22px);
}

.dashboard-logo {
  flex: 0 0 auto;
  min-height: 36px;
}

.dashboard-logo span,
html.light .dashboard-logo span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6d5dfc);
  color: #ffffff;
  box-shadow: 0 12px 26px rgb(139 92 246 / 34%);
}

.dashboard-logo strong,
html.light .dashboard-logo strong {
  color: #050711;
  font-size: 0.92rem;
}

.dashboard-sidebar nav,
html.light .dashboard-sidebar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
}

.dashboard-sidebar .theme-toggle,
html.light .dashboard-sidebar .theme-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #737780;
  box-shadow: none;
  transform: none;
}

.dashboard-sidebar .theme-toggle:hover,
html.light .dashboard-sidebar .theme-toggle:hover {
  background: #f0eefb;
  color: #050711;
  box-shadow: none;
  transform: none;
}

.dashboard-sidebar nav a,
html.light .dashboard-sidebar nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  color: #737780;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active,
html.light .dashboard-sidebar nav a:hover,
html.light .dashboard-sidebar nav a.active {
  background: #f0eefb;
  color: #050711;
  box-shadow: none;
}

.app-shell > .dashboard-sidebar .sidebar-subnav,
html.light .app-shell > .dashboard-sidebar .sidebar-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-left: 0;
}

.app-shell > .dashboard-sidebar .sidebar-subnav button,
html.light .app-shell > .dashboard-sidebar .sidebar-subnav button {
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8a909b;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.app-shell > .dashboard-sidebar .sidebar-subnav button:hover,
.app-shell > .dashboard-sidebar .sidebar-subnav button.active,
html.light .app-shell > .dashboard-sidebar .sidebar-subnav button:hover,
html.light .app-shell > .dashboard-sidebar .sidebar-subnav button.active {
  background: #dffafe;
  color: #050711;
  box-shadow: none;
  transform: none;
}

.dashboard-sidebar .sidebar-note,
html.light .dashboard-sidebar .sidebar-note {
  display: none;
}

.dashboard-workspace,
html.light .dashboard-workspace {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 24px;
  background: #f4f5f7;
  box-shadow: 0 32px 100px rgb(0 0 0 / 34%);
}

.dashboard-topbar,
html.light .dashboard-topbar {
  min-height: 61px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
  background: rgb(255 255 255 / 94%);
  color: #050711;
  box-shadow: 0 18px 48px rgb(15 23 42 / 10%);
  backdrop-filter: blur(22px);
}

.dashboard-topbar h1,
html.light .dashboard-topbar h1 {
  color: #050711;
  font-size: 1rem;
  letter-spacing: 0;
}

.dashboard-topbar .eyebrow,
.step-label,
html.light .dashboard-topbar .eyebrow,
html.light .step-label {
  color: #1677ff;
}

.app-shell-titlebar {
  flex: 1;
}

.app-shell-subnav {
  min-width: 0;
}

.app-shell-subnav .sidebar-subnav,
html.light .app-shell-subnav .sidebar-subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.app-shell-subnav .sidebar-subnav button,
html.light .app-shell-subnav .sidebar-subnav button {
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #737780;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.app-shell-subnav .sidebar-subnav button:hover,
.app-shell-subnav .sidebar-subnav button.active,
html.light .app-shell-subnav .sidebar-subnav button:hover,
html.light .app-shell-subnav .sidebar-subnav button.active {
  background: #f0eefb;
  color: #050711;
  box-shadow: none;
  transform: none;
}

.app-shell-header-tools {
  min-width: 0;
}

.app-shell-header-tools > button,
.app-shell-primary-link,
html.light .app-shell-header-tools > button,
html.light .app-shell-primary-link {
  border-color: #e7e9ef;
  background: #ffffff;
  color: #050711;
}

.app-shell-primary-link,
html.light .app-shell-primary-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 14px 30px rgb(139 92 246 / 30%);
}

.dashboard-metrics,
html.light .dashboard-metrics {
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card,
html.light .metric-card {
  min-height: 108px;
  border: 1px solid rgb(15 23 42 / 5%);
  border-radius: 14px;
  background: linear-gradient(135deg, #151d2e, #1c2638);
  box-shadow: 0 18px 42px rgb(10 15 28 / 16%);
}

.metric-card span,
html.light .metric-card span {
  color: #d7dde8;
  font-size: 0.74rem;
  text-transform: none;
}

.metric-card strong,
html.light .metric-card strong {
  color: #ffffff;
  font-size: 2rem;
}

.metric-card small,
html.light .metric-card small {
  color: #b8c0cc;
}

.metric-blue {
  --metric-bg: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.metric-green {
  --metric-bg: linear-gradient(135deg, #10b981, #34d399);
}

.metric-amber {
  --metric-bg: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.metric-red {
  --metric-bg: linear-gradient(135deg, #ec4899, #f472b6);
}

.metric-card::after,
html.light .metric-card::after {
  border-radius: 999px;
  background: var(--metric-bg);
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
}

.dashboard-card,
.question-panel,
.editor-panel,
.admin-hero,
.statement-form,
.condition-editor,
.condition-row,
.statement-card,
.topic-card,
.debate-question-card,
.debate-result-card,
.free-text-controls,
.attribute-matrix-item,
.position-list > div,
.manual-variable-list > div,
.summary-grid div,
html.light .dashboard-card,
html.light .question-panel,
html.light .editor-panel,
html.light .admin-hero,
html.light .statement-form,
html.light .condition-editor,
html.light .condition-row,
html.light .statement-card,
html.light .topic-card,
html.light .debate-question-card,
html.light .debate-result-card,
html.light .free-text-controls,
html.light .attribute-matrix-item,
html.light .position-list > div,
html.light .manual-variable-list > div,
html.light .summary-grid div {
  border: 1px solid rgb(15 23 42 / 6%);
  border-radius: 14px;
  background: rgb(255 255 255 / 96%);
  color: #050711;
  box-shadow: 0 18px 50px rgb(15 23 42 / 8%);
  backdrop-filter: none;
}

.dashboard-card h2,
.editor-panel h2,
.statement-form h3,
.statement-card h3,
.topic-card h2,
.debate-question-card h2,
.debate-result-card h2,
.question-panel h3,
.metric-card + h2,
html.light .dashboard-card h2,
html.light .editor-panel h2,
html.light .statement-form h3,
html.light .statement-card h3,
html.light .topic-card h2,
html.light .debate-question-card h2,
html.light .debate-result-card h2,
html.light .question-panel h3 {
  color: #050711;
}

.position-summary,
.doctrine-row p,
.empty-note,
.context-text,
.topic-card p,
.topic-card small,
.statement-row p,
.metric-card ~ p,
html.light .position-summary,
html.light .doctrine-row p,
html.light .empty-note,
html.light .context-text,
html.light .topic-card p,
html.light .topic-card small,
html.light .statement-row p {
  color: #777b85;
}

.edit-link,
html.light .edit-link {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #f2edff;
  color: #8b5cf6;
}

.edit-link:hover,
html.light .edit-link:hover {
  background: #e8ddff;
  color: #6d28d9;
}

.donut,
html.light .donut {
  width: 176px;
  height: 176px;
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--ring) var(--progress), #e7e9ef 0);
}

.donut span,
.chart-summary span,
html.light .donut span,
html.light .chart-summary span {
  color: #777b85;
}

.donut strong,
.chart-summary strong,
html.light .donut strong,
html.light .chart-summary strong {
  color: #050711;
}

.mini-trend,
html.light .mini-trend {
  border-color: #eceef2;
  background:
    linear-gradient(#eef1f5 1px, transparent 1px),
    linear-gradient(90deg, #eef1f5 1px, transparent 1px),
    #ffffff;
}

.trend-line,
.mini-trend i,
html.light .trend-line,
html.light .mini-trend i {
  border-color: #8b5cf6;
}

.choice-card,
.answer-option,
.check-row,
.answer-list button,
.topic-button,
html.light .choice-card,
html.light .answer-option,
html.light .check-row,
html.light .answer-list button,
html.light .topic-button {
  border-color: #e7e9ef;
  background: #ffffff;
  color: #050711;
}

.choice-card span,
.answer-option span,
.check-row,
.profile-grid select,
html.light .choice-card span,
html.light .answer-option span,
html.light .check-row,
html.light .profile-grid select {
  color: #050711;
}

.choice-card small,
.answer-option small,
label,
.profile-grid label,
html.light .choice-card small,
html.light .answer-option small,
html.light label,
html.light .profile-grid label {
  color: #777b85;
}

.choice-card.selected,
.answer-option.selected,
.dashboard-shell .choice-card.selected,
.dashboard-shell .answer-option.selected,
.dashboard-shell .check-row:has(input:checked),
.check-row:has(input:checked),
html.light .choice-card.selected,
html.light .answer-option.selected,
html.light .dashboard-shell .choice-card.selected,
html.light .dashboard-shell .answer-option.selected,
html.light .dashboard-shell .check-row:has(input:checked),
html.light .check-row:has(input:checked) {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #f3efff, #eaf9ff);
  box-shadow:
    inset 5px 0 0 #8b5cf6,
    0 16px 34px rgb(139 92 246 / 12%);
}

.choice-card.selected span,
.answer-option.selected span,
.dashboard-shell .choice-card.selected span,
.dashboard-shell .answer-option.selected span,
.dashboard-shell .check-row:has(input:checked),
.check-row:has(input:checked),
html.light .choice-card.selected span,
html.light .answer-option.selected span,
html.light .dashboard-shell .choice-card.selected span,
html.light .dashboard-shell .answer-option.selected span,
html.light .dashboard-shell .check-row:has(input:checked),
html.light .dashboard-shell .check-row:has(input:checked) span {
  color: #050711;
}

.choice-card.selected small,
.answer-option.selected small,
.dashboard-shell .choice-card.selected small,
.dashboard-shell .answer-option.selected small,
html.light .choice-card.selected small,
html.light .answer-option.selected small,
html.light .dashboard-shell .choice-card.selected small,
html.light .dashboard-shell .answer-option.selected small {
  color: #525866;
}

.claim-strip span,
.dashboard-shell .claim-strip span,
.position-value-row small,
.condition-value-placeholder,
html.light .claim-strip span,
html.light .dashboard-shell .claim-strip span,
html.light .position-value-row small,
html.light .condition-value-placeholder {
  border-color: #e7e9ef;
  background: #f7f8fa;
  color: #525866;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.evidence-quote {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  background: #ffffff;
}

.evidence-quote blockquote {
  margin: 0;
  color: #050711;
  line-height: 1.45;
}

.evidence-quote figcaption {
  color: #1677ff;
  font-size: 0.78rem;
  font-weight: 760;
}

.doctrine-row,
html.light .doctrine-row {
  border-color: #eceef2;
  background: #fbfbfc;
}

input,
select,
textarea,
.debate-textarea-label textarea,
.profile-grid select,
html.light input,
html.light select,
html.light textarea,
html.light .debate-textarea-label textarea,
html.light .profile-grid select {
  border-color: #e7e9ef;
  background: #ffffff;
  color: #050711;
}

@media (min-width: 900px) {
  .app-shell > .dashboard-sidebar .app-shell-menu-button {
    display: none;
  }
}

@media (max-width: 980px) {
  .dashboard-shell.app-shell,
  html.light .dashboard-shell.app-shell {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .app-shell > .dashboard-sidebar,
  html.light .app-shell > .dashboard-sidebar {
    display: none;
  }

  .app-shell-menu-button {
    display: inline-flex;
  }

  .dashboard-workspace,
  html.light .dashboard-workspace {
    padding: 12px;
    border-radius: 20px;
  }

  .dashboard-topbar,
  html.light .dashboard-topbar {
    min-height: 61px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .dashboard-metrics,
  .dashboard-grid,
  .dashboard-grid-balanced,
  .readonly-dashboard,
  .debate-grid,
  .topic-grid,
  html.light .dashboard-metrics,
  html.light .dashboard-grid,
  html.light .dashboard-grid-balanced,
  html.light .readonly-dashboard,
  html.light .debate-grid,
  html.light .topic-grid {
    grid-template-columns: 1fr;
  }
}

.placeholder\:text-slate-500::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.placeholder\:text-slate-500::placeholder {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.hover\:border-cyan-400\/70:hover {
  border-color: rgb(34 211 238 / 0.7);
}

.hover\:bg-cyan-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(8 145 178 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-900\/40:hover {
  background-color: rgb(127 29 29 / 0.4);
}

.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-slate-800\/35:hover {
  background-color: rgb(30 41 59 / 0.35);
}

.hover\:bg-slate-800\/70:hover {
  background-color: rgb(30 41 59 / 0.7);
}

.hover\:from-cyan-500:hover {
  --tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:to-indigo-500:hover {
  --tw-gradient-to: #6366f1 var(--tw-gradient-to-position);
}

.hover\:text-slate-100:hover {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity, 1));
}

.hover\:text-slate-50:hover {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity, 1));
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.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-cyan-300:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity, 1));
}

.focus-visible\:ring-cyan-400\/40:focus-visible {
  --tw-ring-color: rgb(34 211 238 / 0.4);
}

.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.focus-visible\:ring-offset-background:focus-visible {
  --tw-ring-offset-color: hsl(var(--background));
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.data-\[state\=checked\]\:border-cyan-400\/50[data-state="checked"] {
  border-color: rgb(34 211 238 / 0.5);
}

.data-\[state\=checked\]\:bg-cyan-600[data-state="checked"] {
  --tw-bg-opacity: 1;
  background-color: rgb(8 145 178 / var(--tw-bg-opacity, 1));
}

@media (min-width: 640px) {

  .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\:p-4 {
    padding: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:pb-3 {
    padding-bottom: 0.75rem;
  }

  .sm\:pt-3 {
    padding-top: 0.75rem;
  }

  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 768px) {

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

