* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #070b12;
  color: #e5edf7;
}

.sentinel-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sentinel-sidebar {
  background: linear-gradient(180deg, #0b1220, #070b12);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  font-weight: 900;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.sidebar-btn,
.mode-btn,
.header-btn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  color: #e5edf7;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.sidebar-btn:hover,
.mode-btn:hover,
.header-btn:hover {
  background: rgba(30, 41, 59, 0.95);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-btn.active {
  border-color: rgba(249, 115, 22, 0.8);
  background: rgba(249, 115, 22, 0.14);
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-footer a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 14px;
}

.chat-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 30%),
    #090d14;
}

.chat-header {
  min-height: 78px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h2 {
  margin: 0;
  font-size: 20px;
}

.chat-header p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.chat-messages {
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.welcome-card {
  width: min(860px, 100%);
  margin: auto;
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.welcome-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  font-weight: 800;
  font-size: 12px;
}

.welcome-card h3 {
  font-size: 34px;
  margin: 18px 0 8px;
}

.welcome-card p {
  color: #94a3b8;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.prompt-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.55);
  color: #e5edf7;
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.prompt-card:hover {
  border-color: rgba(249, 115, 22, 0.6);
}

.message {
  max-width: 860px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message.user {
  align-self: flex-end;
  background: #1e293b;
  color: white;
  padding: 14px 16px;
  border-radius: 18px 18px 4px 18px;
}

.message.assistant {
  align-self: center;
  width: min(860px, 100%);
  color: #dbeafe;
}

.action-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.action-row button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.chat-input-wrap {
  margin: 0 auto 22px;
  width: min(900px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 12px;
}

#chatInput {
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font: inherit;
  min-height: 44px;
  max-height: 160px;
  padding: 12px;
}

#sendBtn {
  width: 74px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 820px) {
  .sentinel-shell {
    grid-template-columns: 1fr;
  }

  .sentinel-sidebar {
    display: none;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }
}

.sentinel-image-result {
  width: min(860px, 100%);
  display: grid;
  gap: 12px;
}

.sentinel-image-result img {
  width: min(720px, 100%);
  max-height: 720px;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.sentinel-image-caption {
  color: #cbd5e1;
  font-size: 14px;
}

.image-open-link {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.image-generation-card {
  width: min(860px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.80);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.image-generation-header {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.image-generation-status {
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
}

.image-generation-preview {
  width: min(720px, 100%);
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 30%),
    rgba(2, 6, 23, 0.82);
}

.image-generation-shimmer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.02) 8%,
      rgba(255, 255, 255, 0.08) 18%,
      rgba(255, 255, 255, 0.02) 33%
    );
  background-size: 200% 100%;
  animation: sentinelShimmer 1.6s linear infinite;
}

.image-generation-prompt {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
}

.image-generation-footer {
  font-size: 12px;
  color: #94a3b8;
}

.image-generation-error {
  width: min(860px, 100%);
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(127, 29, 29, 0.16);
  color: #fecaca;
  border-radius: 18px;
  padding: 16px;
  font-weight: 700;
}

@keyframes sentinelShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sentinel-image-result {
  width: min(860px, 100%);
  display: grid;
  gap: 12px;
}

.sentinel-image-result img {
  width: min(720px, 100%);
  max-height: 720px;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.sentinel-image-caption {
  color: #cbd5e1;
  font-size: 14px;
}

.image-open-link {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

#sendBtn:disabled,
#chatInput:disabled {
  opacity: 0.75;
}


/* Sentinel AI draggable window/button */
#sentinel-ai,
#sentinelAI,
#sentinelAssistant,
#sentinelChat,
.sentinel-ai,
.sentinel-assistant,
.sentinel-chatbot,
.chatbot-window,
.chat-window,
.ai-assistant,
#sentinelOpenBtn,
#openSentinelAI,
#openSentinelBtn,
.sentinel-open-btn,
.open-sentinel-ai,
.chatbot-toggle,
.ai-toggle,
.floating-chat-button,
.sentinel-float {
  position: fixed !important;
  z-index: 999999 !important;
  touch-action: none;
}

.sentinel-draggable-handle {
  cursor: grab !important;
  user-select: none !important;
}

.sentinel-draggable-handle:active,
.sentinel-is-dragging,
.sentinel-is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

/* Force Sentinel AI draggable behavior */
.force-sentinel-panel,
.force-sentinel-button {
  position: fixed !important;
  z-index: 2147483647 !important;
  touch-action: none !important;
}

.force-sentinel-drag-handle {
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
}

.force-sentinel-drag-handle:active,
.force-sentinel-dragging,
.force-sentinel-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.force-sentinel-panel {
  max-width: calc(100vw - 16px) !important;
  max-height: calc(100vh - 16px) !important;
}

.force-sentinel-button {
  cursor: grab !important;
}

/* ChatGPT-style Sentinel Recents + Account Area */
.sentinel-sidebar-enhanced {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  padding-bottom: 120px !important;
}

.sentinel-recents-block {
  margin: 18px 12px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 14px;
}

.sentinel-recents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sentinel-recents-clear {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sentinel-recents-clear:hover {
  color: #f97316;
}

.sentinel-recents-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
}

.sentinel-recents-list::-webkit-scrollbar {
  width: 6px;
}

.sentinel-recents-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.sentinel-recent-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.76);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 4px;
  transition: 0.18s ease;
}

.sentinel-recent-item:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.sentinel-recent-title {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sentinel-recent-time {
  font-size: 11px;
  color: #94a3b8;
}

.sentinel-recents-empty {
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.sentinel-account-block {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 50;
}

.sentinel-account-main {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.94);
  color: #e5e7eb;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.sentinel-account-main:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(249, 115, 22, 0.42);
}

.sentinel-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d2e, #fb7185);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.sentinel-account-text {
  display: grid;
  text-align: left;
  min-width: 0;
}

.sentinel-account-text strong {
  font-size: 14px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sentinel-account-text span {
  font-size: 12px;
  color: #93c5fd;
}

.sentinel-account-arrow {
  font-size: 26px;
  color: #cbd5e1;
  line-height: 1;
}

.sentinel-account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 66px;
  background: rgba(30, 30, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 10px;
  display: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.sentinel-account-block.open .sentinel-account-menu {
  display: grid;
  gap: 6px;
}

.sentinel-account-email {
  color: #f8fafc;
  font-size: 13px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 4px;
  word-break: break-all;
}

.sentinel-account-menu button {
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.sentinel-account-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-height: 760px) {
  .sentinel-recents-list {
    max-height: 130px;
  }
}

/* FINAL_SENTINEL_RECENTS_ACCOUNT_START */

.sentinel-sidebar {
  position: relative !important;
  min-height: 100vh !important;
  padding-bottom: 118px !important;
  overflow: hidden !important;
}

.sidebar-section {
  flex-shrink: 0 !important;
}

.recents-section {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 14px;
  margin-top: -4px;
  min-height: 0;
}

.recents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 10px;
}

#clearRecentsBtn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

#clearRecentsBtn:hover {
  color: #f97316;
}

.recents-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.recents-list::-webkit-scrollbar {
  width: 6px;
}

.recents-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.recent-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: #e5edf7;
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  text-align: left;
  transition: 0.18s ease;
}

.recent-item:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(249, 115, 22, 0.48);
  transform: translateY(-1px);
}

.recent-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-time {
  font-size: 11px;
  color: #94a3b8;
}

.recents-empty {
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.sidebar-spacer {
  flex: 1 1 auto;
  min-height: 12px;
}

.sidebar-footer {
  margin-top: 0 !important;
  padding-bottom: 8px;
}

.account-block {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 50;
}

.account-main {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.account-main:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(249, 115, 22, 0.45);
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d2e, #fb7185);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.account-text {
  min-width: 0;
  display: grid;
  text-align: left;
}

.account-text strong {
  color: #f8fafc;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-text span {
  color: #93c5fd;
  font-size: 12px;
}

.account-arrow {
  color: #cbd5e1;
  font-size: 26px;
  line-height: 1;
}

.account-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  background: rgba(38, 38, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.account-block.open .account-menu {
  display: grid;
  gap: 6px;
}

.account-email {
  color: #f8fafc;
  font-size: 13px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  margin-bottom: 4px;
  word-break: break-all;
}

.account-menu button {
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.account-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

#chatInput {
  overflow-y: auto;
}

@media (max-height: 760px) {
  .recents-list {
    max-height: 130px;
  }
}

/* FINAL_SENTINEL_RECENTS_ACCOUNT_END */
/* SUBSCRIPTION_RECENTS_ACCOUNT_FINAL_START */

.sentinel-sidebar {
  position: relative !important;
  min-height: 100vh !important;
  padding-bottom: 128px !important;
  overflow: hidden !important;
}

.recents-section {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 14px;
  min-height: 0;
}

.recents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 10px;
}

#clearRecentsBtn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

#clearRecentsBtn:hover {
  color: #f97316;
}

.recents-list {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow-y: auto;
  padding-right: 4px;
}

.recent-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: #e5edf7;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  text-align: left;
}

