:root {
  --app-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html,
body,
button,
input,
textarea,
select,
optgroup {
  font-family: var(--app-font-sans) !important;
}

html.glass {
  color-scheme: light;
  --liquid-x: 50%;
  --liquid-y: 18%;

  --liquid-fill: rgba(255, 255, 255, 0.28);
  --liquid-fill-strong: rgba(255, 255, 255, 0.46);
  --liquid-fill-soft: rgba(255, 255, 255, 0.18);

  --liquid-edge: rgba(255, 255, 255, 0.94);
  --liquid-edge-soft: rgba(148, 163, 184, 0.20);

  --liquid-shadow-sm: rgba(15, 23, 42, 0.05);
  --liquid-shadow-md: rgba(15, 23, 42, 0.10);
  --liquid-shadow-lg: rgba(15, 23, 42, 0.16);

  --liquid-text: rgba(15, 23, 42, 0.92);
  --liquid-muted: rgba(71, 85, 105, 0.66);

  --liquid-tint: rgba(224, 242, 254, 0.22);
}

#hs-pro-sidebar {
  min-height: 100vh;
  min-height: 100dvh;
}

#hs-pro-sidebar > .relative {
  min-height: 100%;
}

html.glass body {
  min-height: 100vh;
  color: var(--liquid-text) !important;
  background:
    linear-gradient(115deg, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(245deg, rgba(20, 184, 166, 0.16), transparent 31%),
    linear-gradient(28deg, rgba(168, 85, 247, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9ff 46%, #eef8ff 100%) !important;
  background-attachment: fixed;
}

html.glass body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent           0%  21%,
      rgba(255,255,255,0.64) 22%,
      rgba(255,255,255,0.18) 25%,
      transparent           29%  62%,
      rgba(255,255,255,0.20) 63%,
      rgba(255,255,255,0.07) 65%,
      transparent           69%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(14, 165, 233, 0.035) 0 0.5px,
      transparent 0.5px 22px
    );
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.70), transparent 88%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.70), transparent 88%);
}

html.glass body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.16) 34%, transparent 70%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
  opacity: 0.72;
}

/* ── 2. GLASS PANELS ─────────────────────────────────────────────────────── */
html.glass #hs-pro-sidebar,
html.glass aside,
html.glass .hs-dropdown-menu,
html.glass .glass-theme-switcher,
html.glass .chat-message,
html.glass #answerContainer,
html.glass .sticky.bottom-0,
html.glass body > .w-full.max-w-md > .bg-white {
  isolation: isolate;
  overflow: hidden;
  color: var(--liquid-text) !important;

  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.46) 0%, transparent 54%),
    linear-gradient(135deg, rgba(255,255,255,0.50), rgba(255,255,255,0.24)) !important;

  border-color: var(--liquid-edge-soft) !important;

  /* Multi-layer depth shadow + inset top-highlight */
  box-shadow:
    0 0   0 0.5px rgba(255,255,255,0.62),
    0 2px 4px      var(--liquid-shadow-sm),
    0 16px 42px    var(--liquid-shadow-md),
    0 42px 96px    var(--liquid-shadow-lg),
    inset 0  1px 0 rgba(255,255,255,0.92),
    inset 0  0  0 1px rgba(255,255,255,0.16) !important;

  -webkit-backdrop-filter: blur(34px) saturate(170%) brightness(1.04);
          backdrop-filter: blur(34px) saturate(170%) brightness(1.04);
}

html.glass .chat-message,
html.glass #answerContainer,
html.glass body > .w-full.max-w-md > .bg-white {
  position: relative;
}

