:root {
  --bg: #0b0c0f;
  --border: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(1100px 600px at 20% 0%, rgba(120,120,255,.14), transparent 60%),
              radial-gradient(900px 500px at 85% 10%, rgba(120,120,255,.14), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}


.wrap {
  height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top))
            calc(14px + env(safe-area-inset-right))
            calc(14px + env(safe-area-inset-bottom))
            calc(14px + env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 35, 45, 0.98), rgba(22, 27, 35, 0.98));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10002;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.logo {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  user-select: none;
}
.titles { line-height: 1.1; }
.titles .name { font-size: 14px; font-weight: 650; letter-spacing: .2px; }
.titles .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,80,120,.95);
  box-shadow: 0 0 0 3px rgba(255,80,120,.12);
}
.dot.online {
  background: #39ff14;
  box-shadow: 0 0 0 3px rgba(57,255,20,.18), 0 0 14px rgba(57,255,20,.55);
}

.dot.reconnecting {
  background: #ffa500;
  box-shadow: 0 0 0 3px rgba(255,165,0,.18), 0 0 14px rgba(255,165,0,.55);
  animation: pulse 1s ease-in-out infinite;
}

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

.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

button, .seg {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: transform .05s ease, background .15s ease;
}
button:hover { background: rgba(255,255,255,.09); }
button:active { transform: translateY(1px); }

.main {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 35, 45, 0.98), rgba(22, 27, 35, 0.98));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.cardhead {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

/* Tooltip Styles - matching quest calculator */
.tooltip-trigger {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-trigger::after {
  content: "[?]";
  color: #3498db;
  font-size: 0.9em;
  font-weight: bold;
}

.tooltip-trigger .tooltip {
  visibility: hidden;
  width: 350px;
  background-color: rgba(15, 17, 22, 0.98);
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: normal;
  font-size: 1.28em;
  line-height: 1.5;
  border: 1px solid #3498db;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: none;
  transform: translateY(-5px);
}

.tooltip-trigger:hover .tooltip,
.tooltip-trigger.tooltip-active .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Touch devices: adjust active state animation */
.tooltip-trigger.tooltip-active .tooltip {
  transform: translateY(0) !important;
}

.tooltip b {
  color: #d4af37;
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
  font-size: 1.1em;
}

.tooltip i {
  color: #2ecc71;
  font-style: normal;
}

/* Tooltip overflow and z-index fixes */
.card:has(.tooltip-trigger) {
  overflow: visible !important;
}

.cardhead:has(.tooltip-trigger) {
  overflow: visible !important;
}

/* Karten-Header: feste Höhe damit Location-Box den Rahmen nicht verschiebt */
.card-map .cardhead {
  height: 38px;
  box-sizing: border-box;
}

.mapCol, .side-right, .main {
  overflow: visible !important;
}

/* When hovering a card with tooltip, raise entire card above others */
.card:has(.tooltip-trigger:hover) {
  z-index: 9999 !important;
  position: relative;
}

/* Ensure tooltip is above everything within its context */
.tooltip {
  z-index: 99999 !important;
}

/* Left panels (Karte, Shortcuts): tooltip shifted right */
.mapCol .tooltip {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-10%) translateY(-5px);
  width: 300px;
}

.mapCol .tooltip.tooltip-wide {
  width: 340px;
}

.mapCol .tooltip-trigger:hover .tooltip,
.mapCol .tooltip-trigger.tooltip-active .tooltip {
  transform: translateX(-10%) translateY(0);
}

/* Right panels: tooltip to the left, over terminal */
.side-right .tooltip {
  left: auto !important;
  right: -20px !important;
  width: 320px;
}

/* Tab buttons: pointer cursor, kein tooltip-trigger Verhalten */
.tab-btn {
  cursor: pointer;
  position: relative;
}

/* Tab tooltip: separates [?] Element */
.tab-tooltip-trigger {
  position: relative;
  cursor: help;
  margin-left: 2px;
  font-size: 0.9em;
  font-weight: bold;
  color: #3498db;
}

/* Kein ::after für tab-tooltip-trigger, Text direkt im HTML */
.tab-tooltip-trigger.tooltip-trigger::after {
  display: none;
}

/* Tab tooltips: position below */
.tab-tooltip-trigger .tooltip {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(-5px);
  width: 300px;
  text-align: left;
  cursor: default;
}

.tab-tooltip-trigger:hover .tooltip,
.tab-tooltip-trigger.tooltip-active .tooltip {
  transform: translateX(-50%) translateY(0);
}

/* Tooltip nach oben oeffnend */
.tab-tooltip-trigger .tooltip.tooltip-up {
  top: auto !important;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(5px);
}

.tab-tooltip-trigger:hover .tooltip.tooltip-up,
.tab-tooltip-trigger.tooltip-active .tooltip.tooltip-up {
  transform: translateX(-50%) translateY(0);
}

/* Only show tooltip trigger on active tab */
.tab-btn:not(.active) .tab-tooltip-trigger {
  display: none;
}

/* Inventar-Tab Tooltip weiter nach links */
.tab-btn[data-tab="inventory"] .tab-tooltip-trigger .tooltip {
  transform: translateX(-100%) translateY(-5px);
}

.tab-btn[data-tab="inventory"] .tab-tooltip-trigger:hover .tooltip,
.tab-btn[data-tab="inventory"] .tab-tooltip-trigger.tooltip-active .tooltip {
  transform: translateX(-100%) translateY(0);
}

/* Shortcuts-Tab Tooltip wie Inventar (-100%) */
.tab-btn[data-tab="shortcuts"] .tab-tooltip-trigger .tooltip {
  transform: translateX(-100%) translateY(-5px);
}

.tab-btn[data-tab="shortcuts"] .tab-tooltip-trigger:hover .tooltip,
.tab-btn[data-tab="shortcuts"] .tab-tooltip-trigger.tooltip-active .tooltip {
  transform: translateX(-100%) translateY(0);
}

/* Wide tooltip for Web-Client with command list */
.tooltip.tooltip-wide {
  width: 420px;
}

/* Karten-Legende im Tooltip */
.tooltip-legend {
  display: grid;
  grid-template-columns: 20px 1fr 20px 1fr;
  gap: 4px 8px;
  margin-top: 8px;
  align-items: center;
}

.tooltip-legend img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.tooltip-legend span {
  font-size: 11px;
  color: var(--text);
}

/* Scroll-to-Bottom Button */
.scroll-to-bottom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(30,32,38,.92), rgba(20,22,26,.92));
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity .15s ease, transform .1s ease;
  padding: 0;
}

