css
/* Hyo Plugin — Obsidian theme-aware styles */

/* Hide Obsidian's native view header — the plugin has its own tab bar */
.workspace-leaf-content[data-type="hyo-plugin-view"] .view-header {
  display: none !important;
}

.hyo-plugin {
  height: 100%;
  overflow: hidden;
}

/* Reset all buttons inside plugin — Obsidian themes apply their own
   button styles (border, background, box-shadow) that leak into our UI.
   Note: padding intentionally NOT reset here — each button sets its own. */
.hyo-plugin button {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}

.hyo-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background-primary-alt);
  color: var(--text-normal);
  padding-bottom: var(--status-bar-height, 24px);
}

/* Loading & onboarding */
.hyo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
}

.hyo-onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 24px;
  padding-top: 32px;
  overflow-y: auto;
  color: var(--text-muted);
  text-align: center;
}

.hyo-onboarding h3 {
  color: var(--text-normal);
  margin: 0 0 12px;
}

.hyo-onboarding p {
  margin: 0 0 16px;
  line-height: 1.5;
}

.hyo-onboarding-steps {
  text-align: left;
  width: 100%;
  max-width: 320px;
}

.hyo-onboarding-step {
  margin-bottom: 16px;
}

.hyo-onboarding-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-normal);
}

.hyo-onboarding-step code {
  display: block;
  padding: 8px 12px;
  background: var(--background-secondary);
  border-radius: var(--radius-s);
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-normal);
  word-break: break-all;
}

.hyo-onboarding-note {
  font-size: 12px;
  color: var(--text-faint);
}

.hyo-onboarding-intro {
  max-width: 400px;
  margin-bottom: 24px;
}

.hyo-step-instruction {
  margin: 8px 0;
  color: var(--text-normal);
}

.hyo-step-note {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.hyo-install-command {
  display: block;
  padding: 12px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-family: var(--font-monospace);
  font-size: 13px;
  color: var(--text-normal);
  cursor: pointer;
  transition: all 0.2s ease;
  word-break: break-all;
  user-select: all;
}

.hyo-install-command:hover {
  background: var(--background-secondary-alt);
  border-color: var(--text-accent);
}

.hyo-install-command.copied {
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border-color: var(--interactive-accent);
}

.hyo-install-command.copied::after {
  content: " ✓ Copied!";
  font-family: var(--font-ui);
  font-size: 12px;
  margin-left: 8px;
}

.hyo-onboarding-option-quick {
  text-align: left;
  width: 100%;
  max-width: 500px;
  padding: 16px;
  background: var(--background-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
}

.hyo-onboarding-option-quick strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-normal);
}

.hyo-copy-prompt-button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin: 8px 0;
}

.hyo-copy-prompt-button:hover {
  opacity: 0.9;
}

.hyo-onboarding-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.hyo-onboarding-divider::before,
.hyo-onboarding-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--background-modifier-border);
}

.hyo-onboarding-divider span {
  padding: 0 12px;
}

.hyo-onboarding-troubleshooting {
  margin-top: 24px;
  text-align: left;
  max-width: 500px;
}

.hyo-onboarding-troubleshooting summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 0;
}

.hyo-onboarding-troubleshooting summary:hover {
  color: var(--text-normal);
}

.hyo-troubleshooting-content {
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

.hyo-troubleshooting-content p {
  margin: 8px 0;
}

.hyo-troubleshooting-content strong {
  color: var(--text-normal);
}

.hyo-troubleshooting-content a {
  color: var(--text-accent);
  text-decoration: none;
}

.hyo-troubleshooting-content a:hover {
  text-decoration: underline;
}

/* Chat panel */
.hyo-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Messages area */
.hyo-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.hyo-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-faint);
}

/* Message bubbles */
.hyo-message {
  margin-bottom: 16px;
}

.hyo-message-user .hyo-message-content {
  background: var(--background-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-m);
  font-size: 14px;
  line-height: 1.5;
  user-select: text;
}

.hyo-message-assistant .hyo-message-content {
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  user-select: text;
}

/* Markdown body */
.hyo-markdown-body {
  word-wrap: break-word;
}

.hyo-markdown-body p {
  margin: 0 0 8px;
}

.hyo-markdown-body p:last-child {
  margin-bottom: 0;
}

.hyo-markdown-body pre {
  background: var(--background-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-s);
  overflow-x: auto;
  font-size: 12px;
  margin: 8px 0;
}

.hyo-markdown-body code {
  font-family: var(--font-monospace);
  font-size: 12px;
}

.hyo-markdown-body :not(pre) > code {
  background: var(--background-secondary);
  padding: 2px 5px;
  border-radius: 3px;
}

.hyo-markdown-body ul,
.hyo-markdown-body ol {
  padding-left: 20px;
  margin: 4px 0 8px;
}

.hyo-markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}

.hyo-markdown-body th,
.hyo-markdown-body td {
  border: 1px solid var(--background-modifier-border);
  padding: 6px 10px;
  text-align: left;
}

.hyo-markdown-body th {
  background: var(--background-secondary);
  font-weight: 600;
}

.hyo-markdown-body blockquote {
  border-left: 3px solid var(--interactive-accent);
  margin: 8px 0;
  padding: 4px 12px;
  color: var(--text-muted);
}

/* Thinking blocks */
.hyo-thinking-block {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-faint);
}

.hyo-thinking-block summary {
  cursor: pointer;
  user-select: none;
  font-style: italic;
}

.hyo-thinking-content {
  padding: 8px 0 4px 12px;
  white-space: pre-wrap;
  font-family: var(--font-monospace);
  font-size: 11px;
  line-height: 1.4;
  max-height: 200px;
  overflow-y: auto;
}

/* Tool calls */
.hyo-tool-call {
  margin: 8px 0;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-size: 12px;
  overflow: hidden;
}

.hyo-tool-call-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: var(--background-secondary);
}

.hyo-tool-call-header:hover {
  background: var(--background-modifier-hover);
}

.hyo-tool-call-arrow {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.hyo-tool-call-name {
  font-weight: 600;
  color: var(--text-normal);
  flex-shrink: 0;
}

.hyo-tool-call-summary {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyo-tool-call-body {
  padding: 8px 10px;
  margin: 0;
  font-size: 11px;
  font-family: var(--font-monospace);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  background: var(--background-primary);
  border-top: 1px solid var(--background-modifier-border);
}

/* Permission request */
.hyo-permission {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  background: var(--background-secondary);
}

.hyo-permission-tool {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.hyo-permission-summary {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-monospace);
  margin-bottom: 8px;
  word-break: break-all;
}

.hyo-permission-buttons {
  display: flex;
  gap: 8px;
}

.hyo-permission-buttons button {
  padding: 4px 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--background-modifier-border);
  background: var(--background-primary);
  color: var(--text-normal);
  cursor: pointer;
  font-size: 12px;
}

.hyo-permission-buttons button:hover {
  background: var(--background-modifier-hover);
}

.hyo-permission-deny {
  color: var(--text-error) !important;
}

.hyo-permission-allow {
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  border-color: var(--interactive-accent) !important;
}

.hyo-permission-allow:hover {
  background: var(--interactive-accent-hover) !important;
}

.hyo-permission-allow-always {
  color: var(--text-muted) !important;
  font-size: 11px !important;
}

/* Ask question */
/* ── AskQuestion ── */

.hyo-ask {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hyo-ask-item {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--background-secondary);
  border-left: 3px solid var(--interactive-accent);
}

.hyo-ask-item.is-answered {
  border-left-color: var(--text-faint);
  opacity: 0.7;
}

.hyo-ask-item.is-pending {
  border-left-color: var(--background-modifier-border);
  opacity: 0.4;
}

.hyo-ask-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 20px;
}

.hyo-ask-chip {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--interactive-accent);
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}

.hyo-ask-answered-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.hyo-ask-answered-badge svg {
  color: var(--text-success, var(--interactive-accent));
  flex-shrink: 0;
}

.hyo-ask .hyo-ask-question-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-normal);
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.hyo-ask-item.is-answered .hyo-ask-question-text {
  margin-bottom: 0;
}

/* Controls container */
.hyo-ask-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Option buttons */
.hyo-ask-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

button.hyo-ask-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 14px;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-normal);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  width: 100%;
  min-width: 0;
  transition: all 0.1s ease;
  height: auto;
  white-space: normal;
}

button.hyo-ask-opt:hover {
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.06);
  border-left-color: var(--interactive-accent);
}

button.hyo-ask-opt:active {
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.1);
}

.hyo-ask-opt-label {
  font-weight: 500;
  line-height: 1.35;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hyo-ask-opt-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Divider */
.hyo-ask-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
}

.hyo-ask-divider::before,
.hyo-ask-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--background-modifier-border);
}

/* Text input */
.hyo-ask-input {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hyo-ask-input input {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  color: var(--text-normal);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.hyo-ask-input input:focus {
  outline: none;
  border-color: var(--interactive-accent);
  box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.15);
}

button.hyo-ask-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button.hyo-ask-send:hover:not(:disabled) {
  background: var(--interactive-accent-hover);
}

button.hyo-ask-send:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Plan review */
.hyo-plan-review {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--interactive-accent);
  border-radius: var(--radius-m);
  background: var(--background-secondary);
}

.hyo-plan-review-resolved {
  border-color: var(--background-modifier-border);
  padding: 8px 14px;
}

.hyo-plan-review-status {
  font-size: 12px;
  color: var(--text-muted);
}

.hyo-plan-review-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-normal);
}

.hyo-plan-review-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  font-size: 13px;
}

.hyo-plan-review-fallback {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.hyo-plan-review-permissions {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.hyo-plan-review-permissions-label {
  font-weight: 500;
  margin-bottom: 4px;
}

.hyo-plan-review-permissions ul {
  margin: 0;
  padding-left: 18px;
}

.hyo-plan-review-permissions li {
  margin: 2px 0;
}

.hyo-plan-review-buttons {
  display: flex;
  gap: 8px;
}

.hyo-plan-review-buttons button {
  padding: 6px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--background-modifier-border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.hyo-plan-review-reject {
  background: var(--background-primary);
  color: var(--text-muted);
}

.hyo-plan-review-reject:hover {
  background: var(--background-modifier-hover);
}

.hyo-plan-review-approve {
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  border-color: var(--interactive-accent) !important;
}

.hyo-plan-review-approve:hover {
  background: var(--interactive-accent-hover) !important;
}

/* Streaming state */
.hyo-streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--interactive-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: hyo-blink 1s step-end infinite;
}

@keyframes hyo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Activity indicator */
.hyo-activity-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
}

.hyo-thinking-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: hyo-dot-pulse 1.4s ease-in-out infinite;
}

.hyo-thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.hyo-thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes hyo-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

/* Compaction banner */
.hyo-compaction-banner {
  text-align: center;
  padding: 8px;
  margin: 12px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
  border-top: 1px dashed var(--background-modifier-border);
  border-bottom: 1px dashed var(--background-modifier-border);
}

/* Input area */
.hyo-input-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--background-modifier-border);
  flex-shrink: 0;
}

.hyo-input-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

/* File attachment chips */
.hyo-attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hyo-attachment-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: var(--text-muted);
  align-self: flex-start;
}

.hyo-attachment-name {
  color: var(--text-normal);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyo-attachment-tokens {
  color: var(--text-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.hyo-attachment-chip-ref {
  border-style: dashed;
}

.hyo-attachment-chip-ref .hyo-attachment-tokens {
  color: var(--text-accent);
}

.hyo-attachment-remove {
  font-size: 14px;
  line-height: 1;
  color: var(--text-faint);
  padding: 0 2px !important;
  cursor: pointer;
}

.hyo-attachment-remove:hover {
  color: var(--text-muted);
}

/* Attach (paperclip) button + popup */
.hyo-attach-wrap {
  position: relative;
  flex-shrink: 0;
}

.hyo-attach-btn {
  color: var(--text-faint);
  padding: 8px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  transition: color 0.1s;
}

.hyo-attach-btn:hover {
  color: var(--text-muted);
  background: var(--background-modifier-hover);
}

.hyo-attach-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
  min-width: 180px;
  z-index: 100;
}

.hyo-attach-popup-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100%;
  padding: 7px 10px !important;
  border-radius: var(--radius-s);
  font-size: 13px;
  color: var(--text-normal);
  text-align: left;
  transition: background 0.1s;
}

.hyo-attach-popup-item svg {
  flex-shrink: 0;
  align-self: center;
  display: inline-block;
}

.hyo-attach-popup-item:hover {
  background: var(--background-modifier-hover);
}

.hyo-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  background: var(--background-primary);
  color: var(--text-normal);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  min-height: 36px;
  max-height: 150px;
}

