:root {
  --navy: #071b36;
  --blue: #0b5ed7;
  --ink: #111827;
  --muted: #64748b;
  --line: #d7e0ec;
  --surface: #ffffff;
  --soft: #f4f7fb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #eef3f8;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.redaction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.redaction-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.redaction-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.redaction-brand span {
  display: grid;
}

.redaction-brand strong {
  color: var(--navy);
  font-size: 16px;
}

.redaction-brand small,
.home-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.redaction-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 68px);
  padding: 18px;
}

.redaction-panel,
.canvas-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.redaction-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 30px; }
h2 { margin-bottom: 10px; font-size: 15px; }
p { color: var(--muted); line-height: 1.45; }

.upload-zone {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background: var(--soft);
  border: 1.5px dashed #9db4cf;
  border-radius: 10px;
  cursor: pointer;
}

.upload-zone input { display: none; }
.upload-zone strong { color: var(--blue); }
.upload-zone small { color: var(--muted); }

.control-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

select {
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button-row {
  display: grid;
  gap: 10px;
}

button {
  min-height: 42px;
  padding: 10px 13px;
  color: var(--ink);
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

button.primary {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.mark-list {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

#markList {
  display: grid;
  gap: 8px;
}

.mark-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.canvas-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  border-bottom: 1px solid var(--line);
}

.canvas-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #dfe7f2;
}

canvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  cursor: crosshair;
}

.redaction-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 800;
  background: var(--navy);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.redaction-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 900px) {
  .redaction-shell {
    grid-template-columns: 1fr;
  }
}
