:root {
  color-scheme: dark;
  --bg: #0c1624;
  --panel: rgba(21, 22, 28, 0.56);
  --panel-strong: rgba(18, 19, 24, 0.62);
  --glass: rgba(28, 29, 34, 0.52);
  --glass-soft: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.16);
  --line-hot: rgba(255, 116, 219, 0.34);
  --text: #f4fbff;
  --muted: rgba(230, 241, 252, 0.72);
  --cyan: #55e8ff;
  --blue: #38a7ff;
  --green: #54f2bd;
  --magenta: #ff5ce1;
  --violet: #7c5cff;
  --answer-font-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(255, 92, 225, 0.13), transparent 30%),
    linear-gradient(245deg, rgba(84, 242, 189, 0.12), transparent 31%),
    linear-gradient(180deg, #14263a 0%, #132238 36%, #081220 100%);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 330;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 92, 225, 0.035) 49% 51%, transparent 52% 100%);
  background-size: 42px 42px, 42px 42px, 180px 180px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(85, 232, 255, 0.08), transparent 24%, rgba(255, 92, 225, 0.07) 52%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

button,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.app {
  position: relative;
  width: min(100% - 36px, 1320px);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    0
    calc(22px + env(safe-area-inset-bottom, 0px));
}

.hero,
.workspace,
.partner-row,
.partners,
.footer,
.topbar {
  transition:
    filter 520ms ease,
    opacity 520ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.auth-open .hero,
body.auth-open .workspace,
body.auth-open .partner-row,
body.auth-open .partners,
body.auth-open .footer,
body.auth-open .topbar {
  filter: blur(8px) saturate(0.9) brightness(0.78);
  opacity: 0.64;
  transform: scale(0.992);
}

body.auth-open .auth-modal.granted ~ .hero,
body.auth-open .auth-modal.granted ~ .workspace,
body.auth-open .auth-modal.granted ~ .partner-row,
body.auth-open .auth-modal.granted ~ .partners,
body.auth-open .auth-modal.granted ~ .footer,
body.auth-open .topbar,
body.app-reveal .hero,
body.app-reveal .workspace,
body.app-reveal .partner-row,
body.app-reveal .partners,
body.app-reveal .footer,
body.app-reveal .topbar {
  filter: none;
  opacity: 1;
  transform: none;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 18px;
  margin: 12px 0 0;
}

.brand {
  width: clamp(170px, 18vw, 260px);
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    brightness(1.26)
    contrast(1.18)
    drop-shadow(0 0 12px rgba(85, 232, 255, 0.34))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
}

.status-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.status-row .left-menu-toggle {
  margin-right: 2px;
}

.advanced-openai-toggle {
  position: relative;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(173, 255, 224, 0.24);
  border-radius: 999px;
  color: rgba(246, 255, 250, 0.94);
  background:
    radial-gradient(circle at 16% 48%, rgba(49, 255, 166, 0.22), transparent 36%),
    radial-gradient(circle at 52% 46%, rgba(91, 231, 255, 0.18), transparent 38%),
    radial-gradient(circle at 86% 48%, rgba(255, 211, 98, 0.2), transparent 36%),
    linear-gradient(90deg, rgba(16, 97, 69, 0.38), rgba(23, 71, 86, 0.36) 50%, rgba(105, 74, 21, 0.36)),
    rgba(5, 14, 13, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 211, 98, 0.11),
    0 12px 28px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(49, 255, 166, 0.1),
    0 0 22px rgba(91, 231, 255, 0.08),
    0 0 24px rgba(255, 211, 98, 0.07);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.2);
}

.advanced-openai-toggle::before {
  content: "";
  position: absolute;
  inset: -22px auto -22px -68%;
  width: 236%;
  pointer-events: none;
  background:
    linear-gradient(96deg, transparent 0 20%, rgba(211, 255, 221, 0.32) 30%, rgba(211, 255, 221, 0.96) 39%, rgba(96, 201, 245, 1) 49%, rgba(255, 223, 102, 0.98) 59%, rgba(255, 223, 102, 0.32) 70%, transparent 80%),
    linear-gradient(180deg, transparent 0 15%, rgba(227, 252, 253, 0.22) 32%, rgba(96, 201, 245, 0.34) 50%, rgba(255, 223, 102, 0.28) 68%, transparent 85%);
  opacity: 0;
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(-18%);
  transition: opacity 160ms ease;
}

.advanced-openai-toggle::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 38%, transparent 55%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 38%);
  opacity: 0.64;
  mix-blend-mode: screen;
}

.advanced-openai-toggle:hover {
  border-color: rgba(227, 252, 253, 0.82);
  color: #061014;
  background:
    linear-gradient(90deg, #d3ffdd 0%, #e3fcfd 30%, #60c9f5 52%, #ffdf66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 210, 90, 0.28),
    0 0 20px rgba(211, 255, 221, 0.34),
    0 0 34px rgba(96, 201, 245, 0.32),
    0 0 46px rgba(255, 223, 102, 0.26);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 8px rgba(255, 255, 255, 0.36);
}

.advanced-openai-toggle:hover::before {
  animation: liquid-sheen 4.8s ease-in-out infinite alternate;
  opacity: 1;
}

.advanced-openai-toggle:hover::after {
  opacity: 0;
}

.status-row .talk2all-btn {
  margin-left: auto;
}

.mobile-talk2all-slot {
  display: none;
}

.language-switch,
.live-status,
.talk2all-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(17, 19, 25, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(28px) saturate(1.35);
}

.talk2all-btn {
  isolation: isolate;
  width: auto;
  min-height: 34px;
  justify-content: center;
  padding: 0 14px;
  border-color: rgba(85, 232, 255, 0.38);
  color: rgba(237, 255, 255, 0.92);
  background:
    linear-gradient(rgba(85, 232, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 225, 0.28), rgba(85, 232, 255, 0.32), rgba(84, 242, 189, 0.28)),
    rgba(5, 12, 18, 0.28);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(245, 250, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 16px rgba(85, 232, 255, 0.2),
    0 0 30px rgba(255, 92, 225, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.28);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: none;
  text-shadow:
    0 0 10px rgba(85, 232, 255, 0.36),
    0 0 16px rgba(255, 255, 255, 0.12);
}

.talk2all-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 26% 18%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.18), transparent 42%);
  opacity: 0.78;
  mix-blend-mode: screen;
  transform: translateZ(0);
  animation: none;
}

.talk2all-btn:hover::before {
  inset: -80% -30%;
  border-radius: 0;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.34), transparent 58%);
  opacity: 0.94;
  animation: auth-scan 700ms linear infinite;
}

.talk2all-btn:hover {
  border-color: rgba(84, 242, 189, 0.68);
  color: #07131b;
  background:
    linear-gradient(rgba(85, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 225, 0.88), rgba(85, 232, 255, 0.96), rgba(84, 242, 189, 0.92));
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(245, 250, 255, 0.2),
    0 0 24px rgba(85, 232, 255, 0.46),
    0 0 46px rgba(255, 92, 225, 0.26),
    0 16px 42px rgba(0, 0, 0, 0.32);
}

.talk2all-btn.live {
  color: #f8ffff;
  border-color: rgba(84, 242, 189, 0.78);
  background:
    radial-gradient(circle at 18% 52%, rgba(84, 242, 189, 0.42), transparent 34%),
    radial-gradient(circle at 82% 46%, rgba(255, 79, 216, 0.32), transparent 30%),
    linear-gradient(110deg, rgba(3, 34, 37, 0.98), rgba(6, 56, 72, 0.88) 46%, rgba(28, 17, 70, 0.82));
  box-shadow:
    0 0 20px rgba(84, 242, 189, 0.36),
    0 0 46px rgba(61, 236, 255, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}


.language-switch {
  padding: 3px;
}

.language-option {
  min-width: 40px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.language-option.active {
  color: #021018;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(53, 217, 255, 0.26);
}

.live-status {
  gap: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6f82;
  box-shadow: 0 0 14px rgba(255, 111, 130, 0.75);
}

.live-status.live {
  color: #c9fff0;
  border-color: rgba(84, 242, 189, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 92, 225, 0.14), rgba(84, 242, 189, 0.16)),
    rgba(18, 23, 29, 0.58);
}

.live-status.live .status-dot {
  background: var(--green);
  box-shadow:
    0 0 14px rgba(55, 213, 167, 0.8),
    0 0 24px rgba(255, 79, 216, 0.22);
}

.logout-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(237, 248, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(17, 19, 25, 0.52);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.06em;
  backdrop-filter: blur(22px) saturate(1.2);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(2, 5, 10, 0.74), rgba(7, 18, 32, 0.68)),
    rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px) saturate(1.12);
  transition:
    background 420ms ease,
    backdrop-filter 420ms ease;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal.granted {
  background:
    linear-gradient(135deg, rgba(2, 5, 10, 0.28), rgba(7, 18, 32, 0.18)),
    rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(5px) saturate(1.2);
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(0, 5, 10, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(16, 18, 24, 0.76);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(1.25);
  transition:
    width 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}

.auth-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 232, 255, 0.32);
  border-radius: 999px;
  color: #d7fbff;
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.16), rgba(255, 92, 225, 0.1)),
    rgba(0, 0, 0, 0.26);
  box-shadow:
    0 0 28px rgba(85, 232, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-mark::before {
  content: "";
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(85, 232, 255, 0.2);
}

.auth-mark::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateY(-10px);
}

