/* The shell stays mounted; only the active editor receives interaction. */
.workspace-view { animation:none; }
.plugin-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr)); align-items:start; gap:16px; }
.plugin-grid>.plugin-card { display:flex; flex-direction:column; width:100%; max-width:360px; min-width:0; padding:0; border:1px solid #bdced0; border-radius:8px; text-align:left; color:#243e45; background:#fff; }
.plugin-grid>.plugin-card:hover { border-color:#658f8c; }
.plugin-grid>.plugin-card:focus-visible { outline:2px solid #187f83; outline-offset:3px; }
.plugin-grid .plugin-cover { flex-shrink:0; height:112px; width:100%; overflow:hidden; background:#eaf0f0; }
.plugin-grid .plugin-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.plugin-grid .panel-padding { display:grid; gap:8px; width:100%; min-width:0; padding:16px; }
.plugin-grid .pill { justify-self:start; max-width:100%; overflow-wrap:anywhere; }
.plugin-grid h3 { font-size:15px; line-height:22px; height:44px; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.plugin-grid .line-clamp { font-size:13px; line-height:20px; height:40px; margin:0; color:#526b70; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.plugin-grid .spread { gap:8px; font-size:13px; line-height:20px; flex-wrap:wrap; }
.plugin-grid .spread b { color:#245d58; overflow-wrap:anywhere; }
.plugin-grid>.empty { grid-column:1/-1; }
@media(max-width:600px) {
 .plugin-grid>.plugin-card { display:grid; grid-template-columns:80px minmax(0,1fr); max-width:none; }
 .plugin-grid .plugin-cover { width:80px; height:100%; }
 .plugin-grid .panel-padding { padding:12px; gap:6px; }
 .plugin-grid h3 { height:auto; min-height:22px; }
}
.clarity .wallet-top { margin-left:auto; min-width:0; }
.top-asset { min-width:70px; }
.top-asset b { letter-spacing:0; overflow-wrap:anywhere; }
.topbar .account-menu { flex-shrink:0; }
.shell-main { padding:20px 28px 24px; }
.content[data-route="home"] .home-hero { height:210px; border:0; border-radius:0; background:#edf5f433; }
.content[data-route="home"] .hero-content { padding:32px 28px; }
.content[data-route="home"] .hero-content h2 { font-size:30px; letter-spacing:0; }
.content[data-route="home"] .hero-content p { font-size:14px; }
.content[data-route="home"] .hero-coordinate { letter-spacing:0; }
.content[data-route="home"] .section-head { margin:22px 0 12px; }
.content[data-route="home"] .quick-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.content[data-route="home"] .quick-card { border-radius:8px; min-height:144px; padding:18px 16px; }
.content[data-route="home"] .quick-card h3 { font-size:14px; overflow-wrap:anywhere; }
.content[data-route="home"] .quick-card p { font-size:12px; margin-top:6px; }
.home-notices { display:flex; align-items:center; gap:18px; margin-top:24px; padding:18px 0; border-top:1px solid #cbd7db; border-bottom:1px solid #cbd7db; }
.home-notices-label { display:flex; gap:8px; align-items:center; color:#40646a; flex-shrink:0; }
.home-notices-items { display:flex; gap:24px; flex:1; min-width:0; }
.home-notice { display:flex; align-items:center; gap:12px; min-width:0; text-align:left; }
.home-notice span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-notice time { font-size:11px; color:#596d74; flex-shrink:0; }
.home-notices-empty { color:#596d74; }
.editor-toolbar { display:flex; justify-content:flex-end; gap:10px; margin:0 0 12px; min-height:34px; }
.content[data-route="image"] .live-studio,.content[data-route="video"] .live-studio { gap:18px; grid-template-columns:minmax(320px,400px) minmax(0,1fr); }
.content[data-route="image"] .live-studio>*,.content[data-route="video"] .live-studio>* { min-width:0; }
.content[data-route="image"] .panel,.content[data-route="video"] .panel { border-radius:8px; }
.content[data-route="image"] .form-stack,.content[data-route="video"] .form-stack { gap:12px; }
.image-model-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.image-model-options>label { min-width:0; display:grid; gap:8px; }
.image-model-options select { width:100%; }
.content[data-route="image"] .tracker-heading h2,.content[data-route="video"] .tracker-heading h2 { font-size:16px; letter-spacing:0; }
.canvas-workspace-frame { display:block; width:100%; height:calc(100dvh - var(--top) - 44px); border:0; background:#eef4f4; }
.shell-main:has(> #route-content[data-route="canvas"])>.footer { display:none; }
.canvas-focus { overflow:hidden; }
.canvas-focus .sidebar,.canvas-focus .topbar,.canvas-focus .shell-main>.footer { display:none; }
.canvas-focus .shell-main { margin:0; padding:0; min-height:100dvh; }
.canvas-focus #route-content { max-width:none; margin:0; width:100%; height:100dvh; }
.canvas-focus .canvas-workspace-frame { width:100%; height:100dvh; }
.canvas-floating-nav { position:fixed; width:48px; height:48px; z-index:80; }
.canvas-nav-ball { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; border:1px solid #8eaaa8; background:#fff; box-shadow:0 3px 16px #244f4929; touch-action:none; cursor:grab; user-select:none; }
.canvas-nav-ball:active { cursor:grabbing; }
.canvas-nav-ball img { width:30px; height:30px; pointer-events:none; }
.canvas-nav-menu { position:absolute; width:min(280px,calc(100vw - 24px)); max-height:calc(50dvh - 32px); overflow-y:auto; overscroll-behavior:contain; border:1px solid #aac0be; border-radius:8px; padding:14px; box-shadow:0 8px 32px #243b422b; background:#fff; }
.canvas-nav-menu>strong { font-size:14px; }
.canvas-nav-menu>p { font-size:12px; color:#526b70; margin:6px 0 10px; overflow-wrap:anywhere; }
.canvas-nav-menu nav,.canvas-nav-tools { display:grid; gap:2px; }
.canvas-nav-menu button { display:flex; gap:10px; align-items:center; width:100%; padding:10px 8px; text-align:left; border-radius:5px; font-size:13px; }
.canvas-nav-menu button:hover { background:#eaf4f1; }
.canvas-nav-tools { border-top:1px solid #d6e2df; margin-top:8px; padding-top:8px; }
@media(min-width:1001px) {
 .shell-main:has(> #route-content:is([data-route="image"],[data-route="video"])) { height:calc(100dvh - var(--top)); overflow:hidden; }
 .shell-main:has(> #route-content:is([data-route="image"],[data-route="video"]))>.footer { display:none; }
 #route-content:is([data-route="image"],[data-route="video"]) { height:100%; display:flex; flex-direction:column; min-height:0; }
 #route-content:is([data-route="image"],[data-route="video"])>.live-studio { flex:1; min-height:0; }
 #route-content:is([data-route="image"],[data-route="video"])>.live-studio>* { max-height:100%; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
 #route-content:is([data-route="image"],[data-route="video"]) .form-stack>.dialog-actions { position:sticky; bottom:-22px; z-index:2; padding:12px 0 16px; margin:0; background:#fff; border-top:1px solid #cad8d7; }
 #route-content:is([data-route="image"],[data-route="video"]) .form-stack>.dialog-actions button { width:100%; min-height:40px; }
 #route-content:is([data-route="image"],[data-route="video"]) .form-stack textarea { min-height:120px; }
 .content[data-route="home"]+.footer { margin:22px 0 0; }
}
@media(max-width:1000px) {
 .content[data-route="home"] .quick-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .content[data-route="image"] .live-studio,.content[data-route="video"] .live-studio { grid-template-columns:minmax(0,1fr); }
 .home-notices-items { flex-wrap:wrap; gap:12px; }
}
@media(max-width:720px) {
 .shell-main { padding:16px; }
 .content[data-route="home"] .home-hero { height:196px; }
 .content[data-route="home"] .hero-content { padding:28px 18px; }
 .content[data-route="home"] .hero-content h2 { font-size:25px; }
 .content[data-route="home"] .hero-content p { font-size:13px; max-width:none; }
 .content[data-route="home"] .hero-coordinate { display:none; }
 .content[data-route="home"] .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .content[data-route="home"] .quick-card { min-height:145px; padding:16px 13px; }
 .home-notices { gap:12px; align-items:flex-start; }
 .home-notices-items { display:grid; gap:12px; }
 .home-notice time { display:none; }
 .topbar .notification { display:flex; grid-column:3; grid-row:1; }
 .topbar .account-menu { grid-column:4; grid-row:1; }
 .clarity .wallet-top { gap:10px; }
 .clarity .top-asset b { font-size:15px; }
 .top-asset { min-width:0; }
 .top-asset.eggs { padding-left:10px; }
 .wallet-actions .btn { padding:6px 8px; }
 .canvas-workspace-frame { height:calc(100dvh - var(--top) - 32px); }
}
.workspace-refreshing { position: relative; }
.workspace-refreshing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 2px;
  background: #187f83;
  animation: workspace-refresh-progress 1.4s ease-in-out infinite alternate;
}
@keyframes workspace-refresh-progress { to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .workspace-refreshing::after { animation: none; width: 100%; opacity: .5; }
}
