:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0d0d0d;
  --panel-2: #121212;
  --line: #292929;
  --text: #f5f1eb;
  --muted: #918a84;
  --accent: #e32525;
  --accent-2: #ffffff;
  --danger: #ff3d3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(227, 37, 37, 0.16) 0 1px, transparent 1px 100%),
    #030303;
  background-size: 96px 100%;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.login-screen-page {
  background:
    linear-gradient(90deg, rgba(227, 37, 37, 0.16) 0 1px, transparent 1px 100%),
    #030303;
  background-size: 96px 100%;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: #090909;
  padding: 28px;
}

.login-card h2 {
  margin: 0 0 28px;
  font-size: clamp(42px, 10vw, 72px);
  line-height: 0.88;
  text-transform: uppercase;
}

.login-card label {
  display: block;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card button {
  width: 100%;
  margin-top: 18px;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  min-height: 190px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 11vw, 142px);
  line-height: 0.82;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.status {
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--text);
  text-align: center;
  background: #0a0a0a;
}

.logout {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.drop-panel {
  padding: 16px;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #4a4a4a;
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #1f0808;
}

.dropzone input {
  display: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 34px;
  margin-bottom: 10px;
}

.dropzone strong {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dropzone small,
.file-meta {
  color: var(--muted);
}

.file-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  font-size: 14px;
}

canvas {
  display: block;
  width: 100%;
  height: 320px;
  border-radius: 2px;
  background: #0b0d0c;
}

.controls {
  padding: 16px;
}

.control {
  margin-bottom: 16px;
}

.control label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #101211;
  color: var(--text);
  padding: 8px 10px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

button:first-child {
  background: #f5f1eb;
  color: #050505;
}

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

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px;
  border-radius: 2px;
  background: #111412;
  color: var(--muted);
}

.result strong {
  color: var(--accent);
  font-size: 26px;
}

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

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.admin-hero h1 {
  font-size: clamp(52px, 10vw, 120px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px 320px minmax(0, 1fr);
  gap: 18px;
}

.admin-card,
.admin-output {
  padding: 16px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-card-head button,
.employee-row button {
  min-height: 32px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.employee-list {
  display: grid;
  gap: 8px;
}

.employee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #080808;
}

.empty,
.admin-note {
  color: var(--muted);
  font-size: 13px;
}

textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #080808;
  color: var(--text);
  padding: 12px;
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 860px) {
  .topbar,
  .workspace {
    display: block;
  }

  .status {
    margin-top: 16px;
    text-align: left;
  }

  .top-meta {
    justify-items: start;
  }

  .controls {
    margin-top: 18px;
  }

  .admin-layout {
    display: block;
  }

  .admin-card,
  .admin-output {
    margin-bottom: 18px;
  }
}
