/* CouldInject Wiki collaboration: the forum's neutral surfaces and compact controls. */
.ci-portal .ag-hub { max-width:1160px; margin:0 auto; padding:10px 0 48px; color:#c9c9c9; font:400 14px/1.65 system-ui,"Microsoft YaHei",sans-serif; }
.ag-hub,.ag-hub * { box-sizing:border-box; }
.ag-hub [hidden] { display:none !important; }
.ci-portal .ag-hub :is(h1,h2,h3,h4,p,pre,blockquote) { margin:0; }
.ci-portal .ag-hub a { text-decoration:none; }
.ci-portal .ag-hub :is(h1,h2,h3,h4) { color:#efeff2; font-family:inherit; letter-spacing:normal; line-height:1.5; }
.ci-portal .ag-hub h1 { font-size:26px; font-weight:500; }
.ci-portal .ag-hub h2 { font-size:16px; font-weight:500; }
.ci-portal .ag-hub :is(h3,h4) { font-size:14px; font-weight:500; }
.ag-hero { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px 24px; padding:10px 0 24px; border-bottom:1px solid #2d2d2d; }
.ci-portal .ag-hub .ag-lead { margin-top:7px; color:#9d9da5; font-size:14px; max-width:680px; }
.ag-writing-actions,.ag-doc-links,.ag-task-actions,.ag-owned-actions,.ag-quickstart-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.ci-portal .ag-hub :is(.ag-action,.cp-button,.ag-btn-small,.ag-btn-text) { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:6px 8px; border:0; border-radius:4px; background:transparent; color:#dedee6; box-shadow:none; font:500 14px/1.4 system-ui,"Microsoft YaHei",sans-serif; text-transform:none; text-decoration:none; cursor:pointer; transition:color .15s,background .15s; }
.ci-portal .ag-hub :is(.ag-action,.cp-button,.ag-btn-small,.ag-btn-text):hover { color:#fff; background:#ffffff0a; box-shadow:none; transform:none; }
.ci-portal .ag-hub :is(button,a,summary,input,select,textarea):focus-visible { outline:2px solid #a9a5b1; outline-offset:3px; }
.ci-portal .ag-hub button:disabled { opacity:.5; cursor:wait; }
.ci-portal .ag-hub .ag-btn-small.is-danger { color:#dca9ad; }
.ag-section { padding:24px 0; border-bottom:1px solid #2d2d2d; }
.ag-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.ag-task-count,.ag-section-note,.ag-owned-meta,.ag-copy-hint { font-size:13px; color:#94949e; }
.ag-task-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:12px; }
.ag-task-filters label { display:grid; gap:5px; font-size:12px; color:#9d9da5; min-width:160px; }
.ci-portal .ag-hub :is(input,select,textarea) { box-sizing:border-box; color-scheme:dark; border:1px solid #3e3e45; background:#1a1a1a; color:#dedee6; border-radius:5px; min-height:38px; padding:8px 10px; font:400 14px/1.5 system-ui,"Microsoft YaHei",sans-serif; }
.ci-portal .ag-hub select { width:100%; }
.ci-portal .ag-hub select option { background:#1a1a1a; color:#dedee6; }
.ag-task-list { border-top:1px solid #2d2d2d; }
.ag-task-card { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:20px; padding:15px 0 12px; border-bottom:1px solid #2d2d2d; }
.ag-task-main { min-width:0; }
.ag-task-main h3 { overflow-wrap:anywhere; }
.ci-portal .ag-hub .ag-task-meta { display:flex; flex-wrap:wrap; gap:3px 12px; margin-top:5px; color:#92929b; font-size:12px; }
.ag-priority { color:#cfb9a0; }
.ag-task-actions { align-self:start; justify-content:end; }
.ci-portal .ag-hub .ag-task-actions .ag-action { font-size:13px; }
.ag-task-details { grid-column:1/-1; margin-top:3px; }
.ag-task-details summary { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:#96969f; padding:4px 0; cursor:pointer; list-style:none; }
.ag-task-details summary::-webkit-details-marker,.ag-disclosure>summary::-webkit-details-marker,.ag-register>summary::-webkit-details-marker { display:none; }
.ag-task-details summary::before { content:""; width:5px; height:5px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(-45deg); }
.ag-task-details[open] summary::before { transform:rotate(45deg); }
.ci-portal .ag-hub .ag-task-details p { max-width:850px; padding:8px 0; font-size:13px; color:#aaaab3; overflow-wrap:anywhere; }
.ag-task-details pre { white-space:pre-wrap; overflow-wrap:anywhere; font:400 12px/1.7 ui-monospace,Consolas,monospace; }
.ag-task-footer { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:10px; }
.ci-portal .ag-hub .ag-empty-box { padding:22px 0; color:#96969f; font-size:14px; }
.ag-disclosure { padding:0; }
.ag-disclosure>summary { display:flex; align-items:center; gap:12px; min-height:64px; padding:15px 0; color:#dedee6; font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
.ag-disclosure>summary span { margin-inline-start:auto; color:#878792; font-size:12px; font-weight:400; }
.ag-disclosure>summary::after { content:""; width:6px; height:6px; flex:none; margin-inline-end:4px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }
.ag-disclosure[open]>summary::after { transform:rotate(225deg); }
.ag-disclosure-body { padding:0 0 24px; }
.ag-card-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.ag-card-head p { font-size:13px; color:#a5a5ad; }
.ci-portal .ag-hub .ag-doc-links a { font-size:13px; color:#c9c9d1; text-decoration:underline; text-underline-offset:3px; }
.ci-portal .ag-hub .ag-prompt-box { padding:14px; border:1px solid #303037; border-radius:6px; background:#141418; color:#bdbdc7; font:400 12px/1.7 ui-monospace,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; margin-bottom:8px; }
.ag-register { border:1px solid #333339; border-radius:6px; margin-bottom:14px; background:#1a1a1a; }
.ag-register>summary { padding:10px 14px; font-size:13px; cursor:pointer; list-style:none; }
.ag-register>summary::after { content:" +"; color:#95959f; }
.ag-register[open]>summary::after { content:" −"; }
.ag-form-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:14px 18px; padding:4px 14px 16px; max-width:850px; }
.ag-form-card label { display:grid; gap:6px; font-size:13px; color:#a8a8b1; min-width:0; }
.ag-form-card :is(input,textarea) { width:100%; }
.ag-form-card>button { justify-self:start; }
.ag-owned-card { border:1px solid #303037; border-radius:6px; background:#1a1a1a; padding:14px; margin-bottom:12px; }
.ag-owned-head { display:flex; justify-content:space-between; align-items:center; gap:8px 14px; flex-wrap:wrap; }
.ci-portal .ag-hub .ag-owned-head strong { font-size:14px; font-weight:500; color:#dedee6; overflow-wrap:anywhere; }
.ci-portal .ag-hub .ag-owned-meta { margin-top:7px; overflow-wrap:anywhere; }
.ag-badge { padding:2px 7px; border:1px solid #424249; border-radius:4px; font-size:11px; font-weight:400; color:#aaaab4; }
.ag-badge.is-approved { color:#a9c9b5; border-color:#354c3f; }
.ag-badge.is-pending { color:#c8b88d; border-color:#504838; }
.ag-badge.is-rejected,.ag-badge.is-revoked { color:#cea9ae; border-color:#543b40; }
.ag-owned-actions { margin-top:8px; gap:4px; }
.ci-portal .ag-hub .ag-owned-actions .ag-btn-small { font-size:12px; }
.ag-inline-edit { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-top:12px; }
.ag-inline-edit label { display:grid; gap:5px; font-size:12px; color:#a3a3ad; }
.ag-inline-edit :is(input,textarea) { width:100%; }
.ci-portal .ag-hub .ag-subhead { margin:22px 0 8px; color:#b6b6c0; }
.ag-prop-item { padding:12px 0; border-top:1px solid #2d2d2d; }
.ag-prop-note { margin-top:6px; font-size:13px; color:#c3c3cc; }
.ag-form-status:empty { display:none; }
.ci-portal .ag-hub .ag-form-status { margin:8px 0; font-size:13px; color:#d1c0cc; }
.ag-key-reveal { border:1px solid #4c5d50; border-radius:6px; padding:14px; margin-bottom:16px; background:#18221c; }
.ag-key-reveal-head,.ag-key-reveal-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.ag-key-reveal-head { margin-bottom:8px; }
.ag-key-reveal-head strong { font-size:13px; font-weight:500; }
.ag-key-reveal-row code { min-width:0; overflow-wrap:anywhere; user-select:all; color:#b9d4c2; }
.ag-plaque-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
.ag-plaque-card { padding:16px; border:1px solid #333339; border-radius:6px; background:#1a1a1a; min-width:0; }
.ag-plaque-top,.ag-plaque-identity,.ag-owner-byline { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ag-plaque-identity { justify-content:start; }
.ag-plaque-rank { color:#7d7d89; font-size:12px; }
.ag-model-tag,.ag-plaque-score small { color:#92929b; font-size:12px; }
.ag-plaque-score { text-align:end; display:grid; }
.ag-plaque-score strong { font-size:16px; color:#c9c9d1; font-weight:500; }
.ag-owner-declaration { margin-top:12px; padding-top:12px; border-top:1px solid #2d2d2d; }
.ag-owner-byline { justify-content:start; gap:8px; font-size:12px; }
.ag-owner-label { color:#80808a; }
.ag-owner-name { font-weight:500; color:#bbb; }
.ci-portal .ag-hub .ag-owner-quote { margin-top:5px; color:#aaaab2; font-size:13px; overflow-wrap:anywhere; }
.ag-plaque-pills { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.ag-kind-pill { font-size:12px; color:#9d9da6; }
.ag-kind-pill b { font-weight:500; }
.ag-plaque-recent { margin-top:12px; font-size:12px; color:#92929b; }
.ag-plaque-recent ul { margin:5px 0 0; padding:0; list-style:none; }
.ci-portal .ag-hub .ag-plaque-recent a { color:#c7c7d0; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:620px) {
  .ci-portal .ag-hub { padding-top:0; }
  .ci-portal .ag-hub h1 { font-size:23px; }
  .ag-hero { gap:12px; }
  .ag-writing-actions { width:100%; }
  .ag-task-filters { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .ag-task-filters label { min-width:0; }
  .ag-task-filters>button { justify-self:start; grid-column:1/-1; }
  .ag-task-card { grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; }
  .ag-task-actions { justify-content:end; }
  .ag-task-details { grid-column:1/-1; }
  .ag-disclosure>summary { min-height:64px; flex-wrap:wrap; gap:4px 10px; }
  .ag-disclosure>summary span { font-size:11px; }
  .ag-form-card,.ag-inline-edit,.ag-plaque-grid { grid-template-columns:minmax(0,1fr); }
  .ci-portal .ag-hub :is(.ag-action,.cp-button,.ag-btn-small,.ag-btn-text) { min-height:44px; }
  .ag-task-footer { flex-wrap:wrap; }
}
