/* Reference navigation measurements at the audited desktop viewport.
   Keep this scale local: the existing workbench uses independently measured
   CSS pixels, and changing the global root font-size would resize every modal. */
:root { --reference-navigation-scale: 1.1015625; }

#sidebar-toggle {
  width: calc(2.0426rem * var(--reference-navigation-scale));
  height: calc(2.0426rem * var(--reference-navigation-scale));
  padding: 0;
  font-size: 0;
  box-shadow: inset 0 calc(1px * var(--reference-navigation-scale)) rgba(255,255,255,.08),0 calc(0.4539rem * var(--reference-navigation-scale)) calc(1.1348rem * var(--reference-navigation-scale)) rgba(0,0,0,.28);
}
.reference-sidebar-chevron { display: block; width: 0.9645rem; height: 0.9645rem; pointer-events: none; }

.category-tabs {
  height: 3.6875rem;
  min-height: 3.6875rem;
  grid-auto-rows: 2.078rem;
  gap: 0.1135rem;
  padding: 0.7442rem 0.9942rem;
  flex-shrink: 0;
}
.category-tabs::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.75rem auto;
  height: 2.5656rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 0.5rem;
  background: rgba(0,0,0,.3);
  pointer-events: none;
}
.category-tab {
  height: 2.078rem;
  padding: 0.5rem 0;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
}
.category-tab.active { font-weight: 600; color: #fff; }
.category-slider { top: 0.7442rem; left: 0.9942rem; height: 2.078rem; }

/* Vendor filter + model search: copied from reference Home .model-search-row / .vendor-filter-btn / .vendor-menu (root 14.4px, same rem). */
.model-filter.model-search-row { display: flex; align-items: stretch; gap: .5rem; height: auto; padding: .625rem calc(.75rem + 3px) .75rem .75rem; }
#vendor-select.vendor-filter-btn { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: .3rem; width: auto; min-width: 0; max-width: 8.5rem; height: auto; padding: .4rem .5rem .4rem .625rem; border: 1px solid rgba(255,255,255,.1); border-radius: .5rem; background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 400; line-height: 1.11rem; white-space: nowrap; cursor: pointer; transition: all .2s ease; }
#vendor-select.vendor-filter-btn:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
#vendor-select.vendor-filter-btn-on { border-color: rgba(0,202,224,.4); background: rgba(0,202,224,.1); color: #00cae0; }
#vendor-select .vendor-filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; float: none; color: inherit; }
#vendor-select .vendor-filter-arrow { display: block; flex-shrink: 0; width: .75rem; height: .75rem; color: rgba(255,255,255,.4); transition: transform .15s ease, color .2s ease; }
#vendor-select.vendor-filter-btn-on .vendor-filter-arrow { color: rgba(0,202,224,.6); }
#vendor-select.vendor-filter-btn-open .vendor-filter-arrow { transform: rotate(180deg); }
#vendor-select .vendor-dot, #vendor-menu .vendor-dot { display: block; width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; background: #96b7c6; }
.model-search-row .search-box.model-search { display: flex; flex: 1; align-items: center; min-width: 0; height: auto; gap: .5rem; padding: .4rem .625rem; border: 1px solid rgba(251,191,36,.45); border-radius: .5rem; background: rgba(251,191,36,.08); color: inherit; transition: all .2s ease; }
.model-search-row .search-box.model-search:focus-within { border-color: rgba(251,191,36,.7); background: rgba(251,191,36,.12); box-shadow: 0 0 .625rem rgba(251,191,36,.15); }
.model-search-icon { width: .875rem; height: .875rem; flex-shrink: 0; color: rgba(251,191,36,.45); transition: color .2s ease; }
.model-search:focus-within .model-search-icon { color: rgba(251,191,36,.85); }
.model-search-row .model-search-input { flex: 1; width: auto; min-width: 0; padding: 0; border: none; outline: none; background: transparent; color: rgba(255,255,255,.9); font-size: .75rem; line-height: 1.11rem; }
.model-search-row .model-search-input::placeholder { color: rgba(255,255,255,.35); }
.model-search-clear { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.125rem; height: 1.125rem; padding: 0; border: none; border-radius: 50%; background: rgba(251,191,36,.15); cursor: pointer; transition: all .15s ease; }
.model-search-clear[hidden] { display: none; }
.model-search-clear svg { width: .625rem; height: .625rem; color: rgba(251,191,36,.6); }
.model-search-clear:hover { background: rgba(251,191,36,.25); }
.model-search-clear:hover svg { color: rgba(251,191,36,.9); }
#vendor-menu.vendor-menu { z-index: 120; width: auto; min-width: 10rem; max-height: 16.5rem; overflow-y: auto; padding: .3125rem; border: 1px solid rgba(255,255,255,.1); border-radius: .625rem; background: linear-gradient(180deg, rgba(28,32,42,.98), rgba(18,22,30,.98)); box-shadow: 0 .625rem 1.75rem rgba(0,0,0,.55); scrollbar-width: thin; }
#vendor-menu::-webkit-scrollbar { width: .25rem; }
#vendor-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; }
#vendor-menu .vendor-menu-item { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; width: 100%; min-height: 0; margin: .12rem 0; padding: .4375rem .5625rem; border: none; border-radius: .4375rem; background: transparent; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 400; line-height: 1.11rem; text-align: left; cursor: pointer; transition: all .15s ease; }
#vendor-menu .vendor-menu-item:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
#vendor-menu .vendor-menu-item.active { background: rgba(0,202,224,.15); color: #00cae0; }
#vendor-menu .vendor-menu-name { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vendor-menu .vendor-menu-count { margin-left: auto; flex-shrink: 0; color: rgba(255,255,255,.4); font-size: .6875rem; line-height: .76rem; }
#vendor-menu .vendor-menu-item.active .vendor-menu-count { color: rgba(0,202,224,.6); }

#user-chip {
  min-height: 3.9397rem;
  padding: calc(0.5674rem * var(--reference-navigation-scale)) calc(0.6809rem * var(--reference-navigation-scale));
  gap: calc(0.5674rem * var(--reference-navigation-scale));
  border-color: rgba(255,255,255,.06);
  background: linear-gradient(rgba(255,255,255,.043),rgba(255,255,255,.016)),rgba(255,255,255,.02);
}
.reference-account-chevron { display: block; width: 0.9078rem; height: 0.9078rem; pointer-events: none; }
#recharge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.227rem * var(--reference-navigation-scale));
  width: 4.3963rem;
  height: 2.305rem;
  padding: calc(0.4539rem * var(--reference-navigation-scale)) calc(0.6809rem * var(--reference-navigation-scale));
  border-color: rgba(251,191,36,.5);
  background: linear-gradient(135deg,rgba(251,191,36,.15),rgba(245,158,11,.1));
  font-family: Arial, sans-serif;
  font-size: 0.7565rem;
  font-weight: 400;
  white-space: nowrap;
}
.reference-recharge-icon { display: block; flex: 0 0 auto; width: 0.9078rem; height: 0.9078rem; object-fit: contain; }

