/* X Bot Dashboard — Matrix Terminal */

/* Matrix monospace font for dark mode */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:root {
  --bg: #000000;
  --bg-2: #050505;

  --matrix: #00ff41;
  --matrix-mid: #00cc34;
  --matrix-dim: rgba(0, 255, 65, 0.1);
  --matrix-glow: rgba(0, 255, 65, 0.2);
  --matrix-border: rgba(0, 255, 65, 0.22);

  --brass: #c8881a;
  --brass-light: #e8a832;
  --brass-dim: rgba(200, 136, 26, 0.15);
  --brass-glow: rgba(200, 136, 26, 0.35);
  --brass-border: rgba(200, 136, 26, 0.3);

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(0, 255, 65, 0.14);
  --glass-hover: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);

  --surface: rgba(0, 0, 0, 0.9);
  --surface-raised: rgba(0, 0, 0, 0.95);
  --border: rgba(0, 255, 65, 0.18);
  --border-hover: rgba(0, 255, 65, 0.45);
  --border-focus: var(--matrix);

  --text: #00ff41;
  --text-secondary: #00cc34;
  --text-muted: #00802a;

  --accent: #00ff41;
  --accent-hover: #33ff66;
  --accent-dim: rgba(0, 255, 65, 0.12);
  --accent-glow: rgba(0, 255, 65, 0.25);

  --silver: #00ff41;
  --silver-dim: rgba(160, 255, 192, 0.1);

  --success: #00e676;
  --success-dim: rgba(0, 230, 118, 0.12);
  --danger: #ff1744;
  --danger-dim: rgba(255, 23, 68, 0.15);

  --warm: #ffa000;
  --warm-dim: rgba(255, 160, 0, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.9);
  --shadow-glass-sm: 0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-glass-hover: 0 12px 48px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 255, 65, 0.08);
  --shadow-glow: 0 0 15px rgba(0, 255, 65, 0.12), 0 0 40px rgba(0, 255, 65, 0.04);
  --highlight: inset 0 1px 0 rgba(0, 255, 65, 0.08);
}

/* ── Light Mode ─────────────────────────────────────────────────────── */

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f5;

  --matrix: #111111;
  --matrix-mid: #333333;
  --matrix-dim: rgba(0, 0, 0, 0.05);
  --matrix-glow: rgba(0, 0, 0, 0.06);
  --matrix-border: rgba(0, 0, 0, 0.15);

  --brass: #333333;
  --brass-light: #222222;
  --brass-dim: rgba(0, 0, 0, 0.05);
  --brass-glow: rgba(0, 0, 0, 0.08);
  --brass-border: rgba(0, 0, 0, 0.15);

  --glass: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-hover: rgba(0, 0, 0, 0.04);
  --glass-strong: rgba(0, 0, 0, 0.06);

  --surface: rgba(255, 255, 255, 0.95);
  --surface-raised: rgba(255, 255, 255, 1);
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.25);
  --border-focus: #111111;

  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;

  --accent: #111111;
  --accent-hover: #333333;
  --accent-dim: rgba(0, 0, 0, 0.06);
  --accent-glow: rgba(0, 0, 0, 0.08);

  --silver: #333333;
  --silver-dim: rgba(0, 0, 0, 0.04);

  --success: #1a8a4a;
  --success-dim: rgba(26, 138, 74, 0.1);
  --danger: #cc1133;
  --danger-dim: rgba(204, 17, 51, 0.08);

  --warm: #996600;
  --warm-dim: rgba(153, 102, 0, 0.08);

  --shadow-glass: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-glow: none;
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111111;
}

[data-theme="light"] header {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] header::before,
[data-theme="light"] header::after {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #tab-compose .card,
[data-theme="light"] #tab-ai-studio .card {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] #tab-compose .card:hover,
[data-theme="light"] #tab-ai-studio .card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #tab-compose .card-header,
[data-theme="light"] #tab-ai-studio .card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-header h3,
[data-theme="light"] #tab-compose .card-header h3,
[data-theme="light"] #tab-ai-studio .card-header h3 {
  color: #111111;
}

[data-theme="light"] .login-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .login-logo-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

