/*
! tailwindcss v3.4.3 | 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] {
  display: none;
}

[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

[multiple] {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

[type='checkbox'],[type='radio'] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

[type='checkbox'] {
  border-radius: 0px;
}

[type='radio'] {
  border-radius: 100%;
}

[type='checkbox']:focus,[type='radio']:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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);
}

[type='checkbox']:checked,[type='radio']:checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type='checkbox']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

[type='radio']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='checkbox']:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='file'] {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

[type='file']:focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

*, ::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:  ;
}

.container {
  width: 100%;
}

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

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

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

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

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

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

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.-right-1 {
  right: -0.25rem;
}

.-top-1 {
  top: -0.25rem;
}

.bottom-0 {
  bottom: 0px;
}

.left-0 {
  left: 0px;
}

.left-10 {
  left: 2.5rem;
}

.right-0 {
  right: 0px;
}

.right-10 {
  right: 2.5rem;
}

.right-2 {
  right: 0.5rem;
}

.top-1 {
  top: 0.25rem;
}

.top-1\.5 {
  top: 0.375rem;
}

.top-2 {
  top: 0.5rem;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.col-span-1 {
  grid-column: span 1 / span 1;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.col-span-3 {
  grid-column: span 3 / span 3;
}

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

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.-mb-px {
  margin-bottom: -1px;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

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

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mt-0 {
  margin-top: 0px;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-1\.5 {
  margin-top: 0.375rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

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

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-2 {
  height: 0.5rem;
}

.h-20 {
  height: 5rem;
}

.h-3 {
  height: 0.75rem;
}

.h-3\.5 {
  height: 0.875rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-8 {
  height: 2rem;
}

.h-\[720px\] {
  height: 720px;
}

.h-screen {
  height: 100vh;
}

.max-h-48 {
  max-height: 12rem;
}

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

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

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

.min-h-\[220px\] {
  min-height: 220px;
}

.min-h-\[320px\] {
  min-height: 320px;
}

.min-h-screen {
  min-height: 100vh;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-2 {
  width: 0.5rem;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.w-28 {
  width: 7rem;
}

.w-3 {
  width: 0.75rem;
}

.w-3\.5 {
  width: 0.875rem;
}

.w-32 {
  width: 8rem;
}

.w-36 {
  width: 9rem;
}

.w-4 {
  width: 1rem;
}

.w-40 {
  width: 10rem;
}

.w-44 {
  width: 11rem;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-56 {
  width: 14rem;
}

.w-64 {
  width: 16rem;
}

.w-8 {
  width: 2rem;
}

.w-80 {
  width: 20rem;
}

.w-\[20\%\] {
  width: 20%;
}

.w-\[24\%\] {
  width: 24%;
}

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

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-full {
  min-width: 100%;
}

.max-w-0 {
  max-width: 0px;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-\[120px\] {
  max-width: 120px;
}

.max-w-\[130px\] {
  max-width: 130px;
}

.max-w-\[200px\] {
  max-width: 200px;
}

.max-w-full {
  max-width: 100%;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xl {
  max-width: 36rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.shrink {
  flex-shrink: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.table-fixed {
  table-layout: fixed;
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.resize {
  resize: both;
}

.list-disc {
  list-style-type: disc;
}

.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));
}

.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;
}

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

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

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

.gap-0 {
  gap: 0px;
}

.gap-0\.5 {
  gap: 0.125rem;
}

.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;
}

.gap-8 {
  gap: 2rem;
}

.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}

.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}

.gap-x-8 {
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}

.gap-y-0 {
  row-gap: 0px;
}

.gap-y-0\.5 {
  row-gap: 0.125rem;
}

.gap-y-1 {
  row-gap: 0.25rem;
}

.gap-y-1\.5 {
  row-gap: 0.375rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-0 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.self-center {
  align-self: center;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.break-words {
  overflow-wrap: break-word;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-l {
  border-left-width: 1px;
}

.border-l-2 {
  border-left-width: 2px;
}

.border-r {
  border-right-width: 1px;
}

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
}

.border-rose-400 {
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity));
}

.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity));
}

.border-zinc-300 {
  --tw-border-opacity: 1;
  border-color: rgb(212 212 216 / var(--tw-border-opacity));
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}

.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity));
}

.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
}

.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity));
}

.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}

.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / var(--tw-bg-opacity));
}

.bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-zinc-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity));
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1 {
  padding: 0.25rem;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.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-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;
}

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

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

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

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

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

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

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

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

.pb-4 {
  padding-bottom: 1rem;
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-5 {
  padding-left: 1.25rem;
}

.pl-7 {
  padding-left: 1.75rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

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

.pt-6 {
  padding-top: 1.5rem;
}

.pt-8 {
  padding-top: 2rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.align-middle {
  vertical-align: middle;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

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

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[11px\] {
  font-size: 11px;
}

.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;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.italic {
  font-style: italic;
}

.leading-5 {
  line-height: 1.25rem;
}

.leading-6 {
  line-height: 1.5rem;
}

.leading-none {
  line-height: 1;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-snug {
  line-height: 1.375;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity));
}

.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
}

.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity));
}

.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity));
}

.text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity));
}

.text-rose-900 {
  --tw-text-opacity: 1;
  color: rgb(136 19 55 / var(--tw-text-opacity));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity));
}

.text-zinc-800 {
  --tw-text-opacity: 1;
  color: rgb(39 39 42 / var(--tw-text-opacity));
}

.text-zinc-900 {
  --tw-text-opacity: 1;
  color: rgb(24 24 27 / var(--tw-text-opacity));
}

.underline {
  text-decoration-line: underline;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.opacity-0 {
  opacity: 0;
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-emerald-500 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity));
}

.ring-rose-500 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity));
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-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;
}

.\[scrollbar-gutter\:stable\] {
  scrollbar-gutter: stable;
}

/* Mobile UI — kept in its own file, imported here so it's compiled into app.css */