.scroll-to-bottom:hover {
  opacity: 1;
  background: rgba(255,255,255,.12);
}

.scroll-to-bottom:active {
  transform: translateY(1px);
}

/* Keep terminal scrollable */
#terminal {
  overflow: hidden;
  position: relative;
}

.card-terminal { grid-template-rows: auto 1fr auto; border-top: 1px solid transparent !important; background: transparent !important; position: relative; }

/* Pager-Bar (More-Prompt) */
.pager-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.pager-progress {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.pager-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a9eff, #7bc8ff);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.pager-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.pager-percent {
  font-weight: bold;
  color: #7bc8ff;
  font-size: 13px;
}
.pager-buttons {
  display: flex;
  gap: 6px;
}
#terminal {
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* 78 Zeichen Fix */
#terminal .xterm-screen {
  object-fit: contain;
  width: 100% !important;
  height: auto !important;
}

.xterm-screen { margin-top: auto !important; }
.xterm-viewport { background-color: transparent !important; color-scheme: dark; }
.xterm-viewport::-webkit-scrollbar { width: 6px; }
.xterm-viewport::-webkit-scrollbar-track { background: transparent; }
.xterm-viewport::-webkit-scrollbar-thumb { background: rgba(255,255,255,0); border-radius: 3px; transition: background 0.4s; }
.xterm-viewport.scrolling::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
.xterm { padding-left: 2ch; padding-right: 1ch; }

.mapCol {
  width: 300px !important;
  min-width: 300px !important;
  flex-shrink: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mapCol .card-map { height: 325px; flex-shrink: 0; }
.mapCol .card-chat {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 325px - 100px); /* Viewport minus Karte minus Topbar/Padding */
  overflow: hidden;
}

#mapTerm {
  min-height: 0; height: 100%; width: 100%;
  display: flex !important; justify-content: center !important;
  align-items: flex-start !important; overflow: hidden !important;
  padding-top: 15px;
}

#mapTerm .xterm-viewport { overflow: hidden !important; width: 0px !important; }
#mapTerm .xterm-screen { margin: 0 auto !important; margin-top: 0 !important; }
#mapTerm .xterm { padding: 0 !important; }

.shortcut-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.shortcut-row { display: flex; gap: 6px; }
.sc-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.sc-input:focus { border-color: rgba(255,255,255,0.3); }
.sc-btn { padding: 6px 12px !important; min-width: 50px; }

/* F-Key Anzeige im Go-Button */
.sc-key {
  font-size: 9px;
  color: var(--muted);
  margin-left: 3px;
}

/* Platzhalter links bei festen Shortcuts (gleiche Breite wie Remove-Button) */
.sc-spacer {
  width: 28px;
  flex-shrink: 0;
}

/* Entfernen-Button links vom Input */
.sc-remove-btn {
  width: 28px;
  flex-shrink: 0;
  padding: 0 !important;
  color: #ff6b6b;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 8px;
}
.sc-remove-btn:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.4);
}

.sc-add-btn {
  width: 100%;
  padding: 8px !important;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sc-add-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}
.sc-add-btn.hidden { display: none; }

/* Chat/Communication Panel */
.card-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 150px;
}

.card-chat {
  border-top: none !important;
}

.card-chat .cardhead {
  padding: 0;
  border-bottom: none;
  background: rgba(0,0,0,.15);
}

.card-chat .tab-content {
  display: none;
  min-height: 0;
  overflow: hidden;
}

