:root {
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #173832;
  background: #f7f8f5;
  font-size: 16px;
  line-height: 1.6;
  --green: #185447;
  --line: #dce4de;
  --soft: #64756d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.file-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 0.48rem;
  min-height: 2.7rem;
  padding: 0.48rem 1.05rem;
  font-weight: 650;
}
button:hover,
.file-label:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
.file-label:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #67b5a2;
  outline-offset: 2px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.07em;
}
.brand i {
  display: inline-block;
  width: 1.5rem;
  height: 1.45rem;
  background: currentColor;
  clip-path: polygon(
    0 15%,
    30% 30%,
    42% 0,
    58% 0,
    66% 30%,
    100% 15%,
    90% 78%,
    58% 100%,
    35% 98%,
    12% 77%
  );
}
#login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 28% 15%, #d5e8d6 0, transparent 56%), #f1f5ed;
  padding: 1.5rem;
}
.login-card {
  width: min(28rem, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: clamp(1.55rem, 4vw, 3rem);
  box-shadow: 0 1.1rem 4rem #163c3112;
}
.login-card h1 {
  margin: 2rem 0 0.35rem;
}
.login-card p,
.secondary,
small {
  color: var(--soft);
}
.login-card form button {
  width: 100%;
  margin-top: 0.5rem;
}
label {
  display: block;
  font-weight: 600;
  margin: 0.9rem 0 0.3rem;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #becdc3;
  border-radius: 0.45rem;
  padding: 0.63rem 0.8rem;
  color: inherit;
  background: #fff;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 0.3rem;
}
#app {
  display: grid;
  grid-template-columns: 14.5rem 1fr;
  min-height: 100dvh;
}
aside {
  padding: 2rem 1.25rem;
  background: #123e37;
  color: #f4fbf6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
aside .brand {
  padding: 0 0.7rem;
}
.site-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  margin: 1.25rem 0.7rem 2rem;
  color: #d1e3d9;
}
.site-name img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.55rem;
  object-fit: cover;
}
nav {
  display: grid;
  gap: 0.45rem;
}
nav button,
.logout {
  background: transparent;
  justify-content: flex-start;
  text-align: left;
  color: #d3e6db;
  font-weight: 550;
}
nav button[aria-current="page"] {
  color: #fff;
  background: #316253;
  box-shadow: inset 3px 0 #b3db9b;
}
.logout {
  margin-top: auto;
}
.workspace {
  width: 100%;
  max-width: 86rem;
  padding: clamp(1.5rem, 4.8vw, 5rem);
  margin: auto;
  align-self: start;
  min-width: 0;
}
header,
.dialog-head,
footer,
.search-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.eyebrow {
  font-size: 0.88rem;
  color: var(--soft);
  margin: 0 0 0.15rem;
}
h1,
h2,
p {
  overflow-wrap: anywhere;
}
h1,
h2 {
  line-height: 1.3;
}
h1 {
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  margin: 0.2rem 0;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.16rem;
  margin: 0 0 0.8rem;
}
.search-line {
  margin: 1.6rem 0 1rem;
}
.search-line input {
  max-width: 30rem;
}
.rows {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
}
.row {
  width: 100%;
  color: inherit;
  background: white;
  display: grid;
  text-align: left;
  justify-content: stretch;
  padding: 0.9rem 1.2rem;
  gap: 0.2rem;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.row:last-child {
  border: 0;
}
.row:hover {
  background: #f4f8f3;
}
.row strong {
  font-size: 1.03rem;
}
.row span {
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty {
  padding: 1.2rem;
  color: var(--soft);
}
.release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}
.release-grid article,
#drop-zone,
.job {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.release-grid strong {
  font-size: 2.2rem;
  color: var(--green);
}
#drop-zone {
  margin: 1.75rem 0;
  border-style: dashed;
}
#drop-zone.over {
  background: #e9f4eb;
}
small {
  display: block;
  font-size: 0.86rem;
  margin: 0.5rem 0;
}
.file-label {
  display: inline-flex;
  margin: 0;
}
#files {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#drop-zone:focus-within .file-label {
  outline: 2px solid var(--green);
}
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.55rem 0;
}
.job small {
  margin: 0.15rem 0;
}
.quiet {
  background: #eaf0ea;
  color: var(--green);
}
.danger {
  background: #f7e9e4;
  color: #923c31;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  width: min(38rem, calc(100% - 2rem));
  max-height: 90dvh;
  overflow: auto;
  color: inherit;
  padding: 1.6rem;
  box-shadow: 0 1rem 4rem #102e3245;
}
dialog::backdrop {
  background: #10251fcc;
}
footer {
  justify-content: flex-end;
  margin-top: 1.25rem;
}
#delete {
  margin-right: auto;
}
#preview {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
#preview img,
#preview video {
  max-width: 10rem;
  max-height: 7rem;
  border-radius: 0.4rem;
}
#notice:empty,
#edit-error:empty,
#login-error:empty {
  display: none;
}
#notice {
  background: #e4efe3;
  border-radius: 0.45rem;
  padding: 0.55rem 0.8rem;
}
#edit-error,
#login-error {
  color: #983c32;
}
.job p {
  margin: 0;
}
.release-grid h2 {
  font-weight: 600;
}
#confirm {
  max-width: 26rem;
}
@media (max-width: 760px) {
  #app {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .site-name {
    display: none;
  }
  aside .brand {
    padding: 0;
  }
  .logout {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-height: 2rem;
  }
  nav {
    display: flex;
    grid-column: 1/-1;
    margin-top: 0.7rem;
  }
  nav button {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    min-height: 2.2rem;
  }
  .workspace {
    padding: 1.25rem;
  }
  .release-grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: flex-end;
  }
  .search-line {
    flex-wrap: wrap;
  }
  .job {
    flex-wrap: wrap;
  }
}
