/* Native app v2 owns navigation and input. All overrides require the versioned app class. */
html.sovi-app-shell {
  --safe-top: 0px !important; --safe-bottom: 0px !important;
  --safe-left: 0px !important; --safe-right: 0px !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
html.sovi-app-shell body, html.sovi-app-shell #appRoot { height:100% !important; min-height:0 !important; }
html.sovi-app-shell #sidebar,
html.sovi-app-shell #backdrop,
html.sovi-app-shell #appRoot > main > header,
html.sovi-app-shell #appRoot > main > .mobile-input-pad,
html.sovi-app-shell #welcomeBlock,
html.sovi-app-shell .sovi-engagement-banner { display:none !important; }
html.sovi-app-shell #messages { padding-bottom:12px !important; }
html.sovi-app-shell #messages > div { padding-top:20px !important; padding-bottom:20px !important; }
html.sovi-app-shell #appRoot > main { width:100%; min-width:0; }
html.sovi-app-shell .sl-root,
html.sovi-app-shell .sf-root,
html.sovi-app-shell .sc-detail {
  position:fixed; inset:0;
  width:calc(100vw / var(--sovi-type-zoom,1));
  height:calc(100vh / var(--sovi-type-zoom,1));
}
html.sovi-app-shell :is(#userCenterModal,#memoryDrawer,.sl-root,.sf-root) :is(button,summary,select,input:not([type="checkbox"]):not([type="radio"])) {
  min-height:max(44px,calc(44.25px / var(--sovi-type-zoom,1))) !important;
  min-width:calc(44.25px / var(--sovi-type-zoom,1)) !important;
}
html.sovi-app-shell .sl-backdrop,
html.sovi-app-shell .sc-detail-backdrop { display:none; }
html.sovi-app-shell .sl-panel,
html.sovi-app-shell .sc-detail-sheet { width:100% !important; max-width:none !important; border-radius:0; box-shadow:none; transform:none !important; }
html.sovi-app-shell .sl-head,
html.sovi-app-shell .sc-detail-head { padding-top:10px; }
/* Inline learning opened from an answer has no native route to pop. Keep its exit available. */
html.sovi-app-shell .sl-head { grid-template-columns:44px 1fr 44px; }
html.sovi-app-shell .sl-head .sl-icon { width:44px; height:44px; }
html.sovi-app-shell .sl-root {
  --sl-brand:var(--primary); --sl-ink:var(--ink); --sl-muted:var(--ink-soft); --sl-line:var(--line);
  --sl-bg:var(--paper); --sl-soft:var(--card); --sl-panel:var(--paper);
}
html.sovi-app-shell[data-sovi-workspace="tool"] #appRoot > main { visibility:hidden; }
html.sovi-app-shell[data-sovi-workspace="tool"] #toolsScrim { display:none !important; }
html.sovi-app-shell[data-sovi-workspace="tool"] #toolsPane {
  position:fixed !important; inset:0 !important; width:100% !important; max-width:none !important;
  height:100% !important; max-height:100% !important;
  flex:none !important; margin:0 !important; border:0 !important; padding:0 !important; box-shadow:none !important;
  background:var(--paper) !important; z-index:45 !important;
}
html.sovi-app-shell[data-sovi-workspace="tool"] .tp-header,
html.sovi-app-shell[data-sovi-workspace="tool"] .tp-tabbar { display:none !important; }
html.sovi-app-shell[data-sovi-workspace="tool"] .tp-content {
  padding:16px !important; max-width:760px; width:100%; margin:0 auto; box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
}
html.sovi-app-shell[data-sovi-workspace="tool"] .tp-canvas-wrap,
html.sovi-app-shell[data-sovi-workspace="tool"] .tp-canvas-wrap canvas {
  touch-action:none !important; -webkit-user-select:none !important; user-select:none !important; -webkit-touch-callout:none !important;
}
html.sovi-app-shell .tp-icon-btn svg {
  width:18px; height:18px; display:block; pointer-events:none;
}
html.sovi-app-shell[data-sovi-workspace="settings"] #userCenterModal { padding:0 !important; background:var(--paper) !important; backdrop-filter:none !important; }
html.sovi-app-shell[data-sovi-workspace="settings"] #userCenterModal > div {
  width:100% !important; max-width:none !important; height:100% !important; max-height:100% !important;
  border-radius:0 !important; border:0 !important; box-shadow:none !important; background:var(--paper) !important;
}
html.sovi-app-shell:not(.sovi-business-shell)[data-sovi-workspace="settings"] #userCenterModal > div > div:first-child,
html.sovi-app-shell:not(.sovi-business-shell)[data-sovi-workspace="settings"] #userCenterModal #ucPrefsHeading,
html.sovi-app-shell:not(.sovi-business-shell)[data-sovi-workspace="settings"] #userCenterModal .uc-group,
html.sovi-app-shell:not(.sovi-business-shell)[data-sovi-workspace="settings"] #userCenterModal #ucNativeAccount,
html.sovi-app-shell:not(.sovi-business-shell)[data-sovi-workspace="settings"] #userCenterModal button[onclick="logout()"] { display:none !important; }
@media (prefers-reduced-motion:reduce) {
  html.sovi-app-shell .sl-panel, html.sovi-app-shell .sc-detail-sheet { transition:none; }
}

