/* #region Global Styles and Settings */

:root {
  --bg: #000000;
  --panel: #2e2424;
  --muted: #666;
  --primary: #0f0704;
  --disco-orange: #d7421c;
  --teal: #4ac6aa;
  --border-color: #c0badb;
  --card-bg: #1a1818;
  --card-border: #444;
  --header-height: "60px";
  --secondary-glow: 0 2px 8px rgba(215, 66, 28, 0.2);
  --accent-glow: 0 2px 8px rgba(74, 198, 170, 0.2);
  --scrollbar-thumb-bg: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb-hover-bg: rgba(255, 255, 255, 0.4);
  --intellect: #5cc1d7;
  --psyche: #7556cf;
  --physique: #cb476a;
  --motorics: #e3b734;
  --speech: #cfd5bf;
}

html,
body,
main,
section,
div,
button,
input {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
}

/* #region Fonts and Speaker Formatting */

.color-int {
  color: var(--intellect);
}
.color-psy {
  color: var(--psyche);
}
.color-fys {
  color: var(--physique);
}
.color-mot {
  color: var(--motorics);
}
.color-you {
  color: var(--speech);
}

.speaker,
.dialogue-title .conversation-title {
  text-transform: uppercase;
  font-size: 24px;
}
.card-title.dialogue-title,
.card-title.conversation-title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  font-size: 24px;
}

/* #endregion */

/* Animations disabled class */
body.animations-disabled,
body.animations-disabled * {
  animation: none !important;
  transition: none !important;
}

/* Disable resize handles when resizing is disabled */
.resize-handle.disabled {
  display: none;
}
/* #endregion */
/* #region Scrollbars */
html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-bg);
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-bg);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-bg);
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-bg);
}

.card {
  display: flex;
  &.hidden {
    display: none;
  }
}
.hidden {
  display: none;
}

/* #endregion */
/* #region Loader */
.loader {
  color: var(--teal);
  font-size: medium;
  width: fit-content;
  font-family: monospace;
  clip-path: inset(0 3ch 0 0);
  animation: l4 1s steps(4) infinite;
  @keyframes l4 {
    to {
      clip-path: inset(0 -1ch 0 0);
    }
  }
  &:before {
    content: "Loading...";
  }
}
/* #endregion */
/* #region Type Badges */
.type-badge {
  text-align: center;
  height: fit-content;
  white-space: nowrap;
  display: block;
  box-sizing: border-box;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

  &.active {
    background-color: var(--card-bg);
    border-color: var(--teal);
    box-shadow: var(--accent-glow);
  }

  &.type-orb:not(.active) {
    background-color: #4ac6aa;
    color: #000;
  }

  &.type-task:not(.active) {
    background-color: #d7421c;
    color: #fff;
  }

  &.type-task.active {
    border-color: var(--disco-orange);
    background-color: var(--card-bg);
    color: #fff;
    box-shadow: var(--secondary-glow);
  }

  &.type-flow:not(.active) {
    background-color: #666;
    color: #fff;
  }

  &.type-all:not(.active) {
    background-color: var(--card-bg);
    color: #fff;
  }

  &:hover {
    background-color: var(--card-bg);
    border-color: var(--teal);
    box-shadow: var(--accent-glow);
  }
}
/* #endregion */
/* #region Containers  */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #ffffff;
}

main {
  margin: 0;
  box-sizing: border-box;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  height: 100vh;
  overflow-y: scroll;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  &.hidden {
    display: none;
  }
  .header-container-buttons {
    display: inherit;
    gap: 8px;
    align-items: center;
  }
}
section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.browser-grid {
  display: grid;
  grid-template-columns: 485px 1fr 280px;
  gap: 12px;
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  position: relative;
  &.hidden {
    display: none;
  }
}

.convo-list {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  border: 0;
  display: block;
}

.section {
  display: flex;
  min-height: 0;

  &.hidden {
    display: none;
  }

  h3 {
    margin: 0;
    font-size: 16px;
  }

  h4 {
    margin: 8px 0;
    font-size: 14px;
  }

  .sidebar-close {
    display: none;
  }

  .convo-section {
    overflow: visible;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--card-bg);

    .sidebar-header h3 {
      margin: 0;
    }
  }

  .entries-section {
    flex: 1;
  }

  .entries-section h3 {
    padding: 0;
  }
}
/* #endregion */
/* #region Github */