.hyo-input:focus {
  outline: none;
  border-color: var(--interactive-accent);
}

.hyo-input::placeholder {
  color: var(--text-faint);
}

.hyo-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.hyo-send-btn:hover {
  background: var(--interactive-accent-hover) !important;
}

.hyo-send-btn:active {
  transform: scale(0.93);
}

/* Stop button — red */
.hyo-send-btn.hyo-stop {
  background: var(--text-error) !important;
}

.hyo-send-btn.hyo-stop:hover {
  background: #b55555 !important;
}

/* Tab bar — acts as header, combines tabs + actions */
.hyo-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--background-modifier-border);
  padding: 6px 8px 0 8px;
  gap: 8px;
}

/* Left side — scrollable tabs */
.hyo-tabs-left {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2px;
}

.hyo-tabs-left::-webkit-scrollbar {
  height: 0;
}

/* Right side — action buttons */
.hyo-tabs-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

/* Action button styling */
.hyo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-action-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

/* Individual tab */
.hyo-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 200px;
  padding: 6px 8px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  user-select: none;
  transition: color 0.1s;
}

/* Drag to reorder — the tab being carried fades, and a caret marks the slot
   it will drop into. */
.hyo-tab-dragging {
  opacity: 0.4;
}

.hyo-tab-drop-before::before,
.hyo-tab-drop-after::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: var(--interactive-accent);
  pointer-events: none;
}

.hyo-tab-drop-before::before {
  left: -2px;
}

.hyo-tab-drop-after::after {
  right: -2px;
}

.hyo-tab:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-tab-active {
  color: var(--text-normal);
  background: var(--background-primary);
}

.hyo-tab-active:hover {
  background: var(--background-primary);
}

/* Tab title */
.hyo-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Close button — always reserves space, visible on hover/active */
.hyo-tab-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted) !important;
  opacity: 0;
  transition: opacity 0.1s;
}

.hyo-tab-close:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-tab:hover .hyo-tab-close,
.hyo-tab-active .hyo-tab-close {
  opacity: 1;
}

/* Working — Claude is running. Green "go" dot with a calm scale pulse: alive,
   but ambient (this is the constant background state, so it stays gentle). */
.hyo-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-green, #4bb377);
  flex-shrink: 0;
  animation: hyo-dot-working-pulse 1.5s ease-in-out infinite;
}

@keyframes hyo-dot-working-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* Waiting on you — Claude is blocked awaiting a permission, answer, or plan
   approval. Warm peach "your turn" colour + an assertive scale-and-glow pulse
   that pulls the eye from another tab, unlike the calm green working dot. */
.hyo-tab-dot-waiting {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a875;
  animation: hyo-dot-waiting-pulse 1.1s ease-in-out infinite;
}

@keyframes hyo-dot-waiting-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(240, 168, 117, 0.4);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(240, 168, 117, 0);
    opacity: 1;
  }
}

.hyo-tab-rename-input {
  width: 100px;
  padding: 2px 6px;
  font-size: 12px;
  border: 1px solid var(--interactive-accent);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  color: var(--text-normal);
  outline: none;
}

/* Session dropdown */
.hyo-session-dropdown {
  position: relative;
}

.hyo-session-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-session-dropdown-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-session-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 9999;
  width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border-hover);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}

.hyo-session-dropdown-header {
  padding: 4px 14px 6px;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hyo-session-dropdown-empty {
  padding: 20px 8px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

.hyo-session-dropdown-list {
  display: flex;
  flex-direction: column;
}

.hyo-session-dropdown-date {
  padding: 8px 14px 4px;
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hyo-session-dropdown-date:first-child {
  padding-top: 0;
}

.hyo-session-dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 14px !important;
  color: var(--text-normal) !important;
  font-size: 13px;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--radius-s);
}

.hyo-session-dropdown-item:hover {
  background: var(--background-modifier-hover);
}

/* Status bar */
.hyo-status-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--background-secondary);
  border-top: 1px solid var(--background-modifier-border);
  flex-shrink: 0;
  font-size: 12px;
}

/* Usage bars — single clickable group */
.hyo-usage-bars-group {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}

.hyo-usage-bars-group:hover {
  background: var(--background-modifier-hover);
}

.hyo-usage-bars-group.stale .hyo-usage-bar-fill,
.hyo-usage-bars-group.stale .hyo-usage-bar-label,
.hyo-usage-bars-group.stale .hyo-usage-bar-track {
  opacity: 0.45;
}

.hyo-usage-bar-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 18px;
}

.hyo-usage-bar-track-wrap {
  position: relative;
  width: 60px;
  padding: 4px 0;
}

.hyo-usage-bar-track {
  display: block;
  height: 4px;
  background: var(--background-modifier-border);
  border-radius: 2px;
  overflow: hidden;
}

.hyo-usage-bar-fill {
  display: block;
  height: 100%;
  background: var(--interactive-accent);
  transition: width 0.3s, background 0.3s;
}

.hyo-usage-bar-fill.warning {
  background: #f39c12;
}

.hyo-usage-bar-fill.danger {
  background: #e74c3c;
}

/* Context ring button */
.hyo-context-ring-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.1s;
}

.hyo-context-ring-btn:hover {
  opacity: 1;
}

/* Context popup */
.hyo-context-popup {
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 8px;
  padding: 12px;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1000;
}

.hyo-compact-now-btn {
  width: 100%;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 5px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.1s;
}

.hyo-compact-now-btn:hover {
  opacity: 0.85;
}

.hyo-usage-bar-pace {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text-faint);
  opacity: 0.5;
  pointer-events: none;
}

/* Model selector */
.hyo-model-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-model-selector:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-model-selector-name {
  font-weight: 500;
}

/* Effort level, shown alongside the model in the same pill */
.hyo-model-selector-effort {
  color: var(--text-faint);
}

/* Permission mode selector */
.hyo-permission-mode-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-permission-mode-selector:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-permission-mode-name {
  font-weight: 500;
}

/* Agent selector */
.hyo-agent-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-agent-selector:hover:not(.locked) {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-agent-selector.locked {
  cursor: default;
  opacity: 0.85;
}

.hyo-agent-name {
  font-weight: 500;
  color: var(--agent-color, var(--text-muted));
  text-transform: capitalize;
}

.hyo-agent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent-color, var(--text-muted));
  flex-shrink: 0;
}

/* Agent popup */
.hyo-agent-popup {
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  padding: 4px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
}

.hyo-agent-popup-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.hyo-agent-popup-item:hover {
  background: var(--background-modifier-hover);
}

.hyo-agent-popup-item.active {
  background: var(--background-modifier-active-hover);
}

.hyo-agent-popup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.hyo-agent-popup-text {
  flex: 1;
  min-width: 0;
}

.hyo-agent-popup-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
  text-transform: capitalize;
}

.hyo-agent-popup-default {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
}

.hyo-agent-popup-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.hyo-agent-popup-check {
  color: var(--text-accent);
  font-size: 12px;
}

/* Usage popup */
.hyo-usage-popup {
  z-index: 9999;
  min-width: 240px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 8px;
}

.hyo-usage-popup-title {
  padding: 4px 8px;
  font-weight: 600;
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hyo-usage-divider {
  height: 1px;
  background: var(--background-modifier-border);
  margin: 6px 0;
}

.hyo-usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 13px;
}

.hyo-usage-row.small {
  font-size: 11px;
  color: var(--text-muted);
}

.hyo-usage-label {
  color: var(--text-muted);
}

.hyo-usage-value {
  color: var(--text-normal);
  font-weight: 500;
}

.hyo-usage-bar-inline-wrap {
  position: relative;
  padding: 4px 8px;
}

.hyo-usage-bar-inline {
  height: 6px;
  background: var(--background-modifier-border);
  border-radius: 3px;
  overflow: hidden;
}

.hyo-usage-bar-inline-fill {
  height: 100%;
  background: var(--interactive-accent);
  transition: width 0.3s, background 0.3s;
}

.hyo-usage-bar-inline-fill.warning {
  background: #f39c12;
}

.hyo-usage-bar-inline-fill.danger {
  background: #e74c3c;
}

.hyo-usage-refresh-btn {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}

.hyo-usage-refresh-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-usage-stale-notice {
  padding: 6px 8px;
  font-size: 11px;
  color: #f39c12;
  line-height: 1.4;
}

/* Model popup */
.hyo-model-popup {
  z-index: 9999;
  min-width: 180px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}

.hyo-model-popup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-normal);
  cursor: pointer;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}

.hyo-model-popup-name {
  flex: 1;
}

.hyo-model-popup-context {
  font-size: 11px;
  color: var(--text-faint);
}

.hyo-model-popup-divider {
  height: 1px;
  background: var(--background-modifier-border);
  margin: 4px 0;
}

/* Effort submenu — opens from the "Effort" row in the model popup */
.hyo-effort-popup {
  min-width: 260px;
}

.hyo-effort-popup-header {
  padding: 6px 8px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hyo-effort-row-value {
  font-size: 11px;
  color: var(--text-faint);
}

.hyo-effort-row-chevron {
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1;
}

.hyo-effort-desc {
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
  max-width: 150px;
}

.hyo-effort-default-badge {
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--background-modifier-border);
  border-radius: var(--radius-s);
}

.hyo-model-custom-row {
  display: flex;
  gap: 6px;
  padding: 4px 8px 4px;
  align-items: center;
}

.hyo-model-custom-input {
  flex: 1;
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  background: var(--background-primary);
  color: var(--text-normal);
  outline: none;
}

.hyo-model-custom-input:focus {
  border-color: var(--interactive-accent);
}

.hyo-model-custom-btn {
  font-size: 12px;
  padding: 3px 8px;
  border: none;
  border-radius: 4px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  cursor: pointer;
  opacity: 1;
}

.hyo-model-custom-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.hyo-model-popup-item:hover {
  background: var(--background-modifier-hover);
}

.hyo-model-popup-item.active {
  background: var(--background-modifier-hover);
}

.hyo-model-check {
  width: 14px;
  font-size: 12px;
  color: var(--interactive-accent);
}

/* Permission popup */
.hyo-perm-popup {
  z-index: 9999;
  min-width: 220px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}

.hyo-perm-popup-item {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}

.hyo-perm-popup-item:hover {
  background: var(--background-modifier-hover);
}

.hyo-perm-popup-item.active {
  background: var(--background-modifier-hover);
}

.hyo-perm-popup-item-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
  margin-bottom: 2px;
}

.hyo-perm-popup-check {
  font-size: 12px;
  color: var(--interactive-accent);
}

.hyo-perm-popup-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Drag and drop overlay */
.hyo-chat-panel.hyo-drag-over::after {
  content: "Drop file to attach";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
  border: 2px dashed var(--interactive-accent);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--interactive-accent);
  pointer-events: none;
  z-index: 50;
}

.hyo-chat-panel {
  position: relative;
}

/* Slash command menu */
.hyo-slash-menu {
  position: relative;
  max-height: 240px;
  overflow-y: auto;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
  margin-bottom: 2px;
}

.hyo-slash-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 0.1s;
}

.hyo-slash-item:hover,
.hyo-slash-item-selected {
  background: var(--background-modifier-hover);
}

.hyo-slash-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
}

.hyo-slash-desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* File chips in message history */
.hyo-message-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.hyo-message-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
}

/* Compaction divider line */
.hyo-compaction-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  opacity: 0.5;
}

.hyo-compaction-rule {
  flex: 1;
  height: 1px;
  background: var(--background-modifier-border);
}