/* ── 3. SPECULAR HIGHLIGHT (the "Apple gleam") ───────────────────────────── */
/* Simulates light reflecting off the convex top-face of a glass lens         */
html.glass #hs-pro-sidebar::before,
html.glass aside::before,
html.glass .hs-dropdown-menu::before,
html.glass .glass-theme-switcher::before,
html.glass .chat-message::before,
html.glass #answerContainer::before,
html.glass .sticky.bottom-0::before,
html.glass body > .w-full.max-w-md > .bg-white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%,
      rgba(255,255,255,0.82)  0%,
      rgba(255,255,255,0.38) 28%,
      transparent            58%),
    radial-gradient(ellipse 44% 34% at 12% 6%,
      rgba(255,255,255,0.56) 0%,
      transparent            52%);
  opacity: 0.86;
  mix-blend-mode: normal;
}

/* ── 4. EDGE RIM  (lens-edge refraction simulation) ─────────────────────── */
/* Bright perimeter border, heavier at top-left and bottom-right corners      */
html.glass #hs-pro-sidebar::after,
html.glass aside::after,
html.glass .hs-dropdown-menu::after,
html.glass .glass-theme-switcher::after,
html.glass .chat-message::after,
html.glass #answerContainer::after,
html.glass .sticky.bottom-0::after,
html.glass body > .w-full.max-w-md > .bg-white::after {
  content: "";
  position: absolute;
  inset: 0.5px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.88);
  /* Mask fades the border away in the middle, keeping it at corners/top */
  -webkit-mask-image: linear-gradient(140deg, #000 0 24%, rgba(0,0,0,0.08) 40% 68%, #000 100%);
          mask-image: linear-gradient(140deg, #000 0 24%, rgba(0,0,0,0.08) 40% 68%, #000 100%);
}

/* ── 5. COLOUR-PRESERVING ALERT PANELS ──────────────────────────────────── */
html.glass body > .w-full.max-w-md .bg-red-100 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(254,226,226,0.68), rgba(254,202,202,0.46)) !important;
  border-color: rgba(248,113,113,0.40) !important;
  box-shadow: 0 4px 16px rgba(220,38,38,0.10), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
}

html.glass body > .w-full.max-w-md .bg-green-100 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(220,252,231,0.68), rgba(187,247,208,0.46)) !important;
  border-color: rgba(74,222,128,0.40) !important;
  box-shadow: 0 4px 16px rgba(22,163,74,0.10), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
}

/* ── 6. DROPDOWN  ────────────────────────────────────────────────────────── */
html.glass .hs-dropdown-menu {
  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.56) 0%, transparent 55%),
    rgba(255,255,255,0.42) !important;
}

/* ── 7. CHAT MESSAGES ────────────────────────────────────────────────────── */
html.glass .chat-container .chat-message {
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

html.glass .chat-container .chat-message:hover {
  transform: translateY(-1px) scale(1.002);
}

/* ── 8. INPUTS  ──────────────────────────────────────────────────────────── */
html.glass input,
html.glass textarea,
html.glass select {
  color: var(--liquid-text) !important;
  background: rgba(255,255,255,0.46) !important;
  border-color: rgba(255,255,255,0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 0 0 1px rgba(255,255,255,0.16) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) brightness(1.04);
          backdrop-filter: blur(22px) saturate(160%) brightness(1.04);
}

html.glass input::placeholder,
html.glass textarea::placeholder {
  color: rgba(50,50,72,0.48) !important;
}

html.glass textarea#hs-pro-aimt,
html.glass form[method="POST"][enctype="multipart/form-data"] select[name="ai_model"] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

html.glass form[method="POST"][enctype="multipart/form-data"] select[name="ai_model"] {
  border: 0 !important;
  -webkit-appearance: none;
          appearance: none;
}

html.glass form[method="POST"][enctype="multipart/form-data"] select[name="ai_model"]:hover,
html.glass form[method="POST"][enctype="multipart/form-data"] select[name="ai_model"]:focus {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── 9. TEXT COLOURS ─────────────────────────────────────────────────────── */
html.glass .text-gray-800,
html.glass .text-gray-900,
html.glass .dark\:text-white,
html.glass .dark\:text-neutral-200,
html.glass .dark\:text-neutral-300,
html.glass h1,
html.glass h2,
html.glass h3 {
  color: var(--liquid-text) !important;
}

html.glass .text-gray-400,
html.glass .text-gray-500,
html.glass .text-gray-600,
html.glass .dark\:text-neutral-400,
html.glass .dark\:text-neutral-500 {
  color: var(--liquid-muted) !important;
}

/* ── 10. BORDERS ─────────────────────────────────────────────────────────── */
html.glass .border-gray-200,
html.glass .border-gray-300,
html.glass .dark\:border-neutral-600,
html.glass .dark\:border-neutral-700,
html.glass .dark\:border-neutral-800 {
  border-color: rgba(255,255,255,0.34) !important;
}

/* ── 11. SURFACE BACKGROUNDS ─────────────────────────────────────────────── */
html.glass .bg-white:not(.hs-dropdown-menu),
html.glass .bg-gray-50,
html.glass .bg-gray-100,
html.glass .dark\:bg-neutral-700,
html.glass .dark\:bg-neutral-800,
html.glass .dark\:bg-neutral-900,
html.glass .dark\:bg-gray-700,
html.glass .dark\:bg-gray-800 {
  background-color: rgba(255,255,255,0.28) !important;
}

html.glass .hover\:bg-gray-100:hover,
html.glass .hover\:bg-gray-100\/70:hover,
html.glass .dark\:hover\:bg-neutral-700:hover,
html.glass .dark\:hover\:bg-neutral-800:hover,
html.glass .focus\:bg-gray-100:focus {
  background: rgba(255,255,255,0.44) !important;
}

html.glass .bg-gradient-to-r {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.26)) !important;
  border-color: rgba(255,255,255,0.48) !important;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.58),
    0 20px 55px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
          backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
}