/* =============================================================================
   Mobile UI — Quavix Messenger
   All styles prefixed with `.mob-` to avoid any collision with desktop classes.
   Uses CSS custom properties (theme vars) defined by the existing theme system.
   ============================================================================= */

/* ── App shell: fixed to the viewport like a native app ────────────────────── */

/*
 * Mobile keyboard behavior (especially iOS Safari) can still force page-level
 * scrolling unless the body/root wrappers are explicitly locked.
 * Keep the document itself non-scrollable and let only inner list panes scroll.
 */

.mob-body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.mob-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Safe area insets for iPhone notch and home bar */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.mob-shell[data-keyboard-open="true"] {
  padding-bottom: 0;
}

.mob-shell[data-keyboard-open="true"] .mob-tab-bar {
  display: none;
}

.mob-shell[data-keyboard-open="true"] .mob-screen {
  padding-bottom: 0;
}

/* ── Screen area (content between header and tab bar) ───────────────────────── */

.mob-screen {
  flex: 1;
  /*
   * min-height: 0 is mandatory on flex children that need to shrink below
   * their natural content size. Without it overflow:hidden does nothing and
   * the parent expands to hold all content.
   */
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Reserve space for the fixed bottom tab bar */
  padding-bottom: 56px;
}

/* ── Message list — the ONLY scrollable element in the chat view ────────────── */

#messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Native momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /*
   * Stop the scroll event from bubbling to parent containers when the list
   * reaches its top or bottom edge (prevents "page jank").
   */
  overscroll-behavior-y: contain;
  /*
   * Tell the browser this element handles vertical panning.
   * This makes iOS immediately route touch-move events here instead of
   * waiting to decide whether the outer page should scroll.
   */
  touch-action: pan-y;
}

/* ── Bottom Tab Bar ─────────────────────────────────────────────────────────── */

.mob-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  /* Push above iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(56px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-start;
  background: hsl(var(--bg));
  border-top: 1px solid hsl(var(--border));
  z-index: 70;
}

.mob-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  gap: 3px;
  text-decoration: none;
  color: hsl(var(--text-muted));
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mob-tab-item--active {
  color: hsl(var(--accent));
}

.mob-tab-icon {
  width: 22px;
  height: 22px;
}

.mob-tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.mob-tab-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  background: hsl(var(--accent));
  color: white;
}

/* ── Page header ────────────────────────────────────────────────────────────── */

.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: hsl(var(--bg));
  border-bottom: 1px solid hsl(var(--border));
  /* Safe area: push below iPhone notch */
  padding-top: calc(12px + env(safe-area-inset-top));
  flex-shrink: 0;
}

.mob-header-title {
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--text));
  font-family: var(--font-sans);
}

.mob-header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.mob-header-action:active {
  background: hsl(var(--accent) / 0.22);
}

.mob-header-plus {
  border: none;
  background: transparent;
  color: hsl(var(--accent));
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  padding: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mob-header-plus:active {
  opacity: 0.8;
}

.mob-header-icon-btn {
  border: none;
  background: transparent;
  color: hsl(var(--text-muted));
  padding: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mob-header-icon-btn:active {
  color: hsl(var(--text));
}

/* ── Chat screen header (back button variant) ───────────────────────────────── */

.mob-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: hsl(var(--bg));
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.mob-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: hsl(var(--accent));
  flex-shrink: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mob-chat-header-info {
  flex: 1;
  min-width: 0;
}

.mob-chat-header-name {
  font-size: 16px;
  font-weight: 600;
  color: hsl(var(--text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-chat-header-status {
  font-size: 11px;
  margin-top: 1px;
}

/* ── Search bar ─────────────────────────────────────────────────────────────── */

.mob-search-bar {
  padding: 8px 12px;
  background: hsl(var(--bg));
  flex-shrink: 0;
}

.mob-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--surface));
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--border));
}

.mob-search-icon {
  width: 16px;
  height: 16px;
  color: hsl(var(--text-muted));
  flex-shrink: 0;
}

.mob-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  /* 16px minimum prevents iOS Safari from auto-zooming on focus */
  font-size: 16px;
  color: hsl(var(--text));
  font-family: var(--font-sans);
}

.mob-search-input::-moz-placeholder {
  color: hsl(var(--text-muted));
}

.mob-search-input::placeholder {
  color: hsl(var(--text-muted));
}

/* Remove the native iOS/WebKit clear button that appears on type="search" */

.mob-search-input::-webkit-search-cancel-button,
.mob-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Section labels ─────────────────────────────────────────────────────────── */

.mob-section-label {
  padding: 12px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
}

/* ── Conversation / person rows ─────────────────────────────────────────────── */

