@import "https://fonts.googleapis.com/css2?family=Tiro+Kannada&display=swap";

/* ../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/github-dark.css */
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}
code.hljs {
  padding: 3px 5px;
}
.hljs {
  color: #c9d1d9;
  background: #0d1117;
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #ff7b72;
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #d2a8ff;
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  color: #79c0ff;
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  color: #a5d6ff;
}
.hljs-built_in,
.hljs-symbol {
  color: #ffa657;
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  color: #8b949e;
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  color: #7ee787;
}
.hljs-subst {
  color: #c9d1d9;
}
.hljs-section {
  color: #1f6feb;
  font-weight: bold;
}
.hljs-bullet {
  color: #f2cc60;
}
.hljs-emphasis {
  color: #c9d1d9;
  font-style: italic;
}
.hljs-strong {
  color: #c9d1d9;
  font-weight: bold;
}
.hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}
.hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
}

/* src/ui/components/chat_displays/Assistant.css */
.einsia-assistant-response {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.einsia-thought-collapsible {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.einsia-thought-header {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 0;
  user-select: none;
  margin: 0.3rem 0;
}
.einsia-thought-icon {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}
.einsia-thought-label {
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.einsia-thought-duration {
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.einsia-thought-dots {
  color: rgba(255, 255, 255, 0.35);
  animation: einsia-thought-pulse 1.2s infinite;
}
@keyframes einsia-thought-pulse {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}
.einsia-thought-chevron {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease-in-out;
  transform-origin: 45% 55%;
  margin-left: 2px;
}
.einsia-thought-chevron.expanded {
  transform: rotate(90deg);
}
.einsia-thought-content-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 150px;
  background: transparent;
}
.einsia-thought-content {
  overflow-y: auto;
  max-height: 150px;
  padding-right: 4px;
  background: transparent;
}
.einsia-thought-content::-webkit-scrollbar {
  background-color: transparent;
  width: 0px;
}
.einsia-thought-content::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.einsia-thought-text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  padding-bottom: 1.2rem;
}
.einsia-thought-text p {
  margin: 0 0 8px 0;
  padding: 0;
}
.einsia-thought-text p:last-child {
  margin-bottom: 0;
}
.einsia-thought-text strong,
.einsia-thought-text b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.einsia-thought-text em,
.einsia-thought-text i {
  font-style: italic;
}
.einsia-thought-text.empty {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  font-style: italic;
}
.einsia-thought-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15%;
  background:
    linear-gradient(
      to bottom,
      var(--panel-bg, #1e1e1e) 0%,
      transparent 100%);
  pointer-events: none;
  opacity: 0;
}
.einsia-thought-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10%;
  background:
    linear-gradient(
      to top,
      var(--panel-bg, #1e1e1e) 0%,
      transparent 100%);
  pointer-events: none;
}
.einsia-thought-content:not(:first-child) + .einsia-thought-fade-top {
  opacity: 1;
}
.einsia-tool-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.einsia-tool-card:hover {
  background: rgba(255, 255, 255, 0.12);
}
.einsia-tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.einsia-tool-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.einsia-tool-card-icon {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.einsia-tool-card-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}
.einsia-tool-card-status {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.einsia-tool-card-summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.einsia-submit-paper-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.einsia-submit-paper-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.einsia-submit-paper-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}
.einsia-submit-paper-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.einsia-submit-paper-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  white-space: nowrap;
}
.einsia-submit-paper-count {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  width: fit-content;
  white-space: nowrap;
}
.einsia-submit-paper-btn {
  background: #4ade80;
  color: #064e3b;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.einsia-submit-paper-btn:hover {
  opacity: 0.9;
}
.einsia-assistant-content {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px;
  line-height: 1.5;
  min-height: 22px;
  background: transparent !important;
  background-color: transparent !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.einsia-assistant-content * {
  background: transparent !important;
  background-color: transparent !important;
}
.einsia-assistant-content strong,
.einsia-assistant-content b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.einsia-assistant-content em,
.einsia-assistant-content i {
  font-style: italic;
}
.einsia-assistant-content h1,
.einsia-assistant-content h2,
.einsia-assistant-content h3,
.einsia-assistant-content h4,
.einsia-assistant-content h5,
.einsia-assistant-content h6 {
  color: rgba(255, 255, 255, 0.95);
  margin: 8px 0 4px 0;
  font-weight: 600;
}
.einsia-assistant-content h1 {
  font-size: 1.3em;
}
.einsia-assistant-content h2 {
  font-size: 1.2em;
}
.einsia-assistant-content h3 {
  font-size: 1.1em;
}
.einsia-reasoning-text.empty {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}
.einsia-assistant-content p {
  margin: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}
.einsia-assistant-content ol,
.einsia-assistant-content ul {
  margin: 0 0 0 16px;
  padding: 0;
}
.einsia-assistant-content li {
  margin-left: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}
.einsia-assistant-content code {
  color: #dbad80;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family:
    Menlo,
    Monaco,
    "Courier New",
    monospace;
  font-size: 1em;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}
.code-block-wrapper {
  position: relative;
  margin: 6px 0;
}
.code-block-wrapper .code-copy-button-container {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.code-block-wrapper:hover .code-copy-button-container {
  opacity: 1;
}
.einsia-assistant-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.einsia-assistant-content pre code {
  background: none;
  padding: 0;
}
.code-copy-button-container {
  position: absolute;
  top: -12px;
  right: 8px;
  z-index: 10;
  display: flex;
  gap: 4px;
}
.code-copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(40, 40, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.code-copy-button:hover {
  background: rgba(50, 50, 55, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}
.code-copy-button:active {
  transform: scale(0.95);
}
.code-copy-button.copied {
  background: rgba(46, 160, 67, 0.9);
  border-color: rgba(46, 160, 67, 0.4);
  color: white;
}
.code-copy-button svg {
  display: block;
}
.einsia-assistant-tool-calls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.einsia-tool-call-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(100, 180, 255, 0.08);
  border: 1px solid rgba(100, 180, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
}
.einsia-tool-call-icon {
  font-size: 12px;
}
.einsia-tool-call-name {
  color: rgba(130, 200, 255, 0.9);
  font-weight: 500;
}
.einsia-tool-call-args {
  flex: 1;
  color: rgba(255, 255, 255, 0.4);
  font-family:
    "SF Mono",
    Monaco,
    "Consolas",
    monospace;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
}
.einsia-assistant-toolcall {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0px;
}
.einsia-tool-calls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.einsia-tool-call-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 3px solid;
  overflow: hidden;
  transition: background 0.15s ease;
}
.einsia-tool-call-card:hover {
  background: rgba(255, 255, 255, 0.04);
}
.einsia-tool-call-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  user-select: none;
}
.einsia-tool-call-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.einsia-tool-call-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.einsia-tool-call-chevron {
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}
.einsia-tool-call-chevron.expanded {
  transform: rotate(90deg);
}
.einsia-tool-call-detail {
  padding: 0 12px 12px 12px;
  animation: slideDown 0.2s ease;
}
.einsia-tool-call-detail pre {
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.5;
  font-family:
    "Monaco",
    "Menlo",
    "Ubuntu Mono",
    monospace;
  color: rgba(255, 255, 255, 0.7);
}
.einsia-assistant-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
}
.einsia-loading-breathing {
  color: rgba(255, 255, 255, 0.35);
  animation: einsia-breathing 2s ease-in-out infinite;
}
.waiting-breathing {
  color: #daac80;
  animation: einsia-breathing 2s ease-in-out infinite;
}
@keyframes einsia-breathing {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.einsia-streaming-cursor {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
  animation: einsia-cursor-blink 0.8s ease-in-out infinite;
  margin-left: 2px;
}
@keyframes einsia-cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.einsia-tool-trace-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.einsia-tool-trace-content .einsia-tool-name {
  color: rgba(90, 136, 165, 0.9);
  font-weight: 500;
  font-size: 13px;
}
.einsia-tool-trace-content .einsia-tool-result {
  white-space: pre-wrap;
  font-family:
    "SF Mono",
    Monaco,
    "Consolas",
    monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.4;
}
.einsia-code-interpreter-card {
  background: rgba(100, 100, 120, 0.08);
  border: 1px solid rgba(100, 100, 120, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}
.einsia-code-interpreter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(24, 24, 24, 0.05);
  border-bottom: 1px solid rgba(100, 100, 120, 0.15);
}
.einsia-code-interpreter-content::-webkit-scrollbar {
  background-color: transparent;
  width: 4px;
  height: 0px;
}
.einsia-code-interpreter-content::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.einsia-code-interpreter-script::-webkit-scrollbar {
  background-color: transparent;
  width: 4px;
  height: 0px;
}
.einsia-code-interpreter-script::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.einsia-code-interpreter-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.einsia-code-interpreter-actions {
  display: flex;
  gap: 6px;
}
.einsia-code-interpreter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.einsia-code-interpreter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}
.einsia-code-interpreter-btn:active {
  transform: scale(0.95);
}
.einsia-code-interpreter-btn.copied {
  background: rgba(46, 160, 67, 0.2);
  border-color: rgba(46, 160, 67, 0.4);
  color: rgb(46, 160, 67);
}
.einsia-code-interpreter-btn svg {
  display: block;
}
.einsia-code-interpreter-content {
  padding: 10px 12px;
  overflow-y: auto;
}
.einsia-code-interpreter-content.collapsed {
  max-height: 15em;
}
.einsia-code-interpreter-content.expanded {
  max-height: 400px;
}
.einsia-code-interpreter-script {
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  text-wrap-mode: nowrap;
  word-wrap: break-word;
  background: rgba(24, 24, 24, 0.2);
}
.einsia-code-interpreter-footer {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(100, 100, 120, 0.15);
  background: rgba(100, 100, 120, 0.03);
}
.einsia-code-interpreter-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.einsia-code-interpreter-status.loading {
  color: #daac80;
  animation: einsia-breathing 2s ease-in-out infinite;
}
.einsia-code-interpreter-status.success {
  color: rgba(128, 180, 120, 0.9);
}
.einsia-code-interpreter-spinner,
.einsia-code-interpreter-checkmark {
  font-size: 14px;
  display: flex;
  align-items: center;
}
.einsia-code-interpreter-status-text {
  font-weight: 500;
}
.einsia-edit-card {
  background: rgba(100, 100, 120, 0.08);
  border: 1px solid rgba(100, 100, 120, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}
.einsia-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
  background: rgba(24, 24, 24, 0.05);
  border-bottom: 1px solid rgba(100, 100, 120, 0.15);
}
.einsia-edit-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.einsia-edit-actions {
  display: flex;
  gap: 6px;
}
.einsia-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.einsia-edit-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}
.einsia-edit-btn:active {
  transform: scale(0.95);
}
.einsia-edit-btn svg {
  display: block;
}
.einsia-edit-content {
  padding: 10px 12px;
  overflow-y: auto;
}
.einsia-edit-content.collapsed {
  max-height: 15em;
}
.einsia-edit-content.expanded {
  max-height: none;
}
.einsia-edit-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.einsia-edit-content::-webkit-scrollbar-track {
  background: transparent;
}
.einsia-edit-content::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 120, 0.2);
  border-radius: 3px;
  transition: background-color 0.2s ease;
}
.einsia-edit-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 100, 120, 0.4);
}
.einsia-edit-diff,
.einsia-edit-text {
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  word-wrap: break-word;
  background: transparent;
  overflow: unset;
}
.einsia-diff-line {
  min-height: 1em;
  padding: 0 4px;
}
.einsia-diff-text-removed {
  color: #e17b67;
  text-decoration: line-through;
  padding: 0 2px;
  font-size: 1.1em;
}
.einsia-diff-text-added {
  color: #80b478;
  padding: 0 2px;
  font-size: 1.1em;
}
.einsia-edit-footer {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(100, 100, 120, 0.15);
  background: rgba(100, 100, 120, 0.03);
}
.einsia-edit-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.einsia-edit-status.loading {
  color: #daac80;
  animation: einsia-breathing 2s ease-in-out infinite;
}
.einsia-edit-status.success {
  color: rgba(128, 180, 120, 0.9);
}
.einsia-edit-spinner,
.einsia-edit-checkmark {
  font-size: 14px;
  display: flex;
  align-items: center;
}
.einsia-edit-status-text {
  font-weight: 500;
}
.einsia-edit-approval,
.einsia-code-interpreter-approval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.einsia-edit-status.waiting,
.einsia-code-interpreter-status.waiting {
  color: rgba(255, 200, 100, 0.9);
  font-size: 12px;
}
.einsia-edit-status.error,
.einsia-code-interpreter-status.error {
  color: rgba(255, 100, 100, 0.9);
}
.einsia-edit-cross,
.einsia-code-interpreter-cross {
  font-size: 14px;
}
.einsia-approval-buttons {
  display: flex;
  gap: 8px;
}
.einsia-approval-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.einsia-approval-btn.skip {
  background: rgba(150, 150, 150, 0.2);
  color: rgba(255, 255, 255, 0.7);
}
.einsia-approval-btn.skip:hover {
  background: rgba(150, 150, 150, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
.einsia-approval-btn.run {
  background: #5A88A5;
  color: #ffffff;
}
.einsia-approval-btn.run:hover {
  background: #4a7894;
  color: #ffffff;
}
.einsia-todo-card {
  background: #3A3A38;
  border-radius: 12px;
  overflow: hidden;
  margin: 4px 0;
  padding: 16px;
}
.chat-message.assistant.todo-write-message {
  margin-top: 12px;
  margin-bottom: 8px;
}
.todo-write-message .einsia-todo-card {
  margin: 0;
}
.einsia-todo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(112, 112, 110, 0.2);
}
.einsia-todo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-todo-title {
  font-size: 16px;
  font-weight: 700;
  color: #F2F2F0;
}
.einsia-todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.einsia-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.einsia-todo-status-icon {
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
}
.einsia-todo-content {
  flex: 1;
  word-wrap: break-word;
}
.einsia-todo-item.einsia-todo-completed .einsia-todo-content {
  color: #5CAD6E;
  text-decoration: line-through;
}
.einsia-todo-item.einsia-todo-in-progress .einsia-todo-content {
  color: #E8B54A;
}
.einsia-todo-item.einsia-todo-pending .einsia-todo-content,
.einsia-todo-item:not(.einsia-todo-completed):not(.einsia-todo-in-progress) .einsia-todo-content {
  color: #5A87AD;
}
.einsia-message-header {
  display: flex;
  align-items: center;
  margin-top: .25rem;
}
.einsia-label {
  font-size: 24px;
  font-weight: 700;
  color: #e3aa79;
  font-family: jsMath-cmbx10, serif;
}
.einsia-skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(242, 242, 240, 0.16);
  border-radius: 4px;
  color: #f2f2f0;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}
.assistant-action-buttons {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-top: 8px;
}
.assistant-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  box-shadow: none;
}
.assistant-feedback-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}
.assistant-feedback-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
}
.assistant-feedback-btn.active {
  color: rgba(255, 255, 255, 0.85);
}
.assistant-feedback-btn svg {
  opacity: 1;
  transition: opacity 0.12s ease;
}
.assistant-content-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  box-shadow: none;
  margin-left: 0px;
}
.assistant-content-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}
.assistant-content-copy-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
}
.assistant-content-copy-btn.copied {
  background: transparent;
  color: rgb(46, 160, 67);
}
.assistant-content-copy-btn svg,
.assistant-content-copy-btn img {
  opacity: 0.85;
  transition: opacity 0.12s ease;
}
.assistant-content-copy-btn:hover svg,
.assistant-content-copy-btn:hover img,
.assistant-content-copy-btn.copied svg,
.assistant-content-copy-btn.copied img {
  opacity: 1;
}
.user-message-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  box-shadow: none;
  margin-top: 8px;
  margin-left: 7px;
}
.user-message-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}
.user-message-copy-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
}
.user-message-copy-btn.copied {
  background: transparent;
  color: rgb(46, 160, 67);
}
.user-message-copy-btn svg,
.user-message-copy-btn img {
  opacity: 0.85;
  transition: opacity 0.12s ease;
}
.user-message-copy-btn:hover svg,
.user-message-copy-btn:hover img,
.user-message-copy-btn.copied svg,
.user-message-copy-btn.copied img {
  opacity: 1;
}
.einsia-error-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.einsia-error-icon {
  font-size: 42px;
  margin-bottom: 8px;
  line-height: 1;
}
.einsia-error-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
}
.einsia-error-desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.einsia-error-desc strong {
  font-weight: 600;
  color: #fff;
}
.einsia-error-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* src/ui/components/chat_displays/highlight-custom.css */
.einsia-assistant-content pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85);
}
.einsia-assistant-content code:not(.hljs) {
  color: #dbad80;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family:
    Menlo,
    Monaco,
    "Courier New",
    monospace;
  font-size: 1em;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: #79b8ff;
  font-weight: 500;
}
.hljs-string,
.hljs-addition {
  color: #9ecbff;
}
.hljs-number,
.hljs-meta-string {
  color: #ffab70;
}
.hljs-comment,
.hljs-quote,
.hljs-deletion {
  color: rgba(139, 148, 158, 0.8);
  font-style: italic;
}
.hljs-function,
.hljs-title,
.hljs-section .hljs-title {
  color: #d2a8ff;
}
.hljs-class .hljs-title,
.hljs-type {
  color: #f0c674;
}
.hljs-attribute,
.hljs-variable,
.hljs-template-variable,
.hljs-attr {
  color: #79c0ff;
}
.hljs-built_in,
.hljs-builtin-name {
  color: #56b6c2;
}
.hljs-symbol,
.hljs-bullet,
.hljs-code,
.hljs-formula {
  color: rgba(255, 255, 255, 0.9);
}
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
  color: #ff7b72;
}
.hljs-meta {
  color: #ffa657;
}
.hljs-regexp {
  color: #7ee787;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 700;
}
.hljs-keyword.hljs-function {
  color: #79b8ff;
}
.hljs-doctag,
.hljs-params {
  color: #e3b341;
}
.einsia-assistant-content pre {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.code-block-wrapper:hover pre {
  border-color: rgba(255, 255, 255, 0.1);
}
.code-language-label {
  position: absolute;
  top: 8px;
  right: 48px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family:
    "SF Mono",
    Monaco,
    "Consolas",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* src/ui/components/ImageUploadModal.css */
.image-upload-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}
.image-upload-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.image-upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.image-upload-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.image-upload-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}
.image-upload-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.image-upload-preview {
  width: 100%;
  max-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.image-upload-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.image-upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-upload-field label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.image-upload-field input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  color: #111827;
  transition: all 0.2s ease;
}
.image-upload-field input:hover {
  border-color: #9ca3af;
}
.image-upload-field input:focus {
  outline: none;
  border-color: #e3aa79;
  box-shadow: 0 0 0 3px rgba(227, 170, 121, 0.1);
}
.image-upload-field input:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.image-upload-directory-selector {
  position: relative;
}
.image-upload-current-path {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.image-upload-current-path:hover:not(:disabled) {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}
.image-upload-current-path:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.image-upload-current-path.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.path-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-arrow {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
}
.image-upload-directory-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.image-upload-directory-item {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: left;
}
.image-upload-directory-item:last-child {
  border-bottom: none;
}
.image-upload-directory-item:hover:not(:disabled) {
  background-color: #f9fafb;
}
.image-upload-directory-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.image-upload-directory-item.parent {
  background-color: #fef3c7;
  font-weight: 500;
}
.image-upload-directory-item.parent:hover:not(:disabled) {
  background-color: #fde68a;
}
.directory-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.directory-name {
  font-size: 14px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-upload-directory-item.parent .directory-name {
  color: #92400e;
  font-weight: 600;
}
.image-upload-directory-empty {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}
.image-upload-field input.error {
  border-color: #ef4444;
}
.image-upload-field input.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.image-upload-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: -4px;
}
.image-upload-status {
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.image-upload-status.uploading {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.image-upload-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.image-upload-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.image-upload-spinner {
  font-size: 18px;
  animation: spin 1s linear infinite;
}
.image-upload-icon {
  font-size: 18px;
  font-weight: bold;
}
.image-upload-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  justify-content: flex-end;
}
.image-upload-modal-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
}
.image-upload-modal-button.cancel {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}
.image-upload-modal-button.cancel:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}
.image-upload-modal-button.upload {
  background-color: #e3aa79;
  color: #13120a;
  border-color: #e3aa79;
  font-weight: 600;
}
.image-upload-modal-button.upload:hover:not(:disabled) {
  background-color: #f0bc8f;
  border-color: #f0bc8f;
}
.image-upload-modal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* src/ui/components/chat_displays/AssistantImages.css */
.assistant-images {
  margin: 16px 0;
  padding: 12px;
  background-color: rgba(100, 100, 120, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(100, 100, 120, 0.2);
}
.assistant-images-header {
  font-size: 14px;
  font-weight: 500;
  color: #e9ecf2;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.assistant-images-grid.single-image {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.assistant-images-grid.single-image .assistant-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 600px;
}
.assistant-image-item {
  border-radius: 8px;
  overflow: visible;
  background-color: #1b1912;
  border: 1px solid rgba(227, 170, 121, 0.25);
  transition: box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.assistant-image-item img {
  border-radius: 8px;
}
.assistant-image-item:hover {
  box-shadow: 0 4px 12px rgba(227, 170, 121, 0.2);
}
.assistant-image-overlay-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.assistant-image-item:hover .assistant-image-overlay-buttons {
  opacity: 1;
  pointer-events: auto;
}
.assistant-image-overlay-buttons:hover,
.assistant-image-overlay-buttons:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.assistant-image-overlay-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
}
.assistant-image-overlay-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  opacity: 0.95;
}
.assistant-image-overlay-button:hover {
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scale(1.08);
  color: rgba(255, 255, 255, 1);
}
.assistant-image-overlay-button:hover svg {
  opacity: 1;
}
.assistant-image-overlay-button.copied {
  background-color: rgba(46, 160, 67, 0.8);
  color: rgba(255, 255, 255, 1);
}
.assistant-image-overlay-button.copied svg {
  opacity: 1;
}
.assistant-image-download-wrapper {
  position: relative;
}
.assistant-image-download-menu {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 180px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 500;
  animation: fadeInMenu 0.2s ease;
  padding-top: 4px;
  margin-top: -4px;
}
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.assistant-image-download-item-wrapper {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.assistant-image-download-item-wrapper:last-child {
  border-bottom: none;
}
.assistant-image-download-item {
  width: 100%;
  padding: 8px 12px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}
.assistant-image-download-item:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
}
.assistant-image-download-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.assistant-image-download-item.save-to-project {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.assistant-image-download-item.save-to-project:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
}
.assistant-image-download-spinner {
  font-size: 14px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.assistant-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
  cursor: pointer;
}
.assistant-image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background-color: #fee;
  color: #c33;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}