html.dark:not(.glass) body,
html.dark:not(.glass) main {
  background: #171717 !important;
  color: #f5f5f5 !important;
}

html.dark:not(.glass) header.bg-white,
html.dark:not(.glass) .sticky.bottom-0 {
  background: #171717 !important;
  border-color: #2a2a2a !important;
}

html.dark:not(.glass) .chat-message,
html.dark:not(.glass) .chat-edit-form,
html.dark:not(.glass) #answerContainer {
  color: #f5f5f5 !important;
  border-color: #333333 !important;
}

html.dark:not(.glass) .chat-message *:not(a):not(code):not(pre),
html.dark:not(.glass) .chat-edit-form *:not(a):not(code):not(pre),
html.dark:not(.glass) #answerContainer *:not(a):not(code):not(pre) {
  color: inherit !important;
}

html.dark:not(.glass) .chat-container .user-message,
html.dark:not(.glass) .user-message,
html.dark:not(.glass) .chat-edit-form {
  background: #262626 !important;
}

html.dark:not(.glass) .chat-container .ai-message,
html.dark:not(.glass) .ai-message,
html.dark:not(.glass) #answerContainer {
  background: #1f1f1f !important;
}

html.dark:not(.glass) form[method="POST"][enctype="multipart/form-data"] > .bg-gradient-to-r {
  background: #1f1f1f !important;
  border-color: #333333 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24) !important;
}

html.dark:not(.glass) textarea#hs-pro-aimt,
html.dark:not(.glass) form[method="POST"][enctype="multipart/form-data"] select[name="ai_model"] {
  color: #f5f5f5 !important;
  background: transparent !important;
}

html.dark:not(.glass) textarea#hs-pro-aimt::placeholder {
  color: #a3a3a3 !important;
}

html.dark:not(.glass) .copy-saved-message,
html.dark:not(.glass) .show-edit-form,
html.dark:not(.glass) .cancel-edit,
html.dark:not(.glass) .copy-btn,
html.dark:not(.glass) .edit-btn {
  background: #333333 !important;
  color: #f5f5f5 !important;
}

html.dark:not(.glass) .copy-saved-message:hover,
html.dark:not(.glass) .show-edit-form:hover,
html.dark:not(.glass) .cancel-edit:hover,
html.dark:not(.glass) .copy-btn:hover,
html.dark:not(.glass) .edit-btn:hover {
  background: #404040 !important;
}

