/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/globals.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*, ::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.14 | 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: Inter, system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

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

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

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

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

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

abbr:where([title]) {
  -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: JetBrains Mono, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

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

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

/*
Set the default cursor for buttons.
*/

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

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

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

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

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

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

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container{
  width: 100% !important;
}
.container{
  width: 100%;
}
@media (min-width: 640px){

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

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

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

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

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

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

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

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

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

  .container{
    max-width: 1536px;
  }
}
.pointer-events-none{
  pointer-events: none;
}
.visible{
  visibility: visible;
}
.fixed{
  position: fixed;
}
.absolute{
  position: absolute;
}
.relative{
  position: relative;
}
.sticky{
  position: sticky;
}
.inset-0{
  inset: 0px;
}
.inset-x-0{
  left: 0px;
  right: 0px;
}
.bottom-0{
  bottom: 0px;
}
.bottom-0\.5{
  bottom: 0.125rem;
}
.left-2\.5{
  left: 0.625rem;
}
.right-0{
  right: 0px;
}
.right-2{
  right: 0.5rem;
}
.right-2\.5{
  right: 0.625rem;
}
.top-0{
  top: 0px;
}
.top-0\.5{
  top: 0.125rem;
}
.top-1\/2{
  top: 50%;
}
.top-2\.5{
  top: 0.625rem;
}
.top-3{
  top: 0.75rem;
}
.top-full{
  top: 100%;
}
.z-10{
  z-index: 10;
}
.z-20{
  z-index: 20;
}
.z-30{
  z-index: 30;
}
.z-40{
  z-index: 40;
}
.z-50{
  z-index: 50;
}
.z-\[1\]{
  z-index: 1;
}
.z-\[60\]{
  z-index: 60;
}
.col-span-12{
  grid-column: span 12 / span 12;
}
.-m-2{
  margin: -0.5rem;
}
.m-auto{
  margin: auto;
}
.-mx-3{
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.-mx-4{
  margin-left: -1rem;
  margin-right: -1rem;
}
.mx-2{
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-auto{
  margin-left: auto;
  margin-right: auto;
}
.my-1{
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-4{
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.mb-0\.5{
  margin-bottom: 0.125rem;
}
.mb-1{
  margin-bottom: 0.25rem;
}
.mb-1\.5{
  margin-bottom: 0.375rem;
}
.mb-2{
  margin-bottom: 0.5rem;
}
.mb-2\.5{
  margin-bottom: 0.625rem;
}
.mb-3{
  margin-bottom: 0.75rem;
}
.mb-4{
  margin-bottom: 1rem;
}
.mb-5{
  margin-bottom: 1.25rem;
}
.mb-6{
  margin-bottom: 1.5rem;
}
.mb-8{
  margin-bottom: 2rem;
}
.ml-0\.5{
  margin-left: 0.125rem;
}
.ml-1{
  margin-left: 0.25rem;
}
.ml-2{
  margin-left: 0.5rem;
}
.ml-auto{
  margin-left: auto;
}
.mr-1{
  margin-right: 0.25rem;
}
.mr-2{
  margin-right: 0.5rem;
}
.mr-6{
  margin-right: 1.5rem;
}
.mt-0\.5{
  margin-top: 0.125rem;
}
.mt-1{
  margin-top: 0.25rem;
}
.mt-1\.5{
  margin-top: 0.375rem;
}
.mt-2{
  margin-top: 0.5rem;
}
.mt-3{
  margin-top: 0.75rem;
}
.mt-4{
  margin-top: 1rem;
}
.mt-5{
  margin-top: 1.25rem;
}
.mt-8{
  margin-top: 2rem;
}
.block{
  display: block;
}
.inline{
  display: inline;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.table{
  display: table;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.h-1{
  height: 0.25rem;
}
.h-1\.5{
  height: 0.375rem;
}
.h-10{
  height: 2.5rem;
}
.h-12{
  height: 3rem;
}
.h-14{
  height: 3.5rem;
}
.h-2{
  height: 0.5rem;
}
.h-2\.5{
  height: 0.625rem;
}
.h-20{
  height: 5rem;
}
.h-24{
  height: 6rem;
}
.h-3{
  height: 0.75rem;
}
.h-3\.5{
  height: 0.875rem;
}
.h-4{
  height: 1rem;
}
.h-5{
  height: 1.25rem;
}
.h-6{
  height: 1.5rem;
}
.h-7{
  height: 1.75rem;
}
.h-8{
  height: 2rem;
}
.h-9{
  height: 2.25rem;
}
.h-\[85vh\]{
  height: 85vh;
}
.h-full{
  height: 100%;
}
.h-px{
  height: 1px;
}
.max-h-40{
  max-height: 10rem;
}
.max-h-56{
  max-height: 14rem;
}
.max-h-64{
  max-height: 16rem;
}
.max-h-\[100dvh\]{
  max-height: 100dvh;
}
.max-h-\[90vh\]{
  max-height: 90vh;
}
.min-h-0{
  min-height: 0px;
}
.min-h-\[52px\]{
  min-height: 52px;
}
.min-h-screen{
  min-height: 100vh;
}
.w-1\.5{
  width: 0.375rem;
}
.w-10{
  width: 2.5rem;
}
.w-12{
  width: 3rem;
}
.w-14{
  width: 3.5rem;
}
.w-16{
  width: 4rem;
}
.w-2{
  width: 0.5rem;
}
.w-2\.5{
  width: 0.625rem;
}
.w-20{
  width: 5rem;
}
.w-24{
  width: 6rem;
}
.w-3{
  width: 0.75rem;
}
.w-3\.5{
  width: 0.875rem;
}
.w-32{
  width: 8rem;
}
.w-4{
  width: 1rem;
}
.w-5{
  width: 1.25rem;
}
.w-6{
  width: 1.5rem;
}
.w-7{
  width: 1.75rem;
}
.w-8{
  width: 2rem;
}
.w-9{
  width: 2.25rem;
}
.w-\[78vw\]{
  width: 78vw;
}
.w-full{
  width: 100%;
}
.w-px{
  width: 1px;
}
.min-w-0{
  min-width: 0px;
}
.min-w-\[130px\]{
  min-width: 130px;
}
.min-w-\[160px\]{
  min-width: 160px;
}
.min-w-\[180px\]{
  min-width: 180px;
}
.min-w-\[200px\]{
  min-width: 200px;
}
.min-w-\[80px\]{
  min-width: 80px;
}
.max-w-2xl{
  max-width: 42rem;
}
.max-w-\[1000px\]{
  max-width: 1000px;
}
.max-w-\[1100px\]{
  max-width: 1100px;
}
.max-w-\[1200px\]{
  max-width: 1200px;
}
.max-w-\[1320px\]{
  max-width: 1320px;
}
.max-w-\[380px\]{
  max-width: 380px;
}
.max-w-\[400px\]{
  max-width: 400px;
}
.max-w-\[440px\]{
  max-width: 440px;
}
.max-w-\[640px\]{
  max-width: 640px;
}
.max-w-lg{
  max-width: 32rem;
}
.max-w-md{
  max-width: 28rem;
}
.max-w-xs{
  max-width: 20rem;
}
.flex-1{
  flex: 1 1 0%;
}
.flex-shrink-0{
  flex-shrink: 0;
}
.shrink-0{
  flex-shrink: 0;
}
.-translate-y-1\/2{
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-90{
  --tw-rotate: -90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-90{
  --tw-rotate: 90deg;
  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));
}
.scale-125{
  --tw-scale-x: 1.25;
  --tw-scale-y: 1.25;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes overlayIn{

  from{
    opacity: 0;
  }

  to{
    opacity: 1;
  }
}
.animate-overlay-in{
  animation: overlayIn 150ms ease-out;
}
@keyframes spin{

  to{
    transform: rotate(360deg);
  }
}
.animate-spin{
  animation: spin 1s linear infinite;
}
@keyframes springIn{

  from{
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-spring-in{
  animation: springIn 220ms var(--ease-spring, cubic-bezier(.2,.8,.2,1));
}
.cursor-grab{
  cursor: grab;
}
.cursor-not-allowed{
  cursor: not-allowed;
}
.cursor-pointer{
  cursor: pointer;
}
.touch-none{
  touch-action: none;
}
.select-none{
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.resize{
  resize: both;
}
.snap-x{
  scroll-snap-type: x var(--tw-scroll-snap-strictness);
}
.snap-mandatory{
  --tw-scroll-snap-strictness: mandatory;
}
.snap-start{
  scroll-snap-align: start;
}
.list-none{
  list-style-type: none;
}
.appearance-none{
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.grid-cols-1{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12{
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-cols-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.flex-col{
  flex-direction: column;
}
.flex-wrap{
  flex-wrap: wrap;
}
.items-start{
  align-items: flex-start;
}
.items-end{
  align-items: flex-end;
}
.items-center{
  align-items: center;
}
.items-baseline{
  align-items: baseline;
}
.justify-end{
  justify-content: flex-end;
}
.justify-center{
  justify-content: center;
}
.justify-between{
  justify-content: space-between;
}
.gap-0\.5{
  gap: 0.125rem;
}
.gap-1{
  gap: 0.25rem;
}
.gap-1\.5{
  gap: 0.375rem;
}
.gap-2{
  gap: 0.5rem;
}
.gap-2\.5{
  gap: 0.625rem;
}
.gap-3{
  gap: 0.75rem;
}
.gap-4{
  gap: 1rem;
}
.gap-6{
  gap: 1.5rem;
}
.gap-px{
  gap: 1px;
}
.gap-x-3{
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-y-0\.5{
  row-gap: 0.125rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.divide-x > :not([hidden]) ~ :not([hidden]){
  --tw-divide-x-reverse: 0;
  border-right-width: calc(1px * var(--tw-divide-x-reverse));
  border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
}
.divide-y > :not([hidden]) ~ :not([hidden]){
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-\[var\(--border\)\] > :not([hidden]) ~ :not([hidden]){
  border-color: var(--border);
}
.self-center{
  align-self: center;
}
.overflow-hidden{
  overflow: hidden;
}
.overflow-visible{
  overflow: visible;
}
.overflow-x-auto{
  overflow-x: auto;
}
.overflow-y-auto{
  overflow-y: auto;
}
.truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap{
  white-space: nowrap;
}
.break-words{
  overflow-wrap: break-word;
}
.rounded{
  border-radius: 0.25rem;
}
.rounded-2xl{
  border-radius: 20px;
}
.rounded-full{
  border-radius: 9999px;
}
.rounded-lg{
  border-radius: 12px;
}
.rounded-md{
  border-radius: 8px;
}
.rounded-none{
  border-radius: 0px;
}
.rounded-sm{
  border-radius: 0.125rem;
}
.rounded-xl{
  border-radius: 14px;
}
.rounded-t-2xl{
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.border{
  border-width: 1px;
}
.border-0{
  border-width: 0px;
}
.border-2{
  border-width: 2px;
}
.border-b{
  border-bottom-width: 1px;
}
.border-l{
  border-left-width: 1px;
}
.border-l-4{
  border-left-width: 4px;
}
.border-t{
  border-top-width: 1px;
}
.border-t-2{
  border-top-width: 2px;
}
.border-dashed{
  border-style: dashed;
}
.border-\[var\(--accent-ring\)\]{
  border-color: var(--accent-ring);
}
.border-\[var\(--confluence-border\)\]{
  border-color: var(--confluence-border);
}
.border-\[var\(--danger-border\)\]{
  border-color: var(--danger-border);
}
.border-\[var\(--jira-border\)\]{
  border-color: var(--jira-border);
}
.border-accent{
  border-color: var(--accent);
}
.border-fg{
  border-color: var(--fg);
}
.border-fg-subtle{
  border-color: var(--fg-subtle);
}
.border-transparent{
  border-color: transparent;
}
.bg-\[var\(--accent-subtle\)\]{
  background-color: var(--accent-subtle);
}
.bg-\[var\(--accent-subtle-hover\)\]{
  background-color: var(--accent-subtle-hover);
}
.bg-\[var\(--bg-muted\)\]{
  background-color: var(--bg-muted);
}
.bg-\[var\(--confluence-subtle\)\]{
  background-color: var(--confluence-subtle);
}
.bg-\[var\(--danger-subtle\)\]{
  background-color: var(--danger-subtle);
}
.bg-\[var\(--jira-subtle\)\]{
  background-color: var(--jira-subtle);
}
.bg-\[var\(--scrim\)\]{
  background-color: var(--scrim);
}
.bg-accent{
  background-color: var(--accent);
}
.bg-bg{
  background-color: var(--bg);
}
.bg-bg-elev{
  background-color: var(--bg-elev);
}
.bg-bg-elev-2{
  background-color: var(--bg-elev-2);
}
.bg-bg-muted{
  background-color: var(--bg-muted);
}
.bg-border-strong{
  background-color: var(--border-strong);
}
.bg-danger{
  background-color: var(--danger);
}
.bg-fg-subtle{
  background-color: var(--fg-subtle);
}
.bg-success{
  background-color: var(--success);
}
.bg-transparent{
  background-color: transparent;
}
.bg-warning{
  background-color: var(--warning);
}
.bg-gradient-to-br{
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-accent{
  --tw-gradient-from: var(--accent) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-\[var\(--violet\)\]{
  --tw-gradient-to: var(--violet) var(--tw-gradient-to-position);
}
.p-0{
  padding: 0px;
}
.p-0\.5{
  padding: 0.125rem;
}
.p-1{
  padding: 0.25rem;
}
.p-10{
  padding: 2.5rem;
}
.p-2{
  padding: 0.5rem;
}
.p-3{
  padding: 0.75rem;
}
.p-3\.5{
  padding: 0.875rem;
}
.p-4{
  padding: 1rem;
}
.p-5{
  padding: 1.25rem;
}
.p-6{
  padding: 1.5rem;
}
.p-8{
  padding: 2rem;
}
.px-1{
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5{
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5{
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5{
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5{
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5{
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10{
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12{
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5{
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-20{
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1{
  padding-bottom: 0.25rem;
}
.pb-2{
  padding-bottom: 0.5rem;
}
.pb-3{
  padding-bottom: 0.75rem;
}
.pb-4{
  padding-bottom: 1rem;
}
.pl-8{
  padding-left: 2rem;
}
.pr-3{
  padding-right: 0.75rem;
}
.pr-6{
  padding-right: 1.5rem;
}
.pr-8{
  padding-right: 2rem;
}
.pr-9{
  padding-right: 2.25rem;
}
.pt-1{
  padding-top: 0.25rem;
}
.pt-2{
  padding-top: 0.5rem;
}
.pt-2\.5{
  padding-top: 0.625rem;
}
.pt-3{
  padding-top: 0.75rem;
}
.pt-4{
  padding-top: 1rem;
}
.pt-px{
  padding-top: 1px;
}
.text-left{
  text-align: left;
}
.text-center{
  text-align: center;
}
.text-right{
  text-align: right;
}
.align-middle{
  vertical-align: middle;
}
.font-mono{
  font-family: JetBrains Mono, monospace;
}
.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl{
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[10px\]{
  font-size: 10px;
}
.text-\[11\.5px\]{
  font-size: 11.5px;
}
.text-\[11px\]{
  font-size: 11px;
}
.text-\[12\.5px\]{
  font-size: 12.5px;
}
.text-\[12px\]{
  font-size: 12px;
}
.text-\[13px\]{
  font-size: 13px;
}
.text-\[8px\]{
  font-size: 8px;
}
.text-\[9px\]{
  font-size: 9px;
}
.text-base{
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl{
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold{
  font-weight: 700;
}
.font-medium{
  font-weight: 500;
}
.font-normal{
  font-weight: 400;
}
.font-semibold{
  font-weight: 600;
}
.uppercase{
  text-transform: uppercase;
}
.italic{
  font-style: italic;
}
.tabular-nums{
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-none{
  line-height: 1;
}
.leading-relaxed{
  line-height: 1.625;
}
.leading-snug{
  line-height: 1.375;
}
.leading-tight{
  line-height: 1.25;
}
.tracking-tight{
  letter-spacing: -0.025em;
}
.tracking-wide{
  letter-spacing: 0.025em;
}
.tracking-wider{
  letter-spacing: 0.05em;
}
.text-\[var\(--accent-contrast\)\]{
  color: var(--accent-contrast);
}
.text-\[var\(--danger-fg\)\]{
  color: var(--danger-fg);
}
.text-\[var\(--indigo\)\]{
  color: var(--indigo);
}
.text-accent{
  color: var(--accent);
}
.text-accent-contrast{
  color: var(--accent-contrast);
}
.text-confluence-fg{
  color: var(--confluence-fg);
}
.text-danger{
  color: var(--danger);
}
.text-fg{
  color: var(--fg);
}
.text-fg-muted{
  color: var(--fg-muted);
}
.text-fg-subtle{
  color: var(--fg-subtle);
}
.text-jira-fg{
  color: var(--jira-fg);
}
.text-success{
  color: var(--success);
}
.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
.opacity-0{
  opacity: 0;
}
.opacity-100{
  opacity: 1;
}
.opacity-40{
  opacity: 0.4;
}
.opacity-50{
  opacity: 0.5;
}
.opacity-60{
  opacity: 0.6;
}
.opacity-70{
  opacity: 0.7;
}
.shadow-lg{
  --tw-shadow: var(--shadow-lg);
  --tw-shadow-colored: var(--shadow-lg);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-pop{
  --tw-shadow: var(--shadow-pop);
  --tw-shadow-colored: var(--shadow-pop);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm{
  --tw-shadow: var(--shadow-sm);
  --tw-shadow-colored: var(--shadow-sm);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none{
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.ring-2{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-accent{
  --tw-ring-color: var(--accent);
}
.blur{
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur-sm{
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity{
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow{
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform{
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300{
  transition-duration: 300ms;
}
.ease-in-out{
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   THEME TOKENS
   Light palette lives in :root (+ .light); dark palette in .dark.
   The pre-hydration script in layout.tsx toggles .dark / .light on <html>
   before first paint, so there is no flash of the wrong theme.
   Theme-independent tokens (motion/easing) live in the shared block.
   ===================================================================== */
:root,
.light {
  color-scheme: light;

  /* Surfaces */
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --bg-muted: #ececef;

  /* Text */
  --fg: #1d1d1f;
  --fg-muted: #6e6e73;
  --fg-subtle: #8e8e93;

  /* Lines */
  --border: #e3e3e6;
  --border-strong: #d0d0d4;
  --hairline: #ececef;

  /* Accent — Apple system indigo */
  --accent: #5856d6;
  --accent-rgb: 88, 86, 214;
  --accent-hover: #4b49c8;
  --accent-contrast: #ffffff;
  --accent-fg: #4441b8;
  --accent-subtle: rgba(88, 86, 214, 0.10);
  --accent-subtle-hover: rgba(88, 86, 214, 0.06);
  --accent-ring: rgba(88, 86, 214, 0.35);
  --accent-grad-from: rgba(88, 86, 214, 0.10);
  --accent-grad-to: rgba(175, 82, 222, 0.06);

  /* Semantic status */
  --success: #248a3d;        --success-fg: #1c7733;
  --success-subtle: rgba(48, 164, 73, 0.12);  --success-border: rgba(48, 164, 73, 0.28);
  --warning: #b25000;        --warning-fg: #9a4500;
  --warning-subtle: rgba(255, 149, 0, 0.14);  --warning-border: rgba(255, 149, 0, 0.30);
  --danger: #d70015;         --danger-fg: #c00012;
  --danger-subtle: rgba(255, 59, 48, 0.12);   --danger-border: rgba(255, 59, 48, 0.28);
  --info: #0066cc;           --info-fg: #0058b0;
  --info-subtle: rgba(0, 122, 255, 0.12);     --info-border: rgba(0, 122, 255, 0.28);
  --violet: #8944ab;         --violet-fg: #7a3a99;
  --violet-subtle: rgba(175, 82, 222, 0.12);  --violet-border: rgba(175, 82, 222, 0.28);

  /* Brand / data sources */
  --jira: #0c66e4;           --jira-fg: #0c66e4;
  --jira-subtle: rgba(12, 102, 228, 0.10);    --jira-border: rgba(12, 102, 228, 0.26);
  --confluence: #1ca29c;     --confluence-fg: #0c7d77;
  --confluence-subtle: rgba(28, 162, 156, 0.12); --confluence-border: rgba(28, 162, 156, 0.28);
  --indigo: #5856d6;

  /* Misc */
  --scrollbar-thumb: #c4c4c8;
  --row-tint: rgba(0, 0, 0, 0.02);
  --row-tint-hover: rgba(0, 0, 0, 0.04);
  --scrim: rgba(0, 0, 0, 0.45);

  /* Shadows — soft, layered for light */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .03);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .05);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .14), 0 4px 10px rgba(0, 0, 0, .08);
}

.dark {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b0b0f;
  --bg-elev: #141418;
  --bg-elev-2: #1c1c22;
  --bg-muted: #1c1c20;

  /* Text */
  --fg: #f5f5f7;
  --fg-muted: #a1a1aa;
  --fg-subtle: #71717a;

  /* Lines — borders carry elevation in dark */
  --border: #2a2a30;
  --border-strong: #3f3f46;
  --hairline: #222228;

  /* Accent — Apple system indigo (dark) */
  --accent: #5e5ce6;
  --accent-rgb: 94, 92, 230;
  --accent-hover: #6f6dec;
  --accent-contrast: #ffffff;
  --accent-fg: #c7d2fe;
  --accent-subtle: rgba(94, 92, 230, 0.14);
  --accent-subtle-hover: rgba(94, 92, 230, 0.08);
  --accent-ring: rgba(94, 92, 230, 0.45);
  --accent-grad-from: rgba(94, 92, 230, 0.12);
  --accent-grad-to: rgba(175, 82, 222, 0.06);

  /* Semantic status */
  --success: #30d158;        --success-fg: #34d399;
  --success-subtle: rgba(48, 209, 88, 0.12);  --success-border: rgba(48, 209, 88, 0.25);
  --warning: #ff9f0a;        --warning-fg: #fbbf24;
  --warning-subtle: rgba(255, 159, 10, 0.12); --warning-border: rgba(255, 159, 10, 0.25);
  --danger: #ff453a;         --danger-fg: #f87171;
  --danger-subtle: rgba(255, 69, 58, 0.12);   --danger-border: rgba(255, 69, 58, 0.28);
  --info: #0a84ff;           --info-fg: #60a5fa;
  --info-subtle: rgba(10, 132, 255, 0.12);    --info-border: rgba(10, 132, 255, 0.28);
  --violet: #bf5af2;         --violet-fg: #a78bfa;
  --violet-subtle: rgba(191, 90, 242, 0.12);  --violet-border: rgba(191, 90, 242, 0.28);

  /* Brand / data sources */
  --jira: #2684ff;           --jira-fg: #4ea3ff;
  --jira-subtle: rgba(38, 132, 255, 0.12);    --jira-border: rgba(38, 132, 255, 0.30);
  --confluence: #1ca29c;     --confluence-fg: #2bc4be;
  --confluence-subtle: rgba(28, 162, 156, 0.12); --confluence-border: rgba(28, 162, 156, 0.30);
  --indigo: #5e5ce6;

  /* Misc */
  --scrollbar-thumb: #3f3f46;
  --row-tint: rgba(255, 255, 255, 0.02);
  --row-tint-hover: rgba(255, 255, 255, 0.04);
  --scrim: rgba(0, 0, 0, 0.65);

  /* Shadows — near-none in dark; borders + bg-elev-2 carry elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, .6);
}

/* Theme-independent tokens */
:root {
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-slow: 240ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
/* clip (not hidden) prevents stray horizontal scroll without breaking sticky */
body { overflow-x: clip; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.text-muted { color: var(--fg-muted); }
.bg-muted-app { background: var(--bg-muted); }
.border-app { border-color: var(--border); }
.key-metric { font-feature-settings: "tnum"; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* === Chips === */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; line-height: 1.4;
  border: 1px solid transparent;
}
.chip-green   { background: var(--success-subtle); color: var(--success-fg); border-color: var(--success-border); }
.chip-amber   { background: var(--warning-subtle); color: var(--warning-fg); border-color: var(--warning-border); }
.chip-red     { background: var(--danger-subtle);  color: var(--danger-fg);  border-color: var(--danger-border); }
.chip-blue    { background: var(--info-subtle);    color: var(--info-fg);    border-color: var(--info-border); }
.chip-violet  { background: var(--violet-subtle);  color: var(--violet-fg);  border-color: var(--violet-border); }
.chip-neutral { background: var(--bg-muted);       color: var(--fg-muted);   border-color: var(--border); }

.citation-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 4px 1px 2px; vertical-align: middle; }
.cite { color: var(--violet-fg); cursor: pointer; }
.cite:hover { text-decoration: underline; }

/* === Initiative cards === */
.init-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 200px;
  scroll-snap-align: start;
}
.init-card:hover { border-color: var(--border-strong); }
.init-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-grad-from), var(--accent-grad-to));
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.spark { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.spark-green { stroke: var(--success); }
.spark-fill-green { fill: var(--success-subtle); }
.spark-fill { fill: var(--accent-subtle); }

.track-row { transition: background 0.15s; }
.track-row:hover { background: var(--bg-muted); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(90deg); }
.chev { transition: transform 0.15s; }

.ticket-row { background: var(--row-tint); border-top: 1px solid var(--border); }
.ticket-row:hover { background: var(--row-tint-hover); }

/* === Kanban === */
.kanban-board { background: var(--bg-muted); padding: 14px; border-top: 1px solid var(--border); }
.kanban-col   { min-width: 0; scroll-snap-align: start; }
.kanban-scroll { scrollbar-width: thin; }
.kanban-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; margin-bottom: 8px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}
.kanban-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 7px;
}
.kanban-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kanban-card .k-title {
  font-size: 11px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 4px 0 8px;
}
.kanban-card .k-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 6px; border-top: 1px solid var(--border);
  font-size: 10px; color: var(--fg-muted);
}

/* Track header — responsive: name+tickets (base), +progress (sm), +health (md) */
.track-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
@media (min-width: 640px) {
  .track-head { grid-template-columns: 1fr 130px 110px; }
}
@media (min-width: 768px) {
  .track-head { grid-template-columns: 1fr 80px 130px 110px; gap: 16px; padding: 14px 16px; }
}
.track-head:hover { background: var(--bg-muted); }
.track-head-cell-label {
  font-size: 10px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.ask-card {
  background: linear-gradient(135deg, var(--accent-grad-from), var(--accent-grad-to));
  border: 1px solid var(--accent-ring);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }

/* === Source toggle === */
.src-toggle {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 0;
}
.src-toggle__indicator {
  position: absolute; top: 3px; bottom: 3px;
  width: calc((100% - 6px) / 3);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform var(--motion-base) var(--ease-out),
              border-color var(--motion-base) var(--ease-out);
  z-index: 0;
  box-shadow: var(--shadow-sm);
}
.src-toggle[data-source="jira"] .src-toggle__indicator       { transform: translateX(0%);   border-color: var(--jira-border);  }
.src-toggle[data-source="confluence"] .src-toggle__indicator { transform: translateX(100%); border-color: var(--confluence-border);  }
.src-toggle[data-source="both"] .src-toggle__indicator       { transform: translateX(200%); border-color: var(--accent-ring); }
.src-toggle__btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 4px;
  font-size: 11px; font-weight: 500;
  color: var(--fg-muted);
  background: transparent; border: 0;
  border-radius: 6px; cursor: pointer;
  transition: color var(--motion-fast) var(--ease-out);
}
.src-toggle__btn[aria-selected="true"] { color: var(--fg); }
.src-toggle__btn .src-dot {
  width: 6px; height: 6px; border-radius: 50%;
  transition: transform var(--motion-base) var(--ease-out);
}
.src-toggle__btn[data-src="jira"]       .src-dot { background: var(--jira); }
.src-toggle__btn[data-src="confluence"] .src-dot { background: var(--confluence); }
.src-toggle__btn[data-src="both"]       .src-dot { background: linear-gradient(135deg, var(--jira), var(--confluence)); }
.src-toggle__btn[aria-selected="true"] .src-dot { transform: scale(1.3); }

/* === Composer === */
.composer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out);
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.composer__row { display: flex; align-items: center; gap: 8px; }
.composer__input {
  flex: 1; background: transparent; border: 0;
  color: var(--fg); font-size: 12px;
  outline: none; padding: 4px 2px;
}
.composer__input::-moz-placeholder { color: var(--fg-muted); -moz-transition: opacity var(--motion-base) var(--ease-out); transition: opacity var(--motion-base) var(--ease-out); }
.composer__input::placeholder { color: var(--fg-muted); transition: opacity var(--motion-base) var(--ease-out); }
.composer__input.is-swapping::-moz-placeholder { opacity: 0; }
.composer__input.is-swapping::placeholder { opacity: 0; }
.send-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 11px; font-weight: 500;
  border: 0; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out),
              opacity var(--motion-fast) var(--ease-out);
}
.send-btn:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

.scope-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--fg-muted);
  padding: 6px 2px 0;
  flex-wrap: wrap;
}
.scope-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 5px;
  background: var(--bg-muted); border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer; font-size: 10px;
  transition: all var(--motion-fast) var(--ease-out);
}
.scope-chip:hover { color: var(--fg); border-color: var(--border-strong); }
.scope-chip.is-active {
  background: var(--accent-subtle);
  border-color: var(--accent-ring);
  color: var(--accent-fg);
}

/* === Suggested prompts === */
.suggest-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.suggest-btn {
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--fg); font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--motion-fast) var(--ease-out);
  opacity: 0; transform: translateY(6px);
  animation: suggestIn 280ms var(--ease-out) forwards;
}
.suggest-btn:nth-child(1) { animation-delay: 0ms;  }
.suggest-btn:nth-child(2) { animation-delay: 40ms; }
.suggest-btn:nth-child(3) { animation-delay: 80ms; }
.suggest-btn:nth-child(4) { animation-delay: 120ms; }
.suggest-btn:nth-child(5) { animation-delay: 160ms; }
.suggest-btn:hover { border-color: var(--accent-ring); background: var(--accent-subtle-hover); }
.suggest-btn .src-icon { flex-shrink: 0; opacity: .7; }
@keyframes suggestIn { to { opacity: 1; transform: translateY(0); } }

.thread { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.msg-user {
  align-self: flex-end; max-width: 90%;
  padding: 8px 12px; border-radius: 12px 12px 2px 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-ring);
  font-size: 12px; line-height: 1.45;
  animation: msgIn 220ms var(--ease-out);
}
.msg-assistant { animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; color: var(--fg-muted); margin-bottom: 6px;
}
.msg-meta .src-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 6px; border-radius: 4px;
  font-size: 9px; text-transform: uppercase; letter-spacing: .04em;
}
.src-tag--jira       { background: var(--jira-subtle);       color: var(--jira-fg);       border: 1px solid var(--jira-border); }
.src-tag--confluence { background: var(--confluence-subtle); color: var(--confluence-fg); border: 1px solid var(--confluence-border); }
.src-tag--both       { background: var(--accent-subtle);     color: var(--accent-fg);     border: 1px solid var(--accent-ring); }

.caret {
  display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
  background: var(--accent); margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.cite-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px 1px 5px;
  border-radius: 5px;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  transition: all var(--motion-fast) var(--ease-out);
  vertical-align: 1px;
  opacity: 0; transform: translateY(4px) scale(.95);
}
.cite-pill.is-in { opacity: 1; transform: translateY(0) scale(1); }
.cite-pill--jira       { background: var(--jira-subtle);       color: var(--jira-fg);       border: 1px solid var(--jira-border); }
.cite-pill--confluence { background: var(--confluence-subtle); color: var(--confluence-fg); border: 1px solid var(--confluence-border); }
.cite-pill:hover { transform: translateY(-1px); filter: brightness(1.1); }
.cite-pill .src-glyph { font-size: 10px; }

.cite-card {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px; border-radius: 8px;
  background: var(--bg-muted); border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-out);
  opacity: 0; transform: translateY(4px);
}
.cite-card.is-in { opacity: 1; transform: translateY(0); }
.cite-card:hover { border-color: var(--accent-ring); transform: translateX(2px); }
.cite-card .src-marker {
  width: 18px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; margin-top: 1px;
  font-weight: 600;
}
.src-marker--jira       { background: var(--jira-subtle);       color: var(--jira-fg);       border: 1px solid var(--jira-border); }
.src-marker--confluence { background: var(--confluence-subtle); color: var(--confluence-fg); border: 1px solid var(--confluence-border); }

@keyframes pulseBorder {
  0%   { box-shadow: 0 0 0 0   rgba(var(--accent-rgb), .6),  0 0 0 0 rgba(var(--accent-rgb), .4); }
  40%  { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0),   0 0 0 3px rgba(var(--accent-rgb), .5); }
  100% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0),  0 0 0 0 rgba(var(--accent-rgb), 0); }
}
.is-pulsing {
  animation: pulseBorder 900ms var(--ease-out) 2;
  border-color: var(--accent) !important;
  position: relative; z-index: 5;
}

.followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.followup {
  padding: 5px 10px; border-radius: 14px;
  background: var(--bg-muted); border: 1px solid var(--border);
  color: var(--fg-muted); font-size: 11px;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-out);
  opacity: 0; transform: translateY(4px);
}
.followup.is-in { opacity: 1; transform: translateY(0); }
.followup:hover { color: var(--fg); border-color: var(--accent-ring); background: var(--accent-subtle-hover); }

.reasoning {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--fg-muted);
}
.reasoning summary {
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  list-style: none; color: var(--fg-muted);
  font-family: 'Inter', sans-serif; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 4px;
}
.reasoning summary::-webkit-details-marker { display: none; }
.reasoning[open] summary .chev { transform: rotate(90deg); }
.reasoning .tool-call { margin-top: 6px; padding-left: 4px; line-height: 1.6; }

/* Subtle pulse animation used for sync indicators, etc. */
@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

/* ============================ Form inputs — global ============================ */
/* Make every text input / textarea / select inherit the theme. Avoids the
   browser-default white background + black text trap inside modals and forms. */
.form-input,
input[type="text"]:not(.composer__input),
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  font-family: inherit;
}
.form-input::-moz-placeholder, input::-moz-placeholder, textarea::-moz-placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}
.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}
.form-input:focus,
input:focus:not(.composer__input):not([type="checkbox"]):not([type="radio"]),
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}
select option {
  background: var(--bg-elev);
  color: var(--fg);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
}

/* ============================ CHAT v5 — modern ============================ */
.chat-panel-v5 {
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
/* Mobile bottom-sheet variant: fills the Drawer, no own chrome */
.chat-panel-drawer {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--bg-elev);
}
.chat-panel-drawer .chat-v5-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-panel-drawer .chat-v5-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.chat-v5-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.chat-v5-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 18px;
}
.chat-v5-foot {
  border-top: 1px solid var(--border);
  padding: 12px 16px 14px;
  background: var(--bg);
}

/* Avatars */
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.avatar--user {
  background: var(--bg-muted); border: 1px solid var(--border); color: var(--fg-muted);
}
.avatar--aria {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: var(--accent-contrast);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

/* Turns */
.turn { display: flex; gap: 10px; }
.turn--user { flex-direction: row-reverse; }
.turn--user .turn-body {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-ring);
  padding: 10px 13px;
  border-radius: 14px 14px 2px 14px;
  max-width: 80%;
  font-size: 13px; line-height: 1.5;
  align-self: flex-start;
}
.turn--assistant .turn-body {
  flex: 1; min-width: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--fg);
}
.turn--assistant .turn-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--fg-muted);
  margin-bottom: 4px;
}
.turn--assistant .turn-meta .src-dot-mini {
  width: 6px; height: 6px; border-radius: 50%;
}

/* Inline citation footnote pill — Perplexity-style [1] */
.cite-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent-subtle); color: var(--accent-fg);
  border: 1px solid var(--accent-ring);
  border-radius: 4px;
  font-size: 10px; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  cursor: pointer; vertical-align: 1px;
  margin: 0 1px;
  transition: all 120ms;
}
.cite-num:hover {
  background: var(--accent);
  color: var(--accent-contrast); transform: translateY(-1px);
}
.cite-num--confluence {
  background: var(--confluence-subtle); color: var(--confluence-fg);
  border-color: var(--confluence-border);
}
.cite-num--confluence:hover { background: var(--confluence); color: var(--accent-contrast); }

/* Sources collapsible at the bottom of a turn */
.sources-strip {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sources-strip__head {
  font-size: 10px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.source-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 11px;
  background: var(--bg-muted); border: 1px solid var(--border);
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 120ms;
}
.source-row:hover { border-color: var(--accent-ring); }
.source-row .source-num {
  width: 18px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; flex-shrink: 0;
  background: var(--accent-subtle); color: var(--accent-fg);
}
.source-row--confluence .source-num {
  background: var(--confluence-subtle); color: var(--confluence-fg);
}

/* Typing indicator */
.typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg-muted); opacity: 0.4;
  animation: typing 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.9); }
  30% { opacity: 1; transform: scale(1.1); }
}

.chat-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.chat-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; }
.chat-panel__body { padding: 12px 14px 14px; overflow-y: auto; flex: 1; }
.chat-history-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg-muted); font-size: 10px;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-out);
}
.chat-history-btn:hover { color: var(--fg); border-color: var(--border-strong); }

.track-flash > summary .track-head {
  background: var(--accent-subtle-hover);
  transition: background var(--motion-slow) var(--ease-out);
}

/* ============================ Responsive / touch utilities ============================ */
/* Safe-area insets (need viewport-fit=cover, set in layout viewport export) */
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pl-safe { padding-left: env(safe-area-inset-left, 0px); }
.pr-safe { padding-right: env(safe-area-inset-right, 0px); }
.bottom-safe { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.right-safe { right: calc(16px + env(safe-area-inset-right, 0px)); }

/* Comfortable hit area for icon-only buttons; only enforced on touch devices */
.icon-hit { display: inline-flex; align-items: center; justify-content: center; }
@media (pointer: coarse) {
  .icon-hit { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================ ROI Inputs grid ============================ */
.roi-grid-wrap { overflow-x: auto; }
.roi-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1080px; }
.roi-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-elev);
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-muted); text-align: right; white-space: nowrap;
  padding: 11px 12px; border-bottom: 1px solid var(--border);
}
.roi-table th.l, .roi-table td.l { text-align: left; }
.roi-table td { padding: 4px 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.roi-table tbody tr { transition: background .15s; }
.roi-table tbody tr:hover { background: var(--row-tint); }
.roi-table tbody tr.roi-row-underwater { box-shadow: inset 3px 0 0 var(--danger-fg); }
.roi-table tbody tr.roi-row-positive { box-shadow: inset 3px 0 0 var(--success-fg); }
.roi-table tbody tr.roi-row-incomplete { background: var(--warning-subtle); }

/* Editable cells — border only, transparent fill. Scoped to beat the global input reset. */
.roi-table .roi-cell-input {
  width: 100%; background: transparent; border: 1px solid var(--border);
  border-radius: 7px; color: var(--fg); font: inherit; padding: 7px 9px;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.roi-table .roi-cell-input:focus { outline: none; border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 3px var(--accent-subtle); }
.roi-table .roi-cell-input.num { text-align: right; font-family: 'JetBrains Mono', monospace; font-feature-settings: "tnum"; }
.roi-table .roi-cell-input.name { font-weight: 600; }
.roi-table input[type=number].roi-cell-input::-webkit-outer-spin-button,
.roi-table input[type=number].roi-cell-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-table input[type=number].roi-cell-input { -moz-appearance: textfield; }

/* Computed (locked) cells */
.roi-comp { text-align: right; font-family: 'JetBrains Mono', monospace; font-feature-settings: "tnum"; color: var(--fg-muted); }
.roi-net-pos { color: var(--success-fg); font-weight: 600; }
.roi-net-neg { color: var(--danger-fg); font-weight: 600; }

/* Category dropdown — border only, transparent fill */
.roi-table .roi-cell-select {
  width: 100%; background-color: transparent; border: 1px solid var(--border);
  border-radius: 7px; color: var(--fg); font: inherit; padding: 7px 26px 7px 9px;
  cursor: pointer; transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.roi-table .roi-cell-select:focus { outline: none; border-color: var(--accent); background-color: var(--bg); box-shadow: 0 0 0 3px var(--accent-subtle); }

/* Sticky totals row */
.roi-table tfoot td {
  position: sticky; bottom: 0; background: var(--bg-elev);
  border-top: 1px solid var(--border); border-bottom: none;
  font-weight: 700; padding: 13px 12px;
}
.last\:border-0:last-child{
  border-width: 0px;
}
.last\:border-b-0:last-child{
  border-bottom-width: 0px;
}
.hover\:border-\[var\(--accent-ring\)\]:hover{
  border-color: var(--accent-ring);
}
.hover\:border-accent:hover{
  border-color: var(--accent);
}
.hover\:border-border-strong:hover{
  border-color: var(--border-strong);
}
.hover\:bg-\[var\(--accent-subtle-hover\)\]:hover{
  background-color: var(--accent-subtle-hover);
}
.hover\:bg-\[var\(--bg-muted\)\]:hover{
  background-color: var(--bg-muted);
}
.hover\:bg-\[var\(--danger-subtle\)\]:hover{
  background-color: var(--danger-subtle);
}
.hover\:bg-accent-hover:hover{
  background-color: var(--accent-hover);
}
.hover\:bg-bg-muted:hover{
  background-color: var(--bg-muted);
}
.hover\:text-accent:hover{
  color: var(--accent);
}
.hover\:text-danger:hover{
  color: var(--danger);
}
.hover\:text-fg:hover{
  color: var(--fg);
}
.hover\:text-success:hover{
  color: var(--success);
}
.hover\:underline:hover{
  text-decoration-line: underline;
}
.hover\:opacity-100:hover{
  opacity: 1;
}
.hover\:opacity-70:hover{
  opacity: 0.7;
}
.hover\:shadow-pop:hover{
  --tw-shadow: var(--shadow-pop);
  --tw-shadow-colored: var(--shadow-pop);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:brightness-110:hover{
  --tw-brightness: brightness(1.1);
  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);
}
.hover\:brightness-90:hover{
  --tw-brightness: brightness(.9);
  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);
}
.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-1:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-accent:focus{
  --tw-ring-color: var(--accent);
}
.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-\[var\(--accent-ring\)\]:focus-visible{
  --tw-ring-color: var(--accent-ring);
}
.focus-visible\:ring-offset-2:focus-visible{
  --tw-ring-offset-width: 2px;
}
.focus-visible\:ring-offset-\[var\(--bg\)\]:focus-visible{
  --tw-ring-offset-color: var(--bg);
}
.active\:scale-95:active{
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  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));
}
.active\:scale-\[\.98\]:active{
  --tw-scale-x: .98;
  --tw-scale-y: .98;
  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));
}
.disabled\:pointer-events-none:disabled{
  pointer-events: none;
}
.disabled\:cursor-not-allowed:disabled{
  cursor: not-allowed;
}
.disabled\:opacity-30:disabled{
  opacity: 0.3;
}
.disabled\:opacity-40:disabled{
  opacity: 0.4;
}
.group:hover .group-hover\:text-accent{
  color: var(--accent);
}
@media (min-width: 640px){

  .sm\:-mx-6{
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .sm\:mx-0{
    margin-left: 0px;
    margin-right: 0px;
  }

  .sm\:block{
    display: block;
  }

  .sm\:inline{
    display: inline;
  }

  .sm\:flex{
    display: flex;
  }

  .sm\:inline-flex{
    display: inline-flex;
  }

  .sm\:hidden{
    display: none;
  }

  .sm\:h-auto{
    height: auto;
  }

  .sm\:max-h-\[90vh\]{
    max-height: 90vh;
  }

  .sm\:w-\[58vw\]{
    width: 58vw;
  }

  .sm\:w-auto{
    width: auto;
  }

  .sm\:max-w-\[640px\]{
    max-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\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .sm\:flex-row{
    flex-direction: row;
  }

  .sm\:items-start{
    align-items: flex-start;
  }

  .sm\:items-center{
    align-items: center;
  }

  .sm\:justify-between{
    justify-content: space-between;
  }

  .sm\:gap-3{
    gap: 0.75rem;
  }

  .sm\:rounded-2xl{
    border-radius: 20px;
  }

  .sm\:p-5{
    padding: 1.25rem;
  }

  .sm\:p-6{
    padding: 1.5rem;
  }

  .sm\:px-0{
    padding-left: 0px;
    padding-right: 0px;
  }

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

  .sm\:pb-0{
    padding-bottom: 0px;
  }

  .sm\:text-2xl{
    font-size: 1.5rem;
    line-height: 2rem;
  }
}
@media (min-width: 768px){

  .md\:col-span-5{
    grid-column: span 5 / span 5;
  }

  .md\:col-span-7{
    grid-column: span 7 / span 7;
  }

  .md\:mx-0{
    margin-left: 0px;
    margin-right: 0px;
  }

  .md\:block{
    display: block;
  }

  .md\:grid{
    display: grid;
  }

  .md\:w-auto{
    width: auto;
  }

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

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

  .md\:overflow-visible{
    overflow: visible;
  }

  .md\:px-0{
    padding-left: 0px;
    padding-right: 0px;
  }
}
@media (min-width: 1024px){

  .lg\:static{
    position: static;
  }

  .lg\:col-span-4{
    grid-column: span 4 / span 4;
  }

  .lg\:col-span-8{
    grid-column: span 8 / span 8;
  }

  .lg\:mx-0{
    margin-left: 0px;
    margin-right: 0px;
  }

  .lg\:mb-3{
    margin-bottom: 0.75rem;
  }

  .lg\:block{
    display: block;
  }

  .lg\:inline-flex{
    display: inline-flex;
  }

  .lg\:hidden{
    display: none;
  }

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

  .lg\:border-b-0{
    border-bottom-width: 0px;
  }

  .lg\:bg-transparent{
    background-color: transparent;
  }

  .lg\:px-0{
    padding-left: 0px;
    padding-right: 0px;
  }

  .lg\:py-0{
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .lg\:opacity-0{
    opacity: 0;
  }

  .group:hover .lg\:group-hover\:opacity-100{
    opacity: 1;
  }
}