.mob-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s ease;
}

.mob-row:active {
  background: hsl(var(--accent) / 0.06);
}

.mob-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.mob-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-avatar--group {
  background: hsl(210 50% 50% / 0.15);
  color: hsl(210 60% 50%);
  border-radius: 14px;
}

.mob-avatar--community {
  background: hsl(270 50% 55% / 0.15);
  color: hsl(270 60% 55%);
  border-radius: 14px;
}

.mob-presence-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid hsl(var(--bg));
}

.mob-row-body {
  flex: 1;
  min-width: 0;
}

.mob-row-name {
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-row-sub {
  font-size: 12px;
  color: hsl(var(--text-muted));
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-unread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: hsl(var(--accent));
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mob-row-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: hsl(var(--text-muted));
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mob-row-action-btn--chat {
  color: hsl(var(--text-muted));
}

.mob-row-action-btn--folder {
  color: hsl(var(--text-subtle));
  opacity: 0.65;
}

.mob-row-action-btn:active {
  opacity: 1;
  background: hsl(var(--accent) / 0.06);
  color: hsl(var(--text));
}

.mob-folder-toggle-btn {
  text-align: left;
}

.mob-folder-caret {
  width: 14px;
  height: 14px;
  color: hsl(var(--text-muted));
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.mob-folder-caret--open {
  transform: rotate(0deg);
}

.mob-folder-gap {
  height: 8px;
}

/* ── Person card (directory) ────────────────────────────────────────────────── */

.mob-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.mob-dm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.mob-dm-btn:active {
  background: hsl(var(--accent) / 0.22);
}

/* ── Tab switcher (directory People / Stocks) ───────────────────────────────── */

.mob-tab-switcher {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: hsl(var(--bg));
  flex-shrink: 0;
}

.mob-tab-switch-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: hsl(var(--text-muted));
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mob-tab-switch-btn--active {
  background: hsl(var(--accent));
  color: white;
  border-color: hsl(var(--accent));
}

/* ── Stock section header ───────────────────────────────────────────────────── */

.mob-stock-section-header {
  padding: 10px 16px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: hsl(var(--accent));
  text-transform: uppercase;
}

.mob-stock-tag {
  font-weight: 700;
  color: hsl(var(--accent));
}

/* ── Communities ────────────────────────────────────────────────────────────── */

.mob-community-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.mob-community-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.mob-join-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: hsl(var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.mob-join-btn:active {
  opacity: 0.8;
}

.mob-member-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  flex-shrink: 0;
}

/* ── Profile ────────────────────────────────────────────────────────────────── */

.mob-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.18);
  color: hsl(var(--accent));
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-profile-section {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 14px;
}

.mob-profile-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 6px;
}

.mob-profile-section-value {
  font-size: 15px;
  color: hsl(var(--text));
  line-height: 1.5;
}

.mob-profile-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mob-tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.mob-tag--long {
  color: hsl(142 72% 40%);
}

.mob-tag--short {
  color: hsl(0 72% 55%);
}

.mob-text-muted {
  font-size: 12px;
  color: hsl(var(--text-subtle));
}

.mob-signout-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #ef4444;
  background: hsl(0 72% 51% / 0.08);
  border: 1px solid hsl(0 72% 51% / 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── Form fields (profile edit) ─────────────────────────────────────────────── */

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

.mob-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsl(var(--text-subtle));
}

.mob-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text));
  /* 16px minimum prevents iOS Safari from auto-zooming on focus */
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.mob-input:focus {
  border-color: hsl(var(--accent));
}

.mob-textarea {
  resize: none;
  line-height: 1.5;
}

.mob-save-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: hsl(var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.mob-save-btn:active {
  opacity: 0.85;
}

/* ── Mobile action sheets ───────────────────────────────────────────────────── */

.mob-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.2);
  animation: mob-sheet-fade-in 0.2s ease-out;
}

.mob-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  padding: 16px;
  background: hsl(var(--surface));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.22);
  z-index: 65;
  animation: mob-sheet-up 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.messenger-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
}

.messenger-sheet-preview-shell {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--surface));
}

.messenger-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.messenger-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  background: hsl(var(--surface));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.22);
}

.messenger-sheet-overlay .messenger-sheet-panel {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom));
  animation: mob-sheet-up 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.messenger-sheet-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.messenger-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: hsl(var(--border));
  margin: 0 auto;
}

.messenger-sheet-title {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--text));
}

.messenger-sheet-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: hsl(var(--text-muted));
}

.messenger-sheet-body {
  color: hsl(var(--text));
}

.messenger-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messenger-sheet-action-btn {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

@keyframes mob-sheet-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mob-sheet-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── iOS zoom prevention ────────────────────────────────────────────────────── */

/*
 * iOS Safari zooms in whenever a focused <input> or <textarea> has a
 * font-size below 16px. The composer textarea inherits text-sm (14px) from
 * the shared desktop component, so we override it here scoped to the mobile
 * body class so the desktop layout is unaffected.
 */

.mob-body .message-textarea {
  font-size: 16px;
}

/* Drag and drop styles */

[data-draggable-chat] {
  cursor: grab;
}

[data-draggable-chat]:active {
  cursor: grabbing;
}

[data-folder-drop].drag-over {
  background: hsl(var(--accent) / 0.1) !important;
  border: 2px dashed hsl(var(--accent)) !important;
}

/* LiveView specific classes for your customizations */

.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
  display: none;
}