.answer-feedback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 34rem;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.answer-feedback-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.answer-feedback-form {
  margin: 0;
}

.answer-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.answer-feedback-button:hover,
.answer-feedback-button:focus-visible {
  color: #111827;
  background: #f3f4f6;
  outline: none;
}

.answer-feedback-button.is-active {
  color: #111827;
  background: #ececec;
}

.answer-feedback-button--like.is-active {
  color: #0f766e;
  background: #ccfbf1;
}

.answer-feedback-button--dislike.is-active {
  color: #be123c;
  background: #ffe4e6;
}

.answer-feedback-comment-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
  margin: 0;
}

.answer-feedback-comment-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111827;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  outline: none;
}

.answer-feedback-comment-field::placeholder {
  color: #9ca3af;
}

.answer-feedback-comment-field:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.answer-feedback-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  min-width: 2.5rem;
  color: #ffffff;
  background: #111827;
  border: 0;
  border-radius: 0.5rem;
  transition: background 150ms ease, transform 150ms ease;
}

.answer-feedback-comment-submit:hover,
.answer-feedback-comment-submit:focus-visible {
  background: #374151;
  outline: none;
}

html.dark:not(.glass) .answer-feedback-button {
  color: #a3a3a3 !important;
  background: transparent !important;
}

html.dark:not(.glass) .answer-feedback-button:hover,
html.dark:not(.glass) .answer-feedback-button:focus-visible {
  color: #f5f5f5 !important;
  background: #333333 !important;
}

html.dark:not(.glass) .answer-feedback-button--like.is-active {
  color: #99f6e4 !important;
  background: #134e4a !important;
}

html.dark:not(.glass) .answer-feedback-button--dislike.is-active {
  color: #fecdd3 !important;
  background: #7f1d1d !important;
}

html.dark:not(.glass) .answer-feedback-comment-field {
  color: #f5f5f5 !important;
  background: #262626 !important;
  border-color: #404040 !important;
}

html.dark:not(.glass) .answer-feedback-comment-field::placeholder {
  color: #a3a3a3 !important;
}

html.dark:not(.glass) .answer-feedback-comment-field:focus {
  border-color: #737373 !important;
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.20) !important;
}

html.dark:not(.glass) .answer-feedback-comment-submit {
  color: #111827 !important;
  background: #f5f5f5 !important;
}

html.dark:not(.glass) .answer-feedback-comment-submit:hover,
html.dark:not(.glass) .answer-feedback-comment-submit:focus-visible {
  background: #d4d4d4 !important;
}

html.glass main {
  background: transparent !important;
}

html.glass header.bg-white {
  background: rgba(255,255,255,0.36) !important;
  border-color: rgba(255,255,255,0.28) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) brightness(1.04);
          backdrop-filter: blur(26px) saturate(160%) brightness(1.04);
}

html.glass .sticky.bottom-0 {
  overflow: visible !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

html.glass .sticky.bottom-0::before,
html.glass .sticky.bottom-0::after {
  display: none !important;
}

html.glass .chat-container .chat-message,
html.glass #answerContainer,
html.glass .chat-edit-form,
html.glass form[method="POST"][enctype="multipart/form-data"] > .bg-gradient-to-r {
  border: 1px solid rgba(255,255,255,0.42) !important;
  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.54) 0%, transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,0.46), rgba(255,255,255,0.22)) !important;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.52),
    0 14px 42px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.88) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
          backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
}

html.glass .chat-container .user-message {
  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.58) 0%, transparent 54%),
    linear-gradient(135deg, rgba(224,242,254,0.52), rgba(255,255,255,0.28)) !important;
}

html.glass .chat-container .ai-message,
html.glass #answerContainer {
  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.50) 0%, transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,0.44), rgba(241,245,249,0.26)) !important;
}

html.glass #answerContainer {
  overflow-y: auto !important;
}