.hyo-compaction-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Message copy button */
.hyo-message-actions {
  display: flex;
  gap: 4px;
  padding: 2px 0 0 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.hyo-message-assistant:hover .hyo-message-actions {
  opacity: 1;
}

.hyo-copy-btn {
  color: var(--text-faint);
  padding: 4px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  line-height: 1;
}

.hyo-copy-btn:hover {
  color: var(--text-muted);
  background: var(--background-modifier-hover);
}

/* Session recovery banner — shown below an assistant message that's a
   thinking-block API error. Lets the user heal the session in one click. */
.hyo-recover-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--background-modifier-error-hover, rgba(255, 100, 80, 0.08));
  border: 1px solid var(--background-modifier-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hyo-recover-banner-text {
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.4;
}

.hyo-recover-button {
  align-self: flex-start;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
}

.hyo-recover-button:hover {
  background: var(--interactive-accent-hover);
}

/* ======================= Voice Mode ======================= */

/* Status bar voice toggle */
.hyo-voice-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  font-size: 12px;
  transition: all 0.1s;
  cursor: pointer;
}

.hyo-voice-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

.hyo-voice-toggle.active {
  color: var(--interactive-accent);
  background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
}

.hyo-voice-toggle.disabled {
  opacity: 0.35;
  cursor: default;
}

.hyo-voice-toggle.disabled:hover {
  background: transparent;
  color: var(--text-muted);
}

/* Voice controls — replaces the text input when voice mode is active */
.hyo-voice-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

/* Mic / record button — big, coloured, obvious CTA */
.hyo-voice-record-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--interactive-accent);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--interactive-accent) 30%, transparent);
}

.hyo-voice-record-btn:hover {
  filter: brightness(1.1);
  background-color: var(--interactive-accent);
}

.hyo-voice-record-btn.recording {
  background: var(--text-error);
  color: white;
  animation: hyo-voice-pulse 1.5s ease-in-out infinite;
}

.hyo-voice-record-btn.disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
}

@keyframes hyo-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--text-error) 40%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--text-error) 0%, transparent); }
}

/* Status label */
.hyo-voice-status-label {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

/* Playback controls */
.hyo-voice-playback {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hyo-voice-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-s);
  color: var(--text-muted);
  background: var(--background-modifier-border);
  cursor: pointer;
  transition: all 0.1s;
}

.hyo-voice-ctrl-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-border-hover);
}

.hyo-voice-ctrl-btn svg {
  width: 16px;
  height: 16px;
}

.hyo-voice-speed-btn {
  min-width: 40px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-monospace);
}

/* ── Release card ─────────────────────────────────────────────────────────
   Pinned above the message list after an update. Deliberately not styled as
   an assistant message — this is the plugin talking, not the agent. */
.hyo-release-card {
  flex: 0 0 auto;
  margin: 12px 12px 0 12px;
  padding: 12px 14px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-left: 3px solid var(--interactive-accent);
  border-radius: var(--radius-s);
}

.hyo-release-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hyo-release-card-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--interactive-accent);
}

.hyo-release-card-version {
  font-size: 11px;
  color: var(--text-faint);
}

.hyo-release-card-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 2px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--text-faint);
}

.hyo-release-card-dismiss:hover {
  color: var(--text-normal);
}

.hyo-release-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-normal);
  margin-bottom: 4px;
}

.hyo-release-card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-normal);
}

/* The bullets carry their own spacing; trim the markdown renderer's outer
   margins so the card doesn't gain a dead band at top and bottom. */
.hyo-release-card-body > div > *:first-child { margin-top: 0; }
.hyo-release-card-body > div > *:last-child { margin-bottom: 0; }
.hyo-release-card-body ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}
.hyo-release-card-body li { margin-bottom: 4px; }

.hyo-release-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hyo-release-card-btn {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--background-modifier-border);
  box-shadow: none;
  cursor: pointer;
}

.hyo-release-card-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}

/* ── Release notes panel ──────────────────────────────────────────────────
   Every version, rendered in app. Overlays the chat surface rather than
   opening a modal, so it matches the rest of Hyo's panels. */
.hyo-release-notes {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--background-primary);
}

.hyo-release-notes-head {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--background-modifier-border);
  background: var(--background-secondary);
}

.hyo-release-notes-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-normal);
}

.hyo-release-notes-close {
  margin-left: auto;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 2px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--text-muted);
}

.hyo-release-notes-close:hover { color: var(--text-normal); }

.hyo-release-notes-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 24px 16px;
  font-size: 13px;
  line-height: 1.6;
  user-select: text;
}

.hyo-session-dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--background-modifier-border);
}

.hyo-session-dropdown-whatsnew { color: var(--text-muted); }

/* Multiple releases in one card — each needs its own header so the bullets
   don't run together into one undifferentiated list. */
.hyo-release-card-section + .hyo-release-card-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--background-modifier-border);
}

.hyo-release-card-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.hyo-release-card-section-version {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.hyo-release-card-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-normal);
}

/* --- Voice "on screen" card (inline in the transcript) --- */
/* Chad's [SCREEN] detail renders as an Obsidian callout of type "screen" — a
   clean prepared-to-read card that lives in the conversation, so it persists
   and can't be lost on a stray dismiss. */
.callout[data-callout="screen"] {
  --callout-color: var(--interactive-accent-rgb, 110, 84, 232);
  border: 1px solid color-mix(in srgb, var(--interactive-accent) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--interactive-accent) 6%, var(--background-primary));
  margin: 10px 0;
  padding: 6px 14px 10px;
}

.callout[data-callout="screen"] .callout-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--interactive-accent);
  padding: 4px 0 6px;
  gap: 6px;
}

.callout[data-callout="screen"] .callout-icon {
  display: none;
}

.callout[data-callout="screen"] .callout-content > :first-child {
  margin-top: 0;
}
.callout[data-callout="screen"] .callout-content > :last-child {
  margin-bottom: 0;
}

/* ===================== Voice View ===================== */
/* The voice-first surface: Blob centre stage, colour = state, transcript on a
   toggle, on-screen detail as a frosted overlay, permission asks in-view.
   Ported from the approved mockup (chad/assets/hyo-voice-view-mockup.html). */
.hyo-voiceview {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hyo-vv-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
}