.auth-modal.granted .auth-card {
  width: min(100%, 520px);
  transform: translateY(-10px) scale(0.98);
  border-color: rgba(85, 232, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(5, 10, 17, 0.72);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.46),
    0 0 70px rgba(85, 232, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-modal.checking .auth-card,
.auth-modal.granting .auth-card {
  width: min(100%, 520px);
}

.auth-modal.granted .auth-mark {
  width: 82px;
  height: 82px;
  justify-self: center;
  color: #80ff9d;
  border-color: rgba(128, 255, 157, 0.64);
  background:
    radial-gradient(circle, rgba(128, 255, 157, 0.28), rgba(85, 232, 255, 0.1) 54%, rgba(0, 0, 0, 0.24));
  box-shadow:
    0 0 34px rgba(128, 255, 157, 0.58),
    0 0 70px rgba(85, 232, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: granted-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-modal.granted .auth-mark::before {
  width: 29px;
  height: 15px;
  border-width: 0 0 4px 4px;
  border-radius: 0;
  transform: translateY(-3px) rotate(-45deg);
}

.auth-modal.granted .auth-mark::after {
  content: none;
}

.auth-modal.checking .auth-card > label,
.auth-modal.checking .auth-divider,
.auth-modal.checking .auth-submit,
.auth-modal.checking .auth-error,
.auth-modal.granting .auth-card > label,
.auth-modal.granting .auth-divider,
.auth-modal.granting .auth-submit,
.auth-modal.granting .auth-error,
.auth-modal.granted .auth-card > label,
.auth-modal.granted .auth-divider,
.auth-modal.granted .auth-submit,
.auth-modal.granted .auth-error,
.auth-modal.granted .auth-card > p:not(.eyebrow) {
  display: none;
}

.auth-modal.granted .auth-card h2 {
  color: #dffeff;
  text-shadow:
    0 0 18px rgba(85, 232, 255, 0.28),
    0 0 36px rgba(84, 242, 189, 0.16);
}

.auth-card h2 {
  font-size: 28px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: rgba(237, 248, 255, 0.78);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.auth-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 999px;
  outline: 0;
  padding: 0 15px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  font: inherit;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 999px;
  color: rgba(226, 248, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(85, 232, 255, 0.06)),
    rgba(0, 0, 0, 0.26);
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  border-color: rgba(85, 232, 255, 0.42);
  color: rgba(245, 253, 255, 0.96);
  box-shadow: 0 0 18px rgba(85, 232, 255, 0.16);
}

.eye-icon {
  position: relative;
  width: 17px;
  height: 11px;
  display: block;
  border: 1.7px solid currentColor;
  border-radius: 999px 999px 999px 999px / 82% 82% 82% 82%;
}

.eye-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .eye-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 21px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-38deg);
}

.auth-card input:focus {
  border-color: rgba(85, 232, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(85, 232, 255, 0.08);
}

.auth-divider {
  color: rgba(221, 237, 250, 0.44);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-align: center;
}

.auth-submit {
  min-height: 46px;
  border: 1px solid rgba(85, 232, 255, 0.46);
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, rgba(85, 232, 255, 0.98), rgba(84, 242, 189, 0.82));
  font-weight: 650;
  letter-spacing: 0.06em;
}

.auth-submit:disabled {
  opacity: 0.72;
  cursor: progress;
}

.auth-error {
  min-height: 20px;
  color: #ffb7c2 !important;
}

.auth-granted {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 0 2px;
  color: #80ff9d;
  text-align: center;
  animation: granted-pop 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-granted[hidden] {
  display: none;
}

.auth-granted-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(128, 255, 157, 0.52);
  border-radius: 999px;
  filter:
    drop-shadow(0 0 18px rgba(128, 255, 157, 0.9))
    drop-shadow(0 0 42px rgba(85, 232, 255, 0.34));
}

.auth-granted-icon::before {
  content: "";
  width: 34px;
  height: 18px;
  border: 0 solid currentColor;
  border-left-width: 4px;
  border-bottom-width: 4px;
  transform: translateY(-4px) rotate(-45deg);
}

.auth-granted span:last-child {
  color: #e0ffe7;
  font-size: 16px;
  font-weight: 520;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(128, 255, 157, 0.48),
    0 0 34px rgba(85, 232, 255, 0.2);
}

.auth-loading {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 2px;
  min-height: 54px;
  padding: 0;
  border: 1px solid rgba(85, 232, 255, 0.36);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(85, 232, 255, 0.08)),
    rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(245, 250, 255, 0.08),
    inset 0 0 24px rgba(255, 92, 225, 0.08),
    0 0 34px rgba(85, 232, 255, 0.14);
  overflow: hidden;
}

.auth-loading[hidden] {
  display: none;
}

.auth-loading-copy {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 54px;
  padding: 0 18px;
  text-align: center;
}

.auth-loading-copy span {
  color: #07131b;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.64),
    0 0 8px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(85, 232, 255, 0.22);
}

.auth-loading-copy small {
  color: rgba(7, 19, 27, 0.82);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.54),
    0 0 8px rgba(255, 255, 255, 0.26);
}

.auth-progress {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(rgba(85, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 18px 18px;
}

.auth-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0 12%, rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.12) 58%, transparent 72%),
    linear-gradient(90deg, rgba(255, 92, 225, 0.88), rgba(85, 232, 255, 0.96), rgba(84, 242, 189, 0.92));
  box-shadow:
    0 0 28px rgba(85, 232, 255, 0.62),
    0 0 46px rgba(255, 92, 225, 0.32);
}

.auth-loading.loading .auth-progress span {
  animation: auth-load 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-loading.loading .auth-progress::after {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.32), transparent 58%);
  animation: auth-scan 700ms linear infinite;
  mix-blend-mode: screen;
}

@keyframes auth-load {
  0% {
    width: 3%;
  }
  58% {
    width: 72%;
  }
  100% {
    width: 100%;
  }
}

@keyframes granted-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.82);
  }
  68% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-scan {
  from {
    transform: translateX(-35%) skewX(-12deg);
  }
  to {
    transform: translateX(35%) skewX(-12deg);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1672 / 332;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10px 0;
  z-index: 0;
  border: 1px solid rgba(0, 5, 10, 0.84);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    linear-gradient(90deg, rgba(2, 6, 12, 0.94), rgba(14, 18, 25, 0.78) 48%, rgba(2, 7, 13, 0.94));
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(85, 232, 255, 0.12);
  backdrop-filter: blur(10px) saturate(1.1);
}

.hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: fill;
  object-position: center;
  opacity: 1;
  mix-blend-mode: normal;
  filter:
    contrast(1.42)
    saturate(1.05)
    brightness(1.04)
    drop-shadow(0 0 11px rgba(238, 250, 255, 0.2))
    drop-shadow(0 0 18px rgba(85, 232, 255, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10px 0;
  z-index: 2;
  pointer-events: none;
  background: transparent;
  border-radius: 28px;
  opacity: 0;
  mix-blend-mode: screen;
}

.hero .hero-sheen {
  position: absolute;
  left: 50%;
  top: 61.95%;
  width: clamp(124px, 12vw, 206px);
  height: clamp(2px, 0.18vw, 3px);
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 55% 50%, rgba(255, 255, 255, 1) 0 17%, rgba(255, 242, 126, 1) 31%, rgba(255, 211, 28, 1) 49%, rgba(255, 161, 10, 0.88) 68%, transparent 93%),
    linear-gradient(90deg, transparent 0 2%, rgba(48, 255, 142, 0.38) 12%, rgba(53, 255, 143, 0.9) 25%, rgba(255, 248, 178, 1) 43%, rgba(255, 255, 255, 1) 50%, rgba(255, 220, 28, 1) 65%, rgba(255, 176, 12, 0.92) 86%, transparent 98% 100%);
  opacity: 1;
  box-shadow:
    0 0 18px rgba(255, 235, 84, 1),
    0 0 40px rgba(255, 208, 28, 0.86),
    0 0 66px rgba(255, 164, 12, 0.62),
    0 0 92px rgba(255, 202, 38, 0.38),
    0 0 38px rgba(41, 255, 135, 0.58),
    0 0 108px rgba(255, 255, 255, 0.22);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: hero-strip-sweep-left 15.8s ease-in-out infinite;
}

.hero .hero-sheen-right {
  animation-name: hero-strip-sweep-right;
  transform: translate(-50%, -50%);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
  gap: 18px;
  margin-top: 18px;
}

.left-menu-toggle {
  position: relative;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 999px;
  color: rgba(245, 250, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.16), rgba(84, 242, 189, 0.08)),
    rgba(18, 21, 28, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden;
}

.left-menu-toggle:hover {
  border-color: rgba(85, 232, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.24), rgba(84, 242, 189, 0.12)),
    rgba(20, 25, 33, 0.78);
}

.left-menu-toggle-icon {
  position: relative;
  width: 17px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 0.22s ease;
}

.left-menu-toggle-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  border-top: 2px solid currentColor;
}

body.left-menu-collapsed .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.left-menu-collapsed .context-panel,
body.left-menu-collapsed .mobile-tool-panel,
body.left-menu-collapsed .mobile-main-partner-slot {
  display: none !important;
}

body.left-menu-collapsed .left-menu-toggle-icon {
  transform: rotate(90deg) scaleX(0.86);
}

body.auth-open .left-menu-toggle {
  visibility: hidden;
}

.context-panel,
.chat-card,
.mobile-tool-panel,
.partners {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(1.22);
}

.context-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.mobile-tool-panel {
  display: none;
}

.mobile-main-partner-slot {
  display: contents;
}

.mobile-tool-panel[hidden],
.mobile-main-partner-slot[hidden] {
  display: none;
}

.partner-row {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.chat-main-partner-slot {
  min-width: 0;
}

.chat-main-partner-slot .main-partner-panel,
.partner-row .partners {
  height: 100%;
}

.partner-row .partners {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.16em;
}

h1,
h2 {
  margin: 0;
  font-weight: 520;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

h2 {
  font-size: clamp(20px, 2vw, 30px);
}

.intro-block p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

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

.tool-grid button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(245, 250, 255, 0.13);
  border-radius: 999px;
  color: rgba(239, 248, 255, 0.72);
  background: rgba(38, 39, 45, 0.46);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px);
}

.tool-grid button:hover {
  color: #f5fbff;
  border-color: rgba(53, 217, 255, 0.28);
}