[data-theme="light"] .login-logo-icon svg {
  fill: #111111;
}

[data-theme="light"] .login-card h2 {
  color: #111111;
}

[data-theme="light"] .auth-mode-tabs {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .auth-mode-tab {
  color: #888;
}

[data-theme="light"] .auth-mode-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #444;
}

[data-theme="light"] .auth-mode-tab.active {
  background: #111;
  color: #fff;
}

[data-theme="light"] .otp-header h3 {
  color: #111;
}

[data-theme="light"] .auth-message.auth-error {
  background: rgba(204, 17, 51, 0.06);
  color: #cc1133;
  border-color: rgba(204, 17, 51, 0.15);
}

[data-theme="light"] .auth-message.auth-success {
  background: rgba(26, 138, 74, 0.06);
  color: #1a8a4a;
  border-color: rgba(26, 138, 74, 0.15);
}

[data-theme="light"] .connected-profile-item {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .connect-x-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tab-nav {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

[data-theme="light"] .tab-btn[data-tab="automation"].active {
  color: #111111;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tab-btn[data-tab="compose"].active {
  color: #111111;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tab-btn[data-tab="ai-studio"].active {
  color: #111111;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tab-btn[data-tab="automation"].active .tab-icon,
[data-theme="light"] .tab-btn[data-tab="compose"].active .tab-icon,
[data-theme="light"] .tab-btn[data-tab="ai-studio"].active .tab-icon {
  filter: none;
}

[data-theme="light"] .btn-accent {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  box-shadow: none;
}

[data-theme="light"] .btn-accent:hover:not(:disabled) {
  background: #333333;
  border-color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

[data-theme="light"] .btn-outline {
  background: transparent;
  color: #444444;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: none;
}

[data-theme="light"] .btn-outline:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.35);
  color: #111111;
}

[data-theme="light"] .btn-profile {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111111;
}

[data-theme="light"] .btn-profile:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-group input[type="text"],
[data-theme="light"] .form-group input[type="email"],
[data-theme="light"] .form-group input[type="password"],
[data-theme="light"] .form-group input[type="number"],
[data-theme="light"] .form-group input[type="datetime-local"],
[data-theme="light"] .form-group textarea {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-group input[type="text"]:focus,
[data-theme="light"] .form-group input[type="email"]:focus,
[data-theme="light"] .form-group input[type="password"]:focus,
[data-theme="light"] .form-group input[type="number"]:focus,
[data-theme="light"] .form-group input[type="datetime-local"]:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #aaaaaa;
}

[data-theme="light"] .radio-group {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

[data-theme="light"] .radio-label.active {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .schedule-toggle-label input[type="checkbox"] {
  background: #e5e5e5;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .schedule-toggle-label input[type="checkbox"]::after {
  background: #999999;
}

[data-theme="light"] .schedule-toggle-label input[type="checkbox"]:checked {
  background: #111111;
  border-color: #111111;
}

[data-theme="light"] .schedule-toggle-label input[type="checkbox"]:checked::after {
  background: #ffffff;
  box-shadow: none;
}

[data-theme="light"] .time-slot-pill {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

[data-theme="light"] .schedule-item {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

[data-theme="light"] .schedule-item:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .dt-date,
[data-theme="light"] .dt-select {
  background: #fafafa;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

[data-theme="light"] .confirm-overlay {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .confirm-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .toast-success {
  background: #ffffff;
  color: #1a8a4a;
  border-color: rgba(26, 138, 74, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast-error {
  background: #ffffff;
  color: #cc1133;
  border-color: rgba(204, 17, 51, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .account-switcher-trigger {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .account-switcher-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: none;
}

[data-theme="light"] #user-info {
  color: #111111;
}

[data-theme="light"] .account-switcher-chevron {
  color: #111111;
}

[data-theme="light"] .account-switcher-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .account-switcher-dropdown::before {
  background: linear-gradient(90deg, transparent, #111111, transparent);
}

[data-theme="light"] .advanced-settings {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .advanced-settings summary {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .advanced-inner {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quick-pick-btn {
  background: #f5f5f5;
  color: #444444;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .quick-pick-btn:hover,
[data-theme="light"] .quick-pick-btn.selected,
[data-theme="light"] #tab-compose .quick-pick-btn:hover,
[data-theme="light"] #tab-compose .quick-pick-btn.selected,
[data-theme="light"] #tab-ai-studio .quick-pick-btn:hover,
[data-theme="light"] #tab-ai-studio .quick-pick-btn.selected {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: none;
}

[data-theme="light"] .result-ok {
  background: rgba(26, 138, 74, 0.06);
  border-color: rgba(26, 138, 74, 0.2);
  box-shadow: none;
}

[data-theme="light"] .result-error {
  background: rgba(204, 17, 51, 0.05);
  border-color: rgba(204, 17, 51, 0.2);
  box-shadow: none;
}

[data-theme="light"] .longform-content {
  background: #f9f9f9;
  border-left-color: #111111;
  color: #111111;
}

[data-theme="light"] .thread-tweet {
  background: #f9f9f9;
  border-left-color: #111111;
}

[data-theme="light"] .logo-icon svg {
  fill: #111111;
}

[data-theme="light"] .sched-num-input {
  color: #111111 !important;
}

/* ── Theme Toggle Button ────────────────────────────────────────────── */

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

/* Dark mode: show sun icon (to switch to light) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

body {
  zoom: 1.25;
  font-family: "Share Tech Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000000;
  letter-spacing: -0.01em;
}


#app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Header — Convex Glassmorphic Plaque ─────────────────────────────── */

header[hidden] {
  display: none !important;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  margin-bottom: 28px;
  position: sticky;
  top: 10px;
  z-index: 100;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 255, 65, 0.2);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 6px 32px rgba(0, 0, 0, 0.8);
}

/* Corner tick marks — plaque/sign decoration */
header::before,
header::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(0, 255, 65, 0.5);
  border-style: solid;
}

header::before {
  top: 5px;
  left: 5px;
  border-width: 1px 0 0 1px;
  border-radius: 3px 0 0 0;
}

header::after {
  bottom: 5px;
  right: 5px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 3px 0;
}

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

.logo-icon {
  width: 34px;
  height: 34px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--matrix);
}

.header-logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.header-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--matrix);
}

#auth-area {
  display: flex;
  align-items: center;
}

/* ── Account Switcher — Radial Dial ──────────────────────────────────── */

#account-switcher {
  position: relative;
}

.account-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid var(--matrix-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--matrix);
  font-family: inherit;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.08);
}

.account-switcher-trigger:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.15);
}

.account-switcher-trigger[aria-expanded="true"] {
  background: rgba(0, 255, 65, 0.12);
  border-color: rgba(0, 255, 65, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

#user-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--matrix);
  letter-spacing: 0.02em;
  line-height: 1;
}

.account-switcher-chevron {
  width: 12px;
  height: 12px;
  color: var(--matrix);
  opacity: 0.6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-switcher-trigger[aria-expanded="true"] .account-switcher-chevron {
  transform: rotate(180deg);
}

/* The dial/radial panel */
.account-switcher-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%);
  min-width: 200px;
  background:
    #000;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 12px 12px 10px 10px;
  box-shadow:
    0 0 0 1px rgba(0, 255, 65, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 255, 65, 0.08);
  z-index: 200;
  padding: 4px 0 6px;
  animation: dialOpen 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top center;
}

/* Dial top arc decoration */
.account-switcher-dropdown::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--matrix), transparent);
  border-radius: 0 0 2px 2px;
}

/* Tick marks at bottom */
.account-switcher-dropdown::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 255, 65, 0.3) 0px,
    rgba(0, 255, 65, 0.3) 2px,
    transparent 2px,
    transparent 8px
  );
}

