.cc-rpw,.apw{--bg:var(--cc-bg,#10142b);--panel:#151a38;--panel2:#1a2046;--line:var(--cc-border,#2a3260);--ink:var(--cc-text,#eef0fa);--muted:var(--cc-muted,#9ea6bf);--a1:var(--cc-btn-1,var(--cc-accent-1,#4f9cf0));--a2:var(--cc-btn-2,var(--cc-accent-2,#8b5cf6));--accent:var(--cc-accent-1,#6d6af5);--warm:#f5b544;--bad:#ff7a7a;--ok:#3ccf8e;
  --paper:#ffffff;--pink:#1d2233;--pmuted:#5f6577;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.45;color:var(--ink);background:radial-gradient(120% 90% at 50% 0%,#1b2147 0%,#121731 60%,#10142b 100%);
  border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.35);max-width:1440px;margin:0 auto;box-sizing:border-box;position:relative;overflow:hidden;text-align:left;container-type:inline-size}
/* the writer needs room: it widens past a narrow theme column, centred on the screen */
.apw.apw-wide{width:min(1440px,calc(100vw - 24px));max-width:none;margin-left:calc(50% - min(720px,50vw - 12px));margin-right:0}
.apw *{box-sizing:border-box}
.apw.apw :is(h1,h2,h3,h4,h5,h6,p,ul,ol,li,blockquote,label,small){font-family:inherit;letter-spacing:normal;text-transform:none;color:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;font-weight:inherit;text-align:inherit}
.apw.apw :is(h1,h2,h3,h4,h5,h6){font-weight:700}
.apw.apw button,.apw.apw .apw-b{font:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;text-shadow:none;min-height:0;margin:0;line-height:1.2;text-decoration:none;box-shadow:none}
.apw.apw input,.apw.apw select,.apw.apw textarea{font:inherit;margin:0;box-shadow:none;letter-spacing:normal;text-transform:none}
.apw.apw button:focus-visible,.apw.apw a:focus-visible,.apw.apw input:focus-visible,.apw.apw select:focus-visible,.apw.apw textarea:focus-visible{outline:2px solid #8b8cf8;outline-offset:2px}
.apw svg.i{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
.apw-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* buttons */
.apw.apw .apw-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#dfe3ff;font-size:13px;font-weight:600;white-space:nowrap}
.apw.apw .apw-btn:hover{border-color:var(--accent);color:#fff;background:rgba(255,255,255,.07)}
.apw.apw .apw-btn.pri{background:linear-gradient(90deg,var(--a1),var(--a2));border-color:transparent;color:#fff}
.apw.apw .apw-btn.pri:hover{filter:brightness(1.08)}
.apw.apw .apw-btn:disabled{opacity:.5;cursor:not-allowed}
.apw.apw .apw-btn.sm{padding:5px 9px;font-size:12px;border-radius:8px}
.apw.apw .apw-ib{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:#cdd2ef;padding:0}
.apw.apw .apw-ib:hover{background:rgba(255,255,255,.07);color:#fff}
.apw.apw .apw-ib[aria-pressed=true]{background:rgba(109,106,245,.25);color:#fff;border-color:rgba(109,106,245,.5)}
.apw input.apw-in,.apw select.apw-in,.apw textarea.apw-in{width:100%;background:var(--panel2);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:9px 11px;font-size:13.5px;outline:0}
.apw input.apw-in:focus,.apw select.apw-in:focus,.apw textarea.apw-in:focus{border-color:var(--accent)}
.apw select.apw-in option{background:#151a38;color:#fff}
.apw.apw label.apw-lab{display:block;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8b8cf8;margin:12px 0 6px}
.apw.apw .apw-note{font-size:12px;color:var(--muted);margin:6px 0 0}
.apw .apw-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(109,106,245,.14);border:1px solid rgba(109,106,245,.32);font-size:12px;font-weight:600;color:#cdd2ff;white-space:nowrap}
.apw .apw-pill.low{background:rgba(245,181,68,.12);border-color:rgba(245,181,68,.4);color:#ffe0a8}
/* shell */
.apw-top{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:rgba(10,13,32,.35)}
.apw-brand{display:flex;align-items:center;gap:8px;font-weight:800;font-family:"Outfit",system-ui,sans-serif;font-size:16px;color:#fff;white-space:nowrap}
.apw-brand i{display:inline-flex;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--a1),var(--a2));align-items:center;justify-content:center;font-style:normal}
.apw input.apw-title{flex:1;min-width:80px;background:transparent;border:1px solid transparent;border-radius:8px;color:#fff;font-weight:700;font-size:15px;padding:6px 8px;outline:0}
.apw input.apw-title:hover{border-color:var(--line)}.apw input.apw-title:focus{border-color:var(--accent);background:var(--panel2)}
.apw-saved{font-size:12px;color:var(--muted);white-space:nowrap}
.apw-body{display:grid;grid-template-columns:230px minmax(0,1fr) 360px;height:min(86vh,900px);min-height:620px}
.apw-left,.apw-right{background:rgba(12,15,36,.45);min-height:0;display:flex;flex-direction:column}
.apw-left{border-right:1px solid var(--line)}
.apw-right{border-left:1px solid var(--line)}
.apw.apw .apw-sec{padding:12px;border-bottom:1px solid var(--line)}
.apw.apw .apw-sec h4{margin:0 0 8px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8b8cf8;display:flex;align-items:center;justify-content:space-between}
.apw-docs{overflow:auto;flex:1;padding:6px}
.apw.apw .apw-doc{display:block;width:100%;text-align:left;border:1px solid transparent;background:transparent;color:#dfe3ff;border-radius:9px;padding:8px 10px;margin-bottom:2px}
.apw.apw .apw-doc:hover{background:rgba(255,255,255,.05)}
.apw.apw .apw-doc[aria-current=true]{background:rgba(109,106,245,.2);border-color:rgba(109,106,245,.45)}
.apw.apw .apw-doc b{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.apw.apw .apw-doc small{font-size:11.5px;color:var(--muted)}
.apw-outline{overflow:auto;max-height:38%;padding:4px 6px 10px}
.apw.apw .apw-ol{display:block;width:100%;text-align:left;border:0;background:transparent;color:#c7cdee;font-size:12.5px;padding:4px 8px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apw.apw .apw-ol:hover{background:rgba(255,255,255,.05);color:#fff}
.apw.apw .apw-ol.l2{padding-left:18px}.apw-ol.l3{padding-left:30px;color:#9ea6bf}
/* center */
.apw-center{display:flex;flex-direction:column;min-width:0;min-height:0}
.apw-tools{display:flex;align-items:center;gap:2px;padding:6px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap;background:rgba(10,13,32,.25)}
.apw-tools .sep{width:1px;height:20px;background:var(--line);margin:0 5px}
.apw-tools select.apw-in{width:auto;padding:5px 8px;font-size:12.5px;border-radius:8px}
.apw-scroll{flex:1;overflow:auto;padding:26px 18px 60px;background:#0d1127}
.apw-paper{max-width:780px;margin:0 auto;background:var(--paper);color:var(--pink);border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.4);padding:56px 64px 64px;min-height:100%}
.apw.apw .apw-ed{outline:0;font-family:Georgia,"Times New Roman",serif;font-size:16.5px;line-height:1.75;color:var(--pink);min-height:420px;caret-color:#4f46e5}
.apw.apw .apw-ed:empty::before{content:attr(data-ph);color:#9aa0b0}
.apw.apw .apw-ed h1{font-size:28px;line-height:1.25;margin:0 0 18px;font-weight:700;color:#11152a}
.apw.apw .apw-ed h2{font-size:21px;line-height:1.3;margin:28px 0 10px;font-weight:700;color:#11152a}
.apw.apw .apw-ed h3{font-size:17.5px;margin:22px 0 8px;font-weight:700;color:#11152a}
.apw.apw .apw-ed p{margin:0 0 14px}
.apw.apw .apw-ed ul,.apw.apw .apw-ed ol{margin:0 0 14px;padding-left:28px}
.apw.apw .apw-ed blockquote{margin:0 0 14px;padding:4px 0 4px 16px;border-left:3px solid #c9cde0;color:#454b5e}
.apw.apw .apw-ed .cite{color:#3f3ab8;background:rgba(109,106,245,.1);border-radius:4px;padding:0 2px;cursor:pointer;white-space:nowrap}
.apw.apw .apw-ed .cite:hover{background:rgba(109,106,245,.22)}
.apw.apw .apw-ed .cite.note{vertical-align:super;font-size:.72em;line-height:1}
.apw.apw .apw-ed .ghost{color:#9097ad;pointer-events:none;user-select:none}
.apw.apw .apw-ed .ghost em.k{font-style:normal;font-family:Inter,system-ui,sans-serif;font-size:11px;color:#6d6af5;border:1px solid #c9c8fb;border-radius:4px;padding:0 4px;margin-left:6px;vertical-align:1px}
.apw.apw .apw-ed .ai-new{background:linear-gradient(90deg,rgba(109,106,245,.12),rgba(109,106,245,0));transition:background 2s}
.apw.apw .apw-bib{margin-top:28px;border-top:1px solid #e2e4ee;padding-top:8px;font-family:Georgia,"Times New Roman",serif;color:var(--pink)}
.apw.apw .apw-bib h2{font-size:21px;margin:18px 0 12px}
.apw.apw .apw-bib .csl-entry{margin:0 0 10px;font-size:15px;line-height:1.6;padding-left:2em;text-indent:-2em}
.apw.apw .apw-bib .csl-left-margin{float:left;width:2.4em;text-indent:0}.apw-bib .csl-right-inline{margin-left:2.4em;text-indent:0}
.apw.apw .apw-bib .csl-entry:has(.csl-left-margin){padding-left:0;text-indent:0}
.apw.apw .apw-bib .empty{font-size:13px;color:#8a90a3;font-family:Inter,system-ui,sans-serif}
.apw-foot{display:flex;justify-content:space-between;gap:10px;padding:7px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);flex-wrap:wrap}
.apw-foot a{color:#aab0ff}
/* right panel */
.apw-tabs{display:flex;border-bottom:1px solid var(--line)}
.apw.apw .apw-tab{flex:1;border:0;background:transparent;color:var(--muted);padding:11px 6px;font-size:12.5px;font-weight:700;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;gap:6px}
.apw.apw .apw-tab[aria-selected=true]{color:#fff;border-bottom-color:var(--accent)}
.apw-pane{flex:1;overflow:auto;padding:12px;min-height:0}
.apw-row{display:flex;gap:6px;align-items:center}
.apw.apw .apw-res{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:10px 11px;margin-top:9px}
.apw.apw .apw-res h5{margin:0 0 4px;font-size:13.5px;line-height:1.35;color:#fff;font-weight:650}
.apw.apw .apw-res .meta{font-size:12px;color:var(--muted)}
.apw.apw .apw-res .meta b{color:#cdd2ff;font-weight:600}
.apw.apw .apw-res .abs{font-size:12.3px;color:#b7bdd8;margin:6px 0 0;display:none}
.apw.apw .apw-res.open .abs{display:block}
.apw.apw .apw-res .acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.apw-badge{display:inline-block;font-size:10.5px;font-weight:700;border-radius:5px;padding:1px 5px;margin-left:4px;background:rgba(60,207,142,.15);color:#7fe3b5;vertical-align:1px}
.apw.apw .apw-empty{color:var(--muted);font-size:13px;text-align:center;padding:24px 10px}
.apw.apw .apw-chat{display:flex;flex-direction:column;gap:10px}
.apw.apw .apw-msg{border-radius:12px;padding:9px 11px;font-size:13.3px;line-height:1.5;white-space:pre-wrap}
.apw.apw .apw-msg.q{background:rgba(109,106,245,.2);border:1px solid rgba(109,106,245,.4);align-self:flex-end;max-width:90%}
.apw.apw .apw-msg.a{background:var(--panel);border:1px solid var(--line)}
.apw.apw .apw-msg .pg{display:inline-block;font-size:11px;font-weight:700;background:rgba(79,156,240,.18);color:#bfe0ff;border-radius:5px;padding:1px 6px;margin:6px 4px 0 0}
.apw.apw .apw-file{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;margin-top:6px;background:var(--panel)}
.apw.apw .apw-file span{flex:1;min-width:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apw.apw .apw-file small{color:var(--muted);font-size:11px}
.apw.apw .apw-drop{border:1.5px dashed #3a4380;border-radius:12px;padding:14px;text-align:center;color:var(--muted);font-size:12.5px;cursor:pointer}
.apw.apw .apw-drop:hover,.apw.apw .apw-drop.over{border-color:var(--accent);color:#fff;background:rgba(109,106,245,.08)}
/* floating */
.apw.apw .apw-bubble{position:absolute;z-index:40;display:flex;gap:2px;background:#151a38;border:1px solid #3a4380;border-radius:11px;padding:4px;box-shadow:0 12px 34px rgba(0,0,0,.45);flex-wrap:wrap;max-width:420px}
.apw.apw .apw-bubble button{border:0;background:transparent;color:#dfe3ff;font-size:12.5px;font-weight:600;padding:6px 9px;border-radius:7px;display:flex;align-items:center;gap:5px}
.apw.apw .apw-bubble button:hover{background:rgba(109,106,245,.25);color:#fff}
.apw.apw .apw-sugg{position:absolute;z-index:41;width:min(460px,92%);background:#151a38;border:1px solid #3a4380;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.5);padding:12px}
.apw.apw .apw-sugg .txt{background:#fff;color:#1d2233;border-radius:9px;padding:10px 12px;font-family:Georgia,serif;font-size:14.5px;line-height:1.6;max-height:260px;overflow:auto;white-space:pre-wrap}
.apw.apw .apw-sugg .acts{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.apw-modal{position:absolute;inset:0;z-index:60;background:rgba(6,8,22,.72);display:flex;align-items:flex-start;justify-content:center;padding:6vh 14px;overflow:auto}
.apw.apw .apw-card{width:min(460px,100%);background:#151a38;border:1px solid #3a4380;border-radius:18px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.apw.apw .apw-card h3{margin:0 0 6px;font-family:"Outfit",system-ui,sans-serif;font-size:21px;color:#fff}
.apw.apw .apw-card p{margin:0 0 6px;color:#b7bdd8;font-size:13.5px}
.apw.apw .apw-card .acts{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.apw-msgbar{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:70;background:#0b0e22;border:1px solid #3a4380;color:#fff;border-radius:11px;padding:10px 14px;font-size:13px;max-width:min(560px,92%);box-shadow:0 12px 34px rgba(0,0,0,.5)}
.apw-msgbar.bad{border-color:rgba(255,122,122,.6);background:#2a1220}
.apw-spin{width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;animation:apw-r .8s linear infinite;flex:none}
@keyframes apw-r{to{transform:rotate(360deg)}}
.apw.apw .apw-menu{position:absolute;z-index:50;background:#151a38;border:1px solid #3a4380;border-radius:12px;padding:5px;min-width:210px;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.apw.apw .apw-menu button{display:flex;width:100%;align-items:center;gap:8px;border:0;background:transparent;color:#dfe3ff;padding:8px 10px;border-radius:8px;font-size:13px;text-align:left}
.apw.apw .apw-menu button:hover{background:rgba(109,106,245,.22);color:#fff}
.apw.apw .apw-start{max-width:560px;margin:4vh auto 0;font-family:Inter,system-ui,sans-serif;color:#1d2233}
.apw.apw .apw-start h2{font-family:"Outfit",system-ui,sans-serif;font-size:24px;margin:0 0 6px;color:#11152a}
.apw.apw .apw-start p{color:#5f6577;margin:0 0 14px}
.apw.apw .apw-start textarea,.apw.apw .apw-start select{width:100%;border:1px solid #d5d8e5;border-radius:10px;padding:10px 12px;font:inherit;font-size:15px;color:#1d2233;background:#fff;outline:0}
.apw.apw .apw-start textarea:focus,.apw.apw .apw-start select:focus{border-color:#6d6af5}
.apw.apw .apw-start .row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.apw.apw .apw-start .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.apw.apw .apw-start .chip{border:1px solid #d5d8e5;background:#f6f7fb;color:#2b3046;border-radius:999px;padding:6px 11px;font-size:12.5px}
.apw.apw .apw-start .chip:hover{border-color:#6d6af5}
.apw-gate{position:absolute;inset:0;z-index:55;display:flex;align-items:flex-start;justify-content:center;padding:5vh 14px;background:rgba(9,12,30,.66);backdrop-filter:blur(3px);overflow:auto}
.apw .apw-ts{margin-top:10px}
.apw .apw-err{color:#ffb3b3;font-size:12.5px;margin-top:8px;min-height:1em}
.apw-mobbar{display:none}
@container (max-width:1180px){.apw-body{grid-template-columns:200px minmax(0,1fr) 320px}.apw-paper{padding:44px 40px}}
@container (max-width:980px){
.apw-body{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}
.apw-left,.apw-right{position:absolute;top:56px;bottom:0;z-index:45;width:min(360px,92%);background:#121733;box-shadow:0 0 50px rgba(0,0,0,.6);display:none}
.apw-left{left:0}.apw-right{right:0}
.apw.show-left .apw-left,.apw.show-right .apw-right{display:flex}
.apw-center{height:78vh;min-height:520px}
.apw-mobbar{display:flex}
.apw-scroll{padding:12px 8px 40px}.apw-paper{padding:28px 20px;border-radius:4px}
.apw.apw .apw-ed{font-size:16px}
.apw-top .hide-s{display:none}
}
@media print{.apw{display:none}}
@media (max-width:760px){.apw.apw-wide{width:auto;margin-left:0;margin-right:0;border-radius:14px}}


/* ============================================================
   BULLETPROOF THEME ISOLATION & COMPONENT STYLING
   Completely neutralizes theme button & layout overrides
   ============================================================ */

:where(body, #page, .site, article, main) .cc-rpw button,
:where(body, #page, .site, article, main) .apw button,
.cc-rpw button,
.apw button {
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  outline: none !important;
  text-decoration: none !important;
  transform: none !important;
  filter: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Icon Buttons (.apw-ib) */
:where(body, #page, .site, article, main) .cc-rpw button.apw-ib,
:where(body, #page, .site, article, main) .apw button.apw-ib,
.cc-rpw .apw-ib,
.apw .apw-ib {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: #cdd2ef !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex: 0 0 32px !important;
}

.cc-rpw .apw-ib:hover,
.apw .apw-ib:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.cc-rpw .apw-ib[aria-pressed="true"],
.apw .apw-ib[aria-pressed="true"] {
  background: rgba(109, 106, 245, 0.28) !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: rgba(109, 106, 245, 0.55) !important;
}

/* Toolbar Buttons & Layout */
.cc-rpw .apw-tools,
.apw .apw-tools {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 6px 12px !important;
  border-bottom: 1px solid var(--line) !important;
  flex-wrap: wrap !important;
  background: rgba(10, 13, 32, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-tools .sep,
.apw .apw-tools .sep {
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 20px !important;
  background: var(--line) !important;
  margin: 0 4px !important;
  display: inline-block !important;
  flex: 0 0 1px !important;
}

.cc-rpw .apw-tools select.apw-in,
.apw .apw-tools select.apw-in {
  width: auto !important;
  min-width: 100px !important;
  max-width: 180px !important;
  height: 32px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  background-color: var(--panel2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* General Action Buttons (.apw-btn) */
:where(body, #page, .site, article, main) .cc-rpw button.apw-btn,
:where(body, #page, .site, article, main) .apw button.apw-btn,
.cc-rpw .apw-btn,
.apw .apw-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  color: #dfe3ff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  width: auto !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.cc-rpw .apw-btn:hover,
.apw .apw-btn:hover {
  border-color: var(--accent) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-btn.sm,
:where(body, #page, .site, article, main) .apw button.apw-btn.sm,
.cc-rpw .apw-btn.sm,
.apw .apw-btn.sm {
  padding: 5px 11px !important;
  font-size: 12px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

/* Primary Button (.apw-btn.pri) */
:where(body, #page, .site, article, main) .cc-rpw button.apw-btn.pri,
:where(body, #page, .site, article, main) .apw button.apw-btn.pri,
.cc-rpw .apw-btn.pri,
.apw .apw-btn.pri {
  background: linear-gradient(135deg, #4f9cf0, #8b5cf6) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 156, 240, 0.3) !important;
}

.cc-rpw .apw-btn.pri:hover,
.apw .apw-btn.pri:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 20px rgba(79, 156, 240, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Top Bar Component Layout */
.cc-rpw .apw-top,
.apw .apw-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(10, 13, 32, 0.45) !important;
}

.cc-rpw .apw-brand,
.apw .apw-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 800 !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 16px !important;
  color: #fff !important;
  white-space: nowrap !important;
}

.cc-rpw .apw-brand i,
.apw .apw-brand i {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--a1), var(--a2)) !important;
  align-items: center !important;
  justify-content: center !important;
  font-style: normal !important;
}

.cc-rpw .apw-title,
.apw .apw-title {
  flex: 1 1 0 !important;
  min-width: 100px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 6px 10px !important;
  outline: 0 !important;
}

.cc-rpw .apw-title:hover,
.apw .apw-title:hover {
  border-color: var(--line) !important;
}

.cc-rpw .apw-title:focus,
.apw .apw-title:focus {
  border-color: var(--accent) !important;
  background: var(--panel2) !important;
}

.cc-rpw .apw-pill,
.apw .apw-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(109, 106, 245, 0.14) !important;
  border: 1px solid rgba(109, 106, 245, 0.32) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cdd2ff !important;
  white-space: nowrap !important;
  width: auto !important;
}

/* Right Tabs */
.cc-rpw .apw-tabs,
.apw .apw-tabs {
  display: flex !important;
  flex-direction: row !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(10, 13, 32, 0.25) !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-tab,
:where(body, #page, .site, article, main) .apw button.apw-tab,
.cc-rpw .apw-tab,
.apw .apw-tab {
  flex: 1 1 0 !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 11px 8px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.cc-rpw .apw-tab[aria-selected="true"],
.apw .apw-tab[aria-selected="true"] {
  color: #ffffff !important;
  border-bottom-color: var(--accent) !important;
  background: rgba(109, 106, 245, 0.12) !important;
  background-image: none !important;
}

.cc-rpw .apw-tab:hover,
.apw .apw-tab:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ============================================================
   RIGHT SIDEBAR: PANE & SEARCH & FILTERS
   ============================================================ */

.cc-rpw .apw-pane,
.apw .apw-pane {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

/* Search Bar (Sources search and Chat PDF ask) */
.cc-rpw .apw-srch-bar,
.apw .apw-srch-bar {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 10px 0 !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-srch-in,
.apw .apw-srch-in {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  background: var(--panel2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  outline: 0 !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-srch-in:focus,
.apw .apw-srch-in:focus {
  border-color: var(--accent) !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-srch-btn,
:where(body, #page, .site, article, main) .apw button.apw-srch-btn,
.cc-rpw .apw-srch-btn,
.apw .apw-srch-btn {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--a1), var(--a2)) !important;
  border: 0 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(79, 156, 240, 0.3) !important;
}

.cc-rpw .apw-srch-btn:hover,
.apw .apw-srch-btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 14px rgba(79, 156, 240, 0.45) !important;
}

/* Source Search Filters */
.cc-rpw .apw-filters,
.apw .apw-filters {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-filter-sel,
.apw .apw-filter-sel {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 95px !important;
  max-width: 130px !important;
  height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  background: var(--panel2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-filter-chk,
.apw .apw-filter-chk {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  color: #cdd2ef !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-left: 2px !important;
  user-select: none !important;
  flex: 0 0 auto !important;
}

.cc-rpw .apw-filter-chk input[type="checkbox"],
.apw .apw-filter-chk input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  accent-color: var(--accent) !important;
  cursor: pointer !important;
}

/* ============================================================
   RIGHT SIDEBAR: "IN THIS PAPER" & ACTION GRID
   ============================================================ */

.cc-rpw .apw-sec-in-paper,
.apw .apw-sec-in-paper {
  padding: 14px 0 10px !important;
  margin-top: 14px !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-sec-in-paper h4,
.apw .apw-sec-in-paper h4 {
  margin: 0 0 10px 0 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #8b8cf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.cc-rpw .apw-lib-count,
.apw .apw-lib-count {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

/* The 3 Action Buttons (Add by DOI, Add manually, Import BibTeX) */
.cc-rpw .apw-source-actions-grid,
.apw .apw-source-actions-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 4px 0 !important;
  box-sizing: border-box !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-action-btn,
:where(body, #page, .site, article, main) .apw button.apw-action-btn,
.cc-rpw .apw-action-btn,
.apw .apw-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 7px 4px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-align: center !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  color: #dfe3ff !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.cc-rpw .apw-action-btn:hover,
.apw .apw-action-btn:hover {
  background: rgba(109, 106, 245, 0.18) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.cc-rpw .apw-action-btn svg.i,
.apw .apw-action-btn svg.i {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  flex: none !important;
}

/* ============================================================
   RIGHT SIDEBAR: CARDS, RESULTS & SAVED SOURCES
   ============================================================ */

.cc-rpw .apw-res,
.apw .apw-res {
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  border-radius: 12px !important;
  padding: 11px 12px !important;
  margin-top: 9px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

.cc-rpw .apw-res:hover,
.apw .apw-res:hover {
  border-color: rgba(109, 106, 245, 0.45) !important;
}

.cc-rpw .apw-res h5,
.apw .apw-res h5 {
  margin: 0 0 5px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  word-break: break-word !important;
}

.cc-rpw .apw-res .meta,
.apw .apw-res .meta {
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
}

.cc-rpw .apw-res .meta b,
.apw .apw-res .meta b {
  color: #cdd2ff !important;
  font-weight: 600 !important;
}

.cc-rpw .apw-res .abs,
.apw .apw-res .abs {
  font-size: 12px !important;
  color: #b7bdd8 !important;
  line-height: 1.45 !important;
  margin: 8px 0 0 0 !important;
  display: none !important;
  padding-top: 8px !important;
  border-top: 1px dashed var(--line) !important;
}

.cc-rpw .apw-res.open .abs,
.apw .apw-res.open .abs {
  display: block !important;
}

/* Action button strip inside cards */
.cc-rpw .apw-res .acts,
.apw .apw-res .acts {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  margin-top: 9px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

:where(body, #page, .site, article, main) .cc-rpw .apw-res .acts button.apw-btn,
:where(body, #page, .site, article, main) .apw .apw-res .acts button.apw-btn,
:where(body, #page, .site, article, main) .cc-rpw .apw-res .acts a.apw-btn,
:where(body, #page, .site, article, main) .apw .apw-res .acts a.apw-btn,
.cc-rpw .apw-res .acts .apw-btn,
.apw .apw-res .acts .apw-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.cc-rpw .apw-tag-cited,
.apw .apw-tag-cited {
  color: #3ccf8e !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.cc-rpw .apw-tag-uncited,
.apw .apw-tag-uncited {
  color: #f5b544 !important;
  font-size: 11px !important;
}

.cc-rpw .apw-empty-card,
.apw .apw-empty-card {
  text-align: center !important;
  padding: 24px 16px !important;
  border: 1px dashed var(--line) !important;
  border-radius: 12px !important;
  margin-top: 10px !important;
  background: rgba(21, 26, 56, 0.3) !important;
}

.cc-rpw .apw-empty-card p,
.apw .apw-empty-card p {
  color: #c7cdee !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
}

.cc-rpw .apw-empty-card small,
.apw .apw-empty-card small {
  color: var(--muted) !important;
  font-size: 11.5px !important;
  display: block !important;
}

/* ============================================================
   RIGHT SIDEBAR: CHAT PDF & AI TOOLS PANES
   ============================================================ */

.cc-rpw .apw-chat-chips,
.apw .apw-chat-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 10px !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-chat-chip,
:where(body, #page, .site, article, main) .apw button.apw-chat-chip,
.cc-rpw .apw-chat-chip,
.apw .apw-chat-chip {
  display: inline-flex !important;
  width: auto !important;
  padding: 5px 10px !important;
  font-size: 11.5px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: #dfe3ff !important;
  margin: 0 !important;
}

.cc-rpw .apw-chat-chip:hover,
.apw .apw-chat-chip:hover {
  background: rgba(109, 106, 245, 0.16) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

/* AI Tool Rows */
.cc-rpw .apw-tool-row,
.apw .apw-tool-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

.cc-rpw .apw-tool-row select.apw-in,
.apw .apw-tool-row select.apw-in {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 5px 9px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  background: var(--panel2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-sizing: border-box !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-tool-btn,
:where(body, #page, .site, article, main) .apw button.apw-tool-btn,
.cc-rpw .apw-tool-btn,
.apw .apw-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 70px !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  flex: none !important;
  margin: 0 !important;
}

.cc-rpw .apw-tool-duo,
.apw .apw-tool-duo {
  display: flex !important;
  gap: 8px !important;
}

:where(body, #page, .site, article, main) .cc-rpw .apw-tool-duo button.apw-btn,
:where(body, #page, .site, article, main) .apw .apw-tool-duo button.apw-btn,
.cc-rpw .apw-tool-duo .apw-btn,
.apw .apw-tool-duo .apw-btn {
  flex: 1 1 0 !important;
  width: 100% !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  text-align: center !important;
}

/* Left Sidebar Items */
:where(body, #page, .site, article, main) .cc-rpw .apw-left button.apw-btn.pri,
:where(body, #page, .site, article, main) .apw .apw-left button.apw-btn.pri,
.cc-rpw .apw-left .apw-btn.pri,
.apw .apw-left .apw-btn.pri {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 14px !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-doc,
:where(body, #page, .site, article, main) .apw button.apw-doc,
.cc-rpw .apw-doc,
.apw .apw-doc {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #dfe3ff !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  margin-bottom: 2px !important;
}

.cc-rpw .apw-doc:hover,
.apw .apw-doc:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  color: #ffffff !important;
}

.cc-rpw .apw-doc[aria-current="true"],
.apw .apw-doc[aria-current="true"] {
  background: rgba(109, 106, 245, 0.22) !important;
  background-image: none !important;
  border-color: rgba(109, 106, 245, 0.45) !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-ol,
:where(body, #page, .site, article, main) .apw button.apw-ol,
.cc-rpw .apw-ol,
.apw .apw-ol {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #c7cdee !important;
  font-size: 12.5px !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cc-rpw .apw-ol:hover,
.apw .apw-ol:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Paper Canvas & Start Box */
.cc-rpw .apw-paper,
.apw .apw-paper {
  max-width: 780px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  color: #1d2233 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  padding: 56px 64px 64px !important;
  min-height: 100% !important;
}

.cc-rpw .apw-start,
.apw .apw-start {
  max-width: 560px !important;
  margin: 4vh auto 0 !important;
  font-family: Inter, system-ui, sans-serif !important;
  color: #1d2233 !important;
}

.cc-rpw .apw-start textarea,
.apw .apw-start textarea,
.cc-rpw .apw-start select,
.apw .apw-start select {
  width: 100% !important;
  border: 1px solid #d5d8e5 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font: inherit !important;
  font-size: 15px !important;
  color: #1d2233 !important;
  background: #ffffff !important;
  outline: 0 !important;
}

:where(body, #page, .site, article, main) .cc-rpw .apw-start button.chip,
:where(body, #page, .site, article, main) .apw .apw-start button.chip,
.cc-rpw .apw-start .chip,
.apw .apw-start .chip {
  border: 1px solid #d5d8e5 !important;
  background: #f6f7fb !important;
  background-image: none !important;
  color: #2b3046 !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  width: auto !important;
  display: inline-flex !important;
  box-shadow: none !important;
}

.cc-rpw .apw-start .chip:hover,
.apw .apw-start .chip:hover {
  border-color: #6d6af5 !important;
  color: #6d6af5 !important;
  background: #f0f1ff !important;
}



/* Mobile bar buttons hidden on desktop */
@media (min-width: 981px) {
  .cc-rpw .apw-mobbar,
  .apw .apw-mobbar {
    display: none !important;
  }
}
@container (min-width: 981px) {
  .cc-rpw .apw-mobbar,
  .apw .apw-mobbar {
    display: none !important;
  }
}

/* Floating bubble toolbar buttons */
.cc-rpw .apw-bubble button,
.apw .apw-bubble button {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  padding: 6px 10px !important;
  font-size: 12.5px !important;
  background: transparent !important;
  background-image: none !important;
  color: #dfe3ff !important;
  box-shadow: none !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.cc-rpw .apw-bubble button:hover,
.apw .apw-bubble button:hover {
  background: rgba(109, 106, 245, 0.25) !important;
  color: #ffffff !important;
}

/* Modal action buttons */
.cc-rpw .apw-card .acts button,
.apw .apw-card .acts button,
.cc-rpw .apw-sugg .acts button,
.apw .apw-sugg .acts button {
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
}

/* Strict SVG Icon Dimensions */
.cc-rpw svg.i,
.apw svg.i {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
  flex: none !important;
  margin: 0 !important;
}

/* ============================================================
   TOP BAR: ACCOUNT CHIP & POPOVER
   ============================================================ */

:where(body, #page, .site, article, main) .cc-rpw button.apw-account-chip,
:where(body, #page, .site, article, main) .apw button.apw-account-chip,
.cc-rpw .apw-account-chip,
.apw .apw-account-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 3px 11px 3px 4px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  color: #eef0fa !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.cc-rpw .apw-account-chip:hover,
.apw .apw-account-chip:hover {
  background: rgba(109, 106, 245, 0.18) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.cc-rpw .apw-account-chip .apw-avatar,
.apw .apw-account-chip .apw-avatar {
  display: inline-flex !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f9cf0, #8b5cf6) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  flex: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.cc-rpw .apw-account-chip .apw-account-name,
.apw .apw-account-chip .apw-account-name {
  max-width: 130px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  color: #dfe3ff !important;
}

.cc-rpw .apw-account-chip svg.i,
.apw .apw-account-chip svg.i {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  opacity: 0.75 !important;
  flex: none !important;
  transition: transform 0.15s ease !important;
}

.cc-rpw .apw-account-chip:hover svg.i,
.apw .apw-account-chip:hover svg.i {
  opacity: 1 !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-account-login,
:where(body, #page, .site, article, main) .apw button.apw-account-login,
.cc-rpw .apw-account-login,
.apw .apw-account-login {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  height: 32px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

/* Account Popover */
.cc-rpw .apw-account-popover,
.apw .apw-account-popover {
  position: absolute !important;
  z-index: 65 !important;
  width: 290px !important;
  max-width: calc(100vw - 24px) !important;
  background: #151a38 !important;
  border: 1px solid #3a4380 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  color: #dfe3ff !important;
  box-sizing: border-box !important;
  animation: apw-fade-in 0.15s ease-out !important;
}

@keyframes apw-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cc-rpw .apw-acc-head,
.apw .apw-acc-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--line) !important;
}

.cc-rpw .apw-acc-avatar-lg,
.apw .apw-acc-avatar-lg {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f9cf0, #8b5cf6) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  box-shadow: 0 4px 12px rgba(79, 156, 240, 0.35) !important;
  text-transform: uppercase !important;
}

.cc-rpw .apw-acc-user-info,
.apw .apw-acc-user-info {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.cc-rpw .apw-acc-name,
.apw .apw-acc-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}

.cc-rpw .apw-acc-email,
.apw .apw-acc-email {
  font-size: 12px !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  margin-top: 1px !important;
}

.cc-rpw .apw-acc-badge,
.apw .apw-acc-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  margin-top: 5px !important;
}

.cc-rpw .apw-acc-badge.admin,
.apw .apw-acc-badge.admin {
  background: rgba(139, 92, 246, 0.2) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  color: #c4b5fd !important;
}

.cc-rpw .apw-acc-badge.pro,
.apw .apw-acc-badge.pro {
  background: rgba(79, 156, 240, 0.2) !important;
  border: 1px solid rgba(79, 156, 240, 0.45) !important;
  color: #93c5fd !important;
}

.cc-rpw .apw-acc-badge.free,
.apw .apw-acc-badge.free {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cdd2ef !important;
}

/* Usage details */
.cc-rpw .apw-acc-usage,
.apw .apw-acc-usage {
  padding: 12px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border-bottom: 1px solid var(--line) !important;
}

.cc-rpw .apw-acc-usage-item,
.apw .apw-acc-usage-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.cc-rpw .apw-acc-usage-labels,
.apw .apw-acc-usage-labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11.5px !important;
}

.cc-rpw .apw-acc-usage-labels span,
.apw .apw-acc-usage-labels span {
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.cc-rpw .apw-acc-usage-labels b,
.apw .apw-acc-usage-labels b {
  color: #eef0fa !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
}

.cc-rpw .apw-acc-progress,
.apw .apw-acc-progress {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.cc-rpw .apw-acc-bar,
.apw .apw-acc-bar {
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #4f9cf0, #8b5cf6) !important;
  transition: width 0.3s ease !important;
}

.cc-rpw .apw-acc-bar.low,
.apw .apw-acc-bar.low {
  background: linear-gradient(90deg, #f5b544, #ff7a7a) !important;
}

.cc-rpw .apw-acc-reset-note,
.apw .apw-acc-reset-note {
  font-size: 11px !important;
  color: #8b92af !important;
  margin-top: 2px !important;
  font-style: italic !important;
}

/* Footer / Sign out */
.cc-rpw .apw-acc-foot,
.apw .apw-acc-foot {
  padding-top: 10px !important;
}

:where(body, #page, .site, article, main) .cc-rpw button.apw-acc-signout,
:where(body, #page, .site, article, main) .apw button.apw-acc-signout,
.cc-rpw .apw-acc-signout,
.apw .apw-acc-signout {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  color: #dfe3ff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.cc-rpw .apw-acc-signout:hover,
.apw .apw-acc-signout:hover {
  background: rgba(255, 122, 122, 0.12) !important;
  border-color: rgba(255, 122, 122, 0.35) !important;
  color: #ff9e9e !important;
}

.cc-rpw .apw-acc-signout svg.i,
.apw .apw-acc-signout svg.i {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
}