html.glass .answer-feedback-button {
  color: rgba(15, 23, 42, 0.68) !important;
  background: rgba(255, 255, 255, 0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 16px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
}

html.glass .answer-feedback-button:hover,
html.glass .answer-feedback-button:focus-visible {
  color: rgba(8, 8, 18, 0.92) !important;
  background: rgba(255, 255, 255, 0.46) !important;
  transform: translateY(-1px);
}

html.glass .answer-feedback-button--like.is-active {
  color: #115e59 !important;
  background: rgba(204, 251, 241, 0.68) !important;
}

html.glass .answer-feedback-button--dislike.is-active {
  color: #9f1239 !important;
  background: rgba(255, 228, 230, 0.70) !important;
}

html.glass .answer-feedback-comment-field {
  color: rgba(8, 8, 18, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 8px 22px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
}

html.glass .answer-feedback-comment-field::placeholder {
  color: rgba(71, 85, 105, 0.68) !important;
}

html.glass .answer-feedback-comment-field:focus {
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 0 0 3px rgba(186, 230, 253, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html.glass .answer-feedback-comment-submit {
  color: rgba(8, 8, 18, 0.88) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 22px rgba(15, 23, 42, 0.10);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
          backdrop-filter: blur(18px) saturate(170%);
}

html.glass .answer-feedback-comment-submit:hover,
html.glass .answer-feedback-comment-submit:focus-visible {
  background: rgba(255, 255, 255, 0.72) !important;
  transform: translateY(-1px);
}

html.glass form[method="POST"][enctype="multipart/form-data"] > .bg-gradient-to-r {
  color: var(--liquid-text) !important;
}

/* ── 12. CTA BUTTONS (liquid glass pill style) ───────────────────────────── */
/* Acts as glass itself — picks up aurora tint from behind via backdrop-filter */
html.glass .bg-cyan-700,
html.glass .focus\:bg-cyan-600:focus,
html.glass .hover\:bg-cyan-600:hover {
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%,
      rgba(255,255,255,0.68) 0%, transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,0.58), rgba(224,242,254,0.32)) !important;
  border: 0.5px solid rgba(255,255,255,0.52) !important;
  color: rgba(8,8,18,0.88) !important;
  box-shadow:
    0 0   0 0.5px rgba(255,255,255,0.42),
    0 10px 28px    var(--liquid-shadow-md),
    inset 0 1px 0  rgba(255,255,255,0.90) !important;
  -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08);
          backdrop-filter: blur(28px) saturate(220%) brightness(1.08);
}

/* ── 13. INTERACTIVE BUTTONS ─────────────────────────────────────────────── */
html.glass .skype-button-exact,
html.glass button[data-glass-theme-click-value],
html.glass [data-hs-theme-click-value],
html.glass .form-tab,
html.glass .category-btn {
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html.glass .skype-button-exact {
  background:
    radial-gradient(ellipse 92% 62% at 50% -12%, rgba(255,255,255,0.76), transparent 58%),
    linear-gradient(135deg, rgba(14,165,233,0.74), rgba(37,99,235,0.58)) !important;
  border: 1px solid rgba(255,255,255,0.72) !important;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.62),
    0 14px 34px rgba(37,99,235,0.22),
    inset 0 1px 0 rgba(255,255,255,0.88) !important;
}

html.glass .skype-button-exact svg path {
  fill: rgba(255,255,255,0.96) !important;
}

html.glass .category-btn {
  background: rgba(255,255,255,0.34) !important;
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
}

html.glass .bg-cyan-100,
html.glass .text-cyan-700 {
  color: rgba(8,47,73,0.92) !important;
}

html.glass .job-prompt-composer,
.job-prompt-composer {
  position: relative;
  isolation: isolate;
  border-radius: 1.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.44),
    0 22px 58px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: blur(42px) saturate(190%) contrast(1.08);
          backdrop-filter: blur(42px) saturate(190%) contrast(1.08);
}