/* --- the Blob --- */
.hyo-blob {
  width: 160px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hyo-blob-core {
  width: 96px;
  height: 96px;
  border-radius: 56% 44% 60% 40% / 48% 62% 38% 52%;
  background: #b9c1cd;
  transition: background 0.4s, width 0.4s, height 0.4s;
  animation: hyo-blob-morph 7s ease-in-out infinite;
}
@keyframes hyo-blob-morph {
  0%, 100% { border-radius: 56% 44% 60% 40% / 48% 62% 38% 52%; }
  50% { border-radius: 44% 56% 46% 54% / 60% 42% 58% 40%; }
}
.hyo-blob-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.28;
  background: #b9c1cd;
  z-index: 0;
  transition: background 0.4s, opacity 0.4s;
}
.hyo-blob-core { position: relative; z-index: 1; }
.hyo-blob-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  z-index: 0;
}
/* state colours */
.hyo-blob.idle .hyo-blob-core { width: 74px; height: 74px; background: #b9c1cd; border-radius: 50%; animation-play-state: paused; }
.hyo-blob.idle .hyo-blob-glow { background: #b9c1cd; opacity: 0.22; }
.hyo-blob.listening .hyo-blob-core { background: #3b6ef5; animation-duration: 4s; }
.hyo-blob.listening .hyo-blob-glow { background: #3b6ef5; opacity: 0.42; }
.hyo-blob.listening .hyo-blob-ring { color: #3b6ef5; animation: hyo-blob-ring 2.2s ease-out infinite; }
.hyo-blob.thinking .hyo-blob-core { background: #7b5ce6; animation-duration: 2.6s; }
.hyo-blob.thinking .hyo-blob-glow { background: #7b5ce6; opacity: 0.42; }
.hyo-blob.speaking .hyo-blob-core { background: #e0932f; width: 120px; height: 120px; animation-duration: 1.7s; }
.hyo-blob.speaking .hyo-blob-glow { background: #e0932f; opacity: 0.5; }
.hyo-blob.speaking .hyo-blob-ring { color: #e0932f; animation: hyo-blob-ring 1.8s ease-out infinite; }
@keyframes hyo-blob-ring {
  0% { width: 150px; height: 150px; opacity: 0.32; }
  100% { width: 214px; height: 214px; opacity: 0; }
}

/* --- status text --- */
.hyo-vv-status { text-align: center; }
.hyo-vv-state { font-size: 17px; font-weight: 600; color: var(--text-muted); }
.hyo-vv-doing { font-size: 13px; color: var(--text-muted); margin-top: 3px; min-height: 1.2em; }
.hyo-vv-status.listening .hyo-vv-state { color: #3b6ef5; }
.hyo-vv-status.thinking .hyo-vv-state { color: #7b5ce6; }
.hyo-vv-status.speaking .hyo-vv-state { color: #e0932f; }

/* --- frosted on-screen overlay --- */
.hyo-vv-overlay {
  position: absolute;
  inset: 14px 14px 14px 14px;
  background: color-mix(in srgb, var(--background-primary) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--background-modifier-border) 70%, transparent);
  border-radius: 16px;
  box-shadow: 0 16px 50px var(--background-modifier-box-shadow);
  padding: 12px 16px 16px;
  overflow: auto;
  z-index: 5;
  animation: hyo-vv-overlay-in 0.2s ease-out;
}
@keyframes hyo-vv-overlay-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hyo-vv-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
}
.hyo-vv-overlay-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c2892f;
}
.hyo-vv-overlay-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 5px;
}
.hyo-vv-overlay-close:hover { color: var(--text-normal); background: var(--background-modifier-hover); }
.hyo-vv-overlay-card + .hyo-vv-overlay-card {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--background-modifier-border);
}
.hyo-vv-overlay-card > :first-child { margin-top: 0; }
.hyo-vv-overlay-card > :last-child { margin-bottom: 0; }

/* --- in-view permission prompt --- */
.hyo-vv-perm {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--background-primary);
  border: 1px solid color-mix(in srgb, #e0932f 45%, var(--background-modifier-border));
  border-radius: 14px;
  box-shadow: 0 12px 34px var(--background-modifier-box-shadow);
  padding: 14px;
  z-index: 6;
  animation: hyo-vv-overlay-in 0.2s ease-out;
}
.hyo-vv-perm-h { font-size: 12px; font-weight: 700; color: #b98328; margin-bottom: 4px; }
.hyo-vv-perm-txt { font-size: 13px; color: var(--text-normal); margin-bottom: 12px; line-height: 1.4; }
.hyo-vv-perm-txt code { background: var(--background-modifier-hover); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.hyo-vv-perm-btns { display: flex; gap: 8px; }
/* Specificity bumped (button.class) to beat the global `.hyo-plugin button` reset. */
.hyo-vv-perm-btns button.hyo-vv-perm-allow,
.hyo-vv-perm-btns button.hyo-vv-perm-always,
.hyo-vv-perm-btns button.hyo-vv-perm-deny {
  flex: 1; border: none; border-radius: 8px; padding: 8px 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.hyo-vv-perm-btns button.hyo-vv-perm-allow { background: var(--interactive-accent); color: var(--text-on-accent); }
.hyo-vv-perm-btns button.hyo-vv-perm-always { background: var(--background-modifier-hover); color: var(--text-normal); }
.hyo-vv-perm-btns button.hyo-vv-perm-deny { background: color-mix(in srgb, var(--text-error) 16%, transparent); color: var(--text-error); }
.hyo-blob.dim .hyo-blob-core { opacity: 0.45; }

/* --- back-to-voice bar (shown above the transcript when flipped open) --- */
.hyo-vv-backbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--background-modifier-border);
}
.hyo-vv-backbar a { color: var(--interactive-accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.hyo-vv-backbar span { font-size: 12px; color: var(--text-muted); }

/* control-bar side buttons (transcript toggle, end) */
.hyo-voice-side-btn { cursor: pointer; }
.hyo-voice-side-btn.active { color: var(--interactive-accent); }
.hyo-voice-end-btn { margin-left: auto; }
.hyo-voice-record-btn.muted { background: var(--background-modifier-border); color: var(--text-muted); box-shadow: none; }

/* voice-view top bar + new conversation */
.hyo-vv-topbar { display: flex; justify-content: flex-end; padding: 8px 10px 0; }
.hyo-vv-topbar button.hyo-vv-newbtn {
  border: 1px solid var(--background-modifier-border);
  background: var(--background-primary);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.hyo-vv-topbar button.hyo-vv-newbtn:hover { color: var(--text-normal); background: var(--background-modifier-hover); }

/* "show last on screen" pill (re-summon a dismissed overlay) */
.hyo-vv-stage button.hyo-vv-showlast {
  border: 1px solid color-mix(in srgb, #e0932f 40%, var(--background-modifier-border));
  background: color-mix(in srgb, #e0932f 8%, var(--background-primary));
  color: #b98328;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.hyo-vv-stage button.hyo-vv-showlast:hover { background: color-mix(in srgb, #e0932f 14%, var(--background-primary)); }

/* ============================================================
   History as a full task screen. Shares the chat top bar; the
   clock button toggles chat <-> this view. Premium list feel:
   soft-shadowed cards, no hard borders, sticky day headers.
   ============================================================ */

.hyo-history-btn { position: relative; }
.hyo-history-btn-active { background: var(--background-modifier-hover); color: var(--interactive-accent); border-radius: 6px; }
.hyo-history-badge {
  position: absolute; top: -3px; right: -4px;
  min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px;
  background: var(--interactive-accent); color: var(--text-on-accent, #fff);
  font-size: 8.5px; font-weight: 700; line-height: 13px; text-align: center;
}

.hyo-ts-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--background-primary-alt); }

/* Filters */
.hyo-ts-filters {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 9px 12px; border-bottom: 1px solid var(--background-modifier-border);
  background: var(--background-primary-alt);
}
.hyo-ts-filters::-webkit-scrollbar { display: none; }
.hyo-ts-filter {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--text-muted);
  background: transparent; border: 1px solid var(--background-modifier-border);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.hyo-ts-filter:hover { background: var(--background-modifier-hover); color: var(--text-normal); }
.hyo-ts-filter-on { background: var(--interactive-accent); border-color: var(--interactive-accent); color: var(--text-on-accent, #fff); }
.hyo-ts-filter-count { font-size: 10px; font-weight: 700; opacity: .75; }
.hyo-ts-filter-empty { opacity: .5; }
.hyo-ts-filter-empty.hyo-ts-filter-on { opacity: 1; }

.hyo-ts-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 14px; }
.hyo-ts-empty { padding: 44px 12px; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* Sticky, legible day headers */
.hyo-ts-group-block { margin-bottom: 2px; }
.hyo-ts-group {
  position: sticky; top: 0; z-index: 2;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-normal); opacity: .85;
  background: var(--background-primary-alt);
  padding: 12px 2px 7px;
  border-bottom: 1px solid var(--background-modifier-border);
  margin-bottom: 8px;
}

/* Premium card: no border, soft shadow, sits above the cream. */
.hyo-ts-card {
  position: relative;
  background: var(--background-primary);
  border-radius: 12px;
  padding: 13px 14px; margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(40,30,20,.05), 0 3px 10px rgba(40,30,20,.05);
  cursor: pointer; transition: box-shadow .14s, background .14s;
}
.hyo-ts-card:hover { background: var(--background-modifier-hover); box-shadow: 0 2px 4px rgba(40,30,20,.07), 0 6px 18px rgba(40,30,20,.08); }
.theme-dark .hyo-ts-card { box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.theme-dark .hyo-ts-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.hyo-ts-card.hyo-ts-closed { opacity: .55; }

.hyo-ts-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hyo-ts-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text-normal); line-height: 1.3; }
.hyo-ts-pin-mark { flex: none; display: inline-flex; color: var(--interactive-accent); }
.hyo-ts-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hyo-ts-rename {
  font-size: 13.5px; font-weight: 600; color: var(--text-normal);
  background: var(--background-primary-alt);
  border: 1px solid var(--interactive-accent); border-radius: 6px;
  padding: 2px 6px; width: 100%; outline: none;
}

/* Chips: attention = red (loud), response = soft terracotta (backlog). */
.hyo-ts-pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.hyo-ts-pill-needs-attention { background: #D64B3F; color: #fff; }
.hyo-ts-pill-needs-response { background: color-mix(in srgb, var(--interactive-accent) 13%, var(--background-primary)); color: color-mix(in srgb, var(--interactive-accent) 82%, var(--text-normal)); }
.hyo-ts-pill-working { background: color-mix(in srgb, var(--color-green) 18%, var(--background-primary)); color: var(--color-green); }
.hyo-ts-pill-closed { background: var(--background-modifier-hover); color: var(--text-muted); }
.hyo-ts-livedot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-green); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--color-green) 25%, transparent); }

.hyo-ts-peek { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hyo-ts-card-foot { display: flex; align-items: center; margin-top: 9px; }
.hyo-ts-time { font-size: 10.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.hyo-ts-openmark { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--interactive-accent); }

/* Icon actions, absolute top-right so hover never resizes the card. */
.hyo-ts-actions { position: absolute; top: 10px; right: 11px; display: none; align-items: center; gap: 5px; }
.hyo-ts-card:hover .hyo-ts-actions { display: inline-flex; }
.hyo-ts-card:hover .hyo-ts-pill { visibility: hidden; }
.hyo-ts-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; color: var(--text-muted);
  background: var(--background-primary-alt);
  border: 1px solid var(--background-modifier-border); border-radius: 8px; cursor: pointer;
}
.hyo-ts-act:hover { background: var(--background-modifier-hover); color: var(--text-normal); border-color: var(--interactive-accent); }
.hyo-ts-act-on { color: var(--interactive-accent); border-color: var(--interactive-accent); }

.hyo-ts-loadmore {
  display: block; margin: 8px auto 6px; padding: 8px 18px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border); border-radius: 8px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(40,30,20,.05);
}
.hyo-ts-loadmore:hover { background: var(--background-modifier-hover); color: var(--text-normal); }

/* ── Mobile session chip + panel (agent · model · permissions) ─────────── */
.hyo-chat-panel { position: relative; }

.hyo-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-normal);
  cursor: pointer;
}
.hyo-session-chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-accent);
  flex-shrink: 0;
}
.hyo-session-chip-name { text-transform: capitalize; }
.hyo-session-chip-tune { color: var(--text-muted); flex-shrink: 0; }

.hyo-session-scrim {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(20, 16, 10, 0.32);
}
.hyo-session-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  background: var(--background-primary);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 22px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
  max-height: 80%;
  overflow-y: auto;
}
.hyo-session-grab {
  width: 38px; height: 5px; border-radius: 3px;
  background: var(--background-modifier-border);
  margin: 2px auto 12px;
}
.hyo-session-sec { margin-bottom: 14px; }
.hyo-session-sec-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 2px 7px;
}
.hyo-session-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 13px; border-radius: 11px;
  background: transparent; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; color: var(--text-normal);
  text-align: left; cursor: pointer;
}
.hyo-session-opt.sel {
  background: var(--background-secondary);
  border-color: var(--background-modifier-border);
  font-weight: 650;
}
.hyo-session-opt-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hyo-session-opt-name { text-transform: capitalize; }
.hyo-session-opt-tick { margin-left: auto; color: var(--text-accent); font-weight: 700; }

/* ── Mobile UI styles (scoped to .is-mobile so desktop is untouched) ─── */
.is-mobile /* Hyo Plugin — Obsidian theme-aware styles */

/* Obsidian's own pane header ("Hyo") renders above this view and is left
   alone — we never hide it or render a duplicate of our own. Our
   conversation tab bar sits at the bottom of the panel, .is-mobile above the input. */

.hyo-plugin {
  height: 100%;
  overflow: hidden;
}
.is-mobile /* Reset all buttons inside plugin — Obsidian themes apply their own
   button styles (border, .is-mobile background, .is-mobile box-shadow) that leak into our UI.
   Note: padding intentionally NOT reset here — each button sets its own. */
.hyo-plugin button {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}
.is-mobile .hyo-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background-primary-alt);
  color: var(--text-normal);
  padding-bottom: 4px;
}
.is-mobile /* Loading & onboarding */
.hyo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
}
.is-mobile .hyo-onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 24px;
  padding-top: 32px;
  overflow-y: auto;
  color: var(--text-muted);
  text-align: center;
}
.is-mobile .hyo-onboarding h3 {
  color: var(--text-normal);
  margin: 0 0 12px;
}
.is-mobile .hyo-onboarding p {
  margin: 0 0 16px;
  line-height: 1.5;
}
.is-mobile .hyo-onboarding-steps {
  text-align: left;
  width: 100%;
  max-width: 320px;
}
.is-mobile .hyo-onboarding-step {
  margin-bottom: 16px;
}
.is-mobile .hyo-onboarding-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-normal);
}
.is-mobile .hyo-onboarding-step code {
  display: block;
  padding: 8px 12px;
  background: var(--background-secondary);
  border-radius: var(--radius-s);
  font-family: var(--font-monospace);
  font-size: 12px;
  color: var(--text-normal);
  word-break: break-all;
}
.is-mobile .hyo-onboarding-note {
  font-size: 12px;
  color: var(--text-faint);
}
.is-mobile .hyo-onboarding-intro {
  max-width: 400px;
  margin-bottom: 24px;
}
.is-mobile .hyo-step-instruction {
  margin: 8px 0;
  color: var(--text-normal);
}
.is-mobile .hyo-step-note {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.is-mobile .hyo-install-command {
  display: block;
  padding: 12px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-family: var(--font-monospace);
  font-size: 13px;
  color: var(--text-normal);
  cursor: pointer;
  transition: all 0.2s ease;
  word-break: break-all;
  user-select: all;
}
.is-mobile .hyo-install-command:hover {
  background: var(--background-secondary-alt);
  border-color: var(--text-accent);
}
.is-mobile .hyo-install-command.copied {
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border-color: var(--interactive-accent);
}
.is-mobile .hyo-install-command.copied::after {
  content: " ✓ Copied!";
  font-family: var(--font-ui);
  font-size: 12px;
  margin-left: 8px;
}
.is-mobile .hyo-onboarding-option-quick {
  text-align: left;
  width: 100%;
  max-width: 500px;
  padding: 16px;
  background: var(--background-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
}
.is-mobile .hyo-onboarding-option-quick strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-normal);
}
.is-mobile .hyo-copy-prompt-button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin: 8px 0;
}
.is-mobile .hyo-copy-prompt-button:hover {
  opacity: 0.9;
}
.is-mobile .hyo-onboarding-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.is-mobile .hyo-onboarding-divider::before, .is-mobile .hyo-onboarding-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--background-modifier-border);
}
.is-mobile .hyo-onboarding-divider span {
  padding: 0 12px;
}
.is-mobile .hyo-onboarding-troubleshooting {
  margin-top: 24px;
  text-align: left;
  max-width: 500px;
}
.is-mobile .hyo-onboarding-troubleshooting summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 0;
}
.is-mobile .hyo-onboarding-troubleshooting summary:hover {
  color: var(--text-normal);
}
.is-mobile .hyo-troubleshooting-content {
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}
.is-mobile .hyo-troubleshooting-content p {
  margin: 8px 0;
}
.is-mobile .hyo-troubleshooting-content strong {
  color: var(--text-normal);
}
.is-mobile .hyo-troubleshooting-content a {
  color: var(--text-accent);
  text-decoration: none;
}
.is-mobile .hyo-troubleshooting-content a:hover {
  text-decoration: underline;
}
.is-mobile /* Chat panel */
.hyo-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.is-mobile /* Messages area */
.hyo-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}
.is-mobile .hyo-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-faint);
}
.is-mobile /* Message bubbles */
.hyo-message {
  margin-bottom: 16px;
}
.is-mobile .hyo-message-user .hyo-message-content {
  background: var(--background-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-m);
  font-size: 14px;
  line-height: 1.5;
  user-select: text;
}
.is-mobile .hyo-message-assistant .hyo-message-content {
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  user-select: text;
}
.is-mobile /* Markdown body */
.hyo-markdown-body {
  word-wrap: break-word;
}
.is-mobile .hyo-markdown-body p {
  margin: 0 0 8px;
}
.is-mobile .hyo-markdown-body p:last-child {
  margin-bottom: 0;
}
.is-mobile .hyo-markdown-body pre {
  background: var(--background-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-s);
  overflow-x: auto;
  font-size: 12px;
  margin: 8px 0;
}
.is-mobile .hyo-markdown-body code {
  font-family: var(--font-monospace);
  font-size: 12px;
}
.is-mobile .hyo-markdown-body :not(pre) > code {
  background: var(--background-secondary);
  padding: 2px 5px;
  border-radius: 3px;
}
.is-mobile .hyo-markdown-body ul, .is-mobile .hyo-markdown-body ol {
  padding-left: 20px;
  margin: 4px 0 8px;
}
.is-mobile .hyo-markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}
.is-mobile .hyo-markdown-body th, .is-mobile .hyo-markdown-body td {
  border: 1px solid var(--background-modifier-border);
  padding: 6px 10px;
  text-align: left;
}
.is-mobile .hyo-markdown-body th {
  background: var(--background-secondary);
  font-weight: 600;
}
.is-mobile .hyo-markdown-body blockquote {
  border-left: 3px solid var(--interactive-accent);
  margin: 8px 0;
  padding: 4px 12px;
  color: var(--text-muted);
}
.is-mobile /* Thinking blocks */
.hyo-thinking-block {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-faint);
}
.is-mobile .hyo-thinking-block summary {
  cursor: pointer;
  user-select: none;
  font-style: italic;
}
.is-mobile .hyo-thinking-content {
  padding: 8px 0 4px 12px;
  white-space: pre-wrap;
  font-family: var(--font-monospace);
  font-size: 11px;
  line-height: 1.4;
  max-height: 200px;
  overflow-y: auto;
}
.is-mobile /* Tool calls */
.hyo-tool-call {
  margin: 8px 0;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-size: 12px;
  overflow: hidden;
}
.is-mobile .hyo-tool-call-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: var(--background-secondary);
}
.is-mobile .hyo-tool-call-header:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-tool-call-arrow {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.is-mobile .hyo-tool-call-name {
  font-weight: 600;
  color: var(--text-normal);
  flex-shrink: 0;
}
.is-mobile .hyo-tool-call-summary {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-mobile .hyo-tool-call-body {
  padding: 8px 10px;
  margin: 0;
  font-size: 11px;
  font-family: var(--font-monospace);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  background: var(--background-primary);
  border-top: 1px solid var(--background-modifier-border);
}
.is-mobile /* Permission request */
.hyo-permission {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  background: var(--background-secondary);
}
.is-mobile .hyo-permission-tool {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.is-mobile .hyo-permission-summary {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-monospace);
  margin-bottom: 8px;
  word-break: break-all;
}
.is-mobile .hyo-permission-buttons {
  display: flex;
  gap: 8px;
}
.is-mobile .hyo-permission-buttons button {
  padding: 4px 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--background-modifier-border);
  background: var(--background-primary);
  color: var(--text-normal);
  cursor: pointer;
  font-size: 12px;
}
.is-mobile .hyo-permission-buttons button:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-permission-deny {
  color: var(--text-error) !important;
}
.is-mobile .hyo-permission-allow {
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  border-color: var(--interactive-accent) !important;
}
.is-mobile .hyo-permission-allow:hover {
  background: var(--interactive-accent-hover) !important;
}
.is-mobile .hyo-permission-allow-always {
  color: var(--text-muted) !important;
  font-size: 11px !important;
}
.is-mobile /* Ask question */
/* ── AskQuestion ── */

.hyo-ask {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.is-mobile .hyo-ask-item {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--background-secondary);
  border-left: 3px solid var(--interactive-accent);
}
.is-mobile .hyo-ask-item.is-answered {
  border-left-color: var(--text-faint);
  opacity: 0.7;
}
.is-mobile .hyo-ask-item.is-pending {
  border-left-color: var(--background-modifier-border);
  opacity: 0.4;
}
.is-mobile .hyo-ask-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 20px;
}
.is-mobile .hyo-ask-chip {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--interactive-accent);
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}
.is-mobile .hyo-ask-answered-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.is-mobile .hyo-ask-answered-badge svg {
  color: var(--text-success, var(--interactive-accent));
  flex-shrink: 0;
}
.is-mobile .hyo-ask .hyo-ask-question-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-normal);
  margin: 0 0 12px 0;
  line-height: 1.45;
}
.is-mobile .hyo-ask-item.is-answered .hyo-ask-question-text {
  margin-bottom: 0;
}
.is-mobile /* Controls container */
.hyo-ask-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.is-mobile /* Option buttons */
.hyo-ask-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.is-mobile button.hyo-ask-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 14px;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-normal);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  width: 100%;
  transition: all 0.1s ease;
  height: auto;
}
.is-mobile button.hyo-ask-opt:hover {
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.06);
  border-left-color: var(--interactive-accent);
}
.is-mobile button.hyo-ask-opt:active {
  background: rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.1);
}
.is-mobile .hyo-ask-opt-label {
  font-weight: 500;
  line-height: 1.35;
}
.is-mobile .hyo-ask-opt-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.is-mobile /* Divider */
.hyo-ask-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
}
.is-mobile .hyo-ask-divider::before, .is-mobile .hyo-ask-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--background-modifier-border);
}
.is-mobile /* Text input */
.hyo-ask-input {
  display: flex;
  gap: 6px;
  align-items: center;
}
.is-mobile .hyo-ask-input input {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  color: var(--text-normal);
  font-size: 13px;
  transition: border-color 0.15s ease;
}
.is-mobile .hyo-ask-input input:focus {
  outline: none;
  border-color: var(--interactive-accent);
  box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb, 72, 120, 208), 0.15);
}
.is-mobile button.hyo-ask-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.is-mobile button.hyo-ask-send:hover:not(:disabled) {
  background: var(--interactive-accent-hover);
}
.is-mobile button.hyo-ask-send:disabled {
  opacity: 0.35;
  cursor: default;
}
.is-mobile /* Plan review */
.hyo-plan-review {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--interactive-accent);
  border-radius: var(--radius-m);
  background: var(--background-secondary);
}
.is-mobile .hyo-plan-review-resolved {
  border-color: var(--background-modifier-border);
  padding: 8px 14px;
}
.is-mobile .hyo-plan-review-status {
  font-size: 12px;
  color: var(--text-muted);
}
.is-mobile .hyo-plan-review-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-normal);
}
.is-mobile .hyo-plan-review-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  font-size: 13px;
}
.is-mobile .hyo-plan-review-fallback {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}
.is-mobile .hyo-plan-review-permissions {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.is-mobile .hyo-plan-review-permissions-label {
  font-weight: 500;
  margin-bottom: 4px;
}
.is-mobile .hyo-plan-review-permissions ul {
  margin: 0;
  padding-left: 18px;
}
.is-mobile .hyo-plan-review-permissions li {
  margin: 2px 0;
}
.is-mobile .hyo-plan-review-buttons {
  display: flex;
  gap: 8px;
}
.is-mobile .hyo-plan-review-buttons button {
  padding: 6px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--background-modifier-border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.is-mobile .hyo-plan-review-reject {
  background: var(--background-primary);
  color: var(--text-muted);
}
.is-mobile .hyo-plan-review-reject:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-plan-review-approve {
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  border-color: var(--interactive-accent) !important;
}
.is-mobile .hyo-plan-review-approve:hover {
  background: var(--interactive-accent-hover) !important;
}
.is-mobile /* Streaming state */
.hyo-streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--interactive-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: hyo-blink 1s step-end infinite;
}
@keyframes hyo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.is-mobile /* Activity indicator */
.hyo-activity-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
}
.is-mobile .hyo-thinking-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: hyo-dot-pulse 1.4s ease-in-out infinite;
}
.is-mobile .hyo-thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.is-mobile .hyo-thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes hyo-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}
.is-mobile /* Compaction banner */
.hyo-compaction-banner {
  text-align: center;
  padding: 8px;
  margin: 12px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
  border-top: 1px dashed var(--background-modifier-border);
  border-bottom: 1px dashed var(--background-modifier-border);
}
.is-mobile /* Input area — a two-tier rounded card: the textarea on its own row, .is-mobile with
   attach/mic/Ask First/send in a controls row beneath. Stacking them (rather
   than one long row) is what stops the controls clipping off the right edge
   on narrow/mobile widths. */
