/* Domestic project/asset tabs; palette inherits the overseas workspace. */
.ym-workspace-section{width:100%;flex-shrink:0;margin:32px auto 0;text-align:left}
.ym-workspace-section [hidden]{display:none!important}
.ym-workspace-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;height:auto;min-height:32px;margin-bottom:14px;padding:0;border:0}
.ym-workspace-tabs{display:flex;align-items:center;gap:20px;font-size:14px;font-weight:600;line-height:18px}
.ym-workspace-tabs button{position:relative;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted,#7c8471);font:inherit;font-weight:500;line-height:inherit;cursor:pointer;transition:color 150ms ease}
.ym-workspace-tabs button:hover,.ym-workspace-tabs button[aria-selected=true]{color:var(--ink,#20221e)}
.ym-workspace-tabs button[aria-selected=true]{font-weight:650}
.ym-workspace-tabs button[aria-selected=true]::after{content:"";position:absolute;right:0;bottom:-4px;left:0;height:2px;border-radius:999px;background:var(--ink,#20221e)}
.ym-workspace-all{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted,#7c8471);font:inherit;font-size:11px;font-weight:550;line-height:16px;cursor:pointer}
.ym-workspace-all:hover{color:var(--ink,#20221e)}
.ym-workspace-all svg{width:15px;height:15px}
.ym-workspace-tabs button:focus-visible,.ym-workspace-all:focus-visible,.ym-workspace-project-open:focus-visible,.ym-workspace-project-details:focus-visible{outline:2px solid var(--character-accent,#55611b);outline-offset:4px}
.ym-workspace-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.ym-workspace-project-card{display:grid;align-content:start;gap:7px;min-width:0;min-height:160px;padding:10px;border:1px solid var(--line,#d7dbcb);border-radius:14px;background:var(--paper,#fff);color:var(--ink,#20221e);text-align:left;transition:transform 150ms ease,border-color 150ms ease,box-shadow 150ms ease}
@media(hover:hover) and (pointer:fine){.ym-workspace-project-card:hover{transform:translateY(-1px);border-color:var(--line-strong,#c5cab7);box-shadow:0 2px 8px #0001}}
.ym-workspace-project-card.is-empty{border-style:dashed;background:transparent}
.ym-workspace-project-open{display:grid;align-content:start;gap:7px;width:100%;min-width:0;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.ym-workspace-project-cover{position:relative;display:grid;place-items:center;overflow:hidden;width:100%;aspect-ratio:16/10;border-radius:8px;background:radial-gradient(circle,#16171a12 1px,transparent 1.5px) 0 0/12px 12px,var(--paper,#f4f6ee)}
.ym-workspace-project-cover img{display:block;width:100%;height:100%;object-fit:cover}
.ym-workspace-project-cover em{width:40px;height:40px;border:2px dashed #16171a24;border-radius:999px}
.ym-workspace-style-badge{position:absolute;top:8px;left:8px;overflow:hidden;max-width:calc(100% - 16px);padding:4px 7px;border:1px solid #ffffffb8;border-radius:999px;background:#19161fb8;color:#fff;font-size:10px;font-weight:650;line-height:14px;text-overflow:ellipsis;white-space:nowrap;backdrop-filter:blur(8px)}
.ym-workspace-project-card strong{overflow:hidden;font-size:12px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.ym-workspace-project-card small{color:var(--muted,#7c8471);font-size:10px;line-height:15px}
.ym-workspace-project-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;margin-top:1px}
.ym-workspace-project-details{display:inline-flex;align-items:center;gap:5px;min-width:0;min-height:28px;padding:5px 8px;border:1px solid var(--line,#d7dbcb);border-radius:8px;background:var(--paper,#f4f6ee);color:var(--muted,#7c8471);font:inherit;font-size:10px;font-weight:600;cursor:pointer}
.ym-workspace-project-details span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ym-workspace-project-details svg{flex-shrink:0;width:14px;height:14px}
.ym-workspace-project-card .ym-workspace-project-options{flex-shrink:0;width:28px;height:28px}
.ym-workspace-section .character-assets-panel{margin-top:0}
@media(max-width:820px){.ym-workspace-section-head{align-items:flex-start}.ym-workspace-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ym-workspace-project-grid{grid-template-columns:1fr}.ym-workspace-tabs{gap:20px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.ym-workspace-tabs button,.ym-workspace-project-card{transition:none}.ym-workspace-project-card:hover{transform:none}}

/* A compact two-way switch; the moving surface stays mounted when retargeted. */
.ym-character-workspace .character-mode-tabs{position:relative;isolation:isolate;display:grid;flex-shrink:0;grid-template-columns:1fr 1fr;gap:0;box-sizing:border-box;width:min(280px,100%);height:40px;margin:0 auto 20px;padding:3px;border:0;border-radius:999px;background:#e9ebe7;box-shadow:none}
.ym-character-workspace .character-mode-indicator{position:absolute;z-index:0;top:3px;left:3px;width:calc(50% - 3px);height:calc(100% - 6px);border-radius:999px;background:#191b17;pointer-events:none;transform:translateX(0);transition:none}
.ym-character-workspace .character-mode-tabs[data-mode="character"] .character-mode-indicator{transform:translateX(100%)}
.ym-character-workspace .character-mode-tabs[data-motion="on"] .character-mode-indicator{transition:transform 220ms cubic-bezier(.32,.72,0,1)}
.ym-character-workspace .character-mode-tabs button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:34px;margin:0;padding:0 10px;border:0;border-radius:999px;background:transparent;color:#555b50;box-shadow:none;font:inherit;font-size:12px;font-weight:550;line-height:1;white-space:nowrap;cursor:pointer;transform:none}
.ym-character-workspace .character-mode-tabs button[aria-pressed="true"]{background:transparent;color:#fff;box-shadow:none}
.ym-character-workspace .character-mode-tabs[data-motion="on"] button{transition:color 160ms ease}
.ym-character-workspace .character-mode-tabs button:active{transform:none}
.ym-character-workspace .character-mode-tabs button:focus-visible{outline:2px solid #55611b;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.ym-character-workspace .character-mode-tabs[data-motion="on"] .character-mode-indicator,.ym-character-workspace .character-mode-tabs[data-motion="on"] button{transition:none}}
@media(forced-colors:active){.ym-character-workspace .character-mode-tabs{border:1px solid ButtonText;background:Canvas}.ym-character-workspace .character-mode-indicator{background:Highlight}.ym-character-workspace .character-mode-tabs button{color:ButtonText}.ym-character-workspace .character-mode-tabs button[aria-pressed="true"]{color:HighlightText}}