.job-prompt-composer::before,
.job-prompt-composer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.job-prompt-composer::before {
  border: 1px solid rgba(255, 255, 255, 0.48);
  -webkit-mask-image: linear-gradient(128deg, #000 0 24%, transparent 46% 70%, #000 100%);
          mask-image: linear-gradient(128deg, #000 0 24%, transparent 46% 70%, #000 100%);
}

.job-prompt-composer::after {
  background:
    radial-gradient(80% 120% at 0% 100%, rgba(34, 211, 238, 0.08), transparent 62%),
    radial-gradient(80% 120% at 100% 0%, rgba(168, 85, 247, 0.07), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%);
  opacity: 0.50;
}

html.glass .job-prompt-composer:focus-within,
.job-prompt-composer:focus-within {
  border-color: rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.62),
    0 0 0 4px rgba(125, 211, 252, 0.10),
    0 28px 70px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

.job-prompt-composer > * {
  position: relative;
  z-index: 1;
}

html.glass .job-prompt-composer textarea#hs-pro-aimt,
.job-prompt-composer textarea#hs-pro-aimt {
  min-height: 6.5rem;
  color: rgba(15, 23, 42, 0.92) !important;
  background: transparent !important;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: 0;
}

html.glass .job-prompt-composer textarea#hs-pro-aimt::placeholder,
.job-prompt-composer textarea#hs-pro-aimt::placeholder {
  color: rgba(88, 72, 122, 0.52) !important;
}

html.glass .job-prompt-composer button:not(.skype-button-exact),
html.glass .job-prompt-composer select,
.job-prompt-composer button:not(.skype-button-exact),
.job-prompt-composer select {
  color: rgba(30, 41, 59, 0.76) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 22px rgba(15, 23, 42, 0.04) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%);
          backdrop-filter: blur(26px) saturate(180%);
}

html.glass .job-prompt-composer button:not(.skype-button-exact):hover,
html.glass .job-prompt-composer button:not(.skype-button-exact):focus-visible,
html.glass .job-prompt-composer select:hover,
html.glass .job-prompt-composer select:focus-visible,
.job-prompt-composer button:not(.skype-button-exact):hover,
.job-prompt-composer button:not(.skype-button-exact):focus-visible,
.job-prompt-composer select:hover,
.job-prompt-composer select:focus-visible {
  color: rgba(15, 23, 42, 0.94) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  outline: none !important;
}