.recent-item:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(249, 115, 22, 0.48);
}

.recent-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-time {
  font-size: 11px;
  color: #94a3b8;
}

.recents-empty {
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.sidebar-spacer {
  flex: 1 1 auto;
}

.sidebar-footer {
  margin-top: 0 !important;
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
}

.sidebar-footer a {
  display: block;
}

.account-block {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 50;
}

.account-main {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.account-main:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(249, 115, 22, 0.45);
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d2e, #fb7185);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.account-text {
  min-width: 0;
  display: grid;
  text-align: left;
}

.account-text strong {
  color: #f8fafc;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-text span {
  color: #93c5fd;
  font-size: 12px;
}

.account-arrow {
  color: #cbd5e1;
  font-size: 26px;
  line-height: 1;
}

.account-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  background: rgba(38, 38, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.account-block.open .account-menu {
  display: grid;
  gap: 6px;
}

.account-email {
  color: #f8fafc;
  font-size: 13px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  margin-bottom: 4px;
  word-break: break-all;
}

.account-menu button {
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.account-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

#chatInput {
  overflow-y: auto;
}

@media (max-height: 780px) {
  .recents-list {
    max-height: 110px;
  }
}

/* SUBSCRIPTION_RECENTS_ACCOUNT_FINAL_END */
/* SENTINEL_SIDEBAR_ACCOUNT_CLEANUP_START */

.sentinel-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  height: 100vh !important;
  overflow: hidden !important;
  padding-bottom: 16px !important;
}

.sidebar-section {
  flex-shrink: 0 !important;
}

.recents-section {
  flex-shrink: 1 !important;
  min-height: 0 !important;
  margin-bottom: 10px !important;
}

.recents-list {
  max-height: 145px !important;
  overflow-y: auto !important;
}

.sidebar-spacer {
  flex: 1 1 auto !important;
  min-height: 12px !important;
}

.sidebar-footer {
  position: static !important;
  display: grid !important;
  gap: 8px !important;
  margin-top: auto !important;
  margin-bottom: 14px !important;
  padding: 0 4px !important;
  flex-shrink: 0 !important;
}

.sidebar-footer a,
.sidebar-footer button {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  color: #7cc2ff !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.sidebar-footer a:hover,
.sidebar-footer button:hover {
  color: #ffffff !important;
}

.account-block {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 80 !important;
  flex-shrink: 0 !important;
  margin: 0 0 0 0 !important;
}

.account-main {
  min-height: 76px !important;
  border-radius: 20px !important;
}

.account-menu {
  position: fixed !important;
  left: 18px !important;
  bottom: 104px !important;
  width: min(360px, calc(100vw - 36px)) !important;
  right: auto !important;
  z-index: 2147483646 !important;
}

.account-block[data-plan-tier="paid"] #upgradeBtn {
  display: none !important;
}

.account-block[data-signed-in="true"] .login-only {
  display: none !important;
}

body.sentinel-page .open-sentinel-ai,
body.sentinel-page .sentinel-open-btn,
body.sentinel-page .floating-chat-button,
body.sentinel-page #openSentinelAI,
body.sentinel-page #sentinelOpenBtn {
  display: none !important;
}