@keyframes dialOpen {
  from {
    opacity: 0;
    transform: translateX(50%) scaleY(0.7) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) scaleY(1) translateY(0);
  }
}

.account-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0, 255, 65, 0.15);
  color: var(--matrix);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(0, 255, 65, 0.4);
}

.account-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.account-switcher-item:hover {
  background: rgba(0, 255, 65, 0.06);
  color: var(--matrix);
}

.account-switcher-item.active-account {
  background: rgba(0, 255, 65, 0.08);
  border-left-color: var(--matrix);
  color: var(--matrix);
}

.account-switcher-item.active-account:hover {
  background: rgba(0, 255, 65, 0.12);
}

/* Staggered entry animation for dial items */
#account-switcher-list .account-switcher-item:nth-child(1) { animation: itemSlideIn 0.18s 0.04s both; }
#account-switcher-list .account-switcher-item:nth-child(2) { animation: itemSlideIn 0.18s 0.08s both; }
#account-switcher-list .account-switcher-item:nth-child(3) { animation: itemSlideIn 0.18s 0.12s both; }
#account-switcher-list .account-switcher-item:nth-child(4) { animation: itemSlideIn 0.18s 0.16s both; }

@keyframes itemSlideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.account-avatar-active {
  background: rgba(0, 255, 65, 0.15);
  color: var(--matrix);
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.account-label {
  flex: 1;
  text-align: left;
}

.active-check {
  width: 14px;
  height: 14px;
  color: var(--matrix);
  flex-shrink: 0;
}

.account-switcher-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
  margin: 4px 0;
}

