:root {
  --accent: #2e0260;
  --accent-hover: #22014a;
  --accent-tint: #f3eef8;
  --text: #333;
  --muted: #67696c;
  --border: #cecfcd;
  --page-bg: #f3f5f7;
  --white: #fff;
  --error: #b42318;
  --success: #067647;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--page-bg);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.page__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(46, 2, 96, 0.08);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.section--actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.label {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  font: inherit;
  color: var(--text);
}

.input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--secondary {
  background: var(--white);
  color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-tint);
}

.result {
  display: flex;
  gap: 8px;
}

.result__url {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.divider {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.status {
  margin: 0;
  color: var(--success);
}

.status--error {
  color: var(--error);
}

@media (max-width: 480px) {
  .result {
    flex-wrap: wrap;
  }

  .result__url {
    flex-basis: 100%;
  }

  .section--actions .btn {
    flex: 1;
  }
}
