:root {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #d7dde7;
  --text: #17202e;
  --muted: #667085;
  --accent: #2563eb;
  --good: #14804a;
  --bad: #c63832;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1120px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(520px, 1fr) 360px;
  gap: 16px;
  height: 100vh;
  padding: 16px;
}

.sidebar,
.workspace,
.inspector {
  min-height: 0;
}

.sidebar,
.inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand,
.panel,
.result_card,
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #162033;
  color: #fff;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
}

h2 {
  font-size: 14px;
}

p,
.muted,
.status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel {
  padding: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step.active {
  color: #fff;
  background: #162033;
  border-color: #162033;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.good {
  background: var(--good);
  color: #fff;
}

.bad {
  background: var(--bad);
  color: #fff;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px;
}

.canvas_bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

#digitCanvas {
  align-self: center;
  justify-self: center;
  width: min(68vh, 100%);
  max-width: 620px;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #05070b;
  image-rendering: pixelated;
  cursor: crosshair;
}

.result_card {
  padding: 16px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.prediction {
  font-size: 96px;
  line-height: 0.95;
  font-weight: 850;
  margin-top: 10px;
}

.confidence {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.actions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.hidden {
  display: none;
}

.bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.bar {
  display: grid;
  grid-template-columns: 18px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf2;
}

.fill {
  height: 100%;
  width: 0%;
  background: #162033;
}