.add-account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.1);
  color: var(--matrix);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.account-switcher-item.add-account {
  color: var(--text-secondary);
}

.account-switcher-item.logout-item {
  color: var(--danger);
  padding-left: 44px;
  font-size: 12px;
  opacity: 0.8;
}

.account-switcher-item.logout-item:hover {
  opacity: 1;
  background: rgba(255, 23, 68, 0.08);
  color: var(--danger);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-accent {
  background: rgba(0, 255, 65, 0.12);
  color: var(--matrix);
  border: 1px solid rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.1);
}

.btn-accent:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.2);
  border-color: var(--matrix);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

.btn-accent:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(0, 255, 65, 0.04);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(0, 255, 65, 0.04);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--glass);
  color: var(--text-secondary);
  transform: translateY(-1px);
}

.btn-ghost:active:not(:disabled) {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 23, 68, 0.2);
  border-color: rgba(255, 23, 68, 0.6);
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.15);
  transform: translateY(-1px);
}

.btn-danger:active:not(:disabled) {
  transform: translateY(0);
}

.btn-profile {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 255, 65, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.btn-profile:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.1);
}

.btn-profile:active {
  transform: translateY(0);
}

.btn-profile:disabled {
  opacity: 0.5;
  cursor: wait;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Login ────────────────────────────────────────────────────────────── */

#section-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

.login-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-card {
  background: #000;
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-glass), 0 0 40px rgba(0, 255, 65, 0.06);
}

.login-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.login-logo-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.2);
}

.login-logo-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--matrix);
}

.hogmatix-sprite {
  background-image: url('/hogmatix_sprite.jpg');
  background-size: 200% 100%;
  background-position: 0% 0%;
  animation: glowEyes 2s step-end infinite;
}

@keyframes glowEyes {
  0%   { background-position: 0% 0%; }
  70%  { background-position: 0% 0%; }
  75%  { background-position: 100% 0%; }
  95%  { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.login-logo-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.2);
}

.login-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  color: var(--matrix);
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.login-card .form-group {
  text-align: left;
}

/* ── Auth Mode Tabs (Login / Sign Up) ──────────────────────────────── */

.auth-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.auth-mode-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-mode-tab:hover {
  background: var(--glass-hover);
  color: var(--text-secondary);
}

.auth-mode-tab.active {
  background: var(--accent);
  color: var(--bg);
}

/* ── Auth Message ──────────────────────────────────────────────────── */

.auth-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
}

.auth-message.auth-error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.auth-message.auth-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.auth-forgot-row {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 4px;
}

.auth-forgot-row .link-btn {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.auth-forgot-row .link-btn:hover {
  color: var(--accent);
}

/* ── OTP Verification ──────────────────────────────────────────────── */

.otp-header {
  text-align: center;
  margin-bottom: 20px;
}

.otp-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}

.otp-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.otp-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 12px 16px;
}

.otp-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

.link-btn:hover {
  opacity: 0.8;
}