.card-chat .tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.chat-panel {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 0;
  max-height: 100%;
  /* Nachrichten am unteren Rand ausrichten */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chat-panel::-webkit-scrollbar { width: 6px; }
.chat-panel::-webkit-scrollbar-track { background: transparent; }
.chat-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.chat-placeholder {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}
.chat-message {
  margin-bottom: 4px;
  word-wrap: break-word;
}
.chat-channel {
  font-weight: bold;
}
.chat-channel-allgemein { color: #5ac8ff; }
.chat-channel-abenteuer { color: #ffc85a; }
.chat-channel-info { color: #5aff7a; }
.chat-channel-beileid { color: #aa66cc; }
.chat-channel-tod { color: #ff6b6b; }
.chat-channel-event { color: #ff9f43; }
.chat-channel-grats { color: #ffd700; }
.chat-channel-discord { color: #5865f2; }

.side-right { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; min-height: 0; }

.cmdline-wrap {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
  background: rgba(0,0,0,.18);
}
#cmdline {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: var(--text);
  outline: none; font-size: 15px;
}
#cmdline:focus { border-color: rgba(57,255,20,.55); box-shadow: 0 0 0 2px rgba(57,255,20,.18); }

/* Tab Navigation - Chrome-style */
.card-navigation {
  border-top: none !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-navigation .cardhead {
  padding: 0;
  border-bottom: none;
  background: rgba(0,0,0,.15);
}

.card-terminal .cardhead {
  padding: 0;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(30, 35, 45, 0.98), rgba(22, 27, 35, 0.98));
  border-radius: var(--radius) var(--radius) 0 0;
  height: 38px;
  box-sizing: border-box;
}

.tab-buttons {
  display: flex;
  gap: 0;
  width: 100%;
  overflow: visible !important;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px !important;
  font-size: 12px !important;
  border-radius: 17px 17px 0 0 !important;
  background: rgba(255,255,255,.05) !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.7);
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,.12) !important;
  border-bottom: 2px solid rgba(255,255,255,.3) !important;
}

.tab-btn.active {
  background: rgba(255,255,255,.08) !important;
  border-bottom: 2px solid #3498db !important;
  color: var(--text);
}

.tab-content {
  display: none;
  min-height: 0;
  overflow: hidden;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Inventory - runde Ecken auf dem scrollbaren Container */
.inventory-wrap {
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  color-scheme: dark;
}
.inventory-wrap::-webkit-scrollbar { width: 6px; }
.inventory-wrap::-webkit-scrollbar-track { background: transparent; }
.inventory-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0); border-radius: 3px; transition: background 0.4s; }
.inventory-wrap.scrolling::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-placeholder {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.inventory-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px 4px 12px;
  margin-top: 8px;
  border-bottom: 1px solid var(--border);
}

.inventory-category:first-child {
  margin-top: 0;
}

.inventory-item {
  padding: 6px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inventory-item:hover {
  background: rgba(255,255,255,.08);
}

/* Item Name Container */
.item-name {
  font-size: 16px;
  flex: 1;
  min-width: 0;
}

/* Item Text (Name + Count) - nicht umbrechen */
.item-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status (gezueckt/angezogen) - immer unter dem Namen */
.item-status {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Item Icons - 25% größer (32px → 40px) */
.item-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--text);
  border-radius: 4px;
  flex-shrink: 0;
}

.item-icon-emoji {
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: none;
  flex-shrink: 0;
}

/* Item-Icon Wrapper für Badge-Positionierung */
.item-icon-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.item-icon-wrap .item-count-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
  min-width: 14px;
  text-align: center;
}

/* ANSI Farben für Inventar */
.ansi-bold { font-weight: bold; }
.ansi-black { color: #555; }
.ansi-red { color: #ff5555; }
.ansi-green { color: #55ff55; }
.ansi-yellow { color: #ffff55; }
.ansi-blue { color: #5555ff; }
.ansi-magenta { color: #ff55ff; }
.ansi-cyan { color: #55ffff; }
.ansi-white { color: #ffffff; }

/* Item Tooltip (ESO-Style) */
.item-tooltip {
  position: fixed;
  z-index: 10003;
  min-width: 280px;
  max-width: 320px;
  background: linear-gradient(180deg, rgba(20,22,28,.98), rgba(12,14,18,.98));
  border: 2px solid rgba(180,160,100,.6);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  padding: 16px;
  pointer-events: none;
}

.tooltip-icon {
  text-align: center;
  margin-bottom: 12px;
}

.tooltip-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(0,0,0,.3);
}

.tooltip-name {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.tooltip-rarity {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.rarity-erlesen { color: #55ff55; }
.rarity-meisterlich { color: #6699ff; }
.rarity-legendaer { color: #cc66ff; }
.rarity-episch { color: #ffd700; text-shadow: 0 0 8px rgba(255,215,0,.4); }

.tooltip-type {
  text-align: center;
  font-size: 13px;
  color: rgba(180,160,100,.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tooltip-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,160,100,.4), transparent);
  margin: 10px 0;
}

.tooltip-props {
}

.tooltip-prop {
  font-size: 14px;
  padding: 3px 0;
  color: var(--text);
}

.tooltip-prop .prop-label {
  color: var(--muted);
}

.tooltip-long {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tooltip-long.loading {
  color: rgba(180,160,100,.6);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Qualitäts-/Zustandsbalken - plastischer MMORPG-Stil */
.tooltip-quality {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quality-bar-wrap {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 100%);
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,.6),
    inset 0 -1px 2px rgba(255,255,255,.05),
    0 1px 0 rgba(255,255,255,.05);
  position: relative;
}

.quality-bar-wrap::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  right: 3px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.quality-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 3px rgba(0,0,0,.3),
    0 0 6px currentColor;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,.35) 0%,
      rgba(255,255,255,.1) 40%,
      transparent 50%,
      rgba(0,0,0,.15) 100%
    );
  background-blend-mode: overlay;
}

.quality-percent {
  font-size: 12px;
  min-width: 32px;
  text-align: right;
  color: var(--text);
}

/* Item Kontextmenü */
.item-context-menu {
  position: fixed;
  z-index: 10001;
  min-width: 160px;
  background: rgb(15, 17, 22);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  padding: 6px;
  overflow: hidden;
}

.context-menu-option {
  display: block;
  width: 100%;
  padding: 7px 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.context-menu-option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.context-menu-option:active {
  background: rgba(255, 255, 255, 0.15);
}

.context-menu-option.destructive {
  color: #ff6b6b;
}

.context-menu-option.destructive:hover {
  background: rgba(255, 80, 80, 0.15);
}

.context-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

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

.padWrap {
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.padGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.padGrid button { padding: 42px 16px; font-weight: 650; }

.statusBox { padding: 12px; display: grid; gap: 12px; }
.statRow { display: grid; grid-template-columns: 60px 1fr 56px; gap: 10px; align-items: center; }
.statLabel { font-size: 12px; color: var(--muted); }
.statValue { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }

/* MMORPG Style Status Bars */
.bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 100%);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.6),
    inset 0 -1px 2px rgba(255,255,255,.05),
    0 1px 0 rgba(255,255,255,.05);
  position: relative;
}

.bar::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .25s ease;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 4px rgba(0,0,0,.3),
    0 0 8px currentColor;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,.35) 0%,
      rgba(255,255,255,.1) 40%,
      transparent 50%,
      rgba(0,0,0,.15) 100%
    );
  background-blend-mode: overlay;
}

/* Glas-Reflexion auf den Balken */
.fill::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  right: 3px;
  height: 40%;
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%,
    rgba(255,255,255,.2) 40%,
    transparent 100%
  );
  border-radius: 999px;
  pointer-events: none;
}

/* Untere Spiegel-Reflexion */
.fill::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 6px;
  right: 6px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.15),
    transparent
  );
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

/* Spezifische Glow-Farben */
#hungerFill { background-color: #ffc85a; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.3), 0 0 10px rgba(255,200,90,.5); }
#durstFill { background-color: #5ac8ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.3), 0 0 10px rgba(90,200,255,.5); }
#lpFill { background-color: #5aff7a; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.3), 0 0 10px rgba(90,255,122,.5); }
#kpFill { background-color: #aa66cc; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.3), 0 0 10px rgba(170,102,204,.5); }
#mvFill { background-color: #FFD700; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.3), 0 0 10px rgba(255,215,0,.5); }

/* ========================================
   MUSIK PLAYER
   ======================================== */

.music-control {
  position: relative;
  display: flex;
  align-items: center;
}

.music-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.music-btn:hover {
  background: rgba(255,255,255,.09);
}

.music-btn {
  position: relative;
}

.music-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: opacity .15s ease;
}

.music-btn.muted img {
  opacity: 0.4;
}

.music-btn.muted::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  background: rgba(255,255,255,.85);
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
}

.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  box-sizing: border-box;
  padding: 5px 8px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.15);
}

.eq-col {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  width: 5px;
  height: 22px;
}

.eq-seg {
  width: 5px;
  height: 2px;
  border-radius: 1px;
  background: rgba(52, 152, 219, 0.15);
  transition: background 0.08s, box-shadow 0.08s;
}

/* Segment 1 (unten) = Cyan */
.eq-col .eq-seg:nth-child(1).lit { background: #00d4ff; box-shadow: 0 0 4px rgba(0, 212, 255, 0.5); }
/* Segment 2 = Hellblau */
.eq-col .eq-seg:nth-child(2).lit { background: #2eb5e0; box-shadow: 0 0 4px rgba(46, 181, 224, 0.5); }
/* Segment 3 = Unser Blau */
.eq-col .eq-seg:nth-child(3).lit { background: #3498db; box-shadow: 0 0 4px rgba(52, 152, 219, 0.5); }
/* Segment 4 = Blau-Lila */
.eq-col .eq-seg:nth-child(4).lit { background: #7b6cd6; box-shadow: 0 0 4px rgba(123, 108, 214, 0.5); }
/* Segment 5 = Lila */
.eq-col .eq-seg:nth-child(5).lit { background: #b44ccf; box-shadow: 0 0 4px rgba(180, 76, 207, 0.5); }
/* Segment 6 (oben) = Magenta/Pink */
.eq-col .eq-seg:nth-child(6).lit { background: #e83e8c; box-shadow: 0 0 4px rgba(232, 62, 140, 0.5); }

.music-eq.idle {
  border-color: rgba(52, 152, 219, 0.15);
  box-shadow: none;
}

.music-eq.idle .eq-seg {
  background: rgba(52, 152, 219, 0.08);
  box-shadow: none;
}

.music-slider {
  display: none;
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(30,32,38,.98), rgba(20,22,26,.98));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  z-index: 1000;
}

.music-slider.open {
  display: block;
}

.music-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin: 0;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  outline: none;
  cursor: pointer;
}

.music-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(52,152,219,.5);
}

.music-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(52,152,219,.5);
}

/* ========================================
   SETTINGS BUTTON + DROPDOWN (Topbar)
   ======================================== */

.settings-wrap {
  position: relative;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.6), rgba(64, 78, 204, 0.4));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.15);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.discord-btn:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
}

.discord-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.discord-btn:hover img {
  opacity: 1;
}

.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.15);
  cursor: pointer;
  transition: all 0.15s;
}

