/* Personal Hermes web theme — presentation only. */
:root {
  --simple-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --simple-bg: #ffffff;
  --simple-sidebar: #f7f7f7;
  --simple-surface: #f4f4f4;
  --simple-text: #202020;
  --simple-muted: #616161;
  --simple-border: #d9d9d9;
  --simple-primary: #202020;
  --simple-on-primary: #ffffff;
  --simple-hover: #eaeaea;
}
:root[data-hermes-mode="dark"], :root.dark {
  --simple-bg: #212121;
  --simple-sidebar: #171717;
  --simple-surface: #303030;
  --simple-text: #f2f2f2;
  --simple-muted: #b8b8b8;
  --simple-border: #484848;
  --simple-primary: #f5f5f5;
  --simple-on-primary: #212121;
  --simple-hover: #383838;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-hermes-mode]):has(.provider-list) {
    --simple-bg: #212121;
    --simple-surface: #303030;
    --simple-text: #f2f2f2;
    --simple-muted: #b8b8b8;
    --simple-border: #484848;
    --simple-primary: #f5f5f5;
    --simple-on-primary: #212121;
    --simple-hover: #383838;
  }
}
html:has(.provider-list) {
  --background-base: var(--simple-bg);
  --background: var(--simple-bg);
  --foreground: var(--simple-text);
  --midground: var(--simple-primary);
  --hairline: var(--simple-border);
  --hairline-strong: var(--simple-border);
  min-height: 100%;
}
html:has(.provider-list) body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--simple-bg);
  font-family: var(--simple-font);
  padding: 24px;
}
html:has(.provider-list) main { max-width: 420px; animation: none; }
html:has(.provider-list) .brand {
  color: var(--simple-muted); font: 600 15px/1.4 var(--simple-font);
  letter-spacing: 0; text-transform: none; margin-bottom: 24px;
}
html:has(.provider-list) .brand .dot { border-radius: 50%; background: var(--simple-muted); }
html:has(.provider-list) .card {
  background: var(--simple-bg); border: 1px solid var(--simple-border);
  border-radius: 22px; box-shadow: none; padding: clamp(24px, 5vw, 36px);
}
html:has(.provider-list) h1 {
  font: 650 28px/1.25 var(--simple-font); letter-spacing: -.025em;
  text-transform: none; margin-bottom: 10px;
}
html:has(.provider-list) .subtitle {
  color: var(--simple-muted); font-size: 15px; line-height: 1.55; margin-bottom: 24px;
}
html:has(.provider-list) .provider-form { gap: 16px; }
html:has(.provider-list) .form-title,
html:has(.provider-list) .field-label {
  font: 500 14px/1.4 var(--simple-font);
  color: var(--simple-text); letter-spacing: 0; text-transform: none;
}
html:has(.provider-list) .form-title { color: var(--simple-muted); }
html:has(.provider-list) .field-input {
  min-height: 48px; border-radius: 12px;
  background: var(--simple-bg); color: var(--simple-text);
  font: 16px/1.4 var(--simple-font); padding: 12px 14px;
}
html:has(.provider-list) .field-input:focus-visible {
  border-color: var(--simple-primary); box-shadow: 0 0 0 1px var(--simple-primary);
}
html:has(.provider-list) .provider-btn {
  min-height: 48px; border-radius: 24px; box-shadow: none;
  background: var(--simple-primary); color: var(--simple-on-primary);
  font: 600 16px/1.4 var(--simple-font); letter-spacing: 0; text-transform: none;
}
html:has(.provider-list) .provider-btn:active { filter: brightness(.85); }
html:has(.provider-list) footer {
  font: 13px/1.5 var(--simple-font); letter-spacing: 0; text-transform: none;
  color: var(--simple-muted); margin-top: 24px;
}
html:has(#root) {
  --theme-foreground: var(--simple-text) !important;
  --theme-primary: var(--simple-primary) !important;
  --theme-midground: var(--simple-muted) !important;
  --theme-background-seed: var(--simple-bg) !important;
  --theme-sidebar-seed: var(--simple-sidebar) !important;
  --theme-card-seed: var(--simple-surface) !important;
  --theme-elevated-seed: var(--simple-surface) !important;
  --theme-bubble-seed: var(--simple-surface) !important;
  --ui-bg-chrome: var(--simple-bg) !important;
  --ui-bg-sidebar: var(--simple-sidebar) !important;
  --ui-bg-editor: var(--simple-surface) !important;
  --ui-bg-elevated: var(--simple-surface) !important;
  --ui-bg-input: var(--simple-bg) !important;
  --ui-chat-surface-background: var(--simple-bg) !important;
  --ui-editor-surface-background: var(--simple-bg) !important;
  --ui-sidebar-surface-background: var(--simple-sidebar) !important;
  --ui-chat-bubble-background: var(--simple-surface) !important;
  --ui-row-hover-background: var(--simple-hover) !important;
  --ui-row-active-background: var(--simple-hover) !important;
  --ui-control-hover-background: var(--simple-hover) !important;
  --ui-control-active-background: var(--simple-hover) !important;
  --ui-text-primary: var(--simple-text) !important;
  --ui-text-secondary: var(--simple-muted) !important;
  --ui-text-tertiary: var(--simple-muted) !important;
  --dt-background: var(--simple-bg) !important;
  --dt-foreground: var(--simple-text) !important;
  --dt-card: var(--simple-surface) !important;
  --dt-card-foreground: var(--simple-text) !important;
  --dt-muted: var(--simple-surface) !important;
  --dt-muted-foreground: var(--simple-muted) !important;
  --dt-popover: var(--simple-bg) !important;
  --dt-popover-foreground: var(--simple-text) !important;
  --dt-primary: var(--simple-primary) !important;
  --dt-primary-foreground: var(--simple-on-primary) !important;
  --dt-primary-solid: var(--simple-primary) !important;
  --dt-primary-solid-foreground: var(--simple-on-primary) !important;
  --dt-secondary: var(--simple-surface) !important;
  --dt-secondary-foreground: var(--simple-text) !important;
  --dt-accent: var(--simple-hover) !important;
  --dt-accent-foreground: var(--simple-text) !important;
  --dt-midground: var(--simple-muted) !important;
  --dt-border: var(--simple-border) !important;
  --dt-input: var(--simple-border) !important;
  --dt-ring: var(--simple-muted) !important;
  --dt-sidebar-bg: var(--simple-sidebar) !important;
  --dt-sidebar-border: var(--simple-border) !important;
  --dt-user-bubble: var(--simple-surface) !important;
  --dt-user-bubble-border: transparent !important;
  --dt-composer-ring: var(--simple-border) !important;
  --dt-input-inset: none !important;
  --dt-font-sans: var(--simple-font) !important;
  --dt-base-size: 1rem !important;
  --dt-line-height: 1.6 !important;
  --radius-scalar: 1 !important;
  --noise-opacity-mul: 0 !important;
  background-color: var(--simple-bg) !important;
}
html:has(#root) body { font-family: var(--simple-font); background: var(--simple-bg); }
html:has(#root) [data-slot="composer-surface"] {
  border-radius: 22px !important; background: var(--simple-surface) !important;
  border: 1px solid var(--simple-border); box-shadow: none !important;
  --composer-fill: var(--simple-surface) !important;
}
html:has(#root) .composer-human-message {
  border-radius: 18px !important; box-shadow: none !important;
  background: var(--simple-surface) !important; backdrop-filter: none !important;
}
html:has(#root) [data-slot="aui_assistant-message-content"],
html:has(#root) [data-slot="aui_user-message-text"],
html:has(#root) [data-slot="composer-rich-input"] {
  font-family: var(--simple-font);
  font-size: 16px; line-height: 1.65;
}

/* Minimal chat layout; no application logic is changed. */
html:has(#root) {
  --composer-width: 48rem !important;
  --conversation-turn-gap: 1.5rem !important;
  --composer-shell-pad-block-end: 1.25rem !important;
}
html:has(#root) [data-slot="aui_thread-content"] {
  max-width: 48rem !important;
  padding-inline: clamp(16px, 3vw, 24px);
}
html:has(#root) [data-slot="composer-dock"]:not([data-popped-out]) {
  width: min(48rem, calc(100% - 24px)) !important;
}
html:has(#root) [data-slot="aui_intro"] .wordmark,
html:has(#root) [data-slot="aui_intro"] p:not(.wordmark) {
  display: none !important;
}
html:has(#root) [data-slot="aui_intro"] > div::before {
  content: "How can I help?";
  display: block;
  color: var(--simple-text);
  font: 600 clamp(25px, 4vw, 34px)/1.35 var(--simple-font);
  letter-spacing: -.025em;
}
html:has(#root) [data-slot="bot_chat_empty"] .wordmark {
  display: block !important;
  width: 100% !important;
  container-type: normal !important;
  font: 600 28px/1.35 var(--simple-font) !important;
  letter-spacing: -.02em !important;
  color: var(--simple-text) !important;
  mix-blend-mode: normal !important;
}
html:has(#root) [data-slot="bot_chat_empty"] .wordmark > span:not([aria-hidden]),
html:has(#root) [data-slot="bot_chat_empty"] .wordmark > span:not([aria-hidden]) > span {
  display: inline !important;
  position: static !important;
  font: inherit !important;
  white-space: normal !important;
}
html:has(#root) [data-slot="bot_chat_empty"] .wordmark > [aria-hidden] {
  display: none !important;
}
html:has(#root) [data-slot="aui_user-message-root"] .composer-human-message {
  width: fit-content !important;
  max-width: min(85%, 40rem) !important;
  margin-left: auto;
  padding: 12px 16px;
}
html:has(#root) [data-slot="composer-surface"] {
  border-radius: 24px !important;
  min-height: 60px;
}
html:has(#root) [data-slot="composer-rich-input"] {
  min-height: 28px;
}
html:has(#root) [data-slot="aui_assistant-message-content"] {
  line-height: 1.7;
}
@media (max-width: 600px) {
  html:has(#root) [data-slot="aui_thread-content"] { padding-inline: 12px; }
  html:has(#root) [data-slot="composer-dock"]:not([data-popped-out]) {
    width: calc(100% - 12px) !important;
  }
  html:has(#root) [data-slot="aui_user-message-root"] .composer-human-message {
    max-width: 90% !important;
  }
}
/* Readable workspace and two-row composer. */
html:has(#root) {
  --dt-base-size: 18px !important;
  --composer-width: 46rem !important;
  --composer-control-size: 2.25rem !important;
  --composer-control-primary-size: 2.35rem !important;
  --composer-control-gap: .4rem !important;
  --composer-row-gap: .6rem !important;
  --composer-surface-pad-x: .75rem !important;
  --composer-surface-pad-y: .65rem !important;
  --composer-input-min-height: 2.4rem !important;
}
html:has(#root) body { font-size: 16px !important; line-height: 1.55; }
html:has(#root) [data-slot="aui_thread-content"] { max-width: 46rem !important; }
html:has(#root) [data-slot="composer-dock"]:not([data-popped-out]) { width: min(46rem, calc(100% - 24px)) !important; }
html:has(#root) [data-slot="composer-surface"] {
  background: var(--simple-surface) !important;
  border: 1px solid var(--simple-border);
  border-radius: 28px !important;
}
html:has(#root) [data-slot="composer-fade"] > .grid:has(> [class*="grid-area:input"]):has(> [class*="grid-area:controls"]) {
  grid-template-columns: auto minmax(0,1fr) !important;
  grid-template-areas: "input input" "menu controls" !important;
  gap: 10px 8px !important;
  align-items: center;
}
html:has(#root) [data-slot="composer-fade"] [class*="grid-area:menu"] {
  transform: none !important; align-self: center;
}
html:has(#root) [data-slot="composer-rich-input"] {
  color: var(--simple-text) !important;
  font-size: 18px !important; line-height: 1.55 !important;
  min-height: 44px !important; padding: 4px 6px 8px !important;
}
html:has(#root) [data-slot="composer-rich-input"]::before,
html:has(#root) [data-slot="composer-rich-input"]::after {
  color: var(--simple-muted) !important; opacity: 1 !important;
}
html:has(#root) [data-slot="composer-fade"] [class*="grid-area:controls"] button,
html:has(#root) [data-slot="composer-fade"] [class*="grid-area:menu"] button {
  font-size: 15px !important; font-weight: 500; min-height: 38px;
}
html:has(#root) [data-slot="composer-fade"] [class*="grid-area:controls"] > div {
  flex-wrap: wrap; justify-content: flex-end;
}
html:has(#root) [data-slot="composer-fade"] button svg { min-width: 17px; min-height: 17px; }
html:has(#root) [data-slot="composer-fade"] button .codicon { font-size: 19px !important; }
html:has(#root) [data-slot="composer-status-stack"] [data-slot="status-row"] {
  flex-wrap: wrap; gap: 8px; padding: 8px 10px; align-items: flex-start;
}
html:has(#root) [data-slot="composer-status-stack"] .status-row-content > .truncate {
  white-space: normal !important; overflow: visible !important;
  font-size: 14px !important; line-height: 1.5 !important;
}
html:has(#root) [data-slot="composer-status-stack"] .status-row-actions {
  flex-wrap: wrap; gap: 4px; max-width: 100%;
}
html:has(#root) [data-slot="composer-status-stack"] .status-row-actions button {
  font-size: 14px !important; min-height: 32px; padding-inline: 8px;
}
html:has(#root) [data-slot="aui_assistant-message-content"],
html:has(#root) [data-slot="aui_user-message-text"] {
  font-size: 18px !important; line-height: 1.7 !important;
}
html:has(#root) [data-slot="aui_intro"] > div::before { font-size: clamp(27px, 3vw, 36px); }
@media (max-width: 600px) {
  html:has(#root) { --dt-base-size: 16px !important; }
  html:has(#root) [data-slot="composer-dock"]:not([data-popped-out]) { width: calc(100% - 12px) !important; }
  html:has(#root) [data-slot="composer-fade"] [class*="grid-area:controls"] button { font-size: 14px !important; }
  html:has(#root) [data-slot="aui_assistant-message-content"], html:has(#root) [data-slot="aui_user-message-text"] { font-size: 17px !important; }
}
@media (max-width: 380px) {
  html:has(#root) [data-slot="composer-fade"] > .grid:has(> [class*="grid-area:input"]):has(> [class*="grid-area:controls"]) {
    grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "input" "menu" "controls" !important;
  }
}
