/* Shared HeroUI refinements for the shell and contextual controls. */
html[data-design][data-navigation-mode='labels'] .sidebar .nav-link,
html[data-design][data-navigation-mode='labels'] .sidebar .nav-link:is(:hover,:focus-visible) { transform:none !important;--nav-scale:1; }
html[data-design][data-navigation-mode='labels'] .sidebar .nav-link :is(.nav-icon,.icon-svg) { transform:none !important; }
html[data-design][data-navigation-mode='labels'] .sidebar-nav { overflow-x:hidden; }
html[data-design][data-navigation-mode='labels'] .sidebar .nav-link > span:not(.nav-icon):not(.badge) { min-width:0;flex:1; }
html[data-design][data-navigation-mode='labels'] .motion-nav-tooltip { display:none !important; }
html[data-design][data-theme] .topbar .global-search.is-open,
html[data-design][data-theme] .motion-local-search.is-open { background:var(--appearance-bg) !important;border-color:var(--appearance-border);backdrop-filter:none; }
html[data-design][data-theme] .topbar .global-search :is(input,.motion-search-toggle,.motion-search-close) { color:var(--appearance-text) !important;background:transparent !important; }
html[data-design][data-theme] .topbar .global-search input::placeholder { color:var(--appearance-muted); }
html[data-design][data-theme] .motion-profile-menu { width:280px;padding:6px;border:1px solid var(--appearance-border);border-radius:14px;background:var(--appearance-bg);color:var(--appearance-text);backdrop-filter:none;box-shadow:0 4px 12px #0002; }
html[data-design][data-theme] .motion-profile-identity { padding:12px;margin-bottom:4px;border-bottom:1px solid var(--appearance-border);gap:4px; }
html[data-design][data-theme] .motion-profile-identity strong { font-size:14px;font-weight:600;color:var(--appearance-text); }
html[data-design][data-theme] .motion-profile-identity small { color:var(--appearance-muted);font-size:12px; }
html[data-design][data-theme] .motion-profile-menu > a,
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links :is(summary,a),
html[data-design][data-theme] .motion-profile-menu > form > button { display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border-radius:8px;color:var(--appearance-text);font-size:13px; }
html[data-design][data-theme] .motion-profile-menu .icon-svg { display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
html[data-design][data-theme] .motion-profile-menu > a:hover,
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links :is(summary,a):hover,
html[data-design][data-theme] .motion-profile-menu > form > button:hover { background:var(--appearance-plain); }
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links > summary { list-style:none;cursor:pointer; }
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links > summary::-webkit-details-marker { display:none; }
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links > summary > .icon-svg:last-child { margin-left:auto;transition:transform 250ms ease; }
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links[open] > summary > .icon-svg:last-child { transform:rotate(180deg); }
html[data-design][data-theme] .motion-profile-menu .profile-documents-list { display:grid;gap:2px;padding:2px 0 4px 16px; }
html[data-design][data-theme] .motion-profile-menu .profile-documents-list a { min-height:38px;font-size:12px;line-height:18px; }
html[data-design][data-theme] .motion-profile-menu .workspace-legal-links :is(summary,a):focus-visible { outline:2px solid var(--appearance-accent);outline-offset:-2px; }
@media(prefers-reduced-motion:reduce) { html[data-design][data-theme] .motion-profile-menu .workspace-legal-links > summary > .icon-svg:last-child { transition:none; } }
html[data-design][data-theme] .motion-profile-menu > form { border-top:1px solid var(--appearance-border); }
html[data-design][data-theme] .motion-profile-menu > form > button { color:#c20e4d; }
html[data-design][data-theme='dark'] .motion-profile-menu > form > button { color:#ff79a8; }
#workspace-appearance .appearance-title-copy,
#workspace-appearance legend,
#workspace-appearance .appearance-field-title { display:flex;align-items:center;gap:8px; }
#workspace-appearance .appearance-title-copy > .icon-svg,
#workspace-appearance legend > .icon-svg,
#workspace-appearance .appearance-field-title > .icon-svg { flex:none;width:18px;height:18px;color:var(--appearance-muted); }
#workspace-appearance .motion-opacity-number:focus-within { border-color:var(--appearance-accent);outline:2px solid var(--appearance-accent);outline-offset:2px; }
#workspace-appearance .motion-opacity-number input:is(:focus,:focus-visible) { outline:none !important;box-shadow:none !important; }
html[data-design][data-theme] .content .client-preview-flip-controls { width:100%;justify-content:stretch; }
html[data-design][data-theme] .content .client-preview-flip-controls [data-client-preview-flip] { display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--appearance-border);border-radius:12px;background:var(--appearance-plain);color:var(--appearance-accent-text);font-size:12px;line-height:20px;text-align:center; }
html[data-design][data-theme] .content .client-preview-flip-controls [data-flip-label] { flex:none;text-align:center; }
html[data-design][data-theme] .content .client-preview-flip-controls .icon-svg { position:static;flex:none;width:18px;height:18px;margin:0; }
html[data-design][data-theme] .content [data-chat-redesign] .chat-panel-toggle { height:50px;min-height:50px; }
html[data-design][data-theme] .content [data-chat-redesign] .message-bubble .message-actions > :is(button,details),
html[data-design][data-theme] .content [data-chat-redesign] .message-bubble .message-actions :is(button,summary):is(:hover,:focus-visible) { border-radius:8px; }
@media(max-width:760px) {
  html[data-design][data-theme] .content [data-chat-redesign] .chat-panel-toggle { height:44px;min-height:44px; }
  html[data-design][data-theme] .content [data-chat-redesign] .messaging-tabs { height:44px;min-height:44px; }
}
