:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #202c2a;
  background: #f6f7f3;
  font-synthesis: none;
  --accent: #246b53;
  --line: #dce1da;
  --muted: #65716b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input,
label {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #ccd5cc;
  background: white;
  color: inherit;
  border-radius: 7px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #edf2ea;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #84bba5;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  display: inline-flex;
  gap: 35px;
  justify-content: space-between;
  align-items: center;
}
.primary:hover {
  background: #19573f;
}
.quiet {
  background: none;
  border: none;
  color: var(--muted);
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.6px;
}
.brand > span:last-child {
  font-weight: 400;
  color: var(--muted);
}
.mark {
  font-size: 23px;
  display: grid;
  place-items: center;
  background: #243e32;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-right: 8px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 64px 6vw 80px;
  min-height: calc(100vh - 165px);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  margin: 0 0 14px;
  color: var(--muted);
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 550;
  line-height: 1.1;
  margin: 0 0 16px;
}
.accent {
  color: var(--accent);
}
.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 12px;
}
.tabs {
  display: flex;
  gap: 22px;
}
.tab {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  color: var(--muted);
  position: relative;
}
.tab.active {
  color: #214c39;
}
.tab.active:after {
  content: '';
  height: 2px;
  position: absolute;
  background: var(--accent);
  left: 0;
  right: 0;
  bottom: -13px;
}
#count {
  font-size: 11px;
  display: inline-block;
  background: #e4eadf;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
}
input {
  border: 1px solid #d0d8cf;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  width: 100%;
  color: inherit;
  min-width: 0;
}
#search {
  width: 225px;
  background: transparent;
  font-size: 13px;
}
#library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.video-item {
  min-width: 0;
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: #e7ebe2;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  color: #617260;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.thumb:hover img {
  transform: scale(1.025);
}
.thumb .play {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffffdc;
  color: #263e2f;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb:hover .play,
.thumb:focus-visible .play {
  opacity: 1;
}
.video-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  margin-top: 14px;
}
.video-info h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.metadata {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.state {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  padding-top: 4px;
  color: var(--accent);
}
.state.error {
  color: #a55736;
}
.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 6px 9px;
  font-size: 12px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 95px 10px 100px;
  border: 1px dashed #c9d4c5;
  border-radius: 10px;
}
.empty .upload-symbol {
  margin-bottom: 22px;
}
.empty h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}
.upload-symbol {
  font-size: 28px;
  color: var(--accent);
  display: block;
}
.empty button {
  margin-top: 25px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 25px 6vw;
  color: #7c857e;
  font-size: 12px;
}
#login {
  max-width: 360px;
  margin: 45px auto;
}
#login h1 {
  font-size: 40px;
}
#login form {
  margin-top: 35px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 20px 0 8px;
}
#login button {
  width: 100%;
  margin-top: 20px;
}
dialog {
  border: 1px solid #d8dfd5;
  border-radius: 14px;
  padding: 30px;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 90vh;
  background: #f9faf6;
  color: inherit;
  box-shadow: 0 24px 100px #17251c25;
}
dialog::backdrop {
  background: #1c2b235c;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
h2 {
  font-weight: 550;
  letter-spacing: -0.5px;
}
.dialog-head h2 {
  margin: 0;
}
#drop-zone {
  padding: 25px 10px;
  border: 1px dashed #aebfad;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f0f4eb;
}
#drop-zone.dragover {
  border-color: var(--accent);
  background: #dfeedd;
}
#drop-zone span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
#video-file {
  font-size: 12px;
  border: 0;
  background: none;
  padding: 0;
}
#start-upload {
  width: 100%;
  margin-top: 10px;
}
progress {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 20px;
}
#upload-status {
  font-size: 13px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #233e30;
  color: white;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: 0 6px 22px #0002;
  z-index: 10;
  max-width: 90vw;
}
#notice:empty {
  display: none;
}
#preview {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 7px;
  margin: 15px 0;
  background: #111;
}
.share-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.share-actions button {
  flex: 1;
  white-space: nowrap;
}
.inline {
  display: flex;
  gap: 10px;
}
.inline button {
  white-space: nowrap;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 0;
}
.danger {
  color: #984a3b;
  background: transparent;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
#recovery-note {
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  #library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding-top: 40px;
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 540px) {
  header {
    height: 72px;
    padding: 0 22px;
  }
  main {
    padding: 34px 22px 65px;
  }
  .heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 20px;
  }
  h1 {
    font-size: 38px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  #search {
    width: 100%;
    order: -1;
  }
  .tabs {
    gap: 22px;
  }
  .tab.active:after {
    bottom: -13px;
  }
  #library {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .heading > .primary {
    align-self: stretch;
    justify-content: center;
  }
  .share-actions {
    flex-direction: column;
  }
  dialog {
    padding: 20px;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  footer {
    padding: 22px;
    font-size: 10px;
  }
  .empty {
    padding: 65px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
