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

body {
  font-family: var(--chillicollectivo-font-family);
  background: #120a04;
  color: #f2e9ff;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  --chillicollectivo-tool-accent: #D46E6E;
  --chillicollectivo-tool-accent-rgb: 212, 110, 110;
  --chillicollectivo-tool-accent-light-rgb: 234, 176, 176;
}

/* Chili-Farm: einmal cover, zentriert – kein Kacheln */
body.options-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 10, 4, 0.1) 0%, rgba(18, 10, 4, 0.28) 100%),
    url("icons/options-bg-farm.png") center center / cover no-repeat;
  opacity: 0.84;
  filter: saturate(0.33) brightness(0.94) contrast(1.02);
}

/* Vignette + Seitenfade: Bildränder unsichtbar machen */
body.options-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 78% at 50% 42%, transparent 0%, rgba(18, 10, 4, 0.28) 56%, rgba(18, 10, 4, 0.88) 100%),
    linear-gradient(180deg, rgba(18, 10, 4, 0.72) 0%, rgba(18, 10, 4, 0.08) 12%, transparent 30%, transparent 62%, rgba(18, 10, 4, 0.48) 82%, rgba(18, 10, 4, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 10, 4, 0.72) 0%, rgba(18, 10, 4, 0.32) 7%, transparent 20%, transparent 80%, rgba(18, 10, 4, 0.32) 93%, rgba(18, 10, 4, 0.72) 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 10vh 20px 8vh;
  box-sizing: border-box;
}

.options-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px;
  width: 100%;
}

.options-lead-hint {
  margin-bottom: 12px;
  line-height: 1.45;
  opacity: 0.92;
}

.options-sub-collapse {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 10px 8px;
  background: rgba(0, 0, 0, 0.12);
}

.options-sub-collapse > summary {
  cursor: pointer;
  font-size: 0.92rem;
  padding: 10px 4px;
  list-style: none;
  opacity: 0.9;
}

.options-sub-collapse > summary::-webkit-details-marker {
  display: none;
}

.options-sub-body {
  padding: 0 2px 4px;
}

.options-sub-body .hint:last-child {
  margin-bottom: 0;
}

.options-settings-body {
  padding-top: 4px;
  padding-bottom: 18px;
}

.options-settings-body > .options-sub-collapse {
  margin-top: 0;
  margin-bottom: 10px;
}

.options-settings-body > .options-sub-collapse:last-child {
  margin-bottom: 0;
}

.options-sub-collapse-nested {
  margin-top: 10px;
  margin-bottom: 0;
}

.options-sub-collapse-nested > summary {
  font-size: 0.88rem;
  opacity: 0.85;
}

.options-hero-img {
  width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  animation: options-chili-img-shimmer 2.8s ease-in-out infinite;
}

@keyframes options-chili-img-shimmer {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.38))
      drop-shadow(0 0 18px rgba(253, 224, 71, 0.2));
  }
  50% {
    filter:
      drop-shadow(0 0 14px rgba(253, 224, 71, 0.65))
      drop-shadow(0 0 28px rgba(250, 204, 21, 0.42))
      drop-shadow(0 0 42px rgba(234, 179, 8, 0.18));
  }
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.card#panelVoice {
  margin-top: 0;
}

.header-main {
  flex: 1;
  min-width: 0;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fef3c7;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(250, 204, 21, 0.72),
    0 0 18px rgba(253, 224, 71, 0.48),
    0 0 32px rgba(234, 179, 8, 0.28);
  animation: options-yellow-glow-pulse 2.6s ease-in-out infinite;
}

.header p {
  font-size: 14px;
  color: rgba(254, 243, 199, 0.72);
  text-shadow:
    0 0 6px rgba(250, 204, 21, 0.38),
    0 0 14px rgba(253, 224, 71, 0.22);
}