#top-video-action {
  background: radial-gradient(120% 120% at 30% 25%,rgba(255,173,196,.16),transparent 65%),linear-gradient(155deg,rgba(44,22,30,.9),rgba(26,16,20,.9));
  border-color: rgba(244,63,94,.42);
}
#top-video-action .control-icon { width: 1.2482rem; height: 1.2482rem; stroke-width: 2.290909; }
#top-app-action {
  background: radial-gradient(120% 120% at 30% 25%,rgba(255,255,255,.08),transparent 65%),linear-gradient(155deg,rgba(30,32,40,.85),rgba(20,22,28,.85));
  border-color: rgba(255,255,255,.12);
}

@media (min-width:841px) {
  .account-strip { grid-template-columns: minmax(0,1fr) 4.3963rem; gap: calc(0.4539rem * var(--reference-navigation-scale)); padding-inline: calc(0.6809rem * var(--reference-navigation-scale)); }
  .top-actions .round-action { display: grid; place-items: center; padding: 0; flex: 0 0 auto; width: calc(2.9504rem * var(--reference-navigation-scale)); height: calc(2.9504rem * var(--reference-navigation-scale)); }
  #top-membership-action { width: calc(2.9504rem * var(--reference-navigation-scale) + 0.1135rem); }
  #top-membership-action .gem-action-icon { width: calc(1.5887rem * var(--reference-navigation-scale)); height: calc(1.5887rem * var(--reference-navigation-scale)); }
}