/* Hide redundant circular Open Sentinel AI button globally when it was injected before */
.open-sentinel-ai,
.sentinel-open-btn,
.floating-chat-button,
#openSentinelAI,
#sentinelOpenBtn {
  max-width: none;
}

.open-sentinel-ai.is-duplicate,
.sentinel-open-btn.is-duplicate,
.floating-chat-button.is-duplicate,
#openSentinelAI.is-duplicate,
#sentinelOpenBtn.is-duplicate {
  display: none !important;
}

@media (max-height: 760px) {
  .recents-list {
    max-height: 90px !important;
  }

  .account-main {
    min-height: 64px !important;
    padding: 9px !important;
  }

  .account-avatar {
    width: 34px !important;
    height: 34px !important;
  }
}

/* SENTINEL_SIDEBAR_ACCOUNT_CLEANUP_END */
/* SENTINEL_VISION_GENERATING_UI_START */

.sentinel-vision-thinking {
  width: min(860px, 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.sentinel-vision-thinking-title {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
}

.sentinel-vision-thinking-subtitle {
  color: #a8b3c7;
  font-size: 17px;
  line-height: 1.45;
}

.sentinel-vision-preview-box {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 36%, rgba(255, 255, 255, 0.11), transparent 32%),
    linear-gradient(135deg, #27272a, #1f2937);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

.sentinel-vision-preview-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 1.6px, transparent 2px);
  background-size: 19px 19px;
  opacity: 0.36;
  mask-image:
    radial-gradient(circle at 30% 42%, black 0%, black 28%, transparent 67%);
  animation: sentinelDotsPulse 2.1s ease-in-out infinite;
}

.sentinel-vision-preview-box::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.08) 46%,
      rgba(255, 255, 255, 0.13) 50%,
      rgba(255, 255, 255, 0.08) 54%,
      transparent 66%,
      transparent 100%
    );
  transform: translateX(-55%);
  animation: sentinelVisionSweep 2.8s ease-in-out infinite;
}

