:root {
  color-scheme:dark;
  --canvas:#14151a;
  --sidebar:#191a20;
  --panel:#1d1f26;
  --line:#30323c;
  --text:#f5f3fb;
  --muted:#acafbf;
  --accent:#c4b5fd;
  --highlight:#2b2740;
  --hover:#262832;
  --frame:#101115;
  font-family:Geist,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  color:var(--text);
  background:var(--canvas);
}

*,*::before,*::after {
  box-sizing:border-box;
}

[hidden] {
  display:none!important;
}

body {
  margin:0;
  min-width:320px;
}

button,a {
  font:inherit;
  color:inherit;
}

a {
  text-decoration:none;
}

button {
  cursor:pointer;
}

button:focus-visible,a:focus-visible,summary:focus-visible,video:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

p {
  line-height:1.58;
}

.bar {
  height:65px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 28px;
  background:#18191e;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-size:21px;
  letter-spacing:-.045em;
  font-weight:710;
}

.brand-mark {
  width:22px;
  height:19px;
  display:block;
  border:2px solid var(--accent);
  border-radius:5px;
  position:relative;
}

.brand-mark::after {
  content:"";
  position:absolute;
  top:4px;
  left:7px;
  border-left:6px solid var(--accent);
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
}

.plain {
  margin-left:auto;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 0;
}

.plain:hover {
  color:var(--text);
}

.layout {
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  min-height:calc(100dvh - 65px);
}

aside {
  padding:23px 14px 34px;
  background:var(--sidebar);
  border-right:1px solid var(--line);
}

.side-heading {
  color:var(--muted);
  font-size:13px;
  margin:0 12px 12px;
  font-weight:600;
}

#folders {
  display:grid;
  gap:4px;
}

.folder {
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-radius:8px;
  font-size:14px;
}

.folder:hover {
  background:var(--hover);
}

.folder[aria-current] {
  background:var(--highlight);
  border-color:#393151;
  color:#e6dcff;
}

.folder .name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.folder .amount {
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

.folder-icon {
  width:15px;
  height:11px;
  border:1.5px solid currentColor;
  border-radius:2px;
  position:relative;
  flex:none;
  color:#a7a4b6;
}

.folder-icon::before {
  content:"";
  position:absolute;
  left:-1.5px;
  top:-4px;
  width:7px;
  height:4px;
  border:1.5px solid currentColor;
  border-bottom:none;
  border-radius:2px 2px 0 0;
}

.workspace {
  max-width:1380px;
  width:100%;
  margin:0 auto;
  padding:28px clamp(22px,4vw,66px) 65px;
}

.breadcrumb {
  color:var(--muted);
  font-size:13px;
  min-height:21px;
  margin-bottom:12px;
}

.entries {
  display:flex;
  gap:8px;
  overflow:auto;
  max-width:100%;
  padding:2px 2px 8px;
  margin:0 -2px 14px;
}

.entries:empty {
  display:none;
}

.entry {
  flex:none;
  max-width:290px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--muted);
  padding:8px 11px;
  font-size:13px;
}

.entry:hover {
  color:var(--text);
}

.entry[aria-current] {
  color:var(--text);
  border-color:#6c598e;
  background:var(--highlight);
}

h1,h2,h3 {
  margin:0;
  letter-spacing:-.032em;
}

h1 {
  font-size:clamp(30px,4.2vw,53px);
  line-height:1.07;
  font-weight:690;
  overflow-wrap:anywhere;
}

h2 {
  font-size:20px;
  font-weight:650;
}

h3 {
  font-size:16px;
  font-weight:650;
}

.item-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:22px;
}

.version {
  display:flex;
  flex-wrap:wrap;
  color:var(--muted);
  gap:8px 13px;
  font-size:13px;
  margin:11px 0 0;
}

.actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:42px;
  padding:8px 13px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
}

.button:hover {
  background:var(--hover);
  border-color:#525469;
}

.button.primary {
  background:#cebef8;
  color:#201936;
  border-color:transparent;
  padding:9px 15px;
}

.button.primary:hover {
  background:#ded0ff;
}

.media-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(200px,275px);
  gap:16px;
  align-items:start;
}

.media-grid.solo {
  grid-template-columns:minmax(0,1fr);
}

.player {
  width:100%;
  min-height:360px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--frame);
  margin:0;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.player video {
  width:100%;
  max-height:min(66dvh,720px);
  min-height:320px;
  display:block;
  background:var(--frame);
  object-fit:contain;
}

.player img {
  width:100%;
  max-height:65dvh;
  display:block;
  object-fit:contain;
}

.cover {
  margin:0;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:13px;
  overflow:hidden;
}

.cover img {
  display:block;
  width:100%;
  aspect-ratio:4/5;
  max-height:43dvh;
  background:var(--frame);
  object-fit:contain;
}

.cover figcaption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  padding:12px;
}

.cover figcaption .button {
  min-height:36px;
}

.description,.files {
  margin-top:26px;
}

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.description .copy {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#dedfec;
  max-width:78ch;
  margin:13px 0 0;
}

.file {
  border-bottom:1px solid var(--line);
  display:flex;
  gap:13px;
  justify-content:space-between;
  align-items:center;
  padding:11px 0;
}

.file p {
  margin:0;
  overflow-wrap:anywhere;
}

.file small {
  display:block;
  color:var(--muted);
  margin-top:3px;
}

.empty,.access {
  color:var(--muted);
}

.empty h1,.access h1 {
  color:var(--text);
}

.access {
  max-width:610px;
  margin:0 auto;
  padding:clamp(80px,16vh,150px) 24px 52px;
}

.access-symbol {
  width:53px;
  height:53px;
  background:var(--highlight);
  border:1px solid #3d3451;
  border-radius:14px;
  display:grid;
  place-items:center;
  margin-bottom:20px;
}

.sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

.menu {
  display:none;
}

@media(max-width:860px) {
  .layout {
    grid-template-columns:183px minmax(0,1fr);
  }
  .item-head {
    align-items:flex-start;
    flex-direction:column;
  }
  .media-grid {
    grid-template-columns:minmax(0,1fr) minmax(158px,200px);
  }
}

@media(max-width:680px) {
  .bar {
    height:57px;
    padding:0 16px;
  }
  .menu {
    display:inline-flex;
    margin-left:auto;
    min-height:36px;
  }
  .plain {
    margin-left:0;
  }
  .layout {
    display:block;
    min-height:calc(100dvh - 57px);
  }
  aside {
    display:none;
    padding:13px 14px;
    border:0;
    border-bottom:1px solid var(--line);
  }
  aside.open {
    display:block;
  }
  .side-heading {
    display:none;
  }
  .workspace {
    padding:21px 16px 48px;
  }
  .breadcrumb {
    margin-bottom:11px;
  }
  .item-head {
    gap:15px;
    margin-bottom:17px;
  }
  .media-grid,.media-grid.solo {
    grid-template-columns:minmax(0,1fr);
  }
  .player {
    border-radius:11px;
    min-height:230px;
  }
  .player video {
    min-height:220px;
    max-height:66dvh;
  }
  .cover img {
    max-height:50dvh;
  }
  .cover figcaption {
    padding:12px 14px;
  }
  .actions .button {
    min-height:44px;
  }
  .access {
    padding-top:72px;
  }
}