.phx-click-loading {
  opacity: 0.5;
  transition: opacity 1s ease-out;
}

.phx-loading{
  cursor: wait;
}

.phx-modal {
  opacity: 1!important;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.phx-modal-content {
  background-color: #fefefe;
  margin: 15vh auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.phx-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.fade-in-scale {
  animation: 0.2s ease-in 0s normal forwards 1 fade-in-scale-keys;
}

.fade-out-scale {
  animation: 0.2s ease-out 0s normal forwards 1 fade-out-scale-keys;
}

.fade-in {
  animation: 0.2s ease-out 0s normal forwards 1 fade-in-keys;
}

.fade-out {
  animation: 0.2s ease-out 0s normal forwards 1 fade-out-keys;
}

@keyframes fade-in-scale-keys{
  0% {
    scale: 0.95;
    opacity: 0;
  }

  100% {
    scale: 1.0;
    opacity: 1;
  }
}

@keyframes fade-out-scale-keys{
  0% {
    scale: 1.0;
    opacity: 1;
  }

  100% {
    scale: 0.95;
    opacity: 0;
  }
}

@keyframes fade-in-keys{
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-out-keys{
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Import Source Serif 4 for headings */

/* Font Families */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', ui-serif, Georgia, serif;
  --font-mono: ui-monospace, 'Cascadia Code', monospace;
}

body {
  font-family: var(--font-sans);
}

/* Shared modal system */

.messenger-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.messenger-modal-preview-shell {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--surface));
}

.messenger-modal-overlay.hidden,
.messenger-modal-preview-shell.hidden {
  display: none;
}

.messenger-modal-backdrop,
.messenger-modal-dismiss {
  position: absolute;
  inset: 0;
}

.messenger-modal-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.messenger-modal-dismiss {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

.messenger-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.messenger-modal--sm {
  max-width: 24rem;
}

.messenger-modal--md {
  max-width: 32rem;
}

.messenger-modal--lg {
  max-width: 40rem;
}

.messenger-modal--xl {
  max-width: 56rem;
}

.messenger-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.messenger-modal-header-copy {
  min-width: 0;
}

.messenger-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.messenger-modal-title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: hsl(var(--text));
}

.messenger-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: hsl(var(--text-muted));
}

.messenger-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  padding: 0;
  background: transparent;
  color: hsl(var(--text-muted));
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.messenger-modal-close:hover {
  color: hsl(var(--text));
  opacity: 0.85;
}

.messenger-modal-body {
  padding: 18px 20px;
  color: hsl(var(--text));
}

.messenger-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.messenger-modal-callout {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
}

.messenger-modal-callout--neutral {
  background: hsl(var(--surface));
  color: hsl(var(--text-muted));
}

.messenger-modal-callout--warning {
  background: hsl(var(--warning) / 0.12);
  border-color: hsl(var(--warning) / 0.3);
  color: hsl(var(--warning));
}

.messenger-modal-callout--danger {
  background: hsl(var(--danger) / 0.09);
  border-color: hsl(var(--danger) / 0.28);
  color: hsl(var(--danger));
}

.messenger-modal-callout--success {
  background: hsl(var(--accent) / 0.1);
  border-color: hsl(var(--accent) / 0.28);
  color: hsl(var(--accent));
}

/* Typography Scale */

.text-terminal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.text-terminal-meta {
  font-size: 10px;
  font-family: var(--font-mono);
}

/* Terminal Panel Components */

.terminal-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  overflow: visible;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
}

.terminal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
}

.terminal-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 0;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

/* ── Compliance portal status / severity / action badges ── */

/* When a <select> is used as a cbadge (inline status picker), strip native styles */

select.cbadge {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  /* tiny chevron ▾ */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='currentColor' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px !important;
  line-height: 1.35;
}

select.cbadge:focus {
  outline: 2px solid hsl(var(--accent) / 0.4);
  outline-offset: 1px;
}

.cbadge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.01em;
}

/* Export / flag workflow status */

.cbadge-completed,
.cbadge-reviewed {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
}

.cbadge-running {
  background: hsl(var(--accent) / 0.07);
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / 0.3);
}

.cbadge-pending {
  background: hsl(var(--border));
  color: hsl(var(--text-muted));
}

.cbadge-failed {
  background: hsl(var(--danger) / 0.12);
  color: hsl(var(--danger));
}

.cbadge-escalated {
  background: hsl(var(--danger) / 0.08);
  color: hsl(var(--danger));
  border: 1px solid hsl(var(--danger) / 0.25);
}

.cbadge-false-positive {
  background: hsl(var(--border));
  color: hsl(var(--text-subtle));
}

/* Severity — low→green, medium→yellow, high→orange, critical→red */

.cbadge-critical {
  background: hsl(var(--danger) / 0.15);
  color: hsl(var(--danger));
  border: 1px solid hsl(var(--danger) / 0.3);
}

.cbadge-high {
  background: hsl(25 85% 55% / 0.14);
  color: hsl(25 80% 46%);
  border: 1px solid hsl(25 85% 55% / 0.32);
}

[data-server-theme="dark"] .cbadge-high,
[data-server-theme="luckin"] .cbadge-high {
  color: hsl(25 80% 62%);
}

