@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --side: #181818;
  --panel: #1c1c1c;
  --line: #2c2c2c;
  --field: #2a2a2a;
  --red: #9e1d20;
  --text: #f2f2f2;
  --grey: #8a8a8a;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Poppins, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  background: #202020;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #e8544a; }
.dots i:nth-child(2) { background: #e8b040; }
.dots i:nth-child(3) { background: #58ba60; }
#address { color: var(--grey); font-size: 14px; }

.home, .saved {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 80px;
}
.home img.brand, .saved img.brand { height: 36px; align-self: flex-start; }
.home h1, .saved h1 { margin: 72px 0 8px; font-size: 40px; font-weight: 600; }
.lede { margin: 0; color: var(--grey); }
.home form, .saved .note { width: min(500px, 100%); }
.home input {
  width: 100%;
  margin-top: 28px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 20px;
}
.primary, .ghost, .danger, a.ghost {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
}
a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
.primary { background: var(--red); color: var(--white); }
.ghost { background: var(--field); color: var(--text); }
.danger { background: transparent; color: var(--grey); }
.home .primary { width: 100%; margin-top: 16px; min-height: 52px; }
.fine { color: var(--grey); text-align: center; margin-top: 28px; font-size: 14px; }
.error { color: #e5484d; min-height: 1.2em; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 56px); }
.side { background: var(--side); padding: 24px 0 24px; border-right: 1px solid var(--line); }
.side .brand { height: 28px; margin: 0 24px 18px; }
.side h2 { margin: 0 24px; font-size: 16px; }
.side .code { margin: 4px 24px 24px; color: var(--grey); font-size: 13px; }
.side button.nav, .side a.nav {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  padding: 12px 21px;
  color: var(--grey);
  text-decoration: none;
}
.side button.nav.on, .side a.nav.on { background: #2a1718; color: var(--text); border-left-color: var(--red); }
.side .done { margin: 32px 24px; }

.work { padding: 28px 32px 48px; }
.work header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.work h1 { margin: 0; font-size: 28px; }
.meta { display: flex; gap: 8px; align-items: center; color: var(--grey); margin-top: 8px; flex-wrap: wrap; }
.meta input { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--grey); width: 180px; }
.meta input:focus { outline: none; border-bottom-color: var(--line); color: var(--text); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; margin-top: 22px; table-layout: fixed; }
.table th:nth-child(1), .table td:nth-child(1) { width: 48px; }
.table th:nth-child(4), .table td:nth-child(4) { width: 168px; }
.table th:nth-child(5), .table td:nth-child(5) { width: 96px; }
.table th:nth-child(6), .table td:nth-child(6) { width: 148px; padding-right: 4px; }
.table th { text-align: left; font-weight: 500; color: var(--grey); font-size: 13px; background: var(--panel); padding: 12px; }
.table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:nth-child(even) td { background: #202020; }
.table input, .table select {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 6px 0;
}
.table input:focus, .table select:focus { outline: 1px solid var(--line); background: var(--field); }
.icon { background: transparent; border: 0; color: var(--grey); min-width: 32px; }
.row-actions { display: flex; gap: 2px; }
.empty { color: var(--grey); padding: 28px 0; }

.logo-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 28px; margin-top: 8px; }
.drop {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.drop.over { border-color: var(--red); }
.stage {
  margin-top: 12px;
  background: #000;
  border-radius: 12px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.stage img { position: absolute; top: 28px; left: 28px; max-width: 42%; max-height: 28%; object-fit: contain; }
.stage .time { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage .time strong { font-size: 48px; font-weight: 600; }
.stage .time span { color: var(--grey); }

@media (max-width: 900px) {
  .shell, .logo-grid { grid-template-columns: 1fr; }
  .work { padding: 20px 16px 40px; }
}