.settings-btn:hover {
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.3);
}

.settings-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.settings-btn:hover img {
  opacity: 1;
}

.settings-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgb(15, 17, 22);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  padding: 6px;
  z-index: 10001;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.settings-wrap.open .settings-menu {
  display: block;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.settings-item input[type="checkbox"] {
  accent-color: #3498db;
  cursor: pointer;
}

/* Toggle-Switch */
.toggle-switch {
  position: relative;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #3498db;
}
.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(16px);
  background: #fff;
}

.settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
.settings-section-toggle {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(52,152,219,0.08), rgba(52,152,219,0.03));
  border: 1px solid rgba(52,152,219,0.12);
  transition: all 0.15s;
}
.settings-section-toggle:hover {
  background: linear-gradient(135deg, rgba(52,152,219,0.14), rgba(52,152,219,0.06));
  border-color: rgba(52,152,219,0.25);
}
.settings-section-title {
  flex: 1;
}
.tooltip.tooltip-settings {
  width: 250px;
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) translateY(-5px);
}
.tab-tooltip-trigger:hover .tooltip.tooltip-settings,
.tab-tooltip-trigger.tooltip-active .tooltip.tooltip-settings {
  transform: translateX(0) translateY(0);
}
.settings-section-arrow {
  font-size: 9px;
  color: #3498db;
  margin-right: 6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(52,152,219,0.35);
  border-radius: 4px;
  background: rgba(52,152,219,0.08);
  transition: all 0.2s;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.settings-section-toggle:hover .settings-section-arrow {
  color: #5dade2;
  border-color: rgba(52,152,219,0.5);
  background: rgba(52,152,219,0.15);
}
.settings-section-toggle.open .settings-section-arrow {
  transform: rotate(0);
}
.settings-section-body {
  display: none;
}
.settings-section-body.open {
  display: block;
}

/* ========================================
   QUICKBAR (ueber Eingabezeile)
   ======================================== */

.quickbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.quickbar.hidden {
  display: none;
}

.qb-btn {
  padding: 5px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.15);
  cursor: pointer;
  transition: all 0.15s;
}