.cbadge-medium {
  background: hsl(var(--warning) / 0.15);
  color: hsl(var(--warning));
  border: 1px solid hsl(var(--warning) / 0.3);
}

.cbadge-low {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / 0.25);
}

/* Access log action type badges — unified outlined style */

.cbadge-search {
  background: hsl(var(--accent) / 0.06);
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / 0.2);
}

.terminal-row {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: background-color 0.15s ease;
}

.terminal-row:last-child {
  border-bottom: none;
}

.terminal-row:hover {
  background: hsl(var(--surface) / 0.5);
}

/* Ghost Navigation Buttons */

.ghost-nav {
  background: hsl(var(--surface));
  border: none;
  border-radius: 4px;
  color: hsl(var(--text-subtle));
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
}

.ghost-nav:hover,
.ghost-nav.active {
  background: hsl(var(--accent-weak));
  color: hsl(var(--accent));
}

/* Theme Switcher Dots */

.theme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--text-muted));
  opacity: 0.4;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.theme-dot.active,
.theme-dot:hover {
  background: hsl(var(--accent));
  opacity: 1;
  transform: scale(1.2);
}

/* Messenger-specific button styles */

.messenger-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.messenger-btn-primary {
  background: hsl(var(--accent));
  color: white;
}

.messenger-btn-primary:hover {
  opacity: 0.9;
}

.messenger-btn-secondary {
  background: hsl(var(--muted));
  color: hsl(var(--text));
}

.messenger-btn-secondary:hover {
  background: hsl(var(--border));
}

.messenger-btn-danger {
  background: hsl(var(--danger));
  color: white;
}

.messenger-btn-danger:hover {
  opacity: 0.92;
}

.messenger-btn-warning {
  background: hsl(var(--warning));
  color: white;
}

.messenger-btn-warning:hover {
  opacity: 0.92;
}

.messenger-btn:disabled,
.messenger-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Locked button — pointer-events disabled so no hover flash at all */

.messenger-btn-locked {
  background: transparent;
  color: hsl(var(--text-muted));
  border: 1px solid hsl(var(--border));
  cursor: default;
  pointer-events: none;
  transition: none;
}

/* Locked plain — for buttons with their own inline background style */

.messenger-btn-locked-plain {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  transition: none;
}

/* Icon-only button — strips all browser chrome including hover highlight */

.messenger-btn-icon {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0;
  cursor: pointer;
}

.messenger-btn-icon:hover,
.messenger-btn-icon:focus,
.messenger-btn-icon:focus-visible,
.messenger-btn-icon:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Input styles */

.messenger-input {
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--bg));
  color: hsl(var(--text));
  transition: border-color 0.2s ease;
}

/* Select dropdowns using messenger-input get a custom chevron */

select.messenger-input {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px !important;
  cursor: pointer;
}

.messenger-input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

/* Message compose area */

.message-compose-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.message-compose-container form {
  outline: none;
}

.message-compose-container form:focus {
  outline: none;
}

/* The pill wrapper - has all the visual styling */

.message-input-pill {
  position: relative;
  border-radius: 20px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  transition: border-color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  outline: none;
}

.message-input-pill:focus-within {
  border-color: hsl(var(--accent));
  outline: none;
}

.message-input-pill:focus {
  outline: none;
}

/* The textarea - invisible, full width inside the pill */

.message-textarea {
  resize: none;
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
  background: transparent;
  color: hsl(var(--text));
  padding: 12px 50px 12px 16px;
  line-height: 1.4;
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
}

/* Hide scrollbars in chat display and composer */

#messages-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#messages-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.message-textarea {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.message-textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.message-textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}

.message-textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.message-textarea::-moz-placeholder {
  color: hsl(var(--text-muted));
}

.message-textarea::placeholder {
  color: hsl(var(--text-muted));
}

/* Send button - absolutely positioned inside the pill */

.send-button-inside {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.send-button-inside:hover {
  opacity: 0.9;
}

.send-button-inside:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Typing indicator animation */

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.typing-dot {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* Price chart card (below AI message) */

.price-chart-card {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  position: relative;
  /* Reserve fixed height to prevent layout shift during chart rendering */
  min-height: 178px;
}

.price-chart-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  /* Fixed height to prevent layout shift */
  height: 18px;
}

.price-chart-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: hsl(var(--text));
}

.price-chart-card-status {
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(var(--text-subtle));
}

.price-chart-card-canvas {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.price-chart-card-meta {
  margin-top: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(var(--text-subtle));
  /* Fixed height to prevent layout shift */
  height: 14px;
}

/* Right surface (unified right-side experience) */

.right-surface {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  width: 360px;
  max-width: 42vw;
  transition: width 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), 
              opacity 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), 
              transform 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.right-surface--closed {
  /* Keep full width so chat column doesn't resize */
  width: 360px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.right-surface--open {
  opacity: 1;
  transform: translateX(0);
}

.right-surface-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 0 12px 18px 12px;
}

.right-surface-search-layer {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: -70px;
}