html[data-display-theme="light"] #user-chip { background: #fff; border-color: #dae0e9; }
html[data-display-theme="light"] #vendor-select.vendor-filter-btn { border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.6); color: rgba(0,0,0,.65); }
html[data-display-theme="light"] #vendor-select.vendor-filter-btn:hover { border-color: rgba(0,0,0,.22); color: rgba(0,0,0,.85); }
html[data-display-theme="light"] #vendor-select.vendor-filter-btn-on { border-color: rgba(0,161,194,.4); background: rgba(0,161,194,.08); color: #0e7490; }
html[data-display-theme="light"] #vendor-select .vendor-filter-arrow { color: rgba(0,0,0,.35); }
html[data-display-theme="light"] #vendor-select.vendor-filter-btn-on .vendor-filter-arrow { color: rgba(14,116,144,.7); }
html[data-display-theme="light"] #vendor-menu.vendor-menu { border-color: rgba(0,0,0,.1); background: linear-gradient(180deg, rgba(250,252,255,.98), rgba(240,243,250,.98)); box-shadow: 0 .625rem 1.75rem rgba(15,23,42,.18); }
html[data-display-theme="light"] #vendor-menu .vendor-menu-item { color: rgba(0,0,0,.68); }
html[data-display-theme="light"] #vendor-menu .vendor-menu-item:hover { background: rgba(0,0,0,.05); color: rgba(0,0,0,.88); }
html[data-display-theme="light"] #vendor-menu .vendor-menu-item.active { background: rgba(0,161,194,.1); color: #0e7490; }
html[data-display-theme="light"] #vendor-menu .vendor-menu-count { color: rgba(0,0,0,.35); }
html[data-display-theme="light"] #vendor-menu .vendor-menu-item.active .vendor-menu-count { color: rgba(14,116,144,.7); }
html[data-display-theme="light"] .model-search-row .search-box.model-search { border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.6); }
html[data-display-theme="light"] .model-search-row .search-box.model-search:focus-within { border-color: rgba(0,161,194,.4); background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(0,161,194,.08); }
html[data-display-theme="light"] .model-search-icon { color: rgba(0,0,0,.3); }
html[data-display-theme="light"] .model-search:focus-within .model-search-icon { color: rgba(0,161,194,.7); }
html[data-display-theme="light"] .model-search-row .model-search-input::placeholder { color: rgba(0,0,0,.3); }
html[data-display-theme="light"] .model-search-clear { background: rgba(0,0,0,.08); }
html[data-display-theme="light"] .model-search-clear svg { color: rgba(0,0,0,.4); }