.github-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.github-link {
  color: var(--teal);
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 4px;
  transition: opacity 0.2s, background 0.2s;
  gap: 8px;
  &.hidden {
    display: none;
  }
}

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

.github-link svg {
  display: block;
}

.centered-footer {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  align-items: center;
}
/* #endregion */
/* #region Search Input */
.search-controls {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;

  .toggle-wrapper {
    display: flex;
  }
  &.hidden {
    display: none;
  }
}

label {
  gap: 10px;
}

.search-input {
  width: 100%;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  /* flex: 5; */
}

.search-input {
  flex: 1;
  box-sizing: border-box;
  padding: 8px 12px 8px 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  height: 39px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
  line-height: 2;
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: var(--accent-glow);
}

.search-input::placeholder {
  color: var(--muted);
}
/* #endregion */

.search-count {
  display: flex;
  &.hidden {
    display: none;
  }
}

/* #region Details table styling */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.details-table th,
.details-table td {
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.details-table th {
  text-align: left;
  color: var(--muted);
  width: 35%;
}

.details-table td {
  color: #eaeaea;
  white-space: pre-wrap;
}

.details-section-header {
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--teal);
}
/* #endregion */
/* #region Checkboxes */
.checkbox-list {
  padding: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 3px;
  transition: background-color 0.2s;
  user-select: none;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-item.select-all {
  font-weight: 700;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.checkbox-item input[type="checkbox"]:indeterminate {
  accent-color: var(--disco-orange);
}

.checkbox-item span {
  flex: 1;
  font-size: 13px;
}

/* #endregion */
/* #region Resize Handles */

.resize-handle {
  position: absolute;
  height: 100%;
  width: 4px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--scrollbar-thumb-bg);
  top: 0;
  z-index: 50;
  transition: background 0.2s;
}

.resize-handle:hover {
  background: var(--scrollbar-thumb-hover-bg);
}

.resize-handle:active {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--teal) 30%,
    var(--teal) 50%,
    var(--teal) 70%,
    transparent 100%
  );
  box-shadow: inset 0 0 12px rgba(74, 198, 170, 0.5),
    0 0 12px rgba(74, 198, 170, 0.4);
}

.resize-handle-left {
  left: var(--handle-left-pos, calc(280px + 6px));
}

.resize-handle-right {
  right: var(--handle-right-pos, calc(280px + 6px));
}
/* #endregion */
/* #region Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  /* toggled via inline style */
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  display: flex;
  &.hidden {
    display: none;
  }
}

.modal {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);

  h3 {
    margin: 0;
    font-size: 16px;
  }
}

.modal-body {
  padding: 12px 16px 16px 16px;
}

button.button-icon.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
}

button.button-icon.help-button-icon {
  padding: 4px 8px 4px 2px;
  display: inline;
  svg {
    transform: translateY(3px);
  }
}

.modal-type-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-type-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
/* #endregion */
/* #region Filters and Search Controls */

.button-row {
  display: flex;
  gap: 6px;
  border-radius: 4px;
  margin-top: 6px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.filter-actions {
  padding: 4px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-dropdown-wrapper {
  flex: 2;
  position: relative;
  display: inline-block;
  &.hidden {
    display: none;
  }
}

.filter-dropdown {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  min-width: 220px;
  &.hidden {
    display: none;
  }
}

.filter-dropdown-button {
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  align-items: center;
  text-align: left;
  transition: background-color 0.2s;
  width: 100%;
}

.filter-dropdown-button:hover {
  background: var(--card-bg);
  border-color: var(--teal);
  color: var(--teal);
  transform: unset;
}

.filter-dropdown-button .dropdown-arrow {
  margin-left: 8px;
  color: var(--teal);
}

.filter-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-search-row .search-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-search-row .search-input {
  flex: 1;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}

.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.filter-controls-row .radio-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-disclaimer {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--card-border);
  line-height: 1.4;
}

/* #endregion */
/* #region Conversation Tree */

.node.leaf-result {
  .highlighted-term {
    font-weight: unset;
    padding: 0;
  }
}

.tree-controls-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-control-btn-row {
  display: flex;
  gap: 6px;
}

.tree-control-btn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  color: #fff;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tree-control-btn:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(74, 198, 170, 0.15);
}

