:root {
  --mt-surface: rgba(255, 255, 255, 0.92);
  --mt-surface-strong: #ffffff;
  --mt-line: #c7d0e0;
  --mt-line-strong: #6a8fb5;
  --mt-text: #1f2937;
  --mt-text-muted: #526277;
  --mt-accent: #14532d;
  --mt-accent-weak: #eef7ef;
  --mt-shadow: 0 14px 34px rgba(28, 37, 51, 0.1);
  --mt-radius: 18px;
}

.mt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--mt-line);
  border-radius: 999px;
  background: var(--mt-surface-strong);
  color: var(--mt-text);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.mt-button:hover,
.mt-button:focus-visible {
  border-color: var(--mt-accent);
  color: var(--mt-accent);
}

.mt-button--sm {
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.mt-button--compact {
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.mt-button.is-active,
.mt-button[aria-pressed="true"] {
  border-color: var(--mt-accent);
  background: var(--mt-accent-weak);
  color: var(--mt-accent);
}

.mt-button--primary {
  background: color-mix(in srgb, var(--mt-accent) 12%, var(--mt-surface-strong));
  border-color: color-mix(in srgb, var(--mt-accent) 50%, var(--mt-line));
}

.mt-button--icon {
  min-width: 2.5rem;
  padding: 0.4rem;
}

.mt-card {
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
}

.mt-panel {
  padding: 24px;
  border: 1px solid var(--mt-line);
  border-radius: 24px;
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
  backdrop-filter: blur(8px);
}

.mt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--mt-line);
  border-radius: 999px;
  background: var(--mt-surface-strong);
  color: var(--mt-text);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.mt-chip.is-active {
  border-color: var(--mt-accent);
  background: var(--mt-accent-weak);
  color: var(--mt-accent);
}

.mt-input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--mt-line);
  border-radius: 12px;
  background: var(--mt-surface-strong);
  color: var(--mt-text);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

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

.melon-tool-shell {
  min-width: 0;
  overflow-x: auto;
}

.melon-tool-shell.mt-app-scope {
  --panel: var(--mt-surface);
  --line: var(--mt-line);
  --chip: #f8fafc;
  --shadow: var(--mt-shadow);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mt-app-scope,
.mt-app-scope button,
.mt-app-scope input,
.mt-app-scope select {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: normal;
  text-transform: none;
}

.mt-app-scope .mt-chip,
.mt-app-scope .mt-preset-chip,
.mt-app-scope .mt-browser-family-chip,
.mt-app-scope .mt-browser-result,
.mt-app-scope .mt-browser-variant,
.mt-app-scope .set-export-columns-select,
.mt-app-scope .mt-input {
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 400;
}

.mt-app-scope .mt-chip,
.mt-app-scope .mt-browser-family-chip,
.mt-app-scope .mt-preset-chip {
  border-color: var(--line);
  background: var(--mt-surface-strong);
  box-shadow: none;
}

.mt-app-scope .mt-chip {
  min-height: 2.35rem;
}

.mt-app-scope .preset-title {
  font-size: 0.96rem;
  line-height: 1.2;
  text-align: center;
}

.mt-app-scope .harmony-lock-button {
  display: none !important;
}

.mt-app-scope .preset-toolbar {
  grid-template-columns: 1fr auto;
}

.mt-app-scope .mt-browser-result-main,
.mt-app-scope .mt-browser-variant-main,
.mt-app-scope .mt-browser-result-label,
.mt-app-scope .mt-browser-variant-label,
.mt-app-scope .mt-browser-result-meta,
.mt-app-scope .mt-browser-variant-meta {
  text-align: left;
}

.mt-app-scope .mt-panel,
.mt-app-scope .diagram-stage,
.mt-app-scope .site-footer {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mt-app-scope .mt-browser-variant {
  min-height: 5.5rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--mt-line) !important;
  background: var(--mt-surface-strong);
}

.mt-app-scope .mt-browser-variant.is-active {
  border: 1px solid var(--mt-accent) !important;
  background: var(--mt-accent-weak);
}
