@import url("./refresh-buttons.css");
.pq-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border:1px solid #e1e5ef;border-radius:16px;background:#f7f8fc;min-width:0}.pq-card .cc-quota-label{font-size:14px;font-weight:600;color:#596579}.pq-card .cc-quota-number{display:flex;align-items:baseline;gap:8px;margin-top:6px}.pq-card .cc-quota-number strong{font-size:36px;line-height:1.2;color:#202b40;font-variant-numeric:tabular-nums}.pq-card .cc-quota-number span{font-size:14px;color:#677186}.pq-card p{margin-top:8px;font-size:14px;line-height:1.65}.pq-card .cc-quota-meta{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#677186}.pq-card[data-state=empty]{border-color:#efcdc5;background:#fff6f3}.pq-card[data-state=pending]{border-color:#e7ddbd;background:#fffdf4}.pq-card .cc-recharge{font-weight:600;color:var(--accent,#4f46e5)}.portal-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 20px}.portal-help-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:112px;padding:18px;text-align:left;border:1px solid #e1e5ef;border-radius:12px;background:#f8f9fc;color:#263246;text-decoration:none}.portal-help-choice:hover{background:#f1f3fb;text-decoration:none}.portal-help-choice strong{font-size:16px;line-height:1.4}.portal-help-choice span{font-size:13px;line-height:1.65;color:#677186;font-weight:400}.account-help-dialog nav button[aria-current=page]{color:var(--accent,#4f46e5);background:#f0efff;border-color:#dedbfb}.portal-help-account{font-size:14px}.account-help-dialog:focus-visible{outline:none}@media(max-width:640px){.pq-card{flex-direction:column;align-items:flex-start;padding:18px;gap:16px}.pq-card .cc-quota-number strong{font-size:30px}.portal-help-grid{grid-template-columns:1fr}.portal-help-choice{min-height:90px;padding:16px}}
.portal-ui .portal-help-choice{border-radius:12px}.portal-ui .pq-card .cc-recharge{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:10px;background:var(--accent,#4f46e5);color:#fff;font-weight:600}.portal-ui .pq-card .cc-recharge:hover{background:#4338ca;color:#fff;text-decoration:none}
.account-help-dialog .portal-help-choice{border-radius:12px}
/* Retired portal entries stay out of layout and keyboard navigation, including
   legacy knowledge bundles that still update these compatibility anchors. */
.app-header :is(#operations-link,#manual-tasks-link){display:none!important}
#workspace-sidebar .workspace-nav-group[aria-label="帮助与支持"]{display:none!important}
/* Platform reply requirements are entered from the administrator AI settings. */
.download-knowledge .knowledge-tool-links [data-platform-prompt-entry]{display:none!important}
.download-knowledge .knowledge-page>.page-head:has(.knowledge-tool-links>[data-platform-prompt-entry]:only-child){display:none}
.admin-prompt-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}
.admin-prompt-entry h2{margin:0 0 8px;font-size:20px}
.admin-prompt-entry p{margin:0;color:#64748b}
.admin-prompt-entry a{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border-radius:10px;text-decoration:none;font-size:16px}
@media(max-width:640px){.admin-prompt-entry{align-items:flex-start;flex-direction:column}}
.app-header .portal-header-tools{display:flex;align-items:center;gap:8px;max-width:100%;flex:none}
.app-header .portal-header-tools .portal-header-tool{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin:0;padding:8px 12px;border:1px solid var(--portal-border,#e4e7ec);border-radius:10px;background:#f8f9fc;color:var(--portal-muted,#667085);font:inherit;font-size:14px;font-weight:500;line-height:1.5;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none}
.app-header .portal-header-tools .portal-header-tool:hover{background:#eef0f8;border-color:#d3d8e7;color:var(--portal-text,#182230);text-decoration:none}
.app-header .portal-header-tools .portal-header-tool:focus-visible{outline:3px solid rgb(79 70 229 / 25%);outline-offset:2px}
.portal-header-tools .portal-header-tool-icon{display:block;width:18px;height:18px;flex:none}
.portal-header-tools .portal-header-tool-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:6px;background:#e9edf5;color:#526078;font-size:12px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.portal-header-tools .portal-header-tool[hidden],.portal-header-tools .portal-header-tool-badge[hidden]{display:none!important}
.portal-header-tools .portal-header-tool-pending[data-state=attention] .portal-header-tool-badge,.portal-header-tools .portal-header-tool-help[data-state=attention] .portal-header-tool-badge{background:#e8e5ff;color:#5146d6}
.portal-header-tools .portal-header-tool-alerts:is([data-state=attention],[data-state=failed]) .portal-header-tool-badge{background:#fce8e4;color:#b44135}
@media(max-width:760px){.app-header .portal-header-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-basis:100%;gap:8px;order:2}.app-header .portal-header-tools .portal-header-tool{width:100%;min-width:0;padding:8px 10px;font-size:13px}.portal-header-tools .portal-header-tool-icon{width:17px;height:17px}}
.account-help-dialog{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.account-help-dialog nav.portal-help-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:22px 0;padding:6px;border:1px solid #e6e9f1;border-radius:14px;background:#f2f4f8}
.account-help-dialog .portal-help-tabs button.portal-help-tab{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:#667085;font:inherit;font-size:14px;font-weight:550;line-height:1.5;white-space:nowrap;cursor:pointer;box-shadow:none;appearance:none;transition:background .15s,color .15s,box-shadow .15s}
.account-help-dialog .portal-help-tabs button.portal-help-tab:hover{background:#e8ecf4;color:#344054}
.account-help-dialog .portal-help-tabs button.portal-help-tab[aria-current=page]{border-color:#e4e0fd;background:#fff;color:#5146d6;font-weight:650;box-shadow:0 2px 5px rgb(24 34 48 / 7%)}
.account-help-dialog button.portal-help-close{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;margin:0;padding:7px 11px;border:1px solid #e2e6ee;border-radius:10px;background:#fff;color:#667085;font:inherit;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;box-shadow:none;appearance:none}
.account-help-dialog button.portal-help-close:hover{background:#f3f5f9;border-color:#d4dae6;color:#344054}
.account-help-dialog .portal-help-control-icon{display:block;width:18px;height:18px;flex:none}
.account-help-dialog :is(.portal-help-tab,.portal-help-close):focus-visible{outline:3px solid rgb(79 70 229 / 22%);outline-offset:2px}
@media(max-width:480px){.account-help-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:20px}.account-help-dialog nav.portal-help-tabs{gap:4px;padding:4px;margin:20px 0}.account-help-dialog .portal-help-tabs button.portal-help-tab{flex-direction:column;gap:5px;min-height:64px;padding:8px 4px;font-size:13px}.account-help-dialog .portal-help-tabs .portal-help-control-icon{width:18px;height:18px}}