.qb-btn:hover {
  color: var(--text);
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.3);
}

.qb-dropdown {
  position: relative;
}

.qb-has-sub {
  padding-right: 6px;
}

.qb-sub {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  background: rgb(15, 17, 22);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  padding: 6px;
  z-index: 100;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.qb-dropdown.open .qb-sub {
  display: block;
}

.qb-sub-btn {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.qb-sub-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px -6px;
  width: calc(100% + 12px);
}

.qb-sub-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.qb-close {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.qb-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --- RESPONSIVE OPTIMIERUNG --- */

@media (max-width: 1100px) {
  .music-control { display: none !important; }
  .fs-button { display: none !important; }
  .settings-wrap { display: none !important; }
  .quickbar { display: none !important; }

  .main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr auto !important;
    grid-template-areas: "term term" "map  move" !important;
    height: calc(100% - 20px);
    gap: 12px;
  }

  .card-terminal { grid-area: term; height: 100% !important; }
  .mapCol { grid-area: map; width: 100% !important; min-width: 0 !important; }
  .side-right { grid-area: move; width: 100% !important; display: block !important; }

  .mobile-hide { display: none !important; }

  /* 5% größere Panels */
  .card-map, .card-navigation {
    height: 340px !important;
    min-height: 340px !important;
  }

  /* Buttons zurück auf kompaktere Größe (wie Desktop) */
  .padGrid { gap: 8px; padding: 20px; }
  .padGrid button {
    aspect-ratio: auto; /* Kein Quadrat-Zwang mehr */
    padding: 12px 10px;
    font-size: 13px;
    border-radius: 12px;
  }

  #cmdline { font-size: 16px; }
}

/* Mobile: siehe mobile.css */

/* Anklickbare Detail-Woerter im Terminal (Cyan) */
#terminal .xterm-fg-6 {
  cursor: pointer !important;
}

/* ========================================
   AUSRÜSTUNG TAB - WoW Style Equipment
   ======================================== */

.equipment-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(40,35,30,.3) 0%, transparent 70%);
}

.equipment-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0 5px 0;
}

/* Slot-Spalten links/rechts */
.equip-slots-left,
.equip-slots-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Einzelner Equipment-Slot */
.equip-slot {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, rgba(40,35,30,.9), rgba(25,22,18,.95));
  border: 2px solid rgba(120,100,60,.5);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.equip-slot:hover {
  border-color: rgba(200,170,80,.8);
  box-shadow: 0 0 8px rgba(200,170,80,.3);
}

.equip-slot::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 4px;
  pointer-events: none;
}

/* Slot-Placeholder Icons (Silhouetten) */
.equip-slot::after {
  font-size: 18px;
  opacity: 0.3;
  color: rgba(180,160,120,.6);
}

.equip-slot[data-slot="helm"]::after { content: '⛑'; }
.equip-slot[data-slot="amulett"]::after { content: '📿'; }
.equip-slot[data-slot="ruestung"]::after { content: '🛡'; }
.equip-slot[data-slot="handschuhe"]::after { content: '🧤'; }
.equip-slot[data-slot="guertel"]::after { content: '➖'; }
.equip-slot[data-slot="hose"]::after { content: '👖'; }
.equip-slot[data-slot="stiefel"]::after { content: '👢'; }
.equip-slot[data-slot="ring"]::after { content: '💍'; }
.equip-slot[data-slot="sonstig1"]::after,
.equip-slot[data-slot="sonstig2"]::after,
.equip-slot[data-slot="sonstig3"]::after { content: '📦'; }
.equip-slot[data-slot="waffe"]::after { content: '🗡️'; }
.equip-slot[data-slot="schild"]::after { content: '🛡'; }