.hyo-input-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 12px 12px;
  flex-shrink: 0;
}
.is-mobile .hyo-input-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 18px;
  padding: 10px 12px 8px;
}
.is-mobile .hyo-input-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.is-mobile /* Real spacer (not margin-left: auto) so the row never collapses the send
   button off-screen when the other controls wrap or grow. */
.hyo-input-controls-spacer {
  flex: 1;
  min-width: 4px;
}
.is-mobile /* File attachment chips */
.hyo-attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.is-mobile .hyo-attachment-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: var(--text-muted);
  align-self: flex-start;
}
.is-mobile .hyo-attachment-name {
  color: var(--text-normal);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-mobile .hyo-attachment-tokens {
  color: var(--text-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.is-mobile .hyo-attachment-chip-ref {
  border-style: dashed;
}
.is-mobile .hyo-attachment-chip-ref .hyo-attachment-tokens {
  color: var(--text-accent);
}
.is-mobile .hyo-attachment-remove {
  font-size: 14px;
  line-height: 1;
  color: var(--text-faint);
  padding: 0 2px !important;
  cursor: pointer;
}
.is-mobile .hyo-attachment-remove:hover {
  color: var(--text-muted);
}
.is-mobile /* Attach (paperclip) button + popup */
.hyo-attach-wrap {
  position: relative;
  flex-shrink: 0;
}
.is-mobile .hyo-attach-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-faint);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.1s, background 0.15s;
}
.is-mobile .hyo-attach-btn:hover {
  color: var(--text-muted);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-attach-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
  min-width: 180px;
  z-index: 100;
}
.is-mobile .hyo-attach-popup-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100%;
  padding: 7px 10px !important;
  border-radius: var(--radius-s);
  font-size: 13px;
  color: var(--text-normal);
  text-align: left;
  transition: background 0.1s;
}
.is-mobile .hyo-attach-popup-item svg {
  flex-shrink: 0;
  align-self: center;
  display: inline-block;
}
.is-mobile .hyo-attach-popup-item:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-input {
  width: 100%;
  min-width: 0;
  padding: 2px 2px 8px;
  border: none;
  background: transparent;
  color: var(--text-normal);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  min-height: 24px;
  max-height: 150px;
  /* This is a bare <textarea>, so it inherits Obsidian's default form styling
     AND the active theme's `textarea { border-radius: var(--input-radius) }`.
     The visible container is the .hyo-input-card around it — the textarea
     itself must draw no chrome of its own. Neutralise everything the cascade
     and iOS's native control appearance would otherwise impose, or a rounded
     accent-coloured focus ring shows through (the "orange pill" that grew more
     pill-shaped as the field got taller). */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: none;
}
.is-mobile .hyo-input:focus, .is-mobile .hyo-input:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}
.is-mobile .hyo-input::placeholder {
  color: var(--text-faint);
}
.is-mobile /* Mic (dictate) button — sits in the controls row, .is-mobile next to attach */
.hyo-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.is-mobile /* Voice-conversation toggle — sits beside the mic. Off = muted outline; on =
   the accent colour, .is-mobile so it's obvious the mic will now speak replies back. */