.tree-control-btn.type-badge.type-task.active:hover:not(:disabled) {
  border-color: var(--disco-orange);
  color: var(--disco-orange);
  box-shadow: var(--secondary-glow);
  background-color: var(--card-bg);
}

.tree-control-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tree-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tree-control-btn.icon-only-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 36px;
  aspect-ratio: 1;
}

.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.tree .node {
  margin: 2px 0;
}

.tree .label {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  min-width: 0;
}

.tree .tree-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.tree .type-badge {
  flex-shrink: 0;
}

.tree .toggle {
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree .toggle.toggle-expanded {
  transform: rotate(90deg);
}

.tree .label.highlight-orb .type-badge {
  height: min-content;
  width: min-content;
  font-size: xx-small;
}

.tree .label.highlight-orb:hover {
  color: #4ac6aa;
}

.tree .label.highlight-task:hover {
  color: #d7421c;
}

.tree .children {
  margin-left: 12px;
  display: none;
}

.tree .expanded > .children {
  display: block;
}

.tree .leaf .label {
  padding-left: 6px;
}

.tree .leaf .label:hover {
  text-decoration: underline;
}

.tree .label.selected {
  font-weight: 700;
  color: var(--disco-orange);
  min-width: fit-content;
}

.tree .label.highlight-orb.selected {
  color: #4ac6aa;
}

.tree .label.highlight-task.selected {
  color: #d7421c;
}
/* #endregion */
/* #region History Section */
.history-steps-count {
  text-align: right;
  flex-grow: 1;
}

.history-item .card-title > span:first-child {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.history-item.current-entry {
  background: rgba(34, 106, 168, 0.15);
  border-color: var(--teal);
  cursor: default;
  opacity: 0.85;
}

.history-item.current-entry:hover {
  transform: none;
  box-shadow: none;
  background: rgba(34, 106, 168, 0.15);
}
/* #endregion */
/* #region Home Page */
.home-page-card {
  padding: 24px;
  max-width: 100%;
  overflow-y: auto;
}

.home-page-card h2 {
  margin-top: 0;
  color: var(--teal);
  font-size: 24px;
}

.home-page-card h3 {
  color: var(--disco-orange);
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.home-page-card p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.home-page-card ul {
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.home-page-card ul li {
  margin-bottom: 8px;
}

.home-page-card .hint-text {
  margin-top: 24px;
  text-align: center;
  font-size: 16px;
}

.home-page-card .type-badge {
  display: inline-block;
  text-align: center;
  width: 60px;
  font-size: smaller;
  font-weight: bold;
}
/* #endregion */
/* #region More Details */
.more-details {
  margin-top: 8px;
  flex: 1;
  min-height: 0;
}

.more-details summary {
  color: var(--teal);
  font-weight: 600;
  user-select: none;
  outline: none;
  padding: 8px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.more-details summary:hover {
  color: #5fa3d8;
  text-decoration: underline;
}
/* #endregion */
/* #region Buttons and Icons */

button {
  border-radius: 4px;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  background: var(--teal);
  color: var(--primary);
}

button:hover {
  box-shadow: 0 2px 8px rgba(34, 106, 168, 0.3);
  transform: scale(0.98);
  background: var(--disco-orange);
  color: #ffffff;
}

button:hover:disabled,
button:active:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Generic Button Types */

button:hover:disabled,
button:active:disabled,
button.button-filled:disabled {
  background: var(--teal);
  color: var(--primary);
}

button.button-outline {
  border: 1px solid var(--card-border);
  color: 1px solid var(--card-border);
  box-sizing: border-box;
  background: transparent;
  font-size: 13px;
}

button.button-outline:hover {
  background: var(--card-bg);
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--accent-glow);
}

button.button-outline:hover:disabled,
button.button-outline:active:disabled,
button.button-outline:disabled {
  color: var(--muted);
  background: transparent;
}

button.button-icon {
  display: flex;
  background-color: transparent;
  color: var(--teal);
  box-shadow: none;
  z-index: 1000;

  &.hidden {
    display: none;
  }

  &:active {
    color: var(--teal);
  }

  &:hover {
    background-color: transparent;
    color: var(--disco-orange);
    border-color: var(--disco-orange);
  }

  &:hover:disabled,
  &:disabled,
  &:active:disabled {
    background-color: transparent;
    color: var(--teal);
  }
}

button.button-icon.search-icon-btn {
  color: var(--muted);
  height: 100%;
  margin-right: 8px;
  &:hover:disabled,
  &:disabled,
  &:active:disabled {
    background-color: transparent;
    color: var(--muted);
  }
}

button.button-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  transform: unset;

  &:hover:disabled,
  &:disabled,
  &:active:disabled {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #fff;
  }

  &:hover {
    background: var(--card-bg);
    box-shadow: var(--secondary-glow);
  }

  &:active {
    background: var(--panel);
  }

  .filter-label,
  .filter-value {
    color: var(--teal);
    font-weight: 600;
    font-size: 13px;
  }

  .dropdown-icon {
    color: var(--muted);
    display: flex;
  }

  .dropdown-icon:active,
  .dropdown-icon:hover {
    color: var(--teal);
    box-shadow: none;
  }
}
/* #region Search Buttions */

.search-icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
  &.hidden {
    display: none;
  }
}

.search-icon-btn:hover {
  background: transparent;
  color: var(--teal);
  box-shadow: none;
}

.search-icon-btn:active {
  color: var(--teal);
  background: transparent;
  box-shadow: none;
  transform: none;
}
/* #endregion */
/* #region Toggle Buttons */

.toggle-input-label {
  white-space: nowrap;
  display: flex;
  margin-left: 8px;
}

.toggle-slider {
  display: flex;
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-label {
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.toggle-wrapper .toggle-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.toggle-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-wrapper input[type="checkbox"]:checked + .toggle-slider {
  background: var(--teal);
}

.toggle-wrapper input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* #endregion */
/* #region Icon Buttons */
.undo-icon-button,
.restart-icon-button {
  display: flex;
  background-color: transparent;
  color: white;

  border-color: var(--card-border);
  border-width: 1px;
  border-style: solid;

  &:hover {
    background-color: transparent;
    box-shadow: var(--secondary-glow);
    color: var(--disco-orange);
    border-color: var(--disco-orange);
  }

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  &:hover:disabled {
    background-color: transparent;
    border-color: var(--card-border);
    box-shadow: none;
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
  }
}
/* #endregion */
/* #endregion */
/* #region Text Formating */

h1 {
  margin: 0;
  font-size: 24px;
  padding: 8px 0;
  flex: 1;
  user-select: none;
  transition: color 0.2s, transform 0.2s;
}

h1:hover {
  color: #cbfff3;
  text-shadow: rgba(74, 198, 169, 0.9) 0 0 10px;
  transform: scale(1.02);
}

.small-text {
  font-size: small;
  display: flex;
  margin-top: 0;
}

.muted-text {
  font-size: 13px;
  color: var(--muted);
}

.hint-text {
  color: var(--muted);
  font-size: inherit;
  font-style: italic;
  padding: 8px;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
  &:hover {
    color: var(--disco-orange);
    text-decoration: underline;
  }
}

/* #endregion */
/* #region Sidebars */

.sidebar {
  top: 0;
  position: fixed;
  display: flex;
  box-sizing: border-box;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  width: 280px;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.5);
  z-index: 900;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
  background: var(--bg);
  overflow-y: auto;

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    h3 {
      align-items: baseline;
      display: flex;

      .help-icon {
        margin-left: 6px;
      }
    }

    .sidebar-close {
      display: flex;
    }
  }
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
  display: flex;
  &.hidden {
    display: none;
  }
}

.sidebar-right {
  right: 0;
  transform: translateX(100%);

  .sidebar-close {
    align-self: flex-start;
  }
}

.sidebar-right.open {
  transform: translateX(0);
}

.sidebar-left {
  left: 0;
  transform: translateX(-100%);
  box-shadow: none;

  .sidebar-close {
    align-self: flex-end;
  }
}

.sidebar-left.open {
  transform: translateX(0);
}

.sidebar .scrolling-card {
  flex: 1;
  overflow-y: scroll;
}

.sidebar-toggle-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sidebar-toggle-btn:hover {
  background: var(--teal);
}

.sidebar-toggle-left {
  left: 0;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.sidebar-toggle-right {
  right: 0;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.sidebar-toggle-btn .toggle-icon {
  font-size: 1.2rem;
  writing-mode: horizontal-tb;
  display: none;
}

.sidebar-toggle-btn .toggle-label {
  font-size: 0.75rem;
  font-weight: 500;
}
/* #endregion */
/* #region Screen Size Based Visibility */
/* Desktop */
@media (min-width: 1025px) {
  .mobile-header {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }
  .sidebar-overlay {
    display: none;
  }
  .checkbox-list {
    display: block;
  }
}

/* Small Laptop */
@media (max-width: 1024px) {
  .mobile-header {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Tablet (Landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .search-input-label {
    display: none;
  }

  .filter-dropdown {
    display: unset;
  }
  .filter-dropdown-wrapper {
    display: flex;
    &.hidden {
      display: none;
    }
  }

  .mobile-hide {
    display: none;
  }

  .header-container {
    display: none;
  }
  h1 {
    display: none;
  }
  .modal {
    max-width: 90vw;
  }
}

/* Small Screen Phone */
@media (max-width: 480px) {
  /* None */
}
/* #endregion */
/* #region Responsive View Styling */
/* #region Small Laptop Screen */
@media (max-width: 1024px) {
  main {
    grid-template-rows: auto auto 1fr;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    backdrop-filter: blur(2px);
  }

  .section {
    .sidebar-close {
      display: block;
      background: none;
      border: none;
      color: var(--border-color);
      font-size: medium;
      /* cursor: pointer; */
      padding: 4px 8px;
      line-height: 1;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .sidebar-close:hover {
      opacity: 1;
    }
  }

  .convo-section h3 {
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .browser-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle-btn {
    display: flex;
    &.hidden {
      display: none;
    }
  }

  .clear-filters-btn {
    flex: 0 0 auto;
    min-width: 120px;
  }
}
/* #endregion */
/* #region Tablet */
@media (max-width: 768px) and (orientation: landscape) {
  main {
    padding: 12px;
    gap: 10px;
  }

  .search-input {
    max-width: 200px;
  }

  .browser-grid {
    grid-template-columns: 200px 1fr;
    gap: 10px;
  }

  .entries-section h3 {
    font-size: 14px;
  }
}
/* #endregion */
/* #region Mobile */
@media (max-width: 768px) {
  main {
    box-sizing: border-box;
    height: calc(100vh - var(--header-height));
    padding: 12px;
    gap: 10px;
    grid-template-rows: auto auto 1fr;
  }

  h1 {
    font-size: 20px;
    padding: 4px 0;
  }

  .search-input {
    max-width: 100%;
    min-width: unset;
    padding: 6px 10px;
  }

  button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .browser-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .entries-section {
    min-height: 0;
  }

  .entries-section h3 {
    font-size: 14px;
    margin: 0 0 6px 0;
  }

  .current-entry-card {
    max-height: 200px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .entry-list {
    gap: 6px;
  }

  .entry-list h4 {
    font-size: 12px;
    margin: 6px 0;
  }

  .scrolling-card {
    border-radius: 4px;
    padding: 8px;
    gap: 6px;
  }

  .card {
    padding: 8px;
  }

  .more-details summary {
    font-size: 12px;
    padding: 6px 0;
  }

  .more-details .div {
    gap: 8px;
    padding-right: 4px;
  }

  .muted-text {
    font-size: 11px;
  }

  .mobile-search-screen,
  .mobile-filter-screen,
  .mobile-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 2000;
    &.hidden {
      display: none;
    }
  }

  .mobile-search-screen {
    flex-direction: column;
    overflow: auto;
  }

  .mobile-search-screen[style*="display: block"] {
    display: flex;
  }

  .mobile-search-screen .mobile-search-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 80px;
  }

  .mobile-filter-screen {
    flex-direction: column;
    overflow: auto;
  }

  .mobile-filter-screen .filter-dropdown {
    display: unset;
    max-height: unset;
    position: unset;
    min-width: unset;
  }

  .mobile-filter-screen[style*="display: block"] {
    display: flex;
  }

  .mobile-filter-screen .checkbox-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-header {
    display: flex;
    gap: 12px;
    box-sizing: border-box;
    padding: 8px 12px;
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: var(--panel);
    align-items: center;
  }

  .mobile-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }

  .mobile-header .search-input {
    flex: 1;
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: var(--card-bg);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: left;
  }

  .mobile-header .search-input.mobile-search-trigger {
    color: var(--muted);
  }

  .mobile-search-trigger {
    color: var(--muted);
    font-size: 16px;
  }

  .mobile-search-screen .search-input::placeholder {
    color: var(--muted);
  }

  .mobile-search-screen .search-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
  }

  .mobile-search-options {
    display: flex;
    padding: 8px 16px;
    background: var(--bg);
    flex-shrink: 0;
  }

  .search-count {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--bg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
  }

  /* Mobile Navigation Panel and Filter*/
  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
  }

  .mobile-nav-list li {
    margin: 0;
    padding: 0;
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, opacity 0.2s;
  }

  .mobile-nav-item:active,
  .mobile-nav-item:hover {
    background: rgba(74, 198, 170, 0.1);
    color: var(--teal);
  }

  .mobile-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  button.clear-filter {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .mobile-search-prompt {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
    font-size: 15px;
  }

  .mobile-filter-header {
    display: flex;
    gap: 12px;
    box-sizing: border-box;
    padding: 8px 12px;
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: var(--panel);
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-filter-header h3 {
    margin: 0;
    font-size: 20px;
    flex: 1;
    font-weight: 600;
  }

  .filter-dropdown {
    position: unset;
    background: unset;
    border: unset;
    border-radius: 0;
    box-shadow: unset;
    padding: 0;
  }

  .filter-dropdown .search-input {
    width: 100%;
    padding: 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: #fff;
    font-size: 16px;
    border-radius: 0;
    height: unset;
    box-sizing: border-box;
  }

  .filter-dropdown .search-input::placeholder {
    color: var(--muted);
  }

  .checkbox-list {
    padding: 0;
    min-height: 0;
  }

  .checkbox-list .checkbox-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    background: transparent;
  }

  .checkbox-list .checkbox-item:hover {
    background: transparent;
    box-shadow: none;
  }

  .checkbox-list .checkbox-item:active {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .checkbox-list .checkbox-item:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .checkbox-list .checkbox-item:last-child {
    border-bottom: none;
  }

  .checkbox-list .checkbox-item[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--teal);
  }

  .filter-dropdown .checkbox-list .checkbox-item span {
    flex: 1;
    font-size: 15px;
  }

  .filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--panel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    flex-shrink: 0;
    flex-direction: row;
  }

  .mobile-bottom-sheet {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .mobile-bottom-sheet.active {
    display: block;
  }

  .bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 12px auto 8px;
  }

  .bottom-sheet-content {
    background: var(--panel);
    border-radius: 20px 20px 0 0;
    padding: 0 20px 20px;
    min-height: 300px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    animation: slideUp 0.3s ease-out;
  }

  .bottom-sheet-content h4 {
    margin: 20px 0 16px 0;
    font-size: 20px;
    font-weight: 600;
  }

  .mobile-type-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
  }

  .filter-dropdown label.checkbox-item.checkbox-label.select-all {
    padding: 0;
  }

  .checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 16px;
    accent-color: var(--teal);
  }

  .checkbox-item span {
    font-size: 17px;
    flex: 1;
  }

  .mobile-apply-btn {
    width: 100%;
    padding: 16px;
    background: var(--teal);
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
  }

  body {
    overflow: auto;
  }

  main {
    padding: 0;
    gap: 0;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: auto;
  }

  .mobile-header {
    display: flex;
    box-sizing: border-box;
    height: var(--header-height);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--panel);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    grid-row: 1;
  }

  .mobile-header .search-input-wrapper,
  .mobile-search-trigger-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--muted);

    &.expanded {
      height: 100%;
      input {
        border-radius: 0;
        height: 100%;
        padding-left: 70px;
      }
    }
  }

  .mobile-header .search-input-wrapper {
    width: 100%;
    position: absolute;
    left: 0;
    height: 100%;
  }

  .mobile-search-trigger::placeholder {
    color: var(--muted);
  }

  .mobile-search-trigger-icon {
    position: absolute;
    right: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .browser-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    padding: 0;
    grid-row: 2;
  }

  .entries-section {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    overflow-y: auto;
    padding: 0;
  }

  .home-page-card {
    border-radius: 0;
  }

  .entries-section h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    padding: 12px 12px 0;
  }

  .current-entry-card {
    margin: 0 12px 12px;
  }

  .entry-list {
    margin: 8px 12px 0;
    gap: 2px;
  }

  .entry-list {
    h4 {
      margin: 2px 0 4px 0;
    }
  }

  .button-row {
    padding: 8px 16px;
  }
  .result-item {
    padding: 12px;
    border-radius: 10px;
  }

  .card-title {
    font-size: inherit;
  }
}
/* #endregion */
/* #region Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 18px;
    padding: 4px 0;
  }

  .search-input {
    padding: 4px 8px;
    font-size: 13px;
  }

  button {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
  }

  .current-entry-card {
    max-height: 150px;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    border: 1px solid var(--teal);
  }

  .scrolling-card {
    padding: 6px;
    gap: 4px;
  }

  .entry-list {
    h4 {
      font-size: 11px;
      margin: 4px 0;
    }
  }

  .button-row {
    gap: 4px;
    margin-top: 4px;
  }

  .muted-text {
    font-size: 10px;
  }
}
/* #endregion */
/* #endregion */
/* #region Cards */