/* Wenn Slot belegt ist, Placeholder verstecken */
.equip-slot.equipped::after {
  display: none;
}

/* Equipment Slot Tooltips */
.equip-tooltip {
  visibility: hidden;
  width: 200px;
  background-color: rgba(15, 17, 22, 0.98);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  position: absolute;
  z-index: 10000;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s ease;
  font-weight: normal;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid #3498db;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
}

.equip-tooltip b {
  color: #d4af37;
  display: block;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #444;
  font-size: 14px;
}

.equip-slot:hover .equip-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Slot-Tooltip verstecken wenn Item ausgerüstet ist */
.equip-slot.equipped .equip-tooltip {
  display: none !important;
}

/* Rechte Slots: Tooltip nach links */
.equip-tooltip-left {
  left: auto;
  right: calc(100% + 10px);
}

.equip-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
}

/* Charakter-Bereich Mitte */
.equip-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.char-portrait {
  width: 484px;
  height: 500px;
  background: linear-gradient(180deg, rgba(30,30,40,.6), rgba(15,15,20,.8));
  border: 2px solid rgba(100,90,70,.4);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.char-portrait canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.char-portrait canvas:active {
  cursor: grabbing;
}

/* Waffe/Schild Slots unter dem Charakter */
.equip-weapon-slots {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.equip-slot-weapon {
  width: 56px;
  height: 56px;
}

/* Terminal Tabs im mittleren Panel */
.terminal-tabs {
  display: flex;
  gap: 0;
  overflow: visible !important;
}

.card-terminal .tab-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.card-terminal .tab-content.active {
  display: flex;
  flex-direction: column;
}

.card-terminal .tab-content[data-tab="terminal"] {
  /* Terminal braucht volle Höhe */
}

.card-terminal .tab-content[data-tab="equipment"] {
  overflow-y: auto;
}

/* ========================================
   INVENTAR GRID (36 Slots unten)
   ======================================== */

.equip-inventory {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 720px;
}

/* Befehlszeile im Equipment-Tab */
.equip-cmdline-wrap {
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
}

#equipCmdline {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  font-size: 14px;
}

#equipCmdline:focus {
  border-color: rgba(57,255,20,.55);
  box-shadow: 0 0 0 2px rgba(57,255,20,.18);
}


.equip-inv-grid {
  display: grid;
  grid-template-columns: repeat(12, 52px);
  gap: 6px;
  padding: 12px;
  justify-content: center;
}

.equip-inv-slot {
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.equip-inv-slot:hover {
  background: rgba(60,55,45,.95);
  box-shadow: 0 0 8px rgba(255,255,255,.15);
}

.equip-inv-slot:not(.empty):hover {
  transform: scale(1.05);
}

.equip-inv-slot.empty {
  background: rgba(30,28,25,.6);
  border: 2px dashed rgba(100,90,70,.3);
  border-radius: 6px;
  cursor: default;
}

.equip-inv-slot.empty:hover {
  background: rgba(40,38,32,.7);
  transform: none;
}

.equip-inv-slot img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 2px solid var(--text);
  border-radius: 4px;
  background: rgba(0,0,0,.3);
}

.equip-inv-emoji {
  font-size: 24px;
  line-height: 1;
}

/* Gefüllte Equipment-Slots um den Charakter */
.equip-slot.equipped {
  background: rgba(20,18,15,.95);
  border-color: var(--text);
}

.equip-slot img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 2px solid var(--text);
  border-radius: 4px;
  background: rgba(0,0,0,.3);
}

/* Item-Anzahl Badge */
.equip-inv-slot .item-count-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

/* Qualitäts-Rahmen (optional für später) */
.equip-slot.quality-common { border-color: rgba(160,160,160,.6); }
.equip-slot.quality-uncommon { border-color: rgba(30,255,0,.6); }
.equip-slot.quality-rare { border-color: rgba(0,112,221,.7); }
.equip-slot.quality-epic { border-color: rgba(163,53,238,.7); }
.equip-slot.quality-legendary { border-color: rgba(255,128,0,.8); }

/* Drag & Drop für Equipment-Inventar */
.equip-inv-slot[draggable="true"] {
  cursor: grab;
}

.equip-inv-slot[draggable="true"]:active {
  cursor: grabbing;
}

.equip-inv-slot.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  cursor: grabbing;
}

