:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #26384a;
  background: #f5f7fa;
  font-size: 16px;
  line-height: 1.5;
  --accent: #087f6c;
  --border: #79899a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 32px 24px;
}
header {
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: #2d3e50;
  margin: 8px 0;
}
header p {
  margin: 8px 0;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #526478;
}
h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
section {
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}
input,
select,
textarea,
button {
  font: inherit;
}
input:not([type="file"]),
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #26384a;
  min-height: 46px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="file"] {
  max-width: 100%;
  min-height: 44px;
}
input::file-selector-button {
  padding: 10px;
  margin-right: 10px;
}
button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover:enabled {
  background: #066454;
}
.secondary {
  background: #fff;
  color: #086b5d;
}
.secondary:hover:enabled {
  background: #edf7f4;
}
button:disabled {
  background: #e4e9ed;
  border-color: #b8c2cc;
  color: #566371;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #235ca0;
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hint,
footer {
  font-size: 0.875rem;
  color: #526478;
}
.hint {
  margin: 6px 0 12px;
}
.key-row {
  display: flex;
  gap: 16px;
}
.key-row > div {
  flex: 1;
  min-width: 0;
}
#status {
  padding: 12px 16px;
  background: #e8eef5;
  border-radius: 6px;
  min-height: 48px;
}
#status[data-error="true"] {
  background: #fff0ed;
  color: #9e2b1e;
}
#suggestions {
  margin-top: 24px;
}
#suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  margin: 24px 0;
  max-width: 750px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  main {
    padding: 24px 16px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  section {
    padding: 20px;
  }
  .actions button {
    flex: 1;
  }
  header {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
