:root {
  --red: #980c0c;
  --dark-red: #6d0707;
  --gold: #c88a2c;
  --cream: #fff7ec;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(45, 5, 5, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(200, 138, 44, 0.28), transparent 34rem),
    linear-gradient(135deg, var(--red), var(--dark-red));
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.subtitle {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

button,
.button,
select,
input {
  border: 0;
  border-radius: 999px;
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--dark-red);
  background: var(--cream);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

button:active,
.button:active {
  transform: translateY(0);
}

.secondary,
.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.toolbar {
  margin: 18px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.toolbar label {
  font-weight: 800;
}

input,
select {
  min-height: 42px;
  padding: 0 14px;
  color: #2b0b0b;
  background: var(--white);
}

input {
  width: 92px;
}

.viewer-card {
  overflow: hidden;
  height: min(82vh, 900px);
  min-height: 560px;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cream);
}

.note {
  margin: 16px 6px 0;
  color: rgba(255, 255, 255, 0.82);
}

code {
  padding: 3px 7px;
  border-radius: 8px;
  color: #2b0b0b;
  background: var(--cream);
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions,
  .toolbar {
    width: 100%;
  }

  button,
  .button,
  select,
  input {
    flex: 1 1 auto;
  }

  .viewer-card {
    min-height: 520px;
    border-radius: 18px;
  }
}
