.auth-shell{
  min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;
  gap:60px;max-width:1180px;margin:0 auto;padding:40px 32px;
}
@media (max-width:900px){.auth-shell{grid-template-columns:1fr;padding-top:60px}}

.auth-brand{animation:rise .7s cubic-bezier(.2,.8,.2,1)}
.auth-logo{display:flex;align-items:center;gap:12px;font-size:17px;margin-bottom:26px;color:var(--txt)}
.auth-logo b{font-weight:700}
.auth-hero{font-size:clamp(32px,4.2vw,50px);line-height:1.15;font-weight:800;letter-spacing:-1px;margin:0 0 20px}
.auth-copy{color:var(--muted);max-width:460px;line-height:1.7;margin-bottom:28px}
.auth-points{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.auth-points li{color:var(--txt);opacity:0;transform:translateX(-14px);
  animation:slidein .5s forwards}
.auth-points li:nth-child(1){animation-delay:.15s}
.auth-points li:nth-child(2){animation-delay:.3s}
.auth-points li:nth-child(3){animation-delay:.45s}
@keyframes slidein{to{opacity:1;transform:none}}

.auth-card{padding:34px;max-width:420px;animation:rise .8s .1s cubic-bezier(.2,.8,.2,1) backwards;
  position:relative}
.auth-card::before{content:"";position:absolute;inset:-1px;border-radius:22px;padding:1px;
  background:linear-gradient(135deg,rgba(253,185,19,.55),transparent 40%,rgba(255,255,255,.25));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}

.auth-tabs{display:flex;gap:6px;background:rgba(255,255,255,.04);border:1px solid var(--stroke);
  border-radius:12px;padding:4px;margin-bottom:24px}
.auth-tab{flex:1;background:transparent;border:none;color:var(--muted);padding:10px 0;
  border-radius:9px;cursor:pointer;font-weight:600;font-size:14px;transition:.25s;font-family:inherit}
.auth-tab.active{background:linear-gradient(120deg,var(--accent),var(--accent2));color:#fff;
  box-shadow:0 6px 18px rgba(253,185,19,.3)}

.auth-form{display:flex;flex-direction:column;gap:16px}
.auth-form.hidden{display:none}
.auth-submit{width:100%;margin-top:6px}
.auth-msg{margin-top:16px;font-size:14px;min-height:20px;text-align:center}
.auth-msg.ok{color:var(--pos)}
.auth-msg.err{color:var(--neg)}

/* "internal tool, not affiliated" disclaimer — clarifies ownership so the site
   isn't mistaken for a brand's own page (helps avoid deceptive-site warnings) */
.disclaimer{margin-top:22px;padding-top:18px;border-top:1px solid var(--stroke);text-align:center}
.disclaimer-pill{display:inline-flex;align-items:center;gap:7px;
  font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;
  color:var(--muted);background:rgba(255,255,255,.04);
  border:1px solid var(--stroke);border-radius:999px;padding:6px 12px}
.disclaimer-pill .logo-icon-xs{width:15px;height:15px;display:inline-flex}
.disclaimer-pill .logo-icon-xs svg{width:15px;height:15px}
.disclaimer-sep{color:var(--accent);font-weight:700}
.disclaimer-text{margin:10px auto 0;max-width:340px;font-size:11.5px;line-height:1.55;color:var(--muted)}

/* shared shell for logged-in secondary pages (profile/history) */
.page-nav{display:flex;justify-content:space-between;align-items:center;max-width:1040px;
  margin:0 auto;padding:22px 24px 0}
.page-nav .links{display:flex;gap:8px}
.page-nav a{color:var(--muted);text-decoration:none;font-size:14px;padding:9px 16px;
  border-radius:10px;transition:.2s;border:1px solid transparent}
.page-nav a:hover,.page-nav a.active{color:var(--txt);background:rgba(255,255,255,.06);
  border-color:var(--stroke)}
.section-title{font-size:26px;font-weight:800;margin:26px 0 6px}
.section-sub{color:var(--muted);margin-bottom:22px}

/* brand list — each brand is a subtle card row */
#brandList{display:flex;flex-direction:column;gap:10px}
.brand-row{display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:14px 16px;font-size:14px;border:1px solid var(--stroke);border-radius:14px;
  background:rgba(255,255,255,.03);transition:transform .18s,border-color .2s,background .2s}
.brand-row:hover{transform:translateX(3px);border-color:rgba(253,185,19,.35);
  background:rgba(253,185,19,.05)}
.brand-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand-info b{font-size:15px;letter-spacing:.2px}
.brand-url{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;max-width:420px}
.brand-actions{display:flex;gap:8px;flex-shrink:0}
.mini-btn{background:rgba(255,255,255,.06);border:1px solid var(--stroke);color:var(--txt);
  padding:7px 16px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:600;
  font-family:inherit;transition:.2s}
.mini-btn:hover{background:rgba(253,185,19,.16);border-color:rgba(253,185,19,.45);
  transform:translateY(-1px)}
.mini-btn.danger:hover{background:rgba(255,93,115,.16);border-color:rgba(255,93,115,.45);
  color:var(--neg)}
.brand-list-label{font-size:12px;color:var(--muted);text-transform:uppercase;
  letter-spacing:1px;margin-bottom:12px}
.save-msg{margin-left:12px;font-size:14px}

/* reddit session status pill */
.reddit-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.status-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;
  font-size:12.5px;font-weight:600;border:1px solid var(--stroke);background:rgba(255,255,255,.03)}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.status-pill.active{color:var(--pos);border-color:rgba(37,208,160,.4);background:rgba(37,208,160,.1)}