.tool-grid button.enabled {
  color: #f2feff;
  border-color: rgba(84, 242, 189, 0.28);
  background:
    linear-gradient(135deg, rgba(84, 242, 189, 0.16), rgba(85, 232, 255, 0.055)),
    rgba(32, 42, 44, 0.48);
}

.tool-grid button.disabled {
  opacity: 0.7;
}

.answer-size-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(85, 232, 255, 0.035)),
    rgba(20, 22, 29, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px);
}

.answer-size-control > span {
  color: rgba(239, 248, 255, 0.72);
  font-size: 10px;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-size-buttons {
  display: flex;
  gap: 6px;
}

.answer-size-buttons button {
  width: 38px;
  height: 32px;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 999px;
  color: #f3fbff;
  background: rgba(38, 39, 45, 0.55);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.answer-size-buttons button:hover {
  border-color: rgba(53, 217, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.18), rgba(84, 242, 189, 0.09)),
    rgba(28, 32, 39, 0.72);
}

.answer-size-buttons button:disabled {
  cursor: default;
  opacity: 0.42;
}

.file-intel-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(85, 232, 255, 0.035)),
    rgba(16, 19, 25, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(1.12);
}

.file-intel-header,
.file-intel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-intel-header > span {
  color: rgba(239, 248, 255, 0.78);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-intel-panel button {
  position: relative;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 999px;
  color: rgba(242, 250, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.14), rgba(84, 242, 189, 0.06)),
    rgba(25, 29, 36, 0.58);
  font-size: 10px;
  font-weight: 660;
  letter-spacing: 0;
  overflow: hidden;
}

.file-intel-panel button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -70%;
  width: 54%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.file-intel-panel button:hover {
  border-color: rgba(53, 217, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.22), rgba(84, 242, 189, 0.11)),
    rgba(25, 31, 39, 0.76);
}

.file-intel-panel button:hover::after {
  animation: liquid-button-pass 1.25s ease forwards;
  opacity: 1;
}

.file-intel-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.file-intel-list {
  display: grid;
  gap: 6px;
  max-height: 178px;
  overflow: auto;
  padding-right: 2px;
}

