/* ResearchProspect free tools: shared tool card ("RP shell"), 3 Nov 2026.
   Used by the Paraphrasing Tool first; summariser, humaniser and detector follow. All classes are prefixed rps-. */
:root { --rps-navy:#002147; --rps-orange:#EF6A23; --rps-orange-d:#d95a16; --rps-bg:#F3F6FA; --rps-line:#DDE4EE; --rps-ink:#1f2937; --rps-muted:#6b7280; --rps-chip:#EAF0F7; }

/* the old page-level tool sidebar is replaced by the switcher inside the card */
.sidebar-container-5634343 { display:none !important; }
.main-content-5634343 { max-width:100% !important; }

.rps-hero { background:var(--rps-bg); padding:34px 20px 22px; text-align:center; }
.rps-hero h1 { margin:0; color:var(--rps-navy); font-size:40px; line-height:1.2; font-weight:700; letter-spacing:-.4px; }
.rps-hero p { margin:10px auto 0; max-width:680px; color:#374151; font-size:17px; line-height:1.5; }
.rps-chips { list-style:none; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin:14px 0 0; padding:0; font-size:14px; color:var(--rps-navy); font-weight:500; }
.rps-chips li::before { content:"\2713\00a0"; color:#16a34a; font-weight:700; }

.rps-wrap { background:linear-gradient(var(--rps-bg) 0 190px, #fff 190px); padding:0 20px 36px; }
.rps-card { max-width:1180px; margin:0 auto; background:#fff; border:1px solid var(--rps-line); border-radius:14px; box-shadow:0 8px 30px rgba(0,33,71,.08); display:flex; overflow:hidden; text-align:left; }
.rps-rail { width:64px; flex:0 0 64px; background:#F8FAFC; border-right:1px solid var(--rps-line); display:flex; flex-direction:column; align-items:center; padding:14px 0; gap:10px; }
.rps-rail a { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--rps-line); position:relative; text-decoration:none; }
.rps-rail a img { width:26px; height:26px; object-fit:contain; }
.rps-rail a.on { border-color:var(--rps-navy); box-shadow:0 0 0 2px var(--rps-navy) inset; }
.rps-rail a span { position:absolute; left:48px; top:50%; transform:translateY(-50%); background:var(--rps-navy); color:#fff; font-size:12.5px; padding:4px 8px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .15s; z-index:5; }
.rps-rail a:hover span, .rps-rail a:focus span { opacity:1; }
.rps-main { flex:1; min-width:0; display:flex; flex-direction:column; }

.rps-bar { display:flex; align-items:center; gap:18px; padding:0 18px; border-bottom:1px solid var(--rps-line); min-height:54px; flex-wrap:wrap; }
.rps-lang { display:inline-flex; border:1px solid var(--rps-line); border-radius:20px; overflow:hidden; flex:0 0 auto; }
.rps-lang button { border:0; background:#fff; padding:6px 12px; font-size:13.5px; color:var(--rps-muted); font-weight:500; cursor:pointer; }
.rps-lang button.on { background:var(--rps-navy); color:#fff; }
.rps-tabs { display:flex; align-items:center; gap:2px; }
.rps-tabs-label { font-size:14px; color:var(--rps-muted); font-weight:600; margin-right:6px; }
.rps-tabs button { border:0; background:none; padding:16px 10px 13px; font-size:14.5px; color:#374151; border-bottom:3px solid transparent; cursor:pointer; white-space:nowrap; }
.rps-tabs button.on { color:var(--rps-navy); font-weight:600; border-bottom-color:var(--rps-orange); }
.rps-tabs button:hover { color:var(--rps-navy); }
.rps-syn { margin:0 0 0 auto; display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--rps-muted); font-weight:400; }
.rps-syn input { accent-color:var(--rps-orange); width:120px; }

.rps-msg { display:none; margin:0; padding:10px 18px; font-size:14px; border-bottom:1px solid var(--rps-line); }
.rps-msg.err { display:block; background:#FEF3F2; color:#B42318; }
.rps-msg.ok { display:block; background:#ECFDF3; color:#1b6b35; }

.rps-mtabs { display:none; }
.rps-panes { display:grid; grid-template-columns:1fr 1fr; flex:1; }
.rps-pane { display:flex; flex-direction:column; min-width:0; position:relative; }
.rps-pane + .rps-pane { border-left:1px solid var(--rps-line); }
.rps-edit { position:relative; flex:1; display:flex; }
.rps-edit textarea { flex:1; width:100%; min-height:380px; border:0; outline:0; resize:none; padding:18px 20px; font:inherit; font-size:16px; line-height:1.65; color:var(--rps-ink); background:transparent; }
.rps-edit textarea::placeholder { color:#9ca3af; }
.rps-empty { position:absolute; left:0; right:0; top:84px; display:flex; gap:10px; justify-content:center; pointer-events:none; }
.rps-empty button { pointer-events:auto; }
.rps-pill { border:1.5px solid var(--rps-navy); color:var(--rps-navy); background:#fff; border-radius:22px; padding:8px 16px; font-size:14.5px; font-weight:600; cursor:pointer; }
.rps-pill.ghost { border-color:var(--rps-line); color:#374151; font-weight:500; }
.rps-pill:hover { background:var(--rps-chip); }
.rps-result { flex:1; min-height:380px; max-height:620px; overflow:auto; padding:18px 20px; font-size:16px; line-height:1.65; color:var(--rps-ink); white-space:pre-wrap; word-wrap:break-word; }
.rps-out-empty { height:100%; min-height:300px; display:flex; align-items:center; justify-content:center; text-align:center; color:#9ca3af; font-size:15px; white-space:normal; }
.rps-chg { background:#FFF1E6; border-bottom:2px solid #F6B88F; border-radius:2px; }
.rps-shimmer { display:block; height:14px; margin:12px 0; border-radius:7px; background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 50%,#eef2f7 75%); background-size:200% 100%; animation:rps-sh 1.2s infinite linear; }
@keyframes rps-sh { from { background-position:200% 0; } to { background-position:-200% 0; } }

.rps-foot { display:flex; align-items:center; gap:12px; padding:11px 16px; border-top:1px solid var(--rps-line); min-height:62px; flex-wrap:wrap; }
.rps-count { font-size:13.5px; color:var(--rps-muted); white-space:nowrap; }
.rps-count b { color:var(--rps-navy); font-weight:600; }
.rps-count.over b { color:#B42318; }
.rps-link { border:0; background:none; padding:4px 2px; font-size:14px; color:var(--rps-navy); font-weight:500; cursor:pointer; white-space:nowrap; }
.rps-link:hover { text-decoration:underline; }
.rps-go { margin-left:auto; background:var(--rps-orange); color:#fff; border:0; border-radius:24px; padding:11px 26px; font-weight:700; font-size:15.5px; cursor:pointer; white-space:nowrap; }
.rps-go:hover { background:var(--rps-orange-d); }
.rps-go:disabled { opacity:.6; cursor:default; }
.rps-icons { margin-left:auto; display:flex; gap:6px; position:relative; }
.rps-ic { border:1px solid var(--rps-line); border-radius:8px; padding:7px 11px; font-size:13px; color:var(--rps-navy); background:#fff; font-weight:500; white-space:nowrap; cursor:pointer; }
.rps-ic:disabled { opacity:.45; cursor:default; }
.rps-ic:not(:disabled):hover { background:var(--rps-chip); }
.rps-menu { position:absolute; right:0; bottom:40px; background:#fff; border:1px solid var(--rps-line); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:6px; display:none; z-index:20; min-width:150px; }
.rps-menu.open { display:block; }
.rps-menu button { display:block; width:100%; text-align:left; border:0; background:none; padding:8px 10px; font-size:14px; color:var(--rps-ink); border-radius:6px; cursor:pointer; }
.rps-menu button:hover { background:var(--rps-chip); }

.rps-offer { max-width:1180px; margin:14px auto 0; display:flex; align-items:center; gap:16px; border:1px solid #F6C9A8; background:#FFF8F2; border-radius:12px; padding:14px 18px; text-align:left; }
.rps-offer[hidden] { display:none; }
.rps-offer .t { flex:1; font-size:15px; color:#374151; line-height:1.5; }
.rps-offer .t strong { color:var(--rps-navy); }
.rps-offer .code { font-size:13px; color:var(--rps-muted); white-space:nowrap; }
.rps-offer .code b { color:var(--rps-orange); letter-spacing:.5px; }
.rps-offer a.cta { background:var(--rps-navy); color:#fff; border-radius:22px; padding:10px 18px; font-weight:600; font-size:14.5px; white-space:nowrap; text-decoration:none; }
.rps-offer a.cta:hover { background:#0b3366; color:#fff; }
.rps-note { max-width:1180px; margin:12px auto 0; font-size:14px; color:#4b5563; text-align:center; }
.rps-note button { border:0; background:none; padding:0; color:var(--rps-navy); font-weight:600; text-decoration:underline; cursor:pointer; font-size:inherit; }
.rps-mbar { display:none; }
.rps-chatbtn { display:none; }

/* ---------- phones ---------- */
@media (max-width:700px) {
  .rps-hero { padding:18px 16px 14px; }
  .rps-hero h1 { font-size:27px; }
  .rps-hero p { font-size:15px; margin-top:6px; }
  .rps-chips { gap:4px 12px; font-size:12.5px; margin-top:10px; }
  .rps-wrap { padding:0 12px 24px; background:linear-gradient(var(--rps-bg) 0 110px, #fff 110px); }
  .rps-rail, .rps-syn, .rps-tabs-label { display:none; }
  .rps-bar { gap:0; padding:0; min-height:0; }
  .rps-lang { margin:10px 12px 2px; }
  .rps-tabs { width:100%; overflow-x:auto; padding:0 6px; scrollbar-width:none; }
  .rps-tabs::-webkit-scrollbar { display:none; }
  .rps-tabs button { padding:12px 7px 10px; font-size:14px; }
  .rps-mtabs { display:flex; border-bottom:1px solid var(--rps-line); }
  .rps-mtabs button { flex:1; border:0; background:none; padding:11px 0; font-size:14.5px; color:var(--rps-muted); border-bottom:3px solid transparent; }
  .rps-mtabs button.on { color:var(--rps-navy); font-weight:600; border-bottom-color:var(--rps-navy); }
  .rps-panes { grid-template-columns:1fr; }
  .rps-pane + .rps-pane { border-left:0; }
  .rps-card[data-pane="in"] .rps-pane.rps-outp, .rps-card[data-pane="out"] .rps-pane.rps-inp { display:none; }
  .rps-edit textarea { min-height:260px; font-size:16px; padding:14px 16px; }
  .rps-empty { top:70px; }
  .rps-result { min-height:260px; max-height:none; padding:14px 16px; }
  .rps-out-empty { min-height:220px; }
  .rps-inp .rps-go, .rps-inp .rps-count { display:none; }
  .rps-foot { padding:8px 12px; min-height:52px; }
  .rps-offer { flex-wrap:wrap; padding:14px; gap:10px; }
  .rps-offer a.cta { width:100%; text-align:center; }
  .rps-note { font-size:13px; }
  .rps-mbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:9990; background:#fff; border-top:1px solid var(--rps-line); padding:10px 14px calc(10px + env(safe-area-inset-bottom)); align-items:center; gap:10px; box-shadow:0 -4px 16px rgba(0,0,0,.06); }
  .rps-mbar .rps-go { padding:11px 24px; }
  body.rps-has-mbar { padding-bottom:72px; }
  /* WhatsApp + Live Chat: one chat button inside the action bar; tapping it shows the two options above the bar */
  body.rps-has-mbar #rp-chat-stack { display:none !important; }
  body.rps-has-mbar #rp-chat-stack.open { display:flex !important; bottom:84px !important; right:14px !important; align-items:flex-end; }
  .rps-chatbtn { display:flex; width:44px; height:44px; flex:0 0 44px; border-radius:50%; border:1px solid var(--rps-line); background:#fff; align-items:center; justify-content:center; cursor:pointer; padding:0; margin-left:auto; }
  .rps-mbar .rps-chatbtn + .rps-go { margin-left:0; }
  /* pages without an action bar (AI Detector): one floating chat button */
  body.rps-chat-float #rp-chat-stack { display:none !important; }
  body.rps-chat-float #rp-chat-stack.open { display:flex !important; bottom:80px !important; right:14px !important; align-items:flex-end; }
  .rps-chatbtn.float { position:fixed; right:14px; bottom:18px; z-index:9991; width:52px; height:52px; flex-basis:52px; background:var(--rps-navy); border:0; box-shadow:0 4px 12px rgba(0,0,0,.22); }
  .rps-chatbtn.float svg { fill:#fff !important; }
  .rps-chatbtn svg { width:22px; height:22px; fill:var(--rps-navy); }
}

/* ---------- AI Detector: same look, its own tool inside (3 Nov 2026) ---------- */
.ai-detector-header h1 { font-family:inherit !important; color:var(--rps-navy) !important; font-size:40px !important; font-weight:700 !important; letter-spacing:-.4px; margin:0 !important; }
.ai-detector-header p { color:#374151 !important; font-size:17px !important; margin:10px auto 0 !important; }
.ai-detector-header .rps-chips { margin-bottom:22px; }
.rps-card-det { margin-top:4px; }
.rps-card-det .quillbot-detector-card { border:0 !important; box-shadow:none !important; border-radius:0 !important; margin:0 !important; flex:1; min-width:0; }
@media (max-width:700px) {
  .ai-detector-header h1 { font-size:27px !important; }
  .ai-detector-header p { font-size:15px !important; }
  .rps-card-det .quillbot-detector-card { padding:14px !important; }
}
.container:has(> .ai-detector-header) { margin-top:28px !important; }
.ai-detector-header { padding-top:0 !important; padding-bottom:0 !important; margin-bottom:0 !important; }
@media (max-width:700px) {
  .container:has(> .ai-detector-header) { margin-top:16px !important; }
  #languageTabs { flex-wrap:nowrap !important; overflow-x:auto; scrollbar-width:none; }
  #languageTabs::-webkit-scrollbar { display:none; }
  #languageTabs .nav-link { white-space:nowrap; }
}