/* ── Connect X Footer ──────────────────────────────────────────────── */

.connect-x-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.connect-x-email {
  color: var(--text-muted);
}

.connected-profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
}

.connected-profile-item .profile-check {
  color: var(--success);
  font-size: 16px;
}

/* ── Divider ─────────────────────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ── Saved Profiles ──────────────────────────────────────────────────── */

#saved-profiles {
  text-align: left;
}

.saved-profiles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-profile-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.saved-profile-row .btn-profile {
  flex: 1;
}

.btn-remove-profile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-profile:hover {
  background: var(--danger-dim);
  border-color: rgba(255, 23, 68, 0.4);
  color: var(--danger);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.15);
}

.btn-remove-profile:disabled {
  opacity: 0.4;
  cursor: wait;
}

/* ── Tab Navigation — Control Panel ─────────────────────────────────── */

.tab-nav {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 28px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 65, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(0, 255, 65, 0.04);
  border-color: rgba(0, 255, 65, 0.1);
}

/* Automation tab — matrix green when active */
.tab-btn[data-tab="automation"].active {
  color: var(--matrix);
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.1);
}

.tab-btn[data-tab="automation"].active .tab-icon {
  filter: drop-shadow(0 0 3px rgba(0, 255, 65, 0.5));
}

/* Manual tab — brass/steampunk amber when active */
.tab-btn[data-tab="compose"].active {
  color: var(--brass-light);
  background: rgba(200, 136, 26, 0.1);
  border-color: var(--brass-border);
  box-shadow: 0 0 12px rgba(200, 136, 26, 0.1), inset 0 1px 0 rgba(200, 136, 26, 0.1);
}

.tab-btn[data-tab="compose"].active .tab-icon {
  filter: drop-shadow(0 0 3px rgba(200, 136, 26, 0.5));
}

/* Hybrid tab — retro red when active */
.tab-btn[data-tab="ai-studio"].active {
  color: #ff2d55;
  background: rgba(255, 45, 85, 0.08);
  border-color: rgba(255, 45, 85, 0.3);
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.08), inset 0 1px 0 rgba(255, 45, 85, 0.08);
}

.tab-btn[data-tab="ai-studio"].active .tab-icon {
  filter: drop-shadow(0 0 3px rgba(255, 45, 85, 0.5));
}

.tab-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Robot eye blinking animation when automation tab is active */
.tab-btn[data-tab="automation"].active .robot-eye {
  animation: robotBlink 3s ease-in-out infinite;
}

.tab-btn[data-tab="automation"].active .robot-signal {
  animation: robotSignal 1.5s ease-in-out infinite;
  stroke-dasharray: 3 3;
}

@keyframes robotBlink {
  0%, 45%, 55%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.1); opacity: 0.4; }
}

@keyframes robotSignal {
  0%, 100% { opacity: 0; stroke-dashoffset: 0; }
  50% { opacity: 1; stroke-dashoffset: -6; }
}

/* Steampunk gear slow rotation on hover */
.tab-btn[data-tab="compose"]:hover .gear-icon,
.tab-btn[data-tab="compose"].active .gear-icon {
  animation: gearSpin 4s linear infinite;
  transform-origin: center;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards ───────────────────────────────────────────────────────────── */

.card {
  background: #000;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: rgba(0, 255, 65, 0.22);
}

/* Steampunk card in compose tab */
#tab-compose .card {
  border-color: rgba(200, 136, 26, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(200, 136, 26, 0.04);
}

#tab-compose .card:hover {
  border-color: rgba(200, 136, 26, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(200, 136, 26, 0.05);
}

/* Hybrid tab card */
#tab-ai-studio .card {
  border-color: rgba(255, 45, 85, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 45, 85, 0.04);
}

#tab-ai-studio .card:hover {
  border-color: rgba(255, 45, 85, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 45, 85, 0.04);
}

.card-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.08);
}

#tab-compose .card-header {
  border-bottom-color: rgba(200, 136, 26, 0.1);
}

#tab-ai-studio .card-header {
  border-bottom-color: rgba(255, 45, 85, 0.1);
}

