:root {
  --ink: #223932;
  --muted: #64726c;
  --stroke: #dfe5de;
  --canvas: #f5f6f2;
  --side: #203d36;
  --coral: #be4935;
  --peach: #fce5da;
  --green: #386252;
  --radius: 16px;
  font-family: 'Inter', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ce7359;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
i img {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.78;
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  background: var(--side);
  color: #f3f5ec;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}
.brand > img {
  width: 43px;
}
.brand strong {
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: #b6c6b8;
  font-size: 9px;
  letter-spacing: 2.3px;
  margin-top: 4px;
  font-weight: 700;
}
.nav-caption {
  color: #afc2b6;
  font-size: 11px;
  letter-spacing: 2px;
  margin: 59px 0 14px 16px;
}
.side nav {
  display: grid;
  gap: 5px;
}
.side nav button {
  color: #d5e0d7;
  background: transparent;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 14px 15px;
  font-weight: 550;
}
.side nav button.current,
.side nav button:hover {
  color: white;
  background: #36574b;
}
.side i img,
.primary i img {
  filter: invert(1);
  opacity: 0.88;
}
.side nav .current i img {
  filter: invert(78%) sepia(94%) saturate(1198%) hue-rotate(299deg) brightness(102%);
  opacity: 1;
}
#queueCount:not(:empty) {
  margin-left: auto;
  background: #476357;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 12px;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid #486055;
  padding: 22px 6px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e2e9e2;
  font-size: 13px;
}
.side-foot small {
  display: block;
  font-size: 11px;
  color: #b2c2b4;
  margin-top: 3px;
}
.shell {
  margin-left: 218px;
}
.shell > header {
  height: 65px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 54px);
  background: #fafbf8;
}
.crumb,
.account-pill,
.preview-meta span,
.text-link,
.timing label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: #b8c2ba;
  font-weight: 400;
}
.crumb strong {
  color: #394b41;
  font-weight: 600;
}
.account-pill {
  padding: 6px 11px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bd9d6a;
}
.ready .dot {
  background: #509a70;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 32px clamp(20px, 3vw, 54px) 48px;
}
.page-title,
.mini-heading,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-title {
  margin-bottom: 24px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 740;
  letter-spacing: -1.5px;
}
.page-title p,
.docs p {
  color: var(--muted);
  line-height: 1.8;
}
.page-title p {
  margin-top: 6px;
  font-size: 13px;
}
.secondary,
.primary,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid #d5dcd5;
  background: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
}
.secondary:hover,
.small-button:hover {
  background: #f2f5ee;
}
.primary {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}
.primary:hover {
  background: #a83e2e;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(255px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px #24382c05;
  padding: 22px;
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.icon-tile,
.upload-icon {
  display: inline-grid;
  place-items: center;
  background: #eef2eb;
  border-radius: 9px;
  width: 32px;
  height: 32px;
}
.icon-tile img {
  width: 17px;
  height: 17px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
.type-switch {
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: #f0f2ed;
  margin-bottom: 19px;
}
.type-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 8px;
  flex: 1;
  color: #627269;
  font-weight: 600;
}
.type-switch button[aria-pressed='true'] {
  background: #fff;
  color: #924735;
  box-shadow: 0 1px 6px #233c2c16;
}
.field {
  margin-top: 15px;
}
.field-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.field label,
.timing label {
  font-size: 13px;
  font-weight: 650;
}
.field-title small,
.dropzone small,
.preview-meta,
.empty-caption,
.metrics span,
.note-meta {
  color: var(--muted);
  font-size: 12px;
}
.field-title small {
  font-variant-numeric: tabular-nums;
}
.field input:not([type='file']),
textarea,
.timing select,
.timing input {
  background: white;
  border: 1px solid #d8dfd8;
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #839087;
}
textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.6;
  display: block;
}
.dropzone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 116px;
  background: #f9faf6;
  border: 1.5px dashed #aabaae;
  border-radius: 10px;
}
.dropzone:hover,
.dropzone.over {
  background: #f1f5ec;
  border-color: var(--green);
}
.upload-icon {
  height: 31px;
  background: #e6ede3;
}
.upload-icon img {
  width: 20px;
}
.dropzone strong {
  font-size: 13px;
}
.assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.asset {
  margin-top: 8px;
  border-radius: 7px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  position: relative;
  width: 78px;
}
.asset > img,
.asset > video {
  width: 100%;
  height: 52px;
  object-fit: cover;
  display: block;
}
.asset-controls {
  display: flex;
}
.asset-controls button {
  flex: 1;
  background: white;
  border: 0;
  font-size: 15px;
}
.timing {
  border-top: 1px solid var(--stroke);
  margin: 18px 0 0;
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.timing select,
.timing input {
  width: auto;
  padding: 7px 10px;
  font-size: 12px;
}
.timing label {
  margin-right: auto;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}
.rail {
  display: grid;
  gap: 18px;
}
.preview-card {
  border: 1px solid #dde3db;
  border-radius: 12px;
  overflow: hidden;
}
.visual {
  position: relative;
  aspect-ratio: 1.45;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  background-color: #e9ede2;
  background-image: radial-gradient(#b9c5b6 1px, transparent 1px);
  background-size: 12px 12px;
}
.cover-art {
  position: relative;
  width: 126px;
  height: 103px;
  margin: 4px 0;
}
.sheet {
  position: absolute;
  width: 91px;
  height: 99px;
  border-radius: 6px;
  box-shadow: 1px 4px 6px #34433124;
}
.sheet.back {
  left: 12px;
  top: 0;
  transform: rotate(-13deg);
  background: #f9faf3;
  border: 1px solid #b6c5b4;
}
.sheet.front {
  left: 30px;
  top: 3px;
  transform: rotate(10deg);
  padding: 7px;
  background: #fffdf6;
  border: 1px solid #cdd4c4;
}
.paper-photo {
  height: 61px;
  position: relative;
  background: #e6e9d8;
  overflow: hidden;
  border-radius: 3px;
}
.paper-photo b {
  position: absolute;
  background: #ee9c7b;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  right: 10px;
  top: 8px;
}
.paper-photo em,
.paper-photo span {
  position: absolute;
  width: 85px;
  height: 60px;
  border-radius: 50%;
  background: #aabda4;
  transform: rotate(20deg);
  left: -22px;
  top: 35px;
}
.paper-photo span {
  background: #759583;
  left: 20px;
  top: 40px;
  transform: rotate(-25deg);
}
.line {
  width: 50px;
  height: 3px;
  background: #c5d0be;
  margin: 7px 2px 0;
  border-radius: 2px;
}
.line.short {
  width: 29px;
  margin-top: 4px;
}
.empty-caption {
  font-size: 11px;
  background: #f3f5eacc;
  padding: 2px 7px;
  border-radius: 6px;
}
.visual.media {
  background: #e9ede7;
}
.visual > img,
.visual > video {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: contain;
}
.preview-text {
  padding: 14px;
}
.preview-text strong,
.preview-text p,
.note-title,
.detail-text {
  overflow-wrap: anywhere;
}
.preview-text p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
  white-space: pre-wrap;
  max-height: 7.8em;
  overflow: auto;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.preview-meta i img {
  width: 14px;
}
.preview-meta > span:last-child {
  font-size: 11px;
  background: #f0f3ec;
  padding: 2px 9px;
  border-radius: 6px;
}
.text-link,
.icon-button {
  background: none;
  border: 0;
  color: var(--green);
  padding: 3px;
}
.text-link {
  font-size: 12px;
  gap: 2px;
}
.text-link i img {
  width: 14px;
}
.metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
}
.metrics div {
  display: grid;
  gap: 4px;
  flex: 1;
  padding-left: 12px;
  border-left: 1px solid var(--stroke);
}
.metrics div:first-child {
  padding-left: 0;
  border: 0;
}
.metrics b {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.metrics span {
  font-size: 11px;
}
.error {
  color: #ac3727;
  background: #fff1eb;
  border-radius: 7px;
  padding: 8px 12px;
  margin: 12px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.filters button {
  border: 0;
  padding: 8px 13px;
  border-radius: 7px;
  background: #f4f5f1;
  color: var(--muted);
}
.filters button[aria-pressed='true'] {
  background: #e1ebe0;
  color: var(--green);
  font-weight: 650;
}
.empty {
  padding: 45px 8px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.empty i {
  display: flex;
  margin: 0 auto 10px;
}
.empty img {
  width: 30px;
  height: 30px;
}
.note {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--stroke);
  padding: 14px 0;
}
.note-content {
  flex: 1;
  min-width: 0;
}
.note-meta {
  margin-top: 5px;
}
.note-thumb {
  width: 46px;
  height: 52px;
  background: #ecf0e8;
  border-radius: 6px;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.small-button {
  font-size: 12px;
  padding: 6px 9px;
}
.badge {
  display: inline-flex;
  background: #ebefe8;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--green);
  white-space: nowrap;
}
.warn {
  background: #fff0e5;
  color: #975231;
}
.docs {
  max-width: 790px;
}
.docs h3 {
  margin: 23px 0 9px;
}
.docs p {
  margin: 10px 0;
}
.docs code,
pre {
  font-family: Consolas, monospace;
  background: #f0f3ed;
  border-radius: 6px;
  padding: 4px 6px;
}
.docs pre {
  padding: 14px;
  line-height: 1.6;
  overflow: auto;
}
dialog {
  border: 1px solid var(--stroke);
  border-radius: 15px;
  padding: 24px;
  width: min(510px, 94vw);
  color: var(--ink);
  max-height: 85vh;
}
dialog::backdrop {
  background: #12271e66;
}
.dialog-head {
  margin-bottom: 18px;
}
.detail-text {
  white-space: pre-wrap;
  margin: 12px 0;
  color: var(--muted);
}
.event {
  font-size: 13px;
  border-left: 2px solid var(--stroke);
  padding: 0 0 12px 12px;
}
.event small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  max-width: 90vw;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.asset-controls button:hover {
  background: #eee;
}
@media (min-width: 1500px) {
  .side {
    width: 235px;
  }
  .shell {
    margin-left: 235px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.85fr) minmax(310px, 1fr);
  }
  .panel {
    padding: 26px;
  }
}
@media (max-width: 1080px) {
  .side {
    width: 176px;
  }
  .shell {
    margin-left: 176px;
  }
  .workspace {
    gap: 14px;
    grid-template-columns: minmax(0, 1.6fr) minmax(226px, 1fr);
  }
  main {
    padding: 24px 18px;
  }
  .panel {
    padding: 17px;
  }
  .side nav button {
    padding: 13px 10px;
  }
}
@media (max-width: 780px) {
  .side {
    position: static;
    width: auto;
    display: block;
    padding: 10px 14px;
  }
  .brand {
    padding: 0;
    gap: 8px;
  }
  .brand > img {
    width: 31px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    display: inline;
    margin-left: 7px;
    letter-spacing: 1px;
  }
  .nav-caption,
  .side-foot {
    display: none;
  }
  .side nav {
    display: flex;
    margin-top: 9px;
    gap: 6px;
  }
  .side nav button {
    padding: 7px 10px;
    gap: 5px;
    font-size: 12px;
  }
  .side nav i img {
    width: 15px;
  }
  .shell {
    margin: 0;
  }
  .shell > header {
    height: 43px;
    padding: 0 16px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.65fr) minmax(205px, 1fr);
  }
}
@media (max-width: 630px) {
  main {
    padding: 18px 12px;
  }
  .page-title {
    margin-bottom: 16px;
  }
  .page-title p {
    font-size: 12px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .workspace > * {
    width: 100%;
  }
  .panel {
    padding: 15px;
  }
  .rail {
    gap: 12px;
  }
  .visual {
    min-height: 135px;
    max-height: 255px;
  }
  .secondary,
  .primary {
    padding: 9px 12px;
  }
  .note {
    flex-wrap: wrap;
  }
  .note .small-button {
    margin-left: auto;
  }
  .type-switch button {
    min-height: 38px;
  }
  .timing input {
    max-width: 100%;
  }
  .side nav button {
    min-height: 35px;
  }
  .shell > header .crumb i {
    display: none;
  }
  .dialog-actions button {
    white-space: normal;
  }
}
.member-nav {
  display: block;
  padding: 12px 6px 0;
  color: #e4eee5;
  text-decoration: none;
  font-size: 13px;
}