/* Hide a card close button only after a native route has supplied its own back button. */
html.sovi-app-shell .sc-detail[data-native-navigation="true"] .sc-detail-close { display:none; }
html.sovi-app-shell .sc-detail-close { width:44px; height:44px; }
/*The native learning root already supplies its title and back control. Inner lesson navigation stays available. */
html.sovi-app-shell[data-sovi-workspace="learn"] .sl-root[data-view="home"] .sl-head,
html.sovi-app-shell:is([data-sovi-workspace="plan"],[data-sovi-workspace="card"]) .sl-root[data-view="overview"] .sl-head,
html.sovi-app-shell :is(.sl-lab-out,.sf-lab-out) { display:none !important; }
html.sovi-app-shell .tp-bitstrip { grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); }
html.sovi-app-shell .tp-swatch { width:44px; height:44px; padding:8px !important; background-clip:content-box !important; box-sizing:border-box; }
html.sovi-app-shell .sl-body, html.sovi-app-shell .sc-detail-sheet { -webkit-overflow-scrolling:touch; }
html.sovi-app-shell .sl-learning-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
html.sovi-app-shell .sl-learning-summary button { min-width:0; overflow-wrap:anywhere; }
html.sovi-app-shell.sovi-type-narrow .sl-learning-summary { grid-template-columns:minmax(0,1fr); }
html.sovi-app-shell.sovi-type-narrow .sl-root[data-view="home"] :is(.sl-sec,.sf-home-host) { padding:10px; overflow-wrap:anywhere; }
html.sovi-app-shell.sovi-type-narrow :is(.sl-sec-h,.sf-sec-h,.sf-cta-inline,.sl-home-ask) { flex-wrap:wrap; overflow-wrap:anywhere; }
html.sovi-app-shell.sovi-type-narrow .sl-home-ask { max-width:100%; }
html.sovi-app-shell.sovi-type-narrow .sf-source { flex-wrap:wrap; }
html.sovi-app-shell.sovi-type-narrow .sf-source .sf-folder-t { flex-basis:100%; overflow-wrap:anywhere; }
html.sovi-app-shell.sovi-type-narrow .sf-source .sf-folder-t :is(b,span) { white-space:normal; overflow-wrap:anywhere; }
html.sovi-app-shell .sc-detail-sheet { height:100%; max-height:100%; padding-top:16px; overflow:auto; }

html.sovi-app-shell[data-sovi-workspace="settings"] #userCenterModal button[onclick="closeUserCenter()"] { display:none; }

/* The native shell is fixed; only content-specific scrollers may move sideways. */
html.sovi-app-shell, html.sovi-app-shell body, html.sovi-app-shell #appRoot {
  width:100%; max-width:100%; min-width:0; overflow-x:clip; overscroll-behavior-x:none;
}
html.sovi-app-shell #appRoot > main { max-width:100%; min-width:0; }
html.sovi-app-shell #messages { width:100%; max-width:100%; min-width:0; overflow-x:hidden; overscroll-behavior-x:none; }
html.sovi-app-shell #messages > div, html.sovi-app-shell #messageList,
html.sovi-app-shell .msg-row, html.sovi-app-shell .markdown-content { max-width:100%; min-width:0; }
html.sovi-app-shell .markdown-content { overflow-wrap:anywhere; }
html.sovi-app-shell #memoryDrawer { display:none !important; }
html.sovi-app-shell .table-scroll, html.sovi-app-shell .katex-display,
html.sovi-app-shell .mermaid-viewport, html.sovi-app-shell pre { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }

/* v3 reuses the browser's live business surfaces; v2 keeps the legacy hidden chrome. */
html.sovi-business-shell[data-sovi-workspace="home"] #welcomeBlock { display:block !important; }
html.sovi-business-shell[data-sovi-workspace="home"] #messageList { display:none !important; }
html.sovi-business-shell[data-sovi-workspace="history"] #sidebar {
  display:flex !important; position:relative !important; inset:auto !important;
  width:100% !important; max-width:none !important; transform:none !important;
  visibility:visible !important; border:0; z-index:auto;
}
html.sovi-business-shell[data-sovi-workspace="history"] #appRoot > main,
html.sovi-business-shell[data-sovi-workspace="history"] #sidebar > div:first-child,
html.sovi-business-shell[data-sovi-workspace="history"] #sidebar > div:last-child,
html.sovi-business-shell[data-sovi-workspace="history"] #soviLearnEntry,
html.sovi-business-shell[data-sovi-workspace="history"] #helpNav,
html.sovi-business-shell[data-sovi-workspace="history"] #sidebarSupportLinks { display:none !important; }
html.sovi-business-shell[data-sovi-workspace="history"] #recentHeading {
  position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:normal;
}
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item { min-height:52px; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item-btn { min-height:44px; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-more-btn-trigger,
html.sovi-business-shell[data-sovi-workspace="history"] #convBatchToolbar button { min-width:44px !important; min-height:44px !important; display:inline-flex !important; align-items:center; justify-content:center; }
html.sovi-business-shell[data-sovi-workspace="memories"] #memoryDrawer {
  display:flex !important; inset:0 !important; width:100% !important;
  max-width:none !important; transform:none !important; border:0;
}
html.sovi-business-shell[data-sovi-workspace="memories"] #memoryDrawer button[onclick="toggleMemory()"] { display:none; }
html.sovi-business-shell[data-sovi-workspace="memories"] #memoryDrawer button { min-width:44px; min-height:44px; }
html.sovi-business-shell[data-sovi-workspace="memories"] #memoryList > div > .font-mono-d { flex-wrap:wrap; overflow-wrap:anywhere; }
html.sovi-business-shell[data-sovi-workspace="memories"] #memoryList :is(.surface,p,span,div) { min-width:0; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
html.sovi-business-shell.sovi-type-narrow[data-sovi-workspace="memories"] #memoryList { padding:8px !important; }
html.sovi-business-shell.sovi-type-narrow[data-sovi-workspace="memories"] #memoryList .surface { padding:8px !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal {
  padding:0 !important; background:var(--paper) !important; backdrop-filter:none !important;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal > div {
  width:100% !important; max-width:none !important; height:100% !important; max-height:100% !important;
  border-radius:0 !important; border:0 !important; box-shadow:none !important; background:var(--paper) !important;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal > div > div:first-child,
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal button[onclick="closeUserCenter()"] { display:none !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"],[data-sovi-workspace="memories"],[data-sovi-workspace="learn"],[data-sovi-workspace="plan"],[data-sovi-workspace="card"],[data-sovi-workspace="folders"],[data-sovi-workspace="folder"],[data-sovi-workspace="folder-upload"],[data-sovi-workspace="material"],[data-sovi-workspace="game"]) #appRoot > main { visibility:hidden; }
html.sovi-business-shell[data-sovi-workspace="home"] #nativeHomeActions { display:flex !important; }
#nativeHomeActions { gap:8px; flex-wrap:wrap; margin:20px 0; }
#nativeHomeActions button { min-height:44px; padding:8px 14px; border:1px solid var(--line); color:var(--ink); background:var(--card); }
html.sovi-business-shell #memoryList,
html.sovi-business-shell #userCenterModal { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
/* The native bar titles the tool and owns Back; only the page's tool tabs remain. */
html.sovi-business-shell[data-sovi-workspace="tool"] #toolsPane .tp-tabbar { display:flex !important; }
html.sovi-business-shell .sf-root:not(.is-open) { visibility:hidden; }

/* Native reading surfaces share one motion rhythm. Color remains owned by the theme. */
html.sovi-app-shell {
  --sovi-motion-enter:280ms;
  --sovi-motion-press:130ms;
  --sovi-motion-ease:cubic-bezier(.2,.8,.2,1);
}
html.sovi-app-shell body {
  font-family:-apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", sans-serif;
  background-image:none;
}
html.sovi-app-shell #messages > div { padding-inline:20px; }
html.sovi-app-shell .msg-row { gap:10px; }
html.sovi-app-shell .msg-row > .ai-avatar { width:24px; height:24px; margin-top:3px; }
html.sovi-app-shell .ai-avatar.thinking,
html.sovi-app-shell .ai-avatar.thinking * { animation:none !important; box-shadow:none; }
html.sovi-app-shell .ai-thinking-dots > span { animation:sovi-native-wait 1200ms ease-in-out infinite !important; }
html.sovi-app-shell .ai-thinking-dots > span:nth-child(2) { animation-delay:160ms !important; }
html.sovi-app-shell .ai-thinking-dots > span:nth-child(3) { animation-delay:320ms !important; }
html.sovi-app-shell .markdown-content { font-size:15px; line-height:1.75; }
html.sovi-app-shell .markdown-content :is(h1,h2,h3) { letter-spacing:-.025em; }
html.sovi-app-shell [data-role="user"] > .surface-cinema {
  border:0; border-radius:18px 18px 5px 18px; box-shadow:none; padding:12px 16px;
  background:var(--paper-2) !important;
}
html.sovi-app-shell [data-role="user"] > .surface-cinema > div { font-size:15px; font-weight:400; }
html.sovi-app-shell .msg-row { flex-wrap:wrap; }
html.sovi-app-shell [data-role="user"] { position:relative; padding-bottom:45px; }
html.sovi-app-shell .msg-actions {
  position:static; opacity:1; order:5; flex-basis:100%; margin:0 0 0 34px;
}
html.sovi-app-shell .copy-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:0;
  min-height:44px; min-width:44px; padding:8px; border:0; border-radius:10px;
  font:500 12px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing:0; background:transparent; box-shadow:none; text-transform:none;
}
html.sovi-app-shell .copy-btn > span { display:none; }
html.sovi-app-shell .copy-btn svg { width:16px; height:16px; flex:none; margin:0; }
html.sovi-app-shell .copy-btn.ok { background:var(--primary-soft); color:var(--primary-strong); }
html.sovi-app-shell .user-copy-btn { position:absolute; right:0; bottom:0; opacity:1; margin:0; }
html.sovi-app-shell :is(button,summary,a) { touch-action:manipulation; }
html.sovi-app-shell :is(button,summary):focus-visible {
  outline:2px solid var(--primary); outline-offset:3px;
}
html.sovi-app-shell :is(.btn-primary,.pbl-check,.sovi-check-button,.sovi-remember-button) {
  box-shadow:none; transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),background-color 160ms ease;
}
html.sovi-app-shell :is(.btn-primary,.pbl-check,.sovi-check-button,.sovi-remember-button):is(:hover,:active) { box-shadow:none; }
html.sovi-app-shell :is(.btn-primary,.pbl-check,.sovi-check-button,.sovi-remember-button):active:not(:disabled) { transform:scale(.98); }
html.sovi-app-shell :is(.icon-btn,.aha-capsule,#suggestions button,.help-shortcut):active:not(:disabled) { transform:scale(.985); }
html.sovi-app-shell .sovi-answer-arrival { animation:sovi-native-answer var(--sovi-motion-enter) var(--sovi-motion-ease) both; }
@keyframes sovi-native-answer { from { opacity:.25; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes sovi-native-wait { 0%,70%,100% { opacity:.3; } 35% { opacity:1; } }

/* Home presents two destinations first, then quiet utility rows and real examples. */
html.sovi-business-shell[data-sovi-workspace="home"] #welcomeBlock { display:flex !important; flex-direction:column; }
html.sovi-business-shell #soviInsightSignature { display:none; }
html.sovi-business-shell #welcomeBlock > .fade-up { order:0; }
html.sovi-business-shell #welcomeTitle {
  margin:8px 0 4px; font:650 30px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing:-.035em; overflow-wrap:anywhere;
}
html.sovi-business-shell #upcomingStrip:empty { display:none; }
html.sovi-business-shell[data-sovi-workspace="home"] #nativeHomeCamera {
  order:1; display:flex !important; align-items:center; gap:12px; width:100%; min-height:56px;
  padding:12px 16px; margin-top:22px; border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius:16px; color:var(--primary-strong); background:var(--primary-soft);
  font:600 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  text-align:left; touch-action:manipulation;
  transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),background-color 160ms ease;
}
html.sovi-business-shell #nativeHomeCamera > svg { width:22px; height:22px; flex:none; }
html.sovi-business-shell #nativeHomeCamera > span:first-of-type { flex:1; }
html.sovi-business-shell #nativeHomeCamera > span:last-child { font-size:22px; color:var(--primary); font-weight:400; }
html.sovi-business-shell #nativeHomeCamera:active { transform:scale(.985); }
html.sovi-business-shell[data-sovi-workspace="home"] #nativeHomeActions {
  order:2; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; margin:12px 0 8px;
}
html.sovi-business-shell #nativeHomeActions button {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  min-width:0; min-height:50px; padding:10px 2px; text-align:left; border:0;
  border-bottom:1px solid var(--line); border-radius:0; background:transparent;
  font:500 13px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  transition:background-color 160ms ease,transform var(--sovi-motion-press) var(--sovi-motion-ease);
}
html.sovi-business-shell #nativeHomeActions button::after { content:'›'; font-size:20px; font-weight:400; color:var(--ink-faint); }
html.sovi-business-shell #nativeHomeActions button:nth-child(-n+2) {
  min-height:88px; padding:18px 16px; margin-bottom:10px; background:var(--card);
  border:1px solid var(--line); border-radius:18px; font-size:17px; font-weight:650; letter-spacing:-.025em;
}
html.sovi-business-shell #nativeHomeActions button:first-child {
  color:var(--primary-strong); background:var(--primary-soft); border-color:color-mix(in srgb,var(--primary) 22%,var(--line));
}
html.sovi-business-shell #nativeHomeActions button:active { transform:scale(.985); background:var(--paper-2); }
html.sovi-business-shell #welcomeBlock > .sovi-home-controls { order:3; margin:14px 0 6px; }
html.sovi-business-shell .sovi-home-refresh { min-height:44px; min-width:44px; background:transparent; box-shadow:none; border:0; }
html.sovi-business-shell .sovi-home-refresh::after { content:attr(aria-label); }
html.sovi-business-shell .sovi-home-refresh:hover { transform:none; box-shadow:none; }
html.sovi-business-shell #suggestions { order:4; margin-top:0; display:grid; grid-template-columns:1fr; gap:0; }
html.sovi-business-shell #suggestions button {
  min-height:72px; padding:14px 0; border:0; border-bottom:1px solid var(--line); border-radius:0;
  background:transparent; box-shadow:none; animation:none;
}
html.sovi-business-shell #suggestions button:hover { transform:none; box-shadow:none; background:transparent; }
html.sovi-business-shell .sovi-home-icon { width:32px; height:32px; border-radius:10px; border:0; }
html.sovi-business-shell .sovi-home-card-title { font-size:14px; line-height:1.5; }
html.sovi-business-shell #soviDailyGoal {
  order:5; margin:28px 0 8px; padding:12px; gap:10px; border:0; border-radius:16px;
  background:var(--paper-2); box-shadow:none; animation:none;
}
html.sovi-business-shell .sovi-companion { width:44px; flex-basis:44px; min-height:44px; }
html.sovi-business-shell .sovi-companion img { height:50px; animation:none; }
html.sovi-business-shell .sovi-goal-title { font-size:12px; font-weight:550; }
html.sovi-business-shell .sovi-goal-count { font-size:12px; }
html.sovi-business-shell .sovi-goal-hint { margin:3px 0 8px; font-size:11px; }
html.sovi-business-shell .sovi-goal-track { height:4px; box-shadow:none; }
html.sovi-business-shell .sovi-goal-fill { box-shadow:none; }
html.sovi-business-shell .sovi-sound-toggle { border:0; background:transparent; }
html.sovi-business-shell[data-sovi-workspace="history"] #sidebar { background:var(--paper); }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item { min-height:64px; border-radius:14px; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item .conv-actions { display:flex !important; position:static !important; padding:0 !important; background:transparent !important; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item .conv-edit-quick-btn { display:none !important; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item .conv-item-btn { margin-right:4px !important; }
html.sovi-business-shell[data-sovi-workspace="history"] .conv-item .conv-time { opacity:.7 !important; }
html.sovi-business-shell[data-sovi-workspace="history"] #convSearch { min-height:44px; font-size:16px; border-radius:12px; padding-right:48px !important; }
html.sovi-business-shell[data-sovi-workspace="history"] #convSearchClear:not(.hidden) { right:2px !important; display:inline-flex !important; align-items:center; justify-content:center; }
/* Business Profile: a quiet identity hero, floating usage card and HTML-owned subpages. */
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal * { box-sizing:border-box; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucBody {
  padding:20px max(20px,var(--safe-right)) calc(32px + var(--safe-bottom)) max(20px,var(--safe-left));
  background:var(--paper); overscroll-behavior:contain;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) [data-profile-page] {
  width:100%; max-width:620px; min-width:0; margin:0 auto;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) [data-profile-page][hidden] { display:none !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) [data-profile-page].is-active {
  animation:sovi-native-profile-enter var(--sovi-motion-enter) var(--sovi-motion-ease) both;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) [data-profile-page="home"].is-active {
  animation:none;
}
@keyframes sovi-native-profile-enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucProfileCard {
  position:relative; flex-wrap:wrap; gap:14px; min-height:152px; padding:24px 22px 46px;
  border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line)) !important; border-radius:26px;
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--primary) 18%,transparent) 0%,transparent 62%),linear-gradient(135deg,color-mix(in srgb,var(--primary) 12%,var(--card)),color-mix(in srgb,var(--primary) 3%,var(--card)) 60%,var(--card)) !important;
  box-shadow:0 20px 44px -28px color-mix(in srgb,var(--ink) 28%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucProfileCard > div:first-child { flex:1; min-width:0; gap:14px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAvatar {
  width:64px; height:64px; font-size:22px; font-weight:700; border-radius:50%;
  background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 22%,var(--card)),var(--primary-soft));
  color:var(--primary-strong);
  box-shadow:0 0 0 4px var(--card),0 0 0 5.5px color-mix(in srgb,var(--primary) 28%,var(--line)),0 8px 18px -8px color-mix(in srgb,var(--primary) 45%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucName { color:var(--ink); font-size:20px; font-weight:700; line-height:1.25; letter-spacing:-.025em; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucEmail { margin-top:4px; color:var(--ink-soft); font-size:12.5px; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucProfileCard .bg-emerald-50 {
  max-width:100%; white-space:normal; overflow-wrap:anywhere; padding:5px 11px; border-radius:999px; font-weight:600;
  border-color:color-mix(in srgb,#2e8563 26%,var(--line)) !important;
  color:color-mix(in srgb,#1f6e4f 85%,var(--ink)) !important; background:color-mix(in srgb,#2e8563 11%,var(--card)) !important;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAdminLink { min-height:44px; margin-left:0 !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection {
  position:relative; z-index:1; margin:-30px 10px 0; padding:14px 16px 16px;
  border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 75%,var(--line)); border-radius:22px; background:var(--card);
  box-shadow:0 16px 36px -24px color-mix(in srgb,var(--ink) 32%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection .uc-section-head { min-height:36px; margin-bottom:10px; flex-wrap:wrap; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection .uc-section-title { color:var(--ink-soft); font-size:12px; font-weight:650; letter-spacing:.03em; text-transform:uppercase; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaRefresh { min-width:44px; min-height:44px; padding:6px 12px; border-radius:999px; background:var(--primary-soft); color:var(--primary-strong); font-size:12.5px; font-weight:600; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection > .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection > .grid > div {
  min-width:0; padding:12px 12px 11px !important; border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important; border-radius:16px !important;
  background:color-mix(in srgb,var(--paper) 65%,var(--card)) !important; text-align:left !important;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection > .grid > div + div { border-left:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucQuotaAudioLabel,#ucQuotaImageLabel,#ucQuotaVideoLabel,#ucQuotaLearnLabel) {
  display:flex; align-items:center; justify-content:flex-start; min-height:20px; color:var(--ink-soft); font-size:11.5px; font-weight:550; line-height:1.35; overflow-wrap:anywhere;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucQuotaAudioVal,#ucQuotaImageVal,#ucQuotaVideoVal,#ucQuotaLearnVal) {
  margin-top:4px; color:var(--ink); font-size:16px; font-weight:700; letter-spacing:-.02em; white-space:nowrap;
}

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-menu { display:grid; gap:16px; margin-top:24px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-menu-group {
  overflow:hidden; border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)); border-radius:22px; background:var(--card);
  box-shadow:0 12px 28px -22px color-mix(in srgb,var(--ink) 28%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry {
  display:grid; grid-template-columns:44px minmax(0,1fr) 20px; align-items:center; gap:14px;
  width:100%; min-height:78px; padding:15px 18px; border:0; border-radius:0; color:var(--ink);
  background:transparent; text-align:left; transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),background-color 160ms ease;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry + .native-profile-entry { border-top:1px solid color-mix(in srgb,var(--line) 80%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry:active { background:var(--paper-2); transform:scale(.99); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry-text { display:grid; gap:3px; min-width:0; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry-text > span:first-child { font-size:16px; line-height:1.35; font-weight:650; letter-spacing:-.015em; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry-text > span:last-child { color:var(--ink-soft); font-size:12.5px; line-height:1.45; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-icon {
  display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; flex:none;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-icon svg { display:block; width:100%; height:100%; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry > .native-profile-icon:first-child {
  width:44px; height:44px; padding:10px; border-radius:14px; color:var(--primary-strong); background:var(--primary-soft);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 14%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="appearance"] > .native-profile-icon:first-child {
  color:#6d3fd1; background:color-mix(in srgb,#8c55f2 13%,var(--card));
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="response"] > .native-profile-icon:first-child {
  color:#b85a14; background:color-mix(in srgb,#e57c23 14%,var(--card));
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="email"] > .native-profile-icon:first-child {
  color:#1d6b52; background:color-mix(in srgb,#2e8563 14%,var(--card));
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="support"] > .native-profile-icon:first-child {
  color:#2558a8; background:color-mix(in srgb,#3b82f6 13%,var(--card));
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="account"] > .native-profile-icon:first-child {
  color:var(--primary-strong); background:var(--primary-soft);
}
html.night.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="appearance"] > .native-profile-icon:first-child { color:#c4a7ff; }
html.night.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="response"] > .native-profile-icon:first-child { color:#f7b277; }
html.night.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="email"] > .native-profile-icon:first-child { color:#7dd6b5; }
html.night.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry[data-profile-target="support"] > .native-profile-icon:first-child { color:#93c5fd; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry > .native-profile-icon:last-child { width:20px; height:20px; color:var(--ink-faint); }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead {
  display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:14px; margin:2px 0 22px;
  padding:16px 18px; border:1px solid color-mix(in srgb,var(--primary) 16%,var(--line)); border-radius:22px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 8%,var(--card)),var(--card));
  box-shadow:0 12px 28px -24px color-mix(in srgb,var(--ink) 28%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead > div { min-width:0; padding-top:1px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead h2 {
  margin:0; color:var(--ink); font-size:22px; line-height:1.25; font-weight:700; letter-spacing:-.03em; overflow-wrap:anywhere;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead p {
  margin:5px 0 0; color:var(--ink-soft); font-size:13px; line-height:1.5; overflow-wrap:anywhere;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-back {
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; min-height:44px;
  padding:10px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:var(--paper);
  box-shadow:0 2px 6px rgba(0,0,0,.04);
  transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),background-color 160ms ease;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-back:active { transform:scale(.94); background:var(--primary-soft); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-back .native-profile-icon { width:22px; height:22px; }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucPreferencesSection > .uc-section-head { display:none; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucPreferencesSection .uc-group {
  border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)) !important; border-radius:22px; background:var(--card);
  box-shadow:0 12px 28px -22px color-mix(in srgb,var(--ink) 26%,transparent); overflow:hidden;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal .uc-row { min-height:68px; padding:16px 18px; gap:14px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal .uc-row-label { color:var(--ink); font-size:16px; font-weight:650; line-height:1.4; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal .uc-row-desc { color:var(--ink-soft); font-size:12.5px; line-height:1.5; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucLanguageRow .uc-select-wrap { width:48%; min-width:112px; max-width:190px; flex:0 1 190px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal .uc-select { width:100%; min-width:0; max-width:none; min-height:44px; height:44px; font-size:16px; border-radius:12px; background:var(--paper); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucPaletteOptions { gap:10px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .uc-palette-option { min-width:0; min-height:48px; border-radius:14px; transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),border-color 160ms ease,background-color 160ms ease; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .uc-palette-option[aria-checked="true"] { border-color:var(--primary) !important; background:var(--primary-soft) !important; box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 35%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .uc-palette-name { min-width:0; font-weight:600; overflow-wrap:anywhere; }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucResponseRow { display:flex; gap:14px; min-height:0; padding:0; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucModeHeading { color:var(--ink-soft); font-size:12.5px; font-weight:650; letter-spacing:.02em; text-transform:uppercase; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup { gap:12px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card {
  min-width:0; min-height:146px; padding:18px; border-radius:20px; background:var(--card);
  box-shadow:0 10px 24px -20px color-mix(in srgb,var(--ink) 26%,transparent);
  transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),border-color 160ms ease,background-color 160ms ease;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card[aria-checked="true"] {
  border-color:var(--primary) !important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 12%,var(--card)),var(--card)) !important;
  box-shadow:0 12px 28px -20px color-mix(in srgb,var(--primary) 42%,transparent),0 0 0 1px color-mix(in srgb,var(--primary) 30%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card > div:first-child { flex-wrap:wrap; gap:8px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card > div:first-child > div { min-width:0; flex-wrap:wrap; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card > div:first-child > div > div { min-width:0; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#modeSpeedTitle,#modePrecisionTitle) { font-size:15.5px; font-weight:700; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .uc-mode-desc { color:var(--ink-soft); font-size:12.5px; line-height:1.6; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvancedWrap { margin-top:4px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails { padding:6px 16px 14px; border-color:color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)); border-radius:20px; background:var(--card) !important; box-shadow:0 10px 24px -22px color-mix(in srgb,var(--ink) 26%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails summary { min-height:46px; gap:8px; color:var(--ink); font-weight:650; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails summary > span { min-width:0; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails summary > span:last-child { flex:none; gap:10px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvCurrentBadge { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:999px; background:var(--primary-soft); color:var(--primary-strong); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails [role="radio"] { min-width:0; min-height:56px; border-radius:14px; color:var(--ink-soft); border-color:var(--line); background:var(--paper); overflow-wrap:anywhere; font-size:12.5px; font-weight:600; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails [role="radio"][aria-checked="true"] { color:var(--primary-strong); border-color:var(--primary) !important; background:var(--primary-soft) !important; box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 30%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucStudyProfileBox {
  padding:16px; border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)); border-radius:20px; background:var(--card) !important;
  box-shadow:0 10px 24px -22px color-mix(in srgb,var(--ink) 26%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucStudyProfileBox > .grid { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-head { display:none; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-form {
  grid-template-columns:minmax(0,1fr); gap:18px; padding:20px; border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line));
  border-radius:22px; background:var(--card); box-shadow:0 12px 28px -22px color-mix(in srgb,var(--ink) 26%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings :is(label,input,select) { min-width:0; max-width:100%; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings :is(input,select) { min-height:46px; font-size:16px; border-radius:14px; background:var(--paper); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings select { height:max(46px,calc(46px / var(--sovi-type-zoom,1))); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-switch { min-height:52px; padding:12px 14px; border:1px solid var(--line); border-radius:16px; background:var(--paper); font-weight:600; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-guest { padding:20px; border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line)); border-radius:22px; background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 6%,var(--card)),var(--card)); font-size:13.5px; line-height:1.6; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-tz-display { min-height:48px; border-radius:14px; background:var(--paper); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-tz-text :is(strong,span) { white-space:normal; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-footer { flex-wrap:wrap; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-footer p { min-width:0; overflow-wrap:anywhere; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-form button { min-height:48px; padding:12px 20px; border-radius:14px; font-weight:650; }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucSupportLinks {
  display:grid !important; gap:0 !important; padding:0 !important; overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)) !important; border-radius:22px; background:var(--card);
  box-shadow:0 12px 28px -22px color-mix(in srgb,var(--ink) 26%,transparent); font-size:16px;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucSupportLinks :is(a,button) {
  display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:60px; margin:0; padding:16px 18px !important;
  border:0; border-radius:0; background:transparent; color:var(--ink); font:600 16px/1.4 inherit; text-align:left; text-decoration:none; overflow-wrap:anywhere; transition:background-color 160ms ease;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucSupportLinks :is(a,button) + :is(a,button) { border-top:1px solid color-mix(in srgb,var(--line) 80%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucSupportLinks :is(a,button)::after { content:'›'; flex:none; color:var(--ink-faint); font-size:21px; font-weight:400; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucSupportLinks :is(a,button):active { background:var(--paper-2); }

html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucNativeAccount:not(.hidden) { display:grid; gap:12px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucNativeAccount { padding:0 !important; border:0 !important; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucNativeAccount > button {
  width:100%; min-height:52px; margin:0; padding:13px 18px; border-radius:16px; font-size:15.5px; font-weight:650; box-shadow:none;
  transition:transform var(--sovi-motion-press) var(--sovi-motion-ease),background-color 160ms ease;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucNativePro {
  color:var(--primary-strong); border:1px solid color-mix(in srgb,var(--primary) 26%,var(--line)) !important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 14%,var(--card)),var(--card));
  box-shadow:0 10px 24px -18px color-mix(in srgb,var(--primary) 40%,transparent);
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucDeleteAccount { color:#b42318; border:1px solid color-mix(in srgb,#c34b57 22%,var(--line)); background:color-mix(in srgb,#c34b57 6%,var(--card)); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAccountActions {
  display:grid !important; grid-template-columns:minmax(0,1fr); gap:12px; margin-top:22px; padding:20px 0 0 !important; border:0 !important;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAccountActions > div {
  display:grid !important; grid-template-columns:minmax(0,1fr); gap:12px; width:100%;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAccountActions button {
  justify-content:center; width:100%; min-height:50px; margin:0; padding:13px 18px; border-radius:16px; font-size:15.5px; font-weight:600;
}
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAccountActions button[onclick="clearLocalCache()"] { color:var(--ink); border:1px solid color-mix(in srgb,var(--line-strong,var(--line)) 70%,var(--line)) !important; background:var(--card); box-shadow:0 8px 20px -18px color-mix(in srgb,var(--ink) 25%,transparent); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAccountActions button[onclick="logout()"] { color:#b42318; border:1px solid color-mix(in srgb,#c34b57 24%,var(--line)); background:color-mix(in srgb,#c34b57 7%,var(--card)); }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal :is(.native-profile-entry,.native-profile-back,#ucSupportLinks a):focus-visible { outline:2px solid var(--primary); outline-offset:-3px; }
html.night.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal :is(#ucDeleteAccount,#ucAccountActions button[onclick="logout()"]) { color:#f3a6ac; }
@media(max-width:480px) {
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucLanguageRow { flex-direction:column; align-items:stretch; gap:10px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucLanguageRow .uc-select-wrap { width:100%; max-width:none; flex:none; }
}
@media(max-width:380px) {
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucBody { padding-inline:max(16px,var(--safe-left)) max(16px,var(--safe-right)); }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucProfileCard { padding:20px 16px 40px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection { margin-inline:4px; padding-inline:10px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry { padding-inline:14px; gap:10px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead h2 { font-size:21px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal .uc-row { padding-inline:14px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails { padding-inline:10px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails [role="radio"] { padding-inline:7px; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-footer { align-items:stretch; flex-direction:column; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #soviEngagementSettings .sovi-engagement-form button { width:100%; }
}
html.sovi-business-shell.sovi-type-narrow #userCenterModal #ucResponseRow { padding:0; }
html.sovi-business-shell.sovi-type-narrow #userCenterModal #ucModeHeading { overflow-wrap:anywhere; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #responseModeGroup .mode-card { padding:10px; }
html.sovi-business-shell.sovi-type-narrow #precisionAdvDetails { overflow-wrap:anywhere; }
html.sovi-business-shell.sovi-type-narrow #precisionAdvDetails summary > span:last-child { flex-wrap:wrap; max-width:100%; }
html.sovi-business-shell.sovi-type-narrow #ucProfileCard > div:first-child { flex-direction:column; align-items:flex-start; }
html.sovi-business-shell.sovi-type-narrow #ucProfileCard > div:first-child > div:last-child { width:100%; }
html.sovi-business-shell.sovi-type-narrow #soviEngagementSettings .sovi-tz-display { flex-wrap:wrap; }
html.sovi-business-shell.sovi-type-narrow #soviEngagementSettings .sovi-tz-text { flex-basis:100%; }
html.sovi-business-shell.sovi-type-narrow #soviEngagementSettings .sovi-engagement-grid { grid-template-columns:minmax(0,1fr); }
html.sovi-business-shell.sovi-type-narrow #soviEngagementSettings .sovi-engagement-form button { min-width:0; white-space:normal; overflow-wrap:anywhere; }
html.sovi-business-shell.sovi-type-narrow :is(#ucQuotaSection > .grid,#precisionAdvDetails [role="radiogroup"]) { grid-template-columns:minmax(0,1fr) !important; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #precisionAdvDetails summary { flex-wrap:wrap; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection { margin-inline:0; padding-inline:8px; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection > .grid > div { padding:8px !important; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucQuotaSection > .grid > div + div { border-left:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important; }
html.sovi-business-shell.sovi-type-narrow #ucQuotaSection :is(#ucQuotaAudioVal,#ucQuotaImageVal,#ucQuotaVideoVal,#ucQuotaLearnVal) { white-space:normal !important; overflow-wrap:anywhere; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucProfileCard { padding:14px 10px 34px; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucAvatar { width:48px; height:48px; font-size:18px; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry { grid-template-columns:32px minmax(0,1fr) 16px; gap:8px; padding:12px 10px; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-entry > .native-profile-icon:first-child { width:32px; height:32px; padding:6px; border-radius:10px; }
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) .native-profile-subhead { padding:12px 10px; gap:8px; }
html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucProBannerCard,#ucStreakRewardsCard,#ucActivityNoticeCard) {
  margin-top:16px; border-radius:20px; box-sizing:border-box; max-width:100%; overflow-wrap:anywhere;
}
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucProBannerCard,#ucStreakRewardsCard,#ucActivityNoticeCard) {
  padding:10px !important; margin-top:12px;
}
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucStreakDaysRow,#ucDailyTasksList) {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #ucDailyTasksList > div {
  white-space:normal !important; overflow-wrap:anywhere;
}
html.sovi-business-shell.sovi-type-narrow:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) :is(#ucProUpgradeBtn,#ucCheckInBtn,#ucEditNameBtn) {
  width:100%; justify-content:center; white-space:normal; overflow-wrap:anywhere;
}
@media(prefers-reduced-motion:reduce) {
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) [data-profile-page].is-active { animation:none; }
  html.sovi-business-shell:is([data-sovi-workspace="profile"],[data-sovi-workspace="settings"]) #userCenterModal :is(.native-profile-entry,.native-profile-back,#ucSupportLinks a,#ucNativeAccount > button) { transition:none; }
}
@media(min-width:700px) {
  html.sovi-business-shell #suggestions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
  html.sovi-business-shell #nativeHomeActions { gap:0 20px; }
}
@media(prefers-reduced-motion:reduce) {
  html.sovi-app-shell .sovi-answer-arrival { animation:none; }
  html.sovi-app-shell .ai-thinking-dots > span { animation:none !important; }
  html.sovi-app-shell :is(button,summary):active { transform:none !important; }
}

/* App 1.2 repair: retain content surfaces when the native shell owns chrome. */
#nativeChatStart[hidden] { display:none !important; }
html.sovi-business-shell #nativeChatStart { max-width:540px; margin:clamp(24px,8vh,72px) auto 24px; padding:28px 6px; }
#nativeChatStart > .sovi-icon { width:32px; height:32px; padding:12px; box-sizing:content-box; border-radius:18px; color:var(--primary); background:var(--primary-soft); }
#nativeChatStart h2 { margin:24px 0 12px; font-size:clamp(24px,5vw,32px); line-height:1.2; font-weight:650; letter-spacing:-.03em; color:var(--ink); }
#nativeChatStart p { max-width:36ch; font-size:15px; line-height:1.7; color:var(--ink-soft); }
.native-chat-start-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.native-chat-start-actions button { min-height:48px; display:flex; align-items:center; gap:9px; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--ink); font-family:inherit; font-size:14px; line-height:1.4; font-weight:500; }
.native-chat-start-actions svg,.aha-capsule-badge .sovi-icon { flex:none; width:20px; height:20px; color:var(--primary); }
.aha-capsule-badge { display:inline-flex; align-items:center; gap:7px; }
html.sovi-app-shell .sc-detail-sheet { box-sizing:border-box; }
html.sovi-app-shell .sc-detail-stage { min-width:0; width:100%; }
html.sovi-app-shell .sc-face .sc-card { max-width:430px; margin-inline:auto; }

.native-chat-examples { margin-top:24px; }
.native-chat-examples h3 { margin:0 0 8px; font-size:12px; line-height:1.5; font-weight:500; color:var(--ink-soft); }
.native-chat-examples button { display:flex; align-items:center; gap:12px; width:100%; min-height:58px; padding:14px 2px; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; font-size:14px; line-height:1.5; }
.native-chat-examples button:disabled { opacity:.45; }
.native-chat-examples button .sovi-icon { width:20px; height:20px; flex:none; color:var(--primary); }
.native-chat-examples button > span:first-of-type { flex:1; }
.native-chat-examples button > span:last-child { color:var(--ink-faint); font-size:22px; }
html.sovi-business-shell #nativeChatStart { margin-top:clamp(8px,3vh,28px); padding-top:12px; }
@media(max-height:430px) { #nativeChatStart > p { display:none; } .native-chat-examples { margin-top:12px; } }

/* SwiftUI owns the safe-area insets; these surfaces only add reading gutters. */
html.sovi-ios-shell :is(#welcomeBlock,#nativeChatStart,#messageList,#sidebar,#toolsPane,#userCenterModal,#memoryDrawer,.sl-root,.sf-root,.sc-detail) :is(button,summary,select,input:not([type="checkbox"]):not([type="radio"])) {
  min-height:max(44px,calc(44.25px / var(--sovi-type-zoom,1))) !important;
  min-width:max(44px,calc(44.25px / var(--sovi-type-zoom,1))) !important;
}
html.sovi-ios-shell :is(#messages,#convList,#memoryList,#ucBody,.tp-content,.sl-body,.sf-body,.sc-detail-sheet) {
  overscroll-behavior-y:contain;
  scroll-padding-block:16px;
  -webkit-overflow-scrolling:touch;
}
html.sovi-ios-shell :is(#welcomeBlock,#nativeChatStart,.sl-body,.sf-body,.tp-content) { overflow-wrap:anywhere; }
html.sovi-ios-shell :is(.tp-tab,.tp-btn,.sl-btn,.sf-btn) { white-space:normal; height:auto; }
html.sovi-ios-shell :is(.tp-expr,.tp-content textarea) { font-size:16px; }
html.sovi-ios-shell :is(.sl-busy,.sf-busy) { min-height:144px; padding:24px 16px; box-sizing:border-box; }
html.sovi-ios-shell .sl-busy p:empty { display:none; }
html.sovi-app-shell #messageList :is(.msg-visualize-btn,.msg-share-card-btn) {
  border-radius:10px;
  color:var(--ink-soft);
}
@media(max-width:350px) {
  html.sovi-ios-shell #messages > div { padding-inline:16px; }
  html.sovi-ios-shell :is(.sl-sec-h,.sf-sec-h,.sf-cta-inline) { flex-wrap:wrap; gap:10px; }
  html.sovi-ios-shell :is(.sl-sec-h,.sf-sec-h) > :first-child { min-width:0; }
}