.card-header h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--matrix);
  margin-bottom: 4px;
}

#tab-compose .card-header h3 {
  color: var(--brass-light);
}

#tab-ai-studio .card-header h3 {
  color: #ff2d55;
}

.card-header p {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  line-height: 1.6;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group textarea:focus {
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.sched-num-input {
  text-align: center;
  font-size: 20px !important;
  font-weight: 800 !important;
  padding: 8px 6px !important;
  max-width: 100px;
  color: var(--matrix) !important;
}

.label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

.char-count .over {
  color: var(--danger);
  font-weight: 700;
}

.char-count .warn {
  color: #fbbf24;
  font-weight: 600;
}

/* ── Confirm Dialog ─────────────────────────────────────────────────── */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-dialog {
  background: #000;
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 65, 0.06);
  animation: fadeSlideIn 0.2s ease-out;
}

.confirm-dialog p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Radio Group ─────────────────────────────────────────────────────── */

.radio-group {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: transparent;
  border-radius: 6px;
  user-select: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.radio-label:hover {
  color: var(--text-secondary);
  background: rgba(0, 255, 65, 0.04);
}

.radio-label.active {
  background: rgba(0, 255, 65, 0.12);
  color: var(--matrix);
  border: 1px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.1);
}

.radio-label.active:hover {
  background: rgba(0, 255, 65, 0.16);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ── Timezone Display ────────────────────────────────────────────────── */

.tz-display {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  min-height: 16px;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.tz-not-detected {
  color: var(--text-muted);
  font-weight: 400;
}

.tz-detected {
  color: var(--matrix);
}

/* ── Time Slot Pills ─────────────────────────────────────────────────── */

.time-slots-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 2px;
}

.time-slot-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 255, 65, 0.1);
  color: var(--matrix);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.1);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.time-slot-pill-sm {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(0, 255, 65, 0.06);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  font-family: monospace;
}

/* ── Advanced Settings ───────────────────────────────────────────────── */

.advanced-settings {
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.advanced-settings summary {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  background: rgba(0, 255, 65, 0.02);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.advanced-settings summary:hover {
  color: var(--text-secondary);
  background: var(--glass);
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.advanced-settings summary::before {
  content: "›";
  font-size: 14px;
  font-weight: 400;
  transition: transform 0.2s;
  display: inline-block;
  color: var(--text-muted);
}

.advanced-settings[open] summary::before {
  transform: rotate(90deg);
}

.advanced-inner {
  padding: 12px;
  border-top: 1px solid var(--glass-border);
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}

.topic-freq-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.topic-freq-label {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-freq-row select {
  width: 140px;
  flex-shrink: 0;
}

.topic-freq-row.has-cooldown {
  border-left: 2px solid var(--accent, #00ff41);
  padding-left: 8px;
}

.schedule-item-freqs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.freq-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 65, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--accent, #00ff41);
}

/* ── Automation Grid ─────────────────────────────────────────────────── */

.automation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

/* ── Compose Grid ────────────────────────────────────────────────────── */

.compose-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

/* ── Schedule Toggle ─────────────────────────────────────────────────── */

.schedule-toggle-row {
  margin-bottom: 16px;
}

.schedule-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-toggle-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.schedule-toggle-label input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s;
}

.schedule-toggle-label input[type="checkbox"]:checked {
  background: rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.5);
}

.schedule-toggle-label input[type="checkbox"]:checked::after {
  left: 18px;
  background: var(--matrix);
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

/* ── Scheduled Post Items ────────────────────────────────────────────── */

.scheduled-post-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}

.scheduled-post-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--matrix);
  font-family: monospace;
  letter-spacing: 0.04em;
}

.scheduled-post-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
}

.status-badge.pending {
  background: var(--warm-dim);
  color: var(--warm);
  box-shadow: 0 0 8px var(--warm-dim);
}

