/* Shared Apple-inspired desktop treatment. No task, data or BrowserView bounds changes. */
html[data-theme="light"] {
  --ui-text:#20242c;--ui-muted:#646a76;--ui-surface:#fff;--ui-subtle:#f6f7fa;--ui-canvas:#f3f4f7;--ui-border:#e5e7ed;
  --ui-accent:#0066d6;--ui-accent-soft:#eaf2ff;--ui-accent-border:#c9dcf7;
  --ui-green:#157253;--ui-green-soft:#edf8f2;--ui-green-border:#cde8da;
  --ui-gold:#8b5a08;--ui-gold-soft:#fff6e5;--ui-gold-border:#efdfbc;
  --ui-red:#bd3838;--ui-red-soft:#fff0ef;--ui-red-border:#f2d5d2;
  --ui-purple:#7650b6;--ui-purple-soft:#f4effb;--ui-purple-border:#e1d6f0;
  --ui-shadow:0 2px 5px #25304703,0 8px 24px #25304704;
  --apple-toolbar:rgba(255,255,255,.92);--apple-outline:#0066d6;
  --text-secondary:#404956;--text-secondary-2:#53606e;--text-dim:#5b6676;
}
html[data-theme="dark"] {
  --ui-text:#edf0f5;--ui-muted:#a9afbc;--ui-surface:#24272e;--ui-subtle:#2b2f38;--ui-canvas:#1a1d23;--ui-border:#383e49;
  --ui-accent:#93bfff;--ui-accent-soft:#263b57;--ui-accent-border:#405c7f;
  --ui-green:#85dcaf;--ui-green-soft:#213d30;--ui-green-border:#3b5e4c;
  --ui-gold:#edc47b;--ui-gold-soft:#3b3225;--ui-gold-border:#60513a;
  --ui-red:#ffaaa5;--ui-red-soft:#402b2c;--ui-red-border:#674246;
  --ui-purple:#d0b4fa;--ui-purple-soft:#392e49;--ui-purple-border:#5a476e;
  --ui-shadow:0 2px 5px #00000008,0 8px 24px #0000000a;
  --apple-toolbar:rgba(36,39,46,.94);--apple-outline:#93bfff;
  --text-secondary:#d6dce6;--text-secondary-2:#bec7d4;--text-dim:#aeb9ca;
}
html[data-theme] body {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei UI','Microsoft YaHei',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
html[data-theme] .sidebar[data-v-a9358d06] {
  position:relative!important;grid-template-columns:auto minmax(0,1fr) auto!important;
  background:var(--apple-toolbar)!important;box-shadow:0 1px 0 var(--ui-border)!important;
}
html[data-theme] .logo-area[data-v-a9358d06] {padding:0 20px!important;min-width:0;gap:0!important}
html[data-theme] .logo-text[data-v-a9358d06] {font-size:18px!important;font-weight:700!important;letter-spacing:-.45px;white-space:nowrap}
/* Reserve the entire native traffic-light area before the first paint, including fullscreen hover. */
html[data-theme][data-desktop-platform="mac"] .logo-area[data-v-a9358d06] {padding-left:112px!important;-webkit-app-region:drag}
html[data-theme][data-desktop-platform="mac"] .sidebar[data-v-a9358d06]::before {
  content:"";position:absolute;left:0;top:0;width:108px;height:60px;-webkit-app-region:drag;
}
html[data-theme] :is(.two-tier-primary,.two-tier-secondary,.sidebar-footer,.sidebar-footer button,.sidebar-footer [role="button"]) {-webkit-app-region:no-drag!important}
html[data-theme] .two-tier-primary {gap:4px!important;padding:0 10px 0 2px;scrollbar-width:none!important}
html[data-theme] .two-tier-primary-item {
  height:36px!important;padding:0 14px!important;border-radius:11px!important;font-size:14px!important;font-weight:550!important;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease!important;
}
html[data-theme] .two-tier-primary-item.active {box-shadow:inset 0 0 0 1px #007aff0d!important}
html[data-theme] .two-tier-primary-item:active:not(:disabled) {background:var(--ui-accent-soft)!important}
html[data-theme] .two-tier-secondary {padding:0 20px!important;gap:6px!important;background:var(--apple-toolbar)!important}
html[data-theme] .two-tier-secondary-item {height:30px!important;padding:0 12px!important;border-radius:9px!important;font-size:12px!important;transition:background-color .18s ease,color .18s ease!important}
html[data-theme] .two-tier-secondary-item.active:after {display:none!important}
html[data-theme] .sidebar-footer[data-v-a9358d06] {padding:0 16px!important;gap:8px!important;border-left:0!important;min-width:0}
html[data-theme] :is(.auth-badge,.perf-status-chip)[data-v-a9358d06] {
  display:inline-flex!important;align-items:center!important;justify-content:center;gap:6px!important;
  height:30px!important;box-sizing:border-box;min-width:96px;padding:0 11px!important;border-radius:999px!important;
  font-size:11px!important;font-weight:550!important;line-height:1!important;box-shadow:inset 0 1px 0 #ffffff18!important;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease!important;
}
html[data-theme] .auth-badge[data-v-a9358d06] {min-width:76px}
html[data-theme] .perf-status-dot {width:6px!important;height:6px!important;box-shadow:none!important;animation:none!important;background:currentColor!important}
html[data-theme] .perf-status-chip.good {color:var(--ui-green)!important;background:var(--ui-green-soft)!important;border-color:var(--ui-green-border)!important}
html[data-theme] .perf-status-chip.warning {color:var(--ui-gold)!important;background:var(--ui-gold-soft)!important;border-color:var(--ui-gold-border)!important}
html[data-theme] .perf-status-chip.danger {color:var(--ui-red)!important;background:var(--ui-red-soft)!important;border-color:var(--ui-red-border)!important}
html[data-theme] .auth-badge.plan-enterprise {color:var(--ui-gold)!important;background:var(--ui-gold-soft)!important;border-color:var(--ui-gold-border)!important}
html[data-theme] .auth-badge.plan-professional {color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;border-color:var(--ui-accent-border)!important}
html[data-theme] .auth-badge.plan-team {color:var(--ui-purple)!important;background:var(--ui-purple-soft)!important;border-color:var(--ui-purple-border)!important}
html[data-theme] .auth-badge.plan-trial {color:var(--ui-green)!important;background:var(--ui-green-soft)!important;border-color:var(--ui-green-border)!important}
html[data-theme] .theme-toggle-btn[data-v-a9358d06] {width:30px!important;height:30px!important;border-radius:9px!important;background:transparent!important;border-color:transparent!important}
html[data-theme] .footer-btns[data-v-a9358d06] {display:flex!important;gap:2px!important}
html[data-theme] .footer-btns[data-v-a9358d06]>svg {width:30px!important;height:30px!important;padding:7px;box-sizing:border-box;border-radius:9px;color:var(--ui-muted)!important;cursor:pointer;transition:background-color .16s ease,color .16s ease!important}
html[data-theme] :is(.theme-toggle-btn,.footer-btns>svg):hover {background:var(--ui-subtle)!important;color:var(--ui-text)!important}
html[data-theme] .perf-status-text,html[data-theme] .auth-badge[data-v-a9358d06] span {display:inline!important}
html[data-theme] :is(.personas-header,.editor-glass-card,.personas-list-section,.glass-panel,.main-card,.settings-card,.setting-section,.nurture-card,.account-card,.history-card,.record-panel,.memory-section,.action-card,.behavior-card,.trigger-card,.live-config-card,.config-section,.workspace-card,.peer-account-data-card,.work-publish-view .ant-card) {
  border-radius:16px!important;border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow)!important;
}
html[data-theme] .persona-card {border-radius:11px!important;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important}
html[data-theme] .persona-card.active {box-shadow:inset 3px 0 var(--ui-accent)!important;border-left-color:var(--ui-accent)!important}
html[data-theme] .glow-icon {border-radius:13px!important}
html[data-theme] .text-group h3 {font-size:18px!important;letter-spacing:-.3px}
html[data-theme] :is(.ant-btn:not(.ant-btn-link):not(.ant-btn-text),.ant-input,.ant-input-affix-wrapper,.ant-input-number,.ant-select:not(.ant-select-disabled) .ant-select-selector) {border-radius:9px!important}
html[data-theme] :is(.add-btn,.save-btn,.buy-btn,.ant-btn-primary):not(.ant-btn-dangerous):not(:disabled) {
  background:#087af5!important;border-color:#087af5!important;box-shadow:0 2px 4px #0066d612!important;
}
html[data-theme] :is(.add-btn,.save-btn,.ant-btn-primary):not(.ant-btn-dangerous):not(:disabled):hover {background:#006be6!important}
html[data-theme] .ant-btn {transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important}
html[data-theme] .ant-btn:disabled {box-shadow:none!important}
html[data-theme] .ant-input-affix-wrapper .ant-input {border-radius:0!important}
html[data-theme] .ant-input-group .ant-input {border-radius:9px 0 0 9px!important}
html[data-theme] .ant-input-group-addon .ant-btn {border-radius:0 9px 9px 0!important}
html[data-theme] .ant-input-number-group .ant-input-number {border-radius:9px 0 0 9px!important}
html[data-theme] .ant-table-tbody>tr>td {font-variant-numeric:tabular-nums}
html[data-theme] .ant-table-thead>tr>th {font-size:12px;letter-spacing:0}
html[data-theme] .ant-table-tbody>tr.ant-table-row:hover>td {background:var(--ui-subtle)!important}
html[data-theme] .ant-table-tbody>tr.ant-table-row-selected>td {background:var(--ui-accent-soft)!important}
html[data-theme] .ant-table-tbody>tr.ant-table-row-selected:hover>td {background:var(--ui-accent-soft)!important}
html[data-theme] :is(.ant-segmented,.ant-radio-group) {border-radius:9px}
html[data-theme] .ant-segmented {background:var(--ui-subtle)!important;color:var(--ui-muted)!important}
html[data-theme] .ant-segmented-item-selected {color:var(--ui-text)!important;background:var(--ui-surface)!important;border-radius:7px!important;box-shadow:0 1px 4px #00000012!important}
html[data-theme] .ant-select-dropdown,html[data-theme] .ant-dropdown-menu {border-radius:12px!important;box-shadow:0 8px 32px #15213a18!important;padding:5px}
html[data-theme] .ant-select-item {border-radius:7px!important}
html[data-theme] .ant-modal .ant-modal-content {border-radius:18px!important;box-shadow:0 20px 70px #101b3033!important}
html[data-theme] .ant-modal .ant-modal-title {letter-spacing:-.25px}
html[data-theme] .ant-modal-mask,html[data-theme] .ant-drawer-mask {background:rgba(25,31,43,.32)!important}
html[data-theme] .ant-drawer-content-wrapper {box-shadow:-12px 0 48px #101b3020!important}
html[data-theme] :is(.ant-drawer-content,.ant-drawer-header,.ant-drawer-body,.ant-drawer-footer) {background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme] :is(.ant-modal-close,.ant-drawer-close) {border-radius:50%!important;color:var(--ui-muted)!important}
html[data-theme] :is(.ant-modal-close,.ant-drawer-close):hover {background:var(--ui-subtle)!important;color:var(--ui-text)!important}
html[data-theme] :is(.td-hero,.td-panel,.monitor-hero,.monitor-stat-card,.td-account-card) {border-color:var(--ui-border)!important;border-radius:13px!important}
html[data-theme] .td-hero {background:linear-gradient(110deg,var(--ui-accent-soft),var(--ui-surface))!important}
html[data-theme] :is(.ant-switch,.ant-pagination-item,.ant-pagination-prev button,.ant-pagination-next button) {transition:background-color .18s ease,border-color .18s ease,color .18s ease!important}
html[data-theme] .ant-message-notice-content,html[data-theme] .ant-notification-notice {border-radius:12px!important;box-shadow:0 8px 32px #15213a18!important}
html[data-theme] :is(.message-center,.creator-aggregate) :is(.account-panel,.account-list,.panel-heading,.chat-heading,.creator-heading) {background:var(--ui-surface)!important;border-color:var(--ui-border)!important}
html[data-theme] .zhiyun-announcement-bar {background:var(--ui-green-soft)!important;color:var(--ui-green)!important;border-color:var(--ui-green-border)!important}
html[data-theme] .zhiyun-announcement-bar:hover {background:var(--ui-green-soft)!important}
html[data-theme] .zhiyun-announcement-icon,html[data-theme] .zhiyun-announcement-preference {color:var(--ui-green)!important}
html[data-theme] .zhiyun-announcement-dialog {background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border);border-radius:18px!important;font-family:inherit;box-shadow:0 20px 70px #101b3033!important}
html[data-theme] .zhiyun-announcement-dialog :is(header,footer) {border-color:var(--ui-border)!important}
html[data-theme] .zhiyun-announcement-ok {background:#087af5!important;border-radius:9px!important}
html[data-theme] .zhiyun-announcement-dismiss {border-radius:7px!important}
html[data-theme] :is(button,[role="button"],input,textarea,select):focus-visible {outline:2px solid var(--apple-outline)!important;outline-offset:3px}
html[data-theme] .ant-input:focus-visible {outline:none!important}
html[data-theme] ::-webkit-scrollbar {width:8px;height:8px}
html[data-theme] ::-webkit-scrollbar-thumb {background:color-mix(in srgb,var(--ui-muted) 30%,transparent);border-radius:8px;border:2px solid var(--ui-surface)}
html[data-theme] ::-webkit-scrollbar-track {background:transparent}
@supports (backdrop-filter:blur(12px)) {
  html[data-theme] .sidebar[data-v-a9358d06] {backdrop-filter:blur(16px)}
}
@media(max-width:1150px) {
  html[data-theme] .two-tier-primary-item {padding:0 10px!important;font-size:13px!important}
  html[data-theme] .sidebar-footer[data-v-a9358d06] {padding:0 10px!important;gap:5px!important}
  html[data-theme] .logo-area[data-v-a9358d06] {padding-right:12px!important}
}
@media(max-width:980px) {
  html[data-theme] .two-tier-primary-item {padding:0 9px!important}
  html[data-theme] .perf-status-chip[data-v-a9358d06] {min-width:30px!important;width:30px;padding:0!important}
  html[data-theme] .perf-status-chip .perf-status-text {display:none!important}
  html[data-theme] .perf-status-chip .perf-status-dot {display:none!important}
  html[data-theme] .logo-text[data-v-a9358d06] {font-size:16px!important}
}
@media(max-width:760px) {
  html[data-theme] .sidebar[data-v-a9358d06] {height:104px!important;min-height:104px!important;grid-template-rows:56px 48px!important}
  html[data-theme][data-desktop-platform="mac"] .sidebar[data-v-a9358d06]::before {height:56px}
  html[data-theme] .sidebar.zhiyun-has-announcement[data-v-a9358d06] {height:136px!important;min-height:136px!important;grid-template-rows:56px 32px 48px!important}
  html[data-theme] .logo-text[data-v-a9358d06] {display:inline!important;font-size:15px!important}
  html[data-theme] .logo-area[data-v-a9358d06] {padding:0 12px!important}
  html[data-theme] .auth-badge[data-v-a9358d06] {min-width:30px!important;width:30px;padding:0!important}
  html[data-theme] .auth-badge[data-v-a9358d06] span {display:none!important}
  html[data-theme] .sidebar-footer[data-v-a9358d06] {padding:0 8px!important;gap:3px!important}
  html[data-theme] .two-tier-secondary {padding:0 12px!important}
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] :is(.ant-btn,.two-tier-primary-item,.two-tier-secondary-item,.persona-card,.auth-badge,.perf-status-chip,.theme-toggle-btn,.footer-btns>svg,.ant-switch) {transition:none!important}
  html[data-theme] :is(.ant-modal,.ant-modal-mask,.ant-drawer-mask,.ant-drawer-content-wrapper,.ant-select-dropdown,.ant-dropdown,.ant-message-notice,.ant-notification-notice,.two-tier-locked-message) {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  html[data-theme] :is(.pulse-dot,.perf-status-dot) {animation:none!important}
}
@media(prefers-contrast:more) {html[data-theme] {--ui-border:var(--ui-muted)}html[data-theme] .sidebar[data-v-a9358d06] {background:var(--ui-surface)!important;backdrop-filter:none!important}}
@media(forced-colors:active) {html[data-theme] :is(.ant-btn,.perf-status-chip,.auth-badge,.two-tier-primary-item.active,.two-tier-secondary-item.active) {border:1px solid ButtonText!important}}