.file-intel-list p {
  margin: 2px 0;
  color: rgba(224, 237, 246, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.file-intel-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid rgba(245, 250, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.file-intel-row:hover {
  border-color: rgba(85, 232, 255, 0.28);
  background: rgba(85, 232, 255, 0.065);
}

.file-intel-row input {
  accent-color: #54f2bd;
}

.file-intel-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.file-intel-meta strong {
  overflow: hidden;
  color: rgba(245, 250, 255, 0.88);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-intel-meta small {
  color: rgba(210, 225, 236, 0.5);
  font-size: 9.5px;
}

.phase2-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 6%, rgba(84, 242, 189, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(85, 232, 255, 0.032)),
    rgba(14, 17, 23, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(1.12);
}

.phase2-panel[hidden] {
  display: none;
}

.phase2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phase2-header > span,
.memory-field > span {
  color: rgba(239, 248, 255, 0.76);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase2-header button,
.conversation-row {
  position: relative;
  overflow: hidden;
}

.phase2-header button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 999px;
  color: rgba(242, 250, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.14), rgba(84, 242, 189, 0.06)),
    rgba(25, 29, 36, 0.58);
  font-size: 10px;
  font-weight: 660;
  letter-spacing: 0;
}

.phase2-header button:hover {
  border-color: rgba(84, 242, 189, 0.34);
  background:
    linear-gradient(135deg, rgba(84, 242, 189, 0.2), rgba(85, 232, 255, 0.1)),
    rgba(25, 31, 39, 0.76);
}

.mobile-collapsible-panel {
  gap: 7px;
}

.mobile-collapsible-panel > .file-intel-header,
.mobile-collapsible-panel > .phase2-header {
  min-height: 34px;
  cursor: pointer;
  outline: none;
}

.mobile-collapsible-panel > .file-intel-header:focus-visible,
.mobile-collapsible-panel > .phase2-header:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(85, 232, 255, 0.22);
}

.mobile-collapsible-panel > .file-intel-header::after,
.mobile-collapsible-panel > .phase2-header::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 1px solid rgba(226, 248, 255, 0.74);
  border-bottom: 1px solid rgba(226, 248, 255, 0.74);
  transform: rotate(45deg);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.86;
}

.mobile-collapsible-panel[data-mobile-collapsed="false"] > .file-intel-header::after,
.mobile-collapsible-panel[data-mobile-collapsed="false"] > .phase2-header::after {
  transform: translateY(3px) rotate(225deg);
}

.file-intel-panel[data-mobile-collapsed="true"] > :not(.file-intel-header),
.memory-panel[data-mobile-collapsed="true"] > :not(.phase2-header),
.admin-panel[data-mobile-collapsed="true"] > :not(.phase2-header),
.research-panel[data-mobile-collapsed="true"] > :not(.phase2-header),
.capability-panel[data-mobile-collapsed="true"] > :not(.phase2-header) {
  display: none;
}

.file-intel-panel[data-mobile-collapsed="true"],
.memory-panel[data-mobile-collapsed="true"],
.admin-panel[data-mobile-collapsed="true"],
.research-panel[data-mobile-collapsed="true"],
.capability-panel[data-mobile-collapsed="true"] {
  padding-top: 10px;
  padding-bottom: 10px;
}

.memory-field {
  display: grid;
  gap: 5px;
}

.memory-field textarea,
.conversation-panel input {
  width: 100%;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 12px;
  color: rgba(245, 250, 255, 0.88);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  outline: none;
}

.memory-field textarea {
  min-height: 46px;
  max-height: 84px;
  resize: vertical;
  padding: 8px;
}

.conversation-panel input {
  height: 34px;
  padding: 0 10px;
}

.memory-field textarea:focus,
.conversation-panel input:focus {
  border-color: rgba(85, 232, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(85, 232, 255, 0.08);
}

.memory-panel small {
  color: rgba(210, 225, 236, 0.5);
  font-size: 9.5px;
  line-height: 1.35;
}

.conversation-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.conversation-list p {
  margin: 2px 0;
  color: rgba(224, 237, 246, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.conversation-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(245, 250, 255, 0.1);
  border-radius: 12px;
  color: rgba(245, 250, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.conversation-row:hover,
.conversation-row.active {
  border-color: rgba(84, 242, 189, 0.28);
  background: rgba(84, 242, 189, 0.07);
}

.conversation-row strong,
.conversation-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row strong {
  font-size: 11px;
  font-weight: 680;
}

.conversation-row small,
.conversation-row span {
  color: rgba(210, 225, 236, 0.52);
  font-size: 9.5px;
}

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

.admin-tip-wrap,
.admin-user-main,
.admin-disable-btn {
  position: relative;
}

.admin-tip-wrap {
  display: block;
  min-width: 0;
}

.admin-tip-wrap::after,
.admin-user-main::after,
.admin-disable-btn::after {
  content: attr(data-admin-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  z-index: 12;
  width: min(260px, 72vw);
  padding: 9px 10px;
  border: 1px solid rgba(85, 232, 255, 0.2);
  border-radius: 12px;
  color: rgba(241, 250, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(85, 232, 255, 0.045)),
    rgba(5, 8, 14, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.2);
  font-size: 10px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-disable-btn::after {
  right: 0;
  left: auto;
}

.admin-tip-wrap:hover::after,
.admin-tip-wrap:focus-within::after,
.admin-user-main:hover::after,
.admin-user-main:focus-visible::after,
.admin-disable-btn:hover::after,
.admin-disable-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.admin-user-form input,
.admin-user-form select,
.admin-user-form button {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 12px;
  color: rgba(245, 250, 255, 0.88);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 10px;
  outline: none;
}

.admin-tip-wrap input,
.admin-tip-wrap select,
.admin-tip-wrap button {
  width: 100%;
}

.admin-user-form input,
.admin-user-form select {
  padding: 0 8px;
}

.admin-user-form button {
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.16), rgba(84, 242, 189, 0.08)),
    rgba(25, 29, 36, 0.58);
  font-weight: 680;
}

.admin-users,
.admin-audit {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.admin-audit {
  max-height: 130px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.admin-user-main,
.admin-disable-btn,
.admin-audit-row {
  border: 1px solid rgba(245, 250, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-user-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  color: rgba(245, 250, 255, 0.84);
  text-align: left;
}

.admin-user-main:hover {
  border-color: rgba(85, 232, 255, 0.28);
  background: rgba(85, 232, 255, 0.065);
}

.admin-user-main strong,
.admin-user-main small,
.admin-audit-row strong,
.admin-audit-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main strong,
.admin-audit-row strong {
  font-size: 11px;
  font-weight: 680;
}

.admin-user-main small,
.admin-audit-row small {
  color: rgba(210, 225, 236, 0.52);
  font-size: 9.5px;
}

.admin-disable-btn {
  height: 34px;
  padding: 0 8px;
  color: rgba(255, 218, 154, 0.9);
  font-size: 9.5px;
}

.admin-disable-btn:disabled {
  opacity: 0.42;
}

.admin-audit-row {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
}

.admin-panel small {
  color: rgba(210, 225, 236, 0.5);
  font-size: 9.5px;
  line-height: 1.35;
}

.research-actions,
.research-save-actions {
  display: grid;
  gap: 6px;
}

.research-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.research-actions button,
.research-save-actions button,
.research-monitor-save {
  min-height: 32px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 999px;
  color: rgba(245, 250, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.14), rgba(145, 118, 255, 0.09)),
    rgba(25, 29, 36, 0.58);
  font-size: 9.5px;
  font-weight: 680;
}

.research-actions button:hover,
.research-save-actions button:hover,
.research-monitor-save:hover {
  border-color: rgba(85, 232, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.22), rgba(145, 118, 255, 0.14)),
    rgba(25, 31, 39, 0.76);
}

.research-monitor-field {
  display: grid;
  gap: 5px;
}

.research-monitor-field span {
  color: rgba(239, 248, 255, 0.76);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-monitor-field input {
  height: 34px;
  width: 100%;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 12px;
  color: rgba(245, 250, 255, 0.88);
  background: rgba(255, 255, 255, 0.045);
  padding: 0 10px;
  font: inherit;
  font-size: 11px;
  outline: none;
}

.research-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
}

.research-list p,
.research-panel small {
  margin: 2px 0;
  color: rgba(224, 237, 246, 0.56);
  font-size: 10px;
  line-height: 1.4;
}

.research-row {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(245, 250, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.research-row strong,
.research-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-row strong {
  color: rgba(245, 250, 255, 0.86);
  font-size: 11px;
  font-weight: 680;
}

.research-row small {
  color: rgba(210, 225, 236, 0.52);
  font-size: 9.5px;
}

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

.capability-grid button {
  min-height: 32px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 999px;
  color: rgba(245, 250, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(84, 242, 189, 0.13), rgba(85, 232, 255, 0.07)),
    rgba(25, 29, 36, 0.58);
  font-size: 9.5px;
  font-weight: 680;
  overflow: hidden;
}

.capability-grid button:hover {
  border-color: rgba(84, 242, 189, 0.34);
  background:
    linear-gradient(135deg, rgba(84, 242, 189, 0.22), rgba(85, 232, 255, 0.12)),
    rgba(25, 31, 39, 0.76);
}

.main-partner-panel {
  position: relative;
  display: grid;
  gap: 8px;
  place-items: center;
  align-content: center;
  justify-content: center;
  min-height: 218px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 215, 115, 0.11), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(85, 232, 255, 0.025)),
    rgba(15, 17, 23, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(22px) saturate(1.18);
  overflow: hidden;
}

.main-partner-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  color: rgba(237, 248, 255, 0.84);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: 0.18em;
  text-align: center;
}

.main-partner-panel img {
  position: relative;
  z-index: 1;
  width: min(96%, 320px);
  margin-top: 14px;
  margin-inline: auto;
  border-radius: 10px;
  justify-self: center;
  display: block;
  object-fit: fill;
  object-position: center;
  filter:
    saturate(1.04)
    contrast(1.04)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.main-partner-sheen {
  position: absolute;
  z-index: 0;
  inset: -18% auto -18% -78%;
  width: 86%;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 20%,
      rgba(255, 238, 176, 0.13) 38%,
      rgba(85, 232, 255, 0.11) 51%,
      rgba(255, 255, 255, 0.08) 64%,
      transparent 100%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0.86;
  transform: skewX(-12deg);
  animation: main-partner-glass 9.5s ease-in-out infinite alternate;
}

@keyframes main-partner-glass {
  from {
    transform: translateX(0) skewX(-12deg);
  }
  to {
    transform: translateX(235%) skewX(-12deg);
  }
}

.mode-router {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

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

.chat-mode-grid {
  width: min(460px, 52%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 7px;
}

.mode-card {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 250, 255, 0.13);
  border-radius: 999px;
  color: rgba(239, 248, 255, 0.78);
  background: rgba(38, 39, 45, 0.5);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(1.3);
}

.chat-mode-grid .mode-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  text-align: center;
}

.chat-mode-grid .mode-card span {
  font-size: 13px;
}

.chat-mode-grid .mode-card small {
  font-size: 10px;
}

.mode-card:hover {
  border-color: rgba(53, 217, 255, 0.26);
  color: #f5fbff;
}

.mode-card.active {
  color: #031018;
  border-color: rgba(85, 232, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.98), rgba(84, 242, 189, 0.82));
  box-shadow:
    0 0 30px rgba(85, 232, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.mode-card.special.active {
  color: #16051e;
  border-color: rgba(255, 79, 216, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.96), rgba(124, 92, 255, 0.88) 52%, rgba(53, 217, 255, 0.84));
  box-shadow:
    0 0 28px rgba(255, 79, 216, 0.22),
    0 0 36px rgba(53, 217, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.mode-card span {
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.mode-card small {
  color: currentColor;
  font-size: 9.5px;
  font-weight: 360;
  letter-spacing: 0.04em;
  opacity: 0.74;
}

.chat-card {
  min-height: min(680px, calc(100vh - 240px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), transparent 32%),
    linear-gradient(145deg, rgba(255, 92, 225, 0.04), rgba(56, 167, 255, 0.045)),
    var(--panel-strong);
}

.chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(18, 18, 23, 0.34);
  backdrop-filter: blur(18px);
}

.messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(rgba(85, 232, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 34px 34px;
  scrollbar-color: rgba(53, 217, 255, 0.5) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.message {
  display: flex;
  max-width: min(820px, 92%);
}

.message.user {
  align-self: flex-end;
}

.message-stack {
  display: grid;
  gap: 8px;
}

.message.user .message-stack {
  justify-items: end;
}

.bubble {
  padding: 14px 16px;
  border: 1px solid rgba(245, 250, 255, 0.13);
  border-radius: 18px;
  color: #e6f5ff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.028)),
    rgba(24, 25, 31, 0.55);
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.message.assistant .bubble {
  border-color: rgba(85, 232, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(85, 232, 255, 0.035)),
    rgba(12, 16, 23, 0.58);
  font-size: calc(13px * var(--answer-font-scale));
}

.message.assistant .bubble.thinking-bubble {
  display: grid;
  gap: 5px;
}

.thinking-main {
  color: rgba(236, 250, 255, 0.94);
}

.thinking-description {
  width: fit-content;
  max-width: 100%;
  color: rgba(206, 229, 241, 0.46);
  font-size: calc(11px * var(--answer-font-scale));
  line-height: 1.35;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, rgba(206, 229, 241, 0.34), rgba(85, 232, 255, 0.72), rgba(206, 229, 241, 0.34));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: thinking-description-sheen 2.4s ease-in-out infinite;
}

.message.user .bubble {
  color: #021018;
  border-color: rgba(53, 217, 255, 0.28);
  background: linear-gradient(135deg, rgba(53, 217, 255, 0.92), rgba(55, 213, 167, 0.88));
  box-shadow: 0 0 24px rgba(53, 217, 255, 0.16);
}

.uploaded-image,
.generated-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 217, 255, 0.2);
  border-radius: 8px;
  background: #02050a;
}

.uploaded-image {
  max-width: min(280px, 70vw);
}

.uploaded-image img,
.generated-image img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

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

.generated-image {
  max-width: min(540px, 100%);
  box-shadow: 0 0 30px rgba(53, 217, 255, 0.14);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(85, 232, 255, 0.12), transparent 36%),
    rgba(1, 5, 10, 0.78);
  backdrop-filter: blur(22px) saturate(1.25);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 250, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(85, 232, 255, 0.035)),
    rgba(7, 10, 16, 0.82);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.image-lightbox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.image-lightbox-download,
.image-lightbox-close {
  min-height: 34px;
  border: 1px solid rgba(245, 250, 255, 0.16);
  border-radius: 999px;
  color: #eefaff;
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.15), rgba(84, 242, 189, 0.075)),
    rgba(24, 26, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.image-lightbox-download {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.image-lightbox-download.download-confirmed,
.talk2all-save.download-confirmed {
  color: #03140c;
  border-color: rgba(93, 255, 124, 0.76);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(93, 255, 124, 0.96), rgba(84, 242, 189, 0.82));
  box-shadow:
    0 0 22px rgba(93, 255, 124, 0.42),
    0 0 42px rgba(84, 242, 189, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: download-confirm-pop 1.25s ease both;
}

.image-lightbox-download.download-confirmed::before,
.talk2all-save.download-confirmed::before {
  content: "";
  width: 13px;
  height: 7px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.image-lightbox-close {
  width: 36px;
  position: relative;
}

.image-lightbox-close::before,
.image-lightbox-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

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

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

.image-lightbox-panel > img {
  max-width: 100%;
  max-height: calc(92vh - 82px);
  justify-self: center;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 34px rgba(53, 217, 255, 0.12);
}

.file-review-modal {
  position: fixed;
  z-index: 81;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.file-review-modal[hidden] {
  display: none;
}

.file-review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 10, 0.78);
  backdrop-filter: blur(22px) saturate(1.25);
}

.file-review-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 780px);
  max-height: 86vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(245, 250, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(85, 232, 255, 0.035)),
    rgba(7, 10, 16, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.file-review-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid rgba(245, 250, 255, 0.1);
}

.file-review-header div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.file-review-header strong {
  overflow: hidden;
  color: #f3fbff;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-review-header span {
  color: rgba(221, 237, 250, 0.58);
  font-size: 10px;
}

.file-review-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  position: relative;
  border: 1px solid rgba(245, 250, 255, 0.16);
  border-radius: 999px;
  color: #eefaff;
  background: rgba(24, 26, 34, 0.72);
}

.file-review-close::before,
.file-review-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

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

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

.file-review-panel pre {
  min-height: 220px;
  max-height: 68vh;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: rgba(233, 247, 255, 0.9);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.advanced-openai-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px 0;
  overflow: hidden;
}

.advanced-openai-modal[hidden] {
  display: none;
}

.advanced-openai-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(145, 118, 255, 0.18), transparent 34%),
    radial-gradient(circle at 76% 80%, rgba(85, 232, 255, 0.14), transparent 36%),
    rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px) saturate(1.18);
}

.advanced-openai-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 1320px);
  height: min(calc(100svh - 36px), 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
}

.advanced-ai-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(245, 250, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(145, 118, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(85, 232, 255, 0.04)),
    rgba(12, 15, 22, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.42);
}

.advanced-ai-banner {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 1672 / 372;
  overflow: hidden;
  border: 1px solid rgba(0, 5, 10, 0.84);
  outline: 1px solid rgba(129, 234, 255, 0.18);
  outline-offset: -1px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    linear-gradient(90deg, rgba(2, 6, 12, 0.94), rgba(14, 18, 25, 0.78) 48%, rgba(2, 7, 13, 0.94));
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(85, 232, 255, 0.12);
  backdrop-filter: blur(10px) saturate(1.1);
}

.advanced-openai-shell > .advanced-ai-banner {
  width: 100%;
  justify-self: stretch;
}

.advanced-ai-banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  opacity: 1;
  mix-blend-mode: normal;
  filter:
    contrast(1.42)
    saturate(1.05)
    brightness(1.1)
    drop-shadow(0 0 11px rgba(238, 250, 255, 0.2))
    drop-shadow(0 0 18px rgba(85, 232, 255, 0.12));
}

.advanced-ai-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.advanced-ai-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.advanced-ai-banner-sheen {
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: 3;
  width: 220%;
  border-radius: 16px;
  background:
    linear-gradient(102deg, transparent 0 31%, rgba(255, 255, 255, 0.13) 39%, rgba(98, 224, 255, 0.34) 49%, rgba(255, 255, 255, 0.14) 59%, transparent 69%),
    linear-gradient(180deg, transparent 0 18%, rgba(180, 238, 255, 0.08) 34%, rgba(64, 220, 255, 0.12) 50%, rgba(180, 238, 255, 0.08) 66%, transparent 82%);
  opacity: 0.76;
  mix-blend-mode: screen;
  transform: translateX(-18%);
  animation: liquid-sheen 9.6s ease-in-out infinite alternate;
  pointer-events: none;
}

.advanced-ai-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.advanced-ai-title p {
  margin: 0 0 3px;
  color: rgba(85, 232, 255, 0.7);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.advanced-ai-title span {
  color: rgba(244, 250, 255, 0.92);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.advanced-openai-close {
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 7;
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(178, 250, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(47, 255, 170, 0.18), rgba(92, 215, 255, 0.16) 54%, rgba(255, 199, 87, 0.14)),
    rgba(2, 8, 12, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 24px rgba(92, 215, 255, 0.24),
    0 16px 36px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px) saturate(1.22);
}

.advanced-openai-close::before,
.advanced-openai-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 13px;
  border-top: 2px solid rgba(245, 254, 255, 0.9);
}

.advanced-openai-close::before {
  transform: rotate(45deg);
}

.advanced-openai-close::after {
  transform: rotate(-45deg);
}

.advanced-safety-button,
.advanced-quick-actions button,
.advanced-file-row button,
.advanced-actions button {
  position: relative;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(111, 244, 213, 0.2);
  border-radius: 999px;
  color: rgba(235, 254, 249, 0.92);
  background:
    radial-gradient(circle at 15% 50%, rgba(49, 255, 166, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(28, 184, 132, 0.22), rgba(38, 67, 62, 0.38)),
    rgba(3, 16, 13, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(77, 255, 190, 0.1),
    0 0 18px rgba(49, 255, 166, 0.08);
  font-size: 10px;
  font-weight: 720;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.advanced-quick-actions .advanced-info-row:nth-child(2n) button:not(.advanced-info-button),
.advanced-actions .advanced-info-row:nth-child(2n) button:not(.advanced-info-button) {
  border-color: rgba(255, 206, 95, 0.22);
  color: rgba(255, 246, 224, 0.92);
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 202, 64, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(198, 142, 42, 0.23), rgba(75, 52, 20, 0.42)),
    rgba(20, 13, 3, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 206, 95, 0.1),
    0 0 18px rgba(255, 206, 95, 0.08);
}

.advanced-quick-actions .advanced-info-row:nth-child(3n) button:not(.advanced-info-button),
.advanced-actions .advanced-info-row:nth-child(3n) button:not(.advanced-info-button) {
  border-color: rgba(136, 226, 255, 0.24);
  color: rgba(237, 251, 255, 0.94);
  background:
    radial-gradient(circle at 15% 50%, rgba(136, 226, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(66, 184, 222, 0.22), rgba(25, 48, 70, 0.44)),
    rgba(4, 13, 22, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(136, 226, 255, 0.1),
    0 0 18px rgba(136, 226, 255, 0.09);
}

.advanced-quick-actions button:not(.advanced-info-button)::before,
.advanced-file-row button::before,
.advanced-actions button:not(.advanced-info-button)::before {
  content: "";
  position: absolute;
  inset: -24px auto -24px -68%;
  width: 236%;
  pointer-events: none;
  background:
    linear-gradient(96deg, transparent 0 20%, rgba(211, 255, 221, 0.32) 30%, rgba(211, 255, 221, 0.96) 39%, rgba(96, 201, 245, 1) 49%, rgba(255, 223, 102, 0.98) 59%, rgba(255, 223, 102, 0.32) 70%, transparent 80%),
    linear-gradient(180deg, transparent 0 15%, rgba(227, 252, 253, 0.22) 32%, rgba(96, 201, 245, 0.34) 50%, rgba(255, 223, 102, 0.28) 68%, transparent 85%);
  opacity: 0;
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(-18%);
  transition: opacity 160ms ease;
}

.advanced-quick-actions button:not(.advanced-info-button)::after,
.advanced-file-row button::after,
.advanced-actions button:not(.advanced-info-button)::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055) 38%, transparent 54%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(110deg, transparent 0 22%, rgba(255, 255, 255, 0.09) 34%, transparent 50%);
  opacity: 0.58;
  mix-blend-mode: screen;
}

.advanced-quick-actions button:not(.advanced-info-button):hover,
.advanced-file-row button:hover,
.advanced-actions button:not(.advanced-info-button):hover {
  border-color: rgba(227, 252, 253, 0.82);
  color: #061014;
  background:
    linear-gradient(90deg, #d3ffdd 0%, #e3fcfd 30%, #60c9f5 52%, #ffdf66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 205, 80, 0.38),
    0 0 22px rgba(211, 255, 221, 0.48),
    0 0 38px rgba(96, 201, 245, 0.44),
    0 0 54px rgba(255, 223, 102, 0.36);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 8px rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.advanced-quick-actions button:not(.advanced-info-button):hover::before,
.advanced-file-row button:hover::before,
.advanced-actions button:not(.advanced-info-button):hover::before {
  opacity: 1;
  animation: liquid-sheen 4.8s ease-in-out infinite alternate;
}

.advanced-quick-actions button:not(.advanced-info-button):hover::after,
.advanced-file-row button:hover::after,
.advanced-actions button:not(.advanced-info-button):hover::after {
  opacity: 0;
}

.advanced-info-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  min-width: 0;
}

.advanced-info-button {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(136, 226, 255, 0.28);
  border-radius: 50%;
  color: rgba(237, 251, 255, 0.94);
  background:
    radial-gradient(circle at 42% 20%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(136, 226, 255, 0.18), rgba(47, 255, 170, 0.12) 52%, rgba(255, 206, 95, 0.1)),
    rgba(7, 18, 24, 0.8);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(136, 226, 255, 0.1);
}

.advanced-info-button::before {
  content: "";
  position: absolute;
  inset: -18px auto -18px -70%;
  width: 240%;
  pointer-events: none;
  background: linear-gradient(96deg, transparent 0 24%, rgba(211, 255, 221, 0.92), rgba(96, 201, 245, 1), rgba(255, 223, 102, 0.92), transparent 76%);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-18%);
}

.advanced-info-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 54%);
  opacity: 0.62;
  mix-blend-mode: screen;
}

.advanced-info-button:hover {
  border-color: rgba(227, 252, 253, 0.78);
  color: #061014;
  background:
    linear-gradient(90deg, #d3ffdd 0%, #e3fcfd 30%, #60c9f5 52%, #ffdf66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 22px rgba(211, 255, 221, 0.42),
    0 0 34px rgba(96, 201, 245, 0.4),
    0 0 44px rgba(255, 223, 102, 0.3);
}

.advanced-info-button:hover::before {
  opacity: 1;
  animation: liquid-sheen 4.8s ease-in-out infinite alternate;
}

.advanced-info-button:hover::after {
  opacity: 0;
}

.advanced-info-row::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 3;
  padding: 9px 10px;
  border: 1px solid rgba(85, 232, 255, 0.18);
  border-radius: 12px;
  color: rgba(241, 250, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(85, 232, 255, 0.045)),
    rgba(5, 8, 14, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.2);
  font-size: 10px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.advanced-info-row:hover::after,
.advanced-info-row:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.advanced-info-panel {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(85, 232, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.08), rgba(145, 118, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
}

.advanced-info-panel strong {
  color: rgba(244, 250, 255, 0.88);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-info-panel p {
  margin: 0;
  color: rgba(222, 237, 247, 0.68);
  font-size: 10.5px;
  line-height: 1.45;
}

.advanced-ai-panel textarea,
.advanced-image-controls select {
  width: 100%;
  border: 1px solid rgba(245, 250, 255, 0.13);
  border-radius: 14px;
  color: rgba(245, 250, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  outline: none;
}

.advanced-ai-panel textarea {
  min-height: 64px;
  padding: 10px 11px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.45;
}

.advanced-image-controls,
.advanced-quick-actions,
.advanced-file-row,
.advanced-actions {
  display: grid;
  gap: 8px;
}

.advanced-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-image-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-image-controls select {
  height: 34px;
  padding: 0 10px;
  font-size: 10px;
}

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

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

#advancedMaskCanvas {
  width: 100%;
  height: clamp(120px, 24svh, 220px);
  aspect-ratio: auto;
  border: 1px solid rgba(85, 232, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(85, 232, 255, 0.04)),
    rgba(2, 5, 10, 0.72);
  touch-action: none;
}

#advancedAiStatus {
  min-height: 16px;
  color: rgba(222, 237, 247, 0.62);
  font-size: 10px;
  line-height: 1.4;
}

.talk2all-modal {
  position: fixed;
  z-index: 82;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.talk2all-modal[hidden] {
  display: none;
}

.talk2all-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(61, 236, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 52% 18%, rgba(84, 242, 189, 0.2), transparent 34%),
    radial-gradient(circle at 20% 74%, rgba(255, 79, 216, 0.14), transparent 28%),
    rgba(1, 5, 10, 0.82);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  backdrop-filter: blur(26px) saturate(1.42);
}

.talk2all-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(92vw, 460px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(61, 236, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(84, 242, 189, 0.035)),
    radial-gradient(circle at 16% 20%, rgba(61, 236, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(255, 79, 216, 0.16), transparent 32%),
    rgba(5, 8, 14, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 44px rgba(61, 236, 255, 0.18),
    0 28px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.talk2all-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(61, 236, 255, 0.78), rgba(255, 79, 216, 0.62), rgba(84, 242, 189, 0.72), rgba(61, 236, 255, 0.78));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.82;
  animation: talk2all-border 6.8s linear infinite;
}

.talk2all-panel::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  z-index: -1;
  width: 68%;
  pointer-events: none;
  background:
    linear-gradient(103deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 22%,
      rgba(61, 236, 255, 0.18) 42%,
      rgba(255, 79, 216, 0.12) 54%,
      transparent 74%);
  filter: blur(14px);
  mix-blend-mode: screen;
  transform: skewX(-14deg);
  animation: talk2all-panel-scan 8.4s ease-in-out infinite;
}

.talk2all-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.talk2all-header p {
  margin: 0 0 6px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(61, 236, 255, 0.28);
  border-radius: 999px;
  color: #eaffff;
  background: rgba(61, 236, 255, 0.08);
  box-shadow: 0 0 20px rgba(61, 236, 255, 0.12);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(61, 236, 255, 0.42);
}

.talk2all-header h2 {
  color: #f7fdff;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 26px rgba(255, 79, 216, 0.24);
}

.talk2all-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  position: relative;
  border: 1px solid rgba(245, 250, 255, 0.16);
  border-radius: 999px;
  color: #eefaff;
  background: rgba(24, 26, 34, 0.72);
}

.talk2all-close::before,
.talk2all-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

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

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

.talk2all-field {
  display: grid;
  gap: 7px;
}

.talk2all-field span {
  color: rgba(237, 248, 255, 0.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.talk2all-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(61, 236, 255, 0.2);
  border-radius: 12px;
  color: #eefaff;
  background:
    linear-gradient(135deg, rgba(61, 236, 255, 0.1), rgba(255, 79, 216, 0.045)),
    rgba(10, 16, 26, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(61, 236, 255, 0.08);
}

.talk2all-status {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 242, 189, 0.3);
  border-radius: 14px;
  color: rgba(216, 255, 246, 0.94);
  background:
    linear-gradient(90deg, rgba(84, 242, 189, 0.03) 50%, rgba(61, 236, 255, 0.055) 50%),
    linear-gradient(135deg, rgba(84, 242, 189, 0.12), rgba(85, 232, 255, 0.06)),
    rgba(7, 17, 22, 0.7);
  background-size: 14px 100%, auto, auto;
  box-shadow:
    inset 0 0 18px rgba(84, 242, 189, 0.1),
    0 0 28px rgba(84, 242, 189, 0.08);
  font-size: 12px;
  font-weight: 620;
}

.talk2all-wave {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 14px;
  border: 1px solid rgba(61, 236, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(61, 236, 255, 0.16), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 236, 255, 0.04) 1px, transparent 1px),
    rgba(4, 12, 20, 0.58);
  background-size: auto, 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 28px rgba(61, 236, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(61, 236, 255, 0.08);
  overflow: hidden;
}

.talk2all-wave::before,
.talk2all-wave::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.talk2all-wave::before {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 242, 189, 0.54), rgba(61, 236, 255, 0.82), transparent);
  box-shadow: 0 0 16px rgba(61, 236, 255, 0.58);
  opacity: 0.62;
}

.talk2all-wave::after {
  inset: -35% auto -35% -42%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), rgba(61, 236, 255, 0.2), transparent);
  filter: blur(10px);
  opacity: 0;
  transform: skewX(-14deg);
}

.talk2all-wave.listening::after {
  opacity: 0.82;
  animation: talk2all-wave-scan 2.7s ease-in-out infinite;
}

.talk2all-wave span {
  position: relative;
  z-index: 1;
  width: clamp(3px, 0.82vw, 6px);
  height: calc(10px + var(--wave-level, 0.08) * 58px);
  min-height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(61, 236, 255, 0.86) 32%, rgba(84, 242, 189, 0.78) 66%, rgba(255, 79, 216, 0.62));
  box-shadow:
    0 0 12px rgba(61, 236, 255, 0.5),
    0 0 22px rgba(84, 242, 189, 0.18);
  opacity: 0.42;
  transform: scaleY(var(--wave-level, 0.08));
  transform-origin: center;
  transition:
    height 84ms linear,
    opacity 160ms ease,
    transform 84ms linear;
}

