/* portal-hub.css - the card-home ("hub") styles shared by every portal hub: the Website Editor home (portal-website.js)
   and the SEO / AIO / GEO home (portal-seo-hub.js). One copy. Loaded by BOTH portals. */
.ws-hub{max-width:1040px;margin:0 auto;padding:18px 4px 28px;color:var(--ppw-ink,var(--foreground,#1d1d24))}
.ws-hub__h{margin:0 0 4px;font-size:1.35rem;font-weight:600;line-height:1.2}
.ws-hub__sub{margin:0 0 18px;font-size:.9rem;color:var(--ppw-mute,var(--muted-foreground,#77778a))}
.ws-hub__note{margin:0 0 16px;padding:10px 12px;border-radius:10px;background:rgba(201,138,27,.12);font-size:.86rem}
.ws-hub__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.ws-hub__card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:150px;padding:18px;border:1px solid var(--ppw-line,var(--border,#e2e2e8));border-radius:14px;background:var(--card,#fff);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .12s,box-shadow .12s,transform .12s}
.ws-hub__card:hover{border-color:var(--ppw-mute,var(--muted-foreground,#77778a));box-shadow:0 6px 20px rgba(0,0,0,.08);transform:translateY(-1px)}
.ws-hub__card:focus-visible{outline:2px solid var(--ppw-ink,var(--foreground,#1d1d24));outline-offset:2px}
.ws-hub__ico{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:rgba(0,0,0,.06)}
.ws-hub__ico svg{width:22px;height:22px}
.ws-hub__t{font-size:1.02rem;font-weight:600}
.ws-hub__d{font-size:.84rem;line-height:1.45;color:var(--ppw-mute,var(--muted-foreground,#77778a))}
.ws-hub__go{margin-top:auto;font-size:.82rem;font-weight:600}
.ws-hub__ghost{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:150px;padding:18px;border:1px solid var(--ppw-line,var(--border,#e2e2e8));border-radius:14px;background:var(--card,#fff)}
.ws-hub__bar{display:block;height:12px;width:42%;border-radius:6px;background:rgba(0,0,0,.08)}
/* a tile = a card that is a setting, not a door: same box, no hover lift, nothing to open */
.ws-hub__tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:150px;padding:18px;border:1px solid var(--ppw-line,var(--border,#e2e2e8));border-radius:14px;background:var(--card,#fff);color:inherit}
.ws-hub__go--switch{margin-top:auto;font-weight:400}
.ws-switch{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:.9rem;font-weight:600}
.ws-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.ws-switch__track{position:relative;flex:none;width:40px;height:22px;border-radius:11px;background:rgba(0,0,0,.22);transition:background .15s}
.ws-switch__track::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.ws-switch input:checked+.ws-switch__track{background:var(--ppw-accent,var(--primary,#2f7d4f))}
.ws-switch input:checked+.ws-switch__track::after{transform:translateX(18px)}
.ws-switch input:focus-visible+.ws-switch__track{outline:2px solid var(--ppw-ink,var(--foreground,#1d1d24));outline-offset:2px}
.ws-switch input:disabled+.ws-switch__track{opacity:.5}
.ws-hub__err{color:var(--danger,#b42318)}
.ws-hub__bar--long{width:86%;height:10px}.ws-hub__bar--mid{width:62%;height:10px}
.ws-hub--loading .ws-hub__ghost{animation:wsHubPulse 1.3s ease-in-out infinite}
@keyframes wsHubPulse{0%,100%{opacity:1}50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.ws-hub--loading .ws-hub__ghost{animation:none}}
.ws-sb-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.ws-sb-home{padding:4px 0;border:0;background:none;color:inherit;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.ws-sb-home:hover{text-decoration:underline;text-underline-offset:3px}
.ws-sb-area{font-size:12px;color:var(--ppw-mute,var(--muted-foreground,#77778a));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the cards are not about any one page: the live preview steps aside, as it does for the media library */
.ws-preview-shell[data-kind="website"][data-hub="1"]{grid-template-columns:minmax(0,1fr)!important}
.ws-preview-shell[data-kind="website"][data-hub="1"] .ws-right,.ws-preview-shell[data-kind="website"][data-hub="1"] #wsSeg{display:none!important}
@media (max-width:720px){.ws-hub{padding:8px 0 20px}.ws-hub__grid{grid-template-columns:1fr;gap:10px}.ws-hub__card,.ws-hub__ghost,.ws-hub__tile{min-height:0;padding:14px}}
/* ── SEO / AIO / GEO home (portal-seo-hub.js): status pills, score bar, rows ── */
.seo-hub__row{margin-bottom:14px}
.seo-hub__extra{display:block;width:100%}
.seo-hub__alert{font-size:.82rem;font-weight:600;color:#b42318}
.seo-hub__pill{display:block}
.seo-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:600;line-height:1.4;border:1px solid transparent;white-space:nowrap}
.seo-pill__dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor}
.seo-pill--connected,.seo-pill--measuring{color:#067647;background:rgba(6,118,71,.1);border-color:rgba(6,118,71,.25)}
.seo-pill--needs_reconnect{color:#b54708;background:rgba(181,71,8,.1);border-color:rgba(181,71,8,.28)}
.seo-pill--not_set_up,.seo-pill--soon{color:var(--ppw-mute,var(--muted-foreground,#77778a));background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.12)}
.seo-bar{display:block;width:100%;height:10px;border-radius:5px;background:rgba(0,0,0,.09);overflow:hidden}
.seo-bar>span{display:block;height:100%;border-radius:5px;background:#067647}
.seo-home-btn{font-weight:700}