.equip-inv-slot.drag-over {
  background: rgba(52, 152, 219, 0.3) !important;
  border: 2px solid rgba(52, 152, 219, 0.8) !important;
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.equip-inv-slot.drag-over.empty {
  border-style: solid !important;
}

/* Drag & Drop für Equipment-Slots um den Charakter */
.equip-slot[draggable="true"] {
  cursor: grab;
}

.equip-slot[draggable="true"]:active {
  cursor: grabbing;
}

.equip-slot.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.equip-slot.drag-over {
  background: rgba(52, 152, 219, 0.3) !important;
  border-color: rgba(52, 152, 219, 0.8) !important;
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

/* ========================================
   AUTOCOMPLETE (Inline Ghost-Text)
   ======================================== */

.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-ghost {
  position: absolute;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
  white-space: pre;
  display: none;
  z-index: 0;
}

/* Haupt-Befehlszeile - exakt gleiche Werte wie #cmdline */
.cmdline-wrap .autocomplete-ghost {
  top: 14px;  /* gleich wie padding-top von #cmdline */
  font-size: 15px;
  font-family: inherit;
  line-height: normal;
}

/* Equipment-Tab Befehlszeile - exakt gleiche Werte wie #equipCmdline */
.equip-cmdline-wrap .autocomplete-ghost {
  top: 12px;  /* gleich wie padding-top von #equipCmdline */
  font-size: 14px;
  font-family: inherit;
  line-height: normal;
}

/* ========================================
   TRIGGER SYSTEM
   ======================================== */

.triggers-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.triggers-container {
  display: flex;
  flex: 1;
  gap: 10px;
  min-height: 0;
}

/* Trigger-Liste (links) */
.triggers-list-panel {
  width: 220px;
  display: flex;
  flex-direction: column;
  background: rgba(20, 35, 50, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.triggers-list-header {
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border-bottom: 1px solid rgba(52, 152, 219, 0.3);
  color: #3498db;
  font-size: 12px;
  font-weight: bold;
}

.triggers-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.triggers-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-align: center;
  padding: 20px 10px;
}

.trigger-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(30, 45, 60, 0.5);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.trigger-item:hover {
  background: rgba(40, 60, 80, 0.6);
  border-color: rgba(52, 152, 219, 0.4);
}

.trigger-item.active {
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
}

.trigger-item-checkbox {
  margin-right: 8px;
  cursor: pointer;
}

.trigger-item-name {
  flex: 1;
  font-size: 12px;
  color: #c0d0e0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-item-edit {
  padding: 2px 6px;
  font-size: 10px;
  color: #3498db;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.trigger-item-edit:hover {
  opacity: 1;
}

.trigger-new-btn {
  margin: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.8), rgba(22, 44, 70, 0.6));
  border: 1px solid rgba(52, 152, 219, 0.4);
  border-radius: 4px;
  color: #3498db;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.trigger-new-btn:hover {
  background: linear-gradient(135deg, rgba(52, 84, 120, 0.9), rgba(42, 64, 90, 0.7));
  border-color: rgba(52, 152, 219, 0.6);
}

/* Bearbeitungs-Panel (rechts) */
.triggers-edit-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(20, 35, 50, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.triggers-edit-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: rgba(52, 152, 219, 0.5);
  font-size: 13px;
  line-height: 1.6;
  padding: 20px;
}

.triggers-edit-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.triggers-edit-header {
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border-bottom: 1px solid rgba(52, 152, 219, 0.3);
  color: #3498db;
  font-size: 12px;
  font-weight: bold;
}

.trigger-form {
  flex: 1;
  padding: 12px;
}

.trigger-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.trigger-form-row label {
  width: 80px;
  font-size: 12px;
  color: #90b0c0;
  flex-shrink: 0;
}

.trigger-form-row input[type="text"],
.trigger-form-row input[type="number"] {
  flex: 1;
  padding: 6px 10px;
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 4px;
  color: #c0d0e0;
  font-size: 12px;
}

.trigger-form-row select {
  flex: 1;
  padding: 6px 30px 6px 10px;
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 4px;
  color: #c0d0e0;
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233498db' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.trigger-form-row select:hover {
  border-color: rgba(52, 152, 219, 0.5);
  background-color: rgba(20, 35, 50, 0.9);
}

.trigger-form-row input[type="number"] {
  width: 70px;
  flex: none;
}

.trigger-form-row input:focus,
.trigger-form-row select:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.6);
}

.trigger-form-section {
  margin: 14px 0 8px 0;
  padding: 4px 8px;
  background: rgba(52, 152, 219, 0.15);
  border-left: 3px solid #3498db;
  color: #3498db;
  font-size: 11px;
  font-weight: bold;
}

.trigger-suffix {
  font-size: 12px;
  color: #90b0c0;
}

.trigger-sound-test {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: 6px;
  border-radius: 4px;
  border: 1px solid rgba(52, 152, 219, 0.3);
  background: rgba(20, 35, 50, 0.6);
  color: #3498db;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trigger-sound-test:hover {
  background: rgba(52, 152, 219, 0.2);
}

/* Farbwähler */
.trigger-color-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trigger-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 4px;
}

.trigger-color-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.1s;
}

.trigger-color-swatch:hover {
  border-color: #fff;
  transform: scale(1.3);
  z-index: 1;
}

.trigger-color-swatch.selected {
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.trigger-color-hex-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trigger-color-hex-row input {
  width: 80px;
  flex: none;
  padding: 6px 10px;
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 4px;
  color: #c0d0e0;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

.trigger-color-hex-row input:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.6);
}

.trigger-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trigger-form-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.trigger-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.trigger-btn-save {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(27, 94, 32, 0.6));
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #a5d6a7;
}

.trigger-btn-save:hover {
  background: linear-gradient(135deg, rgba(56, 142, 60, 0.9), rgba(46, 125, 50, 0.7));
}

.trigger-btn-delete {
  background: linear-gradient(135deg, rgba(183, 28, 28, 0.6), rgba(127, 25, 25, 0.4));
  border: 1px solid rgba(239, 83, 80, 0.4);
  color: #ef9a9a;
}

.trigger-btn-delete:hover {
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.7), rgba(183, 28, 28, 0.5));
}

.trigger-btn-test {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.6), rgba(21, 101, 192, 0.4));
  border: 1px solid rgba(66, 165, 245, 0.4);
  color: #90caf9;
}

.trigger-btn-test:hover {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.7), rgba(25, 118, 210, 0.5));
}