.assistant-image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10004;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.assistant-image-preview-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assistant-image-preview {
  max-width: 80%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.assistant-image-preview-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
}
.assistant-image-preview-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.assistant-image-preview-close svg {
  width: 24px;
  height: 24px;
}
.assistant-image-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(227, 170, 121, 0.2);
  border-top-color: rgba(227, 170, 121, 0.8);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}
@keyframes spinner-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.assistant-images-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.carousel-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 8px 0;
}
.carousel-counter {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.carousel-image-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.carousel-image-wrapper .assistant-image-item {
  width: 100%;
  max-width: 100%;
}
.carousel-nav-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}
.carousel-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  color: rgba(255, 255, 255, 1);
}
.carousel-nav-button:active {
  transform: scale(0.95);
}
.carousel-nav-button svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .carousel-nav-button {
    width: 32px;
    height: 32px;
  }
  .carousel-nav-button svg {
    width: 18px;
    height: 18px;
  }
}

/* src/ui/components/chat_displays/ToolCallResponseEcho.css */
.einsia-tool-trace-compact {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: none;
}
.einsia-trace-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
  cursor: pointer;
}
.einsia-trace-icon {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}
.einsia-trace-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  font-weight: normal;
}
.einsia-trace-chevron {
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}
.einsia-trace-chevron.expanded {
  transform: rotate(90deg);
}
.einsia-tool-call-detail {
  padding: 8px 0 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  animation: slideDown 0.2s ease;
}
.einsia-tool-call-detail pre {
  margin: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  max-width: 100%;
  box-sizing: border-box;
  font-family:
    "Monaco",
    "Menlo",
    "Ubuntu Mono",
    monospace;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* src/ui/components/MessageAttachments.css */
.message-attachments-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(19, 18, 11, 0.2);
  border: 1px solid rgba(218, 172, 128, 0.1);
  border-radius: 8px;
}
.message-attachments-header {
  font-size: 10px;
  font-weight: 600;
  color: rgba(218, 172, 128, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.message-attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 6px;
}
.message-attachment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px 4px 4px 4px;
  background: rgba(100, 100, 120, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(218, 172, 128, 0.15);
  transition: all 0.2s;
  min-height: 58px;
  width: 80px;
  cursor: pointer;
}
.message-attachment-card:hover {
  background: rgba(100, 100, 120, 0.25);
  border-color: rgba(218, 172, 128, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(218, 172, 128, 0.2);
}
.message-attachment-card.downloading {
  cursor: wait;
  opacity: 0.7;
}
.message-attachment-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.message-attachment-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 10px;
  line-height: 1.2;
}
.message-attachment-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(218, 172, 128, 0.7);
  margin: 0;
}
.message-attachment-icon svg {
  width: 18px;
  height: 18px;
}
.message-attachment-preview-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
}
.message-attachment-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  width: 100%;
}
.message-attachment-extension {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}
.message-attachment-size {
  color: rgba(218, 172, 128, 0.6);
  font-size: 8px;
  font-weight: 400;
}
.message-attachment-downloading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}
.downloading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(218, 172, 128, 0.3);
  border-top-color: rgba(218, 172, 128, 0.9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* src/ui/components/ImageGenBadges.css */
.image-gen-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.user-msg-image-gen-badges-wrap .image-gen-badges {
  display: flex;
}
.image-gen-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 0;
  background: transparent;
  border: 1px solid rgba(242, 242, 240, 0.16);
  border-radius: 4px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: #f2f2f0;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  box-sizing: border-box;
}

