:root {
  --theme-color: #146ef5;
  --theme-shadow: rgba(20, 110, 245, 0.12);
  --theme-color-yellow: #eecf34;
  --theme-shadow-yellow: rgba(238, 207, 52, 0.12);
  color-scheme: light;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, #f7fbff, #e6f0ff 25%, #f8faff 50%);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

#root {
  width: min(960px, 100%);
  padding: 48px 24px;
}

.options_shell {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.08);
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.options_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin: 0 0 8px;
}

.title {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 20px;
  font-size: 16px;
  color: #334155;
  max-width: 600px;
}

.lede.translation {
  font-size: 15px;
  color: #475569;
  margin-top: -8px;
}

.json_badge {
  margin: 0;
  align-self: flex-start;
  font-size: 12px;
  color: #93a0b1;
  opacity: 0.8;
  white-space: nowrap;
}

a.json_badge {
  text-decoration: none;
}

.json_badge.clickable {
  cursor: pointer;
}

.json_badge.clickable:hover {
  text-decoration: none;
  opacity: 1;
}

.options_card {
  margin-top: 12px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 80%);
}

.toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 16px;
}

.toggle input {
  appearance: none;
  position: absolute;
  opacity: 0;
}

.toggle_track {
  width: 44px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle_thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.toggle input:checked+.toggle_track {
  background: var(--theme-color);
}

.toggle input:checked+.toggle_track .toggle_thumb {
  transform: translateX(20px);
}

.toggle_grabMode input:checked+.toggle_track {
  background: var(--theme-color-yellow);
}

.toggle_text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle_text strong {
  font-size: 16px;
}

.toggle_text span {
  color: #475569;
  font-size: 14px;
}

form {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.language_option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language_option:hover {
  border-color: var(--theme-color);
  box-shadow: 0 10px 30px var(--theme-shadow);
}

.language_option input {
  margin: 0;
}

.language_name {
  font-weight: 600;
}

.language_sep {
  color: #cbd5e1;
  margin: 0 6px;
  font-weight: 400;
}

.language_native {
  color: #475569;
  font-size: 14px;
  font-weight: 400;
}

.language_option input:disabled+span,
.language_option input:disabled+span+span {
  color: #cbd5e1;
}

form[data-disabled='true'] .language_option {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin: 12px 0 12px;
  color: #475569;
}

.toggle+form {
  margin-top: 8px;
}

.status[data-status='changed'] {
  color: #16a34a;
  font-weight: 600;
}

.footer {
  margin-top: 30px;
  padding-top: 12px;
}

.footer_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer_divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 12px;
}

.credit {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.credit a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 600;
}

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

.links {
  margin: 0;
  color: #475569;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.links a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 600;
}

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

.disclaimer {
  margin: 24px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.disclaimer:not(:first-of-type) {
  margin-top: 6px;
}

/* Advanced Settings */
.advanced_toggle {
  background: transparent;
  border: none;
  padding: 0;
  margin: 24px 0 12px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advanced_toggle:hover {
  color: var(--theme-color);
}

.advanced_section {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.advanced_section[data-open="true"] {
  display: block;
}

.advanced_label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.advanced_desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

textarea.exclusion_input {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 12px;
}

textarea.exclusion_input:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}

.save_button {
  background: var(--theme-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.save_button:hover {
  filter: brightness(110%);
}

.save_button:active {
  filter: brightness(95%);
}

.save_status {
  margin-left: 12px;
  font-size: 13px;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.3s;
}

.save_status.visible {
  opacity: 1;
}

.reset_button {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 12px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.reset_button:hover {
  color: #64748b;
}

.reset_button[data-confirming='true'] {
  color: #e85c5c;
}

.reset_button[data-confirming='true']:hover {
  color: #d64d4d;
}