.card {
  background: rgba(17, 17, 19, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.section {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.options-collapse-out > summary {
  color: rgba(250, 204, 21, 0.82);
}

.options-collapse-out[open] > summary::after {
  color: rgba(250, 204, 21, 0.85);
}

.options-collapse-out > summary:hover {
  color: rgba(253, 224, 71, 0.95);
}

.options-collapse-body textarea {
  margin-top: 4px;
}

.diag-action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px 18px;
}

.diag-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.diag-action-grid-log {
  margin-top: 18px;
  padding-top: 12px;
  padding-bottom: 8px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.diag-action-grid-log .diag-action-col {
  min-width: 148px;
}

.diag-action-status {
  font-size: 12px;
  color: rgba(254, 243, 199, 0.72);
  text-align: center;
  white-space: nowrap;
}

.options-collapse-out .options-collapse-body {
  padding-top: 18px;
}

/* Einheitliches Layout für Lizenz, Out-Zähler & Co. */
.options-section-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.options-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0;
}

.options-field-label {
  font-size: 13px;
  color: #d4cfe8;
}

.options-text-input {
  width: 100%;
  max-width: 300px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2e9ff;
  font-size: 12px;
  line-height: 38px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.options-text-input-short {
  max-width: 92px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.options-text-input::placeholder {
  color: rgba(212, 207, 232, 0.42);
  font-size: 11px;
  line-height: 38px;
}

.options-text-input:focus {
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.45);
}

.options-section-hint {
  max-width: 100%;
  margin: 0;
  text-align: left;
  line-height: 1.5;
}

.hint.diag-log-export-warn {
  margin-top: 8px;
  color: #fbbf24;
  border-left: 3px solid rgba(251, 191, 36, 0.55);
  padding: 8px 0 8px 10px;
  line-height: 1.45;
}

.options-section-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.options-section-status {
  font-size: 12px;
  color: rgba(254, 243, 199, 0.72);
}

.out-target-hint {
  max-width: 100%;
}

.voice-message-log-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-message-log-intro {
  margin-bottom: 12px;
}

.voice-message-log-actions {
  margin-bottom: 12px;
}

.voice-message-log-preview {
  max-height: 280px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(236, 253, 245, 0.92);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.voice-message-log-entry + .voice-message-log-entry {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.voice-message-log-entry-meta {
  font-size: 11px;
  color: rgba(167, 243, 208, 0.72);
  margin-bottom: 4px;
}

.voice-message-log-entry-customer {
  font-size: 12px;
  color: rgba(147, 197, 253, 0.92);
  margin-bottom: 6px;
}

.voice-message-log-entry-text {
  color: rgba(236, 253, 245, 0.96);
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.options-collapse {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.options-collapse:last-child {
  border-bottom: none;
}

.options-collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.7);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.options-collapse > summary::-webkit-details-marker {
  display: none;
}

.options-collapse > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: rgba(242, 233, 255, 0.55);
  transition: transform 0.18s ease, color 0.15s ease;
}

.options-collapse[open] > summary::after {
  content: "−";
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.85);
}

.options-collapse > summary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.92);
}

.options-collapse-body {
  padding: 0 22px 20px;
}

.field-range {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.field-range .label {
  width: 100%;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.range-wrap input[type="range"] {
  flex: 1;
  width: 100%;
  accent-color: var(--chillicollectivo-tool-accent);
}

.range-wrap .hint {
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field-color .color-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-color input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.85);
  cursor: pointer;
}

.preview-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(var(--chillicollectivo-tool-accent-rgb), 0.25);
}

.field-color .hint {
  min-width: 5.5rem;
}

.btn-log-glow {
  background: linear-gradient(145deg, rgba(42, 34, 8, 0.92), rgba(24, 20, 6, 0.96));
  border: 1px solid rgba(250, 204, 21, 0.72);
  color: #fef3c7;
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.18),
    0 0 12px rgba(250, 204, 21, 0.34),
    0 0 24px rgba(253, 224, 71, 0.16);
  animation: options-log-btn-glow 2.6s ease-in-out infinite;
}

.btn-log-glow:hover {
  border-color: rgba(253, 224, 71, 0.92);
  color: #fffbeb;
  box-shadow:
    0 0 0 1px rgba(253, 224, 71, 0.28),
    0 0 18px rgba(250, 204, 21, 0.52),
    0 0 34px rgba(253, 224, 71, 0.24);
}

@keyframes options-log-btn-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, 0.18),
      0 0 10px rgba(250, 204, 21, 0.28),
      0 0 20px rgba(253, 224, 71, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(253, 224, 71, 0.32),
      0 0 18px rgba(250, 204, 21, 0.48),
      0 0 32px rgba(253, 224, 71, 0.22);
  }
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.7);
  margin-bottom: 14px;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  font-size: 14px;
  color: #d4cfe8;
}