/* src/ui/components/VirtualUrlBadge.css */
.virtual-url-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px;
  margin-right: 6px;
  background: rgba(100, 100, 120, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(218, 172, 128, 0.2);
  color: rgba(233, 236, 242, 0.9);
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
  white-space: nowrap;
  user-select: none;
  text-align: center;
}
.virtual-url-badge:hover {
  background: rgba(100, 100, 120, 0.25);
  border-color: rgba(218, 172, 128, 0.3);
}
.virtual-url-badge:active {
  transform: scale(0.98);
}
.virtual-url-badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}
.virtual-url-badge.loading {
  background: rgba(100, 100, 120, 0.2);
  cursor: wait;
  opacity: 0.7;
}
.virtual-url-badge.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.9);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
@media (prefers-color-scheme: dark) {
  .virtual-url-badge {
    background: rgba(100, 100, 120, 0.2);
    border-color: rgba(218, 172, 128, 0.2);
  }
  .virtual-url-badge:hover {
    background: rgba(100, 100, 120, 0.3);
    border-color: rgba(218, 172, 128, 0.4);
  }
}

/* src/ui/components/ChatInputEditorContext.css */
.editor-context {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(227, 170, 121, 0.05);
  border-top: 1px solid rgba(227, 170, 121, 0.15);
  border-bottom: 1px solid rgba(227, 170, 121, 0.15);
}
.editor-context-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-context-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3aa79;
}
.editor-context-icon svg {
  width: 16px;
  height: 16px;
}
.editor-context-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.editor-context-file {
  color: #e9ecf2;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-context-preview {
  margin: 0;
  padding: 8px;
  background: rgba(27, 25, 18, 0.5);
  border-radius: 4px;
  border-left: 2px solid #e3aa79;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-height: 10vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 0.65em;
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
  font-family:
    "Monaco",
    "Menlo",
    "Consolas",
    monospace;
  color: rgba(217, 217, 217, 0.7);
}
.editor-context-preview::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.editor-context-preview {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.editor-context-add-btn {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  gap: 10px;
  background: #e3aa79;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0;
  color: #13120A;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editor-context-add-btn:hover:not(:disabled) {
  background: #f0bc8f;
}
.editor-context-add-btn:disabled {
  background: rgba(227, 170, 121, 0.5);
  cursor: not-allowed;
}

/* src/ui/components/SkillMenu.css */
.einsia-skill-menu {
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px;
  background: #1B1912;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  max-height: 200px;
  overflow-y: auto;
}
.einsia-skill-menu-items {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.einsia-skill-menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 8px;
  gap: 4px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  background: transparent;
}
.einsia-skill-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.einsia-skill-menu-item.selected {
  background: #13120A;
}
.einsia-skill-icon {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F2F2F0;
}
.einsia-skill-menu-item.selected .einsia-skill-icon {
  color: #E3AA79;
}
.einsia-skill-name {
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #F2F2F0;
  flex: none;
  order: 1;
  flex-grow: 0;
}
.einsia-skill-menu-item.selected .einsia-skill-name {
  color: #E3AA79;
}
.einsia-skill-tooltip {
  z-index: 100000;
  padding: 6px 12px;
  background: #13120b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipFadeIn 0.15s ease;
}
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
.einsia-skill-menu::-webkit-scrollbar {
  width: 2px;
}
.einsia-skill-menu::-webkit-scrollbar-track {
  background: transparent;
}
.einsia-skill-menu::-webkit-scrollbar-thumb {
  background: rgba(227, 170, 121, 0.3);
  border-radius: 1px;
}
.einsia-skill-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 170, 121, 0.5);
}

/* src/ui/components/skill-panels/ImageGenOptionsPanel.css */
.einsia-image-gen-options {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.einsia-gen-option-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px 4px 4px 8px;
  gap: 4px;
  height: 24px;
  border: 1px solid #32302A;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: none;
  white-space: nowrap;
}
.einsia-gen-option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.einsia-gen-option-label {
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #F2F2F0;
  flex: none;
  order: 0;
}
.einsia-gen-option-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  order: 1;
  color: rgba(255, 255, 255, 0.4);
}
.einsia-gen-overflow-btn {
  min-width: 40px;
  justify-content: center;
  padding: 4px;
}
.einsia-gen-dropdown {
  background: #1B1912;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  min-width: 160px;
  max-width: 300px;
  max-height: 400px;
  padding: 4px;
  z-index: 2147483647;
  overflow-y: auto;
  overflow-x: hidden;
}
.einsia-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 8px;
  gap: 4px;
  height: 32px;
  border-radius: 4px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  color: #F2F2F0;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  justify-content: space-between;
}
.einsia-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.einsia-dropdown-item.selected {
  background: #13120A;
  color: #E3AA79;
}
.einsia-dropdown-checkmark {
  margin-left: auto;
  font-size: 14px;
  color: #E3AA79;
  font-weight: bold;
}
.einsia-overflow-item {
  justify-content: flex-start;
  position: relative;
}
.einsia-overflow-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.einsia-gen-submenu {
  margin-left: 4px;
}
.einsia-gen-dropdown::-webkit-scrollbar {
  width: 2px;
}
.einsia-gen-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.einsia-gen-dropdown::-webkit-scrollbar-thumb {
  background: rgba(227, 170, 121, 0.3);
  border-radius: 1px;
}
.einsia-gen-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 170, 121, 0.5);
}

