/* 工作室外殼、素材、協作與交接元件；場景製作樣式見 maker.css。 */
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a3bfa0;
  outline-offset: 3px;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.studio {
  display: flex;
  min-height: 100dvh;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -1px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 39px;
  border-radius: 12px 12px 12px 3px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 29px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.eyebrow {
  font-weight: 650;
}
nav {
  display: grid;
  gap: 5px;
}
.nav-item > .count {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid #c2d1b9;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dbe1d5;
  padding-top: 18px;
}
.user strong {
  display: block;
  font-size: 12px;
}
.user div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #768178;
}
.breadcrumb > span:not(.badge) {
  color: #b5bcb2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 7px;
  line-height: 1;
  white-space: nowrap;
  background: #eff2eb;
  color: #71806d;
}
.badge .icon {
  width: 10px;
  height: 10px;
}
.ai {
  background: #f0e9f6 !important;
  color: #866199 !important;
}
.button {
  font-weight: 550;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: #edf2e9;
}
.button.primary:hover:not(:disabled) {
  background: #24593f;
}
.button.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
select {
  max-width: 280px;
  border: 1px solid #dce2d5;
  border-radius: 7px;
  background: #fff;
  padding: 9px 32px 9px 12px;
  font-size: 12px;
  color: var(--ink);
}
#branch-actions {
  display: flex;
  gap: 8px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
h2 {
  font-weight: 650;
}
.section-heading h2 > span {
  font-size: 11px;
  font-weight: 400;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 7px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}