select,
input[type="password"],
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f2e9ff;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field select {
  max-width: 260px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.45);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.45;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: #d4cfe8;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-row input:checked + .toggle {
  background: var(--chillicollectivo-tool-accent);
}

.toggle-row.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.toggle-row.is-disabled input:disabled + .toggle {
  background: rgba(255, 255, 255, 0.1);
}

.toggle-row.is-disabled input:disabled + .toggle::after {
  background: rgba(255, 255, 255, 0.55);
}

.toggle-row input:checked + .toggle::after {
  transform: translateX(16px);
  background: #0A0A0B;
}

.hotkey-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-insert-hotkey-block {
  margin: 4px 0 12px;
}

.preview-insert-hotkey-label {
  margin-bottom: 6px;
}

.preview-insert-hotkey-block.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hotkey-value {
  flex: 1;
  min-width: 160px;
  font-size: 14px;
  color: var(--chillicollectivo-tool-accent);
  padding: 8px 0;
}

.btn {
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.15);
  color: var(--chillicollectivo-tool-accent);
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.3);
}

.btn-secondary:hover {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.25);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.06);
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-muted:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d4cfe8;
}

.hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  line-height: 1.5;
}

.hint code {
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.8);
  font-size: 12px;
}

.voice-smileys-scroll {
  overflow-x: auto;
  margin-bottom: 10px;
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.2);
  border-radius: 10px;
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.05);
}

.voice-smileys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.voice-smileys-table th,
.voice-smileys-table td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.1);
}

.voice-smileys-table th {
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.78);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.voice-smileys-th-actions {
  width: 72px;
}

.voice-smileys-th-actions-single {
  width: 44px;
}

.voice-smiley-emoji,
.voice-smiley-trigger {
  width: 100%;
  box-sizing: border-box;
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.06);
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.2);
  border-radius: 6px;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 14px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.voice-smiley-emoji {
  max-width: 72px;
  text-align: center;
  font-size: 20px;
}

.voice-smiley-emoji:focus,
.voice-smiley-trigger:focus {
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--chillicollectivo-tool-accent-rgb), 0.15);
}

.voice-smiley-actions {
  white-space: nowrap;
  text-align: right;
}

.voice-smiley-picker-btn,
.voice-smiley-remove-btn {
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.22);
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.08);
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.82);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.voice-smiley-picker-btn {
  margin-right: 4px;
  font-size: 16px;
}

.voice-smiley-picker-btn.is-open {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.22);
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.45);
  color: var(--chillicollectivo-tool-accent);
}

.voice-smiley-picker-btn:hover {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.18);
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.42);
  color: var(--chillicollectivo-tool-accent);
}

.voice-smiley-remove-btn:hover {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.voice-smiley-picker-row td {
  padding-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.1);
}

.voice-smiley-picker {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.07);
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 0 18px rgba(var(--chillicollectivo-tool-accent-rgb), 0.08);
}

.voice-smiley-picker-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.85);
  margin-bottom: 8px;
}

.voice-smiley-picker-section-spaced {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.14);
}

.voice-smiley-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}

.voice-smiley-picker-item {
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.12);
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.06);
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  padding: 6px 0;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.voice-smiley-picker-item:hover {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.18);
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.35);
  transform: scale(1.08);
}

.voice-smileys-foot {
  margin-top: 4px;
}

.options-collapse-smileys[open] > .options-collapse-body {
  border-left: 2px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.35);
  margin-left: 22px;
  padding-left: 18px;
}

