:root {
  color-scheme: light;
  --ink: #172231;
  --muted: #647285;
  --line: #d9e2ec;
  --paper: #f7fafc;
  --panel: #ffffff;
  --blue: #0878d8;
  --blue-dark: #07559e;
  --teal: #00a6a6;
  --amber: #d99b21;
  --shadow: 0 24px 60px rgba(21, 36, 54, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(8, 120, 216, 0.14), transparent 35%),
    linear-gradient(315deg, rgba(0, 166, 166, 0.12), transparent 30%),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.4fr);
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(23, 34, 49, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 34px;
  color: white;
  background:
    linear-gradient(160deg, rgba(11, 23, 36, 0.9), rgba(5, 62, 110, 0.82)),
    url("./accel-logo.png") center 42% / 120% auto no-repeat;
}

.brand-logo {
  width: min(220px, 72%);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.22));
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-panel .eyebrow,
.brand-panel .intro {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.intro {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.status-pill {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.tool-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.upload-zone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 154px;
  padding: 24px;
  border: 2px dashed #bdd0e4;
  border-radius: 8px;
  background: #f7fbff;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-zone.is-dragging {
  border-color: var(--blue);
  background: #eef7ff;
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone p,
.preview-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 66px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e6f3ff;
  color: var(--blue-dark);
  font-weight: 900;
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.primary {
  background: var(--blue);
  color: white;
}

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

.secondary {
  background: #e8f2fc;
  color: var(--blue-dark);
}

.file-row,
.controls-grid,
.preview-strip,
.actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.file-row strong {
  overflow-wrap: anywhere;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  background: white;
}

.control span {
  font-weight: 800;
}

.control output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.control input,
.control select {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 34px;
  accent-color: var(--blue);
}

.control select {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.preview-strip {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.page-preview {
  position: relative;
  width: 132px;
  aspect-ratio: 0.72;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f2f5f8;
}

.photo-line,
.photo-block {
  position: absolute;
  left: 15%;
  right: 15%;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(23, 34, 49, 0.15), rgba(23, 34, 49, 0.05));
}

.photo-line {
  top: 14%;
  height: 10px;
}

.photo-block {
  top: 30%;
  bottom: 13%;
}

.page-preview img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  transform: translate(-50%, -50%) rotate(-28deg);
  opacity: 0.12;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px;
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 360px;
  }

  h1 {
    max-width: 13ch;
  }

  .upload-zone,
  .preview-strip {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: 100%;
    padding: 0;
  }

  .workspace {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .brand-panel,
  .tool-panel {
    padding: 22px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }
}