.hyo-voicemode-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.is-mobile .hyo-voicemode-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-voicemode-toggle.active {
  color: var(--text-on-accent);
  background: var(--interactive-accent);
}
.is-mobile .hyo-mic-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-mic-btn.recording {
  color: white;
  background: var(--text-error);
  animation: hyo-voice-pulse 1.5s ease-in-out infinite;
}
.is-mobile .hyo-mic-btn.disabled {
  opacity: 0.5;
  cursor: default;
}
.is-mobile /* Transcribing state — the mic icon becomes a spinning ring so there is an
   unmistakable, .is-mobile touch-visible "something is happening" cue (the old `title`
   tooltip never rendered on mobile). */
.hyo-mic-btn.thinking {
  opacity: 1;
  color: var(--interactive-accent);
  cursor: default;
}
.is-mobile .hyo-mic-spinner {
  animation: hyo-spin 0.7s linear infinite;
  transform-origin: center;
}
@keyframes hyo-spin {
  to {
    transform: rotate(360deg);
  }
}
.is-mobile /* Full-width status line above the input while a voice note transcribes. */
.hyo-transcribing-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--background-modifier-hover);
  color: var(--text-normal);
  font-size: 13px;
  font-weight: 500;
}
.is-mobile .hyo-transcribing-spinner {
  color: var(--interactive-accent);
  animation: hyo-spin 0.7s linear infinite;
  transform-origin: center;
  flex-shrink: 0;
}
.is-mobile /* Live recording waveform — same strip language as the transcribing status, .is-mobile with mic-driven bars so you can see it's actually hearing you. */
.hyo-listening-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--background-modifier-hover);
  color: var(--text-normal);
  font-size: 13px;
  font-weight: 500;
}
.is-mobile .hyo-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  flex: 1;
  min-width: 0;
}
.is-mobile .hyo-waveform-bar {
  flex: 1;
  min-width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--interactive-accent);
  transform: scaleY(0.06);
  transform-origin: center;
  /* Smooth the per-frame jumps just slightly so it reads as fluid motion. */
  transition: transform 0.06s linear;
  will-change: transform;
}
.is-mobile .hyo-listening-label {
  flex-shrink: 0;
  color: var(--text-muted);
}
.is-mobile /* Failed/timed-out transcription — a persistent, .is-mobile tappable retry state. The
   mic shows a retry arrow in the error colour (still clickable, .is-mobile not dimmed
   like a disabled control), .is-mobile and the status line turns into a retry prompt. */
.hyo-mic-btn.error {
  opacity: 1;
  color: var(--text-error);
  cursor: pointer;
}
.is-mobile .hyo-mic-btn.error:hover {
  color: var(--text-error);
  background: var(--background-modifier-error-hover, var(--background-modifier-hover));
}
.is-mobile .hyo-transcribing-status.error {
  background: var(--background-modifier-error, rgba(229, 83, 75, 0.15));
  color: var(--text-normal);
}
.is-mobile .hyo-transcribing-status.error > svg {
  color: var(--text-error);
  flex-shrink: 0;
}
.is-mobile .hyo-transcribing-dismiss {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}
.is-mobile .hyo-transcribing-dismiss:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: var(--interactive-accent) !important;
  color: var(--text-on-accent) !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.is-mobile .hyo-send-btn:hover {
  background: var(--interactive-accent-hover) !important;
}
.is-mobile .hyo-send-btn:active {
  transform: scale(0.93);
}
.is-mobile /* Stop button — red */
.hyo-send-btn.hyo-stop {
  background: var(--text-error) !important;
}
.is-mobile .hyo-send-btn.hyo-stop:hover {
  background: #b55555 !important;
}
.is-mobile /* Tab bar — sits at the bottom of the panel, .is-mobile just above the input card.
   Connection dot, .is-mobile then the scrollable tab list, .is-mobile then the new-tab action
   pushed to the far right. */
.hyo-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 4px;
}
.is-mobile /* Gateway connection dot — the only remaining trace of connection status
   now that the separate status strip is gone. */
.hyo-conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: 0 0 auto;
}
.is-mobile .hyo-conn-dot-connected {
  background: var(--color-green);
}
.is-mobile .hyo-conn-dot-connecting, .is-mobile .hyo-conn-dot-reconnecting {
  background: var(--color-yellow);
}
.is-mobile .hyo-conn-dot-disconnected {
  background: var(--color-red);
}
.is-mobile /* Scrollable tab list */
.hyo-tabs-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6px;
}
.is-mobile .hyo-tabs-left::-webkit-scrollbar {
  height: 0;
}
.is-mobile /* Right side — action buttons, .is-mobile pushed to the far right by hyo-tabs-left's
   flex: 1 */
.hyo-tabs-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.is-mobile /* Action button styling */
.hyo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-action-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile /* Individual tab — a small rounded pill, .is-mobile not a browser-style joined tab, .is-mobile since the bar now floats above the input rather than capping the panel. */
.hyo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 200px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--background-modifier-border);
  background: var(--background-secondary);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  user-select: none;
  transition: color 0.1s, background 0.1s, border-color 0.1s;
}
.is-mobile .hyo-tab:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-tab-active {
  color: var(--text-normal);
  background: var(--background-primary);
  border-color: var(--background-modifier-border-hover);
}
.is-mobile .hyo-tab-active:hover {
  background: var(--background-primary);
}
.is-mobile /* Tab title */
.hyo-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.is-mobile /* Close button — always reserves space, .is-mobile visible on hover/active */
.hyo-tab-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted) !important;
  opacity: 0;
  transition: opacity 0.1s;
}
.is-mobile .hyo-tab-close:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-tab:hover .hyo-tab-close, .is-mobile .hyo-tab-active .hyo-tab-close {
  opacity: 1;
}
.is-mobile /* Working — Claude is running. Green "go" dot with a calm scale pulse: alive, .is-mobile but ambient (this is the constant background state, .is-mobile so it stays gentle). */
.hyo-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-green, #4bb377);
  flex-shrink: 0;
  animation: hyo-dot-working-pulse 1.5s ease-in-out infinite;
}
@keyframes hyo-dot-working-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.is-mobile /* Waiting on you — Claude is blocked awaiting a permission, .is-mobile answer, .is-mobile or plan
   approval. Warm peach "your turn" colour + an assertive scale-and-glow pulse
   that pulls the eye from another tab, .is-mobile unlike the calm green working dot. */
.hyo-tab-dot-waiting {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a875;
  animation: hyo-dot-waiting-pulse 1.1s ease-in-out infinite;
}
@keyframes hyo-dot-waiting-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(240, 168, 117, 0.4);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(240, 168, 117, 0);
    opacity: 1;
  }
}
.is-mobile .hyo-tab-rename-input {
  width: 100px;
  padding: 2px 6px;
  font-size: 12px;
  border: 1px solid var(--interactive-accent);
  border-radius: var(--radius-s);
  background: var(--background-primary);
  color: var(--text-normal);
  outline: none;
}
.is-mobile /* Session dropdown */
.hyo-session-dropdown {
  position: relative;
}
.is-mobile .hyo-session-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-session-dropdown-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-session-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 9999;
  width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border-hover);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}
.is-mobile /* Mobile: the toggle sits in the bottom bar, .is-mobile so anchoring the menu below it
   (top: 100%) drops it off the bottom of the screen and the conversation list
   can't be seen. Flip it to open upward. */
.is-mobile .hyo-session-dropdown-menu {
  top: auto;
  bottom: calc(100% + 4px);
}
.is-mobile .hyo-session-dropdown-header {
  padding: 4px 14px 6px;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.is-mobile .hyo-session-dropdown-empty {
  padding: 20px 8px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}
.is-mobile .hyo-session-dropdown-list {
  display: flex;
  flex-direction: column;
}
.is-mobile .hyo-session-dropdown-date {
  padding: 8px 14px 4px;
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.is-mobile .hyo-session-dropdown-date:first-child {
  padding-top: 0;
}
.is-mobile .hyo-session-dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 14px !important;
  color: var(--text-normal) !important;
  font-size: 13px;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--radius-s);
}
.is-mobile .hyo-session-dropdown-item:hover {
  background: var(--background-modifier-hover);
}
.is-mobile /* Locked agent/model label (mobile) */
.hyo-locked-agent-label {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  white-space: nowrap;
}
.is-mobile /* Usage bars — single clickable group */
.hyo-usage-bars-group {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}
.is-mobile .hyo-usage-bars-group:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-usage-bars-group.stale .hyo-usage-bar-fill, .is-mobile .hyo-usage-bars-group.stale .hyo-usage-bar-label, .is-mobile .hyo-usage-bars-group.stale .hyo-usage-bar-track {
  opacity: 0.45;
}
.is-mobile .hyo-usage-bar-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 18px;
}
.is-mobile .hyo-usage-bar-track-wrap {
  position: relative;
  width: 60px;
  padding: 4px 0;
}
.is-mobile .hyo-usage-bar-track {
  display: block;
  height: 4px;
  background: var(--background-modifier-border);
  border-radius: 2px;
  overflow: hidden;
}
.is-mobile .hyo-usage-bar-fill {
  display: block;
  height: 100%;
  background: var(--interactive-accent);
  transition: width 0.3s, background 0.3s;
}
.is-mobile .hyo-usage-bar-fill.warning {
  background: #f39c12;
}
.is-mobile .hyo-usage-bar-fill.danger {
  background: #e74c3c;
}
.is-mobile .hyo-usage-bar-pace {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text-faint);
  opacity: 0.5;
  pointer-events: none;
}
.is-mobile /* Model selector */
.hyo-model-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-model-selector:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-model-selector-name {
  font-weight: 500;
}
.is-mobile /* Permission mode selector */
.hyo-permission-mode-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-permission-mode-selector:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-permission-mode-name {
  font-weight: 500;
}
.is-mobile /* Ask First toggle — lives in the input controls row, .is-mobile between the mic
   button and the send spacer. Simple on/off, .is-mobile no popup. */
.hyo-ask-first-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.1s, background 0.15s;
}
.is-mobile .hyo-ask-first-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-ask-first-toggle.active {
  color: var(--text-normal);
}
.is-mobile .hyo-ask-first-switch {
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 17px;
  border-radius: 9px;
  background: var(--background-modifier-border);
  padding: 2px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.is-mobile .hyo-ask-first-switch.on {
  background: var(--interactive-accent);
}
.is-mobile .hyo-ask-first-knob {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-on-accent, #fff);
  transition: transform 0.15s;
}
.is-mobile .hyo-ask-first-switch.on .hyo-ask-first-knob {
  transform: translateX(13px);
}
.is-mobile /* Agent selector */
.hyo-agent-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-agent-selector:hover:not(.locked) {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-agent-selector.locked {
  cursor: default;
  opacity: 0.85;
}
.is-mobile .hyo-agent-name {
  font-weight: 500;
  color: var(--agent-color, var(--text-muted));
  text-transform: capitalize;
}
.is-mobile .hyo-agent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent-color, var(--text-muted));
  flex-shrink: 0;
}
.is-mobile /* Agent popup */
.hyo-agent-popup {
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  padding: 4px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
}
.is-mobile .hyo-agent-popup-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  cursor: pointer;
}
.is-mobile .hyo-agent-popup-item:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-agent-popup-item.active {
  background: var(--background-modifier-active-hover);
}
.is-mobile .hyo-agent-popup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.is-mobile .hyo-agent-popup-text {
  flex: 1;
  min-width: 0;
}
.is-mobile .hyo-agent-popup-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
  text-transform: capitalize;
}
.is-mobile .hyo-agent-popup-default {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
}
.is-mobile .hyo-agent-popup-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.is-mobile .hyo-agent-popup-check {
  color: var(--text-accent);
  font-size: 12px;
}
.is-mobile /* Usage popup */
.hyo-usage-popup {
  z-index: 9999;
  min-width: 240px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 8px;
}
.is-mobile .hyo-usage-popup-title {
  padding: 4px 8px;
  font-weight: 600;
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.is-mobile .hyo-usage-divider {
  height: 1px;
  background: var(--background-modifier-border);
  margin: 6px 0;
}
.is-mobile .hyo-usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 13px;
}
.is-mobile .hyo-usage-row.small {
  font-size: 11px;
  color: var(--text-muted);
}
.is-mobile .hyo-usage-label {
  color: var(--text-muted);
}
.is-mobile .hyo-usage-value {
  color: var(--text-normal);
  font-weight: 500;
}
.is-mobile .hyo-usage-bar-inline-wrap {
  position: relative;
  padding: 4px 8px;
}
.is-mobile .hyo-usage-bar-inline {
  height: 6px;
  background: var(--background-modifier-border);
  border-radius: 3px;
  overflow: hidden;
}
.is-mobile .hyo-usage-bar-inline-fill {
  height: 100%;
  background: var(--interactive-accent);
  transition: width 0.3s, background 0.3s;
}
.is-mobile .hyo-usage-bar-inline-fill.warning {
  background: #f39c12;
}
.is-mobile .hyo-usage-bar-inline-fill.danger {
  background: #e74c3c;
}
.is-mobile .hyo-usage-refresh-btn {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  background: transparent;
  border-radius: var(--radius-s);
  transition: all 0.1s;
}
.is-mobile .hyo-usage-refresh-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-usage-stale-notice {
  padding: 6px 8px;
  font-size: 11px;
  color: #f39c12;
  line-height: 1.4;
}
.is-mobile /* Model popup */
.hyo-model-popup {
  z-index: 9999;
  min-width: 180px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}