html.glass .job-prompt-composer .skype-button-exact,
.job-prompt-composer .skype-button-exact {
  background: linear-gradient(135deg, #00AFF0 0%, #0078D7 100%) !important;
  border: none !important;
  box-shadow:
    0 10px 25px rgba(0, 175, 240, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

html.glass .job-prompt-composer .skype-button-exact:hover,
.job-prompt-composer .skype-button-exact:hover {
  background: linear-gradient(135deg, #009CD6 0%, #0069B4 100%) !important;
  box-shadow:
    0 12px 28px rgba(0, 175, 240, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.34) !important;
}

.job-composer-shell {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

html.dark:not(.glass) .job-prompt-composer {
  border-color: rgba(139, 92, 246, 0.36) !important;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(90% 90% at 0% 100%, rgba(14, 165, 233, 0.14), transparent 68%),
    linear-gradient(135deg, rgba(38, 38, 38, 0.80), rgba(24, 24, 27, 0.76)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 22px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html.dark:not(.glass) .job-prompt-composer textarea#hs-pro-aimt {
  color: #f5f5f5 !important;
}

html.dark:not(.glass) .job-prompt-composer textarea#hs-pro-aimt::placeholder {
  color: rgba(212, 212, 216, 0.54) !important;
}

html.dark:not(.glass) .job-prompt-composer button:not(.skype-button-exact),
html.dark:not(.glass) .job-prompt-composer select {
  color: #f5f5f5 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.settings-drawer-open,
html.settings-drawer-open body {
  overflow: hidden;
}

.settings-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.settings-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.settings-drawer-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.22);
  border: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.settings-drawer.is-open .settings-drawer-backdrop {
  opacity: 1;
}

.settings-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100vw, 30rem);
  height: 100%;
  padding: 1.25rem;
  overflow-y: auto;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.settings-drawer.is-open .settings-drawer-panel {
  transform: translateX(0);
}

.settings-drawer-header,
.settings-drawer-avatar-row,
.settings-drawer-actions {
  display: flex;
  gap: 1rem;
}

.settings-drawer-header {
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
}

.settings-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 9999px;
}

.settings-drawer-close:hover,
.settings-drawer-close:focus-visible {
  color: #111827;
  background: #e5e7eb;
  outline: none;
}

.settings-drawer-alert {
  margin-top: 1rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.settings-drawer-alert-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.settings-drawer-alert-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.settings-drawer-form {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.settings-drawer-avatar-row {
  align-items: center;
}

.settings-drawer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
}

.settings-drawer-avatar-fallback {
  color: #ffffff;
  background: #0e7490;
  font-size: 1.5rem;
  font-weight: 700;
}

.settings-drawer-field {
  display: grid;
  gap: 0.5rem;
}

.settings-drawer-label {
  display: block;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 600;
}

.settings-drawer-input,
.settings-drawer-textarea,
.settings-drawer-file {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.875rem;
}

.settings-drawer-input,
.settings-drawer-textarea {
  padding: 0.75rem 0.875rem;
}

.settings-drawer-textarea {
  min-height: 11rem;
  resize: vertical;
}

.settings-drawer-file {
  padding: 0.625rem;
  color: #4b5563;
}

.settings-drawer-input:focus,
.settings-drawer-textarea:focus,
.settings-drawer-file:focus {
  border-color: #0e7490;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}

.settings-drawer-input-readonly {
  color: #6b7280;
  background: #f3f4f6;
}

.settings-drawer-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.settings-drawer-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #0e7490;
}

.settings-drawer-actions {
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.settings-drawer-primary,
.settings-drawer-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.settings-drawer-primary {
  color: #ffffff;
  background: #0e7490;
}

.settings-drawer-primary:hover,
.settings-drawer-primary:focus-visible {
  background: #0891b2;
  outline: none;
}

.settings-drawer-secondary {
  color: #374151;
  background: #f3f4f6;
}

.settings-drawer-secondary:hover,
.settings-drawer-secondary:focus-visible {
  background: #e5e7eb;
  outline: none;
}

html.dark:not(.glass) .settings-drawer-backdrop {
  background: rgba(0, 0, 0, 0.48);
}

html.dark:not(.glass) .settings-drawer-panel {
  color: #f5f5f5;
  background: #171717;
  border-left-color: #333333;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.38);
}

html.dark:not(.glass) .settings-drawer-header {
  border-bottom-color: #333333;
}

html.dark:not(.glass) .settings-drawer-close,
html.dark:not(.glass) .settings-drawer-secondary {
  color: #f5f5f5;
  background: #262626;
}

html.dark:not(.glass) .settings-drawer-close:hover,
html.dark:not(.glass) .settings-drawer-close:focus-visible,
html.dark:not(.glass) .settings-drawer-secondary:hover,
html.dark:not(.glass) .settings-drawer-secondary:focus-visible {
  background: #333333;
}

html.dark:not(.glass) .settings-drawer-label {
  color: #f5f5f5;
}

html.dark:not(.glass) .settings-drawer-input,
html.dark:not(.glass) .settings-drawer-textarea,
html.dark:not(.glass) .settings-drawer-file {
  color: #f5f5f5;
  background: #1f1f1f;
  border-color: #404040;
}

html.dark:not(.glass) .settings-drawer-input-readonly {
  color: #a3a3a3;
  background: #262626;
}

html.dark:not(.glass) .settings-drawer-checkbox {
  color: #d4d4d4;
}

html.glass .settings-drawer-backdrop {
  background: rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

html.glass .settings-drawer-panel {
  color: rgba(15, 23, 42, 0.92);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(186, 230, 253, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22)) !important;
  border-left-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    -24px 0 60px rgba(15, 23, 42, 0.16),
    inset 1px 0 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
          backdrop-filter: blur(34px) saturate(180%);
}

html.glass .settings-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.46);
}

html.glass .settings-drawer-close,
html.glass .settings-drawer-secondary,
html.glass .settings-drawer-input,
html.glass .settings-drawer-textarea,
html.glass .settings-drawer-file {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.48);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
}

html.glass .settings-drawer-input-readonly {
  background: rgba(255, 255, 255, 0.20);
}

/* Specular shimmer on hover */
html.glass .skype-button-exact::before,
html.glass button[data-glass-theme-click-value]::before,
html.glass [data-hs-theme-click-value]::before,
html.glass .form-tab::before,
html.glass .category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 55% at 50% -5%,
    rgba(255,255,255,0.58), transparent 55%);
  opacity: 0;
  transition: opacity 160ms ease;
}