.status-badge.posting {
  background: var(--warm-dim);
  color: var(--warm);
  box-shadow: 0 0 8px var(--warm-dim);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-badge.posted {
  background: var(--success-dim);
  color: var(--success);
  box-shadow: 0 0 8px var(--success-dim);
}

.status-badge.failed {
  background: var(--danger-dim);
  color: var(--danger);
  box-shadow: 0 0 8px var(--danger-dim);
}

/* ── AI Form Grid ────────────────────────────────────────────────────── */

.ai-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ── Action Row ──────────────────────────────────────────────────────── */

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

.action-row .btn {
  flex: 1;
}

/* ── AI Schedule Row ─────────────────────────────────────────────────── */

.ai-schedule-section {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.ai-schedule-fields {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.ai-schedule-fields .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* ── Results ─────────────────────────────────────────────────────────── */

.result {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  word-break: break-word;
  line-height: 1.5;
  font-family: monospace;
}

.result-ok {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--success);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.08);
}

.result-error {
  background: rgba(255, 23, 68, 0.08);
  border: 1px solid rgba(255, 23, 68, 0.2);
  color: var(--danger);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.08);
}

.stream-status {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.stream-text {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0.85;
  line-height: 1.5;
}

.result a {
  color: var(--matrix);
  font-weight: 700;
  text-decoration: none;
}

.result a:hover {
  text-decoration: underline;
}

.result-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-badge.preview {
  background: rgba(255, 45, 85, 0.1);
  color: #ff2d55;
  border: 1px solid rgba(255, 45, 85, 0.3);
}

.thread-tweet {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  border-left: 2px solid var(--matrix);
}

.thread-tweet .tweet-num {
  display: inline-block;
  min-width: 18px;
  font-weight: 800;
  color: var(--matrix);
  margin-right: 6px;
  font-size: 11px;
}

.longform-content {
  margin-top: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  border-left: 2px solid var(--matrix);
  color: var(--text);
  font-family: inherit;
}

/* ── Preview Edit ────────────────────────────────────────────────────── */

.preview-edit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-left: 2px solid var(--matrix);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}

.preview-edit:focus {
  outline: none;
  border-color: var(--matrix);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.15);
}

.thread-tweet-edit {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.thread-tweet-edit .tweet-num {
  display: inline-block;
  min-width: 18px;
  font-weight: 800;
  color: var(--matrix);
  margin-top: 10px;
  font-size: 11px;
}

.thread-tweet-edit .preview-edit {
  margin-top: 0;
  flex: 1;
}

[data-theme="light"] .preview-edit {
  background: #f9f9f9;
  border-color: rgba(0, 0, 0, 0.15);
  border-left-color: #111111;
  color: #111111;
}

[data-theme="light"] .preview-edit:focus {
  border-color: #111111;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

/* ── Empty State ─────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 28px 16px;
}

.empty-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  margin-bottom: 10px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-hint {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  margin-top: 4px;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

/* ── Schedule Items ──────────────────────────────────────────────────── */

.schedule-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.8);
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(0, 255, 65, 0.03);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-item:hover {
  border-color: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.05);
  transform: translateY(-1px);
}

.schedule-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.schedule-item-profile {
  font-size: 13px;
  font-weight: 800;
  color: var(--matrix);
  margin-right: 8px;
  letter-spacing: 0.02em;
}

.schedule-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.schedule-item-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.schedule-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 4px;
}

.schedule-item-next {
  font-size: 11px;
  font-weight: 700;
  color: var(--matrix);
  margin-top: 5px;
  font-family: monospace;
  letter-spacing: 0.04em;
}

/* ── Status Badges ───────────────────────────────────────────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
  font-family: monospace;
}

.status-badge.active {
  background: var(--success-dim);
  color: var(--success);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.15);
}

.status-badge.paused {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* ── Category Editor ─────────────────────────────────────────────────── */

/* ── Friendly DateTime Picker ─────────────────────────────────────────── */

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-pick-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-pick-btn:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--matrix);
}

.quick-pick-btn.selected {
  background: rgba(0, 255, 65, 0.12);
  border-color: rgba(0, 255, 65, 0.5);
  color: var(--matrix);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

#tab-compose .quick-pick-btn:hover,
#tab-compose .quick-pick-btn.selected {
  background: rgba(200, 136, 26, 0.1);
  border-color: var(--brass-border);
  color: var(--brass-light);
  box-shadow: 0 0 10px rgba(200, 136, 26, 0.1);
}