/* src/ui/components/ChatInput.css */
.einsia-condense-status-box {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #13120b;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: visible;
}
.einsia-condense-status-text {
  color: #e9ecf2;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  text-align: left;
  line-height: 2.25rem;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  user-select: none;
  padding-left: 16px;
}
.einsia-chat-input {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #13120b;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: visible;
}
.einsia-chat-input-editor {
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 4px;
}
.einsia-context-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 8px 12px;
  background: rgba(19, 18, 11, 0.3);
  border-bottom: 1px solid rgba(218, 172, 128, 0.15);
  max-height: 30vh;
  overflow-y: auto;
}
.context-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.context-section-header {
  font-size: 11px;
  font-weight: 600;
  color: rgba(218, 172, 128, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.context-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.context-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 6px;
}
.context-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px 4px 4px 4px;
  background: rgba(100, 100, 120, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(218, 172, 128, 0.15);
  transition: all 0.2s;
  min-height: 58px;
  width: 80px;
}
.context-item-card:hover {
  background: rgba(100, 100, 120, 0.25);
  border-color: rgba(218, 172, 128, 0.3);
}
.context-item-card-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 2px;
  color: rgba(218, 172, 128, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  z-index: 1;
  opacity: 0;
}
.context-item-card:hover .context-item-card-remove {
  opacity: 1;
}
.context-item-card-remove:hover {
  background: rgba(218, 172, 128, 0.15);
  color: rgba(239, 68, 68, 0.9);
}
.context-item-card-remove svg {
  width: 8px;
  height: 8px;
}
.context-item-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.context-item-card-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 10px;
  line-height: 1.2;
}
.context-item-card-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(218, 172, 128, 0.7);
  margin: 0;
}
.context-item-card-icon svg {
  width: 18px;
  height: 18px;
}
.context-item-card-preview-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
}
.context-item-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  width: 100%;
}
.context-item-card-extension {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}
.context-item-card-size-status {
  color: rgba(218, 172, 128, 0.6);
  font-size: 8px;
  font-weight: 400;
}
.context-upload-progress-card {
  width: 100%;
  height: 2px;
  background: rgba(19, 18, 11, 0.4);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2px;
}
.context-upload-fill {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(218, 172, 128, 0.6),
      rgba(218, 172, 128, 0.9));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(218, 172, 128, 0.3);
}
.context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(100, 100, 120, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(218, 172, 128, 0.15);
  transition: all 0.2s;
}
.context-item:hover {
  background: rgba(100, 100, 120, 0.25);
  border-color: rgba(218, 172, 128, 0.3);
}
.context-item-preview {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(19, 18, 11, 0.5);
  border: 1px solid rgba(218, 172, 128, 0.2);
}
.context-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.context-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(218, 172, 128, 0.08);
  border-radius: 6px;
  color: rgba(218, 172, 128, 0.7);
}
.context-item-icon svg {
  width: 18px;
  height: 18px;
}
.context-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.context-item-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-item-meta {
  color: rgba(218, 172, 128, 0.6);
  font-size: 11px;
  font-weight: 400;
}
.context-upload-progress {
  width: 100%;
  height: 3px;
  background: rgba(19, 18, 11, 0.4);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.context-item-remove {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(218, 172, 128, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.context-item-remove:hover {
  background: rgba(218, 172, 128, 0.15);
  color: rgba(239, 68, 68, 0.9);
}
.context-item-remove svg {
  width: 14px;
  height: 14px;
}
.einsia-chat-input-editor {
  width: 100%;
  min-height: 10vh;
  max-height: 25vh;
  padding: 12px;
  background: transparent;
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  overflow-y: auto;
}
.einsia-chat-input-editor::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}
.einsia-chat-input-editor::-webkit-scrollbar-thumb {
  background-color: #2d3139;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.einsia-chat-input-editor::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}
.einsia-textbox {
  display: block;
  flex: 1 0 100%;
  width: 100%;
  min-height: 10vh;
  max-height: 25vh;
  min-width: 1px;
  max-width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  background: transparent;
  border: none;
  color: #e9ecf2;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
  --placeholder-offset-x: 0px;
  transform: none !important;
  will-change: auto;
}
.einsia-textbox[data-empty=true]::after {
  content: attr(data-placeholder);
  position: absolute;
  top: 0px;
  left: var(--placeholder-offset-x, 0px);
  max-width: calc(100% - var(--placeholder-offset-x, 0px));
  padding: inherit;
  color: #6b7280;
  font-size: .8rem;
  line-height: 1.5;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.einsia-textbox::-webkit-scrollbar-track {
  background-color: transparent;
}
.einsia-textbox::-webkit-scrollbar-thumb {
  background-color: #2d3139;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.einsia-textbox::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}
.einsia-textbox::placeholder {
  color: #6b7280;
}
.einsia-textbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.context-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin: 2px 4px 2px 4px;
  margin-right: 6px;
  background: rgba(227, 170, 121, 0.15);
  border: 1px solid rgba(227, 170, 121, 0.2);
  border-radius: 5px;
  color: rgba(227, 170, 121, 0.9);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.15s ease;
  line-height: 1.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
}
.context-badge:hover {
  background: rgba(227, 170, 121, 0.25);
  border-color: rgba(227, 170, 121, 0.4);
  color: #f0bc8f;
  transform: translateY(-1px);
}
.context-badge:active {
  transform: translateY(0);
  background: rgba(227, 170, 121, 0.3);
}
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px;
  margin-right: 6px;
  background: transparent;
  border: 1px solid rgba(242, 242, 240, 0.16);
  border-radius: 4px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: #f2f2f0;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  box-sizing: border-box;
}
.chat-input-editor .image-gen-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px;
  vertical-align: top;
  background: transparent;
  border: 1px solid rgba(242, 242, 240, 0.16);
  border-radius: 4px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: #f2f2f0;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  box-sizing: border-box;
}
.imagehost-preview-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px;
  margin-right: 6px;
  background: rgba(100, 100, 120, 0.15);
  border: 1px solid rgba(218, 172, 128, 0.2);
  border-radius: 4px;
  opacity: 0.7;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: rgba(233, 236, 242, 0.7);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
  box-sizing: border-box;
  transition: all 0.2s;
}
.imagehost-preview-badge:hover {
  opacity: 0.85;
  background: rgba(100, 100, 120, 0.25);
  border-color: rgba(218, 172, 128, 0.3);
}
.virtual-url-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px;
  margin-right: 6px;
  background: transparent;
  border: 1px solid rgba(218, 172, 128, 0.4);
  border-radius: 4px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: rgba(227, 170, 121, 0.95);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
  box-sizing: border-box;
  transition: all 0.2s;
}
.virtual-url-badge:hover {
  background: rgba(227, 170, 121, 0.1);
  border-color: rgba(227, 170, 121, 0.6);
}
.virtual-url-badge.highlighted {
  background: rgba(227, 170, 121, 0.15);
  border: 2px solid rgba(227, 170, 121, 0.9);
  box-shadow: 0 0 0 2px rgba(227, 170, 121, 0.2);
}
.context-badge[style*="cursor: wait"] {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}
.einsia-chat-input-editor::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}
.einsia-chat-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem 0.6rem 0.6rem;
  border-top: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  min-width: 0;
  background: transparent;
}
.einsia-chat-input-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
}
.einsia-chat-input-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: max-content;
}
.einsia-model-selector {
  position: relative;
  flex: 1 1 auto;
  overflow: visible;
  min-width: 0;
  max-width: 150px;
}
.einsia-model-selector-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #13120b;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  width: 100%;
  min-width: 0;
  color: #6d727f;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.einsia-model-selector-button:hover:not(:disabled) {
  color: #ffffff;
}
.einsia-model-selector-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.einsia-model-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.einsia-model-logo-placeholder {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background: rgba(138, 209, 255, 0.1);
  border-radius: 0;
}
.einsia-model-name {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-weight: 600;
  font-size: 0.7rem;
}
.einsia-model-name-dropdown {
  flex: 1;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.7rem;
}
.einsia-dropdown-icon {
  width: 0.7rem;
  height: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.einsia-model-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  min-width: max(12rem, 100%);
  max-width: max-content;
  background: #13120b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 99999;
  backdrop-filter: blur(10px);
}
.einsia-model-list {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem;
}
.einsia-model-list::-webkit-scrollbar {
  width: 6px;
}
.einsia-model-list::-webkit-scrollbar-track {
  background: transparent;
}
.einsia-model-list::-webkit-scrollbar-thumb {
  background: rgba(218, 172, 128, 0.3);
  border-radius: 3px;
}
.einsia-model-list::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 172, 128, 0.5);
}
.einsia-model-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.einsia-model-item:hover {
  background: rgba(218, 172, 128, 0.1);
}
.einsia-model-item.selected {
  background: rgba(218, 172, 128, 0.15);
}
.einsia-model-item.selected:hover {
  background: rgba(218, 172, 128, 0.2);
}
.einsia-model-item.selected .einsia-model-name,
.einsia-model-item.selected .einsia-model-name-dropdown {
  color: #daac80;
}
.einsia-model-checkmark {
  width: 1rem;
  height: 1rem;
  color: #daac80;
  flex-shrink: 0;
  margin-left: auto;
}
.einsia-model-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.25rem 0.5rem;
}
.einsia-autorun-item {
  padding: 0.5rem 0.65rem;
  margin: 0 0.25rem 0.25rem 0.25rem;
}
.einsia-autorun-checkbox {
  width: 36px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}
.einsia-autorun-checkbox::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}
.einsia-autorun-checkbox:checked {
  background: #6487a2;
}
.einsia-autorun-checkbox:checked::before {
  transform: translateX(16px);
}
.einsia-model-tooltip-content {
  padding: 0.5rem 0.75rem;
  background: #13120b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: normal;
  max-width: 20rem;
  min-width: 12rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}