html.glass .skype-button-exact:hover,
html.glass button[data-glass-theme-click-value]:hover,
html.glass [data-hs-theme-click-value]:hover,
html.glass .form-tab:hover,
html.glass .category-btn:hover {
  transform: translateY(-1px);
}

html.glass .skype-button-exact:hover::before,
html.glass button[data-glass-theme-click-value]:hover::before,
html.glass [data-hs-theme-click-value]:hover::before,
html.glass .form-tab:hover::before,
html.glass .category-btn:hover::before {
  opacity: 1;
}

/* ── 14. THEME SWITCHER STATES ───────────────────────────────────────────── */
.glass-theme-switcher [data-user-theme-option].is-active {
  color: #111827 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.66)) !important;
  box-shadow:
    0 8px 20px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.dark .glass-theme-switcher [data-user-theme-option].is-active {
  color: #111827 !important;
  background: rgba(255,255,255,0.82) !important;
}

html.glass [data-user-theme-option] {
  color: rgba(8,8,18,0.70) !important;
}

html.glass [data-user-theme-option].is-active {
  color: rgba(8,8,18,0.92) !important;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,
      rgba(255,255,255,0.92) 0%, transparent 55%),
    rgba(255,255,255,0.62) !important;
  box-shadow:
    0 0   0 0.5px rgba(255,255,255,0.62),
    0 6px 18px    var(--liquid-shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

/* ── 15. ACTIVE FORM TAB ─────────────────────────────────────────────────── */
html.glass .form-tab.active {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,
      rgba(255,255,255,0.72) 0%, transparent 55%),
    rgba(255,255,255,0.44) !important;
  box-shadow:
    0 0   0 0.5px rgba(255,255,255,0.50),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

/* ── 16. MOUSE-FOLLOW REFRACTION ─────────────────────────────────────────── */
html.glass .liquid-pointer-active #hs-pro-sidebar,
html.glass .liquid-pointer-active aside,
html.glass .liquid-pointer-active .hs-dropdown-menu,
html.glass .liquid-pointer-active .chat-message,
html.glass .liquid-pointer-active #answerContainer,
html.glass .liquid-pointer-active .sticky.bottom-0 {
  background:
    radial-gradient(circle at var(--liquid-x) var(--liquid-y),
      rgba(255,255,255,0.70)  0%,
      rgba(255,255,255,0.28) 18%,
      transparent            42%),
    rgba(255,255,255,0.34) !important;
}

html.glass ::selection {
  color: rgba(8, 47, 73, 0.96);
  background: rgba(186, 230, 253, 0.78);
}

html.glass ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42) !important;
  border: 2px solid rgba(255,255,255,0.45);
}

/* ── 17. REDUCED MOTION ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.glass .chat-container .chat-message,
  html.glass .skype-button-exact,
  html.glass button[data-glass-theme-click-value],
  html.glass [data-hs-theme-click-value],
  html.glass .form-tab,
  html.glass .category-btn {
    transition: none;
  }

  html.glass .chat-container .chat-message:hover,
  html.glass .skype-button-exact:hover,
  html.glass button[data-glass-theme-click-value]:hover,
  html.glass [data-hs-theme-click-value]:hover,
  html.glass .form-tab:hover,
  html.glass .category-btn:hover {
    transform: none;
  }
}
