/* Generated from design-tokens.json P09-2.71.2 */
:root{
 --wq-font-family:"PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 --wq-primary:#1A4F8A;
 --wq-primary-hover:#2368B2;
 --wq-primary-weak:#E8F1FA;
 --wq-nav:#123A5E;
 --wq-nav-text:#D6E2EE;
 --wq-nav-muted:#97ACC5;
 --wq-background:#F4F6FA;
 --wq-surface:#FFFFFF;
 --wq-text:#1F2D3D;
 --wq-secondary:#5A6B7C;
 --wq-muted:#718198;
 --wq-border:#E3E8EF;
 --wq-success:#389E0D;
 --wq-warning:#AD6800;
 --wq-danger:#CF1322;
 --wq-body:14px;
 --wq-public-body:15px;
 --wq-title:20px;
 --wq-section:16px;
 --wq-modal-title:16px;
 --wq-control:14px;
 --wq-control-small:12px;
 --wq-radius:8px;
 --wq-gap:16px;
 --wq-control-height:36px;
 --wq-touch-height:44px;
 --wq-secondary-size:12px;
}
/* Shared component contract. Generated variables precede this file's component rules.
 * No business visibility, content order, form values or configured home accent is changed. */
body{font-family:var(--wq-font-family);color:var(--wq-text);background:var(--wq-background)}
button,input,select,textarea{font-family:inherit;letter-spacing:inherit}
.web-container,.modal-overlay,.fw-workflow,[data-lead-workflow],.wq-operation-tasks{font-family:var(--wq-font-family);font-size:var(--wq-body);line-height:1.65;color:var(--wq-text)}
.web-container,.modal-overlay{--biz-navy:var(--wq-nav);--biz-blue:var(--wq-primary);--biz-blue-weak:var(--wq-primary-weak);--biz-bg:var(--wq-background);--biz-card:var(--wq-surface);--biz-border:var(--wq-border);--biz-text:var(--wq-text);--biz-text-2:var(--wq-secondary);--biz-text-3:var(--wq-muted)}
.wq-partner-list{--wq-task-nav:var(--wq-nav);--wq-task-sub:var(--wq-nav-muted)}
.web-container .web-header,.web-container .web-sidebar{background:var(--wq-nav)}
.web-container .web-header .logo{font-size:16px;font-weight:600;letter-spacing:0}
.web-container .web-header .user,.web-container .web-sidebar .menu-item{font-size:var(--wq-body)}
.web-container .web-sidebar .menu-item{border-radius:6px;box-shadow:none;color:var(--wq-nav-text);line-height:1.5}
.web-container .web-sidebar .menu-item.active{background:var(--wq-primary);color:#fff;border-left-color:var(--wq-primary);box-shadow:none}
.web-container .web-sidebar .menu-group-title{color:var(--wq-nav-muted);font-size:var(--wq-secondary-size);letter-spacing:0}
.web-container .web-role-badge{background:rgba(255,255,255,.12);color:var(--wq-nav-text);border:1px solid rgba(255,255,255,.25)}
.web-container .web-content{background:var(--wq-background);min-width:0}
.web-content h2,.modal-body h2{font-family:inherit;font-size:var(--wq-title)!important;font-weight:600;line-height:1.4;margin-bottom:var(--wq-gap)}
.web-content h3,.modal-body h3,.section-title,.card-title{font-family:inherit;font-size:var(--wq-section)!important;font-weight:600;line-height:1.5}
.web-content .card,.wq-plan-card,.fw-card,.fw-editor{border:1px solid var(--wq-border);border-radius:var(--wq-radius);box-shadow:none}
.btn,.web-container .btn,.modal-overlay .btn{font-family:inherit;font-size:var(--wq-control);font-weight:500;line-height:1.45;height:auto;min-height:var(--wq-control-height);padding:7px 14px;border-radius:6px;white-space:normal;vertical-align:middle}
.btn-sm,.web-container .btn-sm,.modal-overlay .btn-sm{font-size:var(--wq-control-small);min-height:32px;padding:5px 10px;height:auto;line-height:1.45}
.btn-primary,.web-container .btn-primary,.modal-overlay .btn-primary{background:var(--wq-primary);border-color:var(--wq-primary);color:#fff}
.btn-primary:hover{background:var(--wq-primary-hover)}
.form-input,.form-select,.form-textarea,.web-container .form-input,.web-container .form-select,.web-container .form-textarea{font-family:inherit;font-size:var(--wq-control);line-height:1.5;min-height:40px;height:auto;padding:9px 12px;color:var(--wq-text);border-color:var(--wq-border);border-radius:6px}
textarea.form-input,.form-textarea{min-height:96px;resize:vertical}
.form-label,.web-container .form-label{font-size:var(--wq-body);font-weight:500;color:var(--wq-secondary)}
.data-table,.web-container .data-table{font-family:inherit;font-size:var(--wq-body);border-color:var(--wq-border)}
.data-table th,.web-container .data-table th{font-size:var(--wq-secondary-size);font-weight:600;line-height:1.5;background:#F6F8FB}
.data-table td,.web-container .data-table td{font-size:var(--wq-body);line-height:1.6}
.stat-value,.web-container .stat-value{font-size:26px!important;line-height:1.35;font-weight:600}
.stat-label,.web-container .stat-label,.empty-state .text{font-size:var(--wq-body);line-height:1.65}
.modal-overlay{padding:20px;background:rgba(15,30,48,.42)}
.modal[data-wq-dialog]{display:flex;flex-direction:column;width:min(100%,560px);max-width:560px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:hidden;background:var(--wq-surface);border:1px solid var(--wq-border);border-radius:var(--wq-radius);box-shadow:0 12px 40px rgba(16,42,67,.2)}
.modal.modal-wide[data-wq-dialog]{width:min(100%,960px);max-width:960px}
.modal[data-wq-dialog]>.modal-header{flex:none;gap:16px;padding:16px 20px;background:#F6F8FB;color:var(--wq-text);font-size:var(--wq-modal-title);font-weight:600;border-bottom:1px solid var(--wq-border)}
.modal-title{flex:1;min-width:0;overflow-wrap:anywhere}
.modal-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;background:transparent;border:0;border-radius:6px;color:var(--wq-secondary);font:inherit;font-size:22px;cursor:pointer}
.modal-close:focus-visible{outline:2px solid var(--wq-primary);outline-offset:2px}
.modal[data-wq-dialog]>.modal-body{flex:1;min-height:0;padding:20px;overflow-y:auto;overscroll-behavior:contain}
.modal-body .wq-dialog-flow{max-height:none!important;height:auto!important;overflow-y:visible!important}
.modal-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:16px 20px;border-top:1px solid var(--wq-border)}
/* One narrow-screen navigation layout for browsers and miniapp web-view.
 * Reset the old mp-embed horizontal flex groups before applying the two columns.
 * Only layout changes: every menu still comes from the existing role configuration. */
@media(max-width:900px){
 html .web-container .web-layout{display:flex;flex-direction:column;width:100%;min-width:0}
 html .web-container .web-sidebar{display:block;align-self:stretch;width:100%;max-width:100%;height:auto;min-height:0;max-height:260px;max-height:min(34dvh,260px);flex:0 0 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;position:static;box-sizing:border-box;padding:8px;border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}
 html .web-container .web-sidebar .menu-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:4px;padding:4px 0 8px;box-sizing:border-box}
 html .web-container .web-sidebar .menu-group-title{display:block;grid-column:1/-1;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:6px 8px}
 html .web-container .web-sidebar .menu-item{display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;min-height:44px;width:auto;box-sizing:border-box;margin:0;padding:10px;font-size:13px;line-height:1.5;white-space:normal;text-align:left}
 html .web-container .web-sidebar .menu-item span{display:inline;flex:1 1 0;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
 html .web-container .web-sidebar .menu-item .icon-svg{flex:0 0 auto}
 html .web-container .web-content{width:100%;padding:12px;min-width:0}
}
@media(max-width:760px){
 html .web-container .web-header{height:auto;min-height:52px;padding:12px;flex-wrap:wrap;gap:8px}
 html .web-container .web-header .logo,html .web-container .web-header .user{max-width:100%;min-width:0;white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
 .btn,.web-container .btn,.modal-overlay .btn{min-height:var(--wq-touch-height);max-width:100%}
 .modal-overlay{padding:10px}.modal[data-wq-dialog]{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
 .modal[data-wq-dialog]>.modal-body{padding:14px}.modal[data-wq-dialog]>.modal-header{padding:12px 14px}.modal-close{min-width:44px;min-height:44px}
}

@media(max-width:760px){.wq-points-row{flex-direction:column;align-items:stretch!important}.wq-points-row>div{min-width:0;width:100%;max-width:100%}.wq-points-row>div:last-child{flex-wrap:wrap}.wq-points-row input{min-width:0}}

@media(max-width:760px){.wq-points-row>div:first-child>div:first-child{flex-wrap:wrap}.wq-points-row>div:first-child>div:first-child>span{white-space:nowrap;flex-shrink:0}.wq-points-row input[id^="prn-"]{flex-basis:100%;width:100%;min-width:0}}

/* P09: shared workspace, editor and dialog density; preserve configured content. */
.web-container input,.web-container select,.web-container textarea,.modal-overlay input,.modal-overlay select,.modal-overlay textarea {font-family:var(--wq-font-family)!important;font-size:var(--wq-control)!important;line-height:1.5;box-sizing:border-box;max-width:100%}
.web-container .card,.modal-overlay .card {border-radius:var(--wq-radius)!important;box-shadow:none!important}
.web-container .stat-card {border:1px solid var(--wq-border);border-radius:var(--wq-radius)!important;box-shadow:none!important}
.web-content .ui-row {flex-wrap:wrap;gap:8px!important}
.web-content .ui-row>.form-input {min-width:0;max-width:100%}
@media(max-width:760px){.web-content .ui-row>.form-input{flex:1 1 140px!important}.web-content .ui-row>.form-input[style*="52px"]{flex:0 1 72px!important}}
.web-container .op-toolbar,.modal-overlay .op-toolbar {align-items:flex-end;gap:8px 12px}
.web-container .op-toolbar>label,.modal-overlay .op-toolbar>label {display:flex;flex-direction:column;gap:4px;margin:0;font-size:14px;font-weight:400;color:var(--wq-secondary)}
.wq-operation-tasks .op-heading {justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.wq-operation-tasks .op-heading h2 {margin:0!important}
.wq-operation-tasks .op-heading>div {display:flex;gap:8px;flex-wrap:wrap}
.wq-operation-tasks .op-filters {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin:12px 0}
.wq-operation-tasks .op-filters label {display:flex;flex-direction:column;gap:4px;min-width:160px;color:var(--wq-secondary)}
.wq-operation-tasks .op-filters select {min-width:160px;max-width:280px}
.wq-menu-edit-row {display:grid;grid-template-columns:24px 136px minmax(180px,1fr) 40px 36px 36px 64px;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--wq-border)}
.wq-menu-icon-preview {display:inline-flex;justify-content:center;color:var(--wq-primary)}
.wq-menu-name {min-width:0}.wq-menu-name input {width:100%}
.wq-menu-edit-row .btn {padding:5px;min-width:0}
.wq-menu-children {padding:8px 0 12px 32px;color:var(--wq-secondary)}
.wq-menu-children summary {cursor:pointer;padding:6px 0}
.wq-menu-child-row {display:grid;grid-template-columns:minmax(140px,1fr) 72px 36px 36px;gap:8px;align-items:center;margin:8px 0}
.wq-menu-child-row label {display:flex;align-items:center;gap:6px}
.wq-menu-editor .op-toolbar {margin:12px 0 0;max-width:100%;flex-wrap:wrap}
.wq-menu-group-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px 0 4px;margin-top:8px}
.wq-menu-group-heading h3 {margin:0}.wq-menu-group-heading>div {display:flex;gap:6px;flex-wrap:wrap}
.wq-menu-editor .op-toolbar select {flex:1;min-width:160px;max-width:360px}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.web-content .pf-field-row {gap:8px!important;padding:10px!important;margin:6px 0}
.web-content .pf-field-row>input[type=text] {flex:1 1 180px;min-width:120px;max-width:260px;min-height:36px}
.web-content .pf-field-row .btn {min-width:32px}
.web-content .pf-enum-slot,.web-content .pf-enum-zone {max-width:100%;min-width:0}
.modal-overlay>.modal:not([data-wq-dialog]) {display:flex;flex-direction:column;max-height:calc(100dvh - 40px);border-radius:var(--wq-radius);border:1px solid var(--wq-border);overflow:hidden;font-family:var(--wq-font-family)}
.modal-overlay>.modal:not([data-wq-dialog])>.modal-body {overflow-y:auto;min-height:0;flex:1}
.wq-heading-icon {display:inline-flex;align-items:center;margin-right:6px;vertical-align:-3px;color:currentColor}
@media(max-width:760px){
 .wq-menu-edit-row {grid-template-columns:24px minmax(92px,1fr) 40px 36px 36px 60px;gap:6px}
 .wq-menu-edit-row .wq-menu-name {grid-column:1/-1;grid-row:1}
 .wq-menu-edit-row .wq-menu-icon {width:100%;min-width:0;padding-left:6px;padding-right:6px}
 .wq-menu-children {padding-left:0}.wq-menu-child-row {grid-template-columns:minmax(0,1fr) 64px 40px 40px;gap:4px}
 .web-content .pf-field-row {gap:6px!important}.web-content .pf-field-row>input[type=text] {flex:1 1 100%;max-width:none;width:100%!important}
 .wq-operation-tasks .op-filters label {flex:1;min-width:120px}.wq-operation-tasks .op-filters select {width:100%;min-width:0;max-width:none}
 .modal-overlay>.modal:not([data-wq-dialog]) {max-height:calc(100dvh - 20px)}
}

/* Identity lists: reserve the action column and wrap whole buttons. */
.web-container table.identity-table {table-layout:auto;min-width:760px;overflow:visible}
html .web-container table.identity-table th,html .web-container table.identity-table td {padding-left:8px;padding-right:8px}
.web-container .identity-table td:first-child,.web-container .identity-table td:nth-child(2) {white-space:nowrap}
.identity-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;min-width:220px}
.identity-table .identity-actions .btn {white-space:nowrap;flex:0 0 auto;width:auto;max-width:none}
.identity-table .status-tag {white-space:normal}
.identity-table td:nth-last-child(2) .status-tag {white-space:nowrap}