.einsia-model-tooltip-content h1,
.einsia-model-tooltip-content h2,
.einsia-model-tooltip-content h3 {
  margin: 0.5rem 0 0.25rem 0;
  color: #daac80;
  font-weight: 600;
}
.einsia-model-tooltip-content h1 {
  font-size: 1rem;
}
.einsia-model-tooltip-content h2 {
  font-size: 0.875rem;
}
.einsia-model-tooltip-content h3 {
  font-size: 0.75rem;
}
.einsia-model-tooltip-content p {
  margin: 0.25rem 0;
}
.einsia-model-tooltip-content ul,
.einsia-model-tooltip-content ol {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}
.einsia-model-tooltip-content code {
  background: rgba(218, 172, 128, 0.15);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #daac80;
}
.einsia-model-tooltip-content strong {
  color: #daac80;
  font-weight: 600;
}
.einsia-model-tooltip-content em {
  color: rgba(218, 172, 128, 0.8);
}
.einsia-autorun-checkbox:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.einsia-autorun-checkbox:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}
.einsia-autorun-checkbox:checked:hover:not(:disabled) {
  background: #e8c199;
}
.einsia-chat-input-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: max-content;
}
.einsia-chat-icon-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #daac80;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.einsia-chat-icon-button svg {
  stroke: #daac80;
  stroke-width: .3px;
  display: block;
}
.einsia-chat-icon-button:hover:not(:disabled) {
  background: rgba(218, 172, 128, 0.1);
  color: #daac80;
}
.einsia-chat-icon-button:hover:not(:disabled) svg {
  stroke: #daac80;
}
.einsia-chat-icon-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.einsia-chat-icon-button:disabled svg {
  stroke: #daac80;
}
.einsia-chat-send-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #daac80;
  border: none;
  border-radius: 50%;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.einsia-chat-send-button svg {
  width: 18px;
  height: 18px;
  stroke: #1a1a1a;
  display: block;
}
.einsia-chat-send-button:hover:not(:disabled) {
  background: #e8c199;
  color: #1a1a1a;
  transform: translateY(-1px);
}
.einsia-chat-send-button:hover:not(:disabled) svg {
  stroke: #1a1a1a;
}
.einsia-chat-send-button:active:not(:disabled) {
  transform: translateY(0);
  background: #d19d70;
}
.einsia-chat-send-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.einsia-chat-send-button:disabled svg {
  stroke: #1a1a1a;
}
.einsia-chat-stop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #1a1a1a;
  background: #daac80;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.einsia-chat-stop-button svg {
  width: 14px;
  height: 14px;
  color: #ef4444;
}
.einsia-chat-stop-button:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}
.einsia-chat-stop-button:active {
  transform: scale(0.95);
}
.einsia-user-avatar-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.einsia-user-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.einsia-user-avatar-btn:active {
  transform: scale(0.95);
}
.einsia-user-avatar-btn.einsia-logged-out {
  background: #6b7280;
  opacity: 0.8;
}
.einsia-user-avatar-btn.einsia-logged-out:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}
.drag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 18, 11, 0.85);
  border: 2px dashed rgba(100, 160, 180, 0.6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(4px);
  animation: dragOverlayFadeIn 0.15s ease;
}
@keyframes dragOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.drag-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.drag-overlay-icon {
  width: 18px;
  height: 20px;
}
.drag-overlay-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.einsia-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.15s ease;
  isolation: isolate;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.einsia-fullscreen-container {
  width: 80vw;
  height: 80vh;
  background: #1b1912;
  border: 1px solid rgba(227, 170, 121, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.2s ease;
}
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.einsia-fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(227, 170, 121, 0.2);
  background: rgba(27, 25, 18, 0.5);
}
.einsia-fullscreen-title {
  font-size: 15px;
  font-weight: 600;
  color: #e9ecf2;
}
.einsia-fullscreen-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(227, 170, 121, 0.2);
  border-radius: 8px;
  color: #e3aa79;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.einsia-fullscreen-close:hover {
  background: rgba(27, 25, 18, 0.6);
  border-color: rgba(227, 170, 121, 0.4);
  color: #ffb266;
}
.einsia-fullscreen-close svg {
  width: 18px;
  height: 18px;
}
.einsia-fullscreen-editor {
  flex: 1;
  width: 100%;
  padding: 20px;
  background: #1b1912;
  border: none;
  color: #e9ecf2;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  line-height: 1.6;
  overflow-y: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  transform: none !important;
  will-change: auto;
}
.einsia-fullscreen-editor::-webkit-scrollbar {
  width: 8px;
  background-color: transparent;
}
.einsia-fullscreen-editor::-webkit-scrollbar-track {
  background-color: transparent;
}
.einsia-fullscreen-editor::-webkit-scrollbar-thumb {
  background-color: #2d3139;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.einsia-fullscreen-editor::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}
.einsia-fullscreen-textbox {
  display: block;
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #e9ecf2;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  resize: none;
  transform: none !important;
  will-change: auto;
}
.einsia-fullscreen-textbox[data-empty=true]::after {
  content: attr(data-placeholder);
  color: #6b7280;
  font-size: 13px;
  pointer-events: none;
}
.einsia-fullscreen-textbox::-webkit-scrollbar {
  width: 8px;
  background-color: transparent;
}
.einsia-fullscreen-textbox::-webkit-scrollbar-track {
  background-color: transparent;
}
.einsia-fullscreen-textbox::-webkit-scrollbar-thumb {
  background-color: #2d3139;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.einsia-fullscreen-textarea::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}
.einsia-fullscreen-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(227, 170, 121, 0.2);
  background: rgba(27, 25, 18, 0.5);
}
.einsia-fullscreen-hint {
  font-size: 12px;
  color: #6b7280;
}
.skill-badge,
.context-badge,
.imagegen-type-badge,
.imagegen-style-badge,
.imagegen-ratio-badge {
  order: 0;
  flex-shrink: 0;
}
.einsia-textbox,
.einsia-fullscreen-textbox {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  order: 10;
}

/* src/ui/components/ImageCanvas/ImageFloatingToolbar.css */
.image-floating-toolbar {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  user-select: none;
  white-space: nowrap;
}
.toolbar-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  outline: none;
}
.toolbar-button:hover {
  background: #f3f4f6;
  color: #111827;
}
.toolbar-button:active {
  background: #e5e7eb;
}
.toolbar-button svg {
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.15s ease;
}
.toolbar-button:hover svg {
  color: #374151;
}
.toolbar-divider {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
  margin: 0 2px;
}

/* src/ui/components/ImageCanvas/ImageContextMenu.css */
.image-context-menu {
  position: fixed;
  z-index: 2000;
  min-width: 180px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
  user-select: none;
}
.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  outline: none;
}
.context-menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}
.context-menu-item:active {
  background: #e5e7eb;
}
.context-menu-item svg {
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.15s ease;
}
.context-menu-item:hover svg {
  color: #374151;
}
.context-menu-item span {
  flex: 1;
}
.context-menu-divider {
  height: 1px;
  margin: 4px 0;
  background: #e5e7eb;
}
.context-menu-item-danger {
  color: #dc2626;
}
.context-menu-item-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.context-menu-item-danger svg {
  color: #ef4444;
}
.context-menu-item-danger:hover svg {
  color: #dc2626;
}