/* Sidebar logo + collapse button: copied from reference Home .sidebar-logo / .logo-collapse-btn (root 14.4px, same rem). */
.brand-row.sidebar-logo { position: relative; overflow: hidden; height: 5.75rem; padding: 0 .85rem; justify-content: flex-start; border-bottom: 0; background: radial-gradient(circle at 18% 42%, rgba(0, 202, 224, .15), transparent 38%), linear-gradient(180deg, rgba(0, 202, 224, .03) 0%, transparent 100%); }
.sidebar-logo .logo-shine { position: absolute; top: -100%; left: -100%; width: 300%; height: 300%; background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, .08) 52%, transparent 70%); animation: rolala-logo-shine 6s infinite; pointer-events: none; z-index: 0; }
.sidebar-logo .brand { position: relative; z-index: 1; flex: 1; min-width: 0; height: 100%; gap: .7rem; padding: 0 .7rem 0 .45rem; color: inherit; }
.sidebar-logo .logo-glow { position: absolute; top: 50%; left: 1.85rem; width: 5.75rem; height: 5.75rem; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(0, 202, 224, .15) 0%, transparent 70%); opacity: .6; animation: rolala-logo-pulse 3s ease-in-out infinite; pointer-events: none; }
.sidebar-logo .brand-mark.logo-img-wrapper { position: relative; z-index: 1; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border: 0; border-radius: 0; display: block; box-shadow: none; }
.sidebar-logo .logo-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: .125rem solid rgba(255, 255, 255, .86); filter: drop-shadow(0 0 .75rem rgba(0, 202, 224, .4)); transition: transform .3s ease; }
.sidebar-logo .logo-img-wrapper:hover .logo-img { transform: scale(1.05) rotate(5deg); }
.sidebar-logo .brand-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; min-width: 0; }
.sidebar-logo .logo-text { position: relative; max-width: 8.65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.18rem; font-weight: 700; letter-spacing: .0312rem; line-height: 1.5; background: linear-gradient(135deg, #00cae0 0%, #00d4ff 50%, #00a8cc 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 1.25rem rgba(0, 202, 224, .3); }
.sidebar-logo .logo-text::after { content: ""; position: absolute; bottom: -.125rem; left: 0; width: 100%; height: .125rem; background: linear-gradient(90deg, transparent, rgba(0, 202, 224, .5), transparent); opacity: .6; }
.sidebar-logo .logo-subtitle { max-width: 8.65rem; color: rgba(255, 255, 255, .4); font-size: .625rem; font-weight: 500; letter-spacing: .0312rem; line-height: 1.25; white-space: normal; }
@keyframes rolala-logo-pulse { 0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .6; transform: translate(-50%, -50%) scale(1.1); } }
@keyframes rolala-logo-shine { 0% { transform: translate(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translate(100%) translateY(100%) rotate(45deg); } }

#sidebar-toggle.logo-collapse-btn { top: 1.75rem; left: calc(var(--sidebar) - 0.85rem - 2.25rem - 1px); width: 2.25rem; height: 2.25rem; padding: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; border: .0625rem solid rgba(255, 255, 255, .12); border-radius: 50%; color: rgba(255, 255, 255, .64); font-size: 0; cursor: pointer; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(20, 25, 32, .76); -webkit-backdrop-filter: blur(.625rem) saturate(1.3); backdrop-filter: blur(.625rem) saturate(1.3); box-shadow: inset 0 .0625rem rgba(255, 255, 255, .08), 0 .5rem 1.25rem rgba(0, 0, 0, .28); transition: left .38s cubic-bezier(.22, 1, .36, 1), top .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease; }
#sidebar-toggle.logo-collapse-btn::before { content: ""; position: absolute; inset: -45%; background: radial-gradient(circle at 58% 50%, rgba(0, 202, 224, .22), transparent 55%); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
#sidebar-toggle.logo-collapse-btn:hover { transform: translateY(-.0625rem); color: #fff; border-color: rgba(0, 202, 224, .4); background: radial-gradient(circle at 58% 50%, rgba(0, 202, 224, .2), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(16, 19, 26, .8); box-shadow: inset 0 .0625rem rgba(255, 255, 255, .14), 0 .5rem 1.25rem rgba(0, 0, 0, .3), 0 0 1rem rgba(0, 202, 224, .14); }
#sidebar-toggle.logo-collapse-btn:hover::before { opacity: 1; }
#sidebar-toggle.logo-collapse-btn:active { transform: scale(.95); }
#sidebar-toggle.logo-collapse-btn .reference-sidebar-chevron { position: relative; z-index: 1; width: 17px; height: 17px; filter: drop-shadow(0 0 .375rem rgba(0, 202, 224, .2)); }body.sidebar-collapsed #sidebar-toggle.logo-collapse-btn { top: 1.75rem; left: .85rem; }
@media (max-width: 450px) {
  #sidebar-toggle.logo-collapse-btn { top: 1.75rem; left: .85rem; }
  .app-shell:has(.sidebar.mobile-open) > #sidebar-toggle.logo-collapse-btn { left: calc(min(20rem, 86vw) - 0.85rem - 2.25rem - 1px); }
}
body.sidebar-collapsed .brand-row.sidebar-logo { background: transparent; }
body.sidebar-collapsed .sidebar-logo .logo-shine { display: none; }

/* Model list: copied from reference Home .model-list / .model-item / BoLiFuCeng (root 14.4px, same rem). */
.sidebar #model-list.model-list { position: relative; flex: 1; min-height: 0; padding: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: auto; scrollbar-color: auto; }
.sidebar #model-list.model-list::-webkit-scrollbar { width: .25rem; }
.sidebar #model-list.model-list::-webkit-scrollbar-track { background: transparent; }
.sidebar #model-list.model-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: .125rem; }
.sidebar #model-list.model-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
#model-list .boli-fuceng { position: absolute; top: 0; left: 0; z-index: 0; box-sizing: border-box; border: 0; border-radius: .75rem; background: rgba(255,255,255,.15); opacity: 0; pointer-events: none; will-change: transform; transition: opacity .2s; }
#model-list .boli-fuceng::before { content: none; }
#model-list .boli-fuceng.boli-fuceng-xianshi { opacity: 1; }
#model-list .boli-fuceng.boli-fuceng-xuanfu { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.04); }
#model-list .boli-fuceng.boli-fuceng-xuanfu::before { --boli-fengwo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='19' viewBox='0 0 33 19'%3E%3Cpath d='M5.5 0H16.5L22 9.5L16.5 19H5.5L0 9.5Z M22 9.5H33' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"); --boli-tanzhao: radial-gradient(3.25rem circle at var(--boli-gx, -100rem) var(--boli-gy, -100rem), #000 0%, #000 30%, transparent 100%); content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.3); -webkit-mask-image: var(--boli-fengwo), var(--boli-tanzhao); mask-image: var(--boli-fengwo), var(--boli-tanzhao); -webkit-mask-size: 33px 19px, 100% 100%; mask-size: 33px 19px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat; -webkit-mask-position: calc(var(--boli-x, 0px) * -1) calc(var(--boli-y, 0px) * -1), 0 0; mask-position: calc(var(--boli-x, 0px) * -1) calc(var(--boli-y, 0px) * -1), 0 0; -webkit-mask-composite: source-in; mask-composite: intersect; }
#model-list .model-item { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; height: auto; min-height: 3.5rem; max-height: none; margin: .25rem .75rem; padding: .75rem 1rem; gap: .75rem; border: 0; border-radius: .75rem; background: transparent; box-shadow: none; cursor: pointer; transform: none; transition: all .3s cubic-bezier(.4,0,.2,1); }
#model-list .model-item:hover, #model-list .model-item.model-item-active { background: transparent; border: 0; transform: none; }
#model-list .model-item::before { content: none; }
#model-list .model-icon-wrapper { position: relative; align-self: auto; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-radius: .625rem; background: rgba(255,255,255,.02); color: inherit; box-shadow: none; overflow: visible; transition: all .3s cubic-bezier(.4,0,.2,1); }
#model-list .model-item-active .model-icon-wrapper { background: rgba(0,202,224,.1); box-shadow: 0 0 0 .0625rem rgba(0,202,224,.2); transform: scale(1); }
#model-list .model-icon { position: relative; z-index: 1; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; filter: drop-shadow(0 0 .5rem rgba(255,255,255,.1)); transition: filter .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1); }
#model-list .model-icon img { width: 2rem; height: 2rem; object-fit: contain; }
#model-list .model-item:hover:not(.model-item-active) .model-icon { transform: scale(1.05); }
#model-list .model-indicator { position: absolute; z-index: 2; top: -.125rem; right: -.125rem; width: .5rem; height: .5rem; border: .09375rem solid #0f0f12; border-radius: 50%; background: #fff; box-shadow: 0 0 .5rem rgba(255,255,255,.5); opacity: 1; transform: none; }
#model-list .model-icon-wrapper.has-new-badge .model-indicator { top: auto; bottom: -.125rem; }
#model-list .model-new-badge { position: absolute; top: -.3125rem; right: -.3125rem; z-index: 3; padding: .0625rem .25rem; font-size: .5rem; font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; color: #fff; background: linear-gradient(135deg,#f43f5e,#fb7185 55%,#f59e0b 130%); border-radius: .5rem .5rem .5rem .125rem; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 2px 6px #f43f5e73, 0 0 10px #f43f5e40; pointer-events: none; }
#model-list .model-new-badge::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 2px 6px #f43f5e8c, 0 0 16px #f43f5e80; opacity: 0; animation: model-new-badge-breathe 2.4s ease-in-out infinite; }
@keyframes model-new-badge-breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #model-list .model-new-badge::after { animation: none; } }
#model-list .zhiding-btn { position: absolute; top: -.375rem; left: -.375rem; z-index: 3; width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: #111827; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.6); opacity: 1; box-shadow: none; cursor: pointer; outline: none; transition: all .2s ease; }
#model-list .zhiding-btn:hover { background: #3a2a08; border-color: #fbbf2480; box-shadow: 0 0 12px #fbbf2433; color: #fbbf24; }
#model-list .zhiding-btn:active { transform: scale(.97); }
#model-list .zhiding-btn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 0; padding: 3px 8px; border-radius: 6px; background: #0f121aeb; color: #ffffffeb; font-size: 11px; line-height: 1.4; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 30; }
#model-list .zhiding-btn:hover::after { opacity: 1; }
#model-list .zhiding-btn.zhiding-active { background: #3a2a08; border-color: #fbbf2480; color: #fbbf24; }
#model-list .zhiding-btn.zhiding-active:hover { background: #4a3609; border-color: #fbbf24b3; box-shadow: 0 0 12px #fbbf244d; }
#model-list .zhiding-btn .pin-glyph { display: contents; }
#model-list .zhiding-btn .pin-glyph svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(28deg); transition: color .2s ease, transform .2s ease; }
#model-list .zhiding-btn.zhiding-active .pin-glyph svg { fill: #fbbf244d; }
#model-list .zhiding-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#model-list .model-item { line-height: 1.5; }
#model-list .model-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
#model-list .model-name-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
#model-list .model-name { font-size: .8125rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
#model-list .model-description { margin: 0; font-size: .6875rem; color: rgba(255,255,255,.6); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
#model-list .model-tags { display: flex; flex-wrap: nowrap; gap: .25rem; flex-shrink: 0; }
#model-list .model-tag { display: inline-flex; align-items: center; padding: .125rem .375rem; font-size: .625rem; font-weight: 500; line-height: 1.5; border-radius: .25rem; white-space: nowrap; letter-spacing: .02em; }
#model-list .model-tag-chat { background: rgba(0,202,224,.15); color: #00cae0; border: 1px solid rgba(0,202,224,.3); }
#model-list .model-tag-image { background: #a855f726; color: #a855f7; border: 1px solid rgba(168,85,247,.3); }
#model-list .model-tag-video { background: #fb923c26; color: #fb923c; border: 1px solid rgba(251,146,60,.3); }
#model-list .model-tag-audio { background: #22c55e26; color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
#model-list .success-rate-tag { display: inline-flex; align-items: center; padding: .125rem .375rem; font-size: .625rem; font-weight: 600; line-height: 1.5; border-radius: .25rem; white-space: nowrap; flex-shrink: 0; }
#model-list .success-rate-tag.rate-high { color: #34d399; background: #34d39926; border: 1px solid rgba(52,211,153,.25); }
#model-list .success-rate-tag.rate-mid { color: #fbbf24; background: #fbbf2426; border: 1px solid rgba(251,191,36,.25); }
#model-list .success-rate-tag.rate-low { color: #f87171; background: #f8717126; border: 1px solid rgba(248,113,113,.25); }
#model-list .success-rate-tag.model-rate-planned { color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); font-weight: 500; }
#model-list .model-no-more { text-align: center; padding: .75rem 0; color: rgba(255,255,255,.25); font-size: .6875rem; }
#model-list .my-model-toolbar { position: static; padding: 0 .75rem .5rem; background: none; }
#model-list .my-model-add-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: .375rem; padding: .625rem .75rem; border: 1px solid rgba(0,202,224,.3); border-radius: .625rem; background: linear-gradient(135deg,#00cae029,#00a8b814); color: #00cae0; font-size: .75rem; font-weight: 600; cursor: pointer; transition: all .2s ease; }
#model-list .my-model-add-btn:hover { border-color: #00cae08c; background: linear-gradient(135deg,#00cae03d,#00a8b824); box-shadow: 0 0 1rem #00cae01f; }
#model-list .my-model-add-btn svg { width: .875rem; height: .875rem; }
.model-hover-card { position: fixed; z-index: 10002; width: auto; min-width: 12rem; max-width: 20rem; padding: .625rem .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: .625rem; background: linear-gradient(180deg,#1c202afa,#12161efa); box-shadow: 0 .625rem 1.75rem #0000008c; pointer-events: none; word-break: break-word; animation: model-hover-card-fade .15s ease; }
@keyframes model-hover-card-fade { from { opacity: 0; } to { opacity: 1; } }
.model-hover-card-name { font-size: .8125rem; font-weight: 600; color: #fff; line-height: 1.45; }
.model-hover-card-desc { margin-top: .375rem; font-size: .6875rem; color: rgba(255,255,255,.6); line-height: 1.55; white-space: pre-wrap; }
html[data-display-theme="light"] #model-list .boli-fuceng { background: rgba(0,0,0,.08); }
html[data-display-theme="light"] #model-list .boli-fuceng.boli-fuceng-xuanfu { border-color: rgba(0,0,0,.06); background: rgba(0,0,0,.03); }
html[data-display-theme="light"] #model-list .model-icon-wrapper { background: linear-gradient(145deg,#282c34,#1c1f26); box-shadow: 0 1px 4px #0000001f, 0 0 0 1px #0000000a; }
html[data-display-theme="light"] #model-list .model-item:hover:not(.model-item-active) .model-icon-wrapper { background: linear-gradient(145deg,#30343e,#21242c); box-shadow: 0 2px 6px #00000026, 0 0 0 1px #0000000f; }
html[data-display-theme="light"] #model-list .model-item-active .model-icon-wrapper { background: linear-gradient(145deg,#1e2a34,#121c26); box-shadow: 0 0 0 1px #00a1c259, 0 2px 8px #00a1c22e; }
html[data-display-theme="light"] #model-list .model-name { color: rgba(0,0,0,.88); }
html[data-display-theme="light"] #model-list .model-description { color: rgba(0,0,0,.55); }
html[data-display-theme="light"] #model-list .model-tag-chat { color: #0e7490; }
html[data-display-theme="light"] #model-list .model-tag-image { background: #9333ea1a; color: #7c3aed; border-color: #9333ea40; }
html[data-display-theme="light"] #model-list .model-tag-video { background: #ea580c1a; color: #c2410c; border-color: #ea580c40; }
html[data-display-theme="light"] #model-list .model-tag-audio { background: #16a34a1a; color: #15803d; border-color: #16a34a40; }
html[data-display-theme="light"] #model-list .success-rate-tag.rate-high { color: #059669; background: #0596691a; border-color: #05966933; }
html[data-display-theme="light"] #model-list .success-rate-tag.rate-mid { color: #a16207; background: #ca8a041a; border-color: #ca8a0433; }
html[data-display-theme="light"] #model-list .zhiding-btn { background: #fff; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 2px 8px #0000000f; color: #646e82; }
html[data-display-theme="light"] #model-list .zhiding-btn:hover, html[data-display-theme="light"] #model-list .zhiding-btn.zhiding-active { background: #fef3c7; border-color: #a1620759; color: #a16207; }
html[data-display-theme="light"] #model-list .model-no-more { color: rgba(0,0,0,.3); }
html[data-display-theme="light"] .model-hover-card { border-color: #0000001a; background: linear-gradient(180deg,#fafcfffa,#f0f3fafa); box-shadow: 0 .625rem 1.75rem #0f172a2e; }
html[data-display-theme="light"] .model-hover-card-name { color: rgba(0,0,0,.88); }
html[data-display-theme="light"] .model-hover-card-desc { color: rgba(0,0,0,.6); }
/* Topbar audited against the reference signed-out state (2026-10-05, v35). */
.workspace-topbar .task-list-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4375rem; width: 8.75rem; min-width: 8.75rem; height: 2.25rem; box-sizing: border-box; padding: 0 1rem; border: 0; border-radius: 1.125rem; background: linear-gradient(135deg, #ffd700, #f7931a); color: #0d0d0d; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 12px #ffd70059, inset 0 1px 0 rgba(255,255,255,.3); transition: .2s cubic-bezier(.4,0,.2,1); }
.workspace-topbar .task-list-button[hidden] { display: none; }
.workspace-topbar .task-list-button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px #ffd70066, inset 0 1px 0 rgba(255,255,255,.3); }
.workspace-topbar .task-list-button:active { transform: translateY(0) scale(.98); }
.task-list-icon { flex: 0 0 auto; width: 1.1111rem; height: 1.1111rem; }
.workspace-topbar .guide-button { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; box-sizing: border-box; padding: 0; border: 1px solid rgba(255,215,0,.3); border-radius: 1.125rem; background: linear-gradient(135deg, rgba(255,215,0,.16), rgba(247,147,26,.2)); color: #ffd76a; box-shadow: 0 2px 10px #ffd70029, inset 0 1px 0 rgba(255,255,255,.18); backdrop-filter: blur(8px); transition: .2s cubic-bezier(.4,0,.2,1); }
.workspace-topbar .guide-button:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,215,0,.22), rgba(247,147,26,.28)); border-color: rgba(255,215,0,.48); color: #ffe9a3; box-shadow: 0 4px 14px #ffd7003d, inset 0 1px 0 rgba(255,255,255,.24); }
.workspace-topbar .guide-button:active { transform: translateY(0) scale(.98); }
.workspace-topbar .guide-button .control-icon { width: 1rem; height: 1rem; }

.denglu-trigger { position: relative; height: 3.25rem; padding: 0; border: none; background: none; cursor: pointer; border-radius: 62.5rem; -webkit-tap-highlight-color: transparent; transition: transform .3s cubic-bezier(.34,1.56,.64,1); flex: 0 0 auto; }
.denglu-trigger[hidden] { display: none; }
.denglu-trigger:hover { transform: translateY(-0.125rem); }
.denglu-trigger:active { transform: scale(.96); }
.denglu-trigger-halo { position: absolute; inset: -0.25rem; border-radius: inherit; background: radial-gradient(60% 60%, rgba(251,191,36,.35), transparent 70%); filter: blur(0.5rem); opacity: .8; pointer-events: none; }
.denglu-trigger-core { position: relative; height: 100%; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1.125rem 0 0.9375rem; border-radius: inherit; border: 0.0625rem solid rgba(251,191,36,.55); background: radial-gradient(120% 120% at 30% 25%, rgba(255,255,255,.12), rgba(255,255,255,0) 65%), linear-gradient(135deg, rgba(251,191,36,.92), rgba(245,158,11,.92)); color: #1a1206; box-shadow: 0 0.5rem 1.5rem rgba(245,158,11,.28), inset 0 0.0625rem 0 rgba(255,255,255,.35); }
.denglu-trigger-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.denglu-trigger-label { font-size: 0.875rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
html[data-display-theme="light"] .denglu-trigger-core { border-color: rgba(99,102,241,.35); background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 0.5rem 1.25rem rgba(79,70,229,.28), inset 0 0.0625rem 0 rgba(255,255,255,.25); }
html[data-display-theme="light"] .denglu-trigger-halo { background: radial-gradient(60% 60%, rgba(99,102,241,.3), transparent 70%); }

body.signed-out .top-actions { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 80; display: flex; align-items: center; gap: 0.75rem; margin: 0; }
body.signed-out #top-video-action, body.signed-out #top-membership-action { display: none; }
body.signed-out .top-actions #top-app-action { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 0.0625rem solid rgba(255,255,255,.12); border-radius: 50%; background: radial-gradient(120% 120% at 30% 25%, rgba(255,255,255,.08), rgba(255,255,255,0) 65%), linear-gradient(155deg, rgba(30,32,40,.85), rgba(20,22,28,.85)); backdrop-filter: blur(1.25rem) saturate(1.4); box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.35), inset 0 0.0625rem 0 rgba(255,255,255,.08); transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s; }
body.signed-out .top-actions #top-app-action:hover, body.signed-out .top-actions #top-app-action[aria-expanded="true"] { transform: translateY(-0.125rem) scale(1.03); border-color: rgba(0,202,224,.55); box-shadow: 0 0.75rem 1.875rem rgba(0,0,0,.45), 0 0 1.5rem rgba(0,202,224,.35), inset 0 0.0625rem 0 rgba(255,255,255,.12); }
body.signed-out .top-actions #top-app-action:active { transform: translateY(0) scale(.96); }
body.signed-out #top-app-action .grid-icon { width: 1.625rem; height: 1.625rem; filter: drop-shadow(0 0 0.375rem rgba(0,202,224,.35)); transition: transform .5s cubic-bezier(.4,0,.2,1); }
body.signed-out #top-app-action:hover .grid-icon { transform: rotate(90deg); }
body.signed-out #top-app-action[aria-expanded="true"] .grid-icon { transform: rotate(45deg); }

@media (max-width: 450px) {
  body.signed-out .top-actions { top: 0.75rem; right: 0.75rem; }
  .workspace-topbar .task-list-button { position: fixed; top: 1.75rem; left: 4rem; z-index: 50; }
  .workspace-topbar .task-list-button:not([hidden]) ~ .guide-button { position: fixed; top: 1.75rem; left: 13.25rem; z-index: 50; }
  body.sidebar-open .workspace-topbar .task-list-button, .app-shell:has(.sidebar.mobile-open) .workspace-topbar .task-list-button { z-index: 40; }
}
/* v35b: desktop top-left actions absolutely placed inside main area, matching reference .top-left-actions (left 1.25rem, top 1.75rem). */
.workspace-topbar .task-list-button span { margin: 0; font-size: inherit; vertical-align: baseline; }
.denglu-trigger { font-family: Arial, sans-serif; font-size: 13.3333px; }
@media (min-width: 451px) {
  .workspace-topbar .task-list-button { position: absolute; top: 1.75rem; left: 1.25rem; z-index: 50; }
  .workspace-topbar .task-list-button:not([hidden]) ~ .guide-button { position: absolute; top: 1.75rem; left: 10.5rem; z-index: 50; }
}@media (min-width: 451px) {
  body.sidebar-collapsed .workspace-topbar .task-list-button { left: 3.6rem; }
  body.sidebar-collapsed .workspace-topbar .task-list-button:not([hidden]) ~ .guide-button { left: 12.85rem; }
}
@media (max-width: 450px) { body.sidebar-open .top-actions { opacity: 0; pointer-events: none; } }

/* Signed-in phone actions occupy the reference's independent top-right dock,
   rather than competing with new-chat/history/guide in the grid. */
@media (max-width: 450px) {
  body:not(.signed-out) .top-actions { position: fixed; top: .75rem; right: .75rem; z-index: 80; display: flex; align-items: center; gap: .75rem; margin: 0; }
  body:not(.signed-out) .top-actions #top-video-action { display: none; }
  body:not(.signed-out) .top-actions #top-membership-action { display: flex; flex: 0 0 auto; width: calc(3.25rem + 2px); height: 3.25rem; padding: 0; }
  body:not(.signed-out) .top-actions #top-membership-action .gem-action-icon { width: 1.75rem; height: 1.75rem; }
  body:not(.signed-out) .top-actions #top-app-action { display: grid; place-items: center; flex: 0 0 auto; width: 3.25rem; height: 3.25rem; padding: 0; }
}