.right-surface-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px hsl(var(--bg) / 0.55);
  transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.right-surface-pill-icon {
  color: hsl(var(--text-subtle));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.right-surface-compact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.right-surface-compact-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.right-surface-mini-search {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--accent) / 0.35);
  background: hsl(var(--accent) / 0.14);
  color: hsl(var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.right-surface-mini-search:hover {
  background: hsl(var(--accent) / 0.18);
  border-color: hsl(var(--accent) / 0.45);
}

.right-surface-mini-search-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.right-surface--compact .right-surface-search-layer {
  margin-bottom: 0;
}

.right-surface--compact .right-surface-feed {
  display: none;
}

.right-surface-related {
  margin: 0 0 10px 2px;
}

.right-surface-related-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.right-surface-related-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.4px;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
}

.right-surface-related-chip {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--text-subtle));
  background: hsl(var(--surface) / 0.7);
}

.right-surface-related-quote {
  font-size: 12px;
  line-height: 1.35;
  color: hsl(var(--text));
  opacity: 0.9;
}

.right-surface-pill-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: hsl(var(--text-subtle));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.right-surface-pill-btn:hover {
  background: hsl(var(--surface));
  color: hsl(var(--text));
}

.right-surface-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: hsl(var(--text));
  font-size: 12px;
  line-height: 1;
  padding: 0;
  margin: 0;
  outline: none;
  vertical-align: middle;
}

.right-surface-search-input::-moz-placeholder {
  color: hsl(var(--text-muted));
}

.right-surface-search-input::placeholder {
  color: hsl(var(--text-muted));
}

.right-surface-filter-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.right-surface-filter-chip {
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.65);
  color: hsl(var(--text-subtle));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.right-surface-filter-chip:hover {
  color: hsl(var(--text));
  background: hsl(var(--surface));
}

.right-surface-filter-chip.is-active {
  color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent) / 0.35);
}

.right-surface-feed {
  margin-top: 14px;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes right-surface-feed-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.right-surface-feed-item {
  animation: right-surface-feed-in 550ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.right-surface-section-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin: 0 0 8px 2px;
}

.right-surface-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-surface-card {
  border-radius: 14px;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--card));
  padding: 12px 12px;
  overflow: hidden;
  min-width: 0;
}

.right-surface-card-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(var(--text-muted));
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.right-surface-card-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: hsl(var(--accent));
  text-decoration: underline;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-underline-offset: 2px;
}

.right-surface-card-title:hover {
  text-decoration: none;
}

.right-surface-card-submeta {
  margin-top: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(var(--text-subtle));
}

.right-surface-card-snippet {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: hsl(var(--text));
}

.right-surface-trace-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.right-surface-trace-item {
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 10px;
  padding: 8px 10px;
  background: hsl(var(--surface));
}

.right-surface-trace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--text));
}

.right-surface-trace-tool {
  font-family: var(--font-mono);
}

.right-surface-trace-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}

.right-surface-trace-status.is-error {
  background: hsl(var(--danger) / 0.15);
  color: hsl(var(--danger));
}

.right-surface-trace-args,
.right-surface-trace-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: hsl(var(--text-subtle));
  margin-top: 6px;
  word-break: break-word;
}

.right-surface-trace-meta.is-error {
  color: hsl(var(--danger));
}

.right-surface-trace-excerpts {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.right-surface-trace-excerpts-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: hsl(var(--text-muted));
}

.right-surface-trace-excerpt {
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.7);
}

.right-surface-trace-excerpt-text {
  font-size: 12px;
  color: hsl(var(--text));
  line-height: 1.35;
}

.right-surface-trace-excerpt-meta {
  margin-top: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(var(--text-subtle));
}

.right-surface-empty {
  font-size: 12px;
  color: hsl(var(--text-muted));
  padding: 10px 2px;
  text-align: center;
}

/* ── Dashboard empty state ── */

.dashboard-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  padding: 32px;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dashboard-empty-icon {
  width: 56px;
  height: 56px;
  color: hsl(var(--border));
  margin-bottom: 8px;
}

.dashboard-empty-title {
  font-size: 16px;
  font-weight: 500;
  color: hsl(var(--text-muted));
}

.dashboard-empty-sub {
  font-size: 12px;
  color: hsl(var(--text-muted));
  opacity: 0.6;
  max-width: 240px;
  line-height: 1.6;
}

/* ── Right panel watchlist (dashboard mode) ── */

.right-surface-watchlist {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.right-surface-watchlist-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.right-surface-watchlist-body::-webkit-scrollbar {
  display: none;
}

.right-surface-watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 10px 16px;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.right-surface-watchlist-section {
  padding: 14px 16px;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.right-surface-watchlist-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 10px;
}

.right-surface-watchlist-section-label--long {
  color: hsl(142 52% 40%);
}

.right-surface-watchlist-section-label--short {
  color: hsl(var(--danger));
}

.right-surface-watchlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 8px;
}

.right-surface-watchlist-row-info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.right-surface-watchlist-ticker {
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--text));
  width: 60px;
  flex-shrink: 0;
}

.right-surface-watchlist-community {
  font-size: 10px;
  color: hsl(var(--text-muted));
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.right-surface-watchlist-remove {
  font-size: 14px;
  line-height: 1;
  color: hsl(var(--text-muted));
  transition: opacity 0.15s ease;
  padding: 0 2px;
  cursor: pointer;
}

.right-surface-watchlist-remove:hover {
  color: hsl(var(--danger));
}

.right-surface-watchlist-empty {
  font-size: 11px;
  color: hsl(var(--text-muted));
  padding: 4px 0 8px 0;
  font-style: italic;
}

.right-surface-watchlist-add-form {
  margin-top: 10px;
}

.right-surface-watchlist-add-input {
  background: transparent;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--text-muted));
  width: 100%;
  padding: 0;
  vertical-align: middle;
  display: block;
}

