:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #171923;
  --muted: #667085;
  --line: #d9dee8;
  --accent: #ff255f;
  --accent-strong: #d90f4b;
  --cyan: #11c5cf;
  --ink: #222733;
  --shadow: 0 24px 70px rgba(22, 28, 45, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(17, 197, 207, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(255, 37, 95, 0.14), transparent 34%),
    var(--bg);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(430px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 32px 0;
}

.app-shell.no-result {
  justify-content: center;
}

.download-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 222, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.brand-row p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.resolver {
  display: grid;
  gap: 14px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(17, 197, 207, 0.16);
}

.icon-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.icon-button {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: #eef2f7;
}

.icon-button:hover {
  background: #e2e8f0;
}

svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex: 0 0 auto;
}

.primary-button {
  height: 50px;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #027a48;
}

@media (max-width: 860px) {
  .app-shell,
  .app-shell.no-result {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px 0;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
  }

  .download-panel {
    padding: 20px;
  }

  .brand-row {
    align-items: flex-start;
  }

  h1 {
    font-size: 23px;
  }

  .input-row {
    grid-template-columns: 1fr 46px;
  }
}
