/* A real project page, held by the little computer's own window chrome. */
.app-window.project-runner-window {
  width: min(920px, calc(100% - 30px));
  height: calc(100% - 24px);
  left: 26px;
  top: 12px;
  background: #fcfaf7;
}
.project-runner-window .window-caption {
  max-width: calc(100% - 180px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-runner-window .window-caption svg { flex: none; }
.project-runner-window .traffic-lights button svg { opacity: .8; }
.project-runner-window .traffic-lights button:focus-visible { outline-offset: -1px; }
.project-runner-body { display: flex; flex-direction: column; overflow: hidden; }
.project-runner { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.project-runner [hidden] { display: none !important; }
.runner-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 7px 12px;
  border-bottom: 1px solid #e9e0e9;
  background: #f8f3f8;
}
.runner-address {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #9b83a6;
  font-size: 10px;
}
.runner-address > svg { flex: none; width: 13px; height: 13px; }
.runner-address-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-tools { display: flex; flex: none; gap: 5px; margin-left: auto; }
.runner-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #80658f;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.runner-tool svg { width: 14px; height: 14px; }
.runner-tool:hover { color: #654674; background: #eee3f3; }
.runner-external { border-color: #e3d3eb; background: #f1e6f5; color: #745382; }
.runner-tool[aria-expanded="true"] { color: #654674; border-color: #d6c1e1; background: #ebe0f0; }
.project-runner button:disabled,
.project-runner a[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.runner-notice {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #eadec9;
  background: #faf0e1;
  color: #8a715b;
  font-size: 10px;
  line-height: 1.5;
}
.runner-notice p { flex: 1; margin: 0; }
.runner-notice > button { flex: none; min-height: 28px; color: #87674b; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.runner-notice .runner-notice-close { display: grid; place-items: center; width: 24px; text-decoration: none; }
.runner-notice-close svg { width: 12px; height: 12px; }
.runner-workspace { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; isolation: isolate; }
.runner-stage { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: #fffdfb; }
.runner-frame-host { position: absolute; inset: 0; }
.project-app-frame { display: block; width: 100%; height: 100%; border: 0; background: #fffdfb; }
/* The first click brings an inactive app forward without reaching its page. */
.project-runner-window:not(.focused) .runner-frame-host::after { content: ""; position: absolute; inset: 0; cursor: default; }
.is-window-dragging .project-app-frame { pointer-events: none; }
.runner-loading-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #e6d9ec;
  border-radius: 9px;
  background: #fcf8f3ed;
  box-shadow: 0 2px 10px #7a5e8b0d;
  color: #937c9e;
  font-size: 10px;
  pointer-events: none;
}
.runner-loading-dot,
.finder-loading-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #aa90ba; animation: runner-breathe 1.3s ease-in-out infinite alternate; }
@keyframes runner-breathe { to { opacity: .35; transform: scale(.75); } }
.runner-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 28px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 65% 20%, #efe4f260, transparent 65%), #fcfaf7;
  text-align: center;
}
.runner-empty-art { position: relative; flex: none; margin: 0 0 18px; }
.runner-empty-art .app-icon { width: 66px; height: 66px; border-radius: 20px; transform: rotate(-5deg); }
.runner-empty-art > span:last-child { position: absolute; top: -9px; right: -17px; color: #c7b294; font-size: 22px; }
.runner-empty-eyebrow { color: #a189aa; font-size: 10px; letter-spacing: .5px; }
.runner-placeholder h2 { max-width: 400px; margin: 9px 0 0; color: #796087; font-size: 20px; line-height: 1.4; font-weight: 600; }
.runner-placeholder > p { max-width: 390px; margin: 12px 0 20px; color: #95829e; font-size: 12px; line-height: 1.9; }
.runner-placeholder-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; max-width: 430px; }
.runner-placeholder .primary-button,
.runner-placeholder .secondary-button { min-height: 38px; font-size: 11px; }
.runner-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px; color: #9678a4; font-size: 10px; }
.runner-text-button svg { width: 13px; height: 13px; }
.runner-details {
  flex: none;
  width: min(285px, 40%);
  padding: 15px;
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid #e8dfeb;
  background: #fcf8fa;
  scrollbar-width: thin;
  scrollbar-color: #d7cbdc transparent;
  outline: none;
}
.runner-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.runner-details-heading .mini-label { color: #a78dae; font-size: 7px; letter-spacing: 1px; }
.runner-details-heading button,
.runner-help-heading button { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #9e85a9; }
.runner-details-heading button:hover,
.runner-help-heading button:hover { background: #eee3f2; }
.runner-details-heading svg,
.runner-help-heading button svg { width: 13px; height: 13px; }
.runner-cover { position: relative; margin: 0 0 17px; border: 1px solid #eee2ec; border-radius: 12px; overflow: hidden; }
.runner-cover img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.runner-cover figcaption { position: absolute; bottom: 6px; left: 7px; padding: 2px 5px; border-radius: 4px; background: #fff8; color: #8d7e90; font-size: 7px; }
.runner-detail-copy h2 { margin: 8px 0 11px; color: #705879; font-size: 20px; line-height: 1.4; letter-spacing: -.4px; }
.runner-detail-copy p { margin: 8px 0 15px; color: #95829d; font-size: 11px; line-height: 1.9; }
.runner-detail-copy .runner-tagline { color: #7f6b87; }
.runner-detail-copy .detail-eyebrow { flex-wrap: wrap; gap: 6px; }
.runner-detail-copy .project-tags { margin-top: 20px; margin-bottom: 0; }
.runner-help {
  position: absolute;
  inset: 12px;
  z-index: 4;
  max-width: 460px;
  height: max-content;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1d3e9;
  border-radius: 15px;
  background: #fffbf7;
  box-shadow: 0 12px 50px #62526e30, 0 0 0 100vmax #6f547f20;
  outline: none;
}
.runner-workspace:has(.runner-help:not([hidden])) { overflow: hidden; }
.runner-help-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7f638c; font-size: 13px; font-weight: 600; }
.runner-help-heading > span { display: flex; align-items: center; gap: 8px; }
.runner-help-heading > span svg { width: 17px; height: 17px; }
.runner-help ol { margin: 17px 0 19px; padding-left: 23px; color: #9b7dab; }
.runner-help li + li { margin-top: 12px; }
.runner-help strong { font-size: 11px; font-weight: 600; color: #7d6587; }
.runner-help li p { margin: 4px 0 0; color: #9b88a2; font-size: 10px; line-height: 1.8; }
.runner-help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.runner-help-actions .primary-button,
.runner-help-actions .secondary-button { min-height: 36px; padding: 9px 11px; font-size: 10px; }
.runner-help .runner-help-note { margin: 17px 0 0; border-top: 1px solid #eee4ed; padding-top: 12px; color: #a38cae; font-size: 9px; line-height: 1.8; }
.runner-footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; padding: 5px 12px; border-top: 1px solid #e9e1ea; background: #f7f2f8; }
.runner-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a28bac; font-size: 9px; }
.runner-footer button { display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 24px; color: #8d719b; font-size: 9px; }
.runner-footer button svg { width: 12px; height: 12px; }

/* Published collections can grow without spilling into the Dock. */
.desktop-icons { bottom: 104px; overflow: auto; align-content: start; padding: 4px 7px 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b89fbe70 transparent; }
.menu-bar .menu-left > button.desktop-manage-button { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; min-height: 25px; border: 1px solid #d4c0df; border-radius: 7px; background: #f8f0fa9c; color: #82618f; font-size: 10px; }
.finder-empty strong { display: block; color: #8c7199; font-size: 13px; font-weight: 500; }
.finder-empty p { margin: 9px 0 15px; color: #a38bad; font-size: 10px; line-height: 1.8; }
.finder-empty .finder-loading-dot { margin-bottom: 14px; }
.finder-empty .secondary-button { min-height: 36px; padding: 9px 12px; font-size: 10px; }
.published-socials { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 17px 0; }
.published-social-link { display: flex; align-items: center; gap: 11px; min-height: 57px; padding: 10px 13px; border: 1px solid #e9dfea; border-radius: 10px; background: #fffdfb; }
.published-social-link:hover { border-color: #ceb8db; background: #f8f0fa; }
.published-social-icon { display: grid; flex: none; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #f0e5f5; color: #a185b0; }
.published-social-icon svg { width: 16px; height: 16px; }
.published-social-icon .xiaohongshu-mark { font-size: 8px; letter-spacing: -1px; }
.published-social-link > span:nth-child(2) { flex: 1; min-width: 0; }
.published-social-link strong { display: block; color: #80628d; font-size: 11px; font-weight: 500; }
.published-social-link small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ae96ba; font-size: 9px; }
.published-social-link > svg { flex: none; width: 14px; height: 14px; color: #ab90b8; }
.published-social-link.unpublished { opacity: .6; background: #f8f4f8; }
.published-social-manage { padding: 10px 0 5px; }
.settings-content .published-social-manage p,
.settings-content .published-social-note { color: #a68db0; font-size: 10px; line-height: 1.8; }

@media (min-width: 701px) { .finder-sidebar { overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 700px) {
  .app-window.project-runner-window,
  .app-window.project-runner-window.maximized { inset: 5px 6px 3px !important; }
  .project-runner-window .window-caption { max-width: calc(100% - 120px); }
  .runner-toolbar { min-height: 45px; padding: 6px 8px; }
  .runner-address { display: none; }
  .runner-tools { width: 100%; gap: 6px; margin: 0; }
  .runner-tool { min-height: 34px; padding: 7px 10px; font-size: 10px; }
  .runner-external { flex: 1; }
  .runner-notice { gap: 6px; padding: 7px 9px; font-size: 9px; }
  .runner-notice > button { font-size: 9px; }
  .runner-notice .runner-notice-close { width: 20px; }
  .runner-footer { gap: 6px; min-height: 32px; padding: 5px 9px; }
  .runner-status { font-size: 8px; }
  .runner-details { position: absolute; inset: 0; z-index: 3; width: auto; padding: 16px 21px; border-left: 0; }
  .runner-cover { max-width: 360px; }
  .runner-cover img { max-height: 170px; }
  .runner-details-heading .mini-label { font-size: 8px; }
  .runner-detail-copy h2 { font-size: 22px; }
  .runner-help { inset: 8px; max-height: calc(100% - 16px); padding: 16px; }
  .runner-help-heading { font-size: 12px; }
  .runner-help-actions { flex-direction: column; }
  .runner-help-actions .primary-button,
  .runner-help-actions .secondary-button { min-height: 39px; justify-content: center; font-size: 11px; }
  .runner-placeholder { padding: 22px 17px; }
  .runner-empty-art { margin-bottom: 13px; }
  .runner-placeholder h2 { font-size: 18px; }
  .runner-placeholder > p { font-size: 11px; line-height: 1.85; }
  .runner-placeholder-actions .primary-button,
  .runner-placeholder-actions .secondary-button { min-height: 40px; padding: 10px 12px; font-size: 10px; }
  .menu-bar .menu-left > button.desktop-manage-button { min-height: 24px; padding: 3px 6px; font-size: 9px; }
  .desktop-icons { bottom: 101px; padding-inline: 4px; }
}
@media (max-height: 520px) {
  .runner-empty-art .app-icon { width: 48px; height: 48px; border-radius: 14px; }
  .runner-empty-art { margin-bottom: 9px; }
  .runner-placeholder { padding-block: 16px; }
  .runner-placeholder > p { margin-block: 8px 12px; }
  .runner-placeholder h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .runner-loading-dot, .finder-loading-dot { animation: none; }
}

.runner-status[hidden]{display:none}
