
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f7f8fa; color: #333; }
    
    .app { display: flex; min-height: 100vh; }
    .sidebar { width: 268px; background: linear-gradient(180deg, #1e1e2f 0%, #2d2d44 50%, #1e1e2f 100%); padding: 0; position: fixed; height: 100vh; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
    .sidebar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
    .main { flex: 1; margin-left: 268px; padding: 24px; background: #f7f8fa; }
    
    .logo-area { padding: 28px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
    .logo-area::after { content: ''; position: absolute; bottom: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); }
    .logo-area h1 { font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
    .logo-area .subtitle { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
    .user-info { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(10px); }
    .user-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4); }
    .user-detail { flex: 1; }
    .user-name { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 2px; }
    .user-role { font-size: 11px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 6px; }
    .user-role::before { content: ''; width: 6px; height: 6px; background: linear-gradient(135deg, #11998e, #38ef7d); border-radius: 50%; }
    
    .nav-section { padding: 16px 0; position: relative; }
    .nav-title { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1.5px; padding: 12px 24px 8px; font-weight: 600; }
    
    .nav-group { margin-bottom: 6px; }
    .nav-group-header { padding: 14px 24px; display: flex; align-items: center; gap: 14px; cursor: pointer; color: rgba(255,255,255,0.7); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
    .nav-group-header::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 0; background: linear-gradient(180deg, #4f46e5, #6366f1); border-radius: 0 2px 2px 0; transition: height 0.3s; }
    .nav-group-header:hover { background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%); color: rgba(255,255,255,0.95); }
    .nav-group-header:hover::before { height: 24px; }
    .nav-group-header.active { color: #fff; }
    .nav-group-header.active::before { height: 28px; }
    .nav-group-icon { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%); display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
    .nav-group-header.active .nav-group-icon { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4); }
    .nav-group-name { flex: 1; font-size: 14px; font-weight: 500; }
    .nav-group-arrow { font-size: 14px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.5; }
    .nav-group-arrow.open { transform: rotate(90deg); opacity: 0.8; }
    
    .nav-group-items { display: none; padding: 8px 0; }
    .nav-group-items.open { display: block; }
    
    .nav-item { padding: 13px 24px 13px 56px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: rgba(255,255,255,0.6); font-size: 14px; position: relative; margin: 3px 16px; border-radius: 12px; min-height: 48px; }
    .nav-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 0; height: 24px; background: linear-gradient(180deg, #4f46e5, #6366f1); border-radius: 0 4px 4px 0; transition: width 0.3s; }
    .nav-item::after { content: ''; position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: rgba(255,255,255,0.25); border-radius: 50%; transition: all 0.3s; }
    .nav-item:hover { background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%); color: rgba(255,255,255,0.95); }
    .nav-item:hover::before { width: 4px; }
    .nav-item:hover::after { background: #4f46e5; box-shadow: 0 0 8px #4f46e5; }
    .nav-item.active { background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.1) 100%); color: #fff; font-weight: 600; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15), inset 0 1px 0 rgba(255,255,255,0.1); border: 1px solid rgba(79, 70, 229, 0.2); }
    .nav-item.active::before { width: 4px; }
    .nav-item.active::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
    .nav-item.active::before { width: 4px; }
    .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
    .nav-item .badge { margin-left: auto; background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 10px; min-width: 20px; text-align: center; font-weight: 600; box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
    .nav-item .tag-new { margin-left: auto; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 8px; font-weight: 600; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    .nav-item .tag-hot { margin-left: auto; background: linear-gradient(135deg, #f472b6, #ec4899); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 8px; font-weight: 600; box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3); }
    
    .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; background: #fff; padding: 20px 24px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .page-title-area h1 { font-size: 22px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
    .page-title-area .breadcrumb { font-size: 13px; color: #999; }
    .page-actions { display: flex; gap: 12px; }
    
    .btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
    .btn-primary { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4); }
    .btn-success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: #fff; }
    .btn-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; }
    .btn-outline { background: #fff; border: 1px solid #e8e8e8; color: #666; }
    .btn-outline:hover { border-color: #4f46e5; color: #4f46e5; }
    .btn-ghost { background: transparent; color: #4f46e5; }
    .btn-danger { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #fff; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }

    .quality-flag.danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
    .quality-flag.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
    .compliance-mini { margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #dbeafe; background: #f8fafc; display: grid; gap: 6px; color: #475569; font-size: 12px; }
    .compliance-mini b { color: #1e293b; font-size: 13px; }
    .compliance-mini span { display: inline-flex; margin-right: 8px; font-weight: 700; }
    .compliance-mini p { margin: 0; line-height: 1.55; }
    .nav-button { width: 100%; border: 0; appearance: none; font: inherit; text-align: left; }
    .compliance-mini.pass { border-color: #bbf7d0; background: #f0fdf4; }
    .compliance-mini.review { border-color: #fed7aa; background: #fff7ed; }
    .compliance-mini.blocked { border-color: #fecaca; background: #fff1f2; }
    .profile-guide { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(17,153,142,.08)); border: 1px solid rgba(79,70,229,.16); color: #475569; line-height: 1.7; }
    .agent-compute-config-card { background: linear-gradient(135deg, #f8fbff, #eef2ff); border: 1px solid #dbeafe; scroll-margin-top: 18px; }
    .section-focus-highlight { /* 高亮已取消 */ }
    @keyframes sectionFocusPulse { 0% { transform: translateY(-2px); box-shadow: 0 0 0 0 rgba(79,70,229,.36); } 55% { transform: translateY(0); box-shadow: 0 0 0 6px rgba(79,70,229,.16); } 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); } }
    .agent-compute-config-card .form-grid { align-items: end; }
    .agent-compute-config-card input, .agent-compute-config-card select { background: #fff; }
    .profile-guide b { display: block; color: #1e293b; margin-bottom: 4px; font-size: 14px; }
    .publish-account-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: stretch; }
    .publish-account-card { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #e0e7ff; border-radius: 14px; background: linear-gradient(180deg, #fff, #f8fafc); cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,.04); transition: all .18s ease; }
    .publish-account-card:hover { border-color: #4f46e5; box-shadow: 0 12px 28px rgba(79,70,229,.12); transform: translateY(-1px); }
    .publish-account-card input { width: 18px; height: 18px; margin-top: 3px; accent-color: #4f46e5; }
    .publish-account-card.disabled { cursor: not-allowed; opacity: .58; background: #f8fafc; border-style: dashed; box-shadow: none; }
    .publish-account-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
    .publish-account-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .publish-account-head b { color: #1e293b; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .publish-account-head em { flex: 0 0 auto; font-style: normal; color: #4f46e5; background: #eef2ff; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
    .publish-account-card small { color: #64748b; line-height: 1.45; }
    .publish-account-card input:checked + .publish-account-body .publish-account-head b { color: #4f46e5; }
    .publish-builder input[type="datetime-local"].form-input { min-height: 42px; }
    .profile-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
    .profile-field span { font-size: 13px; font-weight: 700; color: #334155; }
    .profile-field em { font-style: normal; font-weight: 600; color: #4f46e5; background: rgba(79,70,229,.10); border-radius: 999px; padding: 2px 7px; margin-left: 4px; font-size: 11px; }
    .profile-field small { color: #64748b; line-height: 1.55; background: #f8fafc; border: 1px dashed #dbe3ef; border-radius: 8px; padding: 8px 10px; }
    .profile-field textarea { min-height: 96px; resize: vertical; }
    .profile-field.full-row { grid-column: 1 / -1; }
    
    .onboarding-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: stretch; margin-bottom: 20px; padding: 26px; border-radius: 22px; background: radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 34%), linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 100%); color: #fff; box-shadow: 0 18px 48px rgba(79,70,229,.26); }
    .onboarding-hero .eyebrow { opacity: .78; letter-spacing: 1.8px; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
    .onboarding-hero h2 { font-size: 28px; margin-bottom: 10px; }
    .onboarding-hero p { line-height: 1.75; opacity: .9; max-width: 760px; }
    .onboarding-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
    .onboarding-score { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(8px); }
    .onboarding-score span { opacity: .82; }
    .onboarding-score b { font-size: 44px; margin: 8px 0; }
    .onboarding-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
    .onboarding-step { display: flex; gap: 13px; padding: 16px; border: 1px solid #e8eef7; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
    .onboarding-step.done { background: linear-gradient(180deg, #f0fdf4, #ffffff); border-color: #bbf7d0; }
    .onboarding-step-index { width: 34px; height: 34px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 800; }
    .onboarding-step.done .onboarding-step-index { background: #22c55e; color: #fff; }
    .onboarding-step-body { min-width: 0; flex: 1; }
    .onboarding-step-title { display: flex; justify-content: space-between; gap: 8px; color: #1e293b; font-weight: 800; margin-bottom: 6px; }
    .onboarding-step-title span { color: #64748b; font-weight: 700; }
    .onboarding-step p { color: #64748b; line-height: 1.6; min-height: 42px; }
    .onboarding-step-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
    @media (max-width: 900px) { .onboarding-hero { grid-template-columns: 1fr; } }

    .config-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px; margin-bottom: 20px; border-radius: 18px; background: linear-gradient(135deg, #eef2ff, #f8fafc); border: 1px solid #dbeafe; }
    .config-hero h2 { margin: 6px 0 8px; color: #1e293b; font-size: 24px; }
    .config-hero p { color: #64748b; line-height: 1.7; max-width: 820px; }
    .config-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .config-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
    .config-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; }
    .config-tabs b { color: #4f46e5; }
    .config-json-editor { min-height: 460px; font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.55; white-space: pre; }
    .exception-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .exception-overview-head b { color: #1e293b; font-size: 16px; }
    .exception-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
    .exception-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid #e8eef7; background: #fff; }
    .exception-card.warning { border-color: #fed7aa; background: #fff7ed; }
    .exception-card.high { border-color: #fecaca; background: #fff7f7; }
    .exception-card b { color: #1e293b; }
    .exception-card p { margin: 5px 0; color: #64748b; line-height: 1.5; font-size: 12px; }
    .exception-card small { color: #4f46e5; }
    .exception-card strong { min-width: 44px; text-align: center; font-size: 24px; color: #4f46e5; }
    .exception-card.warning strong { color: #f97316; }
    .exception-card.high strong { color: #dc2626; }
    .exception-section { padding: 14px; border: 1px solid #e8eef7; border-radius: 14px; background: #f8fafc; }
    .exception-section + .exception-section { margin-top: 10px; }
    .exception-section b { color: #1e293b; }
    .exception-section p { margin: 8px 0 0; color: #64748b; line-height: 1.55; }
    .config-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
    .config-tab { border: 1px solid #e0e7ff; background: #f8fafc; border-radius: 999px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 8px; color: #475569; font-weight: 700; cursor: pointer; transition: all .2s; }
    .config-tab b { min-width: 22px; height: 22px; border-radius: 999px; background: #e0e7ff; color: #4f46e5; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
    .config-tab.active { background: #4f46e5; color: #fff; border-color: #4f46e5; box-shadow: 0 10px 24px rgba(79,70,229,.18); }
    .config-tab.active b { background: rgba(255,255,255,.22); color: #fff; }
    .visual-config-editor { border: 1px solid #e8eef7; border-radius: 16px; background: #fff; overflow: hidden; }
    .visual-config-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, #f8fafc, #eef2ff); border-bottom: 1px solid #e8eef7; }
    .visual-config-head b { color: #1e293b; font-size: 16px; }
    .visual-config-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
    .visual-config-table { overflow-x: auto; }
    .visual-config-table table { width: 100%; min-width: 860px; border-collapse: collapse; }
    .visual-config-table th { background: #f8fafc; color: #475569; font-weight: 800; text-align: left; padding: 12px; border-bottom: 1px solid #e8eef7; white-space: nowrap; }
    .visual-config-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
    .config-input { width: 100%; min-width: 120px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 10px; color: #334155; background: #fff; outline: none; }
    .config-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
    .config-list-input { min-height: 58px; resize: vertical; line-height: 1.45; }
    .empty-config-row { text-align: center; color: #94a3b8; padding: 28px !important; }
    @media (max-width: 900px) { .config-hero { grid-template-columns: 1fr; } .config-actions { justify-content: flex-start; } .visual-config-head { align-items: flex-start; flex-direction: column; } }

    .todo-workbench { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 18px; }
    .todo-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid #e8eef7; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: 0 8px 22px rgba(15,23,42,.04); }
    .todo-card.high { border-color: #fecaca; background: linear-gradient(180deg, #fff7f7, #fff); }
    .todo-card.warning { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed, #fff); }
    .todo-icon { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 900; }
    .todo-card.high .todo-icon { background: #fee2e2; color: #dc2626; }
    .todo-card.warning .todo-icon { background: #ffedd5; color: #f97316; }
    .todo-body { min-width: 0; }
    .todo-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
    .todo-title span { min-width: 22px; height: 22px; border-radius: 999px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-size: 12px; }
    .todo-card.high .todo-title span { background: #fee2e2; color: #dc2626; }
    .todo-card.warning .todo-title span { background: #ffedd5; color: #f97316; }
    .todo-body p { color: #64748b; font-size: 13px; line-height: 1.55; margin: 0; }
    @media (max-width: 760px) { .todo-card { grid-template-columns: 34px 1fr; } .todo-card .btn { grid-column: 1 / -1; justify-content: center; } }

    .competitor-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
    .competitor-card { background: linear-gradient(180deg, #ffffff, #f8fafc); border: 1px solid #e8eef7; border-radius: 14px; padding: 16px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
    .competitor-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
    .competitor-card-head b { color: #1e293b; }
    .competitor-card-head span { color: #f97316; background: #fff7ed; border-radius: 999px; padding: 4px 8px; font-size: 12px; }
    .competitor-bars label { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin: 8px 0 5px; }
    .competitor-bars em { font-style: normal; font-weight: 700; color: #334155; }
    .competitor-card p { color: #475569; line-height: 1.6; margin: 10px 0; }
    .competitor-card small { color: #64748b; }
    .competitor-row .pill { margin-left: 8px; }
    .competitor-report-card { border: 1px solid #e0e7ff; background: linear-gradient(180deg, #ffffff, #f8fafc); }
    .competitor-report-table { margin: 14px 0 4px; border-radius: 14px; overflow-x: auto; border: 1px solid #e8eef7; }
    .competitor-report-table table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; }
    .competitor-report-table th { background: #eef2ff; color: #334155; font-weight: 800; text-align: left; padding: 12px 14px; border-bottom: 1px solid #dbeafe; }
    .competitor-report-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #475569; }
    .competitor-report-table tr:last-child td { border-bottom: none; }
    .competitor-report-table .brand-cell { color: #4f46e5; font-weight: 800; background: #f8fafc; }

    .stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
    .stats-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
    .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
    .stat-card.blue::before { background: linear-gradient(90deg, #4f46e5, #6366f1); }
    .stat-card.green::before { background: linear-gradient(90deg, #11998e, #38ef7d); }
    .stat-card.orange::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
    .stat-card.cyan::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
    .stat-card.red::before { background: linear-gradient(90deg, #ff9a9e, #fecfef); }
    .stat-card.purple::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
    .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
    .stat-icon.blue { background: rgba(79, 70, 229, 0.1); }
    .stat-icon.green { background: rgba(17, 153, 142, 0.1); }
    .stat-icon.orange { background: rgba(240, 147, 251, 0.1); }
    .stat-icon.cyan { background: rgba(79, 172, 254, 0.1); }
    .stat-icon.red { background: rgba(255, 154, 158, 0.1); }
    .stat-icon.purple { background: rgba(168, 85, 247, 0.1); }
    .stat-label { font-size: 13px; color: #475467; margin-bottom: 8px; }
    .stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
    .stat-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
    .stat-change.up { color: #11998e; }
    .stat-change.down { color: #f5576c; }
    
    .content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
    .card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
    .card-title { font-size: 16px; font-weight: 600; color: #1a1a2e; display: flex; align-items: center; gap: 8px; }
    .card-actions { display: flex; gap: 8px; }
    
    .task-list { display: flex; flex-direction: column; gap: 12px; }
    .task-item { display: flex; align-items: center; padding: 16px; background: #f8f9fc; border-radius: 10px; border: 1px solid #f0f0f0; transition: all 0.2s; }
    .task-item:hover { border-color: #4f46e5; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1); }
    .task-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 14px; flex-shrink: 0; }
    .task-info { flex: 1; min-width: 0; }
    .task-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .task-meta { font-size: 12px; color: #999; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .keyword-save-tip { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.6; }
    .keyword-save-tip.saved { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
    .prep-output-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
    .prep-output-card { border: 1px solid #e8eef7; border-radius: 14px; padding: 14px; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: 0 8px 20px rgba(15,23,42,.04); }
    .prep-output-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
    .prep-output-head b { color: #1e293b; }
    .prep-output-head p { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.5; }
    .article-workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .feed-workorder-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
    .feed-workorder .task-info { min-width: 240px; }
    .auto-publish-panel { margin-top: 12px; padding: 12px; border: 1px solid rgba(79,70,229,.18); background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(17,153,142,.05)); border-radius: 12px; }
    .auto-publish-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #1a1a2e; font-size: 13px; font-weight: 700; }
    .auto-publish-title small { color: #4f46e5; font-weight: 600; }
    .auto-publish-row { display: grid; grid-template-columns: 1.1fr .8fr 2fr; gap: 10px; align-items: start; padding: 10px; background: #fff; border: 1px solid #eef2ff; border-radius: 10px; margin-top: 8px; }
    .auto-publish-row.success { border-left: 3px solid #11998e; }
    .auto-publish-row.failed { border-left: 3px solid #f5576c; }
    .auto-publish-main b { display: block; color: #1f2937; font-size: 13px; margin-bottom: 3px; }
    .auto-publish-main span, .auto-publish-state span, .auto-publish-detail span { display: block; color: #64748b; font-size: 12px; line-height: 1.55; word-break: break-all; }
    .auto-publish-badge { display: inline-block !important; width: fit-content; padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-bottom: 4px; }
    .auto-publish-badge.success { background: rgba(17,153,142,.12); color: #11998e; }
    .auto-publish-badge.failed { background: rgba(245,87,108,.12); color: #f5576c; }
    table .btn-sm { margin: 2px; }
    table a { color: #4f46e5; text-decoration: none; }
    .task-status { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; flex-shrink: 0; }
    .status-running { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
    .status-done { background: rgba(17, 153, 142, 0.1); color: #11998e; }
    .status-pending { background: rgba(250, 173, 20, 0.1); color: #faad14; }
    .status-error { background: rgba(245, 87, 108, 0.1); color: #f5576c; }
    
    .progress-bar { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
    .progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
    .progress-fill.purple { background: linear-gradient(90deg, #4f46e5, #6366f1); }
    .progress-fill.green { background: linear-gradient(90deg, #11998e, #38ef7d); }
    .progress-fill.orange { background: linear-gradient(90deg, #f093fb, #f5576c); }
    
    .steps { display: flex; align-items: flex-start; gap: 0; }
    .step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
    .step-number { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; z-index: 1; }
    .step.done .step-number { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
    .step.active .step-number { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
    .step.wait .step-number { background: #f0f0f0; color: #999; }
    .step-line { position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: #e8e8e8; }
    .step.done .step-line { background: linear-gradient(90deg, #11998e, #38ef7d); }
    .step-label { font-size: 12px; color: #666; margin-top: 10px; text-align: center; white-space: nowrap; }
    
    .tabs { display: flex; gap: 24px; border-bottom: 1px solid #e8e8e8; margin-bottom: 20px; }
    .tab { padding: 12px 0; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
    .tab:hover { color: #4f46e5; }
    .tab.active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 500; }
    .tab .count { background: #f0f0f0; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 6px; }
    .tab.active .count { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
    
    .platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .platform-card { background: #f8f9fc; border-radius: 10px; padding: 16px; text-align: center; border: 1px solid #f0f0f0; transition: all 0.2s; cursor: pointer; position: relative; }
    .platform-card:hover { border-color: #4f46e5; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15); }
    .platform-card.connected { border-color: #11998e; }
    .platform-icon { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: #fff; }
    .platform-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; }
    .platform-status { font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .status-dot { width: 8px; height: 8px; border-radius: 50%; }
    .dot-success { background: #11998e; }
    .dot-warning { background: #faad14; }
    .dot-error { background: #f5576c; }
    .dot-gray { background: #d9d9d9; }
    .platform-count { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-top: 8px; }
    .connected-badge { position: absolute; top: -6px; right: -6px; background: #11998e; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; }
    
    .media-category { margin-bottom: 24px; }
    .category-title { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
    .category-title .icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
    
    .ai-tools-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .ai-tool-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; border: 1px solid #e8e8e8; cursor: pointer; transition: all 0.2s; }
    .ai-tool-card:hover { border-color: #4f46e5; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15); transform: translateY(-2px); }
    .ai-tool-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
    .ai-tool-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; }
    .ai-tool-desc { font-size: 12px; color: #999; }
    
    .keyword-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .keyword-tag { padding: 8px 16px; background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1)); color: #4f46e5; border-radius: 20px; font-size: 13px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(79, 70, 229, 0.2); cursor: pointer; }
    .keyword-tag .count { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
    
    .ai-assistant { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4); transition: all 0.3s; z-index: 1000; }
    .ai-assistant:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5); }
    
    .diagnostic-card { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); border-radius: 12px; padding: 20px; color: #fff; }
    .diagnostic-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .diagnostic-title { font-size: 16px; font-weight: 600; }
    .diagnostic-score { font-size: 36px; font-weight: 700; }
    .diagnostic-label { font-size: 12px; opacity: 0.8; }
    .diagnostic-items { display: flex; flex-direction: column; gap: 10px; }
    .diagnostic-item { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
    .diagnostic-item-name { font-size: 13px; }
    .diagnostic-item-value { font-size: 14px; font-weight: 600; }
    
    .quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-action { background: #f8f9fc; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
    .quick-action:hover { border-color: #4f46e5; background: rgba(79, 70, 229, 0.05); }
    .quick-action-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
    .quick-action-text { font-size: 13px; color: #333; font-weight: 500; }
    
    .page { display: none; }
    .page.active { display: block; }
    
    .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
    .modal-overlay.show { display: flex; }
    .modal { background: #fff; border-radius: 16px; width: 90%; max-width: 800px; max-height: 80vh; overflow: hidden; }
    .modal-header { padding: 20px 24px; border-bottom: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center; }
    .modal-title { font-size: 18px; font-weight: 600; }
    .modal-close { width: 32px; height: 32px; border-radius: 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; }
    
    .recommend-list { display: flex; flex-direction: column; gap: 12px; }
    .recommend-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #f8f9fc; border-radius: 10px; border: 1px solid #f0f0f0; }
    .recommend-rank { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
    .recommend-info { flex: 1; }
    .recommend-keyword { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 2px; }
    .recommend-meta { font-size: 12px; color: #999; }
    .recommend-trend { display: flex; align-items: center; gap: 4px; color: #11998e; font-size: 12px; }
    
    .form-group { margin-bottom: 20px; }
    .form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #333; }
    .form-input { width: 100%; padding: 12px; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 14px; transition: all 0.2s; }
    .form-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
    
    .agent-card { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #e8e8e8; cursor: pointer; transition: all 0.2s; }
    .agent-card:hover { border-color: #4f46e5; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15); }
    .agent-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .agent-avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
    .agent-info { flex: 1; }
    .agent-name { font-size: 15px; font-weight: 600; color: #333; }
    .agent-role { font-size: 12px; color: #4f46e5; }
    .agent-status { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
    .agent-status.online { background: rgba(17, 153, 142, 0.1); color: #11998e; }
    .agent-status.training { background: rgba(250, 173, 20, 0.1); color: #faad14; }
    .agent-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }
    .agent-stats { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
    .agent-stat { text-align: center; }
    .agent-stat-value { font-size: 16px; font-weight: 600; color: #1a1a2e; }
    .agent-stat-label { font-size: 11px; color: #999; }
    
    .pricing-table { width: 100%; border-collapse: collapse; }
    .pricing-table th { background: #f8f9fc; padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; color: #666; border-bottom: 1px solid #e8e8e8; }
    .pricing-table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
    .pricing-table tr:hover td { background: rgba(79, 70, 229, 0.02); }
    .power-value { font-weight: 600; color: #4f46e5; }
    
    .website-preview { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); border-radius: 12px; padding: 24px; color: #fff; position: relative; overflow: hidden; }
    .website-preview::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); }
    .website-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; z-index: 1; }
    .website-preview-title { font-size: 18px; font-weight: 600; }
    .website-preview-badge { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; font-size: 12px; }
    .website-preview-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
    .website-preview-item { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; }
    .website-preview-item-title { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
    .website-preview-item-value { font-size: 16px; font-weight: 600; }
    
    .video-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e8e8e8; }
    .video-thumbnail { height: 140px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; position: relative; }
    .video-play-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 24px; }
    .video-platform-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; }
    .video-status-badge { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
    .video-status-badge.success { background: #11998e; color: #fff; }
    .video-status-badge.pending { background: #faad14; color: #fff; }
    .video-info { padding: 14px; }
    .video-title { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .video-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; }
    
    .chart-container { height: 280px; background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; }
    .chart-placeholder { color: #999; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
    
    .platform-list { display: flex; flex-direction: column; gap: 10px; }
    .platform-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
    .platform-item:last-child { border-bottom: none; }
    .platform-name { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; }
    
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: #f1f1f1; }
    ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
  
.merchant-ops-card{margin-bottom:20px}.ops-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ops-panel{background:#f8f9fc;border:1px solid #eef0f5;border-radius:12px;padding:14px;min-height:150px}.ops-label{font-size:13px;color:#666;font-weight:600;margin-bottom:10px}.ops-list{display:flex;flex-direction:column;gap:8px}.ops-item{display:flex;gap:8px;align-items:flex-start;background:#fff;border-radius:10px;padding:9px;border:1px solid #f0f0f0}.ops-item span{width:20px;height:20px;border-radius:50%;background:rgba(79,70,229,.12);color:#4f46e5;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.ops-item p{font-size:12px;color:#555;line-height:1.5}.trend-bars{height:110px;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;align-items:end}.score-trends{grid-template-columns:repeat(4,1fr);max-width:420px}.trend-bar{height:110px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.trend-bar div{width:100%;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#4f46e5,#6366f1);min-height:18px}.trend-bar span,.trend-bar b{font-size:11px;color:#777}.report-card{margin-top:14px;background:#f8f9fc;border:1px solid #eef0f5;border-radius:12px;padding:14px}.report-card h3{font-size:15px;color:#1a1a2e;margin-bottom:8px}.report-card p{font-size:13px;color:#666;line-height:1.7}.platform-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.agent-business-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mini-metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mini-metric{background:#f8f9fc;border:1px solid #eef0f5;border-radius:12px;padding:14px}.mini-metric-label{font-size:12px;color:#777;margin-bottom:8px}.mini-metric-value{font-size:22px;font-weight:700;color:#1a1a2e}.mini-metric-note{font-size:12px;color:#999;margin-top:4px}.section-label{font-size:13px;font-weight:600;color:#666;margin-bottom:10px}body[data-portal="platform"] .sidebar{background:linear-gradient(180deg,#151827 0%,#252b46 50%,#151827 100%)}body[data-portal="agent"] .sidebar{background:linear-gradient(180deg,#172033 0%,#243c5a 50%,#172033 100%)}body[data-portal="merchant"] .sidebar{background:linear-gradient(180deg,#141f1f 0%,#203b36 50%,#141f1f 100%)}a.btn{text-decoration:none}.hidden{display:none!important}.top-user{display:flex;gap:10px;align-items:center}.toast{position:fixed;right:24px;bottom:24px;background:#1a1a2e;color:#fff;padding:13px 18px;border-radius:12px;opacity:0;transform:translateY(10px);transition:.2s;z-index:3000}.toast.show{opacity:1;transform:translateY(0)}table{width:100%;border-collapse:collapse}th{background:#f8f9fc;padding:14px;text-align:left;color:#666;font-size:13px;border-bottom:1px solid #e8e8e8}td{padding:14px;border-bottom:1px solid #f0f0f0;font-size:13px}.table-wrap{overflow:auto}.content-workspace{display:grid;grid-template-columns:380px 1fr;gap:18px}.article-editor input,.article-editor textarea,.publish-builder input,.publish-builder select{width:100%;border:1px solid #e8e8e8;border-radius:10px;padding:12px;margin-bottom:12px}.article-editor textarea{height:340px;line-height:1.7}.article-card.selected{border-color:#4f46e5;background:rgba(79,70,229,.06)}.publish-builder{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-form textarea{min-height:92px;resize:vertical}.profile-form textarea.full-row{min-height:110px}.full-row{grid-column:1/-1}.checkbox-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.check-card{display:flex;gap:10px;padding:12px;border:1px solid #e8e8e8;border-radius:12px;background:#fff}.check-card.disabled{opacity:.58;cursor:not-allowed;background:#f8fafc;border-color:#e2e8f0}.check-card.disabled *{cursor:not-allowed}.check-card.disabled b{color:#94a3b8}.check-card span{display:flex;flex-direction:column}.check-card small{color:#999}.editor-actions{display:flex;gap:12px}.btn.secondary{background:#1a1a2e;color:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid textarea{grid-column:1/-1;min-height:120px}.tag-list span{display:inline-block;margin:6px;padding:8px 14px;background:rgba(79,70,229,.1);color:#4f46e5;border-radius:20px}.role-switch{display:flex;gap:8px}.role-switch button{padding:8px 12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;cursor:pointer}.ai-assistant{color:#fff;font-size:26px}.editor-empty{min-height:420px;display:flex;align-items:center;justify-content:center;color:#999;background:#f8f9fc;border-radius:12px}.quick-action{border:none;text-align:left}.btn{white-space:nowrap}@media(max-width:1200px){.stats-grid,.platform-grid,.ai-tools-grid{grid-template-columns:repeat(2,1fr)}.content-grid,.content-workspace,.publish-builder{grid-template-columns:1fr}}

.package-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.package-card{background:#f8f9fc;border:1px solid #eef0f5;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:10px}.package-name{font-size:16px;font-weight:700;color:#1a1a2e}.package-price{font-size:28px;font-weight:800;color:#4f46e5}.package-meta{font-size:12px;color:#777}.package-features{display:flex;flex-wrap:wrap;gap:8px}.package-features span{font-size:11px;background:#fff;border:1px solid #e8e8e8;border-radius:14px;padding:4px 8px;color:#666}.diagnosis-list{display:flex;flex-direction:column;gap:10px}.diagnosis-row{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f8f9fc;border:1px solid #eef0f5;border-radius:12px;padding:14px}.diagnosis-row b{font-size:14px;color:#1a1a2e}.diagnosis-row p{font-size:12px;color:#666;line-height:1.6;margin-top:4px}.diagnosis-score{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0}.sparkline{height:46px;display:flex;align-items:flex-end;gap:6px;margin-top:8px}.sparkline span{width:18px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#11998e,#38ef7d);min-height:6px}.muted{font-size:12px;color:#888;line-height:1.6}@media(max-width:1200px){.package-grid{grid-template-columns:1fr}.content-grid,.platform-admin-grid,.agent-business-grid,.agent-money-hero,.business-model-grid{grid-template-columns:1fr}.segment-grid{grid-template-columns:1fr}.mini-metric-grid{grid-template-columns:repeat(2,1fr)}}

.agent-money-hero{display:grid;grid-template-columns:minmax(280px,.8fr) 1.2fr;gap:18px}.profit-board{background:linear-gradient(135deg,#1a1a2e,#4f46e5);color:#fff;border-radius:18px;padding:18px;min-height:210px}.profit-main span{font-size:13px;opacity:.82}.profit-main b{display:block;font-size:38px;margin:8px 0}.profit-main p{font-size:13px;opacity:.9;line-height:1.6}.profit-cost-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.profit-cost-grid span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:10px;font-size:12px}.segment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.segment-card{background:#f8f9fc;border:1px solid #eef0f5;border-radius:14px;padding:14px}.segment-card b{font-size:14px;color:#1a1a2e}.segment-card strong{display:block;font-size:26px;color:#4f46e5;margin:6px 0}.segment-card p{font-size:12px;color:#666;line-height:1.6}.segment-card span{display:inline-block;background:#fff;border:1px solid #eee;border-radius:999px;padding:3px 8px;margin:4px 4px 0 0;font-size:11px;color:#666}.business-model-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.business-model-card{background:linear-gradient(135deg,rgba(17,153,142,.08),rgba(56,239,125,.08));border:1px solid rgba(17,153,142,.16);border-radius:14px;padding:16px}.business-model-card b{font-size:16px;color:#1a1a2e}.business-model-card p{font-size:13px;color:#666;margin:8px 0;line-height:1.6}.business-model-card strong{display:block;color:#11998e;margin-bottom:8px}.business-model-card span{font-size:12px;color:#777}.delivery-highlight{background:linear-gradient(135deg,rgba(79,70,229,.08),rgba(99,102,241,.08));border:1px solid rgba(79,70,229,.16);border-radius:14px;padding:16px}
.entitlement-hero{display:flex;justify-content:space-between;gap:16px;align-items:center;background:linear-gradient(135deg,#1f2a55,#4f46e5);color:#fff;border-radius:18px;padding:18px;margin-bottom:16px}.entitlement-hero h3{font-size:22px;margin:5px 0}.entitlement-hero p{font-size:12px;opacity:.86}.entitlement-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.entitlement-card{background:#fff;border:1px solid #e6eaf5;border-radius:16px;padding:14px}.entitlement-card.limit{border-color:#fecdd3;background:#fff7f7}.entitlement-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.entitlement-card-head b{color:#1f2937}.entitlement-card-head span{font-size:11px;border-radius:999px;padding:4px 8px;background:#ecfdf5;color:#047857;font-weight:700}.entitlement-card.limit .entitlement-card-head span{background:#fff1f2;color:#be123c}.entitlement-card strong{display:block;font-size:20px;color:#111827;margin:10px 0}.entitlement-card p{font-size:12px;color:#64748b}.entitlement-bar{height:8px;background:#eef2ff;border-radius:999px;overflow:hidden;margin-bottom:8px}.entitlement-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#11998e,#38ef7d)}.entitlement-card.limit .entitlement-bar i{background:linear-gradient(90deg,#ff6b6b,#f5576c)}.upgrade-callout{margin-top:14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:14px;color:#9a3412}.upgrade-callout.ok{background:#ecfdf5;border-color:#bbf7d0;color:#047857}.upgrade-callout p{font-size:13px;line-height:1.6;margin:5px 0}.evidence-summary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}.evidence-summary-card{background:#f8fafc;border:1px solid #edf0f7;border-radius:14px;padding:14px}.evidence-summary-card b{display:block;font-size:24px;color:#1f2a55}.evidence-summary-card span{font-size:12px;color:#475569;font-weight:700}.evidence-summary-card p{font-size:11px;color:#64748b;margin-top:4px}.evidence-chain-list{display:flex;flex-direction:column;gap:16px}.evidence-card{background:#fff;border:1px solid #e6eaf5;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(30,41,59,.04)}.evidence-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.evidence-card-head b{font-size:17px;color:#111827}.evidence-card-head p{font-size:12px;color:#64748b;margin-top:4px}.evidence-card-head>span{background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;border-radius:14px;padding:8px 12px;font-weight:800}.evidence-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.evidence-metrics span{background:#f8fafc;border:1px solid #edf0f7;border-radius:999px;padding:6px 10px;font-size:12px;color:#475569}.evidence-timeline{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:14px 0}.evidence-step{background:#f8fafc;border:1px solid #edf0f7;border-radius:13px;padding:10px;position:relative}.evidence-step i{display:block;width:10px;height:10px;border-radius:50%;background:#11998e;margin-bottom:7px}.evidence-step.todo i{background:#f59e0b}.evidence-step b{display:block;font-size:12px;color:#1f2937}.evidence-step span{display:inline-block;font-size:11px;color:#047857;background:#ecfdf5;border-radius:999px;padding:2px 7px;margin:5px 0}.evidence-step.todo span{color:#c2410c;background:#fff7ed}.evidence-step p,.evidence-step small{display:block;font-size:11px;color:#64748b;line-height:1.5}.evidence-assets{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.evidence-assets>div{background:#fbfcff;border:1px solid #edf0f7;border-radius:14px;padding:12px}.evidence-assets b{display:block;color:#1f2937;margin-bottom:8px}.evidence-assets a,.evidence-assets p{display:block;font-size:12px;color:#475569;line-height:1.7;margin:4px 0;word-break:break-all}@media(max-width:1200px){.entitlement-grid,.evidence-summary-grid,.evidence-timeline,.evidence-assets{grid-template-columns:1fr}.entitlement-hero{flex-direction:column;align-items:flex-start}}

.renewal-hero{display:flex;justify-content:space-between;gap:14px;align-items:center;background:linear-gradient(135deg,rgba(79,70,229,.08),rgba(99,102,241,.08));border:1px solid rgba(79,70,229,.18);border-radius:14px;padding:16px}.renewal-hero h3{font-size:22px;color:#1a1a2e;margin:6px 0}.pill{display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#4f46e5;padding:4px 10px;font-size:12px;font-weight:600}

.sql-preview{background:#111827;color:#d1d5db;border-radius:12px;padding:14px;font-size:12px;line-height:1.6;overflow:auto;max-height:220px}


.db-switch-card{background:linear-gradient(135deg,#f8fbff,#eef2ff);border:1px solid #e3e8ff;border-radius:16px;padding:18px;display:grid;grid-template-columns:1.4fr 1fr;gap:16px;align-items:center}.db-switch-card h3{font-size:28px;color:#334155;margin:4px 0}.db-switch-card p{font-size:12px;color:#64748b;line-height:1.7}.card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media(max-width:1200px){.db-switch-card{grid-template-columns:1fr}}


.advanced-metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.advanced-metric{background:#f8f9fc;border:1px solid #edf0f7;border-radius:14px;padding:14px;display:flex;justify-content:space-between;gap:12px;align-items:center}.advanced-metric b{font-size:14px;color:#1f2937}.advanced-metric p{font-size:12px;color:#6b7280;line-height:1.5;margin-top:4px}.advanced-metric.danger .advanced-value{background:linear-gradient(135deg,#ff6b6b,#f5576c)}.advanced-value{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;font-size:20px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}.detection-card{background:#fff;border:1px solid #edf0f7;border-radius:16px;padding:16px;margin-bottom:12px}.detection-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.detection-head b{font-size:16px;color:#111827}.detection-head p{font-size:12px;color:#6b7280;margin-top:4px}.geo-question-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.geo-question-card{background:#f8fafc;border:1px solid #e8edf5;border-radius:13px;padding:12px}.geo-question-card b{font-size:13px;color:#1f2937}.geo-question-card p{font-size:12px;color:#475569;line-height:1.6;margin:6px 0}.geo-question-card span{font-size:11px;color:#058e3e;background:#ecfdf5;border-radius:999px;padding:3px 8px}.geo-metric-matrix{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.geo-metric-cell{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid #edf0f7;border-radius:13px;padding:12px}.geo-metric-cell b{display:block;font-size:12px;color:#64748b}.geo-metric-cell strong{display:block;font-size:22px;color:#111827;margin:5px 0}.geo-metric-cell p{font-size:11px;color:#64748b;line-height:1.5}.geo-trend-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:12px}.geo-trend-summary div{background:#f8fafc;border:1px solid #edf0f7;border-radius:13px;padding:12px;text-align:center}.geo-trend-summary b{display:block;font-size:22px;color:#111827}.geo-trend-summary span{font-size:12px;color:#64748b}.detection-results{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.detection-results details{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:10px}.detection-results summary{cursor:pointer;font-size:13px;font-weight:700;color:#334155}.answer-block{font-size:12px;line-height:1.8;color:#4b5563;margin-top:8px}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.customer-report-card{background:linear-gradient(135deg,#f8fbff,#eef2ff);border:1px solid #dbe4ff;border-radius:16px;padding:18px}.customer-report-card h3{font-size:18px;color:#1f2a56;margin-bottom:8px}.customer-report-card p{font-size:13px;color:#475569;line-height:1.8}.real-trend{min-height:220px;display:flex;gap:12px;align-items:flex-end;padding:18px;background:#f8fafc;border-radius:14px}.trend-column{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1}.trend-bar-stack{height:150px;display:flex;align-items:flex-end;gap:4px}.trend-bar-stack .bar{width:12px;border-radius:8px 8px 2px 2px;display:block;min-height:8px}.trend-bar-stack .brand{background:linear-gradient(180deg,#4f46e5,#6366f1)}.trend-bar-stack .risk{background:linear-gradient(180deg,#ff6b6b,#f5576c)}.trend-column small{font-size:11px;color:#64748b}@media(max-width:1200px){.advanced-metric-grid,.detection-results,.plan-grid{grid-template-columns:1fr}.detection-head{flex-direction:column}}


.quality-list{display:flex;flex-direction:column;gap:14px}.quality-card{background:#fff;border:1px solid #edf0f7;border-radius:16px;padding:16px}.quality-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.quality-head b{font-size:15px;color:#111827}.quality-head p{font-size:12px;color:#64748b;margin-top:4px}.quality-score{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#11998e,#38ef7d);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:800;flex-shrink:0}.quality-score.warn{background:linear-gradient(135deg,#f6b93b,#fa8c16)}.quality-score.bad{background:linear-gradient(135deg,#ff6b6b,#f5576c)}.check-grid{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.check-grid span{font-size:12px;border-radius:14px;padding:5px 9px}.check-grid .ok{background:#ecfdf5;color:#047857}.check-grid .miss{background:#fff1f2;color:#be123c}.matrix-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.matrix-grid.one-col{grid-template-columns:1fr}.matrix-card{background:#f8fafc;border:1px solid #edf0f7;border-radius:16px;padding:16px}.matrix-card h3{font-size:16px;color:#1f2937;margin-bottom:10px}.matrix-item{border-top:1px solid #e5e7eb;padding:10px 0}.matrix-item b{font-size:13px;color:#334155}.matrix-item p,.matrix-item small{font-size:12px;color:#64748b;line-height:1.6}.outline-card{background:linear-gradient(135deg,#f8fbff,#eef2ff);border:1px solid #dbe4ff;border-radius:16px;padding:16px}.outline-card h3{font-size:18px;color:#1f2a56;margin-bottom:8px}.mini-quality-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.mini-quality-grid span{background:#f8fafc;border:1px solid #edf0f7;border-radius:12px;padding:8px;font-size:12px;color:#475569;text-align:center}@media(max-width:1200px){.matrix-grid,.mini-quality-grid{grid-template-columns:1fr}.quality-head{flex-direction:column}}


.tool-result-list{display:flex;flex-direction:column;gap:12px}.tool-result-item{background:#f8fafc;border:1px solid #edf0f7;border-radius:14px;padding:14px;display:flex;justify-content:space-between;gap:16px}.tool-result-item b{font-size:15px;color:#1f2937}.tool-result-item p{font-size:12px;color:#64748b;margin:4px 0}.tool-result-metrics{display:flex;flex-direction:column;gap:6px;min-width:90px}.tool-result-metrics span{font-size:12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:5px 8px;color:#475569;text-align:center}@media(max-width:1200px){.tool-result-item{flex-direction:column}.tool-result-metrics{flex-direction:row;flex-wrap:wrap}}


/* AI page layout optimization */
.ai-suite-page{padding-bottom:32px}.ai-suite-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#1f2a55,#4f46e5);border-radius:22px;padding:26px 28px;color:#fff;margin-bottom:20px;box-shadow:0 18px 42px rgba(31,42,85,.18)}.ai-suite-hero h2{font-size:24px;line-height:1.35;margin:6px 0}.ai-suite-hero p{opacity:.82;max-width:680px}.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;opacity:.75}.ai-suite-search{display:flex;gap:10px;min-width:380px}.ai-suite-search .form-input{background:rgba(255,255,255,.96);border:0}.ai-suite-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ai-suite-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}.ai-suite-panel,.ai-result-center{background:#fff;border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(30,41,59,.06);border:1px solid #eef2ff}.card-header.no-border{border-bottom:0;margin-bottom:8px;padding-bottom:8px}.ai-command-list{display:flex;flex-direction:column;gap:10px}.ai-command{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #edf0f7;background:#f8f9fc;border-radius:14px;padding:14px;cursor:pointer;transition:.2s}.ai-command:hover,.ai-command.active{background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(99,102,241,.08));border-color:#4f46e5;transform:translateY(-1px)}.ai-command span{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#fff;font-size:20px}.ai-command b{display:block;color:#1a1a2e}.ai-command small{display:block;color:#7b8190;margin-top:3px}.ai-result-board{min-height:420px}.empty-state{height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8190;border:1px dashed #d9def0;border-radius:18px;background:#fbfcff}.empty-state b{font-size:18px;color:#1f2a55}.result-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.result-title-row h3{margin:4px 0 0;color:#1f2a55}.compact-metrics{grid-template-columns:repeat(3,1fr);margin-bottom:16px}.big-tags span{font-size:13px;padding:8px 12px}.content-action-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}.content-action{border:1px solid #edf0f7;background:#fff;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;cursor:pointer;box-shadow:0 8px 24px rgba(30,41,59,.05);transition:.2s}.content-action:hover{border-color:#4f46e5;transform:translateY(-2px);box-shadow:0 12px 30px rgba(79,70,229,.14)}.content-action span{font-size:28px}.content-action b{font-size:15px;color:#1a1a2e}.content-action small{color:#777}.compact-card{border-radius:18px;margin-bottom:18px}.content-studio-grid{display:grid;grid-template-columns:380px minmax(0,1fr);gap:20px}.article-editor-card .article-editor{min-height:520px}.article-list-modern{max-height:620px;overflow:auto}.quality-grid-modern{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.calendar-board{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.calendar-column{background:#fff;border:1px solid #edf0f7;border-radius:18px;padding:16px;min-height:360px;box-shadow:0 8px 24px rgba(30,41,59,.05)}.calendar-column-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}.calendar-column-head b{color:#1f2a55}.calendar-column-head em{margin-left:auto;background:#eef2ff;color:#4f46e5;border-radius:999px;padding:2px 10px;font-style:normal;font-size:12px}.calendar-card{border:1px solid #eef0f5;background:linear-gradient(180deg,#fff,#fbfcff);border-radius:14px;padding:14px;margin-bottom:12px}.calendar-date{font-size:12px;color:#4f46e5;font-weight:700}.calendar-card h3{font-size:15px;margin:6px 0;color:#1a1a2e}.calendar-card p{font-size:12px;color:#777;line-height:1.5}.calendar-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.calendar-meta span{font-size:11px;background:#f3f4f8;border-radius:999px;padding:4px 8px;color:#666}.calendar-empty{padding:18px;text-align:center;border:1px dashed #e1e5f0;border-radius:12px}@media(max-width:1200px){.ai-suite-hero,.ai-suite-search{display:block;min-width:0}.ai-suite-search{margin-top:16px}.ai-suite-layout,.content-studio-grid,.calendar-board{grid-template-columns:1fr}.content-action-grid{grid-template-columns:repeat(2,1fr)}.quality-grid-modern{grid-template-columns:1fr}.compact-metrics{grid-template-columns:repeat(2,1fr)}}

.batch-generate-card{border:1px solid #dbe4ff;background:linear-gradient(180deg,#fff,#fbfcff)}.batch-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.batch-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#64748b;font-weight:700}.batch-form-grid .full-row{grid-column:1/-1}.content-type-checks{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.content-type-checks label{display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e6eaf5;border-radius:999px;padding:8px 12px;font-size:12px;color:#475569;font-weight:700}.content-studio-grid-wide{grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr)}.article-status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.article-status-tab{border:1px solid #e6eaf5;background:#fff;border-radius:999px;padding:7px 11px;color:#475569;font-size:12px;font-weight:700;cursor:pointer}.article-status-tab span{margin-left:5px;color:#94a3b8}.article-status-tab.active,.article-status-tab:hover{border-color:#4f46e5;background:rgba(79,70,229,.1);color:#4f46e5}.article-draft-card{align-items:flex-start}.article-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.article-status-badge{border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;white-space:nowrap}.article-status-badge.draft{background:#eef2ff;color:#4f46e5}.article-status-badge.warn{background:#fff7ed;color:#c2410c}.article-status-badge.ok{background:#ecfdf5;color:#047857}.article-quality-row{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.quality-flag{background:#f8fafc;border:1px solid #e6eaf5;border-radius:999px;padding:5px 9px;font-size:11px;color:#64748b;font-weight:700}.quality-flag.ok{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.quality-flag.miss{background:#fff1f2;color:#be123c;border-color:#fecdd3}.refine-tool-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.refine-tool-grid button,.title-option{border:1px solid #dbe4ff;background:#f8fbff;border-radius:10px;padding:9px 10px;color:#4f46e5;font-weight:700;cursor:pointer}.refine-tool-grid button:hover,.title-option:hover{background:#eef2ff}.title-option-list{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.rich-editor-shell{border:1px solid #dbe4ff;border-radius:16px;overflow:hidden;background:#fff;margin-bottom:12px}.rich-editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:9px;background:#f8fbff;border-bottom:1px solid #e6eaf5}.rich-editor-toolbar button{border:1px solid #dbe4ff;background:#fff;border-radius:8px;padding:7px 10px;color:#334155;font-size:12px;font-weight:800;cursor:pointer}.rich-editor-toolbar button:hover{background:#eef2ff;color:#4f46e5}.rich-editor,.rich-editor-source{width:100%;min-height:420px;padding:18px;border:0;outline:none;font-size:14px;line-height:1.8;color:#1f2937;background:#fff;overflow:auto}.rich-editor h1,.rich-editor h2,.rich-editor h3{color:#1f2a55;margin:10px 0}.rich-editor p{margin:8px 0}.rich-editor blockquote{border-left:4px solid #4f46e5;background:#f8fbff;margin:10px 0;padding:10px 14px;color:#475569}.rich-editor ul,.rich-editor ol{padding-left:22px}.rich-editor-source{font-family:Consolas,monospace;resize:vertical}.content-flow-grid .content-action span{font-weight:900;color:#4f46e5;background:#eef2ff}@media(max-width:1200px){.batch-form-grid,.content-studio-grid-wide,.refine-tool-grid{grid-template-columns:1fr}.article-card-head{flex-direction:column}.rich-editor,.rich-editor-source{min-height:300px}}

.knowledge-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:20px;margin-top:20px}.knowledge-page .quality-list{display:flex;flex-direction:column;gap:12px}.knowledge-page .quality-list .task-item{align-items:flex-start}.knowledge-side{min-width:0}.knowledge-card-item{align-items:flex-start}.knowledge-card-item .task-name{white-space:normal;overflow:visible;text-overflow:clip;font-size:15px;line-height:1.45}.knowledge-content-preview{margin-top:10px;padding:12px 14px;background:#fff;border:1px solid #e8edf8;border-radius:12px;color:#475467;font-size:13px;line-height:1.8;max-height:220px;overflow:auto;white-space:normal}.knowledge-content-preview p{margin:0 0 10px}.knowledge-content-preview p:last-child{margin-bottom:0}.knowledge-content-preview h4{margin:2px 0 8px;color:#1d2939;font-size:14px;font-weight:750}.knowledge-content-preview br{line-height:1.9}@media(max-width:1200px){.knowledge-layout{grid-template-columns:1fr}}

.ai-insight-pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:16px;line-height:1.7;font-family:inherit;font-size:13px;max-height:360px;overflow:auto}.customer-report-card{border:1px solid #e6eaf5;border-radius:16px;padding:16px;background:linear-gradient(180deg,#fff,#fbfcff)}
.ai-website-grid{grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr)}.ai-website-actions{align-items:center}.agent-geo-page .card,.agent-card-suite .card{min-width:0}.agent-geo-page .website-preview{min-width:0}.agent-geo-page .website-preview-title{word-break:break-word}.paid-report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.75fr);gap:16px}.boss-summary,.benchmark-card,.platform-diagnosis-card,.mention-change-card,.agent-brand-card{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid #e6eaf5;border-radius:16px;padding:16px}.boss-summary h3,.benchmark-card h3{font-size:17px;color:#111827;margin:8px 0}.boss-summary p,.benchmark-card p{font-size:13px;color:#5b6475;line-height:1.7;margin-top:6px}.risk-badge{display:inline-flex;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700}.risk-badge.high{background:#fff1f2;color:#be123c}.risk-badge.mid{background:#fff7ed;color:#c2410c}.risk-badge.low{background:#ecfdf5;color:#047857}.benchmark-rank{display:flex;align-items:flex-end;gap:10px;margin:8px 0}.benchmark-rank b{font-size:34px;color:#4f46e5}.benchmark-rank span{font-size:12px;color:#64748b;margin-bottom:7px}.platform-diagnosis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.platform-diagnosis-card>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.platform-diagnosis-card strong{display:block;font-size:28px;color:#111827;margin:10px 0 4px}.platform-diagnosis-card p,.platform-diagnosis-card small{font-size:12px;color:#64748b;line-height:1.6}.ppt-outline{background:#f8fafc;border:1px solid #edf0f7;border-radius:14px;padding:12px;margin-top:10px}.ppt-outline b{color:#1f2937}.ppt-outline p{font-size:12px;color:#64748b;line-height:1.6;margin-top:5px}.sales-script-box{display:flex;flex-direction:column;gap:8px}.delivery-link-list{display:flex;flex-direction:column;gap:10px}.delivery-link-item{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f8fafc;border:1px solid #edf0f7;border-radius:14px;padding:12px}.delivery-link-item b{font-size:13px;color:#1f2937}.delivery-link-item p{font-size:12px;color:#64748b;margin-top:4px}.delivery-link-item a{font-size:12px;color:#4f46e5;font-weight:700;white-space:nowrap}.delivery-change-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mention-change-card b{font-size:13px;color:#64748b}.mention-change-card strong{display:block;font-size:24px;color:#111827;margin:8px 0}.mention-change-card p{font-size:12px;color:#64748b;line-height:1.7}.agent-brand-card{display:flex;gap:14px;align-items:center}.agent-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.agent-brand-card h3{font-size:18px;color:#111827;margin-bottom:6px}.agent-brand-card p{font-size:12px;color:#64748b;line-height:1.6}.report-copy-box{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:16px;line-height:1.8;font-family:inherit;font-size:13px;min-height:160px}@media(max-width:1200px){.ai-website-grid,.paid-report-grid,.platform-diagnosis-grid,.delivery-change-grid{grid-template-columns:1fr}.agent-hero{align-items:flex-start;flex-direction:column}.hero-actions{justify-content:flex-start}}

.storyboard-card{background:#fff;border:1px solid #e6eaf5;border-radius:16px;padding:14px}.storyboard-card>b{color:#1f2a55}.storyboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.storyboard-grid span{display:flex;flex-direction:column;gap:4px;background:#f8fafc;border:1px solid #edf0f7;border-radius:12px;padding:9px;font-size:12px;color:#334155}.storyboard-grid small{color:#64748b}.script-mini{white-space:pre-wrap;background:#f8fafc;border:1px solid #edf0f7;border-radius:10px;padding:10px;font-size:12px;line-height:1.6;max-height:130px;overflow:auto;margin:10px 0}
.boss-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.boss-kpi-grid div{background:linear-gradient(135deg,#1f2a55,#4f46e5);border-radius:16px;padding:16px;color:#fff}.boss-kpi-grid b{display:block;font-size:26px;margin-bottom:5px}.boss-kpi-grid span{font-size:12px;opacity:.86}.boss-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.boss-dashboard-card .task-list{gap:14px}@media(max-width:1200px){.boss-kpi-grid,.boss-grid{grid-template-columns:1fr}}
.publish-agent-panel{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff;border:1px solid #dbe4ff;border-radius:18px;padding:16px 18px;margin-bottom:18px;box-shadow:0 10px 24px rgba(30,41,59,.05)}.publish-agent-panel b{font-size:16px;color:#1f2a55}.publish-agent-panel p{font-size:12px;color:#64748b;line-height:1.6;margin-top:4px}.publish-agent-controls{min-width:260px}.publish-agent-controls label{display:block;font-size:12px;color:#64748b;font-weight:700;margin-bottom:6px}.publish-agent-controls select{width:100%;padding:10px 12px;border:1px solid #dbe4ff;border-radius:10px}.publish-agent-batch{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.publish-agent-batch span{font-size:12px;color:#475569;background:#f8fafc;border:1px solid #edf0f7;border-radius:999px;padding:6px 10px}@media(max-width:1200px){.publish-agent-panel{flex-direction:column;align-items:flex-start}.publish-agent-controls{width:100%}}
.media-account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.media-account-card{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid #e6eaf5;border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(30,41,59,.04)}.media-account-card.healthy{border-color:#bbf7d0}.media-account-card.watch{border-color:#fde68a}.media-account-card.risk{border-color:#fecdd3}.media-account-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.media-account-head p{font-size:12px;color:#64748b;margin-top:4px;line-height:1.5}.media-score-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.media-score-row div{background:#f8fafc;border:1px solid #edf0f7;border-radius:12px;padding:10px;text-align:center}.media-score-row b{display:block;font-size:22px;color:#1f2a55}.media-score-row span{font-size:11px;color:#64748b}.media-health-bar{height:7px;background:#eef2ff;border-radius:999px;overflow:hidden;margin:10px 0}.media-health-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#11998e,#38ef7d)}.media-risk-tips{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.media-risk-tips span{font-size:11px;color:#475569;background:#f8fafc;border:1px solid #edf0f7;border-radius:999px;padding:4px 8px}@media(max-width:1200px){.media-account-grid{grid-template-columns:1fr}}
.publish-hero{display:flex;justify-content:space-between;gap:22px;align-items:center;background:linear-gradient(135deg,#1f2a55,#4f46e5);border-radius:22px;padding:26px 28px;color:#fff;margin-bottom:20px;box-shadow:0 18px 42px rgba(31,42,85,.18)}.publish-hero h2{font-size:25px;line-height:1.35;margin:6px 0}.publish-hero p{opacity:.86;max-width:860px;line-height:1.8}.publish-flow{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:16px 0}.publish-flow span{background:#f8fafc;border:1px solid #e6eaf5;border-radius:999px;padding:8px 10px;text-align:center;color:#64748b;font-size:12px;font-weight:700}.publish-flow.mini{margin:10px 0;grid-template-columns:repeat(7,minmax(78px,1fr));overflow:auto}.publish-flow span.done{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.publish-flow span.active{background:linear-gradient(135deg,rgba(79,70,229,.16),rgba(99,102,241,.1));color:#4f46e5;border-color:#a5b4fc}.publish-builder{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.publish-builder label{display:block;font-size:12px;color:#64748b;font-weight:700;margin-bottom:7px}.publish-builder input,.publish-builder select{width:100%;padding:11px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.publish-builder .full-row{grid-column:1/-1}.publish-field-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.publish-field-grid span{background:#f8fafc;border:1px solid #edf0f7;border-radius:10px;padding:7px 9px;color:#586074;font-size:12px}.feed-workorder{background:#fff;border:1px solid #e6eaf5;border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(30,41,59,.04)}.feed-workorder-main{display:flex;gap:14px;align-items:flex-start}.feed-workorder-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #eef2ff}@media(max-width:1200px){.publish-hero{flex-direction:column;align-items:flex-start}.publish-builder,.publish-field-grid{grid-template-columns:1fr}.publish-flow{grid-template-columns:repeat(2,1fr)}.feed-workorder-main{flex-direction:column}}
.category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.category-tab{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:8px 13px;color:#586074;font-size:13px;font-weight:600;cursor:pointer;transition:.2s}.category-tab:hover,.category-tab.active{border-color:#4f46e5;background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(99,102,241,.08));color:#4f46e5;box-shadow:0 6px 16px rgba(79,70,229,.12)}.agent-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#1f2a55,#4f46e5);border-radius:22px;padding:26px 28px;color:#fff;margin-bottom:20px;box-shadow:0 18px 42px rgba(31,42,85,.18)}.agent-hero.geo{background:linear-gradient(135deg,#111827,#4f46e5 58%,#7c3aed)}.agent-hero h2{font-size:25px;line-height:1.35;margin:6px 0}.agent-hero p{opacity:.85;max-width:820px;line-height:1.8}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.btn.light,.btn-outline.light{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}.agent-loop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.agent-loop-card{background:#fff;border:1px solid #eef2ff;border-radius:16px;padding:16px;box-shadow:0 10px 24px rgba(30,41,59,.05)}.agent-loop-card b{color:#1f2a55}.agent-loop-card p{font-size:12px;color:#64748b;line-height:1.7;margin-top:8px}.delivery-hero{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;border-radius:22px;padding:26px;margin-bottom:20px;display:flex;justify-content:space-between;gap:20px;align-items:center;box-shadow:0 18px 40px rgba(20,184,166,.22)}.delivery-hero h2{font-size:26px;margin:6px 0}.delivery-hero p{max-width:760px;line-height:1.8;color:rgba(255,255,255,.88)}.agent-material-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.agent-material{background:#f8fafc;border:1px solid #edf0f7;border-radius:14px;padding:14px;color:#475569;font-weight:600}.deep-result-box{margin:0 0 18px;background:#fff;border:1px solid #eef2ff;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}.deep-result-box:empty{display:none}.deep-result-title{background:linear-gradient(135deg,#f8fbff,#eef2ff);border:1px solid #dbe4ff;border-radius:14px;padding:12px}.deep-result-title b{color:#1f2a55}.deep-result-title p{font-size:12px;color:#64748b;margin-top:4px}@media(max-width:1200px){.agent-hero{flex-direction:column;align-items:flex-start}.agent-loop-grid,.agent-material-grid{grid-template-columns:1fr}}.website-action-bar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.script-preview{background:#f8fafc;border:1px solid #edf0f7;border-radius:16px;padding:16px;min-height:180px}.script-preview pre,.script-mini{white-space:pre-wrap;font-family:inherit;font-size:12px;line-height:1.7;color:#475569;background:#fff;border:1px solid #eef2f7;border-radius:12px;padding:10px;margin-top:10px;max-height:160px;overflow:auto}.script-mini{max-height:96px}.video-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.video-task-grid .video-card{height:auto}.video-task-grid .card-actions{justify-content:flex-start;margin-top:12px}@media(max-width:1200px){.video-task-grid{grid-template-columns:1fr}}.media-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.media-resource-card{border:1px solid #edf0f7;background:linear-gradient(180deg,#fff,#fbfcff);border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(30,41,59,.05)}.media-resource-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.media-resource-top b{font-size:15px;color:#1a1a2e}.media-resource-top p{font-size:12px;color:#7b8190;margin-top:4px}.media-resource-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.media-resource-metrics span{background:#f5f7ff;border-radius:10px;padding:7px 8px;font-size:12px;color:#586074}.feed-workorder{border:1px solid #edf0f7;background:#fff;border-radius:16px;padding:14px;margin-bottom:12px}.feed-workorder-main{display:flex;align-items:flex-start;gap:12px}.feed-workorder-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px;padding-top:12px;border-top:1px dashed #e7eaf3}.feed-suite-page .content-grid{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)}@media(max-width:1200px){.media-resource-grid,.feed-suite-page .content-grid{grid-template-columns:1fr}}

/* Unified admin UI refresh */
:root {
  --ui-bg: #f7f8fa;
  --ui-bg-soft: #f1f3f7;
  --ui-surface: rgba(255, 255, 255, 0.94);
  --ui-surface-solid: #ffffff;
  --ui-border: #e5ebf5;
  --ui-border-strong: #d9e2f1;
  --ui-text: #172033;
  --ui-muted: #667085;
  --ui-subtle: #98a2b3;
  --ui-primary: #4f46e5;
  --ui-primary-dark: #4338ca;
  --ui-primary-soft: #eef2ff;
  --ui-success: #0f9f75;
  --ui-warning: #d97706;
  --ui-danger: #dc2626;
  --ui-radius-sm: 10px;
  --ui-radius: 16px;
  --ui-radius-lg: 22px;
  --ui-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --ui-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  --ui-shadow-lg: 0 18px 46px rgba(16, 24, 40, 0.12);
}

html { background: var(--ui-bg); }
body {
  background: #f7f8fa;
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.app { background: transparent; }
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #101828 0%, #172033 52%, #111827 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 10px 0 36px rgba(15, 23, 42, .18);
}
.sidebar::before { opacity: .65; }
.main {
  margin-left: 260px;
  padding: 22px 26px 34px;
  background: transparent;
  min-height: 100vh;
}
.logo-area { padding: 24px 20px 18px; }
.logo-area h1 { font-size: 20px; letter-spacing: .02em; }
.logo-area .subtitle { color: rgba(255,255,255,.58); }
.user-info {
  border-radius: 16px;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.user-avatar { border-radius: 14px; background: linear-gradient(135deg, #5b6ff0, #8b5cf6); }
.nav-section { padding: 12px 0 22px; }
.nav-group { margin-bottom: 4px; }
.nav-group-header {
  margin: 2px 12px;
  padding: 11px 12px;
  border-radius: 14px;
  gap: 11px;
}
.nav-group-header:hover,
.nav-group-header.active { background: rgba(255,255,255,.08); }
.nav-group-icon { width: 30px; height: 30px; border-radius: 10px; }
.nav-item {
  margin: 3px 12px;
  padding: 10px 12px 10px 44px;
  min-height: 42px;
  border-radius: 13px;
  color: rgba(255,255,255,.68);
}
.nav-item::after { left: 28px; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(91,111,240,.34), rgba(139,92,246,.18));
  border-color: rgba(167, 178, 255, .22);
}
.nav-item .tag-new,
.nav-item .tag-hot,
.nav-item .badge { border-radius: 999px; box-shadow: none; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -2px -2px 22px;
  padding: 16px 18px;
  border-radius: var(--ui-radius-lg);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(229,235,245,.82);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(16px);
}
.page-title-area h1 { color: var(--ui-text); font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.page-title-area .breadcrumb { color: var(--ui-muted); }
.page-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.page.active { animation: uiFadeIn .18s ease-out; }
@keyframes uiFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card,
.ai-suite-panel,
.ai-result-center,
.feed-workorder,
.media-account-card,
.agent-loop-card,
.platform-card,
.agent-card,
.video-card,
.quality-card,
.matrix-card,
.detection-card,
.storyboard-card,
.package-card,
.entitlement-card,
.evidence-summary-card,
.boss-summary,
.benchmark-card,
.platform-diagnosis-card,
.mention-change-card,
.agent-brand-card,
.db-switch-card,
.advanced-metric,
.geo-question-card,
.geo-metric-cell,
.segment-card,
.business-model-card,
.ops-panel,
.mini-metric {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-sm);
}
.card {
  padding: 18px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover,
.feed-workorder:hover,
.media-account-card:hover,
.quality-card:hover,
.matrix-card:hover {
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-shadow);
}
.card-header {
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border);
  flex-wrap: wrap;
}
.card-title { color: var(--ui-text); font-size: 15px; font-weight: 720; }
.section-label { color: #475467; font-weight: 750; letter-spacing: .01em; }
.muted { color: var(--ui-muted); }

.stats-grid,
.stats-grid-4,
.mini-metric-grid,
.platform-grid,
.content-grid,
.platform-admin-grid,
.agent-business-grid,
.agent-money-hero,
.business-model-grid,
.media-account-grid,
.advanced-metric-grid,
.geo-question-grid,
.geo-metric-matrix,
.geo-trend-summary,
.boss-kpi-grid,
.boss-grid,
.agent-loop-grid,
.package-grid,
.entitlement-grid,
.evidence-summary-grid,
.paid-report-grid,
.content-studio-grid,
.content-action-grid,
.knowledge-layout,
.ai-suite-layout {
  gap: 16px;
}
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.stats-grid-4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)) !important; }
.mini-metric-grid { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.content-grid { grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); }
.platform-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.platform-admin-grid,
.agent-business-grid,
.boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat-card,
.mini-metric {
  padding: 17px;
  overflow: hidden;
}
.stat-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.95));
  box-shadow: var(--ui-shadow-sm);
}
.stat-card::before { height: 4px; opacity: .9; }
.stat-label,
.mini-metric-label { color: var(--ui-muted); font-size: 12px; font-weight: 650; }
.stat-value,
.mini-metric-value { color: var(--ui-text); letter-spacing: -.03em; }
.stat-value { font-size: clamp(22px, 2vw, 30px); }
.mini-metric-value { font-size: clamp(19px, 1.7vw, 25px); }
.mini-metric-note { color: var(--ui-subtle); }

.btn {
  min-height: 36px;
  padding: 9px 15px;
  border-radius: 12px;
  font-weight: 680;
  line-height: 1.2;
  box-shadow: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ui-primary), #6366f1);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .20);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(79, 70, 229, .25); }
.btn-outline {
  background: #fff;
  border-color: var(--ui-border-strong);
  color: #475467;
}
.btn-outline:hover { background: var(--ui-primary-soft); border-color: #b9c2ff; color: var(--ui-primary-dark); }
.btn-ghost { color: var(--ui-primary); background: var(--ui-primary-soft); }
.btn-success { background: linear-gradient(135deg, #10a37f, #22c55e); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #f97316); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #fb7185); }
.btn-danger:hover { filter: brightness(.96); }
.highlight-flash { animation: highlightFlash 1.8s ease-in-out 2; border-color: #f59e0b !important; box-shadow: 0 0 0 4px rgba(245,158,11,.16), 0 12px 28px rgba(245,158,11,.18) !important; }
@keyframes highlightFlash { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.btn-sm { min-height: 30px; padding: 6px 11px; border-radius: 10px; font-size: 12px; }

.form-grid { gap: 12px; }
.form-input,
input,
select,
textarea,
.publish-builder input,
.publish-builder select,
.publish-agent-controls select {
  border: 1px solid var(--ui-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ui-text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-input,
input,
select { min-height: 40px; }
textarea.form-input,
textarea { min-height: 106px; line-height: 1.65; }
.form-input:focus,
input:focus,
select:focus,
textarea:focus,
.publish-builder input:focus,
.publish-builder select:focus {
  outline: none;
  border-color: #9aa8ff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .11);
}

.task-list { gap: 10px; }
.task-item,
.recommend-item,
.ops-item,
.tool-result-item,
.diagnosis-row,
.delivery-link-item {
  background: #f8fafc;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
}
.task-item {
  padding: 14px;
  align-items: flex-start;
}
.task-item:hover,
.recommend-item:hover,
.ops-item:hover {
  border-color: #cfd8ff;
  background: #fbfcff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .08);
}
.task-icon { border-radius: 13px; background: var(--ui-primary-soft); }
.task-name { color: var(--ui-text); font-weight: 720; }
.task-meta { color: var(--ui-muted); line-height: 1.5; }
.task-status,
.pill,
.risk-badge,
.agent-status,
.video-status-badge,
.connected-badge {
  border-radius: 999px;
  font-weight: 750;
}
.status-running { background: #eef1ff; color: #4f46e5; }
.status-done { background: #ecfdf5; color: #047857; }
.status-pending { background: #fff7ed; color: #c2410c; }
.status-error { background: #fff1f2; color: #be123c; }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: #fff;
}
table,
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; }
table th,
.pricing-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  border-bottom: 1px solid var(--ui-border);
}
table th,
table td,
.pricing-table th,
.pricing-table td { padding: 13px 14px; border-bottom: 1px solid #eef2f7; }
table td,
.pricing-table td { color: #344054; vertical-align: middle; }
table tr:last-child td,
.pricing-table tr:last-child td { border-bottom: 0; }
table tr:hover td,
.pricing-table tr:hover td { background: #f8fbff; }
table .btn-sm { margin: 2px 3px 2px 0; }

.ai-suite-hero,
.publish-hero,
.agent-hero,
.delivery-hero,
.entitlement-hero,
.renewal-hero,
.profit-board,
.boss-kpi-grid div,
.diagnostic-card,
.website-preview {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-lg);
}
.ai-suite-hero,
.publish-hero,
.agent-hero {
  background: linear-gradient(135deg, #172033 0%, #4338ca 58%, #6366f1 100%);
}
.delivery-hero { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.ai-suite-hero h2,
.publish-hero h2,
.agent-hero h2,
.delivery-hero h2 { letter-spacing: -.03em; }
.ai-suite-hero p,
.publish-hero p,
.agent-hero p,
.delivery-hero p { font-size: 13px; }
.hero-actions,
.ai-suite-actions,
.editor-actions,
.article-workflow-actions,
.feed-workorder-actions,
.card-actions { gap: 8px; }

.content-action,
.ai-command,
.quick-action,
.category-tab,
.keyword-tag,
.publish-flow span,
.publish-field-grid span,
.media-risk-tips span,
.package-features span,
.agent-material {
  border-color: var(--ui-border);
  border-radius: 13px;
}
.content-action,
.ai-command,
.quick-action {
  background: #fff;
  box-shadow: var(--ui-shadow-sm);
}
.content-action:hover,
.ai-command:hover,
.ai-command.active,
.quick-action:hover,
.category-tab:hover,
.category-tab.active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79, 70, 229, .10);
}

.article-citation-chart {
  min-height: 188px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  align-items: end;
  gap: 8px;
  padding: 14px 12px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248,250,252,.88), rgba(255,255,255,.96)),
    repeating-linear-gradient(180deg, transparent 0, transparent 35px, rgba(148,163,184,.14) 36px);
}
.article-citation-bar {
  min-width: 28px;
  height: 154px;
  display: grid;
  grid-template-rows: 20px 1fr 24px;
  align-items: end;
  justify-items: center;
  gap: 5px;
}
.article-citation-bar i {
  width: 15px;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #058e3e, #38b86f);
  box-shadow: 0 7px 16px rgba(5,142,62,.18);
}
.article-citation-bar b {
  min-height: 16px;
  color: #1f2937;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}
.article-citation-bar span {
  color: #64748b;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-35deg);
  transform-origin: center top;
}
.article-citation-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--ui-muted);
  font-size: 13px;
}

.article-editor-card textarea,
#editor-content,
#editor-content-source {
  min-height: 360px;
  font-size: 14px;
  line-height: 1.75;
}
#editor-title,
#editor-keyword { width: 100%; margin-bottom: 10px; padding: 12px; }
.editor-actions { display: flex; flex-wrap: wrap; }
.feed-workorder-main { min-width: 0; }
.feed-workorder .task-info { min-width: 0; }
.publish-flow.mini { padding-bottom: 4px; }
.publish-builder,
.publish-field-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.media-account-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.entitlement-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.evidence-summary-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.agent-loop-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.package-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.boss-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }



/* ============== 登录页重设计样式 ============== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  background: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #1a2a36;
  overflow-x: hidden;
}

/* 左侧品牌展示区 */
.login-showcase {
  flex: 1 1 55%;
  min-width: 420px;
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(129, 140, 248, .35), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(99, 102, 241, .25), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  color: #eef2ff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.showcase-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .35), transparent 70%);
  filter: blur(10px);
}
.decor-circle-1 { width: 380px; height: 380px; top: -80px; right: -100px; }
.decor-circle-2 { width: 260px; height: 260px; bottom: -60px; left: -80px; opacity: .6; }
.decor-circle-3 { width: 200px; height: 200px; top: 45%; right: 25%; opacity: .35; }
.decor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(129, 140, 248, .8);
  box-shadow: 0 0 12px rgba(129, 140, 248, .6);
}
.decor-dot-1 { top: 14%; left: 8%; }
.decor-dot-2 { top: 72%; left: 14%; width: 6px; height: 6px; }
.decor-dot-3 { top: 28%; right: 6%; width: 10px; height: 10px; }

.showcase-content { position: relative; z-index: 1; max-width: 520px; }
.showcase-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}
.showcase-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(129,140,248,.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.showcase-brand-text { display: flex; flex-direction: column; gap: 2px; }
.showcase-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(129, 140, 248, .9);
}
.showcase-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: .5px;
}

.showcase-title {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -.5px;
}
.showcase-title em {
  font-style: normal;
  background: linear-gradient(120deg, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(224, 231, 255, .82);
  margin: 0 0 28px;
  max-width: 480px;
}
.showcase-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(129, 140, 248, .25);
  font-size: 13px;
  color: rgba(224, 231, 255, .9);
  backdrop-filter: blur(6px);
}
.showcase-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  display: inline-block;
}

.showcase-stats {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(129, 140, 248, .22);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  max-width: 560px;
}
.showcase-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6px;
  border-right: 1px solid rgba(129, 140, 248, .15);
}
.showcase-stats .stat-item:last-child { border-right: none; }
/* 注意：以下白色文字规则已限定在 .showcase-stats（深色背景）内，
   避免覆盖白底页面的 .stat-value/.stat-label 导致文字不可见 */
.showcase-stats .stat-value {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -.5px;
}
.showcase-stats .stat-unit {
  font-size: 14px;
  font-weight: 600;
  color: rgba(129, 140, 248, .95);
  margin-left: 2px;
}
.showcase-stats .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(224, 231, 255, .9);
}
.showcase-stats .stat-foot {
  font-size: 11px;
  color: rgba(224, 231, 255, .55);
  line-height: 1.5;
}

.login-card-wrap {
  flex: 1 1 45%;
  min-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background: #f4f7fb;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 36px 30px;
  box-shadow:
    0 30px 80px -20px rgba(15, 42, 60, .12),
    0 12px 32px -8px rgba(15, 42, 60, .08);
  border: 1px solid rgba(15, 42, 60, .04);
}

.login-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.welcome-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #4f46e5;
}
.lang-selector {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.lang-selector:hover { border-color: #4f46e5; }
.lang-selector:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f2a3c;
  margin: 0 0 6px;
  letter-spacing: -.5px;
}
.welcome-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 22px;
  line-height: 1.6;
}

.login-portal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.portal-switch {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.portal-switch a {
  text-decoration: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all .15s;
}
.portal-switch a:hover { color: #0f2a3c; }
.portal-switch a.active {
  background: #ffffff;
  color: #0f2a3c;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15,42,60,.08);
}
.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .12);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

.login-portal-name {
  font-size: 18px;
  font-weight: 600;
  color: #0f2a3c;
  margin: 0 0 4px;
}
.login-portal-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 22px;
  line-height: 1.6;
}

.login-card .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.login-card .form-row label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
.login-card .form-row input {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f2a3c;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-card .form-row input::placeholder { color: #cbd5e1; }
.login-card .form-row input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.login-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: 4px;
  box-shadow: 0 8px 24px -6px rgba(79,70,229,.45);
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(79,70,229,.55);
}
.login-btn:active { transform: translateY(0); }
.login-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
}

.login-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: .5px;
}

@media (max-width: 960px) {
  .login-page { flex-direction: column; }
  .login-showcase {
    flex: 0 0 auto;
    padding: 40px 32px;
    min-height: 320px;
  }
  .showcase-brand { margin-bottom: 32px; }
  .showcase-title { font-size: 32px; }
  .showcase-desc { font-size: 14px; margin-bottom: 18px; }
  .showcase-stats { margin-top: 28px; padding: 16px; }
  .stat-value { font-size: 24px; }
  .stat-item { padding: 0 4px; }
  .login-card-wrap { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .login-showcase { padding: 32px 24px; }
  .showcase-title { font-size: 26px; line-height: 1.3; }
  .showcase-brand { margin-bottom: 24px; }
  .showcase-stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(129, 140, 248, .15); padding-bottom: 12px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .login-card { padding: 28px 24px; border-radius: 20px; }
  .login-portal-row { flex-direction: column; align-items: stretch; }
  .portal-badge { align-self: flex-start; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9d3e5; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #aebbd2; }

@media (max-width: 1280px) {
  .main { padding: 18px; }
  .content-grid,
  .platform-admin-grid,
  .agent-business-grid,
  .agent-money-hero,
  .paid-report-grid,
  .knowledge-layout,
  .ai-suite-layout,
  .ai-website-grid { grid-template-columns: 1fr; }
  .ai-suite-search { min-width: 0; width: 100%; }
}

@media (max-width: 860px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
  }
  .app { flex-direction: column; }
  .main { margin-left: 0; padding: 14px; }
  .page-header,
  .ai-suite-hero,
  .publish-hero,
  .agent-hero,
  .delivery-hero,
  .entitlement-hero,
  .renewal-hero,
  .publish-agent-panel {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
  .page-actions,
  .hero-actions,
  .ai-suite-actions { width: 100%; justify-content: flex-start; }
  .btn { width: auto; }
  .stats-grid,
  .mini-metric-grid,
  .platform-grid,
  .content-action-grid,
  .media-score-row,
  .geo-metric-matrix,
  .storyboard-grid { grid-template-columns: 1fr; }
  .card { padding: 15px; }
  .task-item,
  .feed-workorder-main,
  .detection-head,
  .quality-head { flex-direction: column; }
  .task-icon { margin-right: 0; }
}
/* Admin layout polish: align three portals */
body[data-portal] .main {
  max-width: 1680px;
  width: calc(100% - 260px);
  margin-left: 260px;
  margin-right: auto;
}

body[data-portal] .page {
  width: 100%;
  max-width: 100%;
}

body[data-portal] .page > .card,
body[data-portal] .page > .content-grid,
body[data-portal] .page > .stats-grid,
body[data-portal] .page > .stats-grid-4,
body[data-portal] .page > .mini-metric-grid,
body[data-portal] .page > .platform-admin-grid,
body[data-portal] .page > .agent-business-grid,
body[data-portal] .page > .platform-grid,
body[data-portal] .page > .content-studio-grid,
body[data-portal] .page > .knowledge-layout,
body[data-portal] .page > .ai-suite-layout,
body[data-portal] .page > .publish-agent-panel,
body[data-portal] .page > .ai-suite-hero,
body[data-portal] .page > .publish-hero,
body[data-portal] .page > .agent-hero,
body[data-portal] .page > .delivery-hero,
body[data-portal] .page > .content-action-grid {
  margin-bottom: 18px;
}

body[data-portal] .page > *:last-child { margin-bottom: 0; }

body[data-portal] .stats-grid,
body[data-portal] .stats-grid-4,
body[data-portal] .mini-metric-grid,
body[data-portal] .compact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  align-items: stretch;
}

body[data-portal] .stat-card,
body[data-portal] .mini-metric,
body[data-portal] .platform-card,
body[data-portal] .package-card,
body[data-portal] .entitlement-card,
body[data-portal] .quality-card,
body[data-portal] .matrix-card,
body[data-portal] .segment-card,
body[data-portal] .business-model-card,
body[data-portal] .agent-loop-card,
body[data-portal] .media-account-card,
body[data-portal] .video-card {
  height: 100%;
  min-width: 0;
}

body[data-portal] .content-grid,
body[data-portal] .knowledge-layout,
body[data-portal] .paid-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr) !important;
  align-items: start;
}

body[data-portal] .platform-admin-grid,
body[data-portal] .agent-business-grid,
body[data-portal] .boss-grid,
body[data-portal] .agent-money-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
}

body[data-portal] .content-studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.35fr) !important;
  align-items: stretch;
}

body[data-portal] .ai-suite-layout {
  display: grid;
  grid-template-columns: minmax(270px, .34fr) minmax(0, 1fr) !important;
  align-items: start;
}

body[data-portal] .platform-grid,
body[data-portal] .media-account-grid,
body[data-portal] .media-resource-grid,
body[data-portal] .package-grid,
body[data-portal] .entitlement-grid,
body[data-portal] .agent-loop-grid,
body[data-portal] .business-model-grid,
body[data-portal] .advanced-metric-grid,
body[data-portal] .geo-question-grid,
body[data-portal] .delivery-change-grid,
body[data-portal] .storyboard-grid,
body[data-portal] .matrix-grid,
body[data-portal] .radar-grid,
body[data-portal] .segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  align-items: stretch;
  gap: 16px;
}

body[data-portal] .content-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  align-items: stretch;
  gap: 14px;
}

#page-citySites .matrix-grid,
#page-citySites .card,
#page-citySites .task-list,
#page-citySites .mini-metric-grid,
#page-citySites .compact-metrics {
  min-width: 0;
}

#page-citySites .matrix-grid {
  align-items: stretch;
}

#page-citySites .card {
  overflow: hidden;
}

#page-citySites .card-header {
  gap: 12px;
  align-items: flex-start;
}

#page-citySites .card-title {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#page-citySites .region-geo-task-item {
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

#page-citySites .region-geo-task-main {
  flex: 1 1 auto;
  min-width: 0;
}

#page-citySites .region-geo-task-main b,
#page-citySites .region-geo-task-main p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#page-citySites .region-geo-lead-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

#page-citySites .region-geo-task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 238px;
  max-width: 238px;
}

#page-citySites .region-geo-task-actions .btn,
#page-citySites .region-geo-task-status,
#page-citySites .pill {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  #page-citySites .matrix-grid {
    grid-template-columns: 1fr !important;
  }

  #page-citySites .region-geo-task-item {
    flex-direction: column;
    align-items: stretch;
  }

  #page-citySites .region-geo-task-actions {
    justify-content: flex-start;
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (max-width: 560px) {
  #page-citySites .region-geo-task-actions .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}

#page-deliverySop .sop-hero {
  background: linear-gradient(135deg, #058e3e 0%, #0f766e 55%, #14b8a6 100%);
}

#page-deliverySop .sop-template-item,
#page-deliverySop .delivery-plan-item,
#page-deliverySop .sop-task-item {
  align-items: flex-start;
  gap: 14px;
}

#page-deliverySop .sop-task-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

#page-deliverySop .sop-task-chips span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5, 142, 62, .08);
  color: #058e3e;
  font-size: 12px;
  font-weight: 600;
}

#page-deliverySop .sop-task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 150px;
}

#page-deliverySop .publish-agent-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#page-deliverySop .publish-agent-controls .form-input {
  min-width: 150px;
}

@media (max-width: 900px) {
  #page-deliverySop .sop-task-item,
  #page-deliverySop .delivery-plan-item,
  #page-deliverySop .sop-template-item {
    flex-direction: column;
    align-items: stretch;
  }
  #page-deliverySop .sop-task-actions {
    justify-content: flex-start;
  }
}

body[data-portal] .form-grid,
body[data-portal] .publish-builder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  align-items: end;
}

body[data-portal] .full-row,
body[data-portal] .form-grid .full-row,
body[data-portal] .publish-builder .full-row {
  grid-column: 1 / -1;
}

body[data-portal] .card,
body[data-portal] .feed-workorder,
body[data-portal] .publish-agent-panel,
body[data-portal] .ai-suite-panel,
body[data-portal] .ai-result-center {
  min-width: 0;
}

body[data-portal] .card-header {
  min-height: 46px;
  align-items: center;
}

body[data-portal] .card-header > .card-title {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-portal] .card-header > button,
body[data-portal] .card-header > .btn,
body[data-portal] .card-header .card-actions {
  flex: 0 0 auto;
}

body[data-portal] .page-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

body[data-portal] .page-title-area {
  min-width: 260px;
  flex: 1 1 auto;
}

body[data-portal] .page-actions {
  flex: 0 1 auto;
  max-width: 620px;
}

body[data-portal] .page-actions .btn {
  white-space: nowrap;
}

body[data-portal] .ai-suite-hero,
body[data-portal] .publish-hero,
body[data-portal] .agent-hero,
body[data-portal] .delivery-hero,
body[data-portal] .entitlement-hero,
body[data-portal] .renewal-hero {
  min-height: 146px;
  align-items: center;
}

body[data-portal] .ai-suite-hero > div:first-child,
body[data-portal] .publish-hero > div:first-child,
body[data-portal] .agent-hero > div:first-child,
body[data-portal] .delivery-hero > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-portal] .hero-actions,
body[data-portal] .ai-suite-actions {
  flex: 0 0 auto;
  max-width: 470px;
}

body[data-portal] .task-list,
body[data-portal] .ops-list,
body[data-portal] .recommend-list,
body[data-portal] .platform-list,
body[data-portal] .quality-list,
body[data-portal] .delivery-link-list,
body[data-portal] .evidence-chain-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-portal] .task-item,
body[data-portal] .ops-item,
body[data-portal] .recommend-item,
body[data-portal] .diagnosis-row,
body[data-portal] .delivery-link-item {
  min-width: 0;
}

body[data-portal] .task-info,
body[data-portal] .task-name,
body[data-portal] .task-meta {
  min-width: 0;
}

body[data-portal] .task-name,
body[data-portal] .card-title,
body[data-portal] .mini-metric-label,
body[data-portal] .stat-label {
  overflow-wrap: anywhere;
}

body[data-portal] .task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

body[data-portal] .task-meta span,
body[data-portal] .publish-field-grid span,
body[data-portal] .keyword-list span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body[data-portal] .task-status {
  align-self: flex-start;
  white-space: nowrap;
}

body[data-portal] .feed-workorder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-portal] .feed-workorder-main {
  width: 100%;
}

body[data-portal] .feed-workorder-actions,
body[data-portal] .editor-actions,
body[data-portal] .article-workflow-actions,
body[data-portal] .card-actions,
body[data-portal] .hero-actions,
body[data-portal] .ai-suite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

body[data-portal] .feed-workorder-actions .btn,
body[data-portal] table .btn-sm {
  margin: 0;
}

body[data-portal] .publish-flow {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
}

body[data-portal] .publish-flow.mini {
  display: flex;
  overflow-x: auto;
  padding-bottom: 6px;
}

body[data-portal] .publish-flow.mini span {
  flex: 0 0 auto;
  min-width: 96px;
}

body[data-portal] .publish-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

body[data-portal] .table-wrap {
  max-width: 100%;
}

body[data-portal] table {
  min-width: 760px;
}

body[data-portal] table th:last-child,
body[data-portal] table td:last-child {
  min-width: 140px;
}

body[data-portal] table td:last-child {
  white-space: normal;
}

/* Platform agent management polish */
#page-agents {
  --agent-page-gap: 12px;
}

#page-agents > .platform-admin-grid,
#page-agents > .card,
#page-agents > .content-grid,
#page-agents > .agents-admin-layout {
  margin-top: var(--agent-page-gap) !important;
}

.agents-page-compact {
  padding-bottom: 24px;
}

.agents-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, .62fr);
  gap: 12px;
  align-items: start;
}

.agents-main-column,
.agents-side-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

#page-agents .card {
  padding: 14px;
  border-radius: 18px;
}

#page-agents .compact-card {
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

#page-agents .card-header {
  margin-bottom: 9px;
  padding-bottom: 8px;
}

#page-agents .mini-metric-grid,
#page-agents .content-grid,
#page-agents .platform-admin-grid {
  gap: 12px;
}

#page-agents #ai-usage-summary,
#page-agents #platform-overview-cards,
#page-agents #agents-summary {
  margin-bottom: 0;
}

#page-agents #agents-summary {
  gap: 10px;
  margin-bottom: 10px;
}

#page-agents #agents-summary .mini-metric,
#page-agents #agents-summary .stat-card {
  min-height: auto;
  padding: 14px;
}

.agents-log-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  margin-top: 10px;
}

.agents-model-form {
  grid-template-columns: 1fr 1fr;
  margin: 10px 0;
}

.agents-model-form .btn,
.agents-model-form .form-input {
  min-height: 36px;
}

.agents-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.22), transparent 28%), linear-gradient(135deg, #1f2a64 0%, #4f46e5 52%, #818cf8 100%);
  box-shadow: 0 18px 46px rgba(79,70,229,.24);
  overflow: hidden;
  position: relative;
}

.agents-admin-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.agents-admin-hero > * {
  position: relative;
  z-index: 1;
}

.agents-admin-hero h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  color: #fff;
}

.agents-admin-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  font-size: 13px;
}

.agents-admin-hero .eyebrow {
  color: rgba(255,255,255,.72);
}

.agents-admin-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.agents-admin-hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}

.agents-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 10px;
  margin: 0;
}

.agent-admin-card {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border: 1px solid #e6eaf5;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.agent-admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79,70,229,.45);
  box-shadow: 0 18px 38px rgba(79,70,229,.14);
}

.agent-admin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-admin-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 10px 22px rgba(79,70,229,.28);
}

.agent-admin-title {
  min-width: 0;
  flex: 1;
}

.agent-admin-title h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #172033;
}

.agent-admin-title p {
  margin: 0;
  color: #8a94a6;
  font-size: 12px;
}

.agent-admin-tags,
.agent-admin-children,
.agent-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-admin-tags span,
.agent-admin-children span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #667085;
  font-size: 12px;
}

.agent-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.agent-admin-metrics div {
  padding: 9px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #eef2ff;
}

.agent-admin-metrics label {
  display: block;
  margin-bottom: 4px;
  color: #98a2b3;
  font-size: 11px;
}

.agent-admin-metrics b {
  color: #1d2939;
  font-size: 14px;
}

.agent-admin-progress {
  height: 6px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
  margin: 2px 0 10px;
}

.agent-admin-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #10b981);
}

.agent-admin-children {
  min-height: 28px;
  margin-bottom: 10px;
}

.agent-admin-actions {
  justify-content: flex-end;
  padding-top: 9px;
  border-top: 1px solid #eef2f7;
}

#page-agents .form-grid {
  gap: 10px;
}

#page-agents .task-list {
  gap: 6px;
}

#page-agents .task-item {
  padding: 10px;
  border-radius: 12px;
}

#page-agents .task-list[style*="margin-top:12px"],
#page-agents .content-grid[style*="margin-top:16px"] {
  margin-top: 10px !important;
}

#page-agents .section-label {
  margin-bottom: 8px;
}

#page-agents #platform-rules,
#page-agents #platform-ai-models,
#page-agents #model-config-list,
#page-agents #ai-failover-result,
#page-agents #ai-usage-by-task,
#page-agents #ai-call-logs,
#page-agents #platform-resources {
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

#page-agents #platform-ai-models,
#page-agents #ai-failover-result {
  max-height: 190px;
}

#page-agents #model-config-list {
  max-height: 220px;
}

@media (max-width: 1180px) {
  .agents-admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .agents-admin-hero .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .agent-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-portal] .report-card,
body[data-portal] .report-copy-box,
body[data-portal] .ai-insight-pre,
body[data-portal] .script-mini {
  max-width: 100%;
  overflow: auto;
}

body[data-portal] .quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}

body[data-portal] .ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 14px;
}

body[data-portal] .merchant-ops-card {
  margin-bottom: 18px;
}

body[data-portal] .article-list-modern {
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}

body[data-portal] .article-card {
  cursor: pointer;
}

body[data-portal] .article-editor-card {
  display: flex;
  flex-direction: column;
}

body[data-portal] .article-editor-card .article-editor,
body[data-portal] .article-editor-card #editor-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body[data-portal] .article-editor-card .rich-editor-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body[data-portal] .article-editor-card #editor-content,
body[data-portal] .article-editor-card #editor-content-source {
  flex: 1 1 auto;
  min-height: 420px;
}

body[data-portal] .quality-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.profile-management-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(17,153,142,.10));
  border: 1px solid rgba(79,70,229,.16);
}

.profile-management-hero h2 { margin: 4px 0 6px; color: #1e293b; }
.profile-management-hero p { margin: 0; color: #64748b; line-height: 1.7; }

.profile-management-layout {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
}

.profile-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.profile-customer-card {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6ebf3;
}

.profile-customer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profile-customer-head h3 { margin: 0 0 5px; color: #1e293b; font-size: 15px; }
.profile-customer-head p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }

.profile-status {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.profile-status.ok { color: #047857; background: rgba(16,185,129,.12); }
.profile-status.warn { color: #b45309; background: rgba(245,158,11,.14); }
.profile-status.danger { color: #be123c; background: rgba(244,63,94,.12); }

.profile-progress-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin: 14px 0 10px; color: #334155; }
.profile-customer-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.profile-customer-metrics span { padding: 7px 6px; border-radius: 8px; background: #fff; border: 1px solid #edf1f7; text-align: center; color: #475569; font-size: 12px; }
.profile-missing-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.profile-missing-tags span { padding: 4px 8px; border-radius: 999px; background: rgba(79,70,229,.10); color: #4f46e5; font-size: 12px; }
.profile-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

@media (min-width: 1681px) {
  body[data-portal] .main {
    margin-right: auto;
  }
}

@media (max-width: 1440px) {
  body[data-portal] .main {
    padding: 20px;
  }
  body[data-portal] .content-grid,
  body[data-portal] .knowledge-layout,
  body[data-portal] .paid-report-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr) !important;
  }
  body[data-portal] .content-studio-grid {
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr) !important;
  }
}

@media (max-width: 1180px) {
  body[data-portal] .content-grid,
  body[data-portal] .knowledge-layout,
  body[data-portal] .paid-report-grid,
  body[data-portal] .platform-admin-grid,
  body[data-portal] .agent-business-grid,
  body[data-portal] .boss-grid,
  body[data-portal] .agent-money-hero,
  body[data-portal] .content-studio-grid,
  body[data-portal] .ai-suite-layout,
  body[data-portal] .agents-admin-layout,
  body[data-portal] .agents-log-grid {
    grid-template-columns: 1fr !important;
  }
  body[data-portal] .page-header,
  body[data-portal] .ai-suite-hero,
  body[data-portal] .publish-hero,
  body[data-portal] .agent-hero,
  body[data-portal] .delivery-hero {
    align-items: flex-start;
  }
  body[data-portal] .page-actions,
  body[data-portal] .hero-actions,
  body[data-portal] .ai-suite-actions {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  body[data-portal] .main {
    width: 100%;
    margin-left: 0;
    padding: 14px;
  }
  body[data-portal] .page-header {
    gap: 12px;
  }
  body[data-portal] .page-title-area {
    min-width: 0;
  }
  body[data-portal] .page-actions .btn,
  body[data-portal] .hero-actions .btn,
  body[data-portal] .ai-suite-actions .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
  body[data-portal] .stats-grid,
  body[data-portal] .stats-grid-4,
  body[data-portal] .mini-metric-grid,
  body[data-portal] .platform-grid,
  body[data-portal] .media-account-grid,
  body[data-portal] .media-resource-grid,
  body[data-portal] .package-grid,
  body[data-portal] .entitlement-grid,
  body[data-portal] .agent-loop-grid,
  body[data-portal] .business-model-grid,
  body[data-portal] .advanced-metric-grid,
  body[data-portal] .geo-question-grid,
  body[data-portal] .delivery-change-grid,
  body[data-portal] .storyboard-grid,
  body[data-portal] .matrix-grid,
  body[data-portal] .radar-grid,
  body[data-portal] .segment-grid,
  body[data-portal] .content-action-grid,
  body[data-portal] .form-grid,
  body[data-portal] .publish-builder,
  body[data-portal] .ops-grid,
  body[data-portal] .quick-actions {
    grid-template-columns: 1fr !important;
  }
  body[data-portal] .feed-workorder-actions .btn,
  body[data-portal] .editor-actions .btn,
  body[data-portal] .article-workflow-actions .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (max-width: 560px) {
  body[data-portal] .page-actions .btn,
  body[data-portal] .hero-actions .btn,
  body[data-portal] .ai-suite-actions .btn,
  body[data-portal] .feed-workorder-actions .btn,
  body[data-portal] .editor-actions .btn,
  body[data-portal] .article-workflow-actions .btn {
    flex-basis: 100%;
  }
}
/* Publish page scroll fix */
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-portal] .app {
  min-height: 100vh;
  overflow: visible;
}

body[data-portal] .main {
  min-height: 100vh;
  overflow: visible;
}

body[data-portal] #page-publish,
body[data-portal] .feed-suite-page {
  overflow: visible;
  min-height: auto;
}

body[data-portal] #page-publish .content-grid {
  overflow: visible;
  align-items: start;
}

body[data-portal] #page-publish .card {
  overflow: visible;
}

body[data-portal] #publish-task-list,
body[data-portal] #feed-effect-list {
  overflow: visible;
  max-height: none;
}

body[data-portal] #publish-task-list .feed-workorder,
body[data-portal] #feed-effect-list .task-item {
  overflow: visible;
}

body[data-portal] #page-publish .publish-flow.mini {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

body[data-portal] #page-publish .feed-workorder-actions {
  overflow: visible;
}

@media (max-width: 1180px) {
  body[data-portal] #page-publish .content-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Unified publish queue runtime */
.queue-runtime-card { margin: 20px 0; padding: 20px; }
.queue-runtime-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.queue-runtime-head b { color: #172033; font-size: 17px; }
.queue-runtime-head p { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.queue-runtime-status { flex: 0 0 auto; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.queue-runtime-status.active { background: #eef2ff; color: #4338ca; }
.queue-runtime-status.stopped { background: #fff1f2; color: #be123c; }
.queue-runtime-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.queue-runtime-metrics > div { min-width: 0; padding: 12px; border: 1px solid #e6eaf2; border-radius: 8px; background: #f8fafc; }
.queue-runtime-metrics span { display: block; color: #64748b; font-size: 12px; }
.queue-runtime-metrics b { display: block; margin-top: 7px; color: #172033; font-size: 17px; overflow-wrap: anywhere; }
.queue-runtime-error { margin-top: 12px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fff7f7; color: #b91c1c; font-size: 12px; overflow-wrap: anywhere; }
.queue-rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.queue-rate-item { min-width: 0; padding: 12px; border: 1px solid #e6eaf2; border-radius: 8px; background: #fff; }
.queue-rate-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.queue-rate-item b { color: #334155; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-rate-item span { flex: 0 0 auto; font-size: 11px; font-weight: 700; }
.queue-rate-item span.normal { color: #047857; }
.queue-rate-item span.warning { color: #c2410c; }
.queue-rate-item p { margin: 8px 0; color: #64748b; font-size: 12px; }
.queue-rate-bar { height: 6px; overflow: hidden; border-radius: 4px; background: #eef2f7; }
.queue-rate-bar i { display: block; height: 100%; border-radius: 4px; background: #4f46e5; }
.queue-runtime-safety { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f5; color: #64748b; font-size: 12px; }
@media (max-width: 1100px) { .queue-runtime-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .queue-runtime-card { padding: 16px; } .queue-runtime-head { flex-direction: column; } .queue-runtime-metrics, .queue-rate-grid { grid-template-columns: 1fr; } .queue-runtime-status { align-self: flex-start; } }

.delivery-pro-report { border: 1px solid #dbe4ff; background: linear-gradient(180deg, #ffffff, #f8fbff); box-shadow: 0 18px 46px rgba(79,70,229,.10); }
.delivery-report-head { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 18px; align-items: center; padding: 18px; margin: -4px -4px 18px; border-radius: 18px; background: radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 35%), linear-gradient(135deg, #111827, #4f46e5 62%, #0891b2); color: #fff; }
.delivery-report-head .eyebrow { display: block; color: rgba(255,255,255,.72); letter-spacing: 1.8px; text-transform: uppercase; font-size: 11px; margin-bottom: 6px; }
.delivery-report-head h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.delivery-report-head p { color: rgba(255,255,255,.88); line-height: 1.7; margin: 0; }
.delivery-report-score { width: 104px; height: 104px; border-radius: 26px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.delivery-report-score b { font-size: 34px; line-height: 1; }
.delivery-report-score span { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.86); }
.delivery-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.delivery-module-card { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e8eef7; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.delivery-module-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #1e293b; font-weight: 800; }
.delivery-module-card span { color: #4f46e5; white-space: nowrap; }
.delivery-module-card p { color: #64748b; line-height: 1.6; margin: 10px 0 0; font-size: 13px; }
.delivery-progress { height: 8px; border-radius: 999px; background: #eef2ff; overflow: hidden; margin-top: 10px; }
.delivery-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f46e5, #06b6d4); }
.delivery-action-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.delivery-action-tags span { padding: 7px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; }
.delivery-renewal-box { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #ffffff); border: 1px solid #fed7aa; }
.delivery-renewal-box b { color: #9a3412; }
.delivery-renewal-box p { margin: 8px 0 0; color: #7c2d12; line-height: 1.65; }
.delivery-link-item small { display: block; color: #94a3b8; margin-top: 4px; word-break: break-all; }
.delivery-ai-record .status-done { color: #16a34a; background: #dcfce7; padding: 3px 8px; border-radius: 999px; }
.delivery-ai-record .status-pending { color: #f97316; background: #ffedd5; padding: 3px 8px; border-radius: 999px; }
@media (max-width: 760px) { .delivery-report-head { grid-template-columns: 1fr; } .delivery-report-score { width: 100%; height: auto; padding: 18px; } }


/* P4 production launch center */
.p4-hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #111827, #4f46e5 58%, #0891b2); color: #fff; box-shadow: 0 18px 44px rgba(79,70,229,.18); }
.p4-hero h2 { color: #fff; margin: 6px 0 8px; font-size: 24px; }
.p4-hero p { color: rgba(255,255,255,.88); max-width: 760px; line-height: 1.7; margin: 0; }
.p4-hero .eyebrow { color: rgba(255,255,255,.75); letter-spacing: 1.6px; text-transform: uppercase; }
.p4-hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
#p4-api-list .task-icon, #p4-quota-rules .task-icon { min-width: 38px; }
@media (max-width: 760px) { .p4-hero { flex-direction: column; align-items: flex-start; } }


/* Delivery report long-form visual report */
.delivery-report-shell { margin-top: 20px; }
.delivery-long-report { background: #fff; border: 1px solid #e5ebf5; border-radius: 24px; padding: 22px; box-shadow: 0 16px 42px rgba(15, 23, 42, .08); }
.delivery-report-cover { display: flex; justify-content: space-between; gap: 22px; align-items: stretch; background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #f7fbff 100%); border: 1px solid #dbeafe; border-radius: 22px; padding: 24px; }
.delivery-report-cover h2 { font-size: 28px; color: #102a43; margin: 6px 0 10px; letter-spacing: -.02em; }
.delivery-report-cover p { color: #486581; line-height: 1.8; max-width: 880px; }
.delivery-cover-meta { min-width: 220px; background: rgba(255,255,255,.78); border: 1px solid #e5efff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: #52606d; }
.delivery-cover-meta b { color: #102a43; font-size: 14px; }
.delivery-cover-meta span { font-size: 12px; }
.delivery-kpi-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0; }
.delivery-kpi-strip div { background: #fff; border: 1px solid #e8eef7; border-radius: 16px; padding: 14px 15px; box-shadow: 0 8px 20px rgba(15,23,42,.035); }
.delivery-kpi-strip span { display: block; font-size: 12px; color: #64748b; font-weight: 700; }
.delivery-kpi-strip b { display: block; font-size: 25px; color: #0f172a; margin: 5px 0 2px; }
.delivery-kpi-strip small { color: #94a3b8; font-size: 11px; }
.delivery-section { border-top: 1px solid #eef2f7; padding-top: 20px; margin-top: 20px; }
.delivery-section-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.delivery-section-title b { color: #172033; font-size: 17px; }
.delivery-section-title span { color: #94a3b8; font-size: 12px; }
.delivery-report-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-chart-card, .delivery-change-panel, .delivery-renewal-box.pro, .agent-brand-card.pro { background: linear-gradient(180deg, #fff, #fbfdff); border: 1px solid #e6edf7; border-radius: 18px; padding: 18px; min-width: 0; box-shadow: 0 8px 22px rgba(15,23,42,.035); }
.delivery-chart-card h4 { color: #243b53; margin: 0 0 14px; font-size: 15px; }
.delivery-chart-card.pastel { background: linear-gradient(135deg, #f0fdf4, #eff6ff); }
.delivery-radar-svg { width: 100%; max-width: 360px; height: 260px; display: block; margin: 0 auto; }
.radar-grid-lines circle, .radar-grid-lines line { stroke: #dbe7f5; fill: none; stroke-width: 1; }
.radar-grid-lines text { fill: #64748b; font-size: 10px; text-anchor: middle; }
.radar-area { fill: rgba(59, 130, 246, .18); stroke: none; }
.radar-stroke { fill: none; stroke: #3b82f6; stroke-width: 2.5; }
.radar-dot { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.delivery-donut-wrap { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; min-height: 160px; }
.delivery-donut { width: 130px; height: 130px; transform: rotate(-90deg); }
.delivery-donut text { transform: rotate(90deg); transform-origin: 52px 52px; text-anchor: middle; fill: #0f172a; font-weight: 800; font-size: 17px; }
.delivery-donut text:last-child { font-size: 10px; fill: #94a3b8; font-weight: 600; }
.delivery-legend { display: flex; flex-direction: column; gap: 8px; }
.delivery-legend span { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 12px; }
.delivery-legend i { width: 9px; height: 9px; border-radius: 999px; }
.delivery-module-grid.pro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.delivery-bar-row { margin-bottom: 10px; }
.delivery-bar-row label { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: 12px; margin-bottom: 5px; }
.delivery-bar-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-bar-row label b { color: #0f172a; }
.delivery-bar-row div { height: 9px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.delivery-bar-row i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.delivery-mini-bars { height: 170px; display: flex; align-items: flex-end; gap: 12px; padding: 12px 6px 0; border-bottom: 1px solid #e8eef7; }
.delivery-mini-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.delivery-mini-bars i { width: 100%; max-width: 32px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #60a5fa, #2563eb); min-height: 8px; }
.delivery-mini-bars i.ok { background: linear-gradient(180deg, #34d399, #16a34a); }
.delivery-mini-bars i.warn { background: linear-gradient(180deg, #fbbf24, #f97316); }
.delivery-mini-bars span { font-size: 11px; color: #64748b; }
.delivery-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid #e8eef7; border-radius: 16px; }
.delivery-table-wrap table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.delivery-table-wrap th { background: #f8fbff; color: #334155; font-size: 12px; text-align: left; padding: 12px; border-bottom: 1px solid #e8eef7; }
.delivery-table-wrap td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 12px; }
.delivery-table-wrap tr:last-child td { border-bottom: 0; }
.delivery-status { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800; }
.delivery-status.ok { background: #ecfdf5; color: #047857; }
.delivery-status.warn { background: #fff7ed; color: #c2410c; }
.delivery-change-panel { background: linear-gradient(135deg, #ecfdf5, #ffffff); }
.delivery-change-panel.warn { background: linear-gradient(135deg, #fff7ed, #ffffff); }
.delivery-change-panel b { color: #475569; }
.delivery-change-panel strong { display: block; font-size: 30px; color: #0f172a; margin: 8px 0; }
.delivery-change-panel p, .delivery-renewal-box.pro p { color: #64748b; line-height: 1.7; }
.delivery-action-tags.pro { display: flex; flex-wrap: wrap; gap: 10px; }
.delivery-action-tags.pro span { background: #fff; border: 1px solid #dbeafe; color: #2563eb; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.delivery-empty-chart { color: #94a3b8; text-align: center; padding: 56px 0; background: #f8fafc; border-radius: 14px; }
@media(max-width: 1280px) { .delivery-kpi-strip { grid-template-columns: repeat(3,1fr); } .delivery-report-grid.two, .delivery-module-grid.pro { grid-template-columns: 1fr; } }
@media(max-width: 760px) { .delivery-report-cover { flex-direction: column; } .delivery-kpi-strip { grid-template-columns: 1fr; } .delivery-donut-wrap { grid-template-columns: 1fr; justify-items: center; } }

.long-tail-card { border: 1px solid rgba(5,142,62,0.16); background: linear-gradient(180deg,#ffffff 0%,#f6fff9 100%); }
.long-tail-card .card-title { color: #058e3e; }
.keyword-save-tip.saved { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }

/* ============== mini-metric 卡片修复（清晰度+颜色对比） ============== */
.mini-metric {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ui-surface-solid, #ffffff);
  border: 1px solid var(--ui-border, #e5ebf5);
  border-radius: var(--ui-radius, 16px);
  box-shadow: var(--ui-shadow-sm, 0 1px 2px rgba(16,24,40,.04));
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
/* 顶部彩色边条 */
.mini-metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ui-primary, #4f46e5);
  opacity: .9;
}
.mini-metric:hover {
  transform: translateY(-1px);
  border-color: var(--ui-border-strong, #d9e2f1);
  box-shadow: var(--ui-shadow, 0 10px 28px rgba(16,24,40,.08));
}

/* 图标区 */
.mini-metric-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  background: var(--ui-primary-soft, #eef1ff);
  color: var(--ui-primary, #4f46e5);
  line-height: 1;
}

/* 文本容器 */
.mini-metric > div:not(.mini-metric-icon) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 数值（最大字号、最深色） */
.mini-metric-value {
  font-size: 22px;
  font-weight: 750;
  color: var(--ui-text, #172033) !important;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* 标签（关键修复：深色、清晰可见） */
.mini-metric-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1f2a44 !important;
  line-height: 1.3;
  letter-spacing: .01em;
}

/* 变化说明（小灰字） */
.mini-metric-change {
  font-size: 12px;
  color: var(--ui-muted, #667085);
  line-height: 1.4;
  font-weight: 500;
  margin-top: 2px;
}

/* 兼容 .mini-metric-note (老代码使用) */
.mini-metric-note {
  font-size: 12px;
  color: var(--ui-subtle, #98a2b3);
  margin-top: 4px;
}

/* =============== 颜色变体 =============== */

/* 蓝色（知识素材） */
.mini-metric.blue::before { background: linear-gradient(90deg, #4f7df0, #6c5ce7); }
.mini-metric.blue .mini-metric-icon {
  background: rgba(79, 125, 240, .12);
  color: #4f7df0;
}

/* 绿色（已向量化） */
.mini-metric.green::before { background: linear-gradient(90deg, #0f9f75, #14c08b); }
.mini-metric.green .mini-metric-icon {
  background: rgba(15, 159, 117, .12);
  color: #0c8a64;
}

/* 橙色（关键词） */
.mini-metric.orange::before { background: linear-gradient(90deg, #f59e0b, #fb923c); }
.mini-metric.orange .mini-metric-icon {
  background: rgba(245, 158, 11, .14);
  color: #c2750a;
}

/* 青色（最近向量化） */
.mini-metric.cyan::before { background: linear-gradient(90deg, #06b6d4, #0ea5e9); }
.mini-metric.cyan .mini-metric-icon {
  background: rgba(6, 182, 212, .14);
  color: #0891b2;
}

/* 紫色 / 粉色 / 红色 备用变体 */
.mini-metric.purple::before { background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.mini-metric.purple .mini-metric-icon {
  background: rgba(139, 92, 246, .12);
  color: #7c3aed;
}
.mini-metric.pink::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.mini-metric.pink .mini-metric-icon {
  background: rgba(236, 72, 153, .12);
  color: #db2777;
}
.mini-metric.red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.mini-metric.red .mini-metric-icon {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

/* 响应式：窄屏 */
@media (max-width: 768px) {
  .mini-metric { padding: 14px 14px; gap: 10px; }
  .mini-metric-icon { width: 36px; height: 36px; font-size: 20px; }
  .mini-metric-value { font-size: 20px; }
  .mini-metric-label { font-size: 12px; }
}

/* ============== stat-card 卡片修复（颜色对比+清晰度） ============== */
/* 修复：showcase 深色区全局规则曾把白底卡片的文字覆盖为白色，
   此处用高优先级确保 .stats-grid 内的 stat 卡片文字始终深色清晰 */
.stats-grid .stat-card .stat-label {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #1f2a44 !important;
  letter-spacing: .01em;
  line-height: 1.35;
  margin-bottom: 6px;
}
.stats-grid .stat-card .stat-value {
  font-size: 28px;
  font-weight: 750;
  color: #172033 !important;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.stats-grid .stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.stats-grid .stat-card .stat-change.up { color: #0c8a64 !important; }
.stats-grid .stat-card .stat-change.down { color: #d6336c !important; }

/* 图标容器背景加深一档，提高与卡片的层次感 */
.stats-grid .stat-card .stat-icon {
  background: rgba(79, 70, 229, .14);
}
.stats-grid .stat-card .stat-icon.green { background: rgba(17, 153, 142, .14); }
.stats-grid .stat-card .stat-icon.orange { background: rgba(240, 147, 251, .16); }
.stats-grid .stat-card .stat-icon.cyan { background: rgba(79, 172, 254, .14); }
.stats-grid .stat-card .stat-icon.red { background: rgba(255, 154, 158, .16); }
.stats-grid .stat-card .stat-icon.purple { background: rgba(168, 85, 247, .14); }

/* portal（商家端）下同样生效 */
body[data-portal] .stat-card .stat-label { color: #1f2a44 !important; }
body[data-portal] .stat-card .stat-value { color: #172033 !important; }
body[data-portal] .stat-card .stat-change.up { color: #0c8a64 !important; }
body[data-portal] .stat-card .stat-change.down { color: #d6336c !important; }

/* ================================================================
   清爽白色侧边栏重构（08-22）
   深色渐变 → 白底；emoji → 统一 SVG 线条图标；精简视觉噪声
   ================================================================ */

/* --- 侧边栏容器 --- */
.sidebar {
  background: #ffffff !important;
  border-right: 1px solid #eef0f5 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, .04) !important;
}
.sidebar::before { display: none !important; }

/* --- Logo 区 --- */
.logo-area {
  padding: 20px 20px 14px !important;
  border-bottom: 1px solid #f0f1f5 !important;
}
.logo-area::after { display: none !important; }
.logo-area h1 {
  color: #1e293b !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  margin-bottom: 2px !important;
}
.logo-area .subtitle {
  color: #94a3b8 !important;
  font-size: 11px !important;
  letter-spacing: .04em !important;
}

/* --- 用户信息 --- */
.user-info {
  background: #f8fafc !important;
  border: 1px solid #eef0f5 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  margin-top: 16px !important;
  padding: 10px 12px !important;
}
.user-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .25) !important;
  border-radius: 10px !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
}
.user-name { color: #1e293b !important; font-size: 13px !important; font-weight: 600 !important; }
.user-role { color: #94a3b8 !important; font-size: 11px !important; }
.user-role::before { display: none !important; }

/* --- 导航区 --- */
.nav-section { padding: 8px 0 16px !important; }
.nav-group { margin-bottom: 2px !important; }

/* --- 分组头：简洁文字标签，去掉图标背景和箭头 --- */
.nav-group-header {
  margin: 10px 14px 4px !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  gap: 0 !important;
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  cursor: default !important;
  background: transparent !important;
}
.nav-group-header:hover,
.nav-group-header.active {
  background: transparent !important;
  color: #64748b !important;
}
.nav-group-header::before { display: none !important; }
.nav-group-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-group-icon::after { display: none !important; }
.nav-group-name { font-size: 10.5px !important; font-weight: 600 !important; }
.nav-group-arrow { display: none !important; }

/* --- 导航项 --- */
.nav-item {
  margin: 2px 8px !important;
  padding: 8px 10px !important;
  min-height: 36px !important;
  border-radius: 9px !important;
  gap: 9px !important;
  color: #64748b !important;
  font-size: 13px !important;
  border: 1px solid transparent !important;
  transition: background .15s, color .15s !important;
}
.nav-item::before,
.nav-item::after { display: none !important; }
.nav-item:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.nav-item.active {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  font-weight: 600 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* --- SVG 图标 --- */
.nav-item .nav-ico {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94a3b8;
}
.nav-item .nav-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.nav-item:hover .nav-ico { color: #64748b; }
.nav-item.active .nav-ico { color: #4f46e5; }

/* --- 标签（新/热）：缩小、柔化 --- */
.nav-item .tag-new,
.nav-item .tag-hot,
.nav-item .badge {
  margin-left: auto !important;
  font-size: 9px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
}
.nav-item .tag-new {
  background: #dbeafe !important;
  color: #2563eb !important;
}
.nav-item .tag-hot {
  background: #fce7f3 !important;
  color: #db2777 !important;
}
.nav-item .badge {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* --- nav-button（算力配置按钮）对齐 --- */
.nav-item.nav-button {
  background: transparent !important;
  border: 1px solid transparent !important;
  width: calc(100% - 16px) !important;
  text-align: left !important;
  font: inherit !important;
}

/* --- 滚动条 --- */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* --- 响应式微调 --- */
@media (max-width: 768px) {
  .nav-item { padding: 7px 8px !important; font-size: 12.5px !important; }
  .nav-item .nav-ico { width: 16px; height: 16px; }
  .nav-item .nav-ico svg { width: 16px; height: 16px; }
}

/* ================================================================
   B/C: 纯色主题 + 右侧 Design System 统一覆盖层
   目的：所有业务组件使用稳定纯色，避免渐变造成视觉噪声和旧浏览器兼容问题。
   ================================================================ */
:root {
  --ds-primary: #4f46e5;
  --ds-primary-dark: #3730a3;
  --ds-primary-soft: #eef2ff;
  --ds-success: #0f9f75;
  --ds-success-soft: #ecfdf5;
  --ds-warning: #d97706;
  --ds-warning-soft: #fffbeb;
  --ds-danger: #dc2626;
  --ds-danger-soft: #fef2f2;
  --ds-info: #2563eb;
  --ds-info-soft: #eff6ff;
  --ds-text: #172033;
  --ds-muted: #667085;
  --ds-border: #e5ebf5;
  --ds-border-strong: #d5deec;
  --ds-surface: #ffffff;
  --ds-surface-soft: #f8fafc;
  --ds-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

/* B：所有主要视觉容器取消渐变，统一为纯色 */
.sidebar,
.user-info,
.user-avatar,
.nav-group-header,
.nav-group-icon,
.nav-item,
.nav-item:hover,
.nav-item.active,
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.profile-guide,
.agent-compute-config-card,
.publish-account-card,
.onboarding-hero,
.onboarding-step.done,
.config-hero,
.visual-config-head,
.todo-card,
.todo-card.high,
.todo-card.warning,
.competitor-card,
.competitor-report-card,
.prep-output-card,
.auto-publish-panel,
.website-preview,
.video-thumbnail,
.chart-container,
.renewal-hero,
.db-switch-card,
.customer-report-card,
.diagnostic-card {
  background-image: none !important;
}

.sidebar {
  background: #111827 !important;
  box-shadow: 2px 0 12px rgba(15,23,42,.08) !important;
}
.user-info,
.nav-group-icon { background: #1f2937 !important; }
.user-avatar { background: var(--ds-primary) !important; box-shadow: none !important; }
.nav-group-header:hover { background: #f1f5f9 !important; }
.nav-group-header.active { background: transparent !important; color: #64748b !important; }
.nav-item.active { background: var(--ds-primary-soft) !important; color: var(--ds-primary) !important; box-shadow: none !important; }
.nav-item:hover { background: #f1f5f9 !important; }

.btn-primary { background: var(--ds-primary) !important; box-shadow: 0 3px 8px rgba(79,70,229,.2) !important; }
.btn-primary:hover { background: var(--ds-primary-dark) !important; }
.btn-success { background: var(--ds-success) !important; }
.btn-warning { background: var(--ds-warning) !important; }
.btn-danger { background: var(--ds-danger) !important; }

.profile-guide,
.config-hero,
.visual-config-head,
.agent-compute-config-card { background: var(--ds-info-soft) !important; border-color: #bfdbfe !important; }
.onboarding-hero,
.diagnostic-card,
.website-preview { background: var(--ds-primary) !important; box-shadow: var(--ds-shadow) !important; }
.onboarding-step.done { background: var(--ds-success-soft) !important; }
.todo-card { background: var(--ds-surface) !important; }
.todo-card.high { background: var(--ds-danger-soft) !important; }
.todo-card.warning { background: var(--ds-warning-soft) !important; }
.competitor-card,
.competitor-report-card,
.prep-output-card,
.customer-report-card,
.publish-account-card,
.db-switch-card { background: var(--ds-surface) !important; box-shadow: var(--ds-shadow) !important; }
.auto-publish-panel { background: var(--ds-primary-soft) !important; }
.video-thumbnail { background: #1e293b !important; }
.chart-container { background: var(--ds-surface-soft) !important; }

/* B：统计色条、进度条和步骤节点使用单一语义色 */
.stat-card.blue::before,
.stat-card.green::before,
.stat-card.orange::before,
.stat-card.cyan::before,
.stat-card.red::before,
.stat-card.purple::before,
.progress-fill.purple,
.progress-fill.green,
.progress-fill.orange,
.step.active .step-number,
.step.done .step-number,
.step.done .step-line { background-image: none !important; }
.stat-card.blue::before,
.progress-fill.purple,
.step.active .step-number { background: var(--ds-primary) !important; }
.stat-card.green::before,
.progress-fill.green,
.step.done .step-number,
.step.done .step-line { background: var(--ds-success) !important; }
.stat-card.orange::before,
.progress-fill.orange { background: var(--ds-warning) !important; }
.stat-card.cyan::before { background: var(--ds-info) !important; }
.stat-card.red::before { background: var(--ds-danger) !important; }
.stat-card.purple::before { background: #7c3aed !important; }

/* C：状态、标签、按钮统一 */
.task-status,
.agent-status,
.status-badge,
.pill,
.keyword-tag,
.tag,
.truth-tag,
.video-status-badge { box-shadow: none !important; }
.status-running { background: var(--ds-primary-soft) !important; color: var(--ds-primary) !important; }
.status-done,
.agent-status.online,
.video-status-badge.success { background: var(--ds-success-soft) !important; color: var(--ds-success) !important; }
.status-pending,
.agent-status.training,
.video-status-badge.pending { background: var(--ds-warning-soft) !important; color: var(--ds-warning) !important; }
.status-error { background: var(--ds-danger-soft) !important; color: var(--ds-danger) !important; }
.keyword-tag { background: var(--ds-primary-soft) !important; color: var(--ds-primary) !important; border-color: #c7d2fe !important; }
.keyword-tag .count { background: var(--ds-primary) !important; }
.pill { background: var(--ds-primary-soft) !important; color: var(--ds-primary) !important; }

/* C：右侧内容区的面板、图表和模态框 */
.ai-suite-panel,
.ops-panel,
.card,
.panel,
.chart-card,
.table-card,
.metric-card { background: var(--ds-surface) !important; border-color: var(--ds-border) !important; box-shadow: var(--ds-shadow) !important; }
.chart-container { border: 1px solid var(--ds-border) !important; border-radius: 10px !important; }
.chart-placeholder { color: var(--ds-muted) !important; }
.modal-overlay { background: rgba(15,23,42,.45) !important; }
.modal { background: var(--ds-surface) !important; border: 1px solid var(--ds-border) !important; box-shadow: 0 18px 48px rgba(15,23,42,.18) !important; }
.modal-header { background: var(--ds-surface) !important; border-bottom-color: var(--ds-border) !important; }
.modal-close { background: var(--ds-surface-soft) !important; color: var(--ds-muted) !important; }
.modal-close:hover { background: var(--ds-primary-soft) !important; color: var(--ds-primary) !important; }

/* C：移除页面级伪装饰渐变，保留内容层次 */
.sidebar::before,
.logo-area::after,
.website-preview::before { background-image: none !important; }

/* 纯色主题中的统一文字与边界 */
.page-title-area h1,
.card-title,
.task-name,
.modal-title { color: var(--ds-text) !important; }
.muted,
.page-title-area .breadcrumb,
.task-meta,
.mini-metric-label { color: var(--ds-muted) !important; }

@media (max-width: 768px) {
  .onboarding-hero { grid-template-columns: 1fr !important; }
  .modal { width: calc(100% - 24px) !important; }
}

/* 菜单字号层级：主菜单清晰、子菜单协调 */
.nav-group-header {
  min-height: 38px !important;
  padding: 8px 10px !important;
  line-height: 1.35 !important;
}
.nav-group-name {
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
.nav-item {
  min-height: 38px !important;
  padding: 8px 10px !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.nav-item .nav-ico,
.nav-item .nav-ico svg {
  width: 18px !important;
  height: 18px !important;
}
@media (max-width: 768px) {
  .nav-group-name { font-size: 12.5px !important; }
  .nav-item { font-size: 13.5px !important; }
}

/* 侧栏保持上一版线上白色风格，仅保留本次字号修复 */
.sidebar {
  background: #ffffff !important;
  border-right: 1px solid #eef0f5 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, .04) !important;
}
.sidebar::before { display: none !important; }
.logo-area {
  border-bottom: 1px solid #f0f1f5 !important;
}
.logo-area::after { display: none !important; }
.user-info {
  background: #f8fafc !important;
  border: 1px solid #eef0f5 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.user-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .25) !important;
}
.user-name { color: #1e293b !important; }
.user-role { color: #94a3b8 !important; }
.user-role::before { display: none !important; }
.nav-group-header,
.nav-group-header:hover,
.nav-group-header.active {
  background: transparent !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}
.nav-group-name { color: inherit !important; }
.nav-group-icon { display: none !important; }
.nav-group-arrow { display: none !important; }
.nav-item {
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.nav-item:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}
.nav-item.active {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  box-shadow: none !important;
}
.nav-item .nav-ico { color: #94a3b8 !important; }
.nav-item:hover .nav-ico { color: #64748b !important; }
.nav-item.active .nav-ico { color: #4f46e5 !important; }
.nav-item .tag-new { background: #dbeafe !important; color: #2563eb !important; }
.nav-item .tag-hot { background: #fce7f3 !important; color: #db2777 !important; }
.nav-item .badge { background: #fee2e2 !important; color: #dc2626 !important; }
.sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* 交付相关页面主色统一：页面品牌视觉使用靛蓝，成功状态仍保留绿色 */
.delivery-hero,
#page-deliverySop .sop-hero {
  background: var(--ds-primary) !important;
  background-image: none !important;
}
.delivery-pro-report,
.delivery-long-report { border-color: #dbe4ff !important; }
.delivery-report-head {
  background: var(--ds-primary) !important;
  background-image: none !important;
}
.delivery-report-score { background: rgba(255,255,255,.14) !important; }
.delivery-chart-card.pastel,
.delivery-change-panel,
.delivery-change-panel.warn {
  background: var(--ds-surface) !important;
  background-image: none !important;
  border-color: var(--ds-border) !important;
}
.delivery-progress i,
.delivery-bar-row i,
.delivery-mini-bars i {
  background: var(--ds-primary) !important;
  background-image: none !important;
}
.delivery-action-tags span,
.delivery-action-tags.pro span {
  background: var(--ds-primary-soft) !important;
  border-color: #c7d2fe !important;
  color: var(--ds-primary-dark) !important;
}
.delivery-module-card span { color: var(--ds-primary) !important; }
.delivery-report-cover {
  background: var(--ds-info-soft) !important;
  background-image: none !important;
  border-color: #bfdbfe !important;
}
.delivery-cover-meta { background: var(--ds-surface) !important; }
.delivery-table-wrap th { background: #f8faff !important; }
.delivery-empty-chart { background: var(--ds-surface-soft) !important; }

/* GEO reports */
.report-page .report-hero{background:var(--ds-primary,#4f46e5);color:#fff;border-radius:10px;padding:28px 30px;display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:20px}.report-page .report-hero h2{margin:8px 0 6px;font-size:28px}.report-page .report-hero p{margin:0;color:rgba(255,255,255,.82);max-width:720px}.report-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.report-metric{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:18px;min-height:112px;box-shadow:0 3px 12px rgba(30,41,59,.05)}.report-metric.primary{border-top:3px solid #4f46e5}.report-metric.success{border-top:3px solid #0f766e}.report-metric.warn{border-top:3px solid #c2410c}.report-metric-label{color:#64748b;font-size:13px;font-weight:600}.report-metric-value{color:#172033;font-size:28px;font-weight:800;margin-top:10px;line-height:1.1}.report-metric-note{color:#94a3b8;font-size:12px;margin-top:8px}.report-grid-gap{gap:20px}.report-card-gap{margin-top:20px}.report-bars{display:flex;flex-direction:column;gap:16px;padding:4px 0}.report-bar-row>div{display:flex;justify-content:space-between;gap:12px;color:#334155;font-size:13px;margin-bottom:7px}.report-bar-row b{color:#172033}.report-bar-row i{display:block;height:8px;border-radius:4px;background:#eef2f7;overflow:hidden}.report-bar-row em{display:block;height:100%;border-radius:4px}.report-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-callout{margin-top:14px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:14px 16px;color:#3730a3}.report-callout p{margin:7px 0 0;color:#334155;line-height:1.65}.report-table-wrap{overflow:auto}.report-table-wrap table{width:100%;min-width:640px;border-collapse:collapse}.report-table-wrap th,.report-table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;color:#334155}.report-table-wrap th{background:#f8faff;color:#64748b;font-weight:700;white-space:nowrap}.report-status{display:inline-block;padding:3px 8px;border-radius:4px;background:#ecfdf5;color:#047857;font-size:12px}.report-status.danger{background:#fef2f2;color:#b91c1c}.report-empty{padding:28px 12px;text-align:center;color:#94a3b8;font-size:13px}@media (max-width:900px){.report-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-page .report-hero{align-items:flex-start;flex-direction:column}}@media (max-width:600px){.report-metric-grid{grid-template-columns:1fr}.report-insight-grid{grid-template-columns:1fr}.report-page .report-hero{padding:22px 18px}.report-page .report-hero h2{font-size:23px}}@media print{.sidebar,.topbar,.hero-actions,.nav-section{display:none!important}.main{margin-left:0!important}.report-page .report-hero{color:#172033;background:#eef2ff!important}.report-page .report-hero p{color:#475569}}
\n.report-link{margin-top:14px;font-size:12px;color:rgba(255,255,255,.78)}.report-link a{color:#fff;text-decoration:underline}.report-metric-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}.report-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-source-grid div{background:#f8faff;border:1px solid #e5e7eb;border-radius:6px;padding:12px}.report-source-grid b,.report-source-grid span{display:block}.report-source-grid b{font-size:12px;color:#64748b;margin-bottom:6px}.report-source-grid span{font-size:13px;color:#172033;word-break:break-word}.report-note{line-height:1.65}.report-sentiment-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.report-sentiment-summary span{background:#f8faff;padding:14px;border-radius:6px;color:#64748b;font-size:13px}.report-rank-list{display:flex;flex-direction:column;gap:10px}.report-rank-row{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:12px;background:#f8faff;border-radius:6px}.report-rank-row b{color:#4f46e5}.report-rank-row span{color:#334155}.report-rank-row strong{color:#172033}.report-tabs{display:flex;gap:6px;flex-wrap:wrap}.report-tabs button{border:0;background:#f1f5f9;color:#64748b;padding:7px 10px;border-radius:4px;font-size:12px}.report-tabs button.active{background:#eef2ff;color:#4f46e5;font-weight:700}@media(max-width:900px){.report-metric-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}.report-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.report-metric-grid.six{grid-template-columns:1fr}.report-source-grid{grid-template-columns:1fr}.report-sentiment-summary{grid-template-columns:repeat(2,1fr)}}\n
/* Unified knowledge and Agent workbench */
.workbench-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:14px 18px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;color:#1f2a44}
.workbench-strip>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.workbench-strip b{color:#4338ca;font-size:16px}
.workbench-strip span{font-size:12px;color:#596579}
.workbench-metrics{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.workbench-metrics>span{font-size:12px;color:#596579}
.workbench-metrics>span b{font-size:14px;color:#1f2a44}
@media (max-width:700px){.workbench-strip{align-items:flex-start}.workbench-metrics{width:100%;gap:10px}.workbench-metrics .btn{width:100%}}

/* Workbench sub-navigation modeled on GEO/Agent information architecture */
.workbench-inline-nav{margin:0 0 18px}.workbench-subnav{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(31,42,68,.04)}
.workbench-subnav-title{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:120px;padding:13px 16px;font-weight:700;color:#1f2a44;background:#f8f9fc}.workbench-collapse{color:#9aa3b2;font-weight:400}.workbench-subnav-group{padding:10px 12px;border-left:1px solid #edf0f6}.workbench-subnav-group-title{font-size:12px;font-weight:700;color:#596579;margin-bottom:6px}.workbench-subnav-group-title span{color:#8d97a8;margin-left:6px}.workbench-subnav-item{border:0;background:transparent;color:#4d5870;padding:6px 9px;margin-right:2px;border-radius:6px;font-size:12px;cursor:pointer}.workbench-subnav-item:hover,.workbench-subnav-item.active{background:#eef2ff;color:#4f46e5}.agent-subnav .workbench-subnav-item{padding:12px 16px;font-size:13px;font-weight:650}.workbench-anchor{height:0;scroll-margin-top:20px}.workbench-anchor:target{height:0}@media(max-width:760px){.workbench-subnav{display:block}.workbench-subnav-title{min-width:0}.workbench-subnav-group{border-left:0;border-top:1px solid #edf0f6}.workbench-subnav-item{font-size:12px}}

/* Xunling-aligned Agent inner pages, using the existing indigo system. */
.inner-pages-suite{border:1px solid #e7e9f2;background:#fff}.inner-pages-layout{display:grid;grid-template-columns:180px minmax(0,1fr);min-height:620px}.inner-pages-sidebar{border-right:1px solid #edf0f6;padding:14px 10px;background:#fbfcff}.inner-pages-group-title{padding:12px 10px 7px;color:#7b8498;font-size:12px;font-weight:700}.inner-page-menu{width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:7px;color:#344054;cursor:pointer;font-size:14px}.inner-page-menu:hover,.inner-page-menu.active{background:#eef2ff;color:#4f46e5;font-weight:650}.inner-pages-content{padding:20px;min-width:0}.inner-page-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.inner-page-heading h3{margin:4px 0 6px;color:#172033}.inner-page-heading p{margin:0;color:#667085;font-size:13px}.inner-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.inner-feature-card{border:1px solid #e7e9f2;border-radius:8px;background:#fff;padding:16px}.inner-feature-card>b{display:block;color:#27324a;margin-bottom:13px}.inner-action-list{display:flex;flex-wrap:wrap;gap:8px}.inner-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inner-toolbar .form-input{flex:1;min-width:220px}.employee-tools{margin:14px 0}.inner-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.template-option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.template-option{border:1px solid #dfe3ed;background:#fff;border-radius:7px;padding:12px;text-align:left;color:#344054;cursor:pointer}.template-option.active,.template-option:hover{border-color:#818cf8;background:#eef2ff;color:#4338ca}.template-option small{color:#7b8498}.full-inner-tab{max-width:1180px}.company-settings-grid .inner-feature-card{min-height:180px}@media(max-width:800px){.inner-pages-layout{grid-template-columns:1fr}.inner-pages-sidebar{border-right:0;border-bottom:1px solid #edf0f6;display:flex;gap:6px;overflow-x:auto;align-items:center}.inner-pages-group-title{display:none}.inner-page-menu{white-space:nowrap;width:auto}.inner-pages-content{padding:14px}.inner-feature-grid{grid-template-columns:1fr}.inner-page-heading{flex-direction:column}.template-option-list{grid-template-columns:1fr 1fr}}

.employee-detail-workspace{margin-top:16px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;overflow:hidden}.employee-detail-header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #e5e7eb}.employee-detail-header h4{margin:4px 0 6px;color:#172033}.employee-detail-header p{margin:0;color:#667085}.employee-detail-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:420px}.employee-detail-nav{border-right:1px solid #e5e7eb;background:#fafbff;padding:12px}.employee-detail-tab{display:block;width:100%;border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:6px;color:#475467;cursor:pointer;margin-bottom:4px}.employee-detail-tab.active{background:#eef2ff;color:#4338ca;font-weight:650}.employee-detail-main{padding:22px}.employee-profile-types{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.employee-profile-type{border:1px solid #d0d5dd;background:#fff;color:#475467;border-radius:6px;padding:8px 14px;cursor:pointer}.employee-profile-type.active{border-color:#4f46e5;background:#eef2ff;color:#4338ca}.employee-profile-heading{display:flex;justify-content:space-between;margin-bottom:16px}.employee-profile-heading b{font-size:18px;color:#172033}.employee-profile-heading p{margin:6px 0 0;color:#667085}.employee-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.employee-profile-field{display:flex;flex-direction:column;gap:7px;color:#344054;font-size:13px}.employee-profile-field:has(textarea){grid-column:span 2}.employee-profile-field textarea{resize:vertical}.employee-workspace-actions{display:flex;align-items:center;gap:14px;margin-top:20px}.employee-record-toolbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.employee-record-toolbar b{font-size:18px;color:#172033}.employee-record-toolbar p{margin:6px 0 0}.employee-record-list .task-item{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.employee-record-list .task-item p{white-space:pre-wrap}.employee-record-list small{color:#667085}@media(max-width:760px){.employee-detail-layout{grid-template-columns:1fr}.employee-detail-nav{border-right:0;border-bottom:1px solid #e5e7eb;display:flex;overflow:auto;gap:6px}.employee-detail-tab{white-space:nowrap;width:auto}.employee-profile-grid{grid-template-columns:1fr}.employee-profile-field:has(textarea){grid-column:auto}.employee-detail-header{gap:12px;flex-direction:column}.employee-record-toolbar{gap:12px;flex-direction:column}}

.form-check-list{display:grid;gap:8px;padding:10px 0}.form-check-list .form-check{display:flex;align-items:center;gap:8px}.inner-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.task-item{gap:16px;align-items:center}

.card-material-item{display:flex;align-items:center;gap:12px}.card-material-preview{width:76px;min-width:76px;display:flex;justify-content:center}.card-material-thumb,.card-material-video{width:72px;height:52px;object-fit:cover;border-radius:6px;background:#f1f5f9}.card-material-main{flex:1;min-width:0}.card-material-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:520px}@media(max-width:700px){.card-material-item{align-items:flex-start;flex-wrap:wrap}.card-material-main{width:calc(100% - 90px)}.card-material-item .inner-row-actions{width:100%;justify-content:flex-end}.card-material-main small{max-width:100%}}

.deep-material-item{display:flex;align-items:center;gap:12px}.deep-material-preview{width:80px;min-width:80px;display:flex;justify-content:center}.deep-material-thumb,.deep-material-video{width:76px;height:56px;object-fit:cover;border-radius:6px;background:#f1f5f9}.deep-material-item .task-info{flex:1;min-width:0}.deep-material-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:520px}@media(max-width:700px){.deep-material-item{align-items:flex-start;flex-wrap:wrap}.deep-material-item .task-info{width:calc(100% - 95px)}.deep-material-item .btn-danger{margin-left:auto}}


/* Recent AI questions: dedicated two-column layout */
.report-question-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:14px;min-width:0;padding:12px;background:#f8faff;border-radius:6px}
.report-question-text{min-width:0;color:#334155;line-height:1.6;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.report-question-platform{min-width:max-content;color:#172033;white-space:nowrap;text-align:right}
@media(max-width:700px){.report-question-row{grid-template-columns:minmax(0,1fr);gap:6px}.report-question-platform{text-align:left}}


/* Top citations: dedicated two-column layout */
.report-citation-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:14px;min-width:0;padding:12px;background:#f8faff;border-radius:6px}
.report-citation-url{min-width:0;color:#334155;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}
.report-citation-count{min-width:max-content;color:#172033;white-space:nowrap;text-align:right;line-height:1.55}
@media(max-width:700px){.report-citation-row{grid-template-columns:minmax(0,1fr);gap:4px}.report-citation-count{text-align:left}}

.article-center-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;background:#4f46e5;color:#fff;border-radius:10px;padding:28px 30px;margin-bottom:18px}.article-center-hero h2{margin:8px 0}.article-center-hero p{margin:0;color:rgba(255,255,255,.84)}.article-center-nav{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:6px;margin-bottom:18px}.article-center-nav button{border:0;background:transparent;color:#596579;padding:10px 14px;border-radius:6px;cursor:pointer}.article-center-nav button.active,.article-center-nav button:hover{background:#eef2ff;color:#4338ca;font-weight:700}.article-center-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.article-center-summary>div,.article-center-section{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:16px}.article-center-summary b,.article-center-summary span{display:block}.article-center-summary b{font-size:24px;color:#172033}.article-center-summary span{color:#667085;font-size:13px;margin-top:5px}.article-center-section h3{margin:0 0 8px;color:#172033}.article-center-section p{color:#667085;font-size:13px}.article-center-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.article-center-feature-grid>div{border:1px solid #e7e9f2;border-radius:7px;padding:14px;background:#fbfcff}.article-center-feature-grid b,.article-center-feature-grid span{display:block}.article-center-feature-grid b{margin-bottom:7px;color:#27324a}.article-center-feature-grid span{color:#667085;font-size:13px;line-height:1.6}.article-center-table-wrap{overflow:auto;margin-top:16px}.article-center-table-wrap table{width:100%;min-width:700px;border-collapse:collapse}.article-center-table-wrap th,.article-center-table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;color:#344054}.article-center-table-wrap th{background:#f8faff;color:#667085}.article-center-status{display:inline-block;padding:4px 8px;border-radius:4px;background:#f1f5f9;color:#475467;font-size:12px}.article-center-status.success{background:#ecfdf3;color:#067647}.article-center-status.pending{background:#eef2ff;color:#4338ca}.article-center-status.danger{background:#fef3f2;color:#b42318}.article-center-empty{text-align:center!important;color:#98a2b3!important;padding:30px!important}.article-preview-shell{max-width:860px;margin:18px auto;border:1px solid #e7e9f2;padding:28px;background:#fff}.article-preview-shell h1{font-size:30px;color:#172033;line-height:1.4}.article-preview-body{color:#344054;line-height:1.9;font-size:15px}.article-preview-body img{max-width:100%}@media(max-width:800px){.article-center-hero{align-items:flex-start;flex-direction:column;padding:22px 18px}.article-center-summary{grid-template-columns:repeat(2,1fr)}.article-center-feature-grid{grid-template-columns:1fr}}@media(max-width:520px){.article-center-summary{grid-template-columns:1fr}.article-center-nav{display:grid;grid-template-columns:1fr 1fr}}

.article-center-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;background:#4f46e5;color:#fff;border-radius:10px;padding:28px 30px;margin-bottom:18px}.article-center-hero h2{margin:8px 0}.article-center-hero p{margin:0;color:rgba(255,255,255,.84)}.article-center-nav{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:6px;margin-bottom:18px}.article-center-nav button{border:0;background:transparent;color:#596579;padding:10px 14px;border-radius:6px;cursor:pointer}.article-center-nav button.active,.article-center-nav button:hover{background:#eef2ff;color:#4338ca;font-weight:700}.article-center-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.article-center-summary>div,.article-center-section{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:16px}.article-center-summary b,.article-center-summary span{display:block}.article-center-summary b{font-size:24px;color:#172033}.article-center-summary span{color:#667085;font-size:13px;margin-top:5px}.article-center-section h3{margin:0 0 8px;color:#172033}.article-center-section p{color:#667085;font-size:13px}.article-center-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.article-center-feature-grid>div{border:1px solid #e7e9f2;border-radius:7px;padding:14px;background:#fbfcff}.article-center-feature-grid b,.article-center-feature-grid span{display:block}.article-center-feature-grid b{margin-bottom:7px;color:#27324a}.article-center-feature-grid span{color:#667085;font-size:13px;line-height:1.6}.article-center-table-wrap{overflow:auto;margin-top:16px}.article-center-table-wrap table{width:100%;min-width:700px;border-collapse:collapse}.article-center-table-wrap th,.article-center-table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;color:#344054}.article-center-table-wrap th{background:#f8faff;color:#667085}.article-center-status{display:inline-block;padding:4px 8px;border-radius:4px;background:#f1f5f9;color:#475467;font-size:12px}.article-center-status.success{background:#ecfdf3;color:#067647}.article-center-status.pending{background:#eef2ff;color:#4338ca}.article-center-status.danger{background:#fef3f2;color:#b42318}.article-center-empty{text-align:center!important;color:#98a2b3!important;padding:30px!important}.article-preview-shell{max-width:860px;margin:18px auto;border:1px solid #e7e9f2;padding:28px;background:#fff}.article-preview-shell h1{font-size:30px;color:#172033;line-height:1.4}.article-preview-body{color:#344054;line-height:1.9;font-size:15px}.article-preview-body img{max-width:100%}@media(max-width:800px){.article-center-hero{align-items:flex-start;flex-direction:column;padding:22px 18px}.article-center-summary{grid-template-columns:repeat(2,1fr)}.article-center-feature-grid{grid-template-columns:1fr}}@media(max-width:520px){.article-center-summary{grid-template-columns:1fr}.article-center-nav{display:grid;grid-template-columns:1fr 1fr}}

.article-center-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;background:#4f46e5;color:#fff;border-radius:10px;padding:28px 30px;margin-bottom:18px}.article-center-hero h2{margin:8px 0}.article-center-hero p{margin:0;color:rgba(255,255,255,.84)}.article-center-nav{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:6px;margin-bottom:18px}.article-center-nav button{border:0;background:transparent;color:#596579;padding:10px 14px;border-radius:6px;cursor:pointer}.article-center-nav button.active,.article-center-nav button:hover{background:#eef2ff;color:#4338ca;font-weight:700}.article-center-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.article-center-summary>div,.article-center-section{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:16px}.article-center-summary b,.article-center-summary span{display:block}.article-center-summary b{font-size:24px;color:#172033}.article-center-summary span{color:#667085;font-size:13px;margin-top:5px}.article-center-section h3{margin:0 0 8px;color:#172033}.article-center-section p{color:#667085;font-size:13px}.article-center-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.article-center-feature-grid>div{border:1px solid #e7e9f2;border-radius:7px;padding:14px;background:#fbfcff}.article-center-feature-grid b,.article-center-feature-grid span{display:block}.article-center-feature-grid b{margin-bottom:7px;color:#27324a}.article-center-feature-grid span{color:#667085;font-size:13px;line-height:1.6}.article-center-table-wrap{overflow:auto;margin-top:16px}.article-center-table-wrap table{width:100%;min-width:700px;border-collapse:collapse}.article-center-table-wrap th,.article-center-table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;color:#344054}.article-center-table-wrap th{background:#f8faff;color:#667085}.article-center-status{display:inline-block;padding:4px 8px;border-radius:4px;background:#f1f5f9;color:#475467;font-size:12px}.article-center-status.success{background:#ecfdf3;color:#067647}.article-center-status.pending{background:#eef2ff;color:#4338ca}.article-center-status.danger{background:#fef3f2;color:#b42318}.article-center-empty{text-align:center!important;color:#98a2b3!important;padding:30px!important}.article-preview-shell{max-width:860px;margin:18px auto;border:1px solid #e7e9f2;padding:28px;background:#fff}.article-preview-shell h1{font-size:30px;color:#172033;line-height:1.4}.article-preview-body{color:#344054;line-height:1.9;font-size:15px}.article-preview-body img{max-width:100%}@media(max-width:800px){.article-center-hero{align-items:flex-start;flex-direction:column;padding:22px 18px}.article-center-summary{grid-template-columns:repeat(2,1fr)}.article-center-feature-grid{grid-template-columns:1fr}}@media(max-width:520px){.article-center-summary{grid-template-columns:1fr}.article-center-nav{display:grid;grid-template-columns:1fr 1fr}}

.article-center-page{max-width:1400px}.article-center-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;background:#4f46e5;color:#fff;border-radius:10px;padding:28px 30px;margin-bottom:18px}.article-center-hero h2{margin:8px 0}.article-center-hero p{margin:0;color:rgba(255,255,255,.84)}.article-center-nav{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:6px;margin-bottom:18px}.article-center-nav button{border:0;background:transparent;color:#596579;padding:10px 14px;border-radius:6px;cursor:pointer}.article-center-nav button.active,.article-center-nav button:hover{background:#eef2ff;color:#4338ca;font-weight:700}.article-center-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.article-center-summary>div,.article-center-section{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:16px}.article-center-summary b,.article-center-summary span{display:block}.article-center-summary b{font-size:24px;color:#172033}.article-center-summary span{color:#667085;font-size:13px;margin-top:5px}.article-center-section h3{margin:0 0 8px;color:#172033}.article-center-section p{color:#667085;font-size:13px}.article-center-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.article-center-feature-grid>div{border:1px solid #e7e9f2;border-radius:7px;padding:14px;background:#fbfcff}.article-center-feature-grid b,.article-center-feature-grid span{display:block}.article-center-feature-grid b{margin-bottom:7px;color:#27324a}.article-center-feature-grid span{color:#667085;font-size:13px;line-height:1.6}.article-center-table-wrap{overflow:auto;margin-top:16px}.article-center-table-wrap table{width:100%;min-width:700px;border-collapse:collapse}.article-center-table-wrap th,.article-center-table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;color:#344054}.article-center-table-wrap th{background:#f8faff;color:#667085}.article-center-status{display:inline-block;padding:4px 8px;border-radius:4px;background:#f1f5f9;color:#475467;font-size:12px}.article-center-status.success{background:#ecfdf3;color:#067647}.article-center-status.pending{background:#eef2ff;color:#4338ca}.article-center-status.danger{background:#fef3f2;color:#b42318}.article-center-empty{text-align:center!important;color:#98a2b3!important;padding:30px!important}.article-preview-shell{max-width:860px;margin:18px auto;border:1px solid #e7e9f2;padding:28px;background:#fff}.article-preview-shell h1{font-size:30px;color:#172033;line-height:1.4}.article-preview-body{color:#344054;line-height:1.9;font-size:15px}.article-preview-body img{max-width:100%}@media(max-width:800px){.article-center-hero{align-items:flex-start;flex-direction:column;padding:22px 18px}.article-center-summary{grid-template-columns:repeat(2,1fr)}.article-center-feature-grid{grid-template-columns:1fr}}@media(max-width:520px){.article-center-summary{grid-template-columns:1fr}.article-center-nav{display:grid;grid-template-columns:1fr 1fr}}

.article-center-channel-nav{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 8px}.article-center-channel-nav button{border:1px solid #e4e7ec;background:#fff;color:#596579;padding:8px 12px;border-radius:5px;cursor:pointer}.article-center-channel-nav button.active,.article-center-channel-nav button:hover{border-color:#4f46e5;background:#eef2ff;color:#4338ca}.article-center-filter-note{font-size:12px;color:#667085;margin:8px 0 4px}.article-center-preview-head{display:flex;justify-content:space-between;align-items:flex-start}.article-preview-meta,.article-center-task-meta{font-size:12px;color:#667085;margin-top:7px}.article-center-publish-state{border-top:1px solid #edf0f5;margin:18px 0;padding-top:14px}.article-center-publish-state>div{padding:10px 0;border-bottom:1px solid #edf0f5}.article-center-result-count{display:inline-block;margin-left:8px;color:#667085;font-size:12px}.article-center-links{display:inline-flex;gap:8px;margin-left:8px}.article-center-links a{color:#4338ca;font-size:12px}.article-center-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}.article-center-pagination button:disabled{opacity:.45;cursor:not-allowed}

.article-center-channel-nav{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 8px}.article-center-channel-nav button{border:1px solid #e4e7ec;background:#fff;color:#596579;padding:8px 12px;border-radius:5px;cursor:pointer}.article-center-channel-nav button.active,.article-center-channel-nav button:hover{border-color:#4f46e5;background:#eef2ff;color:#4338ca}.article-center-filter-note{font-size:12px;color:#667085;margin:8px 0 4px}.article-center-preview-head{display:flex;justify-content:space-between;align-items:flex-start}.article-preview-meta,.article-center-task-meta{font-size:12px;color:#667085;margin-top:7px}.article-center-publish-state{border-top:1px solid #edf0f5;margin:18px 0;padding-top:14px}.article-center-publish-state>div{padding:10px 0;border-bottom:1px solid #edf0f5}.article-center-result-count{display:inline-block;margin-left:8px;color:#667085;font-size:12px}.article-center-links{display:inline-flex;gap:8px;margin:4px 8px}.article-center-links a{color:#4338ca;font-size:12px}.article-center-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}.article-center-pagination button:disabled{opacity:.45;cursor:not-allowed}.article-center-evidence{border:1px solid #dfe3ec;background:#f8faff;padding:14px;margin-top:16px;border-radius:7px}.article-center-evidence-head{display:flex;justify-content:space-between;align-items:center}.article-center-evidence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;font-size:12px;color:#475467}.article-center-evidence-json{white-space:pre-wrap;overflow:auto;max-height:260px;background:#fff;border:1px solid #edf0f5;padding:10px;margin:12px 0 0;font-size:11px}@media(max-width:700px){.article-center-evidence-grid{grid-template-columns:1fr 1fr}}

.article-center-channel-nav{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 8px}.article-center-channel-nav button{border:1px solid #e4e7ec;background:#fff;color:#596579;padding:8px 12px;border-radius:5px;cursor:pointer}.article-center-channel-nav button.active,.article-center-channel-nav button:hover{border-color:#4f46e5;background:#eef2ff;color:#4338ca}.article-center-filter-note{font-size:12px;color:#667085;margin:8px 0 4px}.article-center-preview-head{display:flex;justify-content:space-between;align-items:flex-start}.article-preview-meta,.article-center-task-meta{font-size:12px;color:#667085;margin-top:7px}.article-center-publish-state{border-top:1px solid #edf0f5;margin:18px 0;padding-top:14px}.article-center-publish-state>div{padding:10px 0;border-bottom:1px solid #edf0f5}.article-center-result-count{display:inline-block;margin-left:8px;color:#667085;font-size:12px}.article-center-links{display:inline-flex;gap:8px;margin:4px 8px}.article-center-links a{color:#4338ca;font-size:12px}.article-center-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}.article-center-pagination button:disabled{opacity:.45;cursor:not-allowed}.article-center-evidence{border:1px solid #dfe3ec;background:#f8faff;padding:14px;margin-top:16px;border-radius:7px}.article-center-evidence-head{display:flex;justify-content:space-between;align-items:center}.article-center-evidence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;font-size:12px;color:#475467}.article-center-evidence-json{white-space:pre-wrap;overflow:auto;max-height:260px;background:#fff;border:1px solid #edf0f5;padding:10px;margin:12px 0 0;font-size:11px}@media(max-width:700px){.article-center-evidence-grid{grid-template-columns:1fr 1fr}}

.channel-training-page{max-width:1400px}.channel-training-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;background:#4f46e5;color:#fff;border-radius:10px;padding:28px 30px;margin-bottom:18px}.channel-training-hero h2{margin:8px 0}.channel-training-hero p{margin:0;color:rgba(255,255,255,.84)}.channel-training-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:6px;margin-bottom:18px}.channel-training-tabs button{border:1px solid #e4e7ec;background:#fff;color:#596579;padding:8px 12px;border-radius:5px;cursor:pointer}.channel-training-tabs button.active,.channel-training-tabs button:hover{border-color:#4f46e5;background:#eef2ff;color:#4338ca}.channel-training-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.channel-training-summary>div{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:16px}.channel-training-summary b,.channel-training-summary span{display:block}.channel-training-summary b{font-size:24px;color:#172033}.channel-training-summary span{color:#667085;font-size:13px;margin-top:5px}.channel-training-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.channel-training-task{margin-bottom:12px}.channel-training-task-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.channel-training-task-head h3{margin:0 0 6px}.channel-training-task-head p{margin:0;color:#667085;font-size:13px}.channel-training-task-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.channel-training-task-grid span{background:#f8faff;border:1px solid #edf0f5;padding:10px;color:#475467;font-size:12px}.channel-training-task-grid b{display:block;color:#667085;margin-bottom:5px}.channel-training-actions{display:flex;gap:8px;flex-wrap:wrap}.channel-training-form{background:#fff;border:1px solid #e7e9f2;border-radius:8px;padding:18px;align-self:start}.channel-training-form h3{margin:0 0 14px}.ct-check-label{display:block;font-size:13px;color:#475467;margin-top:12px}.ct-check-list{display:grid;gap:8px;max-height:180px;overflow:auto;border:1px solid #edf0f5;padding:10px;margin-top:6px}.ct-check-list label{font-size:12px;color:#344054}.ct-form-actions{display:flex;gap:8px;margin-top:16px}@media(max-width:900px){.channel-training-layout{grid-template-columns:1fr}.channel-training-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.channel-training-summary{grid-template-columns:1fr}.channel-training-task-grid{grid-template-columns:repeat(2,1fr)}.channel-training-hero{align-items:flex-start;flex-direction:column;padding:22px 18px}}
/* Article preview typography */
.article-preview-shell{box-sizing:border-box;overflow:hidden}
.article-preview-shell h1{margin:0 0 12px;font-weight:700;letter-spacing:0}
.article-preview-body{overflow-wrap:anywhere;word-break:break-word}
.article-preview-body h2,.article-preview-body h3{color:#172033;line-height:1.45;margin:26px 0 10px;font-weight:700}
.article-preview-body h2{font-size:22px;border-left:3px solid #4f46e5;padding-left:10px}
.article-preview-body h3{font-size:18px}
.article-preview-body p{margin:0 0 16px;white-space:normal}
.article-preview-body ul,.article-preview-body ol{margin:10px 0 18px;padding-left:28px}
.article-preview-body li{margin:7px 0;padding-left:3px}
.article-preview-body blockquote{margin:18px 0;padding:12px 16px;border-left:3px solid #a5b4fc;background:#f8faff;color:#596579}
.article-preview-body blockquote p{margin:0 0 8px}.article-preview-body blockquote p:last-child{margin-bottom:0}
.article-preview-body hr{border:0;border-top:1px solid #e7e9f2;margin:24px 0}
.article-preview-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;color:#4338ca;background:#eef2ff;padding:2px 5px;border-radius:3px}
.article-preview-body pre{margin:16px 0;padding:14px;overflow:auto;background:#172033;color:#eef2ff;border-radius:6px;line-height:1.6;white-space:pre-wrap}
.article-preview-body pre code{padding:0;background:transparent;color:inherit}
.article-preview-body table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px}
.article-preview-body th,.article-preview-body td{border:1px solid #e7e9f2;padding:9px 10px;text-align:left;vertical-align:top}
.article-preview-body th{background:#f8faff;color:#344054;font-weight:700}
.article-preview-body a{color:#4338ca;text-decoration:underline;overflow-wrap:anywhere}
.article-preview-body img{display:block;height:auto;margin:14px 0}
.article-preview-empty{color:#98a2b3}
@media(max-width:600px){.article-preview-shell{margin:12px 0;padding:20px 16px}.article-preview-shell h1{font-size:25px}.article-preview-body{font-size:15px}.article-preview-body h2{font-size:20px}.article-preview-body h3{font-size:17px}.article-preview-body table{font-size:13px;display:block;overflow-x:auto;white-space:nowrap}}

/* Channel training modal */
.channel-training-form{position:fixed;z-index:1200;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:min(86vh,760px);overflow:auto;background:#fff;border:1px solid #dfe3ec;border-radius:10px;padding:22px;box-shadow:0 18px 48px rgba(15,23,42,.22),0 0 0 100vmax rgba(15,23,42,.42);}
.channel-training-form h3{margin:0;color:#172033;font-size:18px}
.ct-modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.ct-modal-close{width:32px;height:32px;border:0;background:transparent;color:#667085;font-size:24px;line-height:1;border-radius:5px;cursor:pointer}
.ct-modal-close:hover{background:#f1f5f9;color:#172033}
.channel-training-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.channel-training-form .form-grid .full-row{grid-column:1 / -1}
@media(max-width:600px){.channel-training-form{width:calc(100vw - 20px);max-height:90vh;padding:18px}.channel-training-form .form-grid{grid-template-columns:1fr}.channel-training-form .form-grid .full-row{grid-column:auto}}

/* Publish adapter configuration */
.adapter-config-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}
.adapter-config-list{display:flex;flex-direction:column;gap:8px;position:sticky;top:18px}
.adapter-config-item{width:100%;border:1px solid #e3e7f0;background:#fff;border-radius:7px;padding:12px;text-align:left;cursor:pointer;color:#344054}
.adapter-config-item:hover,.adapter-config-item.active{border-color:#6366f1;background:#eef2ff;color:#4338ca}
.adapter-config-item b,.adapter-config-item small{display:block}.adapter-config-item small{margin-top:5px;color:#7b8498}
.adapter-config-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.adapter-config-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#344054}.adapter-config-field.full{grid-column:1/-1}
.adapter-config-field input,.adapter-config-field select,.adapter-config-field textarea{width:100%}
.adapter-config-switch{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e3e7f0;border-radius:7px;background:#f8fafc}
.adapter-config-switch input{width:18px;min-height:18px}.adapter-config-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f6}
.adapter-config-note{border-left:3px solid #6366f1;background:#f8faff;padding:12px 14px;color:#596579;font-size:13px;line-height:1.7;margin-bottom:16px}
.adapter-config-secret{font-size:12px;color:#667085}.adapter-config-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.adapter-config-status span{padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px}
@media(max-width:900px){.adapter-config-layout{grid-template-columns:1fr}.adapter-config-list{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.adapter-config-form{grid-template-columns:1fr}.adapter-config-field.full{grid-column:auto}}
@media(max-width:520px){.adapter-config-list{grid-template-columns:1fr}}
