/* The reference sheets carry the original utility classes, color tokens and animations. */
/* Noto Sans SC is installed as one variable font. Loading it through local() keeps
   in-between weights such as 550 and 650 exact instead of snapping to named instances. */
@font-face {
  font-family: 'Noto Sans SC VF';
  src: local('Noto Sans SC'), local('Noto-Sans-SC');
  font-weight: 100 900;
}
html {
  font-size: 100%;
  min-width: 0 !important;
}
body,
#studio-app {
  margin: 0;
  min-width: 0 !important;
  width: 100%;
  min-height: 100dvh;
  background: var(--background, #fafafa);
  color: var(--foreground, #18181b);
  font-family: var(--font-family-base);
}
* {
  box-sizing: border-box;
}
:root {
  --font-family-base: 'Noto Sans SC VF', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-sans: var(--font-family-base);
  --default-font-family: var(--font-family-base);
  --wk-line: var(--border, #e4e4e7);
  --wk-soft: var(--muted, #f4f4f5);
  --wk-focus: var(--control-focus);
  --wk-hover: color-mix(in srgb, var(--wk-focus) 9%, var(--background));
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
/* The home and toolbox composers provide their own input surface. */
#studio-app .home-composer-shell {
  background-color: var(--card);
}
#studio-app :is(.home-composer-shell textarea, .op-original-tools textarea.op-ref-editor):focus {
  outline: none !important;
  box-shadow: none !important;
  caret-color: var(--action-blue-focus);
}
[hidden] {
  display: none !important;
}
.wk-app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  overflow: hidden;
  background: var(--background);
}
.wk-app.wk-collapsed {
  grid-template-columns: 5rem minmax(0, 1fr);
}
.wk-sidebar {
  position: relative;
  display: flex;
  height: 100dvh;
  border-right: 1px solid var(--wk-line);
  z-index: 4;
  overflow: hidden;
}
.wk-main {
  min-width: 0;
  position: relative;
  overflow: auto;
  height: 100dvh;
  background: var(--background);
}
.wk-sidebar .sidebar__logo-wrap {
  height: 2rem;
  margin: 0 0 1rem;
}
.wk-sidebar .sidebar__logo-wrap button {
  margin-left: auto;
}
.wk-sidebar nav {
  overflow-y: auto;
}
.wk-nav-item {
  height: 2.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground, #71717a);
  text-decoration: none;
  white-space: nowrap;
}
.wk-nav-item:hover,
.wk-nav-item[aria-current='page'] {
  color: var(--foreground);
  background: var(--wk-soft);
}
.wk-nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.wk-nav-tooltip {
  position: fixed;
  z-index: 12;
  margin-left: .75rem;
  transform: translateY(-50%);
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--popover-foreground, #09090b);
  background: var(--popover, white);
  font-size: 14px;
  line-height: 21px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}
.wk-icon-btn,
.wk-primary,
.wk-secondary,
.wk-quiet,
.wk-wallet,
.wk-space-selector,
.wk-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.wk-secondary,
.wk-icon-btn,
.wk-form :is(input, select, textarea),
.wk-list-query,
.wk-original-select {
  border: 1px solid var(--wk-line);
  background: var(--background);
  color: var(--foreground);
}
.wk-icon-btn {
  padding: 0;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
}
.wk-primary,
.wk-secondary,
.wk-quiet {
  min-height: 2.15rem;
  padding: 0.42rem 0.86rem;
}
.wk-primary {
  border: 1px solid transparent;
}
.wk-secondary:hover,
.wk-icon-btn:hover,
.wk-quiet:hover,
.wk-menu-item:hover {
  background: var(--wk-soft);
}
.wk-quiet {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}
.wk-space-selector,
.wk-wallet {
  width: 100%;
  text-align: left;
  justify-content: space-between;
  border: 1px solid var(--wk-line);
  background: color-mix(in srgb, var(--wk-soft) 58%, var(--background));
  padding: 0.45rem 0.7rem;
  min-height: 2.5rem;
}
.wk-space-selector {
  margin-bottom: 0.75rem;
  justify-content: flex-start;
}
.wk-space-selector > svg:last-child {
  margin-left: auto;
  color: var(--muted-foreground);
}
.ui-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.wk-space-icon,
.wk-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}
.wk-space-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: #71717a;
  color: #fff;
}
.wk-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
}
.wk-wallet > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.wk-wallet > span:last-child {
  font-size: 0.75rem;
}
.wk-profile-row,
.wk-profile,
.wk-profile-text {
  display: flex;
  align-items: center;
}
.wk-profile-row {
  gap: 0.1rem;
  margin-top: 0.45rem;
}
.wk-profile {
  flex: 1;
  min-width: 0;
  text-align: left;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
}
.wk-profile:hover {
  background: var(--wk-soft);
}
.wk-avatar {
  width: 2rem;
  height: 2rem;
  color: #305c68;
  background: #e1edef;
  font-weight: 650;
}
.wk-profile-text {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.12rem;
}
.wk-profile-text strong {
  max-width: 100%;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wk-profile-text small {
  border-radius: 1rem;
  padding: 0.06rem 0.43rem;
  background: var(--wk-soft);
  color: var(--muted-foreground);
  font-size: 0.64rem;
}
.wk-bell {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  position: relative;
}
.wk-bell:hover {color: var(--foreground);}
.wk-unread {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 1rem;
  padding: 0 .25rem;
  border-radius: 1rem;
  background: var(--destructive, #d02937);
  color: white;
  font-size: .625rem;
  line-height: 1rem;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
img.wk-avatar {
  object-fit: cover;
}
.wk-sign-in {
  width: 100%;
}
.wk-sign-in .ui-icon {
  display: none;
}
.wk-collapsed .wk-sidebar {
  padding: 1rem 0.5rem;
  align-items: center;
}
.wk-collapsed .sidebar__logo-wrap {
  padding: 0;
  justify-content: center;
  margin: 0 0 1rem;
  height: 2.5rem;
}
.wk-collapsed .sidebar__logo-wrap button {
  margin: auto;
}
.wk-collapsed .sidebar__logo-wrap a .title {
  display: none;
}
.wk-collapsed .wk-space-selector {
  width: 2.5rem;
  padding: 0;
  justify-content: center;
}
.wk-collapsed .wk-space-selector > span:nth-child(2),
.wk-collapsed .wk-space-selector > svg,
.wk-collapsed .wk-nav-item > span,
.wk-collapsed .wk-profile-text,
.wk-collapsed .wk-profile > .ui-icon,
.wk-collapsed .wk-wallet span:last-child,
.wk-collapsed .wk-sign-in span {
  display: none;
}
.wk-collapsed .wk-nav-item {
  justify-content: center;
  padding: 0;
}
.wk-collapsed .wk-profile-row {
  flex-direction: column;
  margin-top: .75rem;
  gap: .75rem;
}
.wk-collapsed .wk-sidebar-foot {width:100%;}
.wk-collapsed .wk-profile {flex:none;padding:0;width:2rem;height:2rem;}
.wk-collapsed .wk-bell {width:2.25rem;height:2.25rem;}
.wk-collapsed .wk-bell .ui-icon {width:1.25rem;height:1.25rem;}
.wk-collapsed .wk-wallet {
  height:3.5rem;
  padding: .5rem .25rem;
  justify-content: center;
}
.wk-collapsed .wk-wallet > span:first-child { flex-direction:column; gap:.125rem; }
.wk-collapsed .wk-wallet b { font-weight:600; line-height:1.375rem; }
.wk-collapsed .wk-wallet svg {
  width:.875rem;height:.875rem;
}
.wk-collapsed .wk-sign-in .ui-icon {
  display: block;
}
.wk-mobile-top,
.wk-mobile-shade {
  display: none;
}
.wk-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.wk-sprite > svg {
  width: 0;
  height: 0;
}
.wk-wx > img,
.wk-wx > svg {
  width: 1.25rem;
  height: 1.25rem;
}
.wk-auth-form .wk-auth-box {
  transform: translateY(1rem);
}
.wk-main > .home-page__top {
  margin: 0 !important;
  padding-inline: 0 !important;
  min-width: 0;
}
.wk-main > .home-page__top .home-composer-shell {
  border-color: var(--wk-line);
}
.wk-main > .home-page__top textarea {
  resize: none;
}
.wk-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.wk-picker-layer { pointer-events: none; }
.wk-picker-layer > * { pointer-events: auto; }
.wk-modal-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  padding: 1rem;
}
.wk-popover,
.wk-modal {
  background: var(--popover, var(--card, #fff));
  color: var(--foreground);
  border: 1px solid var(--wk-line);
  border-radius: 0.8rem;
  box-shadow: 0 12px 45px #17233224;
  outline: none;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.wk-popover {
  position: absolute;
  max-width: calc(100vw - 1rem);
  padding: 0.25rem;
  min-width: 10rem;
}
.wk-modal {
  width: min(100%, 27rem);
  padding: 1.25rem;
}
.wk-modal.wide {
  width: min(100%, 39rem);
}
.wk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 1rem;
}
.wk-modal-head h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0;
}
.wk-modal-head .wk-icon-btn {
  border: 0;
  background: transparent;
}
.wk-modal-head .wk-icon-btn:hover {
  background: var(--wk-soft);
}
.wk-menu-item {
  width: 100%;
  padding: 0.6rem 0.7rem;
  justify-content: flex-start;
  text-align: left;
  font-weight: 400;
}
.wk-menu-item > span {
  flex: 1;
}
.wk-popover.wk-home-model-menu {
  width: max-content;
  min-width: min(19rem, calc(100vw - 1rem));
  max-width: min(24rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 16px);
  padding: .375rem;
  border-radius: .625rem;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.wk-home-model-menu .wk-model-group,
.wk-home-model-menu .wk-model-option {
  width: 100%;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.wk-home-model-menu .wk-model-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2rem;
  padding: .25rem .625rem;
  color: var(--muted-foreground);
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.wk-model-group[aria-expanded="false"] svg { transform: rotate(-90deg); }
.wk-home-model-menu .wk-model-option {
  display: grid;
  grid-template-columns: 2.5rem minmax(0,1fr) 1rem;
  align-items: center;
  gap: .625rem;
  padding: .375rem .625rem;
  color: var(--foreground);
}
.wk-home-model-menu .wk-model-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .375rem;
  background: var(--wk-soft);
}
.wk-home-model-menu .wk-model-copy {
  display: grid;
  min-width: 0;
  gap: .125rem;
  overflow-wrap: anywhere;
}
.wk-home-model-menu .wk-model-name { font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.wk-home-model-menu :is(.wk-model-description,small,p) {
  color: var(--muted-foreground);
  font-size: .75rem;
  line-height: 1.125rem;
}
.wk-home-model-menu p { margin: .375rem .625rem; }
.wk-home-model-menu button:hover { background: var(--wk-soft); }
.wk-home-model-menu button:focus-visible {
  outline: 2px solid var(--control-focus, #729bbf);
  outline-offset: -2px;
}
.wk-popover.wk-account-menu,
.wk-account-submenu {
  width: 14.5rem;
  min-width: 0;
  max-width: calc(100vw - 0.5rem);
  max-height: calc(100dvh - 0.5rem);
  overflow: auto;
  padding: 0.375rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--popover, var(--card, #fff));
  color: var(--foreground);
  box-shadow: 0 0 0 1px var(--wk-line), 0 4px 12px #17233217;
}
.wk-account-submenu {
  position: fixed;
  width: max-content;
  min-width: min(10rem, calc(100vw - 0.5rem));
}
.wk-account-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.3125rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.3125rem;
  text-align: start;
  cursor: pointer;
}
.wk-account-item:hover, .wk-account-item:focus-visible, .wk-account-item[aria-expanded="true"] {
  background: var(--wk-soft);
}
.wk-account-item > svg:last-child:not(:first-child) { margin-inline-start: auto; }
.wk-account-menu hr {
  height: 1px;
  margin: 0.25rem 0.5rem;
  border: 0;
  background: var(--wk-line);
}
.wk-account-identity { gap: 0.75rem; padding: 0.5rem; }
.wk-account-identity .wk-avatar { width: 2.5rem; height: 2.5rem; }
.wk-account-name { display: grid; gap: 0.125rem; flex: 1; min-width: 0; }
.wk-account-name > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-account-name strong { font-size: 0.9375rem; font-weight: 500; line-height: 1.375rem; }
.wk-account-name small { font-size: 0.75rem; line-height: 1.125rem; color: var(--muted-foreground); }
.wk-account-item.wk-account-logout { color: var(--destructive, #d53342); }
.wk-account-item.wk-account-logout:is(:hover,:focus-visible) { background:color-mix(in srgb, currentColor 8%, transparent); }
@media (pointer: coarse) {
  .wk-account-item { min-height: 2.75rem; }
}
.wk-danger {
  color: #c94a54;
}
.wk-reference-menu {
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  position: static !important;
  max-height: 70dvh !important;
}
.wk-reference-menu [aria-pressed='true'],
.wk-choice-active {
  box-shadow: 0 0 0 1px #72a6ae !important;
  border-color: #8bbac0 !important;
}
.wk-reference-menu.wk-home-style-menu {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem) !important;
}
.wk-home-style-menu .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wk-home-style-menu button[aria-pressed='false']:not(:hover) {
  background: var(--card);
  border-color: var(--border);
}
@media (max-width: 32rem) {
  .wk-home-style-menu button .truncate { white-space: normal; }
}
.wk-home-settings { width: calc((min(30rem, 100vw - 2rem) + .5rem + 2px) * .75); }
.wk-home-settings .wk-reference-menu { width: 100%; }
.wk-original-select {
  border-radius: 0.55rem;
  padding: 0.45rem;
  max-width: 100%;
}
.wk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.wk-form {
  display: grid;
  gap: 1rem;
}
.wk-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.wk-form :is(input, select, textarea),
.wk-list-query {
  font-weight: 400;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.62rem 0.72rem;
  line-height: 1.45;
  outline: none;
  min-width: 0;
}
.wk-form input[type='file'] {
  padding: 0.4rem;
}
.wk-form textarea {
  resize: vertical;
  min-height: 4rem;
}
.wk-form-error {
  margin: 0;
  color: #bb4755;
  font-size: 0.83rem;
  line-height: 1.4;
}
.wk-form-error:empty {
  display: none;
}
.wk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.wk-dialog-text,
.wk-muted {
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
  color: var(--muted-foreground);
}
#status-messages {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: grid;
  gap: 0.45rem;
  pointer-events: none;
}
.wk-toast {
  border: 1px solid var(--wk-line);
  background: var(--card);
  color: var(--foreground);
  border-radius: 0.65rem;
  box-shadow: 0 4px 24px #14222b21;
  padding: 0.7rem 1.1rem;
  font-size: 0.86rem;
  max-width: min(29rem, 92vw);
}
.wk-auth {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  background: var(--background);
  overflow: auto;
}
.wk-auth > .brand-panel {
  height: 100dvh;
  min-height: 42rem;
}
.wk-auth .brand-panel__eyebrow {
  text-transform: none;
}
.wk-auth-controls {
  position: absolute;
  right: 1.6rem;
  top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  font-size: 0.85rem;
}
.wk-auth-controls span {
  color: var(--muted-foreground);
}
.wk-auth-controls .wk-icon-btn {
  border: none;
  margin-left: 0.45rem;
  background: transparent;
}
.wk-auth-form {
  flex: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4rem 1.3rem;
}
.wk-auth-box {
  width: min(100%, 24.25rem);
}
.wk-auth-title,
.wk-password-label,
.wk-code-row,
.wk-agreement,
.wk-or {
  display: flex;
  align-items: center;
}
.wk-auth-title,
.wk-password-label {
  justify-content: space-between;
}
.wk-auth-title h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}
.wk-auth-title .wk-quiet,
.wk-password-label .wk-quiet {
  font-size: 0.8rem;
  padding: 0 0.1rem;
  min-height: 0;
}
.wk-auth-caption {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  margin: 0.55rem 0 2rem;
}
.wk-auth .wk-form {
  gap: 1.22rem;
}
.wk-auth .wk-form label {
  font-size: 0.83rem;
}
.wk-code-row {
  gap: 0.5rem;
}
.wk-code-row .wk-secondary {
  flex-shrink: 0;
  min-height: 2.75rem;
}
.wk-auth .wk-form input:not([type='checkbox']) {
  height: 2.75rem;
}
.wk-auth .wk-form .wk-agreement {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}
.wk-agreement input {
  appearance: auto;
  width: 1rem !important;
  height: 1rem;
  accent-color: #528b97;
}
.wk-agreement button {
  color: var(--foreground);
  font-size: inherit;
}
.wk-password {
  position: relative;
}
.wk-password input {
  padding-right: 2.7rem;
}
.wk-password button {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}
.wk-submit,
.wk-wx {
  width: 100%;
  min-height: 2.75rem;
}
.wk-register-link {
  display: block;
  margin: 0.8rem auto;
  font-size: 0.83rem;
}
.wk-or {
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.wk-or:before,
.wk-or:after {
  content: '';
  height: 1px;
  background: var(--wk-line);
  flex: 1;
}
.wk-wechat-modal {
  width: min(100%, 24rem);
}
.wk-wechat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.wk-wechat-frame {
  width: 100%;
  height: 25rem;
  overflow: hidden;
  border: 1px solid var(--wk-line);
  border-radius: 0.65rem;
  background: #fff;
}
.wk-wechat-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.wk-wechat-hint {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.83rem;
  line-height: 1.55;
  text-align: center;
}
.wk-wechat-fallback {
  color: var(--foreground);
  font-size: 0.8rem;
  text-align: center;
}
@media (max-width: 480px) {
  .wk-wechat-frame {
    height: 22rem;
  }
}
.wk-projects {
  padding: 1.25rem 1.5rem;
  min-height: 100%;
  color: var(--foreground);
  container-type: inline-size;
}
.wk-project-toolbar {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.wk-toolbar-space {
  flex: 1;
}
.wk-project-toolbar .wk-group {
  padding-left: 0;
  margin-right: 0.35rem;
}
.wk-tabs {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  border-radius: 0.48rem;
  background: var(--wk-soft);
}
.wk-tabs button {
  padding: 0.32rem 0.72rem;
  font-size: 0.86rem;
  border-radius: 0.38rem;
  color: var(--muted-foreground);
}
.wk-tabs button[aria-selected='true'] {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 3px #17171c12;
}
.wk-tabs small {
  padding: 0.1rem 0.38rem;
  background: var(--wk-soft);
  border-radius: 1rem;
  color: var(--muted-foreground);
}
.wk-fav[aria-pressed='true'] {
  color: #987129;
  border-color: #c5ae74;
}
.wk-list-query {
  max-width: 25rem;
  margin-bottom: 1rem;
}
.wk-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.5rem 1rem;
}
@container (width > 55.0625rem) {
  .wk-project-grid { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
}
.wk-project-grid .wk-project-name {
  color: inherit;
  text-decoration: none;
}
.wk-project-name::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card:has(.wk-project-name:focus-visible) {
  outline: 2px solid #84aacd;
  outline-offset: 2px;
}
.project-card .wk-project-name:focus-visible {
  outline: none;
}
.wk-project-grid .project-card-corner,
.wk-project-grid .project-card [role="img"] {
  pointer-events: none;
}
.wk-project-grid .project-card-cover img,
.wk-project-grid .project-card-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wk-project-grid .project-card button:focus-visible {
  outline: 2px solid #84aacd;
  outline-offset: 1px;
}
.wk-project-menu-host.wk-popover,
.wk-project-edit-host.wk-modal {
  padding: 0;
  border: 0;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.wk-project-edit-host.wk-modal { width: min(32rem, 100%); }
.wk-project-confirm-host.wk-modal { width: min(28rem, 100%); }
.wk-project-edit-host input:focus-visible,
.wk-project-edit-host button:focus-visible {
  outline: 2px solid #84aacd;
  outline-offset: 1px;
}
.wk-project-groups { position: absolute; }
.wk-project-groups [role=menuitemradio]:focus-visible,
.wk-project-menu-host [role=menuitem]:focus-visible {
  outline: 1px solid #aec8e0;
  outline-offset: -1px;
}
.wk-empty,
.wk-route-error {
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  grid-column: 1/-1;
}
.wk-empty .ui-icon {
  margin: 0 auto 0.7rem;
}
.wk-subject-bar {
  display: flex;
  gap: 0.45rem;
}
.wk-subject-items {
  padding: 1rem 0;
}
.wk-subject-line {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--wk-line);
  padding: 0.5rem 0;
}
.wk-subject-line > div {
  flex: 1;
}
.wk-subject-line img {
  width: 3rem;
  object-fit: cover;
  border-radius: 0.3rem;
}
.wk-subject-form h3 {
  font-size: 1rem;
  font-weight: 600;
}
.wk-editor-host {
  height: 100dvh;
  overflow: auto;
}
@media (max-width: 1000px) {
  .wk-app {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
  .wk-projects {
    padding: 1rem;
  }
}
@media (max-width: 760px) {
  .wk-app,
  .wk-app.wk-collapsed {
    display: block;
  }
  .wk-main {
    height: 100dvh;
    padding-top: 3.4rem;
  }
  .wk-main:has(> .home-page__top) {
    padding-top: 0;
  }
  .wk-sidebar,
  .wk-collapsed .wk-sidebar {
    width: min(16rem, 84vw);
    align-items: stretch;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 36;
    transform: translateX(-105%);
    background: var(--background);
    padding: 1rem 0.75rem;
  }
  .wk-mobile-open .wk-sidebar {
    transform: translateX(0);
  }
  .wk-mobile-open .wk-mobile-shade {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0;
    background: #12203140;
  }
  .wk-mobile-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3.4rem;
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 20;
    padding: 0 1rem;
    pointer-events: none;
  }
  .wk-mobile-top > * {
    pointer-events: auto;
  }
  .wk-mobile-top > .fujiu-logo {
    width: 1.18rem;
    height: 1.18rem;
  }
  .wk-mobile-menu,
  .wk-mobile-account {
    height: 2rem;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--wk-line);
    border-radius: 0.6rem;
  }
  .wk-mobile-menu {
    width: 2rem;
    border-radius: 50%;
  }
  .wk-mobile-account {
    margin-left: auto;
    padding: 0 0.75rem;
    font-size: 0.8rem;
  }
  .wk-main > .home-page__top > div.relative {
    padding: 10rem 1.1rem 1rem !important;
  }
  .wk-main > .home-page__top h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .wk-main > .home-page__top .home-page__composer > div.absolute {
    gap: 0.28rem;
    margin-bottom: 1rem;
    padding-inline: 0.28rem;
  }
  .wk-main > .home-page__top .home-subtitle-trigger {
    font-size: 0.84rem;
  }
  .wk-main > .home-page__top .home-composer-shell {
    border-radius: 0.8rem;
  }
  .wk-main > .home-page__top .home-composer-shell textarea {
    min-height: 5.5rem;
    font-size: 0.85rem;
  }
  .wk-main > .home-page__top .home-composer-shell > div:last-child > div {
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: none;
  }
  .wk-main > .home-page__top .home-composer-shell button {
    flex-shrink: 0;
  }
  .wk-main > .home-page__top .grid.grid-cols-4 {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 1rem;
    gap: 0.62rem;
    padding-bottom: 0.15rem;
  }
  .wk-main > .home-page__top .home-quick-link {
    width: auto;
    flex-shrink: 0;
    border-radius: 1.5rem;
    padding: 0.56rem 0.9rem;
    gap: 0.4rem;
  }
  .wk-main > .home-page__top .home-quick-link__desc,
  .wk-main > .home-page__top .home-quick-link__arrow {
    display: none;
  }
  .wk-main > .home-page__top .home-quick-link__icon {
    width: 1rem;
    height: 1rem;
    box-shadow: none;
    background: none;
  }
  .wk-main > .home-page__top .home-quick-link__icon svg {
    width: 1rem;
    height: 1rem;
  }
  .wk-auth > .brand-panel {
    display: none;
  }
  .wk-auth-form {
    align-items: center;
    padding: 4rem 1.5rem;
  }
  .wk-project-toolbar {
    gap: 0.38rem;
  }
  .wk-project-toolbar .wk-tabs {
    order: 2;
    width: 100%;
    overflow-x: auto;
  }
  .wk-two {
    grid-template-columns: 1fr;
  }
  .wk-modal-layer {
    padding: 0.5rem;
  }
  .wk-modal {
    max-height: calc(100dvh - 1rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media(max-width:1050px) {
  .wk-source-projects-toolbar,.wk-source-projects-toolbar>div { flex-wrap: wrap; }
  .wk-source-projects-toolbar>div { max-width: 100%; }
  .wk-source-projects-toolbar [role=tablist] { max-width: 100%; overflow-x: auto; }
}

/* Captured component styles that pin their own system or HarmonyOS stack. */
:is(.font-sans, .sr-page, .btn, .page-header, .canvas-controls__zoom-value, .canvas-empty-state, .figma-media-node__visual) {
  font-family: var(--font-family-base) !important;
}

/* Page backdrops. The 工作流 hero's blue mist, dot field and grain carry over to the
   other shell pages. Each page paints them on its own scroll container, so the backdrop
   stays put while the content scrolls over it. */
:root {
  --wk-mist-blue: color-mix(in oklab, #60a5fa 24%, transparent);
  --wk-mist-sky: color-mix(in oklab, #38bdf8 20%, transparent);
  --wk-mist-pale: color-mix(in oklab, #93c5fd 26%, transparent);
  --wk-ambient-ink: color-mix(in oklab, var(--foreground) 13%, transparent);
  --wk-ambient-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
:root.dark {
  --wk-mist-blue: color-mix(in oklab, #3b82f6 22%, transparent);
  --wk-mist-sky: color-mix(in oklab, #0ea5e9 18%, transparent);
  --wk-mist-pale: color-mix(in oklab, #60a5fa 18%, transparent);
}
:is(
  .wk-main:has(> .wk-projects),
  .wk-main:has(> .home-page__top),
  .op-page-tools .global-content,
  .wk-main > .op-page:not(.op-page-tools, .op-page-space, .op-page-profile),
  .wk-main .op-page-space .space-management,
  .wk-main .op-original-profile
) {
  background-color: var(--background);
  background-image:
    var(--wk-ambient-grain),
    radial-gradient(var(--wk-glow-1, closest-side, transparent, transparent)),
    radial-gradient(var(--wk-glow-2, closest-side, transparent, transparent)),
    radial-gradient(var(--wk-glow-3, closest-side, transparent, transparent)),
    radial-gradient(var(--wk-field-fade, 70% 60% at 50% 60%, transparent 30%, var(--background))),
    var(--wk-field-x, radial-gradient(var(--wk-ambient-ink) 1px, transparent 1px)),
    var(--wk-field-y, none);
  background-size: 160px 160px, auto, auto, auto, auto, var(--wk-field-size, 1.5rem 1.5rem), var(--wk-field-size, 1.5rem 1.5rem);
  background-blend-mode: multiply, normal, normal, normal, normal, normal, normal;

  :root.dark & {
    background-blend-mode: screen, normal, normal, normal, normal, normal, normal;
  }
}
/* Surfaces that sit on top of a painted backdrop. */
.wk-main > .home-page__top,
.wk-main .op-original-profile .global-content-host,
.wk-main .op-original-profile .global-content-host > .bg-background,
.wk-main .op-original-profile .global-content-host > .bg-background > section {
  background-color: transparent;
}
/* 项目库: a dot board under the cards, with mist drifting through the open space. */
.wk-main:has(> .wk-projects) {
  --wk-glow-1: 44rem 30rem at 100% 0%, var(--wk-mist-sky), transparent 70%;
  --wk-glow-2: 56rem 40rem at 0% 100%, var(--wk-mist-blue), transparent 70%;
  --wk-glow-3: 48rem 32rem at 62% 58%, var(--wk-mist-pale), transparent 70%;
  --wk-field-fade: 80% 70% at 50% 62%, transparent 40%, var(--background) 100%;
}
/* 工作流: the hero keeps its own ambience; the lower half picks up the same dots and mist. */
.wk-main:has(> .home-page__top) {
  --wk-glow-1: 46rem 30rem at 4% 100%, var(--wk-mist-blue), transparent 70%;
  --wk-glow-2: 42rem 30rem at 98% 96%, var(--wk-mist-sky), transparent 70%;
  --wk-glow-3: 56rem 22rem at 50% 104%, var(--wk-mist-pale), transparent 70%;
  --wk-field-fade: 92% 58% at 50% 100%, transparent 40%, var(--background) 100%;
}
/* 创作部 and 素材库: the hero grid continues down the page, lit from the lower corners. */
.op-page-tools .global-content,
.wk-main > .op-page-assets {
  --wk-glow-1: 44rem 30rem at 100% 100%, var(--wk-mist-sky), transparent 70%;
  --wk-glow-2: 40rem 28rem at 0% 96%, var(--wk-mist-pale), transparent 70%;
  --wk-field-x: linear-gradient(to right, color-mix(in oklab, var(--foreground) 6%, transparent) .0625rem, transparent .0625rem);
  --wk-field-y: linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 6%, transparent) .0625rem, transparent .0625rem);
  --wk-field-size: 3.5rem 3.5rem;
  --wk-field-fade: 90% 60% at 50% 100%, transparent 30%, var(--background) 100%;
}
.wk-main > .op-page-assets {
  --wk-glow-3: 40rem 26rem at 30% 104%, var(--wk-mist-blue), transparent 70%;
}
/* 后台处, 消息, 空间站 and the account pages: a quieter version for dense forms and tables. */
.wk-main > .op-page:not(.op-page-tools, .op-page-assets, .op-page-space, .op-page-profile),
.wk-main .op-page-space .space-management,
.wk-main .op-original-profile {
  --wk-glow-1: 40rem 26rem at 100% 0%, var(--wk-mist-sky), transparent 70%;
  --wk-glow-2: 46rem 32rem at 0% 100%, var(--wk-mist-blue), transparent 70%;
  --wk-field-fade: 70% 60% at 62% 70%, transparent 30%, var(--background) 100%;
  --wk-ambient-ink: color-mix(in oklab, var(--foreground) 10%, transparent);
}

.fujiu-logo {display:inline-block;object-fit:contain;flex-shrink:0;aspect-ratio:600/590;}
.sidebar__logo-wrap img.fujiu-logo {width:1.5rem;height:1.5rem;}
.wordmark img.fujiu-logo {width:1.6rem;height:1.6rem;}
.canvas-nav-capsule__logo img.fujiu-logo {width:20px;height:20px;}