.dialogue-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dialogue-content h3 {
  margin: 0 0 8px 0;
  flex-shrink: 0;
}

.card {
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* overflow-y: auto; */
  padding: 12px;
  gap: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--disco-orange);
}

.card-meta {
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.card-body {
  color: #fff;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.card-footer {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.scrolling-card {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px;
  background: var(--card-bg);
  font-size: 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* #endregion */

/* #region Current Entry Card */

.dialogue-content .current-entry-card {
  flex-shrink: 0;
}

.current-entry-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--teal);
  border-radius: 8px;
  padding: 14px;
  background: rgba(34, 106, 168, 0.1);
  text-align: left;
  margin-bottom: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
}

.current-entry-card.expanded {
  flex: 1;
  max-height: none;
}

.current-entry-card.shown {
  visibility: visible;
}

.current-entry-card {
  background: linear-gradient(
    180deg,
    rgba(215, 66, 28, 0.04),
    rgba(34, 34, 34, 0.02)
  );
  border: 1px solid rgba(215, 66, 28, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  padding: 14px;
}

.current-entry-card .speaker {
  font-weight: 800;
  color: var(--disco-orange);
  margin-right: 8px;
}

.card-item.history-item.current-entry {
  background: linear-gradient(
    180deg,
    rgba(215, 66, 28, 0.06),
    rgba(0, 0, 0, 0.02)
  );
  border-left: 4px solid var(--disco-orange);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.card-item.history-item.current-entry .card-title,
.card-item.history-item.current-entry .card-text,
.card-item.history-item.current-entry .speaker {
  color: #fff;
}

.card-item.history-item.current-entry .card-title {
  font-weight: 800;
}
/* #endregion */
/* #region Dialogue Line */
.dialogue-line {
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.dialogue-line .match,
.match {
  background: rgba(215, 66, 28, 0.12);
  color: var(--disco-orange);
  padding: 0 4px;
  border-radius: 3px;
}
/* #endregion */
/* #region Search Results and Entry List */
.result-item.card.card-item {
  min-height: fit-content;
  .highlighted-term {
    font-weight: bold;
    background-color: transparent;
    color: white;
    padding: 0;
  }
}

.search-results,
.mobile-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  display: flex;
  flex-direction: column;
  word-break: break-word;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.result-item.card {
  height: min-content;
}

.result-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
}

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

.result-item .result-title {
  font-weight: 700;
  color: var(--disco-orange);
  font-size: inherit;
}

.result-item .result-snippet {
  color: #ddd;
  font-size: inherit;
  line-height: 1.4;
}

.result-item .result-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.entry-list-header-bar {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  align-content: center;
  align-items: center;

  h4 {
    margin: 4px 0 4px 0;
    display: flex;
    flex-direction: row;
    gap: 4px;
    font-weight: 600;
  }
}
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.entry-list .scrolling-card.compact {
  flex: 0 0 auto;
  max-height: 80px;
}

.entry-list .full-height {
  justify-content: flex-start;
}
/* #endregion */
/* #region User Settings Modal Styles */
.settings-modal {
  max-width: 500px;
  min-width: 300px;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  position: relative;
}

.settings-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
}

.checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  box-sizing: border-box;
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.settings-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--disco-orange);
  border-color: var(--disco-orange);
}

.settings-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.settings-description {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  margin-left: 32px;
  line-height: 1.4;
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
/* #endregion */