.right-surface-watchlist-add-input::-moz-placeholder {
  color: hsl(var(--text-muted));
  opacity: 0.6;
}

.right-surface-watchlist-add-input::placeholder {
  color: hsl(var(--text-muted));
  opacity: 0.6;
}

.right-surface-watchlist-add-input:focus {
  outline: none !important;
  box-shadow: none !important;
  color: hsl(var(--text));
}

/* Left surface (conversations + communities) */

.left-surface {
  border-right: 1px solid hsl(var(--border));
}

.left-surface-search-layer {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 12px 10px -56px 10px;
}

.left-surface-search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px hsl(var(--bg) / 0.55);
}

.left-surface-pill-icon {
  color: hsl(var(--text-subtle));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.left-surface-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: hsl(var(--text));
  font-size: 12px;
  line-height: 1;
  padding: 0;
  margin: 0;
  outline: none;
  vertical-align: middle;
}

.left-surface-search-input::-moz-placeholder {
  color: hsl(var(--text-muted));
}

.left-surface-search-input::placeholder {
  color: hsl(var(--text-muted));
}

.left-surface-pill-btn {
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface));
  color: hsl(var(--text-subtle));
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.left-surface-pill-btn:hover {
  color: hsl(var(--text));
  background: hsl(var(--card));
}

/* Search entity tag bubble */

.search-entity-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.search-entity-tag-icon {
  font-size: 10px;
  opacity: 0.7;
}

.search-entity-tag-x {
  background: none;
  border: none;
  color: hsl(var(--accent));
  font-size: 13px;
  cursor: pointer;
  padding: 0 1px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.search-entity-tag-x:hover {
  opacity: 1;
}

/* Search entity autocomplete dropdown */

.search-entity-dropdown {
  margin-top: 4px;
  border-radius: 8px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 8px 24px hsl(var(--bg) / 0.5);
  overflow: hidden;
  z-index: 30;
}

.search-entity-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: hsl(var(--text));
  transition: background 0.1s;
}

.search-entity-dropdown-item:hover {
  background: hsl(var(--surface));
}

.search-entity-dropdown-icon {
  font-size: 11px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: hsl(var(--text-subtle));
}

.search-entity-dropdown-badge {
  margin-left: auto;
  font-size: 10px;
  color: hsl(var(--text-muted));
  flex-shrink: 0;
}

/* Search result rows */

.search-result-row {
  padding: 8px 10px;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  transition: background 0.1s;
}

.search-result-row:last-child {
  border-bottom: none;
}

.search-result-row:hover {
  background: hsl(var(--surface));
}

.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.search-result-sender {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-context {
  font-size: 10px;
  color: hsl(var(--text-muted));
  white-space: nowrap;
  flex-shrink: 0;
}

.search-result-snippet {
  font-size: 12px;
  color: hsl(var(--text-subtle));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-timestamp {
  font-size: 10px;
  color: hsl(var(--text-muted));
  margin-top: 1px;
}

/* Search result message highlight */

.msg-highlight {
  animation: msg-flash 2s ease-out;
}

@keyframes msg-flash {
  0%, 15% {
    background: hsl(var(--accent) / 0.18);
    border-radius: 12px;
  }

  100% {
    background: transparent;
  }
}

/* Left sidebar row actions (mute + hide) */

.left-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.left-action-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: opacity 0.15s ease;
}

.left-action-btn:hover {
  opacity: 1;
}

.left-action-btn:active {
  transform: none;
}

/* Speaker mute icon (SVG) */

.speaker-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Minimal mute indicator: hollow dot (on) vs filled dot (muted) */

.mute-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid hsl(var(--text-subtle));
  background: transparent;
}

.mute-dot.is-muted {
  border-color: hsl(var(--danger));
  background: hsl(var(--danger));
}

/* CSS "X" icon (avoids emoji/glyph differences) */

.close-x {
  position: relative;
  width: 12px;
  height: 12px;
}

.close-x::before,
.close-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--text-subtle));
  transform-origin: center;
}

.close-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.left-action-btn.danger .close-x::before,
.left-action-btn.danger .close-x::after {
  background: hsl(var(--danger));
}

/* ── Context menu ── */

.ctx-menu {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  box-shadow: 0 8px 24px hsl(var(--bg) / 0.5), 0 2px 6px hsl(var(--bg) / 0.3);
  padding: 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  animation: ctx-in 120ms ease;
}

@keyframes ctx-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to   {
    opacity: 1;
    transform: scale(1);
  }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: hsl(var(--text));
  background: transparent;
  border: none;
  text-align: left;
  cursor: default;
  transition: background 0.1s ease;
  white-space: nowrap;
}

.ctx-item:hover {
  background: hsl(var(--surface));
}

.ctx-item.ctx-danger {
  color: hsl(var(--danger));
}

.ctx-item.ctx-danger:hover {
  background: hsl(var(--danger) / 0.08);
}

.ctx-item.ctx-disabled {
  color: hsl(var(--text-muted));
  pointer-events: none;
}