.is-mobile .hyo-model-popup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-normal);
  cursor: pointer;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}
.is-mobile .hyo-model-popup-name {
  flex: 1;
}
.is-mobile .hyo-model-popup-context {
  font-size: 11px;
  color: var(--text-faint);
}
.is-mobile .hyo-model-popup-divider {
  height: 1px;
  background: var(--background-modifier-border);
  margin: 4px 0;
}
.is-mobile .hyo-model-custom-row {
  display: flex;
  gap: 6px;
  padding: 4px 8px 4px;
  align-items: center;
}
.is-mobile .hyo-model-custom-input {
  flex: 1;
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  background: var(--background-primary);
  color: var(--text-normal);
  outline: none;
}
.is-mobile .hyo-model-custom-input:focus {
  border-color: var(--interactive-accent);
}
.is-mobile .hyo-model-custom-btn {
  font-size: 12px;
  padding: 3px 8px;
  border: none;
  border-radius: 4px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  cursor: pointer;
  opacity: 1;
}
.is-mobile .hyo-model-custom-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.is-mobile .hyo-model-popup-item:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-model-popup-item.active {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-model-check {
  width: 14px;
  font-size: 12px;
  color: var(--interactive-accent);
}
.is-mobile /* Permission popup */
.hyo-perm-popup {
  z-index: 9999;
  min-width: 220px;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
}
.is-mobile .hyo-perm-popup-item {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius-s);
  transition: background 0.1s;
}
.is-mobile .hyo-perm-popup-item:hover {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-perm-popup-item.active {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-perm-popup-item-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
  margin-bottom: 2px;
}
.is-mobile .hyo-perm-popup-check {
  font-size: 12px;
  color: var(--interactive-accent);
}
.is-mobile .hyo-perm-popup-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.is-mobile /* Drag and drop overlay */
.hyo-chat-panel.hyo-drag-over::after {
  content: "Drop file to attach";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
  border: 2px dashed var(--interactive-accent);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--interactive-accent);
  pointer-events: none;
  z-index: 50;
}
.is-mobile .hyo-chat-panel {
  position: relative;
}
.is-mobile /* Slash command menu */
.hyo-slash-menu {
  position: relative;
  max-height: 240px;
  overflow-y: auto;
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 4px;
  margin-bottom: 2px;
}
.is-mobile .hyo-slash-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 0.1s;
}
.is-mobile .hyo-slash-item:hover, .is-mobile .hyo-slash-item-selected {
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-slash-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
}
.is-mobile .hyo-slash-desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-mobile /* File chips in message history */
.hyo-message-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.is-mobile .hyo-message-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
}
.is-mobile /* Compaction divider line */
.hyo-compaction-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  opacity: 0.5;
}
.is-mobile .hyo-compaction-rule {
  flex: 1;
  height: 1px;
  background: var(--background-modifier-border);
}
.is-mobile .hyo-compaction-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.is-mobile /* Message copy button */
.hyo-message-actions {
  display: flex;
  gap: 4px;
  padding: 2px 0 0 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.is-mobile .hyo-message-assistant:hover .hyo-message-actions {
  opacity: 1;
}
.is-mobile .hyo-copy-btn {
  color: var(--text-faint);
  padding: 4px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  line-height: 1;
}
.is-mobile .hyo-copy-btn:hover {
  color: var(--text-muted);
  background: var(--background-modifier-hover);
}
.is-mobile /* Session recovery banner — shown below an assistant message that's a
   thinking-block API error. Lets the user heal the session in one click. */
.hyo-recover-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--background-modifier-error-hover, rgba(255, 100, 80, 0.08));
  border: 1px solid var(--background-modifier-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.is-mobile .hyo-recover-banner-text {
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.4;
}
.is-mobile .hyo-recover-button {
  align-self: flex-start;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
}
.is-mobile .hyo-recover-button:hover {
  background: var(--interactive-accent-hover);
}
.is-mobile /* ======================= Voice Mode ======================= */

/* Status bar voice toggle */
.hyo-voice-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
  font-size: 12px;
  transition: all 0.1s;
  cursor: pointer;
}
.is-mobile .hyo-voice-toggle:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-voice-toggle.active {
  color: var(--interactive-accent);
  background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
}
.is-mobile .hyo-voice-toggle.disabled {
  opacity: 0.35;
  cursor: default;
}
.is-mobile .hyo-voice-toggle.disabled:hover {
  background: transparent;
  color: var(--text-muted);
}
.is-mobile /* Voice controls — replaces the text input when voice mode is active */
.hyo-voice-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.is-mobile /* Mic / record button — big, .is-mobile coloured, .is-mobile obvious CTA */
.hyo-voice-record-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--interactive-accent);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--interactive-accent) 30%, transparent);
}
.is-mobile .hyo-voice-record-btn:hover {
  filter: brightness(1.1);
  background-color: var(--interactive-accent);
}
.is-mobile .hyo-voice-record-btn.recording {
  background: var(--text-error);
  color: white;
  animation: hyo-voice-pulse 1.5s ease-in-out infinite;
}
.is-mobile .hyo-voice-record-btn.disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
}
@keyframes hyo-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--text-error) 40%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--text-error) 0%, transparent); }
}
.is-mobile /* Status label */
.hyo-voice-status-label {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}
.is-mobile /* Playback controls */
.hyo-voice-playback {
  display: flex;
  align-items: center;
  gap: 6px;
}
.is-mobile .hyo-voice-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-s);
  color: var(--text-muted);
  background: var(--background-modifier-border);
  cursor: pointer;
  transition: all 0.1s;
}
.is-mobile .hyo-voice-ctrl-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-border-hover);
}
.is-mobile .hyo-voice-ctrl-btn svg {
  width: 16px;
  height: 16px;
}
.is-mobile .hyo-voice-speed-btn {
  min-width: 40px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-monospace);
}
.is-mobile /* iPad/tablet fix (2026-07-18): on `is-tablet`, .is-mobile Obsidian collapses button-icon
   SVG width to 0 (diagnostic showed svg:0x15) so the icons vanish while the
   buttons stay. Force explicit icon dimensions so nothing can flatten them. */
.hyo-input-controls button svg, .is-mobile .hyo-tabs button svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}
.is-mobile /* Remove the white seam at the top: Obsidian's pane header for our view
   renders white while the chat panel is cream. Paint the whole leaf (header
   included) to match --background-primary-alt. Scoped to our view type only. */
.workspace-leaf-content[data-type="hyo-plugin-view"] {
  background: var(--background-primary-alt) !important;
}
.is-mobile .workspace-leaf-content[data-type="hyo-plugin-view"] .view-header {
  background: transparent !important;
  border-bottom: none !important;
}
.is-mobile /* White-seam fix (mobile): our panel lives in Obsidian's mobile drawer. In
   light mode the drawer tab header/container is white while our chat is cream, .is-mobile creating a seam above the panel. Paint the whole drawer tab (header + body)
   to match --background-primary-alt. Scoped via :has() to our view only. */
.workspace-drawer-active-tab-container:has([data-type="hyo-plugin-view"]), .is-mobile .workspace-drawer-active-tab-container:has([data-type="hyo-plugin-view"]) .workspace-drawer-active-tab-header, .is-mobile .workspace-leaf-content[data-type="hyo-plugin-view"], .is-mobile .workspace-leaf-content[data-type="hyo-plugin-view"] .view-header {
  background-color: var(--background-primary-alt) !important;
  border-bottom: none !important;
}
.is-mobile /* Wider net for the drawer chrome (the white strip above the tab + the footer
   band below the input). Paint every drawer structural container that wraps our
   view. Scoped via :has() so only the Hyo drawer is affected. */
.workspace-drawer:has([data-type="hyo-plugin-view"]), .is-mobile .workspace-drawer:has([data-type="hyo-plugin-view"]) [class*="workspace-drawer-active-tab"], .is-mobile .workspace-drawer:has([data-type="hyo-plugin-view"]) [class*="workspace-drawer-header"], .is-mobile .workspace-drawer:has([data-type="hyo-plugin-view"]) [class*="workspace-drawer-footer"], .is-mobile .workspace-drawer-active-tab-header:has([data-type="hyo-plugin-view"]) {
  background-color: var(--background-primary-alt) !important;
}
.is-mobile /* Definitive white-seam fix (probe-confirmed, .is-mobile :has supported). Paint every
   drawer structural element the probe flagged white — scoped to the right
   drawer when it hosts our Hyo view, .is-mobile so nothing else is affected. */
.workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]), .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) [class*="workspace-drawer"], .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .workspace-leaf, .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .workspace-leaf-content, .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .view-header, .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .view-content {
  background-color: var(--background-primary-alt) !important;
  border-color: transparent !important;
}
.is-mobile /* The one remaining white band: `metadata-content` in the drawer footer
   (probe-flagged, .is-mobile missed by the drawer-class net). Paint it too. */
.workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .metadata-content, .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .metadata-container, .is-mobile .workspace-drawer.mod-right:has([data-type="hyo-plugin-view"]) .view-content > * {
  background-color: var(--background-primary-alt) !important;
}
.is-mobile /* ============================================================
   Voice-first view (the Blob) — ported from the desktop plugin, .is-mobile adapted for walkie-talkie: the Blob IS the talk button.
   ============================================================ */