/* src/ui/components/ImageCanvas/SelectionCanvas.css */
.selection-canvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--einsia-panel-width, 25%);
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: selectionBackdropFadeIn 0.2s ease-out;
}
@keyframes selectionBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.selection-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.selection-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.selection-canvas-toolbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.selection-canvas-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.selection-canvas-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}
.selection-canvas-actions {
  display: flex;
  gap: 12px;
}
.selection-canvas-btn-cancel,
.selection-canvas-btn-done {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.selection-canvas-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.selection-canvas-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.selection-canvas-btn-done {
  background:
    linear-gradient(
      135deg,
      #ffd700 0%,
      #ffaa00 100%);
  color: #000;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}
.selection-canvas-btn-done:hover:not(:disabled) {
  background:
    linear-gradient(
      135deg,
      #ffe44d 0%,
      #ffbb33 100%);
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}
.selection-canvas-btn-done:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.selection-canvas-zoom-indicator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10;
}
.selection-canvas-mode-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.mode-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.mode-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}
.mode-toggle-btn.active {
  background:
    linear-gradient(
      135deg,
      #ffd700 0%,
      #ffaa00 100%);
  border-color: #ffd700;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}
.mode-toggle-btn:active {
  transform: scale(0.95);
}
.selection-canvas-color-palette {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.color-palette-label {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.color-palette-swatches {
  display: flex;
  gap: 8px;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.color-swatch.active {
  border-color: #ffd700;
  border-width: 3px;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}
.selection-rect-delete-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.selection-rect-delete-btn:hover {
  background: #ff4444;
  box-shadow: 0 2px 12px rgba(255, 68, 68, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}
.selection-rect-delete-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}
.selection-rect-delete-btn svg {
  display: block;
}
.selection-canvas-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10000;
  backdrop-filter: blur(4px);
}
.selection-canvas-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(227, 170, 121, 0.2);
  border-top-color: #e3aa79;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.selection-canvas-loading-text {
  color: #e3aa79;
  font-size: 16px;
  font-weight: 500;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .selection-canvas-toolbar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .selection-canvas-title {
    text-align: center;
  }
  .selection-canvas-actions {
    width: 100%;
    justify-content: center;
  }
}

/* src/ui/components/ImageCanvas/ImageCanvas.css */
.image-canvas-container {
  position: fixed;
  top: 8px;
  right: calc(var(--einsia-panel-width-percent, 25%) + 8px);
  bottom: 8px;
  width: 464px;
  max-width: calc(100vw - var(--einsia-panel-width-percent, 25%) - 24px);
  z-index: 10000;
  background: #1b1912;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  animation: canvas-zoom-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.image-canvas-container.fullscreen {
  top: 0;
  right: var(--einsia-panel-width-percent, 25%);
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  border-radius: 0;
  z-index: 10002;
}
.image-canvas-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: transparent;
  border: 1px solid transparent;
}
.image-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  touch-action: none;
  position: relative;
}
.canvas-corner-control {
  display: none;
}
.image-canvas-operations {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.canvas-operation-button {
  height: 32px;
  padding: 8px;
  background: #34342f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
  color: #d1d1d0;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.canvas-operation-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.canvas-operation-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.image-canvas-top-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0;
  height: 32px;
  padding: 0 8px;
  background: #34342f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
}
.zoom-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #d1d1d0;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.zoom-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f0;
}
.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zoom-percentage {
  min-width: 40px;
  padding: 0 8px;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #d1d1d0;
  text-align: center;
}
.fullscreen-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #34342f;
  color: #d1d1d0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.fullscreen-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f2f2f0;
}
.fullscreen-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.image-canvas-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #34342f;
  color: #d1d1d0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.image-canvas-close:hover {
  background: rgba(220, 53, 69, 0.8);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ffffff;
}
.image-canvas-close:active {
  background: rgba(220, 53, 69, 1);
}
.image-canvas-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fade-in 0.2s ease;
}
.image-canvas-loading-content {
  text-align: center;
  color: #fff;
}
.image-canvas-loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid rgba(59, 96, 231, 0.2);
  border-top-color: #3b60e7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.image-canvas-loading-content p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.image-canvas-loading-progress {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: rgba(59, 96, 231, 0.8) !important;
}
.image-canvas-bottom-toolbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
  background: #34342f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
}
.toolbar-tool-group {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.toolbar-tool-btn {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #d1d1d0;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 4px;
}
.toolbar-tool-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}
.toolbar-tool-btn.active {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}
.toolbar-tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.toolbar-tool-btn svg {
  width: 16px;
  height: 16px;
}
.toolbar-tool-btn .dropdown-arrow {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}
.toolbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}
.toolbar-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #34342f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: dropdown-slide-up 0.2s ease;
}
@keyframes dropdown-slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toolbar-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #d1d1d0;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toolbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.toolbar-dropdown-item-content {
  display: flex;
  align-items: center;
  gap: 6px;
}
.toolbar-dropdown-item-content svg {
  width: 16px;
  height: 16px;
}
.toolbar-dropdown-item-shortcut {
  color: #5a5954;
  font-size: 12px;
}
@keyframes canvas-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* src/ui/components/ImageCanvas/ImageGalleryModal.css */
.image-gallery-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fade-in 0.2s ease;
}
.image-gallery-modal {
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  background:
    linear-gradient(
      135deg,
      rgba(26, 35, 50, 0.98) 0%,
      rgba(20, 28, 42, 0.98) 100%);
  border-radius: 12px;
  border: 1px solid rgba(227, 170, 121, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: zoom-in 0.3s ease;
}
.image-gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(227, 170, 121, 0.2);
}
.image-gallery-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #e3aa79;
}
.image-gallery-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(40, 40, 50, 0.8);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-gallery-modal-close:hover {
  background: rgba(220, 53, 69, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}
.image-gallery-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 300px;
}
.image-gallery-modal-loading,
.image-gallery-modal-error,
.image-gallery-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: rgba(255, 255, 255, 0.6);
}
.image-gallery-modal-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(227, 170, 121, 0.3);
  border-top-color: #e3aa79;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.image-gallery-modal-error {
  color: #ff6b6b;
}
.image-gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.image-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(42, 63, 95, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}
.image-gallery-item:hover {
  border-color: rgba(227, 170, 121, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 170, 121, 0.2);
}
.image-gallery-item.selected {
  border-color: #e3aa79;
  box-shadow: 0 0 0 3px rgba(227, 170, 121, 0.3);
}
.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}
.image-gallery-filename {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 70%,
      transparent 100%);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-gallery-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e3aa79;
  color: #1a2332;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.image-gallery-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(227, 170, 121, 0.2);
}
.image-gallery-selection-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.image-gallery-modal-actions {
  display: flex;
  gap: 12px;
}
.image-gallery-modal-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid rgba(227, 170, 121, 0.3);
  background: rgba(42, 63, 95, 0.6);
  color: #e3aa79;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-gallery-modal-btn:hover:not(:disabled) {
  background: rgba(42, 63, 95, 0.9);
  border-color: rgba(227, 170, 121, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 170, 121, 0.2);
}
.image-gallery-modal-btn.confirm {
  background: rgba(227, 170, 121, 0.2);
  border-color: rgba(227, 170, 121, 0.5);
}
.image-gallery-modal-btn.confirm:hover:not(:disabled) {
  background: rgba(227, 170, 121, 0.3);
  border-color: #e3aa79;
}
.image-gallery-modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* src/ui/modals/UserMenuModal.css */
.einsia-user-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.einsia-user-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: einsia-user-menu-fadeIn 0.2s ease;
}
@keyframes einsia-user-menu-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes einsia-user-menu-fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.einsia-user-menu-backdrop.closing {
  animation: einsia-user-menu-fadeOut 0.25s ease-out forwards;
}
.einsia-user-menu-content {
  position: absolute;
  bottom: 60px;
  right: 20px;
  width: 360px;
  background: #1b1912;
  border: 1px solid rgba(227, 170, 121, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: einsia-user-menu-slideRightIn 0.2s ease;
  overflow: hidden;
}
@keyframes einsia-user-menu-slideRightIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes einsia-user-menu-slideRightOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}
.einsia-user-menu-content.closing {
  animation: einsia-user-menu-slideRightOut 0.25s ease-out forwards;
}
.einsia-user-menu-header {
  padding: 24px;
  background: rgba(27, 25, 18, 0.5);
  border-bottom: 1px solid rgba(227, 170, 121, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
}
.einsia-user-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.einsia-user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(27, 25, 18, 0.8);
  border: 2px solid rgba(227, 170, 121, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3aa79;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 1px;
}
.einsia-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e3aa79;
  border: 3px solid #1b1912;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13120a;
  font-size: 14px;
  font-weight: 600;
}
.einsia-user-info {
  flex: 1;
  min-width: 0;
}
.einsia-user-name {
  font-size: 18px;
  font-weight: 600;
  color: #e9ecf2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.einsia-user-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.einsia-subscription-section {
  padding: 20px 24px;
  background: #1b1912;
  max-height: 300px;
  overflow-y: auto;
}
.einsia-loading-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 0;
  font-size: 14px;
}
.einsia-error-message {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  color: #ef4444;
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.einsia-no-subscriptions {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 0;
  font-size: 14px;
}
.einsia-subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.einsia-subscription-card {
  background: rgba(27, 25, 18, 0.5);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid rgba(227, 170, 121, 0.2);
}
.einsia-subscription-card:hover:not(.disabled):not(.inactive) {
  background: rgba(27, 25, 18, 0.7);
  border-color: rgba(227, 170, 121, 0.5);
}
.einsia-subscription-card.selected {
  border-color: rgba(227, 170, 121, 0.6);
  background: rgba(27, 25, 18, 0.7);
}
.einsia-subscription-card.inactive {
  opacity: 0.5;
  cursor: not-allowed;
}
.einsia-subscription-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.einsia-subscription-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.einsia-subscription-name {
  font-size: 15px;
  font-weight: 600;
  color: #e9ecf2;
}
.einsia-subscription-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e3aa79;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13120a;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.einsia-subscription-detail {
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}
.einsia-selected-indicator {
  margin-top: 8px;
  font-size: 12px;
  color: #e3aa79;
  font-weight: 500;
}
.einsia-user-menu-items {
  padding: 12px 24px;
  background: #1b1912;
  border-top: 1px solid rgba(227, 170, 121, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.einsia-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(27, 25, 18, 0.5);
  border: 1px solid rgba(227, 170, 121, 0.2);
  border-radius: 8px;
  color: #e9ecf2;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.einsia-menu-item:hover {
  background: rgba(27, 25, 18, 0.7);
  border-color: rgba(227, 170, 121, 0.4);
  transform: translateX(2px);
}
.einsia-menu-item:active {
  transform: translateX(0);
}
.einsia-menu-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: color 0.2s;
}
.einsia-menu-item:hover .einsia-menu-arrow {
  color: #e9ecf2;
}
.einsia-dashboard-item {
  color: inherit;
  transition: all 0.2s ease;
}
.einsia-dashboard-item:hover {
  background: rgba(227, 170, 121, 0.2);
  border-color: rgba(227, 170, 121, 0.7);
}
.einsia-dashboard-item:active {
  background: rgba(227, 170, 121, 0.3);
  border-color: rgba(227, 170, 121, 0.9);
  transform: translateY(1px);
}
.einsia-dashboard-item:focus {
  outline: 2px solid rgba(227, 170, 121, 0.5);
  outline-offset: 2px;
}
.einsia-dashboard-item .einsia-menu-arrow {
  color: #e3aa79;
  transition: color 0.2s ease;
}
.einsia-dashboard-item:hover .einsia-menu-arrow {
  color: #ffb266;
}
.einsia-dashboard-item:active .einsia-menu-arrow {
  color: #ff9933;
}
.einsia-logout-item {
  color: inherit;
  transition: all 0.2s ease;
}
.einsia-logout-item:hover {
  background: rgba(227, 170, 121, 0.2);
  border-color: rgba(227, 170, 121, 0.7);
}
.einsia-logout-item:active {
  background: rgba(227, 170, 121, 0.3);
  border-color: rgba(227, 170, 121, 0.9);
  transform: translateY(1px);
}
.einsia-logout-item:focus {
  outline: 2px solid rgba(227, 170, 121, 0.5);
  outline-offset: 2px;
}
.einsia-logout-item .einsia-menu-arrow {
  color: #e3aa79;
  transition: color 0.2s ease;
}
.einsia-logout-item:hover .einsia-menu-arrow {
  color: #ffb266;
}
.einsia-logout-item:active .einsia-menu-arrow {
  color: #ff9933;
}

/* src/ui/components/Toast.css */
.einsia-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.einsia-toast {
  min-width: auto;
  max-width: 400px;
  padding: 8px 16px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: auto;
  cursor: pointer;
  animation: einsia-toast-enter 0.3s cubic-bezier(0.2, 0, 0, 1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.einsia-toast:hover {
  background: rgba(30, 30, 30, 0.85);
  transform: translateY(-1px);
}
.einsia-toast.leaving {
  animation: einsia-toast-leave 0.2s ease-in forwards;
}
.einsia-toast.info,
.einsia-toast.success,
.einsia-toast.warning,
.einsia-toast.error {
  background: rgba(20, 20, 20, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}
.einsia-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.einsia-toast-message {
  white-space: nowrap;
}
@keyframes einsia-toast-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes einsia-toast-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* src/ui/modals/ContactUsModal.css */
.einsia-contact-us-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  overflow: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro",
    sans-serif;
}
.einsia-contact-us-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(40px);
  animation: einsia-contact-us-fadeIn 0.2s ease;
}
.einsia-contact-us-scroll-wrap {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.einsia-contact-us-scroll-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.einsia-contact-us-scroll-wrap::-webkit-scrollbar-track,
.einsia-contact-us-scroll-wrap::-webkit-scrollbar-thumb {
  display: none;
  background: transparent;
}
.einsia-contact-us-scroll-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
@media (max-height: 1000px) {
  .einsia-contact-us-scroll-wrap {
    align-items: flex-start;
  }
  .einsia-contact-us-scroll-inner {
    min-height: 939px;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 20px;
  }
}
.einsia-contact-us-backdrop.closing {
  animation: einsia-contact-us-fadeOut 0.25s ease-out forwards;
}
@keyframes einsia-contact-us-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes einsia-contact-us-fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.einsia-contact-us-frame {
  position: relative;
  width: 680px;
  height: 940px;
  box-sizing: border-box;
  padding-top: 40px;
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  background: #13120ACC;
  border: 1px solid #FFFFFF1A;
  box-shadow: 0px 0px 12px 0px #00000066;
  backdrop-filter: blur(40px);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: einsia-contact-us-scaleIn 0.2s ease;
}
.einsia-contact-us-frame::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.einsia-contact-us-frame.closing {
  animation: einsia-contact-us-scaleOut 0.25s ease-out forwards;
}
@keyframes einsia-contact-us-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes einsia-contact-us-scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}
.einsia-contact-us-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #F2F2F0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.einsia-contact-us-close-btn:hover {
  color: #fff;
}
.einsia-contact-us-header {
  width: 648px;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.einsia-contact-us-title {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #E3AA79;
  margin: 0;
}
.einsia-contact-us-desc {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-issue-type {
  width: 648px;
  height: 61px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.einsia-contact-us-issue-type-label {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-select-wrap-wrapper {
  position: relative;
  margin-top: 4px;
}
.einsia-contact-us-select-wrap {
  width: 648px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  padding-right: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.einsia-contact-us-select-wrap:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.einsia-contact-us-select-wrap-open {
  border-color: rgba(255, 255, 255, 0.25);
}
.einsia-contact-us-select-text {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
}
.einsia-contact-us-select-chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.einsia-contact-us-select-chevron-open {
  transform: rotate(180deg);
}
.einsia-contact-us-select-chevron svg {
  width: 8.485px;
  height: 5.185px;
  opacity: 1;
}
.einsia-contact-us-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 648px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1;
  overflow: hidden;
}
.einsia-contact-us-dropdown-option {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.einsia-contact-us-dropdown-option:hover {
  background: rgba(255, 255, 255, 0.06);
}
.einsia-contact-us-dropdown-option-selected {
  background: rgba(227, 170, 121, 0.12);
  color: #F2F2F0;
}
.einsia-contact-us-bug-report {
  width: 648px;
  min-height: 243px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.einsia-contact-us-bug-report-title {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-bug-report-desc {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-bug-report-textarea {
  width: 648px;
  height: 120px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  box-sizing: border-box;
  padding: 12px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
  resize: none;
}
.einsia-contact-us-bug-report-textarea::placeholder {
  color: #5A5954;
}
.einsia-contact-us-bug-report-textarea:focus {
  outline: none;
  border-color: #FFFFFF14;
}
.einsia-contact-us-attach-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.einsia-contact-us-attach-zone-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.einsia-contact-us-file-input-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.einsia-contact-us-attach-zone {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.einsia-contact-us-attach-zone-wrap:hover .einsia-contact-us-attach-zone {
  background: #1a1910;
}
.einsia-contact-us-attach-zone svg {
  width: 16px;
  height: 16px;
}
.einsia-contact-us-attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.einsia-contact-us-attach-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-size: 12px;
  color: #F2F2F0;
}
.einsia-contact-us-attach-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.einsia-contact-us-attach-remove {
  padding: 0;
  border: none;
  background: transparent;
  color: #8D8C88;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-contact-us-attach-remove:hover {
  color: #F2F2F0;
}
.einsia-contact-us-attach-hint {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #8D8C88;
  margin: 4px 0 0 0;
}
.einsia-contact-us-email-section {
  width: 648px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.einsia-contact-us-email-title {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-email-desc {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-email-input {
  width: 648px;
  height: 40px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #FFFFFF14;
  background: #13120A;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
}
.einsia-contact-us-email-input::placeholder {
  color: #5A5954;
}
.einsia-contact-us-email-input:focus {
  outline: none;
  border-color: #FFFFFF14;
}
.einsia-contact-us-email-note {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #8D8C88;
  margin: 4px 0 0 0;
}
.einsia-contact-us-send-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.einsia-contact-us-send-btn {
  width: 160px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #FFFFFF14;
  background: #E3AA79;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-size: 14px;
  line-height: 150%;
  color: #1B1912;
  text-transform: capitalize;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.einsia-contact-us-send-btn:hover {
  background: #e8b585;
}
.einsia-contact-us-divider {
  width: 648px;
  height: 1px;
  background: #353430;
  flex-shrink: 0;
}
.einsia-contact-us-footer {
  width: 648px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 0;
  padding-left: 0;
  flex-shrink: 0;
}
.einsia-contact-us-footer-title {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-footer-desc {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
}
.einsia-contact-us-footer-email {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 150%;
  color: #E3AA79;
  margin: 0;
}
.einsia-contact-us-footer-email a {
  color: #E3AA79;
  text-decoration: none;
}
.einsia-contact-us-footer-email a:hover {
  text-decoration: underline;
}

/* src/ui/components/HistoryPanel.css */
.history-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #13120a;
  color: #d9d9d9;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow: hidden;
}
.history-panel__header {
  padding: 1rem 1.25rem;
  border-bottom: none;
}
.history-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e3aa79;
  letter-spacing: 0.02em;
  font-family:
    "Tiro Kannada",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.history-panel__tabs {
  display: flex;
  gap: 0;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #353430;
  position: relative;
}
.history-panel__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  min-height: 2.125rem;
  background: transparent;
  border: none;
  color: #6d727f;
  font-size: 0.75rem;
  font-weight: 600;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -0.0625rem;
}
.history-panel__tab:hover {
  color: #e3aa79;
}
.history-panel__tab.active {
  color: #e3aa79;
}
.history-panel__tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.09375rem;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: #e3aa79;
  z-index: 2;
}
.history-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.history-panel__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12.5rem;
  color: rgba(217, 217, 217, 0.5);
  font-size: 0.875rem;
  font-style: italic;
}
.history-item {
  position: relative;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  min-height: 2.375rem;
  max-height: 4rem;
  height: auto;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.02);
  height: 4rem;
  min-height: 4rem;
  max-height: 4rem;
  padding-bottom: 0.75rem;
}
.history-item.current,
.history-item.current:hover {
  height: 4rem;
}
.history-item.hovered {
  background: rgba(255, 255, 255, 0.02);
}
.history-item__current-badge {
  font-size: 0.75rem;
  font-weight: 700;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #e3aa79;
  margin-bottom: 0.015625rem;
  height: 0.75rem;
  line-height: 0.75rem;
  display: inline-block;
}
.history-item__title {
  margin-bottom: 0;
  margin-top: 0;
  height: 0.875rem;
  font-family: "SF Pro";
  font-style: Medium;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 0.875rem;
  text-align: left;
  color: #FFFFFF;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  flex-shrink: 0;
  min-width: 0;
  max-width: calc(100% - 100px);
  display: flex;
  align-items: center;
}
.history-item__title:not(:first-child) {
  margin-top: 0.75rem;
}
.history-item__title-input {
  flex: 1;
  padding: 0.25rem 0.5rem;
  background: rgba(19, 18, 10, 0.8);
  border: 1px solid #e3aa79;
  border-radius: 0.25rem;
  color: #d9d9d9;
  font-size: 0.75rem;
  font-weight: 400;
  outline: none;
}
.history-item__edit-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(227, 170, 121, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-item__edit-btn:hover {
  background: rgba(227, 170, 121, 0.1);
  color: #e3aa79;
}
.history-item__time {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 0.75rem;
  align-items: center;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: rgba(217, 217, 217, 0.5);
  white-space: nowrap;
}
.history-item__project {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.history-item__actions {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  height: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  padding: 0;
  background: none;
  border-radius: 0;
}
.history-item:hover .history-item__actions {
  opacity: 1;
  visibility: visible;
}
.history-item__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1rem;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #c28a58;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-item__action-btn:hover {
  background: rgba(194, 138, 88, 0.15);
  color: #e3aa79;
}
.history-item__action-btn.favorite-active {
  color: #D9574E;
}
.history-item__action-btn.favorite-active:hover {
  background: rgba(217, 87, 78, 0.15);
}
.history-item__action-btn.delete {
  color: #c28a58;
}
.history-item__action-btn.delete:hover {
  background: rgba(194, 138, 88, 0.15);
  color: #e3aa79;
}
.history-panel__list::-webkit-scrollbar {
  width: 6px;
}
.history-panel__list::-webkit-scrollbar-track {
  background: rgba(19, 18, 10, 0.3);
}
.history-panel__list::-webkit-scrollbar-thumb {
  background: rgba(227, 170, 121, 0.3);
  border-radius: 3px;
}
.history-panel__list::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 170, 121, 0.5);
}
@media (max-width: 400px) {
  .history-panel__tabs {
    flex-direction: column;
  }
  .history-panel__tab {
    width: 100%;
    justify-content: center;
  }
  .history-item__actions {
    position: static;
    border-top: 1px solid rgba(138, 209, 255, 0.1);
    bottom: 0.75rem;
  }
  .history-item__current-badge {
    display: block;
  }
  .history-item__time {
    position: static;
    display: block;
    top: 0.75rem;
  }
  .history-item__project {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
  }
}
.history-panel__confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}
.history-panel__confirm-dialog {
  background: #1a1916;
  border: 1px solid rgba(227, 170, 121, 0.3);
  border-radius: 12px;
  padding: 24px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.history-panel__confirm-title {
  margin: 0 0 12px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e3aa79;
}
.history-panel__confirm-text {
  margin: 0 0 24px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.history-panel__confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.history-panel__confirm-cancel {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-panel__confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.history-panel__confirm-delete {
  padding: 8px 20px;
  background: #dc3545;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-panel__confirm-delete:hover {
  background: #c82333;
}
.history-panel__tab[data-tab=image_gen] {
}
.history-panel__tab[data-tab=image_gen].active {
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  color: #ffffff;
}

/* src/ui/components/CustomDropdown.css */
.custom-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.custom-dropdown__label {
  font-size: 0.75rem;
  color: #d9d9d9;
  font-weight: 700;
  white-space: nowrap;
}
.custom-dropdown__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #13120b;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  color: #e3aa79;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 0;
}
.custom-dropdown__button:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(218, 172, 128, 0.1);
}
.custom-dropdown__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.custom-dropdown__value {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-dropdown__icon {
  width: 0.7rem;
  height: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.custom-dropdown__button[aria-expanded=true] .custom-dropdown__icon {
  transform: rotate(180deg);
}
.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: max(8rem, 100%);
  max-width: max-content;
  background: #13120b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 99999;
  backdrop-filter: blur(10px);
  padding: 0.25rem;
}
.custom-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.custom-dropdown__item:hover {
  background: rgba(218, 172, 128, 0.1);
}
.custom-dropdown__item.selected {
  background: rgba(218, 172, 128, 0.15);
}
.custom-dropdown__item-label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d9d9d9;
}
.custom-dropdown__checkmark {
  width: 1rem;
  height: 1rem;
  color: #e3aa79;
  flex-shrink: 0;
}

/* src/ui/components/SourceBanner.css */
.einsia-source-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
  box-sizing: border-box;
}
.einsia-source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}
.einsia-source-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.einsia-source-highlight {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-left: 4px;
}

/* src/ui/sections/PaperRepositorySection.css */
.paper-repository {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #13120a;
}
.paper-repository__header {
  padding: 1rem 1.25rem;
  border-bottom: none;
}
.paper-repository__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e3aa79;
  letter-spacing: 0.02em;
  font-family:
    "Tiro Kannada",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.paper-repository__filters {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: none;
}
.paper-repository__search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.paper-repository__search-input-wrapper {
  position: relative;
  flex: 1;
}
.paper-repository__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}
.paper-repository__search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  background: #1b1912;
  border: none;
  border-radius: 0.25rem;
  color: #d9d9d9;
  font-size: 0.75rem;
  outline: none;
}
.paper-repository__search-input:disabled {
  opacity: 0.5;
}
.paper-repository__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.paper-repository__search-btn {
  padding: 0.5rem 0.75rem;
  background: #e3aa79;
  border: none;
  border-radius: 0.25rem;
  color: #13120a;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.paper-repository__search-btn:disabled {
  background: rgba(227, 170, 121, 0.3);
  cursor: not-allowed;
}
.paper-repository__search-btn:not(:disabled):hover {
  background: #f0bc8f;
}
.paper-repository__filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  container-type: inline-size;
  container-name: filter-row;
}
.paper-repository__select-all-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}
.paper-repository__select-all-wrapper:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.paper-repository__select-all-text {
  color: #F2F2F0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
@container filter-row (max-width: 360px) {
  .paper-repository__select-all-text {
    display: none;
  }
  .paper-repository__filter-row {
    gap: 8px;
  }
  .paper-repository__select-all-wrapper {
    gap: 0.25rem;
  }
}
@container filter-row (max-width: 300px) {
  .paper-repository__select-all-text {
    display: none;
  }
  .paper-repository__filter-row {
    gap: 6px;
  }
  .paper-repository__select-all-wrapper {
    gap: 0.1rem;
  }
}
.paper-repository__list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem;
}
.paper-repository__list-container::-webkit-scrollbar {
  width: 6px;
}
.paper-repository__list-container::-webkit-scrollbar-track {
  background: rgba(19, 18, 10, 0.3);
}
.paper-repository__list-container::-webkit-scrollbar-thumb {
  background: rgba(227, 170, 121, 0.3);
  border-radius: 3px;
}
.paper-repository__list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 170, 121, 0.5);
}
.paper-repository__loading,
.paper-repository__error,
.paper-repository__empty {
  text-align: center;
  padding: 40px 20px;
}
.paper-repository__loading {
  color: #e3aa79;
  font-weight: 500;
}
.paper-repository__error {
  color: #ff6b6b;
}
.paper-repository__empty {
  color: rgba(255, 255, 255, 0.5);
}
.paper-repository__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.paper-repository__paper-card {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-repository__paper-card:hover {
  background: rgba(255, 255, 255, 0.02);
}
.paper-repository__paper-card--selected {
  background: transparent;
}
.paper-repository__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.paper-repository__paper-title {
  margin: 0;
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.paper-repository__source-badge {
  font-size: 0.625rem;
  color: rgba(217, 217, 217, 0.5);
  font-weight: 400;
  white-space: nowrap;
  padding-top: 2px;
}
.paper-repository__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.paper-repository__tag {
  position: relative;
  padding: 0.25rem 0.625rem;
  background: rgba(227, 170, 121, 0.15);
  border: 1px solid rgba(227, 170, 121, 0.3);
  border-radius: 0.25rem;
  color: #e3aa79;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.paper-repository__tag-delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e3aa79;
  color: #13120a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #13120a;
  z-index: 10;
}
.paper-repository__checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3aa79;
  transition: all 0.2s;
}
.paper-repository__checkbox.checked {
  border-color: #e3aa79;
}
.paper-repository__meta-row {
  margin-bottom: 0.5rem;
}
.paper-repository__author-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
}
.paper-repository__author-text {
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.paper-repository__source-text {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.paper-repository__abstract {
  margin: 0.5rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paper-repository__stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.paper-repository__citations {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c9a07a;
}
.paper-repository__date {
  color: rgba(255, 255, 255, 0.5);
}
.paper-repository__actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
}
.paper-repository__action-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.paper-repository__action-icon-btn:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.paper-repository__action-icon-btn:focus {
  outline: none;
}
.paper-repository__action-text {
  white-space: nowrap;
}
.paper-repository__list-container {
  container-type: inline-size;
  container-name: paper-list;
}
@container paper-list (max-width: 500px) {
  .paper-repository__action-text {
    display: none;
  }
  .paper-repository__action-icon-btn {
    padding: 6px;
    gap: 0;
    position: relative;
  }
  .paper-repository__action-icon-btn svg {
    width: 16px;
    height: 16px;
  }
  .paper-repository__actions-row {
    justify-content: space-around;
  }
}
.paper-repository__action-btn-loading-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@container paper-list (max-width: 500px) {
  .paper-repository__action-icon-btn {
    position: relative;
  }
  .paper-repository__tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(19, 18, 10, 0.95);
    color: #d9d9d9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-bottom: 6px;
    border: 1px solid rgba(227, 170, 121, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .paper-repository__action-icon-btn:hover .paper-repository__tooltip {
    opacity: 1;
  }
  .paper-repository__tooltip {
    display: block !important;
  }
}
@container paper-list (min-width: 501px) {
  .paper-repository__tooltip {
    display: none !important;
  }
}
.paper-repository__pagination-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}
.paper-repository__pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.paper-repository__pagination-btn {
  padding: 0.375rem 0.75rem;
  background: #e3aa79;
  border: none;
  border-radius: 0.25rem;
  color: #13120a;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-repository__pagination-btn:disabled {
  background: rgba(227, 170, 121, 0.3);
  cursor: not-allowed;
}
.paper-repository__pagination-btn:not(:disabled):hover {
  background: #f0bc8f;
}
.paper-repository__pagination-info {
  font-size: 0.75rem;
  color: #e3aa79;
  font-weight: 700;
  min-width: 100px;
  text-align: center;
}
.paper-repository__total-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.paper-repository__bottom-bar {
  border-top: none;
  padding: 6px 0;
  display: flex;
  justify-content: space-around;
  gap: 0;
  background: #c49a76;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.paper-repository__bottom-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  position: relative;
}
.paper-repository__bottom-action:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.paper-repository__bottom-action:hover {
  background: rgba(0, 0, 0, 0.05);
}
.paper-repository__bottom-action-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13120a;
}
.paper-repository__bottom-action-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #13120a;
}
.paper-repository__confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}
.paper-repository__confirm-dialog {
  background: #1a1916;
  border: 1px solid rgba(227, 170, 121, 0.3);
  border-radius: 12px;
  padding: 24px;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.paper-repository__confirm-title {
  margin: 0 0 12px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e3aa79;
}
.paper-repository__confirm-text {
  margin: 0 0 24px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.paper-repository__confirm-highlight {
  color: #e3aa79;
}
.paper-repository__confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.paper-repository__confirm-cancel {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-repository__confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.paper-repository__confirm-delete {
  padding: 8px 20px;
  background: #dc3545;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-repository__confirm-delete:hover {
  background: #c82333;
}
.paper-repository__scholar-mode {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  min-height: 300px;
}
.paper-repository__scholar-info {
  text-align: center;
  max-width: 400px;
  color: rgba(217, 217, 217, 0.8);
}
.paper-repository__scholar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e3aa79;
  margin: 1rem 0 0.5rem;
}
.paper-repository__scholar-description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.paper-repository__scholar-tip {
  font-size: 0.75rem;
  color: rgba(217, 217, 217, 0.6);
  background: rgba(227, 170, 121, 0.1);
  border: 1px solid rgba(227, 170, 121, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  margin-top: 1rem;
}
.paper-repository__bottom-action-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(227, 170, 121, 0.3);
  border-top-color: #e3aa79;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@container filter-row (max-width: 360px) {
  .paper-repository__select-all-text {
    display: none;
  }
  .custom-dropdown__label,
  .paper-repository__sort-label {
    display: none !important;
  }
  .paper-repository__filter-row {
    gap: 6px;
  }
  .paper-repository__select-all-wrapper {
    gap: 0.25rem;
  }
}

/* src/ui/modals/UpdateModal.css */
.einsia-update-modal {
  position: absolute;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro",
    sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-update-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  animation: einsia-update-backdrop-in 0.25s forwards;
}
.einsia-update-backdrop.closing {
  animation: einsia-update-backdrop-out 0.25s ease-out forwards;
}
@keyframes einsia-update-backdrop-in {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }
}
@keyframes einsia-update-backdrop-out {
  from {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }
  to {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}
.einsia-update-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-update-frame {
  position: relative;
  width: 320px;
  box-sizing: border-box;
  padding: 40px 32px 32px;
  background: #1b1912;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: einsia-update-scaleIn 0.25s ease;
}
.einsia-update-frame.closing {
  animation: einsia-update-scaleOut 0.25s ease-out forwards;
}
@keyframes einsia-update-scaleIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes einsia-update-scaleOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.einsia-update-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.einsia-update-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.einsia-update-version {
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  color: #E3AA79;
  margin: 0;
}
.einsia-update-message {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #F2F2F0;
  margin: 0;
  white-space: pre-line;
}
.einsia-update-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}
.einsia-update-btn-cancel {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #13120A;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-size: 14px;
  line-height: 100%;
  color: #E3AA79;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-update-btn-cancel:hover {
  background: #1a1910;
}
.einsia-update-btn-download {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #E3AA79;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    sans-serif;
  font-weight: 510;
  font-size: 14px;
  line-height: 100%;
  color: #1B1912;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.einsia-update-btn-download:hover {
  background: #e8b585;
}
/*! Bundled license information:

highlight.js/styles/github-dark.css:
  (*!
    Theme: GitHub Dark
    Description: Dark theme as seen on github.com
    Author: github.com
    Maintainer: @Hirse
    Updated: 2021-05-15
  
    Outdated base version: https://github.com/primer/github-syntax-dark
    Current colors taken from GitHub's CSS
  *)
*/
/*# sourceMappingURL=content-script.css.map */