.ctx-divider {
  height: 1px;
  background: hsl(var(--border) / 0.6);
  margin: 3px 4px;
}

/* Submenu */

.ctx-item-has-submenu {
  position: relative;
}

.ctx-submenu {
  display: none;
  min-width: 160px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  box-shadow: 0 8px 24px hsl(var(--bg) / 0.5);
  padding: 4px;
  z-index: 10000;
}

.ctx-arrow {
  margin-left: auto;
  font-size: 11px;
  color: hsl(var(--text-muted));
}

/* Inline rename input on folder header */

.sidebar-rename-form {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.sidebar-rename-input {
  flex: 1;
  min-width: 0;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--accent) / 0.5);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--text));
  padding: 1px 5px;
  outline: none;
}

.sidebar-rename-input:focus {
  border-color: hsl(var(--accent));
}

/* Drag-over folder highlight */

[data-folder-drop].drag-over {
  background: hsl(var(--accent) / 0.08);
  border-radius: 4px;
  outline: 1px dashed hsl(var(--accent) / 0.4);
}

/* ── Sidebar folder chevron ── */

.sidebar-folder-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: hsl(var(--text-muted));
  transition: transform 0.2s ease;
}

.sidebar-folder-chevron.is-open {
  transform: rotate(90deg);
}

/* ── Sidebar DM avatar with status overlay ── */

.sidebar-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sidebar-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid;
}

/* Anonymous avatar: same accent palette as real initials, mono digits */

.sidebar-avatar.is-anon {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Group avatar: square with rounded corners, blue-ish palette */

.sidebar-avatar--group {
  border-radius: 6px;
  background: hsl(210 50% 50% / 0.15);
  color: hsl(210 60% 50%);
}

/* Community avatar: square with rounded corners, amber/gold palette */

.sidebar-avatar--community {
  border-radius: 6px;
  background: hsl(38 75% 50% / 0.15);
  color: hsl(38 70% 42%);
}

.left-surface-section-label {
  /* Match row text size, but keep "section label" feel */
  font-size: 0.875rem;
  /* ~14px (Tailwind text-sm) */
  line-height: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--text));
  margin: 0;
  padding: 0 12px 8px 2px;
}

/* Flatten the old “terminal” chrome inside the left surface */

.left-surface .terminal-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.left-surface-hover {
  transition: background-color 0.12s ease;
  cursor: default;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.left-surface-hover:hover {
  background: hsl(var(--surface) / 0.22);
}

.left-surface-hover:active {
  background: hsl(var(--surface) / 0.3);
}

.left-surface .terminal-header {
  background: transparent;
  border: none;
  padding: 6px 4px;
}

.left-surface .terminal-row {
  border-bottom: none;
  border-radius: 0;
  margin: 0;
  padding: 8px 16px;
  transition: none;
}

.left-surface .terminal-row:hover {
  background: transparent;
}

.left-surface .terminal-row.left-row-active {
  background: transparent;
  box-shadow: inset 2px 0 0 hsl(var(--accent));
}

/* Apply the same active indicator to non-terminal rows (DMs/groups/communities). */

.left-surface .left-row-active {
  background: transparent;
  box-shadow: inset 2px 0 0 hsl(var(--accent));
}

/* ── Mobile auth pages (login, request-access) ─────────────────────────────
   Hide the desktop brand panel and show a compact top bar instead.         */

.qx-mobile-top-bar {
  display: none;
}

@media (max-width: 639px) {
  /* Stack panels vertically and let the form scroll */

  .qx-auth-shell {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
  }

  /* Hide the desktop left brand panel */

  .qx-brand-panel {
    display: none !important;
  }

  /* Show the mobile top bar */

  .qx-mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0d1117;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    flex-shrink: 0;
  }

  /* Let the form panel fill the screen */

  .qx-auth-shell > div:not(.qx-brand-panel):not(.qx-mobile-top-bar) {
    flex: none !important;
    width: 100% !important;
    padding: 32px 24px !important;
    justify-content: flex-start !important;
    padding-top: 40px !important;
  }
}

.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

.hover\:bg-zinc-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(63 63 70 / var(--tw-bg-opacity));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.hover\:\!opacity-100:hover {
  opacity: 1 !important;
}

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

.hover\:opacity-80:hover {
  opacity: 0.8;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:opacity-95:hover {
  opacity: 0.95;
}

.focus\:border-rose-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity));
}

.focus\:border-zinc-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(161 161 170 / var(--tw-border-opacity));
}

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

.focus\:ring-0: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(0px + 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);
}

.active\:text-white\/80:active {
  color: rgb(255 255 255 / 0.8);
}

.disabled\:opacity-60:disabled {
  opacity: 0.6;
}

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

.group:hover .group-hover\:opacity-60 {
  opacity: 0.6;
}

.group:hover .group-hover\:opacity-80 {
  opacity: 0.8;
}

@media (min-width: 640px) {
  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }

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

  .sm\:w-96 {
    width: 24rem;
  }

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

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

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

  .sm\:py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:leading-6 {
    line-height: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

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

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

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

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

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

@media (min-width: 1024px) {
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

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

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

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

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

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

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

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

  .lg\:justify-end {
    justify-content: flex-end;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xl\:px-28 {
    padding-left: 7rem;
    padding-right: 7rem;
  }

  .xl\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
