:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #1b2430;
  --muted: #5c6675;
  --panel: #ffffff;
  --line: #d9e0ea;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --soft: #e7f5f3;
  --error: #b42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fb;
  color: var(--ink);
}

.shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 12px;
  display: grid;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status,
.result {
  min-height: 34px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.status:empty,
.result:empty {
  display: none;
}

.status.error,
.result.error {
  border-color: #f3b5ad;
  background: #fff4f2;
  color: var(--error);
}

.result.success {
  border-color: #9bd9bd;
  background: #effbf5;
  color: var(--success);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.secondary {
  background: var(--soft);
  border-color: #b6dfda;
  color: var(--accent-dark);
}

.form {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
}

.pin-label {
  display: block;
  margin-top: 14px;
  margin-bottom: 7px;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 74px;
}

input {
  margin-bottom: 4px;
}

.full {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 540px) {
  .shell {
    padding-top: 10px;
  }

  .actions button {
    width: 100%;
  }
}