@media (max-width: 640px) {
  .voice-smiley-picker-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.hint.options-notice.is-warning {
  color: #fbbf24;
  border-left: 3px solid rgba(251, 191, 36, 0.55);
  padding-left: 10px;
}

p.options-notice {
  position: relative;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 0;
  padding-bottom: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fef3c7;
  background: linear-gradient(
    105deg,
    #fef3c7 0%,
    #fef3c7 38%,
    #fffbeb 46%,
    #fde047 50%,
    #fffbeb 54%,
    #fef3c7 62%,
    #fef3c7 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    options-footer-shimmer-sweep 3.2s linear infinite,
    options-footer-glow-orbit 3.2s linear infinite;
}

@keyframes options-yellow-glow-pulse {
  0%, 100% {
    color: #fef3c7;
    text-shadow:
      0 0 8px rgba(250, 204, 21, 0.62),
      0 0 18px rgba(253, 224, 71, 0.38),
      0 0 28px rgba(234, 179, 8, 0.2);
  }
  50% {
    color: #fffbeb;
    text-shadow:
      0 0 12px rgba(253, 224, 71, 0.92),
      0 0 26px rgba(250, 204, 21, 0.62),
      0 0 44px rgba(234, 179, 8, 0.34);
  }
}

@keyframes options-footer-shimmer-sweep {
  0% {
    background-position: 130% 0;
  }
  100% {
    background-position: -30% 0;
  }
}

@keyframes options-footer-glow-orbit {
  0% {
    filter: drop-shadow(-9px 0 10px rgba(253, 224, 71, 0.88))
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.42));
  }
  25% {
    filter: drop-shadow(0 -9px 10px rgba(253, 224, 71, 0.88))
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.42));
  }
  50% {
    filter: drop-shadow(9px 0 10px rgba(253, 224, 71, 0.88))
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.42));
  }
  75% {
    filter: drop-shadow(0 9px 10px rgba(253, 224, 71, 0.88))
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.42));
  }
  100% {
    filter: drop-shadow(-9px 0 10px rgba(253, 224, 71, 0.88))
      drop-shadow(0 0 8px rgba(250, 204, 21, 0.42));
  }
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.14);
  color: var(--chillicollectivo-tool-accent);
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.32);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(var(--chillicollectivo-tool-accent-rgb), 0.12);
  z-index: 100;
}

.section-profile-cmds .hint strong {
  color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.85);
  font-weight: 600;
}

.profile-cmds-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.profile-cmds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.profile-cmds-table th,
.profile-cmds-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-cmds-table th {
  position: sticky;
  top: 0;
  background: #141416;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.profile-cmds-table code {
  font-family: var(--chillicollectivo-font-family);
  font-size: 12px;
  color: #c4f5d4;
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-cmds-foot {
  margin-top: 10px;
  margin-bottom: 0;
}

.profile-cmd-sides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.profile-cmd-side-field input,
.profile-cmd-extra input[type="text"] {
  width: 100%;
}

.profile-cmd-extra {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.profile-cmd-extra-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.profile-cmd-toggle {
  margin-top: 4px;
}

.profile-cmd-guide {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(var(--chillicollectivo-tool-accent-rgb), 0.18);
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.05);
}

.profile-cmd-guide-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(196, 245, 212, 0.95);
}

.profile-cmd-guide-block {
  margin-bottom: 16px;
}

.profile-cmd-guide-block:last-child {
  margin-bottom: 0;
}

.profile-cmd-guide-block h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.profile-cmd-guide-block p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.profile-cmd-guide-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.profile-cmd-guide-block li {
  margin-bottom: 7px;
}

.profile-cmd-guide-block li:last-child {
  margin-bottom: 0;
}

.profile-cmd-guide-block code {
  font-family: var(--chillicollectivo-font-family);
  font-size: 12px;
  color: #c4f5d4;
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-cmd-guide-note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.profile-cmd-actions {
  margin-top: 14px;
}

.profile-cmds-table .profile-alias-input {
  width: 100%;
  min-width: 120px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #eef8f0;
  font-size: 12px;
  padding: 6px 8px;
}

.profile-cmds-table .profile-alias-input:focus {
  outline: none;
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.45);
  box-shadow: 0 0 0 2px rgba(var(--chillicollectivo-tool-accent-rgb), 0.12);
}

.profile-cmds-table .profile-cmd-example {
  font-family: var(--chillicollectivo-font-family);
  font-size: 12px;
  color: #c4f5d4;
}

.header-main {
  flex: 1;
  min-width: 0;
}

.options-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.options-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c8c8c8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.options-tab:hover {
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.35);
  color: #fff;
}

.options-tab.is-active {
  background: rgba(var(--chillicollectivo-tool-accent-rgb), 0.14);
  border-color: rgba(var(--chillicollectivo-tool-accent-rgb), 0.45);
  color: var(--chillicollectivo-tool-accent);
}