.talk2all-wave.listening span {
  opacity: 0.92;
}

.talk2all-wave:not(.listening) span {
  animation: talk2all-wave-idle 1.9s ease-in-out infinite;
  animation-delay: var(--wave-delay, 0ms);
}

.talk2all-transcript {
  display: grid;
  gap: 8px;
}

.talk2all-transcript-card {
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(61, 236, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(61, 236, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 13, 22, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 20px rgba(61, 236, 255, 0.055);
}

.talk2all-transcript-card.translated {
  border-color: rgba(84, 242, 189, 0.22);
  background:
    linear-gradient(135deg, rgba(84, 242, 189, 0.08), rgba(255, 79, 216, 0.035)),
    rgba(5, 13, 22, 0.66);
}

.talk2all-transcript-card span {
  color: rgba(165, 240, 255, 0.82);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.talk2all-transcript-card.translated span {
  color: rgba(177, 255, 231, 0.84);
}

.talk2all-transcript-card p {
  max-height: 112px;
  margin: 0;
  overflow: auto;
  color: rgba(238, 250, 255, 0.88);
  font-size: 11.5px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 236, 255, 0.38) transparent;
}

.talk2all-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.talk2all-start,
.talk2all-save,
.talk2all-stop {
  min-height: 42px;
  border: 1px solid rgba(61, 236, 255, 0.26);
  border-radius: 999px;
  color: #eefaff;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 79, 216, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(85, 232, 255, 0.18), rgba(84, 242, 189, 0.1)),
    rgba(11, 17, 27, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(61, 236, 255, 0.1);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk2all-start {
  border-color: rgba(93, 255, 124, 0.64);
  color: #effff4;
  background:
    radial-gradient(circle at 18% 48%, rgba(129, 255, 154, 0.34), transparent 34%),
    linear-gradient(110deg, rgba(93, 255, 124, 0.3), rgba(84, 242, 189, 0.2) 48%, rgba(61, 236, 255, 0.12)),
    rgba(5, 25, 18, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 20px rgba(93, 255, 124, 0.16),
    0 0 26px rgba(93, 255, 124, 0.24),
    0 0 42px rgba(84, 242, 189, 0.12);
  text-shadow: 0 0 14px rgba(93, 255, 124, 0.5);
}

.talk2all-start::before {
  content: "";
  position: absolute;
  inset: -70% -55%;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 50%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(105deg, transparent 34%, rgba(93, 255, 124, 0.28), rgba(255, 255, 255, 0.18), transparent 62%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: talk2all-button-liquid 3.8s ease-in-out infinite alternate;
}

.talk2all-save {
  min-width: 128px;
  border-color: rgba(255, 79, 216, 0.28);
  background:
    linear-gradient(110deg, rgba(255, 79, 216, 0.14), rgba(61, 236, 255, 0.13)),
    rgba(12, 14, 28, 0.8);
}

.talk2all-stop {
  min-width: 88px;
}

.talk2all-modal.talk2all-running .talk2all-start {
  color: #07131b;
  border-color: rgba(85, 232, 255, 0.52);
  background:
    linear-gradient(rgba(85, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 225, 0.88), rgba(85, 232, 255, 0.96), rgba(84, 242, 189, 0.92));
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(245, 250, 255, 0.14),
    0 0 28px rgba(85, 232, 255, 0.48),
    0 0 46px rgba(255, 92, 225, 0.24);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 0 10px rgba(255, 255, 255, 0.32);
}

.talk2all-modal.talk2all-running .talk2all-start:disabled,
.talk2all-modal.talk2all-running .talk2all-stop:disabled {
  opacity: 1;
}

.talk2all-modal.talk2all-running .talk2all-start::before {
  content: "";
  position: absolute;
  inset: -80% -30%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.34), transparent 58%);
  animation: auth-scan 700ms linear infinite;
  mix-blend-mode: screen;
}

.talk2all-modal.talk2all-running .talk2all-stop {
  color: #fffaf0;
  border-color: rgba(255, 70, 70, 0.46);
  background:
    radial-gradient(circle at 16% 48%, rgba(255, 238, 96, 0.32), transparent 32%),
    radial-gradient(circle at 82% 50%, rgba(255, 58, 58, 0.32), transparent 36%),
    linear-gradient(110deg, rgba(255, 220, 82, 0.28), rgba(255, 137, 46, 0.22) 48%, rgba(255, 54, 78, 0.18)),
    rgba(35, 14, 5, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 0 22px rgba(255, 179, 46, 0.16),
    0 0 28px rgba(255, 179, 46, 0.24),
    0 0 42px rgba(255, 54, 78, 0.18);
  text-shadow: 0 0 14px rgba(255, 179, 46, 0.44);
}

.talk2all-modal.talk2all-running .talk2all-stop::before {
  content: "";
  position: absolute;
  inset: -70% -58%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 48%, rgba(255, 255, 255, 0.3), transparent 15%),
    linear-gradient(105deg, transparent 34%, rgba(255, 237, 105, 0.25), rgba(255, 77, 77, 0.22), transparent 62%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: talk2all-button-liquid 3.2s ease-in-out infinite alternate;
}

.talk2all-save.ready.mode-rush {
  color: #031018;
  border-color: rgba(85, 232, 255, 0.72);
  background: linear-gradient(135deg, rgba(85, 232, 255, 0.98), rgba(84, 242, 189, 0.82));
}

.talk2all-save.ready.mode-calm {
  color: #06141c;
  border-color: rgba(106, 205, 255, 0.66);
  background: linear-gradient(135deg, rgba(117, 211, 255, 0.92), rgba(170, 238, 255, 0.72));
}

.talk2all-save.ready.mode-attention {
  color: #100616;
  border-color: rgba(255, 209, 92, 0.7);
  background: linear-gradient(135deg, rgba(255, 221, 92, 0.94), rgba(255, 142, 84, 0.78));
}

.talk2all-save.ready.mode-noema {
  color: #16051e;
  border-color: rgba(255, 79, 216, 0.82);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.96), rgba(124, 92, 255, 0.88) 52%, rgba(53, 217, 255, 0.84));
}

.talk2all-start:disabled,
.talk2all-save:disabled,
.talk2all-stop:disabled {
  cursor: default;
  opacity: 0.48;
}

.talk2all-modal.talk2all-running .talk2all-start:disabled,
.talk2all-modal.talk2all-running .talk2all-stop:disabled {
  opacity: 1;
}

.talk2all-note {
  margin: 0;
  color: rgba(221, 237, 250, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.sources {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 250, 255, 0.1);
}

.sources span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sources a {
  color: rgba(223, 248, 255, 0.88);
  font-size: 12px;
  line-height: 1.42;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sources a:hover {
  color: #fff;
  text-decoration: underline;
}

.composer {
  width: calc(100% - 36px);
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 9px;
  margin: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 250, 255, 0.17);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(24, 24, 27, 0.68);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(34px) saturate(1.4);
}

.attach-wrap {
  position: relative;
  z-index: 5;
}

.attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(260px, calc(100vw - 38px));
  padding: 7px;
  border: 1px solid rgba(53, 217, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(85, 232, 255, 0.045)),
    rgba(18, 21, 28, 0.76);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(53, 217, 255, 0.12),
    inset 0 0 0 1px rgba(245, 250, 255, 0.05);
  backdrop-filter: blur(30px) saturate(1.35);
}

.attach-menu[hidden] {
  display: none;
}

.attach-menu button {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(237, 248, 255, 0.9);
  background: transparent;
  text-align: left;
}

.attach-menu button:hover {
  background:
    linear-gradient(135deg, rgba(53, 217, 255, 0.13), rgba(255, 79, 216, 0.08));
}

.attach-menu span {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0.02em;
}

.attach-menu small {
  color: rgba(221, 237, 250, 0.58);
  font-size: 10px;
  font-weight: 320;
}

.input-stack {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.attachment-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0 0;
  scrollbar-width: none;
}

.attachment-preview::-webkit-scrollbar {
  display: none;
}

.attachment-preview[hidden] {
  display: none;
}

.attachment-chip,
.message-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 252px;
  min-height: 48px;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(53, 217, 255, 0.18);
  border-radius: 14px;
  background: rgba(18, 22, 29, 0.68);
  color: rgba(237, 248, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(245, 250, 255, 0.04);
}

.attachment-chip {
  position: relative;
  cursor: pointer;
  text-align: left;
}

.message-file-chip {
  cursor: pointer;
}

.attachment-chip:hover {
  border-color: rgba(85, 232, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(18, 22, 29, 0.78);
}

.attachment-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-radius: 10px;
  background: rgba(5, 9, 14, 0.66);
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumb,
.file-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #021018;
  background:
    linear-gradient(135deg, rgba(85, 232, 255, 0.95), rgba(84, 242, 189, 0.86));
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.attachment-chip-label,
.message-file-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 460;
}

.attachment-chip small,
.message-file-chip small {
  flex: 0 0 auto;
  color: rgba(221, 237, 250, 0.56);
  font-size: 9px;
}

.attachment-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: rgba(237, 248, 255, 0.8);
  background: rgba(0, 0, 0, 0.34);
  font-size: 14px;
  line-height: 1;
}

.message-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-btn,
.send-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(245, 250, 255, 0.18);
  border-radius: 50%;
  background: #000;
  color: #dff8ff;
  box-shadow: inset 0 0 0 1px rgba(53, 217, 255, 0.06);
}

.upload-btn {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(237, 248, 255, 0.16), rgba(85, 232, 255, 0.055)),
    rgba(15, 18, 24, 0.7);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-btn:hover {
  border-color: rgba(237, 248, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(237, 248, 255, 0.14), rgba(53, 217, 255, 0.075)),
    rgba(0, 0, 0, 0.96);
  box-shadow:
    0 0 18px rgba(53, 217, 255, 0.14),
    inset 0 0 0 1px rgba(245, 250, 255, 0.08);
  transform: translateY(-1px);
}

.upload-btn:active {
  transform: translateY(0) scale(0.96);
}

.upload-btn::before {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(53, 217, 255, 0.18), transparent 58%),
    url("/assets/attachment.png") center / 175% 175% no-repeat;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(53, 217, 255, 0.34));
  box-shadow:
    0 0 12px rgba(53, 217, 255, 0.16);
}

