/* MQ-UI-20261018-01：仅普通后台框架；客户主题、专业预览保留自身设计。 */
.shell{--blue:#2563EB;--border:#E2E8F0;--muted:#64748B;background:#F6F8FB;color:#334155}
.shell .topbar,.shell .sidebar,.shell .panel{background:#fff}
.shell .breadcrumbs,.shell .footer,.shell .card-note,.shell .field small,.shell .field>span,.shell .site-info p,.shell .stat-label,.shell .stat small,.shell .table-title small,.shell .data-table td,.shell .data-table th,.shell .table-footer{color:#64748B}
.shell .page-heading h1,.shell .panel-head h2,.shell .table-title strong,.shell .site-info strong,.shell .nav-group summary{color:#0F172A}
.shell .btn{min-height:40px;color:#334155;border-color:#CBD5E1}
.shell .btn.primary{background:#2563EB;border-color:#2563EB;color:white}
.shell .btn.primary:hover{background:#1D4ED8;border-color:#1D4ED8}
.shell .btn.ghost{border-color:transparent}
.shell .btn.danger{color:#B91C1C;border-color:#B91C1C}
.shell .text-link{color:#2563EB}
.shell .pill.blue{color:#1D4ED8;background:#EFF6FF}
.shell .pill.green{color:#15803D;background:#F0FDF4}
.shell .pill.orange{color:#B45309;background:#FFFBEB}
.shell .pill.red{color:#B91C1C;background:#FEF2F2}
.shell .pill.neutral{color:#64748B;background:#F1F5F9}
.shell .field input,.shell .field select,.shell .field textarea,.shell .search-field{border-color:#64748B;color:#334155}
.shell .field input:focus,.shell .field select:focus,.shell .field textarea:focus,.shell .search-field:focus{border-color:#2563EB;box-shadow:0 0 0 3px #EFF6FF}
.shell :focus-visible{outline:2px solid #2563EB;outline-offset:3px}
.shell .nav-group{margin:3px 0}
.shell .nav-group summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:11px 12px;font-size:13px;font-weight:550;min-height:42px;border-radius:7px}
.shell .nav-group summary::-webkit-details-marker{display:none}
.shell .nav-group summary:hover{background:#F6F8FB}
.shell .nav-group summary>svg{color:#64748B;width:17px;height:17px}
.shell .nav-arrow{margin-left:auto;display:grid;place-items:center;color:#64748B}
.shell .nav-arrow svg{width:14px;height:14px;transform:rotate(-90deg);transition:transform 160ms}
.shell .nav-group[open]>.nav-arrow svg,.shell .nav-group[open]>summary .nav-arrow svg{transform:rotate(0)}
.shell .nav-children{padding:1px 0 5px}
.shell .nav-children .nav-item{padding:10px 12px 10px 36px;gap:11px;min-height:40px;margin:2px 0;color:#64748B}
.shell .nav-children .nav-item.active{color:#2563EB;background:#EFF6FF}
.shell .nav-dot{width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.shell .nav-item .count{background:#EFF6FF;color:#1D4ED8}
.density-control{display:flex;gap:2px;padding:3px;border:1px solid #E2E8F0;border-radius:7px;background:#F6F8FB}
.density-control button{min-height:30px;padding:4px 8px;border-radius:4px;font-size:11px;color:#64748B;white-space:nowrap}
.density-control button[aria-pressed=true]{background:#EFF6FF;color:#1D4ED8;box-shadow:0 1px 3px #0F172A0A}
.shell .sidebar-backdrop{display:none}
.shell .content-list{background:white;padding:20px;min-width:0}
.shell .list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px;flex-wrap:wrap}
.shell .list-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.shell .content-list .tabs{margin:0;border:0;gap:18px;flex-wrap:wrap}
.shell .content-list .tabs button{padding:9px 0;color:#64748B;min-height:40px}
.shell .content-list .tabs button.active{color:#2563EB;border-color:#2563EB}
.shell .content-list .search-wrap{margin-left:auto;flex:0 1 290px}
.shell .content-list .data-table{border:1px solid #E2E8F0}
.shell .content-list .table-footer{padding:16px 0 0;border-top:0}
.shell .content-list .data-table th{background:#F6F8FB}
.shell .content-list .data-table td{height:72px}
.shell .content-list .data-table .text-link{min-height:32px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body:has(.shell)>dialog{--blue:#2563EB;--border:#E2E8F0;--muted:#64748B;color:#334155}
body:has(.shell)>dialog .btn.primary{background:#2563EB;border-color:#2563EB;color:white}
body:has(.shell)>dialog .btn.primary:hover{background:#1D4ED8}
@media(min-width:701px){
 .shell[data-density=compact] .content{padding:22px 24px}
 .shell[data-density=compact] .topbar{height:64px}
 .shell[data-density=compact] .nav-group summary{padding-block:8px;min-height:36px}
 .shell[data-density=compact] .nav-children .nav-item{padding-block:7px;min-height:34px}
 .shell[data-density=compact] .btn{min-height:36px;padding-block:8px}
 .shell[data-density=compact] .panel-head{padding-block:15px}
 .shell[data-density=compact] .panel-body{padding:18px}
 .shell[data-density=compact] .data-table td{padding-block:10px;height:56px}
 .shell[data-density=compact] .data-table .thumb{width:36px;height:36px;font-size:20px}
 .shell[data-density=compact] .field input,.shell[data-density=compact] .field select{padding-block:8px;min-height:36px}
 .shell[data-density=compact] .site-row{padding-block:12px}
 .shell[data-density=compact] .queue-card{padding:16px}
}
@media(max-width:700px){
 .shell .topbar{min-height:68px;height:auto;padding:10px 12px;gap:8px;align-items:center}
 .shell .top-actions{max-width:calc(100% - 44px);flex-wrap:wrap;justify-content:flex-end;gap:6px}
 .shell .top-actions>.pill{display:inline-flex;font-size:9px}
 .shell .density-control button,.shell .icon-btn,.shell .nav-group summary,.shell .nav-children .nav-item{min-height:44px}
 .shell .density-control button{padding-inline:7px}
 .shell .mobile-menu{min-width:36px}
 .shell .sidebar.mobile-open{z-index:45}
 .shell:has(.sidebar.mobile-open) .sidebar-backdrop{display:block;position:fixed;inset:0;background:#0F172A59;z-index:40}
 .shell .content-list{padding:16px}
 .shell .list-toolbar{gap:12px}
 .shell .list-actions{gap:12px;width:100%}
 .shell .content-list .search-wrap{flex:1 0 100%;max-width:none;min-width:0;margin:0}
 .shell .content-list .data-table{min-width:740px}
 .shell .content-list .tabs{gap:16px}
 .shell .content-list .tabs button,.shell .content-list .data-table .text-link,.shell .btn{min-height:44px}
 .shell .field input,.shell .field select,.shell .field textarea,.shell .search-field{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.shell .nav-arrow svg{transition:none}}

.shell .brand small,.shell .page-heading p{color:#64748B}.shell .tip-box.blue{color:#1D4ED8;background:#EFF6FF;border-color:#E2E8F0}.shell .notice,.shell .link-notice{color:#B45309;background:#FFFBEB;border-color:#E2E8F0}

/* MQ-UI-20261018-02：工作台与平台管理列表。 */
.shell .dashboard-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;margin-bottom:20px}
.shell .dashboard-site{display:flex;align-items:center;gap:12px;min-width:0}
.shell .dashboard-site h2{font-size:17px;color:#0F172A}
.shell .dashboard-site p{font-size:11px;color:#64748B;margin-top:6px;overflow-wrap:anywhere}
.shell .dashboard-stats{gap:16px;margin-bottom:20px}
.shell .dashboard-stats .stat{border-color:#E2E8F0}
.shell .dashboard-stats .stat-icon{background:#EFF6FF!important;color:#2563EB!important}
.shell .dashboard-panels .quick-icon{background:#EFF6FF;color:#2563EB}
.shell .dashboard-panels .quick-grid a,.shell .dashboard-panels .mini-title{color:#334155}
.shell .dashboard-panels .queue-mini small,.shell .dashboard-panels .guide-item{color:#64748B}
.shell .dashboard-panels .guide-item b{color:#334155}
.shell .dashboard-panels .guide-num{background:#EFF6FF;color:#1D4ED8}
.shell .dashboard-panels .mini-title{max-width:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.shell .dashboard-panels .site-row{flex-wrap:wrap}
.shell .management-list .table-title strong{max-width:380px;overflow-wrap:anywhere}
.shell .management-list .table-footer{gap:12px;flex-wrap:wrap;line-height:1.8}
.shell .management-list .source-symbol{width:36px;height:36px;background:#EFF6FF;color:#2563EB}
@media(min-width:701px){
 .shell[data-density=compact] .dashboard-context{padding:14px 18px;margin-bottom:16px}
 .shell[data-density=compact] .dashboard-stats{gap:12px;margin-bottom:16px}
 .shell[data-density=compact] .dashboard-stats .stat{padding:13px 16px}
 .shell[data-density=compact] .dashboard-stats .stat strong{font-size:26px;margin-block:3px}
 .shell[data-density=compact] .dashboard-panels,.shell[data-density=compact] .dashboard-panels .stack{gap:16px}
 .shell[data-density=compact] .dashboard-panels .quick-grid{padding-block:16px}
 .shell[data-density=compact] .dashboard-panels .queue-mini{padding-block:10px}
 .shell[data-density=compact] .dashboard-panels .guide-list{gap:12px}
 .shell[data-density=compact] .management-list{padding:16px}
}
@media(max-width:700px){
 .shell .dashboard-context{padding:16px;align-items:flex-start;flex-direction:column;gap:16px}
 .shell .dashboard-site{flex-wrap:wrap}
 .shell .dashboard-context>.actions{width:100%}
 .shell .dashboard-context>.actions .btn{flex:1}
 .shell .dashboard-stats{gap:10px}
 .shell .dashboard-panels .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
 .shell .dashboard-panels .quick-grid a{min-height:76px;justify-content:center}
 .shell .dashboard-panels .site-row .row-actions{width:100%;padding-left:45px}
 .shell .management-list .table-footer{align-items:flex-start;flex-direction:column}
}

/* MQ03: existing mobile navigation, same DOM and draft preserved. */
.shell .sidebar-close{display:none}
@media(max-width:700px){
 .shell .sidebar{padding-top:48px}
 .shell .sidebar-close{display:grid;position:absolute;right:10px;top:6px;min-width:40px;min-height:40px}
 .shell .sidebar-backdrop[hidden]{display:none!important}
}

/* MQ-UI-20261019-03 原聊天复核：位置、子页导航与后台反馈；不改客户主题。 */
.shell .breadcrumbs{display:flex;min-width:0;line-height:1.6}
.shell .breadcrumbs strong{overflow-wrap:anywhere;color:#334155}
.shell .rolebar a{color:#64748B}
.shell .rolebar a.active{color:#1D4ED8;background:#EFF6FF}
.shell .field>span{color:#334155}
.shell .source-info small,.shell .guide-item,.shell .queue-meta,.shell .preview-caption,.shell .template-text p,.shell .site-card-body>p{color:#64748B}
.shell .guide-item b{color:#334155}
.shell .guide-num,.shell .source-symbol{color:#1D4ED8;background:#EFF6FF}
.shell .check-result{color:#334155;background:#F6F8FB}
.shell .form-foot{flex-wrap:wrap}
body:has(.shell)>dialog .dialog-head h2{color:#0F172A;overflow-wrap:anywhere}
body:has(.shell)>dialog .dialog-actions{flex-wrap:wrap;border-color:#E2E8F0;background:#F6F8FB}
body:has(.shell)>dialog .btn{min-height:40px;border-color:#CBD5E1;color:#334155}
body:has(.shell)>dialog .btn.primary{background:#2563EB;border-color:#2563EB;color:#fff}
body:has(.shell)>dialog .btn.danger{color:#B91C1C;border-color:#B91C1C}
body:has(.shell)>dialog .card-note,body:has(.shell)>dialog .field small,body:has(.shell)>dialog .guide-item{color:#64748B}
body:has(.shell)>dialog .field>span{color:#334155}
body:has(.shell)>dialog .field input{border-color:#64748B;color:#334155}
body:has(.shell)>dialog .field input:focus{border-color:#2563EB;box-shadow:0 0 0 3px #EFF6FF}
body:has(.shell)>dialog .tip-box.blue{color:#1D4ED8;background:#EFF6FF;border-color:#E2E8F0}
body:has(.shell)>#toasts .toast{color:#1D4ED8;background:#EFF6FF;border:1px solid #CBD5E1}
body:has(.shell)>#toasts .toast.error{color:#B91C1C;background:#FEF2F2;border-color:#B91C1C}
.storage-feedback{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin-bottom:20px;color:#B91C1C;background:#FEF2F2;border:1px solid #B91C1C;border-radius:8px;line-height:1.8}
.storage-feedback[hidden]{display:none}
.storage-feedback strong{font-size:14px}
.storage-feedback p{font-size:12px;margin-top:4px;overflow-wrap:anywhere}
@media(max-width:700px){.storage-feedback{align-items:flex-start;flex-direction:column;gap:12px}}

/* v1.6：品牌及身份在侧栏识别层；工作区与现有账号在顶栏，当前位置置于下方。 */
.shell .workspace-heading{display:flex;align-items:center;gap:9px;min-width:0;color:#0F172A;font-size:13px}
.shell .workspace-heading img{width:25px;height:25px;object-fit:contain;display:none}
.shell .account-control{display:flex;align-items:center;gap:8px;padding-left:12px;border-left:1px solid #E2E8F0;min-width:0}
.shell .account-control>span{min-width:0}
.shell .account-control small{display:block;font-size:10px;color:#64748B;margin-top:3px}
.shell .account-control .avatar{width:30px;height:30px;background:#EFF6FF;color:#1D4ED8;font-size:12px}
.shell .main>.breadcrumbs{min-height:43px;padding:12px 36px 0;gap:9px;font-size:12px}
.shell .content{padding-top:20px}
@media(min-width:701px) and (max-width:1200px){
 .shell .main>.breadcrumbs{padding-inline:24px}
 .shell .topbar,.shell[data-density=compact] .topbar{height:auto;min-height:74px;flex-wrap:wrap;padding-block:12px}
 .shell .top-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
}
@media(max-width:700px){
 .shell .workspace-heading{font-size:12px;flex:1}
 .shell .workspace-heading img{display:block}
 .shell .top-actions{flex-basis:100%;max-width:none;justify-content:flex-end}
 .shell .account-control{padding-left:7px;gap:5px}
 .shell .account-control small{display:none}
 .shell .main>.breadcrumbs{padding:12px 16px 0;min-height:38px;font-size:12px}
}
@media(min-width:701px) and (max-width:1000px){
 .shell .topbar,.shell[data-density=compact] .topbar{height:auto;min-height:74px;flex-wrap:wrap;padding-block:12px}
 .shell .top-actions{margin-left:auto}
}
@media(max-width:700px){
 .shell .topbar{flex-wrap:wrap}
 .shell .breadcrumbs{order:3;flex-basis:100%;gap:8px;padding:3px 0 0;font-size:12px}
 .shell .top-actions{margin-left:auto}
 body:has(.shell)>dialog .btn{min-height:44px}
 body:has(.shell)>dialog .field input{font-size:16px}
}