#tab-ai-studio .quick-pick-btn:hover,
#tab-ai-studio .quick-pick-btn.selected {
  background: rgba(255, 45, 85, 0.08);
  border-color: rgba(255, 45, 85, 0.3);
  color: #ff2d55;
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.1);
}

.datetime-selectors {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dt-date {
  padding: 8px 12px;
  font-size: 13px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

.dt-date:focus {
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.time-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dt-select {
  padding: 8px 8px;
  font-size: 13px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  -webkit-appearance: none;
  appearance: none;
  min-width: 58px;
  text-align: center;
}

.dt-select-sm {
  min-width: 52px;
}

.dt-select:focus {
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.dt-colon {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
}

/* ── Slots Mode Toggle (Automate tab) ────────────────────────────────── */

.slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slots-header label {
  margin-bottom: 0 !important;
}

.slots-mode-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.slots-mode-btn {
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.slots-mode-btn:hover {
  color: var(--text-secondary);
}

.slots-mode-btn.active {
  background: rgba(0, 255, 65, 0.12);
  color: var(--matrix);
  border-color: rgba(0, 255, 65, 0.3);
}

.custom-slots-editor {
  margin-top: 8px;
}

.custom-slots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.custom-slot-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-slot-row .dt-select {
  padding: 6px 6px;
  font-size: 12px;
  min-width: 50px;
}

.custom-slot-row .dt-select-sm {
  min-width: 46px;
}

.custom-slot-row .dt-colon {
  font-size: 14px;
}

.btn-remove-slot {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-remove-slot:hover {
  background: var(--danger-dim);
  border-color: rgba(255, 23, 68, 0.4);
  color: var(--danger);
}

/* ── Toast ────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  z-index: 1000;
  max-width: 90%;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: monospace;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-success {
  background: rgba(0, 0, 0, 0.95);
  color: var(--matrix);
  border: 1px solid rgba(0, 255, 65, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.toast-error {
  background: rgba(20, 2, 4, 0.95);
  color: var(--danger);
  border: 1px solid rgba(255, 23, 68, 0.4);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.2), 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* ── Schedules Divider (kept for JS compat) ──────────────────────────── */

.schedules-divider {
  display: none;
}

/* ── Section Spacing ─────────────────────────────────────────────────── */

section {
  margin-bottom: 24px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  #app {
    padding: 0 16px;
  }

  header {
    top: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
  }

  .automation-grid,
  .compose-grid {
    grid-template-columns: 1fr;
  }

  .ai-form-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 11px;
    gap: 5px;
  }

  .tab-icon {
    width: 15px;
    height: 15px;
  }

  .card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 0 10px;
  }

  .login-card {
    padding: 24px 16px;
  }

  .card {
    padding: 16px;
  }

  .action-row {
    flex-direction: column;
  }

  .tab-btn {
    font-size: 10px;
    padding: 8px 10px;
    gap: 4px;
  }

  .tab-nav {
    padding: 3px;
  }

  .ai-schedule-fields {
    flex-direction: column;
  }
}

/* ── Tag / Chip Input ─────────────────────────────────────────────── */

.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: text;
  transition: all 0.2s;
}

.tag-input-wrap:focus-within {
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tag-input-wrap input[type="text"] {
  flex: 1 1 120px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  min-width: 120px;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid var(--matrix-border);
  background: var(--matrix-dim);
  color: var(--matrix);
  animation: chipIn 0.15s ease-out;
}

@keyframes chipIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.tag-chip .chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--matrix-mid);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.tag-chip .chip-x:hover {
  background: rgba(0, 255, 65, 0.2);
  color: var(--matrix);
}

/* Light-mode overrides */
[data-theme="light"] .tag-input-wrap {
  border-color: var(--border);
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

[data-theme="light"] .tag-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

[data-theme="light"] .tag-chip {
  border-color: var(--border);
  background: var(--bg-2);
  color: var(--text);
}

[data-theme="light"] .tag-chip .chip-x {
  color: var(--text-muted);
}

[data-theme="light"] .tag-chip .chip-x:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text);
}