.section-testharbor .chili-stimmung-actions {
  margin-top: 12px;
}

.section-testharbor .btn-secondary {
  width: 100%;
}

.section-chili-stimmung .chili-stimmung-actions {
  margin-top: 12px;
}

.section-powertool .chili-stimmung-actions {
  margin-top: 12px;
}

.section-chili-stimmung .btn-secondary,
.section-powertool .btn-secondary {
  width: 100%;
}

.chili-stimmung-entry {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chili-stimmung-entry .btn-secondary {
  width: 100%;
  max-width: 22rem;
}

.options-hidden-section:not(.is-unlocked) .options-hidden-summary {
  color: var(--chillicollectivo-muted, #94a3b8);
}

.options-hidden-lock {
  display: inline-block;
  margin-right: 0.35rem;
}

.options-hidden-locked-hint {
  margin: 0;
  padding: 0.35rem 0 0.15rem;
}

.options-hidden-section.is-unlocked .options-hidden-locked-hint {
  display: none;
}

.options-hidden-password-error {
  color: #f87171;
  margin-top: 0.35rem;
}

.options-hidden-section:not(.is-unlocked) #hiddenSectionUnlocked {
  display: none !important;
}

.options-hidden-section.is-unlocked #hiddenSectionPasswordGate {
  display: none !important;
}

.chili-stimmung-feature-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #a0a0a0;
  font-size: 13px;
  line-height: 1.55;
}

.chili-stimmung-feature-list li {
  margin-bottom: 4px;
}

.options-collapse-license summary {
  color: #fde68a;
}

.license-panel {
  gap: 14px;
}

.license-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.license-btn-primary {
  width: 100%;
}

.license-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.license-actions-row .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.license-hint {
  margin: 0;
}

.out-reward-banner {
  width: 100%;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.out-reward-banner-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
}

.out-reward-banner-text {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.out-reward-key {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #f2e9ff;
  word-break: break-all;
}

.out-total-hint {
  color: rgba(254, 243, 199, 0.82);
}

.license-status-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.license-status-text {
  margin: 0;
}

.trial-countdown-box,
.license-countdown-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 110, 110, 0.35);
  background: rgba(212, 110, 110, 0.12);
}

.license-countdown-box.tone-active {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.license-countdown-box.tone-lifetime {
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(34, 84, 61, 0.35);
}

.mic-update-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

.mic-update-banner.is-required {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.14);
}

.mic-update-banner-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #fde68a;
}

.mic-update-banner.is-required .mic-update-banner-title {
  color: #fecaca;
}

.mic-update-banner-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.mic-update-banner-hint {
  margin: 8px 0 0;
}

.mic-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mic-update-status-text {
  margin: 0.35rem 0 0.75rem;
}

.options-collapse-update-shiny {
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.16),
    0 0 14px rgba(248, 113, 113, 0.28),
    0 0 28px rgba(239, 68, 68, 0.12);
  animation: backup-section-glow 2.5s ease-in-out infinite;
}

.options-collapse-update-shiny > summary {
  color: #fecaca;
}

@keyframes backup-section-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.14),
      0 0 10px rgba(248, 113, 113, 0.22),
      0 0 22px rgba(239, 68, 68, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(252, 165, 165, 0.34),
      0 0 18px rgba(248, 113, 113, 0.42),
      0 0 34px rgba(239, 68, 68, 0.18);
  }
}

.license-countdown-box.tone-bonus {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.1);
}

.trial-countdown-box.hidden,
.license-countdown-box.hidden {
  display: none;
}

.trial-countdown-label,
.license-countdown-label {
  font-size: 0.88rem;
  color: var(--options-muted, #9ca3af);
}

.trial-countdown-value,
.license-countdown-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #f4d0d0;
}

.license-countdown-box.tone-active .license-countdown-value {
  color: #bbf7d0;
}

.license-countdown-box.tone-lifetime .license-countdown-value {
  color: #86efac;
}

.license-countdown-box.tone-bonus .license-countdown-value {
  color: #fde68a;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.license-badge-unknown {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.license-badge-active {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
}

.license-badge-trial {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.16);
}

.license-badge-expired,
.license-badge-locked {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.14);
}
