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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

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

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

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

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

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

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

/*
Set the default cursor for buttons.
*/

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

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

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

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

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

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

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.hidden {
  display: none;
}
.border {
  border-width: 1px;
}
.italic {
  font-style: italic;
}
.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);
}

:root {
  --lime: #CAFE6E;
  --moss: #223322;
  --bg0: #080808;
  --bg1: #0e0e0e;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --bg4: #222222;
  --border: #1e1e1e;
  --border2: #282828;
  --text1: #f5f5f5;
  --text2: #999;
  --text3: #555;
  --lime-bg: rgba(202,254,110,0.10);
  --lime-border: rgba(202,254,110,0.22);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html.light {
  --bg0: #f2f2ef;
  --bg1: #ebebе7;
  --bg2: #e2e2de;
  --bg3: #d8d8d4;
  --bg4: #ccccс8;
  --border: #d4d4d0;
  --border2: #c8c8c4;
  --text1: #1a1a18;
  --text2: #5c5c58;
  --text3: #9a9a94;
  --lime-bg: rgba(90,130,20,0.08);
  --lime-border: rgba(90,130,20,0.20);
  --lime: #6aaa00;
  --moss: #e8f5d0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg0);
  color: var(--text1);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes spin { to { transform: rotate(360deg); } }

/* scrollbars */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 2px; }

/* transitions */
.col2, .nav-item, .sidebar-item, .nb, .theme-toggle, .theme-toggle::after,
.filter-chip, .human-btn, .hq-chip, .collapse-btn, .col-divider,
.composer-box, .send-btn, .hbtn, .handoff-tile, .bubble {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.12s ease;
}

/* LOGIN */
.login-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 36px 32px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-logo {
  width: 42px; height: 42px;
  background: var(--lime);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.login-title { font-size: 22px; font-weight: 800; color: var(--text1); letter-spacing: -0.02em; }
.login-subtitle { font-size: 12px; color: var(--text3); margin-top: -12px; }
.login-fields { display: flex; flex-direction: column; gap: 10px; }
.login-input {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--text1);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.login-input:focus { border-color: var(--lime-border); }
.login-input::-moz-placeholder { color: var(--text3); }
.login-input::placeholder { color: var(--text3); }
.login-btn {
  width: 100%;
  padding: 11px;
  background: var(--lime);
  color: var(--moss);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 3px 0 0 #7aaa00;
  position: relative;
  top: 0;
  transition: top 0.1s, box-shadow 0.1s, background 0.12s;
}
.login-btn:hover { background: #b8ef50; }
.login-btn:active { top: 2px; box-shadow: 0 1px 0 0 #7aaa00; }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.login-error { font-size: 11.5px; color: #ef4444; text-align: center; min-height: 16px; }

/* CONNECTION STATUS */
.ws-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  transition: background 0.3s;
  margin-bottom: 8px;
}
.ws-status.connected { background: var(--lime); }
.ws-status.reconnecting { background: #f59e0b; animation: pulse 1s infinite; }
.ws-status.error { background: #ef4444; }

/* ASSIGN BUTTON */
.assign-btn {
  padding: 0 14px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid rgba(245,158,11,0.5);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.assign-btn:hover { background: rgba(245,158,11,0.1); border-color: #f59e0b; }

/* UNREAD PILL */
.unread-pill {
  display: inline-block;
  background: #f59e0b;
  color: #4a2800;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 14px;
  vertical-align: middle;
  margin-left: 4px;
}

/* LOAD MORE */
.load-more-btn {
  font-size: 11px;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.12s, border-color 0.12s;
}
.load-more-btn:hover { color: var(--text2); border-color: var(--bg4); }

/* SPINNER */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border2);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* LAYOUT */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* COL 1 */
.col1 {
  width: 56px;
  min-width: 56px;
  background: var(--bg0);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 14px;
  gap: 2px;
  z-index: 10;
}

.logo {
  width: 34px; height: 34px;
  background: var(--lime);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo svg { width: 18px; height: 18px; }

.nav-item {
  width: 40px; height: 44px;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  flex-shrink: 0;
}
.nav-item:hover { background: var(--bg3); }
.nav-item.active { background: var(--lime-bg); }
.nav-item svg {
  width: 17px; height: 17px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-item.active svg { stroke: var(--lime); }
.nav-label { font-size: 9px; color: var(--text3); font-weight: 600; letter-spacing: 0.02em; }
.nav-item.active .nav-label { color: var(--lime); }

.col1-spacer { flex: 1; }

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--text3);
  cursor: pointer; padding: 4px 2px; border-radius: 6px;
  margin-bottom: 4px; -webkit-user-select: none; -moz-user-select: none; user-select: none; letter-spacing: 0.3px;
}
.lang-toggle:hover { color: var(--text1); }
.lang-toggle .lang-active { color: var(--lime); }
.lang-toggle .lang-sep { color: var(--bg4); margin: 0 1px; }

.theme-toggle {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text3);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), background 0.18s;
}
html.light .theme-toggle::after { transform: translateX(16px); background: var(--lime); }
html.light .theme-toggle { background: rgba(106,170,0,0.15); border-color: rgba(106,170,0,0.3); }
.toggle-icons {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px;
  pointer-events: none;
}
.toggle-icons svg { width: 9px; height: 9px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: opacity 0.15s; }
.toggle-icons .ico-moon { stroke: var(--text3); opacity: 1; }
.toggle-icons .ico-sun { stroke: var(--text3); opacity: 0.4; }
html.light .toggle-icons .ico-moon { opacity: 0.4; }
html.light .toggle-icons .ico-sun { opacity: 1; stroke: var(--lime); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--moss);
  border: 1.5px solid var(--lime-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--lime);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
html.light .user-avatar { background: #d4eaaa; color: #3a6600; border-color: rgba(90,130,20,0.3); }
.user-avatar:hover::after {
  content: 'Logout';
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}

.sidebar-reopen {
  display: none;
  width: 38px; height: 34px;
  border-radius: 7px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.sidebar-reopen:hover { background: var(--bg3); }
.sidebar-reopen svg { width: 14px; height: 14px; stroke: var(--text3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-reopen.visible { display: flex; }

/* COL 2 */
.col2 {
  width: 210px; min-width: 210px;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
  transition: width 0.22s cubic-bezier(.4,0,.2,1), min-width 0.22s cubic-bezier(.4,0,.2,1);
}
.col2.collapsed { width: 0; min-width: 0; border-right: none; }
.col2::-webkit-scrollbar { display: none; }

.col2-header {
  padding: 12px 10px 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.col2-header-title { font-size: 13px; font-weight: 700; color: var(--text1); letter-spacing: -0.01em; white-space: nowrap; }

.collapse-btn {
  width: 24px; height: 24px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.12s;
}
.collapse-btn:hover { background: var(--bg3); }
.collapse-btn svg { width: 14px; height: 14px; stroke: var(--text3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.12s; }
.collapse-btn:hover svg { stroke: var(--text2); }

.sidebar-section { padding: 14px 8px 6px; }
.sidebar-section-label { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; padding: 0 6px; margin-bottom: 4px; }

.sidebar-item {
  display: flex; align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.sidebar-item:hover { background: var(--bg3); }
.sidebar-item.active { background: var(--lime-bg); }
.sidebar-item.all-convs .sidebar-item-label { font-weight: 700; font-size: 13px; color: var(--text1); }
.sidebar-item.all-convs.active .sidebar-item-label { color: var(--lime); }
.sidebar-item.sub { padding-left: 22px; }

.sidebar-icon {
  width: 21px; height: 21px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--ch-color, rgba(255,255,255,0.06));
}
.sidebar-item-label { font-size: 12.5px; color: var(--text2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sidebar-item.active .sidebar-item-label { color: var(--lime); }

.ch-open-badge {
  font-size: 9.5px; font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.14);
  padding: 1px 6px;
  border-radius: 9px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
html.light .ch-open-badge { background: rgba(180,100,0,0.14); color: #7a4800; }
.sidebar-divider { height: 1px; background: var(--border); margin: 6px 14px; }

/* COL 3 */
.col3 {
  width: 650px; min-width: 650px;
  background: var(--bg1);
  display: flex; flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.col3-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.col3-title { font-size: 13px; font-weight: 700; color: var(--text1); }
.col3-count { font-size: 11px; color: var(--text3); background: var(--bg3); padding: 2px 8px; border-radius: 20px; font-variant-numeric: tabular-nums; }

.col3-toolbar {
  padding: 8px 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.col3-search-row { display: flex; margin-bottom: 7px; }
.col3-filter-row { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; }
.col3-filter-spacer { flex: 1; }
.col3-search {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text1);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.12s;
}
.col3-search:focus { border-color: var(--lime-border); }
.col3-search::-moz-placeholder { color: var(--text3); }
.col3-search::placeholder { color: var(--text3); }

.filter-chip {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border2);
  color: var(--text3);
  background: transparent;
  font-family: var(--font);
  transition: all 0.12s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--bg4); color: var(--text2); }
.filter-chip.on { background: var(--lime-bg); border-color: var(--lime-border); color: var(--lime); }

.human-btn {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid rgba(245,158,11,0.45);
  color: #f59e0b;
  background: transparent;
  font-family: var(--font);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  transition: all 0.12s;
}
.human-btn:hover { border-color: rgba(245,158,11,0.70); background: rgba(245,158,11,0.08); }
.human-btn.on { background: #f59e0b; border-color: #f59e0b; color: var(--bg0); }
.human-btn .hbadge { display: inline-block; background: rgba(245,158,11,0.30); color: #f59e0b; font-size: 9px; font-weight: 800; padding: 0 5px; border-radius: 8px; line-height: 15px; }
.human-btn.on .hbadge { background: var(--bg0); color: #f59e0b; }
html.light .human-btn { color: #c8820a; border-color: rgba(200,130,10,0.50); }
html.light .human-btn.on { background: #c8820a; border-color: #c8820a; color: var(--bg0); }

.ai-filter-btn {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--lime-border);
  color: var(--lime);
  background: transparent;
  font-family: var(--font);
  white-space: nowrap;
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  transition: all 0.12s;
}
.ai-filter-btn:hover { border-color: var(--lime); background: var(--lime-bg); }
.ai-filter-btn.on { background: var(--lime); border-color: var(--lime); color: var(--bg0); }
html.light .ai-filter-btn { color: #6aaa00; border-color: rgba(106,170,0,0.50); }
html.light .ai-filter-btn.on { background: #6aaa00; border-color: #6aaa00; color: var(--bg0); }

.hq-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(245,158,11,0.35);
  background: transparent;
  color: #c8820a;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: all 0.12s;
}
.hq-chip:hover { border-color: rgba(245,158,11,0.60); color: #f59e0b; background: rgba(245,158,11,0.08); }
.hq-chip.on { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.60); color: #f59e0b; }
.hq-chip .hqbadge { font-size: 9px; font-weight: 800; background: rgba(245,158,11,0.30); color: #f59e0b; padding: 0 4px; border-radius: 7px; line-height: 14px; }
html.light .hq-chip { color: #8a5500; border-color: #c8861a; }
html.light .hq-chip.on { background: rgba(180,100,0,0.12); border-color: #a06000; color: #7a4800; }

/* Table */
.col3-table-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
  display: flex; flex-direction: column;
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead th {
  padding: 6px 8px;
  text-align: left;
  font-size: 10px; font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid #383838;
  background: var(--bg1);
  position: sticky; top: 0; z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.light thead th { border-bottom-color: #d8d8d4; }
tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #383838;
  transition: background 0.1s;
}
html.light tbody tr { border-bottom-color: #d8d8d4; }
tbody tr:hover { background: var(--bg2); }
tbody tr.row-active { background: #141f0a; border-left: 2px solid var(--lime); }
html.light tbody tr.row-active { background: #e8f2d8; }
tbody td { padding: 6px 12px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.col-ch    { width: 62px; }
.col-name  { width: 120px; }
.col-st    { width: 58px; }
.col-en    { width: 58px; }
.col-stat  { width: 104px; }
.col-topic { width: 100px; }
.col-sent  { width: 46px; }
.col-op    { width: 92px; }

.col-resize-handle {
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 9px;
  cursor: col-resize; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transform: translateX(50%);
}
.col-resize-handle::before {
  content: '';
  display: block; width: 1px; height: 100%;
  background: #383838;
  transition: background 0.12s, width 0.12s;
  border-radius: 1px;
}
.col-resize-handle:hover::before, .col-resize-handle.resizing::before { background: var(--lime); width: 2px; }

.ch-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ch-color, #444);
}
.ch-icon svg { width: 15px; height: 15px; }

.state-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.s-ai-open   { background: rgba(202,254,110,0.10); color: var(--lime); }
.s-hu-open   { background: rgba(245,158,11,0.10);  color: #f59e0b; }
.s-ai-closed { background: rgba(120,120,120,0.10); color: #666; }
.s-mx-closed { background: rgba(129,140,248,0.10); color: #818cf8; }

.sent-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sent-pos { background: rgba(34,197,94,0.10);  color: #22c55e; }
.sent-neu { background: rgba(186,186,186,0.08); color: #888; }
.sent-neg { background: rgba(239,68,68,0.10);  color: #ef4444; }

.cell-name { font-size: 12px; font-weight: 400; color: var(--text1); }
.cell-topic { font-size: 11px; color: var(--text2); }
.cell-anon { font-size: 11.5px; color: var(--text3); font-style: italic; }
.cell-time { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.cell-op { font-size: 11px; color: var(--text2); }
.cell-dash { color: var(--text3); }

/* RESIZE DIVIDER */
.col-divider {
  width: 5px; min-width: 5px;
  background: var(--border);
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 5;
}
.col-divider:hover, .col-divider.dragging { background: var(--lime); }
.col-divider::after { content: ''; position: absolute; inset: 0 -4px; }

/* COL 4 */
.col4 {
  flex: 1; min-width: 380px;
  background: var(--bg0);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.col4-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.empty-icon { width: 52px; height: 52px; border-radius: 14px; border: 1.5px dashed var(--bg4); display: flex; align-items: center; justify-content: center; }
.empty-icon svg { width: 22px; height: 22px; stroke: var(--bg4); fill: none; stroke-width: 1.5; }
.empty-text { font-size: 12px; color: var(--text3); }

.chat-topbar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  background: var(--bg1);
}
.chat-ch-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-ch-icon svg { width: 26px; height: 26px; }

.chat-meta-info { flex: 1; min-width: 0; }
.chat-name { font-size: 14px; font-weight: 700; color: var(--text1); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-page-name { font-size: 11px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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

.chat-close-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.12s;
}
.chat-close-btn:hover { background: var(--bg3); }
.chat-close-btn svg { width: 14px; height: 14px; stroke: var(--text3); fill: none; stroke-width: 2; stroke-linecap: round; }

.handoff-tile {
  height: 36px; min-width: 120px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 12px; font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
  padding: 0 14px;
  white-space: nowrap;
  border: none;
  position: relative;
  top: 0;
  box-shadow: 0 3px 0 0 rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
  transition: box-shadow 0.1s, top 0.1s, opacity 0.14s;
}
.handoff-tile:hover { box-shadow: 0 6px 0 0 rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25); top: -1px; }
.handoff-tile:active { box-shadow: 0 1px 0 0 rgba(0,0,0,0.35); top: 3px; }
.htile-human { background: linear-gradient(to bottom, #fbb030, #f59e0b); color: #4a2800; box-shadow: 0 4px 0 0 #b87200, 0 1px 3px rgba(0,0,0,0.25); }
.htile-human:hover { background: linear-gradient(to bottom, #fcc040, #faa920); box-shadow: 0 6px 0 0 #b87200, 0 2px 6px rgba(0,0,0,0.25); }
.htile-human:active { box-shadow: 0 1px 0 0 #b87200; }
.htile-ai { background: var(--lime); color: #223322; box-shadow: 0 4px 0 0 #4a7a00, 0 1px 3px rgba(0,0,0,0.25); }
html.light .htile-ai { color: #fff; }
.htile-ai:hover { filter: brightness(1.1); box-shadow: 0 6px 0 0 #4a7a00, 0 2px 6px rgba(0,0,0,0.25); }
.htile-ai:active { box-shadow: 0 1px 0 0 #4a7a00; }
.htile-loading { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.state-bar {
  padding: 6px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  flex-shrink: 0;
  background: var(--bg1);
}
.state-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pulse-anim { animation: pulse 1.8s infinite; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}

.msg-in, .msg-out {
  display: flex; flex-direction: column;
  max-width: 70%; gap: 2px;
}
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }

.bubble {
  padding: 8px 12px;
  font-size: 12.5px; line-height: 1.52;
  color: var(--text1);
  word-break: break-word;
}
.bubble-in { background: var(--bg2); border-radius: 3px 10px 10px 10px; }
.bubble-out { background: #2d1e00; border: 1px solid rgba(245,158,11,0.22); border-radius: 10px 3px 10px 10px; }
.bubble-ai  { background: #141f0a; border: 1px solid rgba(202,254,110,0.10); border-radius: 10px 3px 10px 10px; }
html.light .bubble-out { background: #fff3d6; border-color: rgba(245,158,11,0.30); }
html.light .bubble-ai  { background: #f0f7e0; border-color: rgba(90,130,20,0.15); }
html.light .bubble { color: var(--text1); }

.ai-tag { display: inline; font-size: 9.5px; font-weight: 700; color: rgba(202,254,110,0.6); letter-spacing: 0.04em; }
html.light .ai-tag { color: rgba(80,120,10,0.7); }
.msg-time { font-size: 10px; color: var(--text3); padding: 0 3px; display: flex; align-items: center; gap: 6px; }
.msg-op { font-size: 10px; font-weight: 700; color: #c8820a; padding: 0 1px; }
html.light .msg-op { color: #a86800; }

.date-sep {
  align-self: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 12px;
  font-size: 10px; font-weight: 600; color: var(--text3);
  letter-spacing: 0.03em; margin: 6px 0; flex-shrink: 0;
}

.sys-msg {
  align-self: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 10.5px; color: var(--text3);
  display: flex; align-items: center; gap: 5px;
  margin: 2px 0;
}
.sys-msg svg { width: 10px; height: 10px; stroke: var(--text3); fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* attachment styles */
.attach-img { max-width: 220px; max-height: 180px; border-radius: 8px; display: block; margin-top: 4px; cursor: pointer; }
.attach-audio { width: 200px; margin-top: 4px; }
.attach-file {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; padding: 6px 10px; margin-top: 4px;
  font-size: 11px; color: var(--text2);
  text-decoration: none;
}
.attach-file:hover { color: var(--text1); }
.attach-file svg { width: 12px; height: 12px; stroke: var(--text3); fill: none; stroke-width: 2; flex-shrink: 0; }

/* composer */
.composer-area {
  padding: 10px 18px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg1);
}
.composer-box {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 8px 8px 13px;
  transition: border-color 0.15s, opacity 0.15s;
}
.composer-box.enabled { border-color: var(--lime-border); }
.composer-box.disabled { opacity: 0.38; pointer-events: none; }

.composer-ta {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text1); font-family: var(--font);
  font-size: 12.5px; line-height: 1.5;
  resize: none; max-height: 100px; min-height: 20px;
}
.composer-ta::-moz-placeholder { color: var(--text3); }
.composer-ta::placeholder { color: var(--text3); }

.send-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: background 0.12s;
  flex-shrink: 0;
}
.send-btn:hover { background: #b8ef50; }
.send-btn.off { background: var(--bg3); cursor: default; }
.send-btn svg { width: 13px; height: 13px; stroke: var(--moss); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.send-btn.off svg { stroke: var(--text3); }

.composer-hint { font-size: 10.5px; color: var(--text3); margin-top: 6px; text-align: center; }

/* msgs loading */
.msgs-loading { display: flex; justify-content: center; padding: 24px; }

