@font-face {
  font-family: Jakarta;
  src: url("/assets/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #252a3e;
  --muted: #838798;
  --purple: #6755d9;
  --purple-hover: #5745c9;
  --line: #e9eaf1;
  --paper: #f7f8fc;
  --sidebar: #202743;
  --lavender: #eeebfc;
  --green: #31856b;
  --radius: 12px;
  font-family: Jakarta, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
  background: var(--paper);
}

/* Account screens share SiVi's studio palette and form controls. */
.signed-out .sidebar,
.signed-out .topbar,
.signed-out .page-footer {
  display: none;
}
.signed-out .workspace {
  margin-left: 0;
}
.signed-out main {
  padding: 0;
  max-width: none;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #202743;
  color: #fff;
  padding: 48px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand {
  margin: 0;
}
.login-story h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1.3px;
  line-height: 1.45;
}
.login-story p {
  margin-top: 20px;
  max-width: 42ch;
  color: #bec5db;
  line-height: 1.9;
  font-size: 14px;
}
.login-story > span {
  font-size: 12px;
  color: #aeb6d0;
}
.login-story > div > img {
  margin: 20px 0;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: #fafafe;
}
.login-panel > div {
  width: 100%;
  max-width: 370px;
}
.login-panel h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.login-panel p {
  font-size: 13px;
  color: #73778d;
  line-height: 1.8;
  margin-top: 12px;
}
.login-panel form {
  margin-top: 30px;
}
.login-panel .field input {
  min-height: 47px;
  font-size: 14px;
}
.login-submit {
  margin-top: 24px;
  width: 100%;
  min-height: 45px;
}
.login-panel > div > small {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  color: #7b7f91;
  text-align: center;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  align-items: start;
}
.settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 28px;
  min-width: 0;
}
.settings-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 28px;
}
.settings-title > .icon {
  width: 24px;
  height: 24px;
  color: var(--purple);
}
.settings-title h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.settings-title p {
  font-size: 12px;
  color: #73778d;
  margin-top: 8px;
  line-height: 1.8;
}
.settings-card .field input {
  font-size: 14px;
}
.settings-note {
  margin: 19px 0;
  font-size: 12px;
  color: #777387;
  line-height: 1.9;
}
.token-actions {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.settings-code {
  background: #f3f0fb;
  border: 1px solid #e8e1f5;
  border-radius: 8px;
  padding: 16px;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.settings-code span {
  font-size: 12px;
  color: #73628d;
  display: block;
  margin-bottom: 9px;
}
.settings-code code {
  font-size: 12px;
  color: #655179;
}
.settings-code p {
  font-size: 11px;
  color: #80748b;
  margin-top: 10px;
  line-height: 1.8;
}
.settings-guide {
  margin-top: 22px;
}
#logout-button {
  border: none;
  border-radius: 6px;
  padding: 0;
}
@media (max-width: 900px) {
  .login-story {
    padding: 35px 8%;
  }
  .login-panel {
    padding: 35px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 23px;
  }
  .login-story > div,
  .login-story > span {
    display: none;
  }
  .login-panel {
    padding: 42px 24px;
    min-height: calc(100vh - 158px);
  }
  .login-panel h2 {
    font-size: 25px;
  }
  .settings-card {
    padding: 22px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button,
input,
textarea,
select {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ab9bef;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a798ed;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
button .icon,
a .icon {
  pointer-events: none;
}
button {
  border: 0;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
textarea {
  resize: vertical;
  line-height: 1.75;
}
input,
select,
textarea {
  min-width: 0;
}
select {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: var(--sidebar);
  color: #bdc0d2;
  padding: 34px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  margin: 0 auto 24px;
  width: fit-content;
}
.brand img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 12px;
}
.workspace-label {
  font-size: 13px;
  color: #626679;
  padding: 0 16px;
  margin-bottom: 14px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar nav a:hover {
  background: #2d3553;
  color: white;
}
.sidebar nav a.active {
  background: #383955;
  color: #e0d9ff;
}
.sidebar nav a.active .icon {
  color: #b9aaff;
}
.nav-count {
  font-size: 12px;
  padding: 3px 7px;
  background: #555173;
  color: #ede8ff;
  border-radius: 5px;
  margin-left: auto;
}
.sidebar-note {
  margin: 68px 17px 30px;
  color: #72768a;
}
.sidebar-note > .icon {
  color: #787094;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
}
.sidebar-note p {
  color: #c8cbde;
  line-height: 1.75;
  font-size: 16px;
  margin-bottom: 13px;
  font-weight: 600;
}
.sidebar-note > span {
  font-size: 13px;
  line-height: 1.85;
  color: #60677b;
}
.workspace-footer {
  margin-top: auto;
  border-top: 1px solid #343b57;
  padding: 22px 5px 0;
  display: flex;
  gap: 11px;
  align-items: center;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  border-radius: 9px;
  background: #3e4764;
  color: #e3e2f3;
  font-size: 14px;
}
.workspace-footer strong {
  display: block;
  color: #dadce9;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.workspace-footer small {
  font-size: 11px;
  color: #707486;
  white-space: nowrap;
}
.workspace-footer i,
.local-indicator i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79b499;
  margin-right: 4px;
}
.workspace {
  margin-left: 238px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  gap: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #6b6d78;
}
.breadcrumb > .icon {
  width: 17px;
  height: 17px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4d5269;
}
.crumb-slash {
  color: #c6c8d2;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.local-indicator {
  font-size: 12px;
  color: #5d636e;
  display: flex;
  align-items: center;
  gap: 4px;
}
.local-indicator i {
  width: 5px;
  height: 5px;
}
.avatar {
  border: 4px solid #f1edf9;
  background: #e6e0f6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #766594;
  font-weight: 700;
}
.topbar-right > .icon-button {
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 18px;
  width: 38px;
  color: #676a77;
}
main {
  max-width: 1530px;
  width: 100%;
  padding: 38px 43px 55px;
  margin: 0 auto;
  flex: 1;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1.15px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 750;
}
.heading-count {
  background: #eae7f7;
  color: #55488c;
  border: 1px solid #e1dcf4;
  border-radius: 7px;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  padding: 3px 8px;
}
.page-heading p,
.detail-heading > div > p {
  font-size: 14px;
  color: #60636f;
  margin-top: 7px;
  line-height: 1.8;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 7px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--purple);
  border: 1px solid var(--purple);
  color: white;
  box-shadow: 0 3px 6px #6755d917;
}
.primary:hover {
  background: var(--purple-hover);
}
.secondary {
  background: white;
  border: 1px solid #e1e2eb;
  color: #595d71;
}
.secondary:hover {
  background: #f5f3fc;
  border-color: #c9c1e8;
}
.text-button {
  background: none;
  color: #5d5293;
  box-shadow: none;
}
.text-button:hover {
  background: #f0edf9;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  color: #656876;
}
.icon-button:hover {
  background: #eeebf8;
  color: var(--purple);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.welcome-banner {
  position: relative;
  overflow: hidden;
  background: #f0eefb;
  border: 1px solid #e8e3f8;
  border-radius: 13px;
  min-height: 245px;
  padding: 29px 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.welcome-tag {
  display: block;
  font-size: 12px;
  color: #655d83;
  margin-bottom: 11px;
}
.welcome-banner h2 {
  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -1px;
  font-weight: 700;
  color: #393153;
}
.welcome-banner p {
  font-size: 13px;
  color: #666074;
  line-height: 1.85;
  margin-top: 11px;
}
.welcome-banner .text-link {
  margin-top: 17px;
  font-size: 12px;
}
.welcome-banner > div {
  z-index: 1;
  flex-shrink: 0;
}
.welcome-banner > img {
  position: absolute;
  width: 430px;
  height: auto;
  right: 17px;
  top: 0;
  bottom: 0;
  margin: auto;
}
.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #584c89;
  font-size: 13px;
  font-weight: 600;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.text-link:hover {
  text-decoration: underline;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  gap: 10px;
}
.filter-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #646671;
  border: 1px solid transparent;
}
.filter-tabs button .icon {
  width: 15px;
  height: 15px;
}
.filter-tabs button > span {
  font-size: 11px;
  background: #eeeff4;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 18px;
}
.filter-tabs button.active {
  background: #ece8f9;
  border-color: #e2dcf3;
  color: #55478a;
}
.filter-tabs button.active > span {
  background: #ded6f4;
  color: #55468b;
}
.filter-tabs button:hover {
  background: #f0edf8;
}
.view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e4e5ed;
  background: #fff;
  border-radius: 7px;
}
.view-switch .icon-button {
  width: 29px;
  height: 26px;
}
.view-switch .active {
  background: #f0edf9;
  color: #55498c;
}
.collection-toolbar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 21px 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid #e6e7ee;
  border-radius: 7px;
  padding: 0 12px;
  min-width: 240px;
  width: 340px;
  height: 38px;
}
.search-field .icon {
  color: #797b85;
  width: 16px;
  height: 16px;
}
.search-field input {
  width: 100%;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--ink);
  height: 100%;
}
.search-field input::placeholder {
  color: #757783;
}
.search-field:focus-within {
  outline: 2px solid #b3a7ed;
}
.search-field input:focus {
  outline: none;
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sort-controls label {
  font-size: 12px;
  color: #6b6e79;
}
.sort-controls select {
  border: 0;
  background: transparent;
  color: #61667a;
  font-size: 12px;
  padding: 7px 2px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.project-card {
  background: white;
  border: 1px solid #e5e7f0;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.project-card:hover {
  border-color: #c5bae8;
  box-shadow: 0 8px 22px #35304e0a;
}
.project-link {
  display: block;
  height: 100%;
  outline-offset: -4px !important;
}
.project-cover {
  height: auto;
  aspect-ratio: 1.75;
  position: relative;
  overflow: hidden;
  background: #edf0f4;
}
.project-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-card:hover .project-cover > img {
  transform: scale(1.035);
}
.type-chip {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: #ffffffdf;
  backdrop-filter: blur(4px);
  border: 1px solid #ffffff88;
  color: #545363;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.type-chip .icon {
  width: 12px;
  height: 12px;
}
.project-info {
  padding: 18px 18px 0;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.genre {
  font-size: 11px;
  color: #655b78;
  background: #f2eff8;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 500;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  color: #6b6d78;
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a2a5b1;
}
.badge.in_progress {
  color: #b18b48;
}
.badge.in_progress i {
  background: #c29f61;
}
.badge.completed {
  color: #548c77;
}
.badge.completed i {
  background: #6ba68b;
}
.project-info h3 {
  font-size: 15px;
  letter-spacing: -0.35px;
  font-weight: 700;
  margin: 13px 0 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.card-description {
  color: #6b6d78;
  font-size: 12px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 50px;
}
.card-counts {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 16px 0 17px;
  color: #6e707b;
  font-size: 11px;
}
.card-counts span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-counts .icon {
  width: 13px;
  height: 13px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eff0f5;
  padding: 13px 0;
  color: #6b6e78;
  font-size: 11px;
}
.card-bottom > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-bottom .icon {
  width: 12px;
  height: 12px;
}
.card-open {
  background: #f4f2fa;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  justify-content: center;
  color: #766b90;
}
.card-progress {
  height: 2px;
  background: #f0edf8;
}
.card-progress > span {
  height: 100%;
  display: block;
  background: #b2a4e4;
}
.result-count {
  color: #7e8089;
  font-size: 12px;
  margin-top: 24px;
}
.no-cover {
  background: #dfe8ea;
}
.no-cover.theme-1 {
  background: #e6e0f2;
}
.no-cover.theme-2 {
  background: #e8e0d5;
}
.cover-symbol {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #6e727d;
}
.cover-symbol > .icon {
  width: 41px;
  height: 41px;
  stroke-width: 1.2;
}
.cover-symbol > span {
  font-size: 12px;
}
.list-view {
  grid-template-columns: 1fr;
  gap: 13px;
}
.list-view .project-link {
  display: flex;
}
.list-view .project-cover {
  width: 210px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.list-view .project-info {
  padding: 18px 24px 0;
  flex: 1;
  min-width: 0;
}
.list-view .project-info h3 {
  margin: 7px 0;
}
.list-view .card-description {
  height: auto;
  -webkit-line-clamp: 1;
}
.list-view .card-counts {
  margin: 10px 0;
}
.list-view .card-bottom {
  padding: 8px 0;
}
.page-footer {
  margin: 0 43px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #7b7e88;
}
.page-footer > span:first-child {
  display: flex;
  gap: 12px;
}
.empty-state {
  padding: 47px 20px 51px;
  text-align: center;
  border: 1px dashed #dadbe7;
  background: #fff;
  border-radius: 10px;
}
.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  background: #f1edfb;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #706098;
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.4;
}
.empty-state h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 13px;
  color: #6f717c;
  line-height: 1.9;
  margin: 0 auto 20px;
  max-width: 60ch;
}
.empty-state > div:last-child {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.empty-state.compact {
  padding: 55px 20px;
}
.loading-state {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6e697c;
  margin-bottom: 24px;
}
.back-link .icon {
  width: 14px;
  height: 14px;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.detail-heading > div:first-child {
  min-width: 0;
}
.detail-heading h1 {
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: -1.1px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.detail-heading > div > p {
  max-width: 70ch;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-meta > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6e707e;
}
.detail-meta .icon {
  width: 14px;
  height: 14px;
}
.detail-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #747682;
  margin-top: 15px;
}
.detail-date .icon {
  width: 12px;
  height: 12px;
}
.dot-separator {
  padding: 0 5px;
}
.production-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 27px;
}
.production-icon {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #f0ecfb;
  display: grid;
  place-items: center;
  color: #706293;
}
.production-summary > div:nth-child(2) {
  flex: 1;
}
.production-summary strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.production-summary > div:nth-child(2) > span {
  font-size: 12px;
  color: #70737f;
  line-height: 1.7;
  display: block;
}
.progress-summary {
  min-width: 155px;
  margin-left: 14px;
}
.progress-summary > span {
  font-size: 11px;
  color: #777882;
  display: block;
  margin-bottom: 9px;
}
.progress-summary > span > strong {
  display: inline;
  color: #65578a;
  font-size: 13px;
  margin-right: 4px;
}
.progress-track {
  height: 4px;
  border-radius: 5px;
  background: #efecf7;
  overflow: hidden;
}
.progress-track > span {
  height: 100%;
  display: block;
  background: #a18bd7;
  border-radius: 5px;
}
.detail-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e4e5ef;
}
.detail-tabs button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px 2px 17px;
  color: #6f717e;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.detail-tabs button > .icon {
  width: 16px;
  height: 16px;
}
.detail-tabs button > span {
  background: #edecf5;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.detail-tabs button.active {
  color: #584889;
}
.detail-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: #8c75cc;
  left: 0;
  right: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 29px 0 23px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.35px;
}
.section-heading p {
  color: #6f727e;
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.8;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.scene-card {
  overflow: hidden;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
}
.scene-open {
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}
.scene-open:hover h3 {
  color: var(--purple);
}
.scene-cover {
  aspect-ratio: 1.7;
  background: #ececf4;
  position: relative;
  overflow: hidden;
}
.scene-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  flex-direction: column;
  color: #7f7e8b;
  font-size: 11px;
}
.scene-placeholder > .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.3;
}
.scene-number {
  position: absolute;
  left: 13px;
  top: 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  padding: 4px 7px;
  color: white;
  background: #333047a6;
  backdrop-filter: blur(5px);
}
.video-ready {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  background: #edf7edeb;
  color: #5a866c;
  padding: 4px 7px;
  border-radius: 4px;
}
.video-ready .icon {
  width: 12px;
  height: 12px;
}
.scene-info {
  padding: 18px;
}
.scene-info h3 {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.scene-info p {
  font-size: 12px;
  color: #6a6c78;
  line-height: 1.9;
  margin-top: 8px;
  height: 70px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scene-completeness {
  display: flex;
  gap: 13px;
  margin-top: 17px;
}
.scene-completeness span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bdc0cb;
}
.scene-completeness span.ready {
  color: #596f65;
}
.scene-completeness .icon {
  width: 12px;
  height: 12px;
}
.scene-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 13px 8px 18px;
  border-top: 1px solid #eff0f6;
  color: #797b86;
  font-size: 11px;
}
.scene-footer > div {
  display: flex;
}
.scene-footer .icon-button {
  width: 27px;
  height: 27px;
}
.scene-footer .icon-button > .icon {
  width: 14px;
  height: 14px;
}
.add-scene-card {
  border: 1px dashed #d9d5e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-direction: column;
  min-height: 265px;
  color: #72688a;
  background: #f6f3fc;
}
.add-scene-card:hover {
  background: #f0eafa;
  border-color: #b8a7d9;
}
.add-scene-card > span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #ece5f7;
}
.add-scene-card strong {
  font-size: 14px;
  font-weight: 600;
}
.add-scene-card small {
  font-size: 12px;
  color: #80788e;
  margin-top: -5px;
}
.more-menu {
  position: relative;
}
.more-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
}
.more-menu summary::-webkit-details-marker {
  display: none;
}
.more-menu > div {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 5;
  background: white;
  box-shadow: 0 10px 35px #252a3e1a;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 190px;
  padding: 6px;
}
.menu-item {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  width: 100%;
  border-radius: 5px;
}
.menu-item .icon {
  width: 15px;
  height: 15px;
}
.menu-item:hover {
  background: #f7f5fc;
}
.danger-text {
  color: #894d56;
}
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.audio-card {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: flex-start;
}
.audio-symbol {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #eee9f9;
  color: #72638f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.audio-symbol > .icon {
  width: 24px;
  height: 24px;
}
.audio-info {
  flex: 1;
  min-width: 0;
}
.audio-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.audio-title h3 {
  font-size: 14px;
}
.soft-badge {
  background: #f1eff8;
  color: #706388;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
}
.audio-info p {
  font-size: 12px;
  color: #6d6f7b;
  margin-top: 8px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.audio-info audio {
  display: block;
  margin-top: 14px;
  height: 36px;
  width: 100%;
  max-width: 500px;
}
.missing-asset {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #babdca;
  font-size: 11px;
  margin-top: 13px;
}
.missing-asset .icon {
  width: 13px;
  height: 13px;
}
.row-actions {
  display: flex;
  gap: 4px;
}
.file-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.file-table-head,
.file-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
}
.file-table-head {
  background: #fafafd;
  font-size: 12px;
  color: #6a6d7b;
  border-bottom: 1px solid var(--line);
}
.file-row + .file-row {
  border-top: 1px solid #f0f0f6;
}
.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.file-name > .icon {
  width: 33px;
  height: 37px;
  padding: 7px;
  border-radius: 6px;
  background: #f0ecf8;
  color: #77668a;
}
.file-name > div {
  min-width: 0;
}
.file-name strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.file-name small {
  font-size: 11px;
  color: #7a7b86;
  display: block;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row > p {
  font-size: 12px;
  line-height: 1.8;
  color: #6e727e;
  overflow-wrap: anywhere;
}
.asset-filters {
  margin-bottom: 28px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.asset-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.asset-preview {
  aspect-ratio: 1.6;
  background: #eeeaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e7291;
}
.asset-preview > img,
.asset-preview > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-preview > .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.2;
}
.asset-info {
  padding: 16px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.asset-info > div {
  min-width: 0;
}
.asset-info h3 {
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.asset-info a:not(.icon-button) {
  display: block;
  margin-top: 7px;
  color: #76698a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.asset-path {
  padding: 0 16px 16px;
  font-size: 11px;
  color: #81828d;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.asset-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px;
  width: 100%;
}
.asset-audio > .icon {
  width: 34px;
  height: 34px;
}
.asset-audio audio {
  width: 100%;
  height: 34px;
  min-width: 0;
}
.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 30px;
  align-items: start;
}
.api-intro {
  background: #eeebf9;
  border: 1px solid #e4def4;
  padding: 28px;
  border-radius: 12px;
}
.api-icon {
  display: grid;
  place-items: center;
  background: #dfd7f5;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  color: #655585;
  margin-bottom: 18px;
}
.api-intro h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.api-intro p {
  font-size: 13px;
  color: #6e657b;
  line-height: 1.95;
  max-width: 60ch;
  margin-top: 13px;
}
.base-url {
  background: #f9f8fe;
  border: 1px solid #e2ddef;
  border-radius: 7px;
  margin-top: 22px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.base-url > span {
  font-size: 11px;
  color: #756881;
  white-space: nowrap;
}
.base-url code {
  font-size: 12px;
  color: #81728e;
  overflow-x: auto;
  flex: 1;
}
.code-block {
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #d0cde3;
  background: #282d45;
  border: 1px solid #373d59;
  border-radius: 10px;
  padding: 23px;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
  max-width: 100%;
}
.api-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.api-aside > section {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.api-aside h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 17px;
}
.api-aside h3 .icon {
  width: 16px;
  height: 16px;
  color: #786a8a;
}
.endpoint {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 5px 7px;
  padding: 12px 0;
  border-bottom: 1px solid #f0eef5;
  align-items: center;
}
.endpoint > b {
  font-size: 10px;
  color: #536b6a;
  background: #edf5f2;
  padding: 3px 5px;
  text-align: center;
  border-radius: 3px;
}
.endpoint .post {
  color: #655c82;
  background: #efebf8;
}
.endpoint .patch {
  color: #826e4b;
  background: #faf3e7;
}
.endpoint > code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.endpoint > span {
  grid-column: 2;
  font-size: 11px;
  color: #7c7884;
}
.api-aside .text-link {
  margin-top: 18px;
  font-size: 12px;
}
.workflow-steps {
  padding: 0 0 0 21px;
  margin: 0;
  color: #726389;
}
.workflow-steps li {
  padding-left: 8px;
  margin: 17px 0;
  font-size: 13px;
}
.workflow-steps strong {
  font-size: 12px;
  color: #696178;
  font-weight: 600;
}
.workflow-steps p,
.api-aside section > p {
  font-size: 12px;
  color: #726e7a;
  line-height: 1.9;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.api-aside section > p + p {
  margin-top: 12px;
}
.api-aside section > p code {
  font-size: 12px;
  background: #f4f1f8;
  padding: 1px 3px;
  color: #665873;
}
.api-aside section > .button {
  margin-top: 15px;
}
dialog {
  border: 1px solid #e4deef;
  border-radius: 15px;
  padding: 0;
  width: min(620px, calc(100vw - 32px));
  max-height: 90vh;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 25px 100px #15132638;
}
dialog.wide {
  width: min(1050px, calc(100vw - 40px));
}
dialog::backdrop {
  background: #1c203971;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.dialog-header {
  padding: 24px 27px 20px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.dialog-header p {
  font-size: 12px;
  color: #76707e;
  line-height: 1.7;
  margin-top: 6px;
}
.dialog-body {
  overflow-y: auto;
  padding: 25px 27px;
  overscroll-behavior: contain;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 17px 27px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  background: #fdfcfe;
  flex-shrink: 0;
}
.required-note {
  font-size: 11px;
  color: #837e8b;
  margin-right: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #726b7d;
  min-width: 0;
}
.field + .field {
  margin-top: 19px;
}
.form-grid > .field + .field {
  margin-top: 0;
}
.field > span,
.field > label {
  font-weight: 600;
}
.field b {
  color: #7d6383;
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #e4e0eb;
  background: white;
  color: #514c61;
  padding: 11px 12px;
  border-radius: 6px;
  width: 100%;
  font-size: 13px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #83808b;
  font-size: 12px;
}
.field small {
  font-size: 11px;
  color: #807b89;
  font-weight: 400;
  line-height: 1.8;
}
.toggle-field {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.toggle-field > input {
  position: absolute;
  left: 4px;
  opacity: 0;
  width: 36px;
  height: 23px;
}
.toggle {
  width: 35px;
  height: 20px;
  border-radius: 20px;
  background: #dfd9e8;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle:after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  background: white;
  box-shadow: 0 1px 2px #41305215;
  transition: transform 0.2s;
}
.toggle-field input:checked + .toggle {
  background: #9c85c9;
}
.toggle-field input:checked + .toggle:after {
  transform: translateX(15px);
}
.toggle-field input:focus-visible + .toggle {
  outline: 3px solid #bba1e5;
  outline-offset: 3px;
}
.toggle-field strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #807389;
}
.toggle-field small {
  display: block;
  font-size: 11px;
  color: #7e7785;
  margin-top: 5px;
}
.editor-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.media-column {
  padding: 21px;
  background: #f9f7fc;
  border: 1px solid #eeebf4;
  border-radius: 9px;
  align-self: start;
  min-width: 0;
}
.media-column > h3 {
  font-size: 14px;
  color: #655b72;
  margin-bottom: 19px;
}
.path-input {
  display: flex;
  gap: 7px;
  align-items: center;
}
.path-input input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 11px 9px;
}
.upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 37px;
  padding: 9px 11px;
  font-size: 11px;
  flex-shrink: 0;
}
.upload-label > .icon {
  width: 13px;
  height: 13px;
}
.upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.upload-label.uploading {
  opacity: 0.5;
  pointer-events: none;
}
.upload-label:focus-within {
  outline: 2px solid #b3a7ed;
}
.inline-preview:empty {
  display: none;
}
.inline-preview img {
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #ece9f1;
}
.inline-preview video {
  display: block;
  max-height: 220px;
  width: 100%;
  background: #272235;
  border-radius: 6px;
}
.inline-preview audio {
  height: 37px;
  width: 100%;
}
.info-note {
  display: flex;
  gap: 9px;
  background: #f0eafa;
  border: 1px solid #e7dff2;
  border-radius: 7px;
  padding: 13px;
  margin-top: 22px;
  color: #776985;
}
.info-note > .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.info-note p {
  font-size: 11px;
  line-height: 1.9;
}
.prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  margin-bottom: 7px;
}
.prompt-heading > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #6a5e73;
}
.prompt-heading .icon {
  width: 14px;
  height: 14px;
}
.small {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}
.form-error {
  font-size: 13px;
  color: #834a56;
  padding: 12px;
  border: 1px solid #edd5dd;
  background: #fff7f9;
  border-radius: 6px;
  margin-top: 18px;
  line-height: 1.8;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: white;
  border: 1px solid #ded8eb;
  box-shadow: 0 8px 30px #2f28421f;
  border-radius: 9px;
  max-width: 420px;
  color: #6d806f;
  font-size: 13px;
  line-height: 1.8;
}
.toast > .icon {
  width: 18px;
  height: 18px;
}
.toast.error {
  color: #7f4d59;
  border-color: #eacbd6;
}
.toast > span {
  overflow-wrap: anywhere;
}
#toasts {
  position: fixed;
  bottom: 25px;
  right: 26px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.image-unavailable:after {
  content: "Preview tidak tersedia";
  font-size: 12px;
  color: #716680;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.inline-preview.image-unavailable {
  position: relative;
  min-height: 55px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .welcome-banner {
    min-height: 265px;
  }
  .welcome-banner > img {
    width: 485px;
    right: 50px;
  }
  .project-grid,
  .scene-grid {
    gap: 28px;
  }
  .project-info {
    padding: 21px 22px 0;
  }
  .project-info h3 {
    font-size: 17px;
  }
  .project-cover {
    aspect-ratio: 1.8;
  }
  .card-description {
    font-size: 13px;
    height: 50px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .workspace {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 29px;
  }
  main {
    padding: 30px 29px 45px;
  }
  .page-footer {
    margin: 0 29px;
  }
  .project-grid,
  .scene-grid,
  .asset-grid {
    gap: 16px;
  }
  .welcome-banner > img {
    width: 355px;
    right: -16px;
    opacity: 0.9;
  }
  .welcome-banner {
    padding: 27px;
  }
  .welcome-banner h2 {
    font-size: 25px;
  }
  .project-info {
    padding: 15px 14px 0;
  }
  .card-counts {
    gap: 12px;
  }
  .project-info h3 {
    font-size: 14px;
  }
  .card-description {
    font-size: 11px;
  }
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-heading h1 {
    font-size: 28px;
  }
  .api-layout {
    gap: 20px;
  }
  .api-intro {
    padding: 22px;
  }
}
@media (max-width: 1000px) {
  .project-grid,
  .scene-grid,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-banner > img {
    width: 300px;
    right: -52px;
    opacity: 0.8;
  }
  .welcome-banner h2 {
    font-size: 24px;
  }
  .welcome-banner p {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .heading-actions {
    gap: 7px;
  }
  .heading-actions > .button {
    padding: 9px 11px;
    font-size: 12px;
  }
  .collection-toolbar {
    gap: 10px;
  }
  .search-field {
    width: 260px;
    min-width: 160px;
  }
  .sort-controls {
    gap: 4px;
  }
  .sort-controls label {
    display: none;
  }
  .api-layout {
    grid-template-columns: 1fr;
  }
  .api-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .api-aside > section:last-child {
    grid-column: 1/-1;
  }
  .progress-summary {
    min-width: 110px;
  }
  .production-summary {
    padding: 18px;
  }
  .production-summary > div:nth-child(2) > span {
    font-size: 11px;
  }
  .file-table-head,
  .file-row {
    grid-template-columns: 1fr 100px;
    gap: 15px;
  }
  .file-table-head > span:nth-child(2),
  .file-row > p {
    display: none;
  }
  .editor-columns {
    gap: 20px;
  }
  .media-column {
    padding: 16px;
  }
  .path-input {
    flex-wrap: wrap;
  }
  .path-input input {
    flex-basis: 150px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 76px;
    padding: 25px 11px 15px;
    align-items: center;
  }
  .sidebar .brand {
    margin: 0 0 35px;
  }
  .sidebar .brand img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
  }
  .workspace-label,
  .sidebar-note,
  .workspace-footer {
    display: none;
  }
  .sidebar nav {
    width: 100%;
    gap: 12px;
  }
  .sidebar nav a {
    font-size: 0;
    gap: 0;
    justify-content: center;
    padding: 14px 0;
  }
  .sidebar nav .nav-count {
    display: none;
  }
  .sidebar nav a .icon {
    width: 20px;
    height: 20px;
  }
  .workspace {
    margin-left: 76px;
  }
  .topbar {
    height: 65px;
    padding: 0 22px;
  }
  .topbar-right {
    gap: 12px;
  }
  .local-indicator {
    display: none;
  }
  main {
    padding: 27px 22px 40px;
  }
  .page-footer {
    margin: 0 22px;
  }
  .page-heading {
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .welcome-banner {
    min-height: 239px;
    padding: 25px;
  }
  .welcome-banner > img {
    width: 265px;
    right: -75px;
    opacity: 0.65;
  }
  .welcome-banner p {
    font-size: 12px;
  }
  .welcome-banner h2 {
    font-size: 23px;
  }
  .collection-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-field {
    width: 100%;
    flex: 1;
  }
  .sort-controls select {
    max-width: 150px;
    font-size: 11px;
  }
  .filter-tabs {
    gap: 3px;
  }
  .filter-tabs button {
    font-size: 12px;
    padding: 8px;
  }
  .filter-tabs button > span {
    font-size: 10px;
  }
  .view-switch .icon-button {
    width: 26px;
  }
  .project-grid,
  .scene-grid {
    gap: 16px;
  }
  .project-info h3 {
    font-size: 14px;
  }
  .card-counts {
    gap: 9px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .card-counts .icon {
    width: 12px;
    height: 12px;
  }
  .genre {
    font-size: 10px;
  }
  .card-meta {
    gap: 3px;
  }
  .badge {
    font-size: 10px;
    gap: 3px;
  }
  .project-cover {
    aspect-ratio: 1.6;
  }
  .type-chip {
    font-size: 10px;
    left: 10px;
    bottom: 10px;
  }
  .project-info {
    padding: 15px 12px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .production-summary {
    flex-wrap: wrap;
    gap: 11px;
  }
  .progress-summary {
    flex-basis: 100%;
    margin: 4px 0 0;
  }
  .progress-summary > span {
    margin-bottom: 6px;
  }
  .production-summary > div:nth-child(2) {
    flex-basis: 70%;
  }
  .detail-heading h1 {
    font-size: 26px;
  }
  .detail-tabs {
    gap: 22px;
  }
  .detail-tabs button {
    gap: 6px;
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading .button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .scene-info {
    padding: 15px;
  }
  .scene-info h3 {
    font-size: 14px;
  }
  .scene-completeness {
    gap: 9px;
  }
  .scene-completeness span {
    font-size: 10px;
  }
  .scene-footer {
    padding-left: 15px;
  }
  .scene-info p {
    font-size: 11px;
    line-height: 2;
  }
  .audio-card {
    gap: 13px;
    padding: 17px;
  }
  .audio-symbol {
    width: 40px;
    height: 43px;
    border-radius: 9px;
  }
  .audio-title h3 {
    font-size: 14px;
  }
  .audio-title {
    gap: 8px;
  }
  .audio-card > .row-actions {
    flex-direction: column;
  }
  .file-row {
    padding: 15px;
  }
  .asset-grid {
    gap: 15px;
  }
  .asset-info {
    padding: 13px 13px 8px;
  }
  .asset-info h3 {
    font-size: 13px;
  }
  .asset-info a:not(.icon-button) {
    font-size: 11px;
  }
  .api-aside {
    display: flex;
  }
  .dialog-header,
  .dialog-footer {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .editor-columns {
    grid-template-columns: 1fr;
  }
  .editor-columns > div {
    min-width: 0;
  }
  .media-column {
    padding: 18px;
  }
  .path-input {
    flex-wrap: nowrap;
  }
  .path-input input {
    flex-basis: auto;
  }
  .form-grid {
    gap: 18px 13px;
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .list-view .project-cover {
    width: 140px;
  }
  .list-view .project-info {
    padding: 15px 16px 0;
  }
  .list-view .card-meta {
    gap: 8px;
  }
  .detail-date {
    flex-wrap: wrap;
  }
  .file-table-head {
    padding: 15px;
  }
  .back-link {
    margin-bottom: 20px;
  }
}
@media (max-width: 500px) {
  .sidebar {
    position: static;
    width: 100%;
    height: 88px;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 20px;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar .brand img {
    width: 64px;
    height: 64px;
  }
  .sidebar nav {
    flex-direction: row;
    width: auto;
    gap: 8px;
  }
  .sidebar nav a {
    padding: 10px 12px;
  }
  .sidebar nav a .icon {
    width: 18px;
    height: 18px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 53px;
    padding: 0 20px;
  }
  .topbar-right {
    gap: 9px;
  }
  .topbar-right > .icon-button {
    display: none;
  }
  .avatar {
    width: 28px;
    height: 28px;
    border-width: 3px;
    font-size: 11px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 10px;
  }
  .breadcrumb > .icon {
    width: 14px;
    height: 14px;
  }
  main {
    padding: 24px 20px 35px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .button {
    min-height: 37px;
    padding: 9px 13px;
  }
  .welcome-banner {
    min-height: 220px;
    padding: 22px;
    margin-bottom: 24px;
  }
  .welcome-tag {
    font-size: 11px;
  }
  .welcome-banner h2 {
    font-size: 22px;
  }
  .welcome-banner p {
    font-size: 11px;
  }
  .welcome-banner > img {
    width: 250px;
    right: -90px;
    opacity: 0.45;
  }
  .welcome-banner .text-link {
    font-size: 11px;
  }
  .collection-heading {
    padding-bottom: 12px;
    gap: 4px;
  }
  .filter-tabs {
    gap: 0;
  }
  .filter-tabs button {
    font-size: 11px;
    gap: 5px;
    padding: 8px 7px;
  }
  .filter-tabs button .icon {
    display: none;
  }
  .view-switch {
    padding: 2px;
  }
  .view-switch .icon-button {
    width: 25px;
    height: 25px;
  }
  .sort-controls .icon-button {
    width: 27px;
  }
  .sort-controls select {
    max-width: 125px;
  }
  .collection-toolbar {
    margin: 17px 0;
  }
  .search-field {
    min-width: 0;
    width: auto;
    height: 35px;
    padding: 0 9px;
    gap: 6px;
  }
  .search-field input {
    font-size: 11px;
  }
  .search-field .icon {
    width: 13px;
    height: 13px;
  }
  .project-grid,
  .scene-grid,
  .asset-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-cover {
    aspect-ratio: 1.9;
  }
  .project-info {
    padding: 20px 20px 0;
  }
  .project-info h3 {
    font-size: 17px;
    margin: 14px 0 9px;
  }
  .card-description {
    font-size: 13px;
    height: 50px;
    line-height: 1.9;
  }
  .genre {
    font-size: 11px;
  }
  .badge {
    font-size: 11px;
    gap: 5px;
  }
  .card-counts {
    font-size: 12px;
    gap: 20px;
    margin: 17px 0;
  }
  .card-counts .icon {
    width: 14px;
    height: 14px;
  }
  .card-bottom {
    padding: 14px 0;
    font-size: 12px;
  }
  .card-bottom .icon {
    width: 13px;
    height: 13px;
  }
  .type-chip {
    font-size: 11px;
    left: 15px;
    bottom: 15px;
  }
  .type-chip .icon {
    width: 13px;
    height: 13px;
  }
  .empty-state {
    padding: 35px 17px;
  }
  .empty-state h3 {
    font-size: 17px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .empty-state > div:last-child {
    gap: 4px;
  }
  .empty-state > div > .button {
    font-size: 12px;
  }
  .list-view .project-cover {
    width: 104px;
  }
  .list-view .project-info {
    padding: 13px 12px 0;
  }
  .list-view .project-info h3 {
    font-size: 14px;
  }
  .list-view .genre {
    font-size: 10px;
  }
  .list-view .badge {
    font-size: 10px;
  }
  .list-view .card-description {
    font-size: 11px;
    height: 17px;
  }
  .list-view .card-counts {
    font-size: 10px;
    gap: 9px;
  }
  .list-view .card-counts .icon {
    width: 11px;
    height: 11px;
  }
  .list-view .card-bottom {
    font-size: 10px;
  }
  .detail-heading h1 {
    font-size: 24px;
  }
  .detail-meta {
    gap: 9px;
  }
  .detail-meta > span:last-child {
    font-size: 11px;
  }
  .detail-tabs {
    gap: 13px;
    justify-content: space-between;
  }
  .detail-tabs button {
    font-size: 11px;
    gap: 5px;
  }
  .detail-tabs button > .icon {
    width: 14px;
    height: 14px;
  }
  .section-heading {
    margin: 25px 0 19px;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 14px;
    line-height: 1.6;
  }
  .section-heading p {
    max-width: 30ch;
  }
  .section-heading > .button {
    font-size: 11px;
    padding: 9px 11px;
    min-height: 35px;
  }
  .section-heading .button > .icon {
    width: 13px;
    height: 13px;
  }
  .scene-info {
    padding: 18px;
  }
  .scene-info h3 {
    font-size: 14px;
  }
  .scene-info p {
    font-size: 13px;
    height: 75px;
    line-height: 1.9;
  }
  .scene-completeness {
    gap: 20px;
  }
  .scene-completeness span {
    font-size: 12px;
  }
  .scene-cover {
    aspect-ratio: 1.8;
  }
  .add-scene-card {
    min-height: 185px;
  }
  .file-table-head,
  .file-row {
    grid-template-columns: 1fr 92px;
    gap: 10px;
    padding: 15px 12px;
  }
  .row-actions {
    gap: 0;
  }
  .row-actions .icon-button {
    width: 30px;
  }
  .audio-card {
    gap: 10px;
    padding: 14px;
  }
  .audio-symbol {
    width: 32px;
    height: 37px;
  }
  .audio-symbol > .icon {
    width: 18px;
    height: 18px;
  }
  .audio-info p {
    font-size: 11px;
  }
  .audio-title h3 {
    font-size: 14px;
  }
  .audio-info audio {
    width: 100%;
    min-width: 0;
  }
  .missing-asset {
    font-size: 10px;
  }
  .detail-date {
    font-size: 10px;
    gap: 5px;
  }
  .dot-separator {
    padding: 0 3px;
  }
  .asset-grid .asset-preview {
    aspect-ratio: 1.8;
  }
  .asset-info h3 {
    font-size: 14px;
  }
  .asset-info a:not(.icon-button) {
    font-size: 12px;
  }
  .asset-path {
    font-size: 11px;
  }
  .api-intro {
    padding: 22px 19px;
  }
  .api-intro h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  .api-intro p {
    font-size: 12px;
  }
  .base-url {
    gap: 7px;
    padding: 8px;
  }
  .base-url > span {
    display: none;
  }
  .base-url code {
    font-size: 12px;
  }
  .code-block {
    padding: 18px;
    font-size: 12px;
  }
  .api-aside > section {
    padding: 21px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .dialog-header p {
    font-size: 11px;
  }
  .dialog-footer,
  .dialog-header {
    padding: 18px;
  }
  .dialog-body {
    padding: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: 1;
  }
  .dialog-footer .button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .required-note {
    font-size: 10px;
  }
  .toggle-field {
    padding: 5px 0;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 14px;
  }
  .field {
    font-size: 13px;
  }
  .field small {
    font-size: 11px;
  }
  .upload-label {
    font-size: 11px;
    padding: 9px;
  }
  .path-input input {
    font-size: 12px;
  }
  .page-footer {
    margin: 0 20px;
  }
  #toasts {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .toast {
    font-size: 12px;
    max-width: 100%;
    padding: 13px 15px;
  }
}
.toggle-field > input {
  z-index: 1;
  cursor: pointer;
}
.toggle {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Compact sidebar metadata remains subordinate to navigation. */
.workspace-footer small {
  font-size: 9px;
  color: #aab2c9;
}
.workspace-footer strong {
  font-size: 11px;
}
.sidebar nav a {
  font-size: 12px;
}
.workspace-label {
  color: #aab2c9;
}
.sidebar-note > span {
  color: #aab2c9;
}
.sidebar-note p {
  color: #d0d5e7;
}
@media (max-width: 760px) {
  .sidebar nav a {
    font-size: 0;
  }
}

#logout-button:not([hidden]) {
  display: inline-flex;
}
