:root {
  --egirna-blue: #0582c4;
  --egirna-blue-dark: #075985;
  --egirna-orange: #fa611e;
  --egirna-orange-dark: #bf5122;
  --ink: #202124;
  --muted: #5f6b76;
  --line: #d8e3ea;
  --panel: #ffffff;
  --page: #eef6fa;
  --focus: rgba(250, 97, 30, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(5, 130, 196, 0.14), rgba(250, 97, 30, 0.08)),
    var(--page);
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 52, 72, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 142px;
  height: auto;
  display: block;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto;
}

.upload-panel,
.result-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1.15fr);
  min-height: 560px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(15, 64, 94, 0.16);
}

.result-panel {
  grid-template-columns: 1fr;
}

.panel-copy {
  padding: clamp(28px, 4vw, 52px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(5, 130, 196, 0.96), rgba(7, 89, 133, 0.96)),
    var(--egirna-blue);
}

.result-panel .panel-copy {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(5, 130, 196, 0.12), rgba(250, 97, 30, 0.11)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--egirna-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-copy .eyebrow {
  color: #ffd8c8;
}

.result-panel .eyebrow {
  color: var(--egirna-orange-dark);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 34rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
}

.result-panel .lede {
  color: var(--muted);
}

.attempt-id {
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.96em;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 4vw, 52px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdccd6;
  border-radius: 6px;
  outline: none;
}

.field input:focus,
.drop-zone:focus-within {
  border-color: var(--egirna-orange);
  box-shadow: 0 0 0 4px var(--focus);
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 176px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(5, 130, 196, 0.08), rgba(250, 97, 30, 0.08)),
    #f8fbfd;
  border: 1px dashed #8aaabc;
  border-radius: 8px;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-title {
  color: var(--egirna-blue-dark);
  font-size: 1.28rem;
  font-weight: 800;
}

.drop-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-list {
  display: grid;
  gap: 8px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.file-list li {
  overflow-wrap: anywhere;
  padding: 9px 11px;
  background: #f6fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.file-list .file-warning,
.form-alert {
  color: #7b2714;
  background: #fff0ea;
  border-color: #f3b49d;
}

.form-alert {
  padding: 13px 14px;
  border: 1px solid #f3b49d;
  border-radius: 6px;
  font-weight: 700;
}

.primary-button,
.copy-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.primary-button {
  align-self: flex-start;
  padding: 14px 22px;
  color: #fff;
  background: var(--egirna-orange);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(250, 97, 30, 0.22);
}

.primary-button:hover {
  background: var(--egirna-orange-dark);
}

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

.hash-list {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 44px);
}

.hash-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hash-row h2 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hash-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hash-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hash-value code {
  overflow-wrap: anywhere;
  padding: 12px;
  color: #123348;
  background: #eef6fa;
  border-radius: 6px;
}

.copy-button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--egirna-blue);
  font-weight: 800;
}

.copy-button:hover {
  background: var(--egirna-blue-dark);
}

.secondary-link {
  display: inline-flex;
  width: fit-content;
  margin: 0 clamp(20px, 4vw, 44px) clamp(20px, 4vw, 44px);
  color: var(--egirna-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 24px, 640px);
    margin: 24px auto;
  }

  .upload-panel {
    grid-template-columns: 1fr;
  }

  .upload-panel,
  .result-panel {
    min-height: auto;
  }

  h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  .field-grid,
  .hash-value {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .copy-button {
    width: 100%;
  }
}