.status-pill.active .status-dot{background:var(--pos);box-shadow:0 0 8px var(--pos)}
.status-pill.expired{color:var(--neg);border-color:rgba(255,93,115,.4);background:rgba(255,93,115,.1)}
.status-pill.expired .status-dot{background:var(--neg);box-shadow:0 0 8px var(--neg)}
.status-pill.none{color:var(--muted)}
.status-pill.checking .status-dot{background:var(--accent);animation:pulse 1.2s infinite}

/* Brand Studio two-pane layout */
.studio{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}
@media (max-width:820px){.studio{grid-template-columns:1fr}}
.studio-list{padding:18px}
.studio-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.brand-pick{display:block;width:100%;text-align:left;background:rgba(255,255,255,.03);
  border:1px solid var(--stroke);color:var(--txt);padding:12px 14px;border-radius:11px;
  cursor:pointer;font-size:14px;font-weight:600;font-family:inherit;margin-bottom:8px;transition:.18s}
.brand-pick:hover{border-color:rgba(253,185,19,.4);background:rgba(253,185,19,.06);transform:translateX(3px)}
.brand-pick.active{border-color:var(--accent);background:rgba(253,185,19,.12);
  box-shadow:0 6px 18px rgba(253,185,19,.15)}
.studio-config{padding:26px;min-height:300px}
.studio-empty{color:var(--muted);text-align:center;padding:80px 0}
.config-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.cfg-title-input{font-size:22px;font-weight:800;background:transparent;border:none;
  border-bottom:2px solid var(--stroke);border-radius:0;padding:6px 2px;flex:1;max-width:60%}
.cfg-title-input:focus{border-bottom-color:var(--accent);box-shadow:none}

/* tag+rule cards */
.tag-card{border:1px solid var(--stroke);border-radius:14px;padding:16px;margin-bottom:14px;
  background:rgba(255,255,255,.02)}
.tag-card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.tag-label-input{flex:1;font-size:14px}
.tag-rule-input{width:100%;resize:vertical;line-height:1.55;font-size:14px}
.tag-card .chip{text-transform:capitalize}

/* per-user topic URL override box */
.my-topic-box{margin:18px 0 4px;padding:16px 18px;border-radius:14px;
  border:1px solid rgba(253,185,19,.25);background:rgba(253,185,19,.05)}
.my-topic-box .row{align-items:flex-end}