.upload-btn::after {
  content: none;
}

.upload-btn.has-image {
  border-color: rgba(55, 213, 167, 0.72);
  background:
    linear-gradient(145deg, rgba(55, 213, 167, 0.18), rgba(53, 217, 255, 0.08)),
    rgba(0, 0, 0, 0.92);
}

.upload-btn.has-image::before {
  filter:
    drop-shadow(0 0 8px rgba(55, 213, 167, 0.48))
    saturate(1.2);
}

.send-btn {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(84, 242, 189, 0.18), rgba(85, 232, 255, 0.08)),
    rgba(0, 0, 0, 0.76);
}

.send-btn img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform: scale(0.86);
}

.send-btn:disabled {
  opacity: 0.62;
  cursor: progress;
}

.composer textarea {
  width: 100%;
  min-height: 34px;
  max-height: 170px;
  resize: none;
  padding: 6px 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: rgba(221, 237, 250, 0.62);
  font-size: 14.5px;
}

.partners {
  margin-top: 18px;
  padding: 18px;
}

.partners h2 {
  margin-bottom: 14px;
  color: rgba(237, 248, 255, 0.84);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.18em;
  text-align: center;
}

.partners-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
  cursor: default;
}

.partners-toggle-icon {
  display: none;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 10px;
}

