*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei",Arial,sans-serif;background:#f4f7fb;color:#263238}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login-page{min-height:100vh;background:linear-gradient(135deg,#165dca,#0f3b8c);display:flex;align-items:center;justify-content:center}.login-card{width:420px;background:#fff;border-radius:10px;padding:38px 42px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.login-card h1{text-align:center;margin:10px 0 4px;font-size:25px}.muted{color:#8492a6;text-align:center;margin:0 0 28px}.brand-mark{width:58px;height:58px;margin:auto;border-radius:16px;display:grid;place-items:center;background:#ffd400;color:#171717;font-weight:900;font-size:26px}.brand-mark.small{width:38px;height:38px;border-radius:10px;font-size:18px;margin:0}.login-card label{display:block;font-size:14px;color:#5f6b7a;margin:14px 0 6px}.login-card input,.form-grid input,.form-grid select,.form-grid textarea,.filter-row input,.filter-row select{width:100%;border:1px solid #dcdfe6;border-radius:4px;padding:10px 12px;outline:none;background:#fff}.login-card input:focus,.form-grid input:focus,.form-grid textarea:focus,.filter-row input:focus{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.12)}button{border:0;cursor:pointer;border-radius:4px;padding:9px 16px}.primary{background:#409eff;color:#fff}.primary:hover{background:#2f8ee5}.wide{width:100%;margin-top:22px;padding:12px}.ghost{background:#fff;border:1px solid #dcdfe6;color:#5f6b7a}.danger{background:#f56c6c;color:#fff}.error{color:#f56c6c;min-height:20px}.local-notice{margin-top:18px;background:#f0f9eb;color:#67c23a;padding:10px;border-radius:4px;font-size:12px;text-align:center}.app{min-height:100vh;display:flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:220px;background:#263445;color:#bfcbd9;display:flex;flex-direction:column}.sidebar-brand{height:70px;padding:16px;display:flex;align-items:center;gap:12px;background:#1f2d3d;color:#fff}.sidebar-brand div{display:flex;flex-direction:column}.sidebar-brand small{color:#93a4b7;margin-top:2px}.sidebar nav{padding:12px 0;flex:1}.sidebar nav button{display:block;width:100%;text-align:left;border-radius:0;padding:14px 24px;background:transparent;color:#bfcbd9}.sidebar nav button:hover,.sidebar nav button.active{background:#1f2d3d;color:#409eff;border-left:3px solid #409eff;padding-left:21px}.sidebar-foot{padding:18px;border-top:1px solid rgba(255,255,255,.08);font-size:12px}.status-dot{display:inline-block;width:8px;height:8px;background:#67c23a;border-radius:50%;margin-right:6px}.main{margin-left:220px;min-height:100vh;width:calc(100% - 220px)}.topbar{height:82px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 26px;border-bottom:1px solid #e8edf3}.topbar h2{margin:0 0 5px;font-size:20px}.breadcrumb{font-size:12px;color:#909399}.top-actions{display:flex;align-items:center;gap:15px}.page{padding:22px}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:18px}.stat-card,.panel{background:#fff;border-radius:6px;box-shadow:0 1px 4px rgba(0,21,41,.08);border:1px solid #edf0f5}.stat-card{padding:22px;display:flex;justify-content:space-between;align-items:center}.stat-card strong{font-size:30px}.stat-card span{display:block;color:#8492a6;font-size:13px;margin-top:6px}.stat-icon{font-size:30px;color:#409eff}.panel{margin-top:20px;padding:18px}.panel-title{font-weight:700;margin-bottom:14px}.timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.step{background:#f5f7fa;padding:14px;border-radius:5px;text-align:center;font-size:13px}.step b{display:block;color:#409eff;margin-bottom:5px}.toolbar{background:#fff;padding:16px;border-radius:6px;border:1px solid #edf0f5;margin-bottom:14px;display:flex;justify-content:space-between;gap:12px;align-items:center}.filter-row{display:flex;gap:10px;align-items:center}.filter-row input{width:190px}.filter-row select{width:130px}.table-wrap{background:#fff;border:1px solid #edf0f5;border-radius:6px;overflow:hidden}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{background:#f5f7fa;color:#606266;text-align:left;padding:12px 10px;border-bottom:1px solid #ebeef5;white-space:nowrap}.data-table td{padding:11px 10px;border-bottom:1px solid #ebeef5;vertical-align:top}.data-table tr:hover td{background:#f8fbff}.ellipsis{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag{display:inline-block;padding:3px 8px;border-radius:10px;font-size:12px}.tag.success{background:#f0f9eb;color:#67c23a}.tag.info{background:#f4f4f5;color:#909399}.tag.warning{background:#fdf6ec;color:#e6a23c}.tag.danger{background:#fef0f0;color:#f56c6c}.actions{display:flex;gap:5px}.link-button{padding:3px 7px;background:transparent;color:#409eff}.pagination{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding:14px;background:#fff}.empty{padding:80px 20px;text-align:center;color:#909399}.empty strong{display:block;color:#606266;font-size:17px;margin-bottom:8px}.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:100}.modal-card{width:min(920px,92vw);max-height:90vh;overflow:auto;background:#fff;border-radius:7px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #ebeef5}.modal-head h3{margin:0}.icon-button{background:transparent;font-size:24px;color:#909399}.form-grid{padding:22px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{font-size:13px;color:#606266}.form-grid label input,.form-grid label select,.form-grid label textarea{margin-top:6px}.span-2{grid-column:span 2}.form-actions{text-align:right;border-top:1px solid #ebeef5;padding-top:16px}.toast{position:fixed;right:25px;top:25px;background:#303133;color:#fff;padding:12px 18px;border-radius:4px;z-index:200;box-shadow:0 8px 30px rgba(0,0,0,.2)}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.sidebar{width:190px}.main{margin-left:190px;width:calc(100% - 190px)}.timeline{grid-template-columns:1fr}.toolbar{align-items:flex-start;flex-direction:column}.filter-row{flex-wrap:wrap}}
.nav-section-label{padding:16px 24px 6px;color:#7f91a4;font-size:12px;letter-spacing:.12em}.brand-modal-card{width:min(760px,92vw)}.field-help{display:block;color:#909399;margin-top:6px}.brand-logo-preview .activity-image-cell{align-items:flex-start}.brand-table-wrap{overflow-x:auto}.brand-table-wrap .data-table{min-width:1480px}
/* Stage2C v0.5: original activity list fields reconstructed from gen_table_column */
.activity-toolbar{align-items:flex-start}.filter-panel{flex:1;min-width:0}.primary-filters{flex-wrap:wrap}.advanced-filters{margin-top:12px;display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;align-items:end}.advanced-filters label{font-size:12px;color:#606266}.advanced-filters label input{margin-top:5px}.restore-note{background:#ecf5ff;border:1px solid #d9ecff;color:#409eff;padding:10px 14px;border-radius:5px;margin-bottom:12px;font-size:12px}.restore-note code{background:#fff;padding:2px 5px;border-radius:3px}.wide-table-wrap{overflow-x:auto}.activity-restore-table{min-width:2350px}.activity-restore-table th,.activity-restore-table td{min-width:110px}.activity-restore-table th:nth-child(1),.activity-restore-table td:nth-child(1){min-width:230px}.activity-restore-table th:nth-child(2),.activity-restore-table td:nth-child(2){min-width:190px}.activity-restore-table th:nth-child(3),.activity-restore-table td:nth-child(3){min-width:240px}.activity-restore-table th:nth-child(4),.activity-restore-table td:nth-child(4){min-width:260px}.activity-restore-table th:nth-child(16),.activity-restore-table td:nth-child(16){min-width:240px}.sticky-name{position:sticky;left:0;background:#fff!important;z-index:2;box-shadow:2px 0 4px rgba(0,0,0,.04)}thead .sticky-name{background:#f5f7fa!important;z-index:4}.sticky-actions{position:sticky;right:0;background:#fff!important;z-index:2;box-shadow:-2px 0 4px rgba(0,0,0,.04)}thead .sticky-actions{background:#f5f7fa!important;z-index:4}.activity-image-cell{width:170px}.activity-thumb{width:88px;height:66px;object-fit:cover;border-radius:4px;border:1px solid #dcdfe6;background:#f5f7fa;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#909399}.pending-thumb span{font-size:12px}.pending-thumb b{font-size:13px;color:#e6a23c;margin-top:3px}.empty-thumb{font-size:12px}.activity-image-cell small{display:block;max-width:170px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#909399}.activity-title-cell{font-weight:600;line-height:1.5}.long-text-cell,.address-cell{max-height:60px;overflow:hidden;line-height:1.5}.delete-link{color:#f56c6c!important}.form-image-preview{margin-top:8px;padding:8px;background:#f8fafc;border:1px dashed #dcdfe6;border-radius:4px;min-height:86px}.form-image-preview .activity-image-cell{display:flex;gap:10px;align-items:center;width:100%}.form-image-preview .activity-image-cell small{max-width:520px}
@media(max-width:1200px){.advanced-filters{grid-template-columns:repeat(2,minmax(180px,1fr))}}

.activity-image-link{display:inline-block;line-height:0;border-radius:4px;overflow:hidden;cursor:zoom-in}.activity-image-link:hover .activity-thumb{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.12)}

/* Stage 2C activity reconstruction: wide metadata form and read-only detail. */
.activity-modal-card{width:min(1040px,94vw);max-height:92vh;overflow:auto}.activity-modal-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-error{min-height:22px;color:#c62828;font-size:13px}.activity-detail-body{display:flex;flex-direction:column;gap:18px;padding:22px}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}
.detail-grid b{font-size:12px;color:#667085}.detail-grid span{word-break:break-word}.detail-media{display:flex;flex-wrap:wrap;gap:14px}.detail-media .activity-image-cell{align-items:flex-start}
.safe-rich-text{white-space:pre-wrap;line-height:1.7;padding:12px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}
.operation-stat-cards{grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px}.operation-stat-cards .stat-card{padding:14px}.operation-stat-cards .stat-card strong{font-size:22px}
.section-title-row{display:flex;align-items:center;gap:10px}.section-title-row h4{margin-right:auto}.activity-review-section{border-top:1px solid #ebeef5;padding-top:8px}.activity-review-form{margin-top:14px;padding:16px;background:#f8fbff;border:1px solid #e5edf8;border-radius:6px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.activity-review-form label{font-size:13px;color:#606266}.activity-review-form textarea,.activity-review-form select{display:block;width:100%;margin-top:6px;border:1px solid #dcdfe6;border-radius:4px;padding:9px 11px;background:#fff}.activity-review-form textarea{min-height:110px;resize:vertical}.activity-review-options{grid-column:span 3;display:grid;grid-template-columns:repeat(2,minmax(160px,260px));gap:14px}.activity-review-form .form-error,.activity-review-form .form-actions,.activity-review-form>small{grid-column:span 3}.activity-review-form>small{color:#909399}@media(max-width:1000px){.activity-review-form{grid-template-columns:1fr}.activity-review-options,.activity-review-form .form-error,.activity-review-form .form-actions,.activity-review-form>small{grid-column:span 1}}
.activity-recommendation-table-wrap{overflow-x:auto}.activity-recommendation-table-wrap .data-table{min-width:1100px}
.activity-report-section{border:1px solid #d8e6dd;background:#fbfefc;padding:14px;border-radius:6px}.activity-report-section h5{margin:18px 0 8px;color:#315b42}.activity-report-overview{margin-bottom:12px}
@media(max-width:760px){.activity-modal-card .form-grid,.detail-grid{grid-template-columns:1fr}.activity-modal-card .span-2{grid-column:auto}}

/* V2 activity detail cockpit: visual hierarchy only; existing APIs and actions remain unchanged. */
.activity-detail-body{background:#f4f7fb;gap:16px}.activity-dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px;border-radius:16px;background:linear-gradient(125deg,#172d4d 0%,#224f78 58%,#2e7793 100%);color:#fff;box-shadow:0 14px 34px rgba(31,65,98,.2)}
.activity-dashboard-hero:after{content:"";position:absolute;right:-70px;top:-105px;width:260px;height:260px;border-radius:50%;border:50px solid rgba(255,255,255,.06)}.activity-dashboard-hero-main,.dashboard-hero-actions{position:relative;z-index:1}.dashboard-eyebrow,.dashboard-section-heading>div>span{display:block;margin-bottom:7px;color:#7d91a8;font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.activity-dashboard-hero .dashboard-eyebrow{color:#a9d7e4}.dashboard-title-row{display:flex;align-items:center;gap:12px}.dashboard-title-row h2{margin:0;font-size:26px;line-height:1.35}.dashboard-status{padding:5px 10px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;white-space:nowrap}.dashboard-meta{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:16px;color:#d9e8f3;font-size:13px}.dashboard-meta span{display:flex;gap:7px}.dashboard-meta b{color:#8fb9cf;font-weight:500}.dashboard-hero-actions{display:flex;gap:10px;white-space:nowrap}.dashboard-hero-actions .ghost{border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.08);color:#fff}.dashboard-hero-actions .primary{background:#fff;color:#19486c}.dashboard-hero-actions button:hover{transform:translateY(-1px)}
.dashboard-section{padding:20px;border:1px solid #e6ebf1;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(32,54,78,.055)}.dashboard-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.dashboard-section-heading h4{margin:0;color:#23364d;font-size:17px}.dashboard-section-heading small{align-self:center;color:#94a0ae;font-size:12px}.dashboard-section-heading>div>span{margin-bottom:4px;color:#409eff}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dashboard-kpi{position:relative;min-height:120px;padding:18px;border-radius:12px;background:#f8fafc;border:1px solid #edf1f5;overflow:hidden}.dashboard-kpi:after{content:"";position:absolute;right:-18px;bottom:-28px;width:88px;height:88px;border-radius:50%;background:currentColor;opacity:.06}.dashboard-kpi>span{display:block;color:#68788c;font-size:13px}.dashboard-kpi>strong{display:block;margin:10px 0 7px;color:#1f334b;font-size:26px;line-height:1}.dashboard-kpi>small{color:#98a5b5}.dashboard-kpi.registration{color:#409eff;border-top:3px solid #409eff}.dashboard-kpi.brand{color:#6f63d9;border-top:3px solid #6f63d9}.dashboard-kpi.conversion{color:#d78b2c;border-top:3px solid #d78b2c}.dashboard-kpi.revenue{color:#25a66a;border-top:3px solid #25a66a}
.dashboard-two-column{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px}.dashboard-funnel{display:flex;align-items:stretch;gap:8px}.dashboard-funnel-step{flex:1;display:flex;align-items:center;gap:11px;min-width:0;padding:15px 12px;border-radius:10px;background:#f7f9fc}.dashboard-funnel-step>span{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:8px;background:#dfe8f3;color:#3f5f7d;font-size:12px;font-weight:700}.dashboard-funnel-step small{display:block;color:#7b8999;white-space:nowrap}.dashboard-funnel-step strong{display:block;margin-top:4px;color:#243a52;font-size:22px}.dashboard-funnel-step.cooperated{background:#eef9f3}.dashboard-funnel-step.cooperated>span{background:#bde8d0;color:#167b4a}.dashboard-funnel-arrow{align-self:center;color:#b6c2ce;font-style:normal}.dashboard-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-finance-metric{display:flex;align-items:center;gap:10px;padding:13px;border-radius:10px;background:#f8fafc}.dashboard-finance-metric i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eaf2fb;color:#327bc0;font-style:normal}.dashboard-finance-metric span{display:block;color:#8492a6;font-size:12px}.dashboard-finance-metric strong{display:block;margin-top:3px;color:#263c54;font-size:17px}
.dashboard-brand-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px}.dashboard-brand-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;padding:15px;border:1px solid #e9edf2;border-radius:12px;background:linear-gradient(180deg,#fff,#fafbfd)}.dashboard-brand-rank{position:absolute;right:10px;top:8px;color:#c69539;font-size:10px;font-weight:700}.dashboard-brand-logo{width:48px;height:48px;border-radius:10px;overflow:hidden;background:#edf3f8;display:grid;place-items:center;color:#718398;font-size:11px}.dashboard-brand-logo .activity-image-cell{width:48px!important;margin:0!important}.dashboard-brand-logo .activity-thumb{width:48px;height:48px;border:0}.dashboard-brand-logo small{display:none}.dashboard-brand-info{min-width:0;padding-top:3px}.dashboard-brand-info strong,.dashboard-brand-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-brand-info strong{padding-right:34px;color:#263c54}.dashboard-brand-info small{margin-top:5px;color:#8492a6}.dashboard-brand-value{grid-column:span 2;display:flex;justify-content:space-between;align-items:end;padding-top:9px;border-top:1px solid #edf0f4}.dashboard-brand-value strong{color:#1f9a63}.dashboard-brand-value small{color:#97a3b1}.dashboard-empty{padding:34px;text-align:center;border:1px dashed #d8e0e8;border-radius:12px;background:#fafcfe}.dashboard-empty strong,.dashboard-empty span{display:block}.dashboard-empty strong{color:#52677e}.dashboard-empty span{margin-top:5px;color:#98a5b5;font-size:12px}
.activity-review-section{border-top:0;padding-top:20px}.activity-review-form{margin-top:0;border:0;background:#f7f9fc;border-radius:10px}.activity-review-form textarea{border-color:#e1e7ed;border-radius:8px}.dashboard-report-action{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;border-color:#d8e6dd;border-radius:14px;background:linear-gradient(90deg,#f5fbf7,#fbfefc)}.dashboard-report-action h4{margin:0;color:#315b42}.dashboard-report-action p{margin:7px 0 0;color:#6c8175;font-size:13px}.dashboard-report-action .dashboard-eyebrow{color:#3a9064}.dashboard-recommendation-section .table-wrap{border-radius:10px}.dashboard-details{border:1px solid #e2e8ef;border-radius:14px;background:#fff}.dashboard-details>summary{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;cursor:pointer;color:#34495f;font-weight:700;list-style:none}.dashboard-details>summary::-webkit-details-marker{display:none}.dashboard-details>summary:after{content:"展开";margin-left:auto;padding-left:14px;color:#409eff;font-size:12px;font-weight:500}.dashboard-details[open]>summary:after{content:"收起"}.dashboard-details>summary small{margin-left:12px;color:#9aa5b2;font-weight:400}.dashboard-details-content{display:flex;flex-direction:column;gap:18px;padding:0 20px 20px;border-top:1px solid #edf0f4}.dashboard-details-content>.detail-grid{margin-top:20px}
@media(max-width:1200px){.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-two-column{grid-template-columns:1fr}.dashboard-brand-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:760px){.activity-dashboard-hero{align-items:flex-start;flex-direction:column;padding:20px}.dashboard-title-row{align-items:flex-start;flex-direction:column}.dashboard-title-row h2{font-size:21px}.dashboard-hero-actions{width:100%}.dashboard-hero-actions button{flex:1}.dashboard-meta{flex-direction:column;gap:8px}.dashboard-kpi-grid,.dashboard-finance-grid{grid-template-columns:1fr 1fr}.dashboard-funnel{display:grid;grid-template-columns:1fr 1fr}.dashboard-funnel-arrow{display:none}.dashboard-brand-grid{grid-template-columns:1fr}.dashboard-section-heading{flex-direction:column}.dashboard-section-heading small{align-self:flex-start}.dashboard-report-action{align-items:flex-start;flex-direction:column}.dashboard-details>summary small{display:none}}

/* Stage 2C synthetic registration, order and feedback workflow. */
.workflow-toolbar{align-items:flex-start}.workflow-toolbar .filter-row{flex-wrap:wrap}.workflow-toolbar label{font-size:12px;color:#606266}
.workflow-toolbar label input{display:block;margin-top:4px}.workflow-table-wrap{overflow-x:auto}.workflow-table-wrap table{min-width:1380px}
.workflow-table-wrap .actions{min-width:150px;flex-wrap:wrap}.workflow-detail-actions{padding:16px 22px}
.error-panel{color:#c62828}.error-panel p{color:#606266}.activity-detail-body section .activity-image-cell{margin-top:8px}
.workflow-notice{margin:0 0 14px;padding:10px 14px;border:1px solid transparent;border-radius:8px;font-size:13px}
.workflow-notice.warning{color:#8a5a00;background:#fff8e6;border-color:#f5d58b}.workflow-notice.success{color:#176b3a;background:#eaf8f0;border-color:#9dd8b8}
.refund-link{color:#b65a00!important}
.record-brand-modal-card{width:min(620px,92vw)}.brand-search-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:6px}.brand-search-row input{margin-top:0!important}.current-brand-note{padding:12px;background:#f5f7fa;border-radius:6px;color:#606266}.linked-brand{font-weight:600}.brand-history-table{overflow-x:auto}.brand-history-table table{min-width:780px}.brand-history-stats{grid-template-columns:repeat(3,minmax(140px,1fr))}
.recent-cooperation{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin-top:12px;padding:12px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}.recent-cooperation small{color:#909399}
.brand-invitation-modal-card{width:min(760px,92vw)}.brand-invitation-table-wrap{overflow-x:auto}.brand-invitation-table-wrap .data-table{min-width:1180px}.brand-invitation-table-wrap .activity-image-cell{width:110px}.brand-invitation-table-wrap .activity-image-cell small{display:none}

/* V2 brand operation cockpit. */
.brand-dashboard-identity{min-width:0}.brand-dashboard-title{min-width:0;flex-wrap:wrap}.brand-dashboard-title h2{min-width:0;overflow-wrap:anywhere}
.brand-dashboard-hero{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px;border-radius:16px;background:linear-gradient(125deg,#1d2941,#354b70 60%,#526b8b);color:#fff;overflow:hidden;box-shadow:0 14px 34px rgba(36,52,79,.18)}.brand-dashboard-hero:after{content:"";position:absolute;right:-85px;top:-115px;width:280px;height:280px;border:48px solid rgba(255,255,255,.055);border-radius:50%}.brand-dashboard-hero>*{position:relative;z-index:1}.brand-dashboard-logo{width:92px;height:92px;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.12);color:#dce6f1;font-weight:700}.brand-dashboard-logo .activity-image-cell{width:92px!important;margin:0!important}.brand-dashboard-logo .activity-thumb{width:92px;height:92px;border:0;border-radius:18px}.brand-dashboard-logo small{display:none}.brand-dashboard-identity .dashboard-eyebrow{color:#aebfd4}.brand-dashboard-title{display:flex;align-items:center;gap:12px}.brand-dashboard-title h2{margin:0;font-size:27px}.brand-dashboard-tags{display:flex;align-items:center;gap:9px;margin-top:12px}.brand-dashboard-tags>span:first-child{padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.12);color:#d9e3ef;font-size:12px}.brand-dashboard-hero>.ghost{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff}.brand-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.brand-dashboard-kpi{position:relative;min-height:116px;padding:17px;border:1px solid #e8edf3;border-radius:12px;background:#f9fbfd;overflow:hidden}.brand-dashboard-kpi:after{content:"";position:absolute;right:-24px;bottom:-33px;width:96px;height:96px;border-radius:50%;background:currentColor;opacity:.06}.brand-dashboard-kpi>span{display:block;color:#738398;font-size:13px}.brand-dashboard-kpi>strong{display:block;margin:10px 0 7px;color:#24384f;font-size:24px;line-height:1.1}.brand-dashboard-kpi>small{display:block;overflow:hidden;color:#98a5b3;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.brand-dashboard-kpi.cooperation{color:#7b68d9;border-top:3px solid #7b68d9}.brand-dashboard-kpi.activity{color:#3989c9;border-top:3px solid #3989c9}.brand-dashboard-kpi.amount{color:#24a36a;border-top:3px solid #24a36a}.brand-dashboard-kpi.recent{color:#d18b37;border-top:3px solid #d18b37}.brand-dashboard-timeline{position:relative;margin:0;padding:0;list-style:none}.brand-dashboard-timeline:before{content:"";position:absolute;left:19px;top:20px;bottom:20px;width:2px;background:#e4ebf2}.brand-dashboard-timeline li{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 0}.brand-timeline-marker{position:relative;z-index:1}.brand-timeline-marker span{display:grid;place-items:center;width:40px;height:40px;border:5px solid #edf4fb;border-radius:50%;background:#409eff;color:#fff;font-size:11px;font-weight:700}.brand-timeline-content{min-width:0;padding:13px 16px;border:1px solid #e8edf2;border-radius:11px;background:#fbfcfe}.brand-timeline-heading{display:flex;align-items:center;gap:10px}.brand-timeline-heading strong{overflow:hidden;color:#2b4058;text-overflow:ellipsis;white-space:nowrap}.brand-timeline-meta{display:flex;gap:18px;margin-top:7px;color:#96a3b1;font-size:12px}.brand-timeline-amount{min-width:108px;text-align:right}.brand-timeline-amount strong,.brand-timeline-amount small{display:block}.brand-timeline-amount strong{color:#24945f;font-size:17px}.brand-timeline-amount small{margin-top:4px;color:#9aa5b2}.brand-dashboard-invitation-section .table-wrap{border-radius:10px}.brand-dashboard-details .dashboard-details-content{padding-top:20px}.brand-dashboard-details .detail-grid{margin-top:0}.brand-dashboard-details .table-wrap{width:100%}
@media(max-width:1000px){.brand-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-dashboard-hero{grid-template-columns:76px minmax(0,1fr)}.brand-dashboard-logo{width:76px;height:76px}.brand-dashboard-logo .activity-image-cell{width:76px!important}.brand-dashboard-logo .activity-thumb{width:76px;height:76px}.brand-dashboard-hero>.ghost{grid-column:span 2;justify-self:start}}
@media(max-width:620px){.brand-dashboard-hero{grid-template-columns:1fr}.brand-dashboard-logo{width:68px;height:68px}.brand-dashboard-logo .activity-image-cell{width:68px!important}.brand-dashboard-logo .activity-thumb{width:68px;height:68px}.brand-dashboard-hero>.ghost{grid-column:auto}.brand-dashboard-kpis{grid-template-columns:1fr}.brand-dashboard-timeline li{grid-template-columns:34px minmax(0,1fr)}.brand-timeline-marker span{width:34px;height:34px}.brand-dashboard-timeline:before{left:16px}.brand-timeline-amount{grid-column:2;text-align:left}.brand-timeline-meta{flex-direction:column;gap:4px}}

/* V2 activity record operation workbench. */
.record-metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.record-metric-card{position:relative;min-height:108px;padding:17px;border:1px solid #e7edf3;border-top:3px solid currentColor;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(32,54,78,.045)}.record-metric-card:after{content:"";position:absolute;right:-23px;bottom:-34px;width:92px;height:92px;border-radius:50%;background:currentColor;opacity:.06}.record-metric-card span,.record-metric-card strong,.record-metric-card small{display:block}.record-metric-card span{color:#718196;font-size:13px}.record-metric-card strong{margin:9px 0 7px;color:#263b53;font-size:25px}.record-metric-card small{color:#9aa6b4;font-size:11px}.record-metric-card.total{color:#4876bd}.record-metric-card.pending{color:#dc9b35}.record-metric-card.approved{color:#2b9a67}.record-metric-card.rejected{color:#d85d68}.record-metric-card.paid{color:#7566d5}.record-metric-card.completed{color:#258ea5}
.record-filter-card{margin-bottom:14px;padding:16px 18px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(35,58,82,.04)}.record-filter-primary{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(200px,1fr) auto auto auto;gap:10px}.record-filter-card input,.record-filter-card select{width:100%;padding:9px 11px;border:1px solid #dce3ea;border-radius:7px;background:#fff;outline:none}.record-filter-card input:focus,.record-filter-card select:focus{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.1)}.record-advanced-filters{margin-top:13px;border-top:1px solid #edf0f4}.record-advanced-filters>summary{padding-top:12px;color:#4b627a;font-size:13px;font-weight:700;cursor:pointer}.record-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;margin-top:12px}.record-filter-grid label{color:#748294;font-size:12px}.record-filter-grid label input,.record-filter-grid label select{margin-top:5px}
.record-batch-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:11px 14px;border:1px solid #cfe1f5;border-radius:10px;background:#f1f7fe;color:#45637f}.record-batch-bar>span{margin-right:auto}.record-workbench-table{overflow-x:auto;border-radius:12px}.record-workbench-table table{min-width:1260px}.record-workbench-table th:last-child,.record-workbench-table td:last-child{min-width:250px}.record-workbench-table td:nth-child(2) small,.record-workbench-table td:nth-child(4) small{display:block;margin-top:4px;color:#9aa5b2;font-size:11px}.record-applicant-link{padding:0;background:transparent;color:#2d6fb5;font-weight:700}.record-activity-cell{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-workbench-table .activity-image-cell{width:105px}.record-workbench-table .activity-thumb{width:72px;height:54px}.record-workbench-table .activity-image-cell small{display:none}.record-workbench-table .actions{flex-wrap:wrap}
.record-drawer-layer{position:fixed;inset:0;z-index:90;display:flex;justify-content:flex-end;background:rgba(20,31,44,.48);backdrop-filter:blur(2px)}.record-drawer-panel{width:min(780px,94vw);height:100vh;background:#f4f7fb;box-shadow:-18px 0 50px rgba(20,34,52,.22);overflow:auto}.record-drawer-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e3e8ee;background:rgba(255,255,255,.97)}.record-drawer-head h3{margin:2px 0 5px;color:#263b52;font-size:22px}.record-drawer-head small{color:#8d9aa8}.record-drawer-body{display:flex;flex-direction:column;gap:14px;padding:20px}.record-drawer-hero{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:18px;padding:20px;border-radius:14px;background:linear-gradient(125deg,#20334d,#35587a);color:#fff}.record-drawer-hero>.activity-image-cell,.record-drawer-hero>div>.activity-image-cell{width:110px}.record-drawer-hero .activity-thumb{width:104px;height:82px;border:0;border-radius:10px}.record-drawer-hero .activity-image-cell small{display:none}.record-logo-empty{display:grid;place-items:center;width:104px;height:82px;border:1px dashed rgba(255,255,255,.35);border-radius:10px;color:#c7d5e2}.record-drawer-hero h3{margin:3px 0 10px;font-size:24px}.record-drawer-hero .dashboard-eyebrow{color:#a9bfd5}.record-drawer-tags{display:flex;gap:8px}.record-drawer-section{padding:18px;border:1px solid #e4eaf0;border-radius:12px;background:#fff}.record-drawer-section>h4{margin:0 0 14px;color:#30475e}.record-drawer-section .detail-grid{margin:0}.record-drawer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.record-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.record-media-card{min-height:128px;padding:12px;border:1px solid #e6ebf0;border-radius:10px;background:#fafcfe}.record-media-card>strong,.record-media-card>span{display:block;margin-bottom:9px;color:#718094;font-size:12px}.record-media-card .activity-image-cell{width:100%}.record-media-card .activity-thumb{width:100%;height:105px}.record-media-card .activity-image-cell small{max-width:100%}
@media(max-width:1250px){.record-metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.record-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.record-filter-primary{grid-template-columns:1fr 1fr auto auto}.record-filter-primary>button:last-child{grid-column:span 4;justify-self:start}}
@media(max-width:760px){.record-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-filter-primary,.record-filter-grid{grid-template-columns:1fr}.record-filter-primary>button:last-child{grid-column:auto}.record-batch-bar{align-items:stretch;flex-direction:column}.record-batch-bar>span{margin-right:0}.record-drawer-panel{width:100vw}.record-drawer-head{padding:16px 18px}.record-drawer-body{padding:14px}.record-drawer-hero{grid-template-columns:1fr}.record-media-grid{grid-template-columns:1fr}.record-drawer-section .detail-grid{grid-template-columns:1fr}}

/* Admin UI design system V1: shared visual tokens and compatibility layer. */
:root{--ui-font:"Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif;--ui-primary:#3478c8;--ui-primary-hover:#2869b5;--ui-success:#239267;--ui-warning:#c98422;--ui-danger:#cf4d5c;--ui-info:#66788d;--ui-text:#263b52;--ui-text-secondary:#68798c;--ui-text-muted:#95a1af;--ui-bg:#f4f7fb;--ui-surface:#fff;--ui-surface-soft:#f8fafc;--ui-border:#e3e9f0;--ui-border-strong:#d5dee8;--ui-radius-sm:8px;--ui-radius-md:12px;--ui-radius-lg:16px;--ui-shadow-sm:0 4px 14px rgba(31,52,76,.055);--ui-shadow-md:0 10px 30px rgba(31,52,76,.09);--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:20px;--ui-space-6:24px}
html{background:var(--ui-bg)}body{font-family:var(--ui-font);line-height:1.55;background:var(--ui-bg);color:var(--ui-text);-webkit-font-smoothing:antialiased}h1,h2,h3,h4{color:var(--ui-text);letter-spacing:-.01em}.topbar h2{font-size:22px;font-weight:700}.panel-title,.dashboard-section-heading h4,.record-drawer-section>h4{font-size:16px;font-weight:700}.breadcrumb,.field-help,.dashboard-section-heading small{color:var(--ui-text-muted)}
.main{background:var(--ui-bg)}.topbar{height:84px;padding:0 var(--ui-space-6);border-color:var(--ui-border);box-shadow:0 1px 0 rgba(31,52,76,.025)}.page{width:100%;max-width:1720px;margin:0 auto;padding:var(--ui-space-6)}.sidebar{background:#24364b}.sidebar-brand{background:#1c2d41}.sidebar nav button{min-height:46px;border-radius:0}.sidebar nav button:hover,.sidebar nav button.active{background:rgba(255,255,255,.055);color:#72b2f3;border-left-color:#72b2f3}.nav-section-label{color:#8fa1b5}
button{min-height:36px;padding:8px 15px;border-radius:var(--ui-radius-sm);font-weight:600;line-height:1.2;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}button:hover:not(:disabled){transform:translateY(-1px)}button:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(52,120,200,.18)}button:disabled{cursor:not-allowed;opacity:.52;transform:none}.primary{background:var(--ui-primary);box-shadow:0 4px 10px rgba(52,120,200,.18)}.primary:hover{background:var(--ui-primary-hover)}.ghost{border:1px solid var(--ui-border-strong);background:var(--ui-surface);color:var(--ui-text-secondary)}.ghost:hover{border-color:#abc6e3;background:#f4f8fc;color:var(--ui-primary)}button.danger{background:var(--ui-danger);color:#fff}.link-button{min-height:30px;padding:5px 8px;border-radius:6px;color:var(--ui-primary);font-weight:600}.link-button:hover{background:#edf5fd}.delete-link{color:var(--ui-danger)!important}.delete-link:hover{background:#fff0f2!important}.icon-button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;color:var(--ui-text-muted)}.icon-button:hover{background:#eef2f6;color:var(--ui-text)}
input,select,textarea,.login-card input,.form-grid input,.form-grid select,.form-grid textarea,.filter-row input,.filter-row select{border-color:var(--ui-border-strong);border-radius:var(--ui-radius-sm);color:var(--ui-text);transition:border-color .16s ease,box-shadow .16s ease}.login-card input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.filter-row input:focus,.filter-row select:focus,.record-filter-card input:focus,.record-filter-card select:focus{border-color:var(--ui-primary);box-shadow:0 0 0 3px rgba(52,120,200,.12)}
.panel,.stat-card,.dashboard-section,.dashboard-kpi,.brand-dashboard-kpi,.record-metric-card,.record-filter-card,.record-drawer-section{border-color:var(--ui-border);border-radius:var(--ui-radius-md);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm)}.panel{padding:var(--ui-space-5)}.stat-card,.dashboard-kpi,.brand-dashboard-kpi,.record-metric-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.stat-card:hover,.dashboard-kpi:hover,.brand-dashboard-kpi:hover,.record-metric-card:hover{border-color:#d4e1ee;box-shadow:var(--ui-shadow-md);transform:translateY(-2px)}.stat-card strong,.dashboard-kpi>strong,.brand-dashboard-kpi>strong,.record-metric-card strong{color:var(--ui-text);font-weight:750;font-variant-numeric:tabular-nums}.stat-card span,.dashboard-kpi>span,.brand-dashboard-kpi>span,.record-metric-card span{color:var(--ui-text-secondary)}.dashboard-section,.record-drawer-section{padding:var(--ui-space-5)}
.tag{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:650;line-height:1.25;white-space:nowrap}.tag.success{border-color:#bce7d4;background:#edf9f4;color:#197851}.tag.warning{border-color:#f0d5a7;background:#fff8eb;color:#a96613}.tag.danger{border-color:#efc1c7;background:#fff1f3;color:#b83d4b}.tag.info{border-color:#d9e1e9;background:#f3f6f8;color:#617286}
.toolbar,.record-filter-card{gap:var(--ui-space-3);padding:var(--ui-space-4) var(--ui-space-5);border-color:var(--ui-border);border-radius:var(--ui-radius-md);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm)}.filter-row{gap:var(--ui-space-2)}.actions{align-items:center;gap:var(--ui-space-1)}
.table-wrap{border-color:var(--ui-border);border-radius:var(--ui-radius-md);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm)}.data-table{color:var(--ui-text);font-size:13px}.data-table th{padding:13px 14px;border-bottom-color:var(--ui-border-strong);background:#f2f6fa;color:#536579;font-size:12px;font-weight:700;letter-spacing:.015em}.data-table td{height:52px;padding:13px 14px;border-bottom-color:#edf1f5;vertical-align:middle}.data-table tbody tr{transition:background-color .14s ease}.data-table tbody tr:nth-child(even) td{background:#fbfcfe}.data-table tbody tr:hover td{background:#f1f7fd}.data-table tbody tr:last-child td{border-bottom:0}.pagination{min-height:58px;padding:12px 16px;border-top:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text-secondary)}.pagination button{min-height:32px;padding:6px 12px}.empty{padding:64px 20px;color:var(--ui-text-muted)}.empty strong{color:var(--ui-text-secondary)}
.modal{padding:24px;background:rgba(18,31,46,.52);backdrop-filter:blur(3px)}.modal-card{border:1px solid rgba(255,255,255,.55);border-radius:var(--ui-radius-lg);box-shadow:0 28px 80px rgba(14,29,46,.28)}.modal-head,.record-drawer-head{border-bottom-color:var(--ui-border);background:rgba(255,255,255,.97)}.modal-head{position:sticky;top:0;z-index:5;min-height:68px;padding:16px 22px}.modal-head h3,.record-drawer-head h3{font-size:19px}.form-grid{gap:var(--ui-space-4);padding:var(--ui-space-6)}.form-actions{gap:var(--ui-space-2);padding-top:var(--ui-space-4);border-top:1px solid var(--ui-border)}.record-drawer-layer{background:rgba(18,31,46,.5)}.record-drawer-panel{border-left:1px solid var(--ui-border);background:var(--ui-bg);box-shadow:-20px 0 56px rgba(15,31,49,.23)}.record-drawer-head{min-height:82px}.record-drawer-body{gap:var(--ui-space-4);padding:var(--ui-space-5)}
.ui-loading-state{display:grid;place-items:center;align-content:center;min-height:300px;padding:48px 24px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm);color:var(--ui-text-secondary);text-align:center}.ui-loading-state strong{margin-top:14px;color:var(--ui-text);font-size:15px}.ui-loading-state small{margin-top:4px;color:var(--ui-text-muted)}.ui-loading-spinner{width:34px;height:34px;border:3px solid #dce8f4;border-top-color:var(--ui-primary);border-radius:50%;animation:ui-spin .8s linear infinite}@keyframes ui-spin{to{transform:rotate(360deg)}}
@media(max-width:1366px){.page{padding:20px}.topbar{padding:0 20px}.cards{gap:14px}.dashboard-section,.record-drawer-section{padding:18px}.data-table th,.data-table td{padding-left:11px;padding-right:11px}}
@media(min-width:1600px){.page{padding:28px 32px}.cards,.dashboard-kpi-grid,.brand-dashboard-kpis,.record-metrics-grid{gap:16px}}
@media(max-width:760px){.topbar{height:auto;min-height:76px;padding:14px}.topbar h2{font-size:19px}.top-actions{gap:8px}.page{padding:14px}.panel,.dashboard-section,.record-drawer-section{padding:16px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:16px}.stat-card strong{font-size:24px}.toolbar{padding:14px}.modal{align-items:flex-end;padding:0}.modal-card{width:100vw;max-height:94vh;border-radius:16px 16px 0 0}.modal-head{min-height:62px;padding:13px 16px}.form-grid{padding:16px}.form-actions{align-items:stretch;flex-direction:column-reverse}.form-actions button{width:100%}.record-drawer-body{padding:12px}.data-table th,.data-table td{padding:11px 10px}.ui-loading-state{min-height:240px}}

/* Activity product type and stall fee editor. */
.stall-fee-editor{margin-top:12px}.stall-fee-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.stall-fee-editor-actions p{margin:0;color:var(--ui-text-secondary);font-size:12px}.stall-fee-editor .table-wrap{overflow-x:auto}.stall-fee-editor table{min-width:760px}.stall-fee-editor input{width:100%;min-width:90px;padding:8px 10px}.stall-fee-editor th:nth-child(1){width:110px}.stall-fee-editor th:nth-child(3){width:130px}.stall-fee-editor th:last-child{width:70px}.stall-fee-editor .form-actions{justify-content:flex-end;margin-top:12px}.stall-fee-editor .form-error{margin-top:9px}
@media(max-width:760px){.stall-fee-editor-actions{align-items:stretch;flex-direction:column}.stall-fee-editor-actions button{width:100%}}