.sentinel-vision-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.38), rgba(255, 90, 47, 0.12), transparent 70%);
  filter: blur(3px);
  opacity: 0.75;
  animation: sentinelCorePulse 1.8s ease-in-out infinite;
}

.sentinel-vision-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 14px;
}

.sentinel-vision-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-top-color: #ff5a2f;
  animation: sentinelSpin 0.8s linear infinite;
}

.sentinel-vision-prompt-preview {
  width: min(620px, 100%);
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.66);
}

@keyframes sentinelDotsPulse {
  0%, 100% {
    opacity: 0.24;
    transform: scale(1);
  }

  50% {
    opacity: 0.48;
    transform: scale(1.025);
  }
}

@keyframes sentinelVisionSweep {
  0% {
    transform: translateX(-64%) rotate(0deg);
  }

  55% {
    transform: translateX(36%) rotate(0deg);
  }

  100% {
    transform: translateX(68%) rotate(0deg);
  }
}

@keyframes sentinelCorePulse {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.88);
  }

  50% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes sentinelSpin {
  to {
    transform: rotate(360deg);
  }
}

/* SENTINEL_VISION_GENERATING_UI_END */
/* SENTINEL_CHATGPT_IMAGE_EDIT_UI_START */

.chat-input-wrap {
  position: relative !important;
}

.vision-upload-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vision-upload-btn:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 90, 47, 0.45);
}

.vision-attachment-preview {
  position: absolute;
  left: 18px;
  bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 40px));
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 10px;
  display: grid;
  grid-template-columns: 68px 1fr 34px;
  align-items: center;
  gap: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  z-index: 50;
}

.vision-attachment-preview img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: #020617;
}

.vision-attachment-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.vision-attachment-info strong {
  color: #f8fafc;
  font-size: 13px;
}

.vision-attachment-info span {
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vision-remove-attachment {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
}

.vision-remove-attachment:hover {
  background: rgba(239, 68, 68, 0.26);
}

.sentinel-generated-image-card {
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
}

.sentinel-generated-image-frame {
  position: relative;
  width: min(640px, 100%);
  overflow: hidden;
  border-radius: 36px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 95px rgba(0, 0, 0, 0.44);
}

.sentinel-generated-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
}

.sentinel-image-floating-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
}

.sentinel-image-floating-actions button,
.sentinel-image-floating-actions a {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.sentinel-image-floating-actions button:hover,
.sentinel-image-floating-actions a:hover {
  background: rgba(30, 41, 59, 0.94);
}

.sentinel-edit-main-btn {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.sentinel-edit-main-btn:hover {
  background: rgba(30, 41, 59, 0.96);
}

.sentinel-generated-caption {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.sentinel-generated-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sentinel-generated-actions button,
.sentinel-generated-actions a {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

.sentinel-generated-actions button:hover,
.sentinel-generated-actions a:hover {
  background: rgba(30, 41, 59, 0.96);
}

/* SENTINEL_CHATGPT_IMAGE_EDIT_UI_END */