.partner-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(245, 250, 255, 0.13);
  border-radius: 999px;
  color: rgba(245, 250, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(16, 19, 25, 0.48);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.partner-grid img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer {
  padding: 18px 0 4px;
  color: rgba(223, 237, 250, 0.6);
  font-size: 11px;
  font-weight: 460;
  letter-spacing: 0.12em;
  text-align: left;
}

@keyframes liquid-sheen {
  from {
    transform: translateX(-18%) skewX(-8deg);
  }
  to {
    transform: translateX(18%) skewX(-8deg);
  }
}

@keyframes hero-strip-sweep-left {
  0% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  50% {
    left: -1%;
    transform: translate(-50%, -50%);
  }
  100% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@keyframes hero-strip-sweep-right {
  0% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  50% {
    left: 101%;
    transform: translate(-50%, -50%);
  }
  100% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@keyframes talk2all-orbit {
  from {
    transform: translateX(-48%) skewX(-12deg);
  }
  to {
    transform: translateX(48%) skewX(-12deg);
  }
}

@keyframes talk2all-border {
  from {
    filter: hue-rotate(0deg) brightness(1);
  }
  to {
    filter: hue-rotate(360deg) brightness(1.12);
  }
}

@keyframes talk2all-panel-scan {
  0% {
    transform: translateX(0) skewX(-14deg);
    opacity: 0.42;
  }
  48% {
    opacity: 0.86;
  }
  100% {
    transform: translateX(245%) skewX(-14deg);
    opacity: 0.42;
  }
}

@keyframes talk2all-wave-scan {
  from {
    transform: translateX(0) skewX(-14deg);
  }
  to {
    transform: translateX(340%) skewX(-14deg);
  }
}

@keyframes talk2all-wave-idle {
  0%,
  100% {
    transform: scaleY(0.18);
  }
  50% {
    transform: scaleY(0.42);
  }
}

@keyframes liquid-button-pass {
  from {
    transform: translateX(0) skewX(-18deg);
  }
  to {
    transform: translateX(360%) skewX(-18deg);
  }
}

@keyframes talk2all-button-liquid {
  from {
    transform: translateX(-22%) skewX(-10deg);
    opacity: 0.52;
  }
  to {
    transform: translateX(22%) skewX(-10deg);
    opacity: 0.96;
  }
}

@keyframes thinking-description-sheen {
  0%,
  100% {
    background-position: 100% 50%;
    opacity: 0.45;
  }
  50% {
    background-position: 0% 50%;
    opacity: 0.72;
  }
}

@keyframes download-confirm-pop {
  0% {
    transform: scale(0.98);
    opacity: 0.72;
  }
  18% {
    transform: scale(1.04);
    opacity: 1;
  }
  72% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.98);
    opacity: 0;
  }
}

.tool-grid button,
.answer-size-buttons button,
.mode-card,
.talk2all-btn,
.talk2all-start,
.talk2all-save,
.talk2all-stop,
.language-option,
.attach-menu button,
.upload-btn,
.send-btn,
.auth-submit,
.logout-btn {
  position: relative;
  overflow: hidden;
}

.tool-grid button::after,
.answer-size-buttons button::after,
.mode-card::after,
.talk2all-btn::after,
.talk2all-start::after,
.talk2all-save::after,
.talk2all-stop::after,
.language-option::after,
.attach-menu button::after,
.upload-btn::after,
.send-btn::after,
.auth-submit::after,
.logout-btn::after {
  content: "";
  position: absolute;
  inset: -45% -70%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.34), transparent 16%),
    radial-gradient(circle at 58% 45%, rgba(85, 232, 255, 0.32), transparent 18%),
    radial-gradient(circle at 72% 60%, rgba(84, 242, 189, 0.22), transparent 20%),
    linear-gradient(105deg, transparent 33%, rgba(255, 255, 255, 0.24), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-34%) rotate(4deg);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tool-grid button:hover::after,
