@font-face {
  font-family: DM;
  src: url(/static/fonts/sans.ttf);
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Barlow;
  src: url(/static/fonts/condensed.ttf);
  font-display: swap;
  font-weight: 700;
}
:root {
  color-scheme: dark;
  --base: #101012;
  --panel: #19191d;
  --inset: #121215;
  --line: #343439;
  --sub: #b4b1b5;
  --txt: #f5f2ee;
  --accent: #ff794f;
  --soft: #ffac8f;
  font-family: DM, Arial, sans-serif;
  color: var(--txt);
  background: var(--base);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
select,
input,
textarea,
.dl {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--txt);
}
button,
.dl {
  cursor: pointer;
  min-height: 40px;
  padding: 8px 13px;
  font-weight: 600;
}
button:hover,
.dl:hover {
  border-color: #8b7470;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
}
input,
textarea,
select {
  padding: 10px 12px;
  max-width: 100%;
}
select {
  appearance: none;
  padding-right: 32px;
  background: var(--inset)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='m2 1 5 5 5-5' fill='none' stroke='%23ddd' stroke-width='1.5'/%3E%3C/svg%3E")
    right 10px center/12px no-repeat;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn {
  border: 0;
  background: var(--accent);
  color: #201411;
  min-height: 46px;
}
.btn:hover {
  background: #ff946f;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.7px;
  white-space: nowrap;
}
.brand img {
  width: 35px;
  height: 35px;
}
.sub,
.hint {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.5;
}
.label,
label {
  font-size: 14px;
  font-weight: 570;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    700 clamp(3rem, 7vw, 7rem) / 0.96 Barlow,
    sans-serif;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 16px;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 8px;
  background: #f4eae1;
  color: #241817;
  box-shadow: 0 4px 24px #0008;
  z-index: 9;
  max-width: 92vw;
}
.ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
}
.language {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language select {
  font-size: 14px;
}
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.gate {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(340px, 1.3fr);
  flex: 1;
  min-height: 550px;
  margin: clamp(16px, 3vw, 44px) 5%;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.gate-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 23px;
  padding: clamp(25px, 5vw, 88px);
}
.gate-form h1 {
  font-size: clamp(56px, 6.2vw, 100px);
}
.gate-form label {
  display: grid;
  gap: 8px;
}
.gate-art {
  background: #2c201c url(/static/stage.webp) 67% center/cover;
  position: relative;
  min-height: 280px;
}
.gate-art span {
  position: absolute;
  bottom: 28px;
  left: 28px;
  color: #f6e5db;
  font: 700 clamp(30px, 4vw, 70px) / 1 Barlow;
  letter-spacing: -1px;
}
.lock {
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.foot {
  margin: 0 5% 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sub);
  font-size: 13px;
}
.frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #151518;
}
.rail .brand {
  margin-left: 10px;
}
.nav {
  display: grid;
  gap: 5px;
}
.railbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 1px solid transparent;
  color: #bdbabe;
  text-align: left;
  font-size: 15px;
}
.railbtn.active {
  background: #33221f;
  border-color: #5a322a;
  color: #ffab8e;
}
.rail .bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.frame.fold {
  grid-template-columns: 72px minmax(0, 1fr);
}
.fold .rail {
  padding-inline: 9px;
}
.fold .railbtn span,
.fold .brand b {
  display: none;
}
.fold .rail .brand {
  margin-left: 7px;
}
.fold .railbtn {
  justify-content: center;
}
.stage {
  min-width: 0;
}
.bar {
  height: 64px;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.bar .left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  padding: 7px;
  min-width: 36px;
  min-height: 36px;
}
.content {
  width: min(1500px, 100%);
  margin: auto;
  padding: clamp(16px, 2.5vw, 38px);
}
.hero {
  background: #242024 url(/static/stage.webp) center 46% / cover;
  min-height: 190px;
  border-radius: 12px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 42px);
  gap: 10px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #110f15d9, transparent 78%);
  z-index: -1;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 78px);
}
.hero .sub {
  color: #eee2dd;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(270px, 0.88fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.panel,
.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: clamp(17px, 1.8vw, 28px);
}
.panel {
  display: grid;
  gap: 19px;
}
.heading,
.actions,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading {
  justify-content: space-between;
}
.heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.heading h2 .ico {
  color: var(--accent);
}
.rows,
.history {
  display: grid;
  gap: 14px;
}
.row {
  align-items: end;
  flex-wrap: wrap;
}
.row > label {
  flex: 1;
  min-width: 90px;
}
.field {
  display: grid;
  gap: 7px;
}
.field select {
  width: 100%;
}
textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}
.uploads,
.metrics,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 10px;
}
.drop {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.upload {
  height: 106px;
  border: 1px dashed #676169;
  background: #151418;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 14px;
  overflow: hidden;
  color: #ddd8d5;
  position: relative;
}
.upload .ico {
  color: var(--soft);
  width: 25px;
  height: 25px;
}
.reference {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #121114;
}
.reference img,
.reference video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.reference audio { width: 100%; }
.reference figcaption {
  padding: 7px 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--sub);
}
.change-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.draft-tools {
  display: grid;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
#save-draft { border-color: var(--accent); }
.drop select {
  font-size: 13px;
  width: 100%;
}
.over {
  outline: 2px solid var(--accent);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
summary {
  cursor: pointer;
  color: #e6dcd8;
  font-size: 14px;
}
details .field,
details .drop,
details .check {
  margin-top: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  accent-color: var(--accent);
}
.preview {
  aspect-ratio: 16/10;
  background: #111114;
  border: 1px solid #302f34;
  border-radius: 8px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  justify-items: center;
  overflow: hidden;
}
.preview > .ico {
  width: 38px;
  height: 38px;
  color: #8c8281;
}
.preview video {
  width: 100%;
  max-height: 540px;
}
.preview.play {
  display: block;
  aspect-ratio: auto;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
}
.metric strong {
  font: 700 34px Barlow;
}
.title {
  font-size: clamp(40px, 5vw, 74px);
  margin: 18px 0 28px;
}
.tile {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 13px;
}
.tile video,
.tile img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--inset);
  border-radius: 7px;
}
.tile audio {
  width: 100%;
}
.tile h3 {
  overflow-wrap: anywhere;
}
.actions {
  flex-wrap: wrap;
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr));
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  color: var(--sub);
}
.dl {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.history article {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.alert {
  color: var(--soft);
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.tabs .active {
  border-color: var(--accent);
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1040px) {
  .frame {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 9px;
  }
  .railbtn span,
  .rail .brand b {
    display: none;
  }
  .rail .brand {
    margin-left: 7px;
  }
  .railbtn {
    justify-content: center;
  }
  .frame.fold {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  .fold .rail {
    visibility: hidden;
    overflow: hidden;
  }
  .columns {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
  }
}
@media (max-width: 760px) {
  .top {
    height: 62px;
  }
  .gate {
    margin: 14px;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .gate-form {
    padding: 28px;
    gap: 16px;
  }
  .gate-art {
    min-height: 24vh;
    grid-row: 1;
    background-position: center 43%;
  }
  .gate-art span {
    font-size: 30px;
    bottom: 14px;
    left: 18px;
  }
  .foot {
    font-size: 12px;
    gap: 12px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .frame,
  .frame.fold {
    display: block;
  }
  .rail {
    height: auto;
    position: static;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px 12px;
  }
  .rail .brand {
    margin: 0;
  }
  .rail .brand img {
    width: 27px;
    height: 27px;
  }
  .nav,
  .rail .bottom {
    display: flex;
    gap: 1px;
    margin: 0;
  }
  .railbtn {
    padding: 6px;
    min-width: 32px;
    min-height: 34px;
  }
  .rail .bottom .railbtn {
    min-width: 30px;
  }
  .fold .rail {
    display: none;
  }
  .bar {
    height: 54px;
  }
  .hero {
    min-height: 156px;
  }
  .history article {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview {
    aspect-ratio: 16/9;
  }
}