.hyo-voiceview {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  /* No overflow:hidden anywhere above the blob — on a short phone view it
     clipped the soft halo into a hard line at the top. The halo is transparent
     at its edges, so with no clip it just fades out naturally. */
}
.is-mobile .hyo-vv-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
}
.is-mobile /* --- the Blob --- */
.hyo-blob {
  width: 160px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
}
.is-mobile .hyo-blob:active .hyo-blob-core { transform: scale(0.94); }
.is-mobile .hyo-blob-core {
  width: 96px;
  height: 96px;
  border-radius: 56% 44% 60% 40% / 48% 62% 38% 52%;
  background: #b9c1cd;
  transition: background 0.4s, width 0.4s, height 0.4s, transform 0.12s;
  animation: hyo-blob-morph 7s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes hyo-blob-morph {
  0%, 100% { border-radius: 56% 44% 60% 40% / 48% 62% 38% 52%; }
  50% { border-radius: 44% 56% 46% 54% / 60% 42% 58% 40%; }
}
.is-mobile .hyo-blob-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.28;
  background: #b9c1cd;
  z-index: 0;
  transition: background 0.4s, opacity 0.4s;
}
.is-mobile .hyo-blob-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  z-index: 0;
}
.is-mobile .hyo-blob.idle .hyo-blob-core { width: 74px; height: 74px; background: #b9c1cd; border-radius: 50%; animation-play-state: paused; }
.is-mobile .hyo-blob.idle .hyo-blob-glow { background: #b9c1cd; opacity: 0.22; }
.is-mobile .hyo-blob.listening .hyo-blob-core { background: #3b6ef5; animation-duration: 4s; }
.is-mobile .hyo-blob.listening .hyo-blob-glow { background: #3b6ef5; opacity: 0.42; }
.is-mobile .hyo-blob.listening .hyo-blob-ring { color: #3b6ef5; animation: hyo-blob-ring 2.2s ease-out infinite; }
.is-mobile .hyo-blob.thinking .hyo-blob-core { background: #7b5ce6; animation-duration: 2.6s; }
.is-mobile .hyo-blob.thinking .hyo-blob-glow { background: #7b5ce6; opacity: 0.42; }
.is-mobile .hyo-blob.speaking .hyo-blob-core { background: #e0932f; width: 120px; height: 120px; animation-duration: 1.7s; }
.is-mobile .hyo-blob.speaking .hyo-blob-glow { background: #e0932f; opacity: 0.5; }
.is-mobile .hyo-blob.speaking .hyo-blob-ring { color: #e0932f; animation: hyo-blob-ring 1.8s ease-out infinite; }
.is-mobile .hyo-blob.busy { cursor: default; }
.is-mobile .hyo-blob.dim .hyo-blob-core { opacity: 0.45; }
@keyframes hyo-blob-ring {
  0% { width: 150px; height: 150px; opacity: 0.32; }
  100% { width: 214px; height: 214px; opacity: 0; }
}
.is-mobile /* --- status text --- */
.hyo-vv-status { text-align: center; }
.is-mobile .hyo-vv-state { font-size: 17px; font-weight: 600; color: var(--text-muted); }
.is-mobile .hyo-vv-doing { font-size: 13px; color: var(--text-muted); margin-top: 3px; min-height: 1.2em; }
.is-mobile .hyo-vv-status.listening .hyo-vv-state { color: #3b6ef5; }
.is-mobile .hyo-vv-status.thinking .hyo-vv-state { color: #7b5ce6; }
.is-mobile .hyo-vv-status.speaking .hyo-vv-state { color: #e0932f; }
.is-mobile /* --- frosted on-screen overlay --- */
.hyo-vv-overlay {
  position: absolute;
  inset: 14px 14px 70px 14px;
  background: color-mix(in srgb, var(--background-primary) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--background-modifier-border) 70%, transparent);
  border-radius: 16px;
  box-shadow: 0 16px 50px var(--background-modifier-box-shadow);
  padding: 12px 16px 16px;
  overflow: auto;
  z-index: 5;
  animation: hyo-vv-overlay-in 0.2s ease-out;
}
@keyframes hyo-vv-overlay-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.is-mobile .hyo-vv-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
}
.is-mobile .hyo-vv-overlay-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c2892f;
}
.is-mobile .hyo-vv-overlay-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 5px;
}
.is-mobile .hyo-vv-overlay-card + .hyo-vv-overlay-card {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--background-modifier-border);
}
.is-mobile .hyo-vv-overlay-card > :first-child { margin-top: 0; }
.is-mobile .hyo-vv-overlay-card > :last-child { margin-bottom: 0; }
.is-mobile /* --- in-view permission prompt --- */
.hyo-vv-perm {
  position: absolute;
  left: 16px; right: 16px; bottom: 70px;
  background: var(--background-primary);
  border: 1px solid color-mix(in srgb, #e0932f 45%, var(--background-modifier-border));
  border-radius: 14px;
  box-shadow: 0 12px 34px var(--background-modifier-box-shadow);
  padding: 14px;
  z-index: 6;
  animation: hyo-vv-overlay-in 0.2s ease-out;
}
.is-mobile .hyo-vv-perm-h { font-size: 12px; font-weight: 700; color: #b98328; margin-bottom: 4px; }
.is-mobile .hyo-vv-perm-txt { font-size: 13px; color: var(--text-normal); margin-bottom: 12px; line-height: 1.4; }
.is-mobile .hyo-vv-perm-txt code { background: var(--background-modifier-hover); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.is-mobile .hyo-vv-perm-btns { display: flex; gap: 8px; }
.is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-allow, .is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-always, .is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-deny {
  flex: 1; border: none; border-radius: 8px; padding: 10px 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-allow { background: var(--interactive-accent); color: var(--text-on-accent); }
.is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-always { background: var(--background-modifier-hover); color: var(--text-normal); }
.is-mobile .hyo-vv-perm-btns button.hyo-vv-perm-deny { background: color-mix(in srgb, var(--text-error) 16%, transparent); color: var(--text-error); }
.is-mobile /* --- back-to-voice bar (above the transcript when flipped open) --- */
.hyo-vv-backbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--background-modifier-border);
}
.is-mobile .hyo-vv-backbar a { color: var(--interactive-accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.is-mobile .hyo-vv-backbar span { font-size: 12px; color: var(--text-muted); }
.is-mobile /* --- voice-view top bar + new conversation --- */
.hyo-vv-topbar { display: flex; justify-content: flex-end; padding: 8px 10px 0; }
.is-mobile .hyo-vv-topbar button.hyo-vv-newbtn {
  border: 1px solid var(--background-modifier-border);
  background: var(--background-primary);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.is-mobile /* --- bottom control bar: all controls together, .is-mobile matching pills --- */
.hyo-vv-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--background-modifier-border);
  /* Solid + above the blob so a large halo can't bleed onto the buttons. */
  position: relative;
  z-index: 1;
  background: var(--background-primary);
}
.is-mobile /* Circular icon buttons, .is-mobile matching the plugin's mic/toggle style. */
.hyo-vv-controls button.hyo-vv-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--background-modifier-border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.is-mobile .hyo-vv-controls button.hyo-vv-ctrl-btn:hover {
  color: var(--text-normal);
  background: var(--background-modifier-hover);
}
.is-mobile .hyo-vv-controls button.hyo-vv-ctrl-end:hover {
  color: var(--text-error);
  border-color: color-mix(in srgb, var(--text-error) 40%, var(--background-modifier-border));
}
.is-mobile /* "show last on screen" pill (re-summon a dismissed overlay) */
.hyo-vv-stage button.hyo-vv-showlast {
  border: 1px solid color-mix(in srgb, #e0932f 40%, var(--background-modifier-border));
  background: color-mix(in srgb, #e0932f 8%, var(--background-primary));
  color: #b98328;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.is-mobile /* ============================================================
   History as a full task screen. Shares the chat top bar; the
   clock button toggles chat <-> this view. Premium list feel:
   soft-shadowed cards, .is-mobile no hard borders, .is-mobile sticky day headers.
   ============================================================ */

.hyo-history-btn { position: relative; }
.is-mobile .hyo-history-btn-active { background: var(--background-modifier-hover); color: var(--interactive-accent); border-radius: 6px; }
.is-mobile .hyo-history-badge {
  position: absolute; top: -3px; right: -4px;
  min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px;
  background: var(--interactive-accent); color: var(--text-on-accent, #fff);
  font-size: 8.5px; font-weight: 700; line-height: 13px; text-align: center;
}
.is-mobile .hyo-ts-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--background-primary-alt); }
.is-mobile /* Filters */
.hyo-ts-filters {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 9px 12px; border-bottom: 1px solid var(--background-modifier-border);
  background: var(--background-primary-alt);
}
.is-mobile .hyo-ts-filters::-webkit-scrollbar { display: none; }
.is-mobile .hyo-ts-filter {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--text-muted);
  background: transparent; border: 1px solid var(--background-modifier-border);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.is-mobile .hyo-ts-filter:hover { background: var(--background-modifier-hover); color: var(--text-normal); }
.is-mobile .hyo-ts-filter-on { background: var(--interactive-accent); border-color: var(--interactive-accent); color: var(--text-on-accent, #fff); }
.is-mobile .hyo-ts-filter-count { font-size: 10px; font-weight: 700; opacity: .75; }
.is-mobile .hyo-ts-filter-empty { opacity: .5; }
.is-mobile .hyo-ts-filter-empty.hyo-ts-filter-on { opacity: 1; }
.is-mobile .hyo-ts-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 14px; }
.is-mobile .hyo-ts-empty { padding: 44px 12px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.is-mobile /* Sticky, .is-mobile legible day headers */
.hyo-ts-group-block { margin-bottom: 2px; }
.is-mobile .hyo-ts-group {
  position: sticky; top: 0; z-index: 2;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-normal); opacity: .85;
  background: var(--background-primary-alt);
  padding: 12px 2px 7px;
  border-bottom: 1px solid var(--background-modifier-border);
  margin-bottom: 8px;
}
.is-mobile /* Premium card: no border, .is-mobile soft shadow, .is-mobile sits above the cream. */
.hyo-ts-card {
  position: relative;
  background: var(--background-primary);
  border-radius: 12px;
  padding: 13px 14px; margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(40,30,20,.05), 0 3px 10px rgba(40,30,20,.05);
  cursor: pointer; transition: box-shadow .14s, background .14s;
}
.is-mobile .hyo-ts-card:hover { background: var(--background-modifier-hover); box-shadow: 0 2px 4px rgba(40,30,20,.07), 0 6px 18px rgba(40,30,20,.08); }
.is-mobile .theme-dark .hyo-ts-card { box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.is-mobile .theme-dark .hyo-ts-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.is-mobile .hyo-ts-card.hyo-ts-closed { opacity: .55; }
.is-mobile .hyo-ts-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.is-mobile .hyo-ts-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text-normal); line-height: 1.3; }
.is-mobile .hyo-ts-pin-mark { flex: none; display: inline-flex; color: var(--interactive-accent); }
.is-mobile .hyo-ts-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-mobile .hyo-ts-rename {
  font-size: 13.5px; font-weight: 600; color: var(--text-normal);
  background: var(--background-primary-alt);
  border: 1px solid var(--interactive-accent); border-radius: 6px;
  padding: 2px 6px; width: 100%; outline: none;
}
.is-mobile /* Chips: attention = red (loud), .is-mobile response = soft terracotta (backlog). */
.hyo-ts-pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.is-mobile .hyo-ts-pill-needs-attention { background: #D64B3F; color: #fff; }
.is-mobile .hyo-ts-pill-needs-response { background: color-mix(in srgb, var(--interactive-accent) 13%, var(--background-primary)); color: color-mix(in srgb, var(--interactive-accent) 82%, var(--text-normal)); }
.is-mobile .hyo-ts-pill-working { background: color-mix(in srgb, var(--color-green) 18%, var(--background-primary)); color: var(--color-green); }
.is-mobile .hyo-ts-pill-closed { background: var(--background-modifier-hover); color: var(--text-muted); }
.is-mobile .hyo-ts-livedot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-green); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--color-green) 25%, transparent); }
.is-mobile .hyo-ts-peek { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.is-mobile .hyo-ts-card-foot { display: flex; align-items: center; margin-top: 9px; }
.is-mobile .hyo-ts-time { font-size: 10.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.is-mobile .hyo-ts-openmark { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--interactive-accent); }
.is-mobile /* Icon actions, .is-mobile absolute top-right so hover never resizes the card. */
.hyo-ts-actions { position: absolute; top: 10px; right: 11px; display: none; align-items: center; gap: 5px; }
.is-mobile .hyo-ts-card:hover .hyo-ts-actions { display: inline-flex; }
.is-mobile .hyo-ts-card:hover .hyo-ts-pill { visibility: hidden; }
.is-mobile .hyo-ts-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; color: var(--text-muted);
  background: var(--background-primary-alt);
  border: 1px solid var(--background-modifier-border); border-radius: 8px; cursor: pointer;
}
.is-mobile .hyo-ts-act:hover { background: var(--background-modifier-hover); color: var(--text-normal); border-color: var(--interactive-accent); }
.is-mobile .hyo-ts-act-on { color: var(--interactive-accent); border-color: var(--interactive-accent); }
.is-mobile .hyo-ts-loadmore {
  display: block; margin: 8px auto 6px; padding: 8px 18px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border); border-radius: 8px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(40,30,20,.05);
}
.is-mobile .hyo-ts-loadmore:hover { background: var(--background-modifier-hover); color: var(--text-normal); }

/* Left-align session panel options (beats Obsidian mobile's centred button default) */
.hyo-session-sheet .hyo-session-opt { justify-content: flex-start; text-align: left; }