.answer-size-buttons button:hover::after,
.mode-card:hover::after,
.talk2all-btn:hover::after,
.talk2all-start:hover::after,
.talk2all-save:hover::after,
.talk2all-stop:hover::after,
.language-option:hover::after,
.attach-menu button:hover::after,
.upload-btn:hover::after,
.send-btn:hover::after,
.auth-submit:hover::after,
.logout-btn:hover::after {
  opacity: 1;
  transform: translateX(22%) rotate(4deg);
}

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

  .chat-card {
    min-height: 620px;
  }

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

@media (max-width: 640px) {
  html,
  body {
    min-height: 100svh;
  }

  .app {
    width: 100%;
    min-height: 100svh;
    padding:
      calc(10px + env(safe-area-inset-top, 0px))
      8px
      12px;
  }

  .topbar {
    min-height: auto;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    margin: 8px 0 0;
  }

  .brand {
    width: 118px;
    flex: 0 0 auto;
  }

  .status-row {
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 7px;
  }

  .status-row .language-switch {
    margin-left: auto;
  }

  .status-row .logout-btn {
    position: absolute;
    top: calc(7px + env(safe-area-inset-top, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    z-index: 80;
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border-color: rgba(245, 250, 255, 0.24);
    color: rgba(248, 252, 255, 0.96);
    background:
      linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(21, 28, 36, 0.58)),
      rgba(0, 0, 0, 0.46);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 22px rgba(0, 0, 0, 0.34),
      0 0 16px rgba(85, 232, 255, 0.14);
    font-size: 9px;
    letter-spacing: 0.07em;
    backdrop-filter: blur(16px) saturate(1.18);
  }

  .mobile-talk2all-slot {
    display: block;
    order: 2;
  }

  .mobile-talk2all-slot[hidden] {
    display: none;
  }

  .mobile-talk2all-slot .talk2all-btn {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.055em;
  }

  .language-switch {
    min-height: 30px;
  }

  .live-status {
    min-height: 30px;
    padding: 0 9px;
    font-size: 8.8px;
    letter-spacing: 0.045em;
  }

  .language-option {
    min-width: 32px;
    min-height: 26px;
    font-size: 10px;
  }

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

  .talk2all-start {
    grid-column: 1 / -1;
  }

  .talk2all-save,
  .talk2all-stop {
    min-width: 0;
    padding-inline: 10px;
    font-size: 9.5px;
    letter-spacing: 0.045em;
  }

  .hero {
    height: auto;
    aspect-ratio: 1672 / 332;
    border-radius: 14px;
    margin-top: 34px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero::before,
  .hero::after {
    inset: 4px 0;
    border-radius: 18px;
  }

  .hero img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: fill;
    object-position: center;
    filter:
      contrast(1.28)
      saturate(1.02)
      brightness(0.98);
  }

  .hero .hero-sheen {
    left: 50%;
    top: 61.95%;
    width: clamp(76px, 27vw, 126px);
    height: 2px;
    border-radius: 14px;
    opacity: 0.98;
    mix-blend-mode: screen;
    animation-duration: 16.8s;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .partner-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .context-panel,
  .chat-card,
  .mobile-tool-panel,
  .mobile-main-partner-slot,
  .chat-main-partner-slot,
  .partners {
    border-radius: 22px;
  }

  .context-panel {
    order: 0;
    gap: 10px;
    padding: 10px;
  }

  .chat-card {
    order: 1;
  }

  .intro-block {
    display: none;
  }

  .main-partner-panel {
    margin-top: 10px;
    min-height: 144px;
    padding: 10px;
    gap: 4px;
    border-radius: 18px;
  }

  .main-partner-panel h2 {
    margin-top: 0;
    font-size: 12px;
  }

  .main-partner-panel img {
    width: min(82vw, 300px);
    margin-top: 7px;
  }

  .main-partner-sheen {
    animation-duration: 8.8s;
  }

  .mobile-tool-panel {
    display: block;
    margin-top: 10px;
    padding: 10px;
  }

  .mobile-main-partner-slot {
    display: block;
  }

  .mobile-tool-panel[hidden],
  .mobile-main-partner-slot[hidden] {
    display: none;
  }

  .mobile-collapsible-panel {
    gap: 7px;
  }

  .mobile-collapsible-panel > .file-intel-header,
  .mobile-collapsible-panel > .phase2-header {
    min-height: 34px;
    cursor: pointer;
  }

  .mobile-collapsible-panel > .file-intel-header::after,
  .mobile-collapsible-panel > .phase2-header::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 1px solid rgba(226, 248, 255, 0.74);
    border-bottom: 1px solid rgba(226, 248, 255, 0.74);
    transform: rotate(45deg);
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0.86;
  }

  .mobile-collapsible-panel[data-mobile-collapsed="false"] > .file-intel-header::after,
  .mobile-collapsible-panel[data-mobile-collapsed="false"] > .phase2-header::after {
    transform: translateY(3px) rotate(225deg);
  }

  .file-intel-panel[data-mobile-collapsed="true"] > :not(.file-intel-header),
  .research-panel[data-mobile-collapsed="true"] > :not(.phase2-header),
  .capability-panel[data-mobile-collapsed="true"] > :not(.phase2-header) {
    display: none;
  }

  .file-intel-panel[data-mobile-collapsed="true"],
  .research-panel[data-mobile-collapsed="true"],
  .capability-panel[data-mobile-collapsed="true"] {
    padding-top: 10px;
    padding-bottom: 10px;
  }

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

  .tool-grid button {
    min-height: 30px;
    justify-content: center;
    padding: 0 7px;
    font-size: 8px;
    letter-spacing: 0.045em;
    text-align: center;
  }

  .mode-router {
    gap: 7px;
  }

  .mode-router .eyebrow {
    margin-bottom: 0;
    font-size: 9px;
  }

  .mode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .chat-mode-grid {
    width: 100%;
    display: flex;
    gap: 5px;
    order: 2;
  }

  .mode-card {
    min-height: 46px;
    padding: 7px 5px;
    text-align: center;
  }

  .mode-card span {
    font-size: 12px;
  }

  .mode-card small {
    display: none;
  }

  .chat-card {
    min-height: min(640px, calc(100svh - 210px));
    max-height: calc(100svh - 24px);
  }

  .chat-card-header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 11px 12px;
  }

  .chat-card-header .eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
    letter-spacing: 0.11em;
  }

  .chat-card-header h2 {
    font-size: 19px;
  }

  .messages {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 10px;
  }

  .message {
    max-width: 96%;
  }

  .bubble {
    font-size: 12.5px;
  }

  .message.assistant .bubble {
    font-size: calc(12.5px * var(--answer-font-scale));
  }

  .composer {
    position: sticky;
    bottom: 8px;
    width: calc(100% - 16px);
    grid-template-columns: 36px minmax(0, 1fr) 38px;
    gap: 7px;
    margin: 8px;
    padding: 6px 8px;
    border-color: rgba(245, 250, 255, 0.2);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(85, 232, 255, 0.045)),
      rgba(18, 20, 26, 0.7);
    backdrop-filter: blur(30px) saturate(1.35);
  }

  .upload-btn,
  .send-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .composer textarea {
    min-height: 32px;
    font-size: 16px;
    line-height: 1.25;
  }

  .composer textarea::placeholder {
    font-size: 16px;
  }

  .auth-card input {
    font-size: 16px;
  }

  .attach-menu {
    left: -2px;
    bottom: calc(100% + 10px);
    width: min(255px, calc(100vw - 34px));
  }

  .attach-menu button {
    min-height: 48px;
    padding: 10px 11px;
  }

  .partners {
    margin-top: 10px;
    padding: 10px;
  }

  .partners h2 {
    margin-bottom: 9px;
    font-size: 10px;
  }

  .partners-toggle {
    min-height: 34px;
    justify-content: space-between;
    padding: 0 4px;
    cursor: pointer;
  }

  .partners-toggle-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-block;
    border: 1px solid rgba(85, 232, 255, 0.34);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(85, 232, 255, 0.08)),
      rgba(5, 8, 14, 0.32);
    position: relative;
  }

  .partners-toggle-icon::before,
  .partners-toggle-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(226, 248, 255, 0.9);
    transform: translate(-50%, -50%);
  }

  .partners-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 180ms ease;
  }

  .partners.open .partners-toggle-icon::after {
    opacity: 0;
  }

  .partners.collapsed h2 {
    margin-bottom: 0;
  }

  .partners.collapsed .partner-grid {
    display: none;
  }

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

  .partner-grid span {
    justify-content: flex-start;
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .partner-grid img {
    width: 18px;
    height: 18px;
  }

  .advanced-openai-toggle {
    min-height: 32px;
    padding: 0 11px;
    font-size: 9px;
  }

  .advanced-openai-modal {
    align-items: end;
    padding: 10px 0;
  }

  .advanced-openai-shell {
    width: min(100% - 20px, 1320px);
    height: calc(100svh - 20px);
  }

  .advanced-ai-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .advanced-ai-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 372;
    min-height: 0;
    border-radius: 14px;
  }

  .advanced-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .advanced-quick-actions .advanced-info-row {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 3px;
  }

  .advanced-quick-actions button:not(.advanced-info-button) {
    min-height: 28px;
    padding: 0 5px;
    font-size: 8px;
  }

  .advanced-quick-actions .advanced-info-button {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    font-size: 10px;
  }

  .advanced-image-controls,
  .advanced-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advanced-ai-panel textarea {
    font-size: 16px;
    min-height: 56px;
  }

  #advancedMaskCanvas {
    height: clamp(96px, 18svh, 150px);
  }

  .footer {
    padding-top: 12px;
    font-size: 8.5px;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
}
