/* Vyndexo Workspace Home. Deliberately scoped; editors keep their own styles. */
.vx-home, .vx-dialog, .vx-viewer, .vx-small-dialog {
  --wh-bg: #0d0f13;
  --wh-surface: #14171d;
  --wh-raised: #1b1f27;
  --wh-hover: #222733;
  --wh-line: rgb(220 230 255 / 9%);
  --wh-line-strong: rgb(220 230 255 / 16%);
  --wh-text: #eff2f9;
  --wh-muted: #a3abbd;
  --wh-faint: #8791a7;
  --wh-blue: #477dfa;
  --wh-blue-hover: #6393ff;
  --wh-blue-tint: rgb(71 125 250 / 12%);
  --wh-success: #8bd1b0;
  --wh-error: #ffaaaa;
  --wh-xs: max(.75rem, 12px);
  --wh-sm: max(.875rem, 14px);
  --wh-body: 1rem;
  --wh-heading: max(1.125rem, 18px);
  --wh-title: clamp(24px, 1.1rem + .6vw, 32px);
  --wh-1: 4px;
  --wh-2: 8px;
  --wh-3: 12px;
  --wh-4: 16px;
  --wh-5: 20px;
  --wh-6: 24px;
  --wh-8: 32px;
  --wh-10: 40px;
  color: var(--wh-text);
  background: var(--wh-bg);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--wh-sm);
  line-height: 1.55;
  text-align: left;
  color-scheme: dark;
}
[data-wh-theme="light"] {
  --wh-bg: #f7f8fb;
  --wh-surface: #fff;
  --wh-raised: #edf0f6;
  --wh-hover: #e6eaf2;
  --wh-line: rgb(24 37 67 / 10%);
  --wh-line-strong: rgb(24 37 67 / 19%);
  --wh-text: #1c2433;
  --wh-muted: #526075;
  --wh-faint: #616c81;
  --wh-blue: #245bce;
  --wh-blue-hover: #1849ac;
  --wh-blue-tint: rgb(36 91 206 / 8%);
  --wh-success: #267654;
  --wh-error: #ac2929;
  color-scheme: light;
}
.vx-home *, .vx-dialog *, .vx-viewer *, .vx-small-dialog * { box-sizing: border-box; }
.vx-home [hidden], .vx-dialog [hidden], .vx-small-dialog [hidden] { display: none !important; }
.vx-home svg, .vx-dialog svg, .vx-viewer svg, .vx-small-dialog svg, #vx-home-button svg {
  display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; vertical-align: middle;
  stroke-width: 1.7;
}
.vx-home button, .vx-dialog button, .vx-viewer button, .vx-small-dialog button {
  font: inherit; color: inherit; cursor: pointer; background: none;
  border: 0; text-align: inherit; transition: background .16s, border-color .16s, color .16s;
}
.vx-home button:disabled, .vx-dialog button:disabled, .vx-small-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.vx-home :focus-visible, .vx-dialog :focus-visible, .vx-viewer :focus-visible, .vx-small-dialog :focus-visible, #vx-home-button:focus-visible {
  outline: 2px solid var(--wh-blue, #477dfa); outline-offset: 3px;
}
.vx-home h1, .vx-home h2, .vx-home h3, .vx-dialog h2, .vx-viewer h2, .vx-small-dialog h2 { color: var(--wh-text); line-height: 1.25; margin: 0; }
.vx-home p, .vx-dialog p, .vx-small-dialog p { margin: 0; }
.vx-home { display: flex; flex-direction: column; width: 100%; min-width: 0; height: 100%; overflow: hidden; }
.vx-home[hidden] { display: none !important; }
body.vx-home-active #main { min-width: 0; position: relative; flex: 1 1 auto !important; }
body.vx-home-active #main > :not(#vx-workspace-home) { display: none !important; }
body.vx-home-active #media-panel, body.vx-home-active #canvas-panel,
body.vx-home-active #ftc, body.vx-home-active #ftc-panel { display: none !important; }
#sidebar .sb-newrow.vx-home-nav { gap: 4px; }
#sidebar .sb-newrow.vx-home-nav .btn-new {
  flex: 1 1 0; min-width: 0; justify-content: center; padding: 7px 5px; gap: 5px; white-space: nowrap;
}
#sidebar #vx-home-button {
  display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center;
  gap: 5px; min-height: 32px; margin: 0; padding: 7px 5px; border: 1px solid var(--border2);
  border-radius: 7px; color: var(--text); background: var(--s2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
#sidebar #vx-home-button:hover { background: var(--s3); }
body.vx-home-active #sidebar #vx-home-button { background: rgb(71 125 250 / 16%); color: #abc4ff; border-color: rgb(71 125 250 / 30%); }
#sidebar #vx-home-button svg { width: 14px; height: 14px; }
.wh-topbar { display: flex; align-items: center; gap: var(--wh-4); padding: var(--wh-3) var(--wh-8); min-height: 62px; flex-shrink: 0; border-bottom: 1px solid var(--wh-line); }
.wh-breadcrumb { display: flex; align-items: center; gap: var(--wh-3); color: var(--wh-muted); white-space: nowrap; }
.wh-breadcrumb b { color: var(--wh-text); font-weight: 500; }
.wh-breadcrumb .wh-divider { opacity: .4; }
.wh-topbar-right { display: flex; align-items: center; gap: var(--wh-2); }
.wh-topbar-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.wh-header-discord { display: inline-flex; align-items: center; gap: 8px; color: var(--wh-muted); text-decoration: none; font-weight: 500; font-size: var(--wh-sm); min-height: 42px; }
.wh-header-discord:hover { color: var(--wh-text); }
.wh-header-discord > svg:last-child { width: 14px; height: 14px; }
.wh-topbar .wh-header-plans { min-height: 42px; padding: 10px 20px; font-weight: 600 !important; }
.wh-private { display: flex; align-items: center; gap: var(--wh-2); color: var(--wh-faint); font-size: var(--wh-xs); padding-right: var(--wh-3); }
.wh-icon-btn { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 7px; color: var(--wh-muted) !important; flex: 0 0 auto; }
.wh-icon-btn:hover { background: var(--wh-hover); color: var(--wh-text) !important; }
.wh-icon-btn[aria-pressed="true"] { background: var(--wh-blue-tint); color: var(--wh-blue) !important; }
.wh-mobile-menu { display: none !important; }
html.sidebar-folded .wh-topbar { padding-left: 52px; }
.wh-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.wh-content { max-width: 1580px; margin: 0 auto; padding: var(--wh-8) var(--wh-8) var(--wh-10); }
.wh-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wh-4); margin-bottom: var(--wh-6); }
.wh-eyebrow { display: flex; align-items: center; gap: var(--wh-2); text-transform: uppercase; letter-spacing: .11em; font-size: var(--wh-xs); color: var(--wh-faint); margin-bottom: var(--wh-2); }
.wh-heading h1 { font-size: var(--wh-title); letter-spacing: -.035em; font-weight: 600; }
.wh-heading p { color: var(--wh-muted); margin-top: var(--wh-2); font-size: var(--wh-sm); }
.wh-heading-tools { display: flex; align-items: center; gap: var(--wh-2); padding-top: var(--wh-4); }
.wh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--wh-2);
  min-height: 38px; padding: var(--wh-2) var(--wh-4); border: 1px solid var(--wh-line-strong) !important;
  background: var(--wh-surface) !important; border-radius: 8px; white-space: nowrap;
  font-size: var(--wh-sm) !important; font-weight: 500 !important;
}
.wh-btn:hover { background: var(--wh-hover) !important; }
.wh-btn-primary { background: var(--wh-blue) !important; color: #fff !important; border-color: transparent !important; }
.wh-btn-primary:hover { background: var(--wh-blue-hover) !important; }
.wh-launch { display: flex; border: 1px solid var(--wh-line-strong); border-radius: 12px; background: var(--wh-surface); overflow: hidden; margin-bottom: var(--wh-8); }
.wh-launch button { display: flex; align-items: center; gap: var(--wh-4); padding: var(--wh-5) var(--wh-6); flex: 1; min-width: 0; border-right: 1px solid var(--wh-line); }
.wh-launch button:last-child { border-right: 0; }
.wh-launch button:hover { background: var(--wh-raised); }
.wh-launch .wh-launch-symbol { width: 24px; height: 24px; color: var(--wh-blue); }
.wh-launch strong { font-size: var(--wh-sm); font-weight: 600; display: block; }
.wh-launch small { display: block; font-size: var(--wh-xs); color: var(--wh-muted); margin-top: var(--wh-1); }
.wh-launch .wh-arrow { margin-left: auto; color: var(--wh-faint); width: 15px; height: 15px; }
.wh-badge { display: inline-flex; align-items: center; gap: var(--wh-1); font-size: var(--wh-xs); font-weight: 500; line-height: 1.4; padding: 3px var(--wh-2); border: 1px solid var(--wh-line-strong); border-radius: 5px; color: var(--wh-muted); background: var(--wh-surface); white-space: nowrap; }
.wh-badge-blue { color: var(--wh-blue); border-color: rgb(71 125 250 / 25%); background: var(--wh-blue-tint); }
.wh-library-nav { display: flex; align-items: center; gap: var(--wh-5); border-bottom: 1px solid var(--wh-line); margin-bottom: var(--wh-5); overflow-x: auto; }
.wh-tab { display: flex; align-items: center; gap: var(--wh-2); position: relative; padding: var(--wh-3) 0; white-space: nowrap; color: var(--wh-muted) !important; min-height: 44px; }
.wh-tab[aria-selected="true"] { color: var(--wh-text) !important; font-weight: 600; }
.wh-tab[aria-selected="true"]::after { content: ""; position: absolute; height: 2px; background: var(--wh-blue); bottom: 0; left: 0; right: 0; }
.wh-tab-count { color: var(--wh-faint); font-size: var(--wh-xs); font-weight: 500; padding: 0 6px; background: var(--wh-raised); border-radius: 4px; }
.wh-toolbar { display: flex; align-items: center; gap: var(--wh-3); margin-bottom: var(--wh-6); flex-wrap: wrap; }
.wh-search { position: relative; flex: 1 1 250px; min-width: 180px; }
.wh-search > svg { position: absolute; left: 12px; top: 12px; color: var(--wh-faint); pointer-events: none; }
.wh-search input { display: block; height: 42px; width: 100%; border: 1px solid var(--wh-line-strong); border-radius: 8px; background: var(--wh-surface); color: var(--wh-text); padding: 0 38px; font: inherit; outline: none; }
.wh-search input::placeholder { color: var(--wh-faint); }
.wh-search input:focus { border-color: var(--wh-blue); box-shadow: 0 0 0 2px var(--wh-blue-tint); }
.wh-search kbd { position: absolute; right: 13px; top: 11px; border: 1px solid var(--wh-line-strong); border-radius: 4px; padding: 0 5px; color: var(--wh-faint); font: inherit; font-size: var(--wh-xs); }
.wh-select { appearance: auto; max-width: 190px; min-width: 115px; height: 42px; padding: 0 var(--wh-3); border: 1px solid var(--wh-line-strong); border-radius: 8px; color: var(--wh-muted); font: inherit; background: var(--wh-surface); }
.wh-layout { display: flex; gap: var(--wh-1); padding: 3px; border: 1px solid var(--wh-line-strong); border-radius: 8px; }
.wh-layout .wh-icon-btn { width: 32px; height: 34px; border-radius: 5px; }
.wh-section { margin-top: var(--wh-8); }
.wh-section:first-child { margin-top: 0; }
.wh-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wh-3); margin-bottom: var(--wh-4); }
.wh-section-label { display: flex; align-items: center; gap: var(--wh-3); min-width: 0; }
.wh-section-label > svg { color: var(--wh-muted); }
.wh-section-head h2 { font-size: var(--wh-heading); font-weight: 600; letter-spacing: -.02em; }
.wh-section-count { font-size: var(--wh-xs); color: var(--wh-faint); }
.wh-text-btn { color: var(--wh-muted) !important; display: inline-flex; align-items: center; gap: var(--wh-2); min-height: 36px; font-size: var(--wh-xs) !important; padding: var(--wh-1) var(--wh-2); border-radius: 6px; }
.wh-text-btn:hover { background: var(--wh-hover); color: var(--wh-text) !important; }
.wh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wh-4); }
.wh-project { position: relative; border: 1px solid var(--wh-line); border-radius: 10px; background: var(--wh-surface); overflow: hidden; min-width: 0; transition: border-color .16s, box-shadow .16s; }
.wh-project:hover { border-color: var(--wh-line-strong); box-shadow: 0 6px 20px rgb(0 0 0 / 9%); }
.wh-cover { display: block; width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--wh-raised) !important; padding: 0; border-radius: 0; }
.wh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.wh-cover:hover img { transform: scale(1.035); }
.wh-cover .wh-cover-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wh-2); padding: var(--wh-4); color: var(--wh-faint); }
.wh-cover-fallback > svg { width: 28px; height: 28px; opacity: .8; }
.wh-cover-fallback p { font-size: var(--wh-xs); color: var(--wh-faint); }
.wh-cover-fallback blockquote { color: var(--wh-muted); font-size: var(--wh-sm); text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; width: 100%; max-height: 4.8em; }
.wh-cover-label { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 20px); display: inline-flex; gap: 5px; align-items: center; color: #edf2ff; background: rgb(8 12 20 / 75%); font-size: var(--wh-xs); line-height: 1; padding: 6px 7px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 5px; backdrop-filter: blur(6px); }
.wh-cover-label svg { width: 13px; height: 13px; }
.wh-cover-kind { white-space: nowrap; }
.wh-cover-shared { display: inline-flex; align-items: center; gap: 4px; padding-left: 5px; border-left: 1px solid rgb(255 255 255 / 25%); white-space: nowrap; }
.wh-project-actions { position: absolute; top: var(--wh-2); right: var(--wh-2); display: flex; gap: var(--wh-1); z-index: 1; }
.wh-project-actions .wh-icon-btn { background: rgb(8 12 20 / 76%); color: #f0f3fa !important; width: 30px; height: 30px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 6px; }
.wh-project-actions .wh-icon-btn:hover { background: rgb(8 12 20 / 96%); }
.wh-project-actions .wh-icon-btn[aria-pressed="true"] { color: #ffd080 !important; }
.wh-project-actions .wh-icon-btn[aria-pressed="true"] svg { fill: #ffd080; }
.wh-project-info { padding: var(--wh-3) var(--wh-3) var(--wh-2); }
.wh-project-title { display: block; padding: 0; width: 100%; font-weight: 500 !important; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: var(--wh-sm) !important; line-height: 1.5; }
.wh-project-title:hover { color: var(--wh-blue) !important; }
.wh-project-meta { display: flex; align-items: center; gap: 6px; font-size: var(--wh-xs); color: var(--wh-muted); margin-top: 5px; min-height: 20px; overflow: hidden; }
.wh-project-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-project-meta svg { width: 12px; height: 12px; }
.wh-project-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--wh-2); margin-top: var(--wh-2); border-top: 1px solid var(--wh-line); padding-top: 5px; }
.wh-project-date { color: var(--wh-faint); font-size: var(--wh-xs); white-space: nowrap; }
.wh-open-project { display: inline-flex; align-items: center; gap: 4px; color: var(--wh-muted) !important; padding: 5px 0 5px 8px; font-size: var(--wh-xs) !important; border-radius: 4px; }
.wh-open-project:hover { color: var(--wh-blue) !important; }
.wh-open-project svg { width: 13px; height: 13px; }
.wh-project.wh-hq-card .wh-cover { aspect-ratio: 2.1/1; }
.wh-space-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--wh-3); }
.wh-space-card { display: flex; gap: var(--wh-3); align-items: center; border: 1px solid var(--wh-line) !important; padding: var(--wh-4); border-radius: 9px; min-width: 0; background: var(--wh-surface) !important; }
.wh-space-card:hover { background: var(--wh-raised) !important; border-color: var(--wh-line-strong) !important; }
.wh-space-card > svg { color: var(--wh-muted); width: 20px; height: 20px; }
.wh-space-info { flex: 1; min-width: 0; }
.wh-space-info strong { font-size: var(--wh-sm); font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-space-info small { color: var(--wh-muted); font-size: var(--wh-xs); display: block; margin-top: 2px; }
.wh-space-dot { height: 7px; width: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.wh-avatars { display: flex; flex: 0 0 auto; }
.wh-avatar { width: 27px; height: 27px; border-radius: 50%; background: var(--wh-raised); color: var(--wh-muted); border: 2px solid var(--wh-surface); display: flex; align-items: center; justify-content: center; font-size: var(--wh-xs); margin-left: -5px; }
.wh-later { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--wh-4); margin-top: var(--wh-3); }
.wh-later-card { display: flex; align-items: center; gap: var(--wh-4); border: 1px dashed var(--wh-line-strong); border-radius: 10px; padding: var(--wh-5); color: var(--wh-muted); }
.wh-later-card > svg { width: 24px; height: 24px; }
.wh-later-card strong { display: block; font-size: var(--wh-sm); color: var(--wh-text); font-weight: 500; }
.wh-later-card p { font-size: var(--wh-xs); margin-top: var(--wh-1); }
.wh-later-card .wh-badge { margin-left: auto; }
.wh-foot { display: flex; align-items: center; justify-content: space-between; color: var(--wh-faint); font-size: var(--wh-xs); margin-top: var(--wh-8); padding-top: var(--wh-4); border-top: 1px solid var(--wh-line); gap: var(--wh-4); }
.wh-foot span { display: inline-flex; align-items: center; gap: var(--wh-2); }
.wh-list { display: flex; flex-direction: column; gap: var(--wh-2); }
.wh-list .wh-project { display: flex; align-items: center; min-height: 88px; padding: var(--wh-2); overflow: visible; }
.wh-list .wh-cover { width: 96px; height: 70px; aspect-ratio: auto; border-radius: 6px; flex: 0 0 auto; }
.wh-list .wh-cover-label { display: none; }
.wh-list .wh-cover-fallback p, .wh-list .wh-cover-fallback blockquote { display: none; }
.wh-list .wh-project-info { flex: 1; padding: 0 92px 0 var(--wh-4); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: var(--wh-1) var(--wh-6); align-items: center; }
.wh-list .wh-project-meta { grid-column: 1; margin-top: 0; }
.wh-list .wh-project-bottom { grid-column: 2; grid-row: 1 / 3; border: 0; margin: 0; padding: 0; }
.wh-list .wh-project-actions { top: 50%; transform: translateY(-50%); right: var(--wh-3); }
.wh-list .wh-project-actions .wh-icon-btn { background: var(--wh-raised); border-color: var(--wh-line); color: var(--wh-muted) !important; }
.wh-list .wh-project.wh-hq-card .wh-cover { aspect-ratio: auto; }
.wh-empty { min-height: 150px; border: 1px dashed var(--wh-line-strong); border-radius: 10px; padding: var(--wh-6); display: flex; align-items: center; gap: var(--wh-5); color: var(--wh-muted); background: var(--wh-surface); }
.wh-empty > svg { width: 30px; height: 30px; color: var(--wh-faint); }
.wh-empty h3 { font-size: var(--wh-sm); margin-bottom: 5px; }
.wh-empty p { font-size: var(--wh-xs); max-width: 55ch; }
.wh-empty .wh-btn { margin-left: auto; }
.wh-notice { padding: var(--wh-3) var(--wh-4); margin-bottom: var(--wh-4); border: 1px solid var(--wh-line-strong); border-radius: 8px; color: var(--wh-muted); background: var(--wh-surface); font-size: var(--wh-sm); }
.wh-notice-error { color: var(--wh-error); }
.wh-notice-success { color: var(--wh-success); }
.wh-loading { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--wh-4); }
.wh-skeleton { height: 240px; background: var(--wh-surface); border: 1px solid var(--wh-line); border-radius: 10px; overflow: hidden; }
.wh-skeleton::before { content: ""; display: block; width: 100%; height: 65%; background: var(--wh-raised); animation: wh-pulse 1.4s ease-in-out infinite alternate; }
.wh-skeleton::after { content: ""; display: block; margin: var(--wh-4); height: 10px; width: 65%; border-radius: 3px; background: var(--wh-raised); }
@keyframes wh-pulse { to { opacity: .4; } }
.wh-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; }
.wh-more { margin: var(--wh-5) auto 0; display: flex; }
.vx-dialog, .vx-viewer, .vx-small-dialog { border: 1px solid var(--wh-line-strong); border-radius: 14px; box-shadow: 0 24px 100px rgb(0 0 0 / 35%); padding: 0; }
.vx-dialog::backdrop, .vx-viewer::backdrop, .vx-small-dialog::backdrop { background: rgb(0 0 0 / 55%); backdrop-filter: blur(2px); }
.vx-dialog { position: fixed; inset: 16px 16px 16px auto; margin: 0; width: min(680px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-height: none; max-width: none; overflow: hidden; }
.vx-dialog[open] { display: flex; flex-direction: column; }
.wh-dialog-head { display: flex; align-items: center; gap: var(--wh-2); padding: var(--wh-3) var(--wh-5); border-bottom: 1px solid var(--wh-line); flex: 0 0 auto; }
.wh-dialog-head span { color: var(--wh-muted); flex: 1; }
.wh-detail-top { padding: var(--wh-5); flex: 0 0 auto; }
.wh-detail-title-row { display: flex; align-items: flex-start; gap: var(--wh-3); margin: var(--wh-3) 0 var(--wh-2); }
.wh-detail-title-row h2 { flex: 1; font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.wh-detail-top p { color: var(--wh-muted); font-size: var(--wh-xs); }
.wh-detail-actions { display: flex; gap: var(--wh-2); margin-top: var(--wh-4); flex-wrap: wrap; }
.wh-detail-tabs { display: flex; gap: var(--wh-5); border-bottom: 1px solid var(--wh-line); padding: 0 var(--wh-5); flex: 0 0 auto; overflow-x: auto; }
.wh-detail-body { flex: 1; overflow-y: auto; padding: var(--wh-5); min-height: 0; }
.wh-detail-search { margin-bottom: var(--wh-4); }
.wh-detail-summary { display: flex; flex-wrap: wrap; gap: var(--wh-2) var(--wh-4); font-size: var(--wh-xs); color: var(--wh-muted); padding: var(--wh-3) 0; }
.wh-detail-summary span { display: inline-flex; align-items: center; gap: 5px; }
.wh-history-item { border: 1px solid var(--wh-line); background: var(--wh-surface); border-radius: 9px; padding: var(--wh-4); margin-bottom: var(--wh-3); }
.wh-history-meta { display: flex; align-items: center; gap: var(--wh-2); color: var(--wh-muted); font-size: var(--wh-xs); margin-bottom: var(--wh-3); }
.wh-history-meta strong { color: var(--wh-text); font-weight: 500; }
.wh-history-meta time { margin-left: auto; color: var(--wh-faint); white-space: nowrap; }
.wh-history-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--wh-sm); color: var(--wh-text); max-height: 190px; overflow: hidden; }
.wh-history-text.expanded { max-height: none; }
.wh-reasoning { margin-top: var(--wh-3); padding-top: var(--wh-3); border-top: 1px solid var(--wh-line); }
.wh-reasoning summary { cursor: pointer; color: var(--wh-muted); font-size: var(--wh-xs); margin-bottom: var(--wh-2); }
.wh-viewer-info a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.wh-history-expand { margin-top: var(--wh-2); color: var(--wh-blue) !important; font-size: var(--wh-xs) !important; padding: var(--wh-1) 0; }
.wh-entry-media { margin-bottom: var(--wh-3); border: 0; width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 6px; overflow: hidden; background: var(--wh-raised) !important; position: relative; }
.wh-entry-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh-entry-media .wh-play { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; background: rgb(0 0 0 / 65%); color: #fff; border-radius: 50%; }
.wh-entry-media .wh-play svg { width: 18px; height: 18px; }
.wh-prompt-label { display: flex; align-items: center; justify-content: space-between; color: var(--wh-muted); font-size: var(--wh-xs); margin-bottom: 5px; }
.wh-entry-settings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--wh-3); }
.wh-entry-settings span { color: var(--wh-muted); font-size: var(--wh-xs); padding: 3px 6px; background: var(--wh-raised); border-radius: 4px; }
.wh-references { display: flex; flex-wrap: wrap; gap: var(--wh-2); margin-top: var(--wh-3); }
.wh-reference { width: 55px; height: 55px; border-radius: 6px; overflow: hidden; background: var(--wh-raised) !important; padding: 0; display: grid; place-items: center; border: 1px solid var(--wh-line) !important; }
.wh-reference img { width: 100%; height: 100%; object-fit: cover; }
.wh-asset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--wh-3); }
.wh-asset-grid .wh-history-item { margin: 0; padding: var(--wh-3); }
.wh-asset-grid .wh-entry-media { height: 160px; }
.wh-asset-grid .wh-history-meta { flex-wrap: wrap; gap: var(--wh-1); }
.wh-asset-grid .wh-history-meta time { width: 100%; margin-left: 0; }
.wh-asset-grid .wh-history-text { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; max-height: 4.7em; }
.wh-asset-grid .wh-history-text.expanded { display: block; max-height: none; }
.wh-file { display: flex; gap: var(--wh-3); align-items: center; padding: var(--wh-3); border: 1px solid var(--wh-line); border-radius: 8px; margin-bottom: var(--wh-2); }
.wh-file > svg { width: 25px; height: 25px; color: var(--wh-muted); }
.wh-file div { min-width: 0; flex: 1; }
.wh-file strong { display: block; word-break: break-word; font-weight: 500; }
.wh-file small { color: var(--wh-muted); font-size: var(--wh-xs); }
.wh-file a { color: var(--wh-blue); font-size: var(--wh-xs); text-decoration: none; }
.vx-viewer { margin: auto; width: min(1480px,calc(100vw - 32px)); height: min(960px,calc(100dvh - 32px)); max-width: none; max-height: none; overflow: hidden; }
.vx-viewer[open] { display: flex; flex-direction: column; }
.wh-viewer-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; flex: 1; min-height: 0; }
.wh-viewer-media { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; background: #080a0e; padding: var(--wh-3); overflow: hidden; }
.wh-viewer-media img, .wh-viewer-media video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.wh-viewer-media audio { width: 100%; }
.wh-viewer-info { padding: var(--wh-5); border-left: 1px solid var(--wh-line); overflow-y: auto; }
.wh-viewer-info h2 { font-size: var(--wh-heading); margin-bottom: var(--wh-4); }
.wh-viewer-info .wh-history-text { max-height: none; }
.wh-viewer-info a { display: inline-flex; align-items: center; gap: var(--wh-2); margin-top: var(--wh-5); color: var(--wh-blue); }
.vx-small-dialog { margin: auto; width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
.wh-form { padding: var(--wh-5); }
.wh-form h2 { font-size: 1.3rem; margin-bottom: var(--wh-2); }
.wh-form > p { font-size: var(--wh-sm); color: var(--wh-muted); margin-bottom: var(--wh-5); }
.wh-field { display: flex; flex-direction: column; gap: var(--wh-2); margin-bottom: var(--wh-4); }
.wh-field > label { font-size: var(--wh-xs); font-weight: 500; color: var(--wh-muted); }
.wh-field input, .wh-field select { width: 100%; height: 42px; border: 1px solid var(--wh-line-strong); border-radius: 7px; background: var(--wh-surface); color: var(--wh-text); padding: 0 var(--wh-3); font: inherit; }
.wh-form-footer { display: flex; justify-content: flex-end; gap: var(--wh-2); margin-top: var(--wh-5); }
.wh-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wh-2); border: 1px dashed var(--wh-line-strong); background: var(--wh-surface); padding: var(--wh-6); border-radius: 8px; cursor: pointer; text-align: center; color: var(--wh-muted); }
.wh-upload-zone:hover { border-color: var(--wh-blue); background: var(--wh-blue-tint); }
.wh-upload-zone > svg { width: 26px; height: 26px; }
.wh-upload-zone strong { color: var(--wh-text); font-size: var(--wh-sm); }
.wh-upload-zone small { font-size: var(--wh-xs); }
.wh-cover-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--wh-2); margin: var(--wh-4) 0; }
.wh-cover-option { position: relative; width: 100%; aspect-ratio: 1.3/1; border-radius: 6px; padding: 0; overflow: hidden; background: var(--wh-raised) !important; border: 2px solid transparent !important; }
.wh-cover-option:hover, .wh-cover-option[aria-pressed="true"] { border-color: var(--wh-blue) !important; }
.wh-cover-option img { width: 100%; height: 100%; object-fit: cover; }
.vx-small-dialog[data-mode="cover"] { width: min(1120px,calc(100vw - 32px)); height: min(840px,calc(100dvh - 32px)); max-width: none; max-height: none; overflow: hidden; }
.vx-small-dialog[data-mode="cover"][open] { display: flex; flex-direction: column; }
.wh-cover-intro { padding: 18px 24px 12px; flex: 0 0 auto; }
.wh-cover-intro h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.wh-cover-intro p { color: var(--wh-muted); font-size: 13px; line-height: 1.6; }
.wh-cover-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 16px; flex: 0 0 auto; }
#wh-cover-count { font-size: 12px; color: var(--wh-faint); }
.wh-cover-upload { cursor: pointer; white-space: nowrap; font-size: 12px; min-height: 36px; }
.wh-cover-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); border-block: 1px solid var(--wh-line); }
.wh-cover-browser { min-width: 0; min-height: 0; display: flex; }
.wh-cover-scroll { width: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--wh-faint) var(--wh-bg); touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; padding: 20px; }
.wh-cover-scroll::-webkit-scrollbar { width: 8px; }
.wh-cover-scroll::-webkit-scrollbar-thumb { background: var(--wh-faint); border: 2px solid var(--wh-bg); border-radius: 8px; }
.wh-cover-scroll::-webkit-scrollbar-track { background: var(--wh-bg); }
.wh-cover-scroll .wh-cover-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; }
.wh-cover-scroll .wh-cover-option { aspect-ratio: 1.15/1; border-radius: 8px; display: block; }
.wh-cover-scroll .wh-cover-option img { display: block; height: calc(100% - 26px); object-fit: contain; background: #080a0e; }
.wh-cover-option-label { display: block; font-size: 11px; line-height: 26px; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--wh-muted); text-align: left; }
.wh-cover-tick { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--wh-blue); color: white; display: none; place-items: center; box-shadow: 0 2px 8px #0005; }
.wh-cover-option[aria-pressed="true"] .wh-cover-tick { display: grid; }
.wh-cover-tick svg { width: 14px; height: 14px; }
.wh-cover-option[aria-pressed="true"] .wh-cover-option-label { color: var(--wh-text); background: var(--wh-blue-tint); }
.wh-cover-pagination { padding-top: 16px; text-align: center; min-height: 42px; }
.wh-cover-pagination .wh-btn { margin: 0 auto; }
.wh-cover-pagination .wh-notice { flex-wrap: wrap; }
.wh-cover-preview-panel { border-left: 1px solid var(--wh-line); min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--wh-surface); }
.wh-cover-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; gap: 8px; flex: 0 0 auto; font-size: 12px; color: var(--wh-muted); }
.wh-cover-preview { flex: 1; min-height: 0; min-width: 0; padding: 12px; background: #080a0e; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wh-cover-preview > img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.wh-cover-preview-empty { color: #929caf; text-align: center; font-size: 13px; padding: 20px; }
.wh-cover-preview-empty > svg { width: 30px; height: 30px; margin-bottom: 12px; }
.wh-cover-preview-caption { flex: 0 0 auto; padding: 12px 16px; min-width: 0; }
.wh-cover-preview-caption > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.wh-cover-preview-caption > small { display: block; margin-top: 4px; font-size: 11px; color: var(--wh-faint); }
.wh-cover-footer { padding: 12px 20px 16px; flex: 0 0 auto; }
.wh-cover-footer .wh-inline-status { margin: 0 0 8px; font-size: 12px; }
.wh-cover-footer-actions { display: flex; align-items: center; gap: 8px; }
.wh-cover-footer-actions [data-action="automatic-cover"] { margin-right: auto; }
@media (min-width: 1100px) { .wh-cover-scroll .wh-cover-options { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.wh-upload-preview { margin-top: var(--wh-4); width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; }
.wh-inline-status { font-size: var(--wh-xs); color: var(--wh-muted); min-height: 20px; margin-top: var(--wh-3); overflow-wrap: anywhere; }
.wh-inline-status.error { color: var(--wh-error); }
.wh-demo-banner { display: flex; align-items: center; gap: var(--wh-2); font-size: var(--wh-xs); color: var(--wh-muted); border: 1px solid var(--wh-line); background: var(--wh-surface); border-radius: 8px; padding: var(--wh-3); margin-bottom: var(--wh-5); }
@media (min-width: 1800px) { .wh-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1220px) {
  .wh-grid, .wh-loading { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wh-space-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wh-launch button { padding: var(--wh-4); gap: var(--wh-3); }
  .wh-launch .wh-arrow { display: none; }
  .wh-content { padding: var(--wh-6); }
  .wh-topbar { padding-inline: var(--wh-6); }
  .wh-list .wh-project-info { grid-template-columns: minmax(0,1fr); }
  .wh-list .wh-project-bottom { grid-column: 1; grid-row: auto; max-width: 250px; }
}
@media (max-width: 980px) and (min-width: 769px) {
  .wh-grid, .wh-loading { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wh-launch small { display: none; }
  .wh-launch button { padding: var(--wh-4) var(--wh-3); gap: var(--wh-2); }
  .wh-heading-tools .wh-btn:first-child { display: none; }
  .wh-private { display: none; }
}
@media (max-width: 768px) {
  .wh-mobile-menu { display: inline-flex !important; }
  .wh-topbar, html.sidebar-folded .wh-topbar { padding: var(--wh-2) var(--wh-3); min-height: 56px; gap: var(--wh-2); }
  .wh-private { display: none; }
  .wh-content { padding: var(--wh-5) var(--wh-4) var(--wh-8); }
  .wh-heading { gap: var(--wh-2); }
  .wh-heading h1 { font-size: 1.65rem; }
  .wh-heading p { max-width: 36ch; }
  .wh-heading-tools { padding-top: var(--wh-1); }
  .wh-heading-tools .wh-btn:first-child { display: none; }
  .wh-heading-tools .wh-btn { font-size: 0 !important; padding: 10px; min-width: 40px; min-height: 40px; }
  .wh-heading-tools .wh-btn svg { width: 19px; height: 19px; }
  .wh-launch { margin-bottom: var(--wh-5); }
  .wh-launch button { flex-direction: column; align-items: flex-start; padding: var(--wh-4) var(--wh-3); gap: var(--wh-2); }
  .wh-launch small { display: none; }
  .wh-launch .wh-launch-symbol { width: 21px; height: 21px; }
  .wh-launch strong { font-size: var(--wh-xs); }
  .wh-library-nav { gap: var(--wh-5); margin-right: -16px; padding-right: 16px; }
  .wh-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--wh-2); margin-bottom: var(--wh-5); }
  .wh-toolbar .wh-search { grid-column: 1/-1; min-width: 0; }
  .wh-select { width: 100%; min-width: 0; max-width: none; padding: 0 var(--wh-2); height: 40px; font-size: var(--wh-xs); }
  .wh-layout { margin-left: auto; justify-self: end; }
  .wh-cover-shared > span { display: none; }
  .wh-grid, .wh-loading { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--wh-3); }
  .wh-project-info { padding: var(--wh-3) var(--wh-2) var(--wh-2); }
  .wh-project-title { font-size: var(--wh-xs) !important; }
  .wh-project-bottom { flex-wrap: wrap; gap: 0; }
  .wh-open-project { margin-left: auto; }
  .wh-project-actions .wh-icon-btn { width: 30px; height: 30px; }
  .wh-project-actions .wh-cover-edit { display: none; }
  .wh-section-head h2 { font-size: 1.05rem; }
  .wh-section-label { gap: var(--wh-2); }
  .wh-space-grid { grid-template-columns: 1fr; }
  .wh-later { grid-template-columns: 1fr; gap: var(--wh-3); }
  .wh-later-card { padding: var(--wh-4); gap: var(--wh-3); }
  .wh-foot { align-items: flex-start; flex-direction: column; gap: var(--wh-2); }
  .wh-list .wh-project { padding: var(--wh-2); }
  .wh-list .wh-cover { width: 66px; height: 74px; }
  .wh-list .wh-project-info { padding-left: var(--wh-3); padding-right: 37px; }
  .wh-list .wh-project-actions { right: var(--wh-2); }
  .wh-list .wh-project-bottom { max-width: none; }
  .wh-empty { flex-wrap: wrap; gap: var(--wh-3); padding: var(--wh-5); }
  .wh-empty .wh-btn { margin-left: 0; }
  .wh-empty > svg { width: 24px; height: 24px; }
  .vx-dialog { inset: 0; margin: 0; height: 100dvh; width: 100vw; border-radius: 0; border: 0; }
  .wh-detail-top { padding: var(--wh-4); }
  .wh-detail-body { padding: var(--wh-4); }
  .wh-detail-tabs { padding-inline: var(--wh-4); gap: var(--wh-4); }
  .wh-dialog-head { padding: var(--wh-2) var(--wh-4); }
  .wh-detail-title-row h2 { font-size: 1.2rem; }
  .wh-asset-grid { gap: var(--wh-2); }
  .wh-asset-grid .wh-entry-media { height: 120px; }
  .vx-viewer { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .wh-viewer-layout { display: flex; flex-direction: column; overflow-y: auto; }
  .wh-viewer-media { flex: 0 0 56dvh; min-height: 200px; padding: 8px; }
  .wh-viewer-info { border-left: 0; border-top: 1px solid var(--wh-line); overflow-y: visible; }
  .wh-viewer-media img, .wh-viewer-media video { max-height: 100%; }
  .vx-small-dialog[data-mode="cover"] { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .wh-cover-intro { padding: 12px 16px 8px; }
  .wh-cover-intro h2 { font-size: 17px; }
  .wh-cover-intro p { font-size: 12px; }
  .wh-cover-toolbar { padding: 0 16px 10px; gap: 8px; }
  .wh-cover-upload { padding: 7px 9px; font-size: 12px; }
  .wh-cover-workspace { display: flex; flex-direction: column; }
  .wh-cover-preview-panel { order: 0; flex: 0 0 min(34dvh,280px); border-left: 0; border-bottom: 1px solid var(--wh-line); }
  .wh-cover-preview-head { padding: 0 12px; height: 38px; }
  .wh-cover-preview-head .wh-icon-btn { width: 32px; height: 32px; min-width: 32px; }
  .wh-cover-preview { padding: 6px; }
  .wh-cover-preview-caption { padding: 7px 12px; }
  .wh-cover-preview-caption > span { -webkit-line-clamp: 1; font-size: 12px; }
  .wh-cover-preview-caption > small { display: none; }
  .wh-cover-browser { order: 1; flex: 1; }
  .wh-cover-scroll { padding: 12px; }
  .wh-cover-scroll .wh-cover-options { gap: 8px; }
  .wh-cover-footer { padding: 10px 12px 12px; }
  .wh-cover-footer .wh-inline-status { font-size: 11px; margin-bottom: 6px; }
  .wh-cover-footer-actions { gap: 6px; flex-wrap: wrap; }
  .wh-cover-footer-actions .wh-btn { font-size: 12px; padding: 8px 9px; min-height: 36px; }
  .wh-cover-footer-actions [data-action="automatic-cover"] { font-size: 11px; }
  .wh-cover-footer-actions [data-action="automatic-cover"] svg { display: none; }
  .wh-cover-footer-actions #wh-cover-save { flex: 1 0 100%; justify-content: center; }
  .wh-icon-btn { min-width: 40px; height: 40px; }
  .wh-detail-actions .wh-btn { flex: 1; padding-inline: var(--wh-3); }
  .wh-breadcrumb { gap: var(--wh-2); font-size: var(--wh-xs); }
}
@media (max-height: 680px) and (min-width: 769px) {
  .vx-small-dialog[data-mode="cover"] > .wh-dialog-head { padding-block: 8px; }
  .wh-cover-intro { padding: 10px 20px 8px; }
  .wh-cover-intro h2 { font-size: 18px; margin: 0; }
  .wh-cover-intro p { display: none; }
  .wh-cover-toolbar { padding: 0 20px 10px; }
  .wh-cover-preview-head { height: 40px; padding-block: 0; }
  .wh-cover-preview-head .wh-icon-btn { width: 32px; height: 32px; }
  .wh-cover-preview-caption { display: none; }
  .wh-cover-footer { padding: 8px 20px 12px; }
}
@media (max-height: 620px) and (max-width: 768px) {
  .wh-cover-intro { padding-block: 8px; }
  .wh-cover-intro p { display: none; }
  .wh-cover-preview-panel { flex-basis: 170px; }
  .wh-cover-preview-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-home *, .vx-dialog *, .vx-viewer *, .vx-small-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 960px) {
  .wh-topbar { flex-wrap: wrap; gap: 8px; }
  .wh-topbar-right { margin-left: auto; }
  .wh-topbar-links { order: 4; width: 100%; margin: 0; justify-content: flex-end; padding-top: 4px; gap: 16px; }
}
@media (max-width: 600px) {
  .wh-topbar-links { justify-content: space-between; gap: 12px; }
  .wh-topbar .wh-header-plans { flex: 1; max-width: 230px; min-height: 44px; }
  .wh-header-discord { padding: 0 8px; min-height: 44px; }
}