.status-M {
  color: #9c843f;
  background: #f7f1de;
}
.status-D {
  color: #a75c50;
  background: #faece8;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  line-height: 1.9;
  color: #7d8a7a;
  font-size: 12px;
}
.empty.compact {
  padding: 35px 18px;
}
.error,
#confirm-error {
  color: #ad5046;
}
.image-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px;
}
.image-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--muted);
}
.checker {
  background-color: #f8f8f5;
  background-image:
    linear-gradient(45deg, #eaece5 25%, transparent 25%),
    linear-gradient(-45deg, #eaece5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eaece5 75%),
    linear-gradient(-45deg, transparent 75%, #eaece5 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.compare-frame {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.compare-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.section-heading {
  justify-content: space-between;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.asset-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 14px;
}
.asset-image {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 12px;
  padding: 12px;
}
.asset-image img {
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
}
.asset-card strong {
  display: block;
  font-size: 12px;
  margin: 14px 15px 5px;
}
.asset-card > span {
  display: block;
  font-size: 9px;
  margin: 0 15px;
  word-break: break-all;
}
.activity-row {
  width: 100%;
  text-align: left;
  border: 0;
}
.activity-row div {
  min-width: 0;
}
.activity-row strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.activity-row code {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 520px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 20px 90px #182f3226;
}
dialog::backdrop {
  background: #1b2b295e;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin: 13px 0 20px;
}
dialog p {
  font-size: 13px;
  line-height: 1.8;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 22px 0 8px;
}
dialog label strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
dialog input {
  border: 1px solid #cdd7c7;
  border-radius: 7px;
  padding: 11px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
}
.revision-box {
  background: #f1f4ec;
  border-radius: 8px;
  padding: 16px;
  font:
    11px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.dialog-actions .button {
  min-height: 42px;
}
.copy-row {
  display: flex;
  gap: 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 10px;
  background: #253f30;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  max-width: calc(100% - 30px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login {
  min-height: 100dvh;
  padding: 38px 6%;
  background:
    radial-gradient(ellipse at 85% 35%, #e1e9d3 0, transparent 55%), var(--bg);
}
.login-card {
  margin: 10vh auto 8vh;
  max-width: 530px;
  padding: 40px 48px;
  border: 1px solid #dfe5d8;
  border-radius: 24px;
  background: #fffffff0;
}
.login-card h1 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 43px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1px;
}
.login-card > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 30px;
}
.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  height: 100dvh;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .main {
    padding: 0 60px;
  }
}
@media (max-width: 1150px) {
  .main {
    margin-left: 205px;
    width: calc(100% - 205px);
    padding: 0 22px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .wordmark {
    font-size: 0;
    gap: 0;
  }
  .brand-mark {
    font-size: 29px;
  }
  .user div {
    display: none;
  }
  .nav-item {
    font-size: 0;
    padding: 14px;
    gap: 0;
  }
  .nav-item > span {
    display: none;
  }
  .sidebar-bottom {
    width: 100%;
    margin-top: auto;
  }
  .user {
    flex-direction: column;
  }
  .main {
    margin-left: 75px;
    width: calc(100% - 75px);
  }
}
@media (max-width: 580px) {
  .studio {
    display: block;
  }
  .brand-mark {
    width: 30px;
    height: 32px;
    font-size: 25px;
    border-radius: 9px 9px 9px 2px;
  }
  .nav-item {
    padding: 10px;
  }
  .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 0 17px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .breadcrumb .badge {
    display: none;
  }
  select {
    max-width: 75%;
    width: 75%;
    min-height: 40px;
  }
  #branch-actions:not(:empty) {
    display: flex;
    margin-top: 13px;
  }
  #branch-actions > .button {
    flex: 1;
    min-height: 40px;
  }
  .image-compare {
    grid-template-columns: 1fr;
    padding: 13px;
    gap: 20px;
  }
  .compare-frame {
    height: 270px;
  }
  .asset-grid {
    gap: 12px;
  }
  .asset-image {
    height: 155px;
  }
  .asset-image img {
    max-height: 131px;
  }
  .asset-card strong {
    font-size: 11px;
    margin-left: 10px;
  }
  .asset-card > span {
    margin-left: 10px;
  }
  .login {
    padding: 25px 22px;
  }
  .login > .wordmark {
    font-size: 22px;
    gap: 10px;
  }
  .login-card {
    padding: 30px 24px;
    margin: 12vh auto 8vh;
  }
  .login-card h1 {
    font-size: 33px;
  }
  .login-card > p {
    font-size: 13px;
  }
  dialog {
    padding: 23px;
  }
  dialog h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#diff-note {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 580px) {
  .breadcrumb {
    font-size: 9px;
    gap: 5px;
  }
}
.library-toolbar,
.view-toggle,
.file-metadata,
.editor-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.library-toolbar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.view-toggle .button {
  border-radius: 0;
}
.view-toggle .button:first-child {
  border-radius: 7px 0 0 7px;
}
.view-toggle .button:last-child {
  border-radius: 0 7px 7px 0;
}
.view-toggle .chosen {
  background: var(--pale);
  color: var(--green);
  border-color: #a7b89f;
}
.folder-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.folder-breadcrumbs button {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px;
  padding: 8px 0;
}
.folder-breadcrumbs span {
  color: var(--muted);
}
.directory-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: white;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
}
.directory-row:hover {
  background: var(--pale);
}
.directory-row > span:not(.muted),
.directory-row > strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.directory-row > .muted {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.directory-row .icon {
  color: #829272;
}
.asset-card {
  text-align: left;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}
.asset-card:hover {
  border-color: #a7b89f;
}
.editor-dialog {
  max-width: 930px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
}
.editor-heading {
  align-items: flex-start;
  gap: 20px;
}
.editor-heading h2 {
  overflow-wrap: anywhere;
}
.editor-dialog textarea,
#comment-body {
  display: block;
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #cdd7c7;
  background: #fafbf8;
  color: var(--ink);
  border-radius: 8px;
  padding: 14px;
  font:
    13px/1.7 ui-monospace,
    monospace;
  tab-size: 4;
}
.editor-dialog textarea:focus-visible,
#comment-body:focus-visible {
  outline: 3px solid #a3bfa0;
}
.file-metadata {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 16px;
}
.editor-image {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.editor-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.edit-destination {
  padding: 12px;
  border-radius: 8px;
  background: var(--pale);
  overflow-wrap: anywhere;
}
.editor-dialog .small {
  font-size: 11px;
}
.editor-dialog input[type="file"] {
  padding: 18px;
  background: var(--pale);
  border-style: dashed;
}
.submission-files {
  max-height: 48vh;
  overflow: auto;
}
.submission-files h4 {
  font-size: 12px;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.8;
}
.submission-files small {
  color: var(--muted);
}
.submission-files section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.submission-diff {
  font-size: 11px;
  line-height: 1.7;
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  background: #f3f6ee;
}
.submission-files .compare-frame {
  height: 220px;
}
.submission-files .image-compare {
  padding: 0;
}
.editor-dialog strong {
  overflow-wrap: anywhere;
}
#upload-selection {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#comment-body {
  min-height: 100px;
  font-family: inherit;
}
#branch-actions {
  flex-wrap: wrap;
}
#diff-note {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 580px) {
  .library-toolbar {
    gap: 12px;
  }
  .view-toggle {
    width: 100%;
  }
  .view-toggle .button {
    flex: 1;
    min-height: 40px;
  }
  .directory-row {
    padding: 14px 12px;
  }
  .editor-dialog {
    padding: 19px;
    max-height: 94dvh;
  }
  .editor-dialog textarea {
    min-height: 240px;
    font-size: 12px;
  }
  .editor-heading h2 {
    font-size: 17px;
  }
  .editor-image {
    height: 240px;
  }
  .editor-dialog .dialog-actions {
    flex-wrap: wrap;
  }
  .editor-dialog .dialog-actions .button {
    flex: 1;
  }
  .editor-dialog .image-compare {
    grid-template-columns: 1fr;
  }
  .submission-files {
    max-height: 40vh;
  }
  .file-metadata {
    flex-wrap: wrap;
  }
  #branch-actions > .button {
    flex: 1 1 40%;
  }
  #branch-review {
    min-height: 38px;
  }
  #diff-note {
    font-size: 9px;
    gap: 4px;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  font:
    15px/1.6 "Noto Sans CJK HK",
    "Noto Sans CJK TC",
    "Microsoft JhengHei",
    "PingFang TC",
    system-ui,
    sans-serif;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background: var(--backdrop) center / cover no-repeat;
  transform: scale(1.06);
  transition: background-image 0.4s ease;
}
body::after {
  background: var(--wash);
  z-index: -1;
  transition: background 0.4s ease;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.shell {
  display: grid;
  min-height: 100vh;
  position: relative;
}
.side {
  background: var(--side);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}
.brand .mark {
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 0.2px;
}
.project {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.project div {
  flex: 1;
  min-width: 0;
}
.project b {
  display: block;
  font-size: 14px;
}
.project span {
  font-size: 12px;
  color: var(--muted);
}
.side nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  font-size: 14px;
}
.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.nav-item .count {
  margin-left: auto;
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--muted);
}
.nav-item.active .count {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.main {
  min-width: 0;
}
.members {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.faces {
  margin-left: auto;
  display: flex;
}
.faces i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  border: 2px solid var(--side);
  margin-left: -7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
h1 {
  margin: 0 0 4px;
}
.lede {
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  margin: 30px 0 12px;
}
.muted {
  color: var(--muted);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: var(--shadow);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.button.primary {
  border-color: var(--green);
  font-weight: 600;
}
.button.wide {
  width: 100%;
}
.project-head {
  display: grid;
  position: relative;
  overflow: hidden;
}
.project-head::before {
  content: "";
  position: absolute;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 78%);
  transition: background-image 0.4s ease;
}
.project-head > * {
  position: relative;
}
.home-grid {
  display: grid;
  align-items: start;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
}
thead tr {
  background: var(--green-soft);
}
td {
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 3px 10px;
}
.kind.asset {
  background: var(--green-soft);
  color: var(--green);
}
.kind.scene {
  background: var(--violet-soft);
  color: var(--violet);
}
.kind.story {
  background: var(--amber-soft);
  color: var(--amber);
}
.kind.audio {
  background: var(--pink-soft);
  color: var(--pink);
}
.kind.version {
  background: var(--blue-soft);
  color: var(--blue);
}
.assets {
  display: grid;
  grid-template-columns: 230px 1fr 310px;
  gap: 16px;
  align-items: start;
}
.filter {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-solid);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.filter.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 13px;
}
.thumb {
  height: 92px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  overflow: hidden;
  background: var(--green-soft);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 16px;
  margin: 0;
  font-size: 13px;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
  text-align: right;
}
.composer {
  display: flex;
  flex-direction: column;
}
.composer input,
.composer textarea {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-solid);
  color: inherit;
  resize: vertical;
}
.composer .row {
  display: flex;
}
.post {
  border: 1px solid var(--line);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.post + .post {
  margin-top: 12px;
}
.post-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.state-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
}
.post.done .state-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.post-head b {
  display: block;
}
.reply {
  margin: 12px 0 0 34px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.reply + .reply {
  margin-top: 10px;
}
.post-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 0 34px;
}
.history {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.stamp {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 8px;
}
.stamp:first-child {
  margin-top: 0;
}
.release {
  position: relative;
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
}
.release + .release {
  margin-top: 10px;
}
.release.current {
  border-color: var(--green);
  background: var(--green-soft);
}
.release::before {
  content: "";
  position: absolute;
  left: -23px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-solid);
  border: 2px solid var(--line);
}
.release.current::before {
  background: var(--green);
  border-color: var(--green);
}
.release .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.release b {
  display: block;
  font-size: 14.5px;
}
.release .tag {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: -14px;
  width: 2px;
  background: var(--line);
}
.step .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  z-index: 1;
}
.step.done .n {
  background: var(--green);
  color: #fff;
}
.step h3 {
  margin: 4px 0 6px;
  font-size: 15px;
}
.drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: var(--green-soft);
}
.filelist {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.filerow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: var(--green-soft);
  border-radius: 8px;
  padding: 8px 12px;
}
.filerow .tagm {
  font-size: 11px;
  border-radius: 999px;
  padding: 1px 8px;
}
.tagm.mod {
  background: var(--amber-soft);
  color: var(--amber);
}
.tagm.add {
  background: var(--green-soft);
  color: var(--green);
}
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  margin-bottom: 18px;
}
.alert.warn {
  background: var(--amber-soft);
  border: 1px solid #e8d5ab;
}
.alert.bad {
  border: 1px solid #f0cdcd;
}
.alert > span > b {
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
  }
  .side nav {
    flex-direction: row;
  }
  .project {
    display: none;
  }
  .assets,
  .home-grid,
  .history {
    grid-template-columns: 1fr;
  }
  .project-head {
    grid-template-columns: 1fr;
  }
}
body {
  isolation: isolate;
  font-synthesis: weight style;
}
body::before,
body::after {
  display: none;
}
.world {
  position: fixed;
  inset: -35px;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--px), calc(var(--py) + var(--scroll)), 0)
    scale(1.035);
}
.world-day,
.world-night,
.world-light {
  position: absolute;
  inset: 0;
}
.world-day {
  background: url("ui/bg-day.jpg") center / cover;
}
.world-night {
  background: url("ui/bg-night.jpg") center / cover;
  opacity: var(--night-opacity);
  transition: opacity 2.4s ease;
}
.world-light {
  background:
    radial-gradient(ellipse at 85% 5%, var(--glow), transparent 60%),
    linear-gradient(var(--wash), var(--wash));
  transition: background 2s;
}
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.shell {
  grid-template-columns: 224px minmax(0, 1fr);
}
.side {
  min-width: 0;
  padding: 26px 16px;
  gap: 23px;
  box-shadow: 12px 0 50px #122e3612;
}
.brand .mark {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
  background: none;
  border-radius: 0;
  filter: drop-shadow(0 2px 2px #00000028);
}
.project {
  background: var(--green-soft);
}
.members {
  padding: 0 3px;
  font-size: 12px;
}
.nav-item {
  padding: 12px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.nav-item:hover {
  background: var(--green-soft);
  transform: translateX(3px);
}
.nav-item.active {
  box-shadow:
    inset 3px 0 var(--green),
    inset 0 1px 0 var(--edge);
}
.main {
  margin-left: 0;
  width: auto;
}
#view {
  margin: auto;
}
h1,
h2 {
  font-family: Georgia, "Noto Serif CJK TC", "Songti TC", serif;
}
h1 {
  font-size: 36px;
  letter-spacing: 0.02em;
}
h2 {
  letter-spacing: 0.06em;
}
.card,
.post {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.card {
  position: relative;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 1.5s;
}
.card:hover {
  border-color: var(--edge);
}
.project-head {
  padding: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border: 1px solid var(--edge);
  background:
    linear-gradient(115deg, var(--paper) 30%, transparent 145%), var(--paper);
  box-shadow:
    var(--shadow),
    0 0 55px -30px var(--accent);
}
.project-head::before {
  inset: 0;
  opacity: 0.2;
  background: var(--card-art) center / cover;
  mask-image: linear-gradient(110deg, transparent, #000);
  z-index: 0;
}
.project-head::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  pointer-events: none;
}
@supports (corner-shape: squircle) {
  .card {
    border-radius: 36px;
    corner-shape: squircle;
  }
  .project-head::after {
    border-radius: 29px;
    corner-shape: squircle;
  }
}
.project-head .eyebrow {
  display: inline-block;
  max-width: 100%;
  text-transform: none;
  color: #fff23d;
  font-family: "Courier New", "Noto Sans CJK TC", monospace;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.4;
  margin: 0 0 30px;
  padding: 0 3px;
  overflow-wrap: anywhere;
  text-shadow:
    2px 2px 0 #665016,
    -1px -1px 0 #665016,
    1px -1px 0 #665016,
    -1px 1px 0 #665016;
  transform: none;
  transform-origin: center;
  animation: splash-pulse 1.25s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%,
  100% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.02);
  }
}
.project-head h1 {
  font-size: clamp(52.8px, 6.24vw, 100.8px);
  line-height: 1.04;
  font-style: italic;
  letter-spacing: -0.055em;
  color: var(--accent);
  text-shadow:
    0 2px 0 var(--edge),
    0 8px 24px #ac5f9220;
  margin-bottom: 18px;
}
.project-head h1 span {
  display: block;
}
.project-head .lede {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.9;
}
.chip {
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  background: var(--green-soft);
}
.button {
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #0b273b20;
  border-color: var(--green);
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  color: var(--paper-solid);
  background: var(--green);
  box-shadow:
    0 4px 0 #133e4833,
    inset 0 1px 0 #ffffff4d;
}
.home-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
}
.home-updates > .card {
  padding: 18px 20px;
}
.home-updates > .card > .section-heading {
  margin: 0 0 12px;
}
.home-updates > .card > .post:last-child {
  margin-bottom: 0 !important;
}
.section-heading h2 {
  font-size: 17px;
}
.post {
  box-shadow: inset 0 1px 0 var(--edge);
  background: var(--green-soft);
  border-radius: 14px;
}
.post.done {
  opacity: 0.8;
}
td {
  padding: 13px 12px;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:hover {
  background: var(--green-soft);
}
.kind {
  font-size: 11px;
}
.alert.bad {
  background: var(--paper);
  color: var(--ink);
  border-color: #c67e85;
}
:is(button, a, select, input, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.scene-enter {
  animation: scene-enter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes scene-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes companion-breathe {
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}
:root[data-motion="off"] .world,
:root[data-motion="off"] .cast {
  transform: none;
}
:root[data-motion="off"] .scene-enter {
  animation: none;
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main {
    padding: 20px;
  }
  .side {
    padding: 24px 10px;
  }
  .project-head {
    padding: 28px;
    gap: 24px;
  }
  .project-head h1 {
    font-size: 64.8px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .side {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  .side nav {
    flex-direction: column;
  }
  .project {
    display: flex;
  }
  .assets {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  .project-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    padding: 12px 16px;
    gap: 12px;
  }
  .brand {
    padding: 0;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand .mark {
    width: 34px;
    height: 34px;
  }
  .project,
  .members {
    display: none;
  }
  .side nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .nav-item {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
  }
  .nav-item .count {
    display: none;
  }
  .main {
    padding: 18px 14px 32px;
  }
  .project-head {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 26px;
  }
  .project-head h1 {
    font-size: clamp(48px, 15.6vw, 76.8px);
  }
  .project-head h1 span {
    display: block;
  }
  .project-head .lede {
    max-width: none;
  }
  .home-grid {
    gap: 16px;
  }
  .home-grid table {
    table-layout: fixed;
  }
  th:first-child {
    width: 65px !important;
  }
  .home-grid th:nth-child(n/**/+3), .home-grid td:nth-child(n/**/+3) {
    display: none;
  }
  .filerow,
  .release {
    overflow-wrap: anywhere;
  }
  td {
    padding: 12px 8px;
  }
  .card {
    min-width: 0;
  }
  .alert {
    flex-wrap: wrap;
  }
  .steps .filelist .filerow {
    flex-wrap: wrap;
  }
  .step {
    gap: 10px;
  }
  .summary {
    gap: 8px;
  }
  .composer .row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .world {
    transform: none;
  }
  .atmosphere {
    display: none;
  }
}
.mt-12 {
  margin-top: 12px;
}
.mt-14 {
  margin-top: 14px;
}
.mt-18 {
  margin-top: 18px;
}
.mb-4 {
  margin: 0 0 4px;
}
.mb-12 {
  margin: 0 0 12px;
}
.mb-14 {
  margin: 0 0 14px;
}
.stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.post.compact {
  padding: 12px 14px;
  margin-bottom: 10px;
}
.release-tag {
  margin: 10px 0 2px;
}
.post-body {
  margin: 10px 0 0 34px;
}
.reply p {
  margin: 2px 0 0;
}
.reply-form {
  display: grid;
  gap: 10px;
  margin: 14px 0 0 34px;
}
.reply-buttons {
  display: flex;
  gap: 8px;
}
.field {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-solid);
  color: inherit;
  resize: vertical;
}
.button,
.nav-item,
.asset-card {
  transition-timing-function: var(--ui-ease);
}
.asset-card,
.directory-list,
.editor-dialog {
  background: var(--paper-solid);
  color: var(--ink);
  border-color: var(--line);
}
.view-toggle .chosen,
.directory-row:hover {
  background: var(--green-soft);
}
.asset-card > span {
  color: var(--muted);
}
.post-body,
.reply p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-form {
  min-width: 0;
}
@media (max-width: 580px) {
  .reply-buttons {
    flex-wrap: wrap;
  }
}
.button {
  color: var(--ink);
}
.section-heading h2 > span {
  background: var(--green-soft);
  color: var(--muted);
}
.library-files .section-heading {
  margin: 0 0 12px;
}
.library-layout .asset-card {
  border-radius: var(--radius);
  background: var(--paper-solid);
  min-width: 0;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s;
}
.library-layout .asset-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}
.library-layout .asset-card.sel {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}
.library-layout .asset-image {
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
}
.library-layout .asset-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.library-layout .asset-card strong {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.library-layout .asset-card > span {
  margin: 4px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.library-detail h2 {
  margin: 0 0 12px;
}
.library-detail .thumb {
  height: 160px;
}
.library-detail .thumb img {
  object-fit: contain;
}
.library-detail b,
.library-detail p,
.library-detail dd {
  overflow-wrap: anywhere;
}
.library-detail .button {
  width: 100%;
  margin-top: 16px;
}
.library-content .view-toggle .button {
  border-radius: 999px;
}
.library-content .view-toggle .chosen {
  background: var(--green);
  color: #fff;
}
@media (max-width: 1200px) {
  .library-layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .library-detail {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.library-content .folder-breadcrumbs {
  justify-content: flex-start;
}
.library-content .folder-breadcrumbs,
.folder-breadcrumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-inline: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.folder-breadcrumbs > * {
  flex: 0 0 auto;
  margin-inline: 0;
}
.view-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-solid);
}
.view-toggle button {
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
}
.view-toggle button:hover {
  color: var(--ink);
  background: var(--green-soft);
}
@media (max-width: 1100px) {
  .side nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .side nav .nav-item {
    flex: 0 0 auto;
  }
}
.drop {
  display: block;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.drop.over {
  border-color: var(--green);
  background: var(--green-soft);
}
.filerow .size {
  margin-left: auto;
  color: var(--muted);
}
.nav-text-mobile {
  display: none;
}
.library-toolbar {
  align-items: flex-start;
}
.library-location {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.library-location .folder-breadcrumbs {
  flex: 1 1 auto;
  min-width: 0;
}
.file-filter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  color: var(--muted);
  white-space: nowrap;
}
.file-filter select {
  min-width: 98px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-solid);
  color: var(--ink);
}
.library-toolbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.view-toggle {
  align-items: stretch;
}
.view-toggle button {
  width: auto;
  height: auto;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.view-toggle button .icon {
  width: 16px;
  height: 16px;
}
.view-toggle button.chosen {
  background: var(--green);
  color: #fff;
}
.folder-breadcrumbs {
  gap: 7px;
  min-height: 42px;
}
.folder-breadcrumbs button,
.folder-breadcrumbs .current {
  padding: 8px 2px;
}
.folder-breadcrumbs .current {
  color: var(--ink);
  font-weight: 650;
}
.folder-breadcrumbs button:hover {
  text-decoration: underline;
}
.library-layout > * {
  min-width: 0;
}
.library-files {
  min-width: 0;
  overflow: hidden;
}
.directory-list .library-heading {
  border-bottom: 1px solid var(--line);
}
.library-items {
  min-width: 0;
}
.library-item {
  min-width: 0;
}
.library-folder-card .asset-image,
.library-file-card .asset-image {
  height: 112px;
  margin-bottom: 9px;
  display: grid;
  place-items: center;
}
.library-folder-card .asset-image .icon {
  width: 38px;
  height: 38px;
  color: #829272;
}
.library-file-preview {
  background: var(--green-soft);
}
.library-preview-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.library-preview-fallback .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}
.library-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-item > span:last-child {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-folder-card > span:last-child,
.library-file-card > span:last-child {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.library-folder-card:hover,
.library-file-card:hover {
  border-color: var(--green);
}
.library-file-card.sel {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}
.directory-items {
  padding-bottom: 2px;
}
.directory-items .directory-row:last-of-type {
  border-bottom: 0;
}
.library-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: #829272;
}
.library-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.library-row-copy small {
  color: var(--muted);
}
.library-row-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.library-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  background: var(--green-soft);
}
.library-detail-placeholder .icon {
  width: 34px;
  height: 34px;
  color: var(--green);
}
.library-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  align-items: center;
  justify-items: center;
}
.library-empty .button {
  min-height: 34px;
  margin-top: 7px;
}
.library-content {
  position: relative;
  min-width: 0;
}
.library-drop-overlay {
  display: none;
  position: absolute;
  z-index: 4;
  inset: 0;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed var(--green);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-solid) 88%, transparent);
  color: var(--green);
  font-size: 15px;
  font-weight: 650;
  pointer-events: none;
}
.library-content.is-drop-target .library-drop-overlay {
  display: flex;
}
.library-content.is-drop-target > *:not(.library-drop-overlay) {
  filter: blur(1px);
}
.board-empty {
  color: var(--ink);
  background: var(--paper-solid);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .side {
    padding: 10px 14px 8px;
    gap: 8px;
  }
  .side nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .nav-item {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
  }
  .nav-item:hover {
    transform: none;
  }
  .nav-item > .nav-text-full {
    display: none;
  }
  .nav-item > .nav-text-mobile {
    display: inline;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-item .icon {
    width: 15px;
    height: 15px;
  }
  .main {
    padding: 14px 14px 30px;
  }
  .library-toolbar {
    gap: 10px;
  }
  .library-location {
    flex-basis: 100%;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .library-location .folder-breadcrumbs {
    flex-basis: 100%;
    min-height: 36px;
  }
  .file-filter {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .file-filter select {
    flex: 1 1 auto;
    min-height: 42px;
  }
  .library-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .view-toggle button {
    min-width: 88px;
    min-height: 42px;
  }
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-layout .library-items {
    padding-inline: 10px;
  }
  .library-detail {
    grid-column: auto;
  }
  .library-layout .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .library-folder-card,
  .library-file-card {
    min-height: 148px;
    padding: 8px;
  }
  .library-folder-card .asset-image,
  .library-file-card .asset-image {
    height: 88px;
    margin-bottom: 7px;
  }
  .library-item strong {
    font-size: 12px;
  }
  .directory-row {
    min-height: 56px;
    padding: 11px 13px;
  }
  .library-drop-overlay {
    inset: 0;
    min-height: 130px;
    border-radius: var(--radius);
    font-size: 14px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .library-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .library-location {
    flex-basis: 100%;
  }
  .library-toolbar {
    flex-wrap: wrap;
  }
}
.shell {
  align-content: stretch;
}
.main {
  padding: 32px clamp(20px, 2.5vw, 40px) 48px;
}
#view {
  max-width: var(--content-width);
}
#view[data-page="board"],
#view[data-page="sync"] {
  max-width: 900px;
}
#view > h1,
.library-content > h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.lede {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--page-gap);
  max-width: 65ch;
}
.small {
  font-size: var(--text-meta);
}
.card {
  padding: 24px;
}
.card > .section-heading:first-child {
  margin-top: 0;
}
.section-heading {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.button {
  min-height: var(--control-height);
  line-height: 1.4;
  padding: 10px 16px;
}
input,
textarea,
select {
  font: inherit;
}
.field,
.composer input,
.composer textarea {
  font-size: 15px;
  line-height: 1.6;
}
.nav-item {
  min-height: 46px;
}
.side {
  align-self: stretch;
}
.side .project {
  cursor: default;
}
th {
  font-size: 12px;
}
.post-head b {
  font-size: 15px;
}
.composer {
  gap: 10px;
}
.composer label {
  font-size: 14px;
  font-weight: 600;
}
.composer label:not(:first-child) {
  margin-top: 6px;
}
.composer .row {
  margin-top: 6px;
  align-items: center;
  gap: 12px;
}
.board-empty {
  padding: 28px 24px;
  text-align: left;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.history {
  gap: 20px;
  align-items: start;
}
.release {
  gap: 14px;
  min-width: 0;
}
.release > span:nth-child(2) {
  min-width: 0;
}
.library-toolbar {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  gap: 12px;
}
.library-location {
  flex: 1 1 360px;
}
.file-filter {
  font-size: 13px;
}
.file-filter select {
  min-height: var(--control-height);
  font-size: 14px;
}
.folder-breadcrumbs button,
.folder-breadcrumbs .current {
  font-size: 14px;
}
.library-content .view-toggle {
  flex: 0 0 auto;
  width: auto;
  gap: 2px;
  justify-content: flex-start;
}
.view-toggle button {
  min-width: 80px;
  min-height: 40px;
  font-size: 13px;
}
.library-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
}
.library-files {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.library-heading {
  padding: 0;
  min-height: 32px;
  margin: 0 0 16px;
  align-items: center;
  justify-content: space-between;
}
.library-layout .library-items {
  padding: 0;
}
.library-layout .asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
}
.library-layout .asset-card {
  padding: 12px;
}
.library-folder-card,
.library-file-card {
  min-height: 0;
}
.library-layout .asset-image {
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
}
.library-layout .asset-image img {
  max-height: none;
}
.library-layout .library-folder-card .asset-image {
  aspect-ratio: 2 / 1;
}
.library-layout .asset-card strong {
  font-size: 14px;
  line-height: 1.5;
}
.library-layout .asset-card > span {
  font-size: 12px;
}
.library-detail {
  align-self: start;
  padding: 20px;
}
.directory-row {
  border-radius: 10px;
  min-height: 66px;
  padding: 12px 14px;
}
.directory-items {
  display: grid;
  gap: 4px;
}
.directory-items .directory-row {
  background: transparent;
}
.directory-items .directory-row:hover {
  background: var(--green-soft);
}
.library-row-icon {
  flex-basis: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--green-soft);
}
.library-row-copy strong {
  font-size: 14px;
}
.library-row-copy small {
  font-size: 12px;
}

@media (max-width: 1000px) {
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-detail {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-rows: auto 1fr;
  }
  .side {
    padding: 10px 16px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .nav-item {
    min-height: 44px;
    font-size: 13px;
    padding: 8px 4px;
  }
  .nav-item .icon {
    width: 17px;
    height: 17px;
  }
  .main {
    padding: 24px 16px 36px;
  }
  #view > h1,
  .library-content > h1 {
    font-size: 27px;
  }
  .lede {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .card {
    padding: 18px;
  }
  .project-head {
    padding: 24px;
  }

  .library-toolbar {
    padding: 12px;
    gap: 12px;
  }
  .library-location {
    flex-wrap: nowrap;
    flex-basis: 100%;
    gap: 10px;
    align-items: center;
  }
  .library-location .folder-breadcrumbs {
    flex: 1 1 0;
  }
  .file-filter {
    flex: 0 0 auto;
    gap: 5px;
  }
  .file-filter select {
    width: 86px;
    min-width: 0;
    padding-inline: 8px;
  }
  .library-toolbar-actions {
    gap: 12px;
  }
  .library-content .view-toggle {
    width: auto;
  }
  .library-files {
    padding: 12px;
  }
  .library-layout .library-items {
    padding: 0;
  }
  .library-layout .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .library-layout .asset-card {
    padding: 10px;
  }
  .library-layout .asset-image {
    height: auto;
  }
  .library-detail {
    padding: 18px;
  }
  .library-heading {
    gap: 6px;
  }
  .library-count {
    font-size: 12px;
  }
  .composer input,
  .composer textarea,
  .field {
    font-size: 16px;
  }
  .board-empty {
    padding: 24px 18px;
  }
}
.library-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}
.folder-breadcrumbs {
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 12px;
}
.folder-breadcrumbs .current {
  background: var(--paper-solid);
  border-radius: 8px;
  padding-inline: 8px;
}
.library-parent {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 12px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
}
.library-layout .asset-card .folder-purpose {
  white-space: normal;
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
}
.library-preview-fallback b {
  font:
    600 16px/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.06em;
}
.library-preview-fallback {
  max-width: 100%;
}
.library-preview-fallback b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#confirm-revision {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: var(--green-soft);
  border-radius: 10px;
}

@keyframes sync-flow {
  from {
    transform: translateY(-8px);
    opacity: 0.3;
  }
  to {
    transform: translateY(8px);
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .library-shortcuts {
    gap: 8px;
  }
  .library-shortcuts .button {
    padding-inline: 10px;
    font-size: 13px;
  }
}

:is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .field,
  #comment-body
) {
  color: var(--control-ink);
  background-color: var(--control-bg);
  border-color: var(--control-border);
  caret-color: var(--control-ink);
}
select option {
  background: var(--control-bg);
  color: var(--control-ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input::file-selector-button {
  background: var(--control-bg);
  color: var(--control-ink);
  border: 1px solid var(--control-border);
  border-radius: 6px;
  padding: 8px 12px;
}
input:autofill {
  box-shadow: inset 0 0 0 1000px var(--control-bg);
  -webkit-text-fill-color: var(--control-ink);
}
::selection {
  background: var(--green);
  color: var(--on-green);
}
.button.primary,
.view-toggle button.chosen,
.library-content .view-toggle .chosen,
.filter.active,
.nav-item.active .count,
.step.done .n,
.post.done .state-dot {
  background: var(--green);
  color: var(--on-green);
}
:is(
  button,
  a,
  input,
  textarea,
  select,
  summary,
  #file-text,
  #comment-body
):focus-visible {
  outline: 3px solid var(--control-border);
  outline-offset: 3px;
}
.revision-box,
.submission-files,
.editor-dialog pre,
.edit-destination,
dialog {
  background: var(--paper-solid);
  color: var(--ink);
}
.edit-destination {
  border: 1px solid var(--control-border);
}

@keyframes team-transfer {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -100;
  }
}

.lane-history-note {
  font-size: 12px;
  color: var(--muted);
}
.lane-history-note summary {
  cursor: pointer;
  padding-block: 4px;
}

.delivery-progress {
  margin-bottom: 16px;
  padding: 16px 20px;
}
.delivery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.delivery-heading h2 {
  margin: 0;
  font-size: 18px;
}
.delivery-progress ol {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: 14px;
}
.delivery-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.delivery-progress li + li::before {
  content: "→";
  font-weight: normal;
}
.delivery-progress li.reached {
  font-weight: 700;
}
.delivery-progress p[role="status"] {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.delivery-progress details {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.delivery-progress summary {
  cursor: pointer;
}
[data-redesign="v1"] .world {
  opacity: 0.12;
}
[data-redesign="v1"] .atmosphere {
  opacity: 0.22;
}
[data-redesign="v1"] .shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}
[data-redesign="v1"] .side {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 26px 14px 18px;
  border-right: 1px solid var(--line);
  background: var(--side);
}
[data-redesign="v1"] .brand {
  padding: 0 8px;
  gap: 10px;
}
[data-redesign="v1"] .brand .mark {
  width: 32px;
  height: 38px;
  object-fit: contain;
}
[data-redesign="v1"] .brand strong {
  font-size: 20px;
  letter-spacing: -0.4px;
}
[data-redesign="v1"] .project {
  display: flex;
  margin: 0;
  gap: 12px;
  padding: 14px 10px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
[data-redesign="v1"] .project > img {
  width: 29px;
  height: 45px;
  object-fit: contain;
}
[data-redesign="v1"] .project b {
  font-size: 12px;
}
[data-redesign="v1"] .project span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
[data-redesign="v1"] .members {
  padding: 0 4px;
  margin-top: -10px;
  gap: 4px;
  font-size: 10px;
  white-space: nowrap;
}
[data-redesign="v1"] .faces i {
  width: 23px;
  height: 23px;
  font-size: 10px;
}
[data-redesign="v1"] .side nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: visible;
}
[data-redesign="v1"] .nav-item {
  display: flex;
  justify-content: flex-start;
  padding: 11px 12px;
  min-height: 42px;
  font-size: 12px;
  border-radius: 9px;
}
[data-redesign="v1"] .nav-item.active {
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-redesign="v1"] .nav-group {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 24px 12px 6px;
}
[data-redesign="v1"] .sidebar-bottom {
  margin-top: auto;
  padding: 26px 8px 0;
  display: grid;
  gap: 18px;
}
.sidebar-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 12px;
}
.sidebar-account .chip {
  margin-left: auto;
  font-size: 9px;
  padding: 2px 5px;
}
[data-redesign="v1"] .main {
  padding: 0 32px 40px;
  min-width: 0;
}
[data-redesign="v1"] #view {
  max-width: var(--content-width);
  margin: 0 auto;
}
[data-redesign="v1"] #view[data-page="board"],
[data-redesign="v1"] #view[data-page="sync"] {
  max-width: var(--content-width);
}
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.studio-context {
  color: var(--muted);
  font-size: 11px;
}
.studio-context > span {
  margin-left: 14px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.page-heading .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-redesign="v1"] .page-heading h1 {
  font: 600 30px/1.4 var(--font-title);
  margin: 0;
  letter-spacing: 1px;
}
[data-redesign="v1"] .page-heading .lede {
  font-size: 12px;
  margin: 6px 0 0;
  max-width: none;
}
.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
[data-redesign="v1"] .card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  corner-shape: round;
}
[data-redesign="v1"] h2 {
  font: 600 20px/1.45 var(--font-title);
}
[data-redesign="v1"] .button {
  padding: 9px 13px;
  font-size: 12px;
  border-radius: 9px;
}
[data-redesign="v1"] .button.primary {
  background: var(--green);
  color: var(--on-green);
}
[data-redesign="v1"] .section-heading {
  margin-bottom: 16px;
}
[data-redesign="v1"] .small {
  font-size: 12px;
}
[data-redesign="v1"] input,
[data-redesign="v1"] select,
[data-redesign="v1"] textarea {
  max-width: 100%;
  font: inherit;
  font-size: 13px;
}
[data-redesign="v1"] .chip {
  font-size: 10px;
}
.text-link {
  background: none;
  border: 0;
  color: var(--green);
  padding: 7px 0;
  cursor: pointer;
  font-size: 11px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--paper-solid);
  padding: 12px;
  clip-path: inset(50%);
}
.skip-link:focus {
  clip-path: none;
}
[data-redesign="v1"] .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px;
  align-items: center;
  background: var(--paper);
}
[data-redesign="v1"] .home-hero::before,
[data-redesign="v1"] .home-hero::after {
  display: none;
}
.hero-kicker {
  color: var(--amber);
  font:
    600 14px/1.5 Georgia,
    serif;
}
[data-redesign="v1"] .hero-copy h2 {
  color: var(--accent);
  font:
    italic 700 clamp(28px, 2.6vw, 40px) / 1.12 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 10px 0;
}
.hero-resume {
  border-top: 1px solid var(--line);
  margin: 14px 0;
  padding-top: 15px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.hero-resume small,
.hero-resume > span {
  color: var(--muted);
  font-size: 11px;
}
.hero-image {
  position: relative;
  transform: rotate(1deg);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-solid);
  box-shadow: 0 10px 30px #02061725;
}
.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 12px;
}
.hero-image > span {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: #112030df;
  color: white;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
}
[data-redesign="v1"] .delivery-strip {
  margin-top: 18px;
  padding: 20px 24px;
}
.progress-steps {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 14px 0;
  gap: 12px;
}
.progress-steps li {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 10px;
  min-width: 0;
}
.progress-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 8px;
}
.step-number {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}
.reached .step-number {
  color: var(--green);
  background: var(--green-soft);
  border-color: var(--green);
}
.progress-steps b {
  font-size: 12px;
  display: block;
}
.progress-steps small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.progress-note {
  color: var(--muted);
  font-size: 11px;
  margin: 14px 0 0;
}
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
[data-redesign="v1"] .work-card {
  display: flex;
  text-align: left;
  align-items: center;
  padding: 18px;
  gap: 14px;
  color: var(--ink);
}
.work-card > div {
  flex: 1;
  min-width: 0;
}
.work-card h3 {
  font-size: 13px;
  margin: 3px 0;
}
.work-card small,
.work-card p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.work-card:hover {
  border-color: var(--green);
}
.work-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}
[data-redesign="v1"] .home-updates {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.activity-row {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border: 0;
}
.activity-row > div {
  flex: 1;
  min-width: 0;
}
.activity-row b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.activity-row small,
.activity-row time {
  font-size: 10px;
  color: var(--muted);
}
.activity-row time {
  flex: none;
}
.play-mini > p {
  font-size: 13px;
}
.play-mini .button {
  margin-top: 6px;
}
[data-redesign="v1"] .delivery-progress {
  padding: 22px;
  margin-bottom: 18px;
}
[data-redesign="v1"] .delivery-progress .progress-steps {
  display: flex;
  gap: 12px;
}
[data-redesign="v1"] .delivery-progress .progress-steps li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
[data-redesign="v1"] .delivery-progress details {
  font-size: 11px;
  margin-top: 14px;
}

.library-workspace {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 16px;
}
[data-redesign="v1"] .library-shortcuts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  gap: 7px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  min-height: 500px;
}
.library-shortcuts h2 {
  margin: 0 8px 16px;
  font-size: 15px;
}
[data-redesign="v1"] .library-shortcuts .button {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 8px;
  font-size: 11px;
}
[data-redesign="v1"] .library-shortcuts .button[aria-current="location"] {
  background: var(--green-soft);
  color: var(--green);
}
.library-location-note {
  color: var(--muted);
  font-size: 10px;
  padding: 20px 8px 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.library-center {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--paper);
}
[data-redesign="v1"] .library-toolbar {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
[data-redesign="v1"] .library-location {
  flex: auto;
  width: 100%;
}
[data-redesign="v1"] .folder-breadcrumbs {
  margin: 0;
  background: transparent;
  padding: 0;
  min-height: 30px;
}
[data-redesign="v1"] .folder-breadcrumbs button,
[data-redesign="v1"] .folder-breadcrumbs .current {
  font-size: 11px;
}
[data-redesign="v1"] .library-toolbar-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
}
.library-search {
  flex: 1;
  min-width: 100px;
  min-height: 36px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 7px 10px;
}
[data-redesign="v1"] .file-filter {
  font-size: 11px;
}
[data-redesign="v1"] .file-filter select {
  min-height: 36px;
  font-size: 11px;
  min-width: 85px;
}
[data-redesign="v1"] .view-toggle button {
  min-width: 34px;
  min-height: 36px;
  padding: 7px;
  font-size: 11px;
}
.library-technical {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
[data-redesign="v1"] .library-layout {
  display: block;
}
[data-redesign="v1"] .library-files {
  padding: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 360px;
}
[data-redesign="v1"] .library-heading h2 {
  font: 500 12px/1.5 inherit;
}
[data-redesign="v1"] .library-heading {
  min-height: 26px;
  margin: 0 0 14px;
}
[data-redesign="v1"] .library-count {
  font-size: 10px;
}
[data-redesign="v1"] .library-layout .asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}
[data-redesign="v1"] .library-layout .asset-card {
  padding: 9px;
  text-align: left;
  background: var(--surface-hover, var(--green-soft));
  border-radius: 10px;
}
[data-redesign="v1"] .library-item strong {
  font-size: 11px;
}
[data-redesign="v1"] .library-layout .asset-image {
  margin-bottom: 9px;
  border-radius: 6px;
}
[data-redesign="v1"] .library-layout .asset-image img {
  object-fit: contain;
}
[data-redesign="v1"] .library-detail {
  position: absolute;
  z-index: 5;
  right: 16px;
  top: 16px;
  width: min(320px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  background: var(--paper-solid);
  box-shadow: 0 18px 50px #0004;
  padding: 18px;
}
[data-redesign="v1"] .library-detail[hidden] {
  display: none;
}
.library-detail .detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.library-detail .detail-heading h2 {
  margin: 0;
}
.library-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: start;
}
[data-redesign="v1"] .board-list {
  min-height: 620px;
}
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.board-filters .button {
  background: transparent;
  border: 0;
}
.board-filters [aria-pressed="true"] {
  color: var(--green);
  background: var(--green-soft);
}
.board-list .post {
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  margin: 8px 0;
  padding: 14px 10px;
  border-radius: 10px;
}
.board-list .post.selected {
  background: var(--green-soft);
  border-color: var(--line);
}
.board-list .post-head b {
  font-size: 13px;
}
.board-list .post-body {
  font-size: 11px;
  margin: 8px 0 0 26px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.board-detail {
  min-height: 620px;
  position: sticky;
  top: 20px;
}
.board-detail .post {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
}
.board-detail .post-head {
  cursor: default;
}
.board-detail .post-head b {
  font: 600 22px/1.5 var(--font-title);
}
.board-detail .post-body {
  font-size: 13px;
  white-space: pre-wrap;
}
.board-detail .reply {
  font-size: 12px;
  margin: 14px 0;
}
.board-detail textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--control-bg);
}
.board-detail .reply-form {
  display: block;
  margin-top: 22px;
}
.reply-label {
  font-size: 12px;
  display: block;
  margin-bottom: 7px;
}
[data-redesign="v1"] .board-composer-dialog {
  width: min(560px, calc(100vw - 24px));
}
[data-redesign="v1"] .board-composer-dialog .composer {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.board-mobile-back {
  display: none;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 18px;
  align-items: start;
}
.play-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.play-cover > img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.play-cover > .button,
.play-unavailable {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  box-shadow: 0 8px 30px #0006;
}
.play-unavailable {
  padding: 12px;
  border-radius: 8px;
  background: var(--paper-solid);
  font-size: 12px;
}
.play-feature > p {
  margin: 12px 0 0;
}
.play-status .progress-steps {
  flex-direction: column;
  margin: 24px 0;
  gap: 20px;
}
.play-status .progress-steps li:after {
  display: none;
}
.play-status .button {
  margin-top: 16px;
}
.play-status details {
  margin-top: 20px;
  font-size: 12px;
}
.play-status code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.release-catalog {
  margin-top: 18px;
}
.catalog-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.catalog-row > div {
  flex: 1;
  min-width: 0;
}
.catalog-row h3 {
  margin: 0 0 4px;
  font-size: 13px;
}
.catalog-row p,
.catalog-row small {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

@media (max-width: 1100px) and (min-width: 761px) {
  [data-redesign="v1"] {
    --sidebar: 184px;
  }
  [data-redesign="v1"] .main {
    padding-inline: 22px;
  }
  [data-redesign="v1"] .side {
    padding-inline: 10px;
  }
  [data-redesign="v1"] .members {
    font-size: 9px;
  }
  [data-redesign="v1"] .faces i {
    width: 19px;
    height: 19px;
  }
  [data-redesign="v1"] .home-hero {
    gap: 20px;
    padding: 24px;
  }
  .work-cards {
    gap: 10px;
  }
  [data-redesign="v1"] .work-card {
    padding: 14px;
    gap: 8px;
  }
  .work-card .work-symbol {
    display: none;
  }
  .library-workspace {
    grid-template-columns: 146px minmax(0, 1fr);
    gap: 12px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  }
}
@media (max-width: 760px) {
  [data-redesign="v1"] .shell {
    display: block;
  }
  [data-redesign="v1"] .side {
    height: auto;
    position: relative;
    padding: 14px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  [data-redesign="v1"] .brand {
    padding: 0;
  }
  [data-redesign="v1"] .brand .mark {
    width: 25px;
    height: 29px;
  }
  [data-redesign="v1"] .brand strong {
    font-size: 18px;
  }
  [data-redesign="v1"] .project,
  [data-redesign="v1"] .members,
  [data-redesign="v1"] .sidebar-bottom,
  [data-redesign="v1"] .nav-group {
    display: none;
  }
  [data-redesign="v1"] .side nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  [data-redesign="v1"] .nav-item {
    font-size: 11px;
    padding: 9px 4px;
    justify-content: center;
    min-height: 42px;
    gap: 5px;
  }
  [data-redesign="v1"] .nav-text-mobile {
    display: inline;
  }
  [data-redesign="v1"] .nav-text-full {
    display: none;
  }
  [data-redesign="v1"] .main {
    padding: 0 14px 30px;
  }
  .studio-topbar {
    min-height: 48px;
    margin-bottom: 20px;
  }
  .studio-context > span {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
    gap: 12px;
  }
  [data-redesign="v1"] .page-heading h1 {
    font-size: 26px;
  }
  [data-redesign="v1"] .card {
    padding: 18px;
    border-radius: 14px;
  }
  [data-redesign="v1"] .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  [data-redesign="v1"] .hero-copy h2 {
    font-size: 32px;
  }
  .hero-image {
    display: none;
  }
  .progress-steps {
    gap: 8px;
  }
  .progress-steps li {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .progress-steps li:not(:last-child):after {
    display: none;
  }
  .progress-steps small {
    font-size: 9px;
  }
  .progress-steps b {
    font-size: 11px;
  }
  .work-cards {
    grid-template-columns: 1fr;
  }
  [data-redesign="v1"] .home-updates {
    grid-template-columns: 1fr;
  }
  .library-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  [data-redesign="v1"] .library-shortcuts {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
  }
  .library-shortcuts h2,
  .library-location-note {
    display: none;
  }
  [data-redesign="v1"] .library-shortcuts .button {
    min-height: 40px;
  }
  .library-center {
    padding: 14px;
  }
  [data-redesign="v1"] .library-toolbar-actions {
    gap: 7px;
  }
  .library-search {
    flex-basis: 100%;
  }
  [data-redesign="v1"] .file-filter {
    flex: 1;
  }
  [data-redesign="v1"] .library-layout .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-technical {
    flex-basis: 100%;
  }
  .library-footer {
    flex-wrap: wrap;
  }
  .board-layout {
    display: block;
  }
  [data-redesign="v1"] .board-list {
    min-height: 300px;
  }
  .board-layout:not(.has-selection) .board-detail,
  .board-layout.has-selection .board-list {
    display: none;
  }
  .board-mobile-back {
    display: inline-flex;
    margin-bottom: 15px;
  }
  .board-detail {
    position: static;
    min-height: 400px;
  }
  .play-layout {
    grid-template-columns: 1fr;
  }

  .catalog-row {
    flex-wrap: wrap;
  }
  .catalog-row > div {
    flex-basis: calc(100% - 50px);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-redesign="v1"] *,
  [data-redesign="v1"] *:before,
  [data-redesign="v1"] *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[data-redesign="v1"] .hero-copy > .stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}
[data-redesign="v1"] .delivery-progress li + li:before {
  display: none;
}
[data-redesign="v1"] .delivery-progress .progress-note {
  font-size: 12px;
}
[data-redesign="v1"] .board-detail .reply-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
[data-redesign="v1"] .board-detail .reply {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
[data-redesign="v1"] .play-cover .button:hover {
  transform: translate(-50%, -50%);
}

@media (max-width: 760px) {
  [data-redesign="v1"] .side {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 30;
    border-top: 1px solid var(--line);
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: var(--paper-solid);
  }
  [data-redesign="v1"] .side .brand {
    display: none;
  }
  [data-redesign="v1"] .side nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
  }
  [data-redesign="v1"] .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 7px 1px;
    min-height: 50px;
    font-size: 9px;
  }
  [data-redesign="v1"] .nav-item > .count {
    display: none;
  }
  [data-redesign="v1"] .nav-item > span {
    display: block;
    white-space: normal;
    text-align: center;
  }
  [data-redesign="v1"] .nav-item .icon {
    width: 17px;
    height: 17px;
  }
  [data-redesign="v1"] .main {
    padding-bottom: 105px;
  }
}