/* Trigger-Log (unten) */
.triggers-log-panel {
  height: 100px;
  display: flex;
  flex-direction: column;
  background: rgba(20, 35, 50, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.triggers-log-header {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(32, 64, 100, 0.6), rgba(22, 44, 70, 0.4));
  border-bottom: 1px solid rgba(52, 152, 219, 0.3);
  color: #3498db;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.trigger-log-clear {
  cursor: pointer;
  opacity: 0.6;
  font-weight: normal;
}

.trigger-log-clear:hover {
  opacity: 1;
}

.triggers-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.triggers-log-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.trigger-log-entry {
  padding: 2px 0;
  color: #a0a0a0;
}

.trigger-log-entry .time {
  color: #808080;
}

.trigger-log-entry .name {
  color: #c9a227;
}

.trigger-log-entry .action {
  color: #8bc34a;
}

/* ========================================
   QUESTLOG PANEL (linke Spalte)
   ======================================== */

.questlog-panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
}

.ql-toggle {
  display: flex;
  gap: 6px;
  padding: 6px;
  position: sticky;
  top: 0;
  background: rgba(22, 27, 35, 0.98);
  z-index: 1;
}

.ql-toggle-btn {
  flex: 1;
  padding: 7px 10px !important;
  font-size: 11px !important;
  font-weight: bold;
  background: linear-gradient(135deg, rgba(32,64,100,0.6), rgba(22,44,70,0.4)) !important;
  border: 1px solid rgba(52,152,219,0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 8px rgba(52,152,219,0.15);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.ql-toggle-btn:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(42,74,110,0.7), rgba(32,54,80,0.5)) !important;
  border-color: rgba(52,152,219,0.5) !important;
  box-shadow: 0 0 12px rgba(52,152,219,0.3);
}

.ql-toggle-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(52,152,219,0.4), rgba(32,100,160,0.3)) !important;
  border-color: rgba(52,152,219,0.6) !important;
  box-shadow: 0 0 12px rgba(52,152,219,0.35);
}

.ql-view { display: none; padding: 8px; }
.ql-view.active { display: block; }

/* Aktive Quest-Karte */
.ql-active-quest {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(52,152,219,0.08);
  border: 1px solid rgba(52,152,219,0.2);
  border-radius: 8px;
  position: relative;
}

.ql-active-name {
  font-size: 12px;
  font-weight: bold;
  color: #3498db;
  padding-right: 20px;
}

.ql-active-task {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  padding-right: 20px;
  line-height: 1.4;
}

.ql-active-label {
  color: #f1c40f;
  font-weight: bold;
}

.ql-active-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(255,107,107,0.1) !important;
  border: 1px solid rgba(255,107,107,0.3) !important;
  border-radius: 50%;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  opacity: 0.6;
  transition: all 0.15s;
}

.ql-active-remove:hover {
  opacity: 1;
  background: rgba(255,107,107,0.25) !important;
  border-color: rgba(255,107,107,0.5) !important;
}

/* Alle Quests - Gruppen */
.ql-group {
  margin-bottom: 8px;
}

.ql-group-header {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(52,152,219,0.08), rgba(52,152,219,0.03));
  border: 1px solid rgba(52,152,219,0.12);
  transition: all 0.15s;
}

.ql-group-header:hover {
  background: linear-gradient(135deg, rgba(52,152,219,0.14), rgba(52,152,219,0.06));
  border-color: rgba(52,152,219,0.25);
}

.ql-group-arrow {
  font-size: 9px;
  color: #3498db;
  margin-right: 6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(52,152,219,0.35);
  border-radius: 4px;
  background: rgba(52,152,219,0.08);
  transition: all 0.2s;
  flex-shrink: 0;
}

.ql-group-header:hover .ql-group-arrow {
  color: #5dade2;
  border-color: rgba(52,152,219,0.5);
  background: rgba(52,152,219,0.15);
}

.ql-group-header.collapsed .ql-group-arrow {
  transform: rotate(-90deg);
}

.ql-group-name {
  flex: 1;
}

.ql-group-count {
  color: var(--muted);
  font-weight: normal;
  font-size: 10px;
  display: none;
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 8px;
}

.ql-group-header.collapsed .ql-group-count {
  display: inline;
}

.ql-group-hint {
  color: var(--muted);
  font-weight: normal;
  font-size: 10px;
}

.ql-group-header.collapsed .ql-group-hint,
.ql-group-header.collapsed .ql-group-arrow-hint {
  display: none;
}

.ql-group-arrow-hint {
  color: var(--muted);
  font-size: 14px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ql-group-list {
  padding: 4px 0 0 0;
}
.ql-group-list.collapsed { display: none; }

.ql-quest-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  margin: 2px 0;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.ql-quest-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.ql-quest-name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.ql-quest-ap {
  color: #0ff;
  margin-right: 8px;
  font-size: 9px;
  flex-shrink: 0;
  background: rgba(0,255,255,0.08);
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0,255,255,0.15);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ql-quest-pin {
  background: none !important;
  border: none !important;
  color: #555;
  padding: 0 !important;
  font-size: 16px !important;
  width: 24px;
  margin-right: -6px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ql-quest-pin:hover {
  color: #f1c40f;
  transform: scale(1.15);
}

.ql-quest-pin.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.ql-quest-pin.pinned {
  color: #f1c40f;
  text-shadow: 0 0 6px rgba(241,196,15,0.4);
}

.ql-placeholder {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px 8px;
  font-size: 11px;
}
