:root {
    color-scheme: light;
    --ink: #10172a;
    --muted: #6e768b;
    --line: #e2e7ef;
    --surface: #ffffff;
    --canvas: #f4f6fa;
    --navy: #090e1b;
    --navy-2: #111a31;
    --blue: #4f6cff;
    --blue-dark: #314cd7;
    --lime: #b8f24a;
    --purple: #8b6cff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-decoration: none;
}

.brand-light { color: #fff; }
.brand-logo { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 7px 18px rgba(79, 108, 255, .32); }
.brand-name { font-size: .95rem; letter-spacing: .08em; }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-light .brand-name em { color: var(--lime); }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; gap: 2px; width: 25px; height: 25px; padding: 5px; overflow: hidden; background: var(--blue); border-radius: 8px; box-shadow: 0 7px 18px rgba(79, 108, 255, .32); }
.brand-mark i { display: block; width: 4px; background: #fff; border-radius: 3px; transform: rotate(16deg); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #59d98e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(89, 217, 142, .12); }

/* Sign in */
.auth-view { color: #fff; background: var(--navy); }
.auth-shell { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 77% 42%, rgba(79, 108, 255, .19), transparent 30%), radial-gradient(circle at 30% 94%, rgba(184, 242, 74, .08), transparent 28%), linear-gradient(150deg, #080d19 0%, #0c1324 62%, #0b1120 100%); }
.auth-shell::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.auth-nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-note { color: #8d98b4; font-size: .78rem; }
.auth-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; width: min(1240px, calc(100% - 48px)); min-height: calc(100vh - 80px); margin: 0 auto; padding: 68px 0 100px; }
.auth-copy { max-width: 680px; }
.hero-kicker, .page-kicker, .progress-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker { color: var(--lime); }
.hero-kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.auth-copy h1 { max-width: 750px; margin: 20px 0 24px; font-size: clamp(3rem, 5.9vw, 5.7rem); line-height: .96; letter-spacing: -.065em; }
.auth-copy > p { max-width: 630px; margin: 0 0 34px; color: #9da8c0; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.connect-button { display: inline-flex; align-items: center; gap: 13px; min-height: 58px; padding: 8px 12px 8px 9px; color: #0d1526; font-weight: 800; background: #fff; border: 0; border-radius: 15px; box-shadow: 0 18px 50px rgba(0,0,0,.27); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.connect-button:hover { transform: translateY(-2px); box-shadow: 0 23px 60px rgba(0,0,0,.37); }
.google-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: #4285f4; font-size: 1.2rem; font-weight: 900; background: #f3f5f8; border-radius: 11px; }
.button-arrow { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 8px; color: #fff; background: var(--blue); border-radius: 10px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 24px; color: #707c97; font-size: .75rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--lime); }
.auth-visual { position: relative; min-height: 540px; }
.visual-glow { position: absolute; inset: 10% 4%; filter: blur(1px); background: radial-gradient(circle, rgba(79,108,255,.2), transparent 67%); border: 1px solid rgba(116,140,255,.14); border-radius: 50%; }
.floating-card { position: absolute; color: #eef2ff; background: rgba(20,29,52,.82); border: 1px solid rgba(153,170,225,.18); border-radius: 24px; box-shadow: 0 35px 80px rgba(0,0,0,.36); backdrop-filter: blur(18px); }
.card-main { z-index: 2; top: 70px; right: 35px; width: min(420px, 82%); padding: 25px; transform: rotate(-1.8deg); }
.mini-head { display: flex; align-items: center; gap: 10px; color: #a9b5d0; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.mini-head b { margin-left: auto; padding: 5px 9px; color: #bdf45e; font-size: .61rem; background: rgba(184,242,74,.1); border-radius: 99px; }
.mini-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #b8f24a; background: rgba(184,242,74,.1); border-radius: 9px; }
.score-ring { display: grid; place-items: center; width: 158px; height: 158px; margin: 31px auto; background: radial-gradient(circle at center, #151f38 58%, transparent 59%), conic-gradient(var(--lime) 0 84%, rgba(255,255,255,.08) 84%); border-radius: 50%; }
.score-ring strong { margin-top: 21px; font-size: 2.7rem; line-height: 1; letter-spacing: -.05em; }
.score-ring span { margin-top: -27px; color: #7f8aa4; font-size: .65rem; text-transform: uppercase; }
.mini-list { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 0; color: #aab4cb; font-size: .78rem; border-top: 1px solid rgba(255,255,255,.07); }
.mini-list i { width: 8px; height: 8px; background: var(--blue); border-radius: 3px; }
.mini-list:nth-child(4) i { background: var(--purple); }
.mini-list:nth-child(5) i { background: var(--lime); }
.mini-list b { color: #fff; }
.card-small { z-index: 3; display: grid; gap: 5px; padding: 17px 20px; border-radius: 17px; }
.card-small span { color: #7f8ba4; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.card-small strong { font-size: .9rem; }
.card-top { top: 32px; left: 10px; transform: rotate(4deg); }
.card-bottom { right: 0; bottom: 79px; transform: rotate(3deg); }

/* App chrome */
.app-header { position: sticky; z-index: 20; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 max(28px, calc((100% - 1320px) / 2)); background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(218,224,234,.82); backdrop-filter: blur(18px); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.connection-pill { color: #6c7588; font-size: .75rem; font-weight: 650; }
.ghost-button, .back-button { padding: 9px 13px; color: #5f687b; font-size: .75rem; font-weight: 750; background: transparent; border: 1px solid #dce2eb; border-radius: 10px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ghost-button:hover, .back-button:hover { color: var(--ink); background: #f6f8fb; border-color: #cbd3df; }
.global-alert { width: min(1180px, calc(100% - 40px)); margin: 20px auto 0; padding: 13px 16px; color: #874424; background: #fff4e8; border: 1px solid #f2d6b9; border-radius: 12px; }

/* Projects */
.projects-shell, .workflow-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 74px 0 90px; }
.projects-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.projects-hero h1, .project-focus h1 { margin: 12px 0 12px; font-size: clamp(2.35rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.06em; }
.projects-hero p, .project-focus p { margin: 0; color: var(--muted); font-size: 1rem; }
.project-count { position: relative; display: flex; align-items: center; gap: 18px; min-width: 276px; padding: 18px 21px; background: var(--navy); border-radius: 18px; box-shadow: 0 18px 35px rgba(13,20,37,.13); }
.project-count > span { display: grid; gap: 2px; }
.project-count strong { color: #fff; font-size: 1.55rem; line-height: 1; }
.project-count small { color: #7f8aa2; font-size: .61rem; white-space: nowrap; }
.project-count > i { width: 1px; height: 32px; background: rgba(255,255,255,.11); }
.project-count > em { position: absolute; right: 15px; bottom: -9px; padding: 4px 7px; color: #1a280b; font-size: .51rem; font-style: normal; font-weight: 850; background: var(--lime); border-radius: 6px; }
.project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 47px 0 20px; }
.project-toolbar-side { display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(430px, 100%); padding: 0 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 25px rgba(22,31,52,.04); }
.search-box span { color: #8b94a7; font-size: 1.3rem; }
.search-box input { width: 100%; height: 48px; color: var(--ink); background: transparent; border: 0; outline: none; }
.search-box input::placeholder { color: #9da4b2; }
.toolbar-note { color: #9098a8; font-size: .75rem; }
.view-switch { display: inline-flex; gap: 3px; padding: 4px; background: #e9edf3; border-radius: 11px; }
.view-switch button { display: grid; place-items: center; width: 34px; height: 31px; color: #8993a5; font-size: .95rem; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.view-switch button.is-active { color: var(--ink); background: #fff; box-shadow: 0 4px 10px rgba(26,35,56,.09); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-form { min-width: 0; }
.project-card { position: relative; display: grid; gap: 17px; width: 100%; min-height: 174px; padding: 20px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 24px rgba(31,42,68,.035); cursor: pointer; transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease; }
.project-card:hover { z-index: 2; transform: translateY(-3px); border-color: #bac6ff; box-shadow: 0 18px 45px rgba(39,57,112,.11); }
.project-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; min-width: 0; }
.favicon-wrap { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; overflow: hidden; background: #f2f4f8; border: 1px solid #e2e6ed; border-radius: 15px; }
.favicon-wrap img { position: relative; z-index: 2; width: 28px; height: 28px; object-fit: contain; }
.favicon-fallback { position: absolute; z-index: 1; color: #7b8599; font-size: 1rem; font-weight: 850; }
.favicon-wrap.is-fallback img { display: none; }
.project-info { display: grid; gap: 4px; min-width: 0; }
.project-info strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.project-info small { overflow: hidden; color: #8b94a5; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.permission-badge { padding: 6px 8px; color: #62708b; font-size: .61rem; font-weight: 750; background: #f1f4f9; border-radius: 8px; }
.card-arrow { display: grid; place-items: center; width: 31px; height: 31px; color: #8e98aa; background: #f7f8fb; border-radius: 9px; transition: color .2s, background .2s; }
.project-card:hover .card-arrow { color: #fff; background: var(--blue); }
.project-status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.project-status { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; padding: 6px 9px; color: #687287; font-size: .58rem; font-weight: 850; background: #f1f3f7; border-radius: 8px; }
.project-status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 3px rgba(100,112,135,.09); }
.project-status.status-ready { color: #345ee8; background: #eef2ff; }
.project-status.status-progress { color: #815cd0; background: #f2edff; }
.project-status.status-complete { color: #337852; background: #eaf8ef; }
.project-status.status-data { color: #9a6c22; background: #fff6df; }
.project-progress-copy { min-width: 0; overflow: hidden; color: #8a93a5; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.project-progress-copy strong { margin-right: 4px; color: var(--ink); font-size: .72rem; }
.project-progress-track { display: block; height: 5px; overflow: hidden; background: #e9edf3; border-radius: 99px; }
.project-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: inherit; }
.project-form[data-project-status="complete"] .project-progress-track i { background: linear-gradient(90deg, #58d18c, var(--lime)); }
.project-progress-track.is-empty i { width: 0 !important; }
.project-analysis-count { margin-top: -8px; color: #818ba0; font-size: .55rem; font-weight: 700; }
.projects-grid.is-list-view { grid-template-columns: 1fr; }
.projects-grid.is-list-view .project-card { grid-template-columns: minmax(280px, 1.25fr) minmax(260px, .9fr); align-items: center; min-height: 112px; padding: 17px 20px; }
.projects-grid.is-list-view .project-card-head { grid-row: span 2; }
.projects-grid.is-list-view .project-status-row { align-self: end; }
.projects-grid.is-list-view .project-progress-track { align-self: start; }
.projects-grid.is-list-view .project-analysis-count { position: absolute; right: 20px; bottom: 9px; }
.empty-state, .no-results { padding: 50px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfd6e1; border-radius: 20px; }
.no-results { margin-top: 20px; }

/* Projects: piani attivi in evidenza, il resto compatto */
.projects-shell { padding-top: 48px; }
.projects-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 34px; }
.projects-top h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.045em; }
.projects-top .search-box { flex: 0 1 340px; }
.project-section + .project-section { margin-top: 40px; }
.project-section h2 { display: flex; align-items: baseline; gap: 9px; margin: 0 0 14px; font-size: 1rem; letter-spacing: -.02em; }
.project-section h2 small { color: #9199aa; font-size: .75rem; font-weight: 700; }
.active-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.active-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px 15px; width: 100%; padding: 20px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 24px rgba(31,42,68,.05); cursor: pointer; transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease; }
.active-card:hover { transform: translateY(-3px); border-color: #bac6ff; box-shadow: 0 18px 45px rgba(39,57,112,.11); }
.active-info { display: grid; gap: 7px; min-width: 0; }
.active-info > strong { overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.active-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.active-meta small { color: #7c8699; font-size: .74rem; }
.active-card .project-status { font-size: .66rem; }
.active-cta { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; background: var(--navy); border-radius: 11px; transition: background .2s; }
.active-card:hover .active-cta { background: var(--blue); }
.active-card .project-progress-track { grid-column: 1 / -1; }
.active-card .project-progress-track i { width: 0; transition: width .4s ease; }
/* Anello dell'avanzamento attorno al logo */
.ring { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-bg { fill: none; stroke: #e9edf3; stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-progress .ring-fg { stroke: #815cd0; }
.ring-ready .ring-fg { stroke: #345ee8; }
.ring-complete .ring-fg { stroke: #46b874; }
.ring .favicon-wrap { width: 42px; height: 42px; border-radius: 50%; }
.ring .favicon-wrap img { width: 22px; height: 22px; }
.ring-pct { position: absolute; right: -6px; bottom: -4px; min-width: 30px; padding: 2px 5px; color: #fff; font-size: .62rem; font-weight: 800; line-height: 1.2; text-align: center; background: #815cd0; border: 2px solid #fff; border-radius: 999px; }
.ring-ready .ring-pct { background: #345ee8; }
.ring-complete .ring-pct { background: #46b874; }
.active-card:hover .ring-fg { stroke-width: 6; }
.fresh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 9px; }
.fresh-tile { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.fresh-tile:hover { border-color: #bac6ff; box-shadow: 0 10px 26px rgba(39,57,112,.09); }
.fresh-tile .favicon-wrap { width: 36px; height: 36px; border-radius: 10px; }
.fresh-tile .favicon-wrap img { width: 20px; height: 20px; }
.fresh-tile .favicon-fallback { font-size: .8rem; }
.fresh-tile strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.fresh-tile .tile-name { display: grid; min-width: 0; line-height: 1.25; }
.fresh-tile .tile-name small { color: #7a8497; font-size: .7rem; font-weight: 500; }
.fresh-tile .tile-name small:empty { display: none; }
.fresh-tile .card-arrow { width: 26px; height: 26px; }
.fresh-tile:hover .card-arrow { color: #fff; background: var(--blue); }

/* Workflow */
.workflow-shell { max-width: 1120px; padding-top: 34px; }
.workflow-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.workflow-topline form { margin: 0; }
.workspace-label { color: #9aa2b2; font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.project-focus { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px; margin-bottom: 28px; }
.favicon-large { width: 68px; height: 68px; border-radius: 20px; box-shadow: 0 10px 25px rgba(24,37,68,.08); }
.favicon-large img { width: 38px; height: 38px; }
.project-focus h1 { margin: 6px 0 5px; font-size: clamp(2rem, 4vw, 3.6rem); }
.secure-badge { padding: 9px 12px; color: #318c5f; font-size: .67rem; font-weight: 750; background: #eaf8f0; border-radius: 99px; }
.workflow-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 24px 70px rgba(25,36,60,.08); }
.workflow-steps { display: flex; align-items: center; gap: 4px; padding: 16px 22px; background: #fbfcfe; border-bottom: 1px solid #e8ecf2; }
.workflow-step { display: flex; flex: 0 1 auto; align-items: center; gap: 9px; min-width: 0; padding: 7px 11px 7px 7px; border: 1px solid transparent; border-radius: 12px; transition: background .2s, border-color .2s; }
.workflow-step .step-index { flex: none; }
.step-index { display: grid; place-items: center; width: 28px; height: 28px; color: #8a93a5; font-size: .62rem; font-weight: 850; background: #fff; border: 1px solid #dfe4ec; border-radius: 9px; }
.workflow-step.is-active { background: #f1f4ff; border-color: #d9e0ff; }
.workflow-step.is-active .step-index { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 14px rgba(79,108,255,.25); }
.workflow-step.is-complete .step-index { color: #18301c; background: var(--lime); border-color: var(--lime); font-size: 0; }
.workflow-step.is-complete .step-index::after { content: "✓"; font-size: .78rem; }
.workflow-step div { display: grid; gap: 1px; min-width: 0; }
.workflow-step strong { color: #9aa2b2; font-size: .76rem; white-space: nowrap; }
.workflow-step.is-active strong, .workflow-step.is-complete strong { color: #1a2233; }
.workflow-step small { color: #9aa2b2; font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workflow-step.is-active small { color: var(--blue-dark); font-weight: 700; }
.step-line { flex: 1 1 12px; min-width: 8px; height: 2px; background: #e3e7ef; border-radius: 2px; }
.workflow-step.is-complete + .step-line { background: #cfe9a0; }
.workflow-progress { display: grid; justify-items: center; min-height: 480px; padding: 74px 35px 65px; text-align: center; }
.activity-orb { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 30px; background: radial-gradient(circle, #fff 42%, transparent 43%), conic-gradient(from 30deg, var(--blue), var(--purple), var(--lime), var(--blue)); border-radius: 50%; animation: orb-float 2.4s ease-in-out infinite; }
.activity-orb::before { content: ""; position: absolute; inset: -18px; background: radial-gradient(circle, rgba(79,108,255,.18), transparent 68%); border-radius: 50%; }
.activity-orb span { position: relative; z-index: 2; width: 18px; height: 18px; background: var(--navy); border-radius: 6px; transform: rotate(45deg); }
.activity-orb i { position: absolute; inset: -5px; border: 1px solid rgba(79,108,255,.22); border-radius: 50%; animation: ring 2.2s linear infinite; }
@keyframes orb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ring { to { transform: rotate(360deg); } }
.workflow-progress h2 { max-width: 650px; margin: 11px 0 10px; font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.workflow-progress > p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.6; }
.progress-track { width: min(440px, 100%); height: 7px; margin: 30px 0 10px; overflow: hidden; background: #e9edf3; border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: inherit; transition: width .35s ease; }
.workflow-progress > small { color: #8d95a5; font-size: .68rem; }
.connect-puter-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; padding: 14px 18px; color: #fff; font-weight: 800; background: var(--navy); border: 0; border-radius: 13px; box-shadow: 0 13px 30px rgba(11,17,32,.18); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.connect-puter-button:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(11,17,32,.26); }
.puter-spark { color: var(--lime); }
.plan-view { padding: 40px 44px 54px; }
.plan-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding-bottom: 27px; border-bottom: 1px solid #e7ebf1; }
.plan-ready { display: inline-flex; align-items: center; gap: 7px; color: #318c5f; font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-ready i { width: 7px; height: 7px; background: #4fd18a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79,209,138,.13); }
.plan-header h2 { margin: 9px 0 5px; font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.05em; }
.plan-header p { margin: 0; color: var(--muted); }
.plan-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.plan-dashboard { display: grid; grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(110px, .65fr)); gap: 11px; margin: 28px 0 34px; }
.progress-card, .plan-stat { min-height: 124px; background: #f6f8fc; border: 1px solid #e7ebf2; border-radius: 18px; }
.progress-card { display: flex; align-items: center; gap: 19px; padding: 18px 20px; }
.progress-card > div:last-child { display: grid; gap: 5px; }
.progress-card > div:last-child > strong { font-size: .92rem; }
.progress-card p { margin: 0; color: #8a93a6; font-size: .68rem; }
.progress-ring { --progress: 0; display: grid; place-content: center; flex: 0 0 auto; width: 82px; height: 82px; text-align: center; background: radial-gradient(circle, #f6f8fc 59%, transparent 61%), conic-gradient(var(--blue) calc(var(--progress) * 1%), #e1e6f0 0); border-radius: 50%; }
.progress-ring strong { font-size: 1.14rem; line-height: 1; }
.progress-ring span { margin-top: 3px; color: #929bad; font-size: .48rem; text-transform: uppercase; }
.dashboard-label, .detail-label { display: block; color: #8a94a8; font-size: .59rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.plan-stat { display: grid; align-content: center; gap: 6px; padding: 18px; }
.plan-stat span { color: #858fa2; font-size: .64rem; line-height: 1.25; }
.plan-stat strong { font-size: 1.8rem; letter-spacing: -.05em; }
.task-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.task-toolbar > div:first-child { display: grid; gap: 7px; }
.task-toolbar > div:first-child > strong { font-size: .9rem; }
.task-filters { display: inline-flex; gap: 3px; padding: 4px; background: #eef1f6; border-radius: 11px; }
.task-filters button { padding: 7px 11px; color: #7c8699; font-size: .65rem; font-weight: 800; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.task-filters button.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 9px rgba(22,31,52,.08); }
.task-board { display: grid; gap: 25px; }
.horizon-group { display: grid; gap: 9px; }
.horizon-group > header { display: flex; justify-content: space-between; align-items: end; padding: 0 3px; }
.horizon-group > header div { display: flex; align-items: baseline; gap: 9px; }
.horizon-group > header span { font-size: 1rem; font-weight: 850; letter-spacing: -.02em; }
.horizon-group > header strong, .horizon-group > header small { color: #9199aa; font-size: .61rem; font-weight: 700; }
.horizon-tasks { display: grid; gap: 8px; }
.task-card { overflow: hidden; background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.task-card:hover, .task-card.is-open { border-color: #c4ceff; box-shadow: 0 12px 30px rgba(38,51,92,.07); }
.task-card.is-done { background: #fbfcfd; }
.task-card.is-saving { opacity: .58; }
.task-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 94px; padding: 15px 17px; }
.task-check { position: relative; display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.task-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-check span { display: grid; place-items: center; width: 25px; height: 25px; color: transparent; font-size: .72rem; font-weight: 900; background: #fff; border: 1.5px solid #cfd6e2; border-radius: 8px; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.task-check:hover span { border-color: var(--blue); transform: scale(1.06); }
.task-check input:focus-visible + span { outline: 3px solid rgba(79,108,255,.2); outline-offset: 2px; }
.task-check input:checked + span { color: #17220b; background: var(--lime); border-color: var(--lime); }
.task-open { display: grid; justify-items: start; min-width: 0; padding: 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.task-open > strong { max-width: 100%; margin: 7px 0 5px; overflow: hidden; font-size: .91rem; line-height: 1.35; text-overflow: ellipsis; }
.task-card.is-done .task-open > strong { color: #7d8698; text-decoration: line-through; text-decoration-color: #b7bfcb; }
.task-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.task-meta i { padding: 4px 7px; color: #788296; font-size: .53rem; font-style: normal; font-weight: 800; background: #f0f3f7; border-radius: 6px; }
.task-meta .priority-high { color: #b84b48; background: #fff0ee; }
.task-meta .priority-medium { color: #967025; background: #fff7df; }
.task-meta .priority-low { color: #39765a; background: #eaf8f0; }
.task-page { max-width: 100%; overflow: hidden; color: #7c88a0; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.task-chevron { display: grid; place-items: center; width: 34px; height: 34px; color: #8992a4; font-size: 1.05rem; background: #f5f7fa; border: 0; border-radius: 10px; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.task-card.is-open .task-chevron { color: #fff; background: var(--blue); transform: rotate(180deg); }
.task-detail { padding: 4px 60px 28px; color: #3c465a; border-top: 1px solid #edf0f5; }
.task-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding-top: 22px; }
.task-detail-grid section, .task-steps, .task-tags, .task-related { padding: 16px 17px; background: #f7f9fc; border: 1px solid #edf0f5; border-radius: 13px; }
.task-detail p { margin: 8px 0 0; font-size: .78rem; line-height: 1.65; }
.task-steps, .task-tags, .task-related { margin-top: 11px; }
.task-detail ul { margin: 10px 0 0; padding-left: 18px; }
.task-detail li { margin: 7px 0; padding-left: 3px; font-size: .76rem; line-height: 1.55; }
.task-tags > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.task-tags i { padding: 6px 9px; color: #4d5d80; font-size: .62rem; font-style: normal; font-weight: 700; background: #e9eefb; border-radius: 8px; }
.empty-detail { color: #8992a4; }
.page-tool { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; padding: 20px; color: #fff; background: linear-gradient(135deg, #10172a, #182342); border-radius: 16px; }
.page-tool > div { display: grid; gap: 5px; }
.page-tool .detail-label { color: #8695b6; }
.page-tool strong { font-size: .86rem; }
.page-tool p { max-width: 590px; margin: 0; color: #8d9ab5; font-size: .68rem; }
.page-analysis-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; gap: 7px; padding: 11px 14px; color: #14200a; font-size: .7rem; font-weight: 850; background: var(--lime); border: 0; border-radius: 10px; cursor: pointer; }
.page-analysis-button:disabled { cursor: wait; opacity: .72; }
.mini-spinner { display: inline-block; flex: none; box-sizing: border-box; vertical-align: -2px; margin-right: 6px; width: 12px; height: 12px; border: 2px solid rgba(15,26,5,.25); border-top-color: #14200a; border-radius: 50%; animation: ring .75s linear infinite; }
.page-analysis-result:not(:empty) { display: grid; gap: 12px; margin-top: 13px; }
.analysis-ready { padding: 18px; background: #effbe8; border: 1px solid #d8efc9; border-radius: 14px; }
.analysis-ready span { color: #3d7623; font-size: .6rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analysis-ready p { color: #345128; }
.snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.snapshot-grid div { display: grid; gap: 6px; padding: 14px 15px; background: #f7f9fc; border: 1px solid #e8ecf2; border-radius: 12px; }
.snapshot-grid div:first-child { grid-column: span 2; }
.snapshot-grid span { color: #8b94a6; font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.snapshot-grid strong { overflow-wrap: anywhere; font-size: .72rem; line-height: 1.5; }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.suggestion-grid section, .implementation-note { padding: 17px; background: #fff; border: 1px solid #e1e6ef; border-radius: 13px; }
.suggestion-grid section:first-child, .suggestion-grid section:nth-child(2) { background: #f3f5ff; border-color: #dfe4ff; }
.suggestion-grid ul { margin-bottom: 0; }
.implementation-note { border-left: 4px solid var(--blue); }
.page-analysis-error { padding: 16px; color: #873e32; background: #fff2ef; border: 1px solid #f0d3cd; border-radius: 12px; }
.page-analysis-error p { margin-bottom: 0; }
.client-inputs { margin-top: 32px; padding: 23px 25px; background: #f7f9fc; border: 1px solid #e5e9f1; border-radius: 17px; }
.client-inputs h3 { margin: 7px 0 12px; font-size: .96rem; }
.client-inputs ul { margin: 0; padding-left: 18px; }
.client-inputs li { margin: 6px 0; color: #5f687b; font-size: .76rem; }
.workflow-error { min-height: 360px; padding: 80px 30px; text-align: center; }
.workflow-error strong { font-size: 1.4rem; }
.workflow-error p { max-width: 550px; margin: 12px auto 0; color: var(--muted); }
.workflow-footnote { margin: 20px 0 0; color: #9aa2b1; font-size: .7rem; text-align: center; }

/* Piano: una cosa alla volta */
.plan-bar { display: flex; align-items: center; gap: 14px; margin: 24px 0 22px; }
.plan-bar-track { flex: 1; height: 7px; overflow: hidden; background: #e9edf3; border-radius: 99px; }
.plan-bar-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: inherit; transition: width .35s ease; }
.plan-bar strong { color: #5f687b; font-size: .76rem; white-space: nowrap; }
.plan-view.is-saving .focus-actions, .plan-view.is-saving .task-check { pointer-events: none; opacity: .55; }
.focus-card { scroll-margin-top: 92px; padding: 28px 30px; background: #fff; border: 1.5px solid #c4ceff; border-radius: 22px; box-shadow: 0 18px 45px rgba(39,57,112,.1); }
.focus-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.focus-kicker { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.focus-kicker b { margin-left: 8px; color: #9199aa; font-weight: 700; letter-spacing: 0; text-transform: none; }
.focus-card h3 { margin: 14px 0 10px; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -.03em; }
.focus-page { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; color: #5d6a85; font-size: .8rem; }
.focus-page span { min-width: 0; overflow-wrap: anywhere; }
.focus-page a { text-decoration: none; }
.focus-why { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.focus-why section { padding: 15px 17px; background: #f7f9fc; border: 1px solid #edf0f5; border-radius: 13px; }
.focus-why p { margin: 7px 0 0; color: #3c465a; font-size: .82rem; line-height: 1.6; }
.step-list { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.step-check { position: relative; display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: start; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid #dfe5ee; border-radius: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.step-check:hover { border-color: #c4ceff; }
.step-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.step-check > span { display: grid; place-items: center; width: 22px; height: 22px; color: transparent; font-size: .68rem; font-weight: 900; background: #fff; border: 1.5px solid #cfd6e2; border-radius: 7px; transition: color .2s, background .2s, border-color .2s; }
.step-check input:focus-visible + .step-box { outline: 3px solid rgba(79,108,255,.2); outline-offset: 2px; }
.step-check input:checked + .step-box { color: #17220b; background: var(--lime); border-color: var(--lime); }
.step-check b { color: #9199aa; font-size: .75rem; line-height: 22px; }
.step-check em { color: #273043; font-size: .86rem; font-style: normal; line-height: 1.55; }
.step-check:has(input:checked) { background: #f8fbf3; border-color: #dcefc3; }
.step-check input:checked ~ em { color: #7d8698; text-decoration: line-through; text-decoration-color: #b7bfcb; }
.focus-card .task-tags, .focus-related { margin-top: 16px; }
.focus-related ul { margin: 8px 0 0; padding-left: 18px; font-size: .8rem; line-height: 1.7; }
.focus-related a { color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
.focus-redo { justify-self: start; }
.focus-check { margin-top: 12px; padding: 16px 17px; background: #fff; border: 1px solid #dfe5ee; border-radius: 13px; }
.check-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.check-head strong { font-size: .86rem; }
.check-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .8rem; table-layout: fixed; }
.check-table th, .check-table td { padding: 9px 0 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0f5; overflow-wrap: anywhere; }
.check-table th:first-child { width: 44%; padding-left: 0; font-weight: 700; line-height: 1.45; }
.check-table thead th { color: #8a94a8; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.check-table thead small { font-weight: 600; text-transform: none; }
.check-table th p { margin: 4px 0 0; color: #8a5a12; font-size: .74rem; font-weight: 500; line-height: 1.5; }
.check-table tbody tr:last-child th, .check-table tbody tr:last-child td { border-bottom: 0; }
.check-table td { color: #3c465a; line-height: 1.45; }
.check-table td b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; font-size: .62rem; border-radius: 6px; }
.check-ok b { color: #17220b; background: var(--lime); }
.check-warn b { color: #8a5a12; background: #ffe7a8; }
.check-bad b { color: #fff; background: #d9534f; }
.check-none { color: #b3bac8; }
.path { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.path-item:not(.is-manual) { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px; padding: 13px 15px; border: 1px solid #dfe5ee; border-radius: 13px; }
.path-item.is-auto { background: #f4fbf0; border-color: #dcefc3; }
.path-item.is-tool { background: #f3f5ff; border-color: #dfe4ff; }
.path-item.is-info { background: #fbfcfe; border-style: dashed; }
.path-mark { display: grid; place-items: center; width: 22px; height: 22px; color: #7c8699; font-size: .68rem; font-weight: 900; background: #eef1f6; border-radius: 7px; }
.path-item.is-auto .path-mark { color: #17220b; background: var(--lime); }
.path-item.is-tool .path-mark { color: #fff; background: var(--blue); }
.path .step-check { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.path-item strong { display: block; font-size: .88rem; line-height: 1.45; }
.path-item strong i { display: inline-block; margin-left: 6px; padding: 2px 7px; color: #6e768b; font-size: .58rem; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; background: #eef1f6; border-radius: 6px; }
.path-item.is-auto strong i { color: #3d7623; background: #e2f4d2; }
.path-item.is-tool strong i { color: #314cd7; background: #e2e7ff; }
.path-item.is-manual strong i, .path-item.is-info strong i { color: #8a5a12; background: #fff1cf; }
.path-item p { margin: 4px 0 0; color: #4a5468; font-size: .8rem; line-height: 1.6; }
.path-item .page-analysis-button { margin-top: 10px; padding: 11px 15px; font-size: .78rem; }
.path .step-check input:checked ~ div strong { color: #7d8698; text-decoration: line-through; text-decoration-color: #b7bfcb; }
.path .step-check input:checked ~ div p { color: #9199aa; }
.focus-insights:not(:empty) { margin-top: 16px; padding: 16px 17px; background: #fff; border: 1px solid #dfe4ff; border-radius: 13px; }
.insights-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.insights-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .8rem; }
.insights-table th, .insights-table td { padding: 8px 0 8px 12px; text-align: right; vertical-align: top; border-bottom: 1px solid #edf0f5; }
.insights-table th:first-child { padding-left: 0; font-weight: 650; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.insights-table thead th { color: #8a94a8; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.insights-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.insights-table tbody tr:last-child th, .insights-table tbody tr:last-child td { border-bottom: 0; }
.insights-table th i { display: inline-block; margin-left: 7px; padding: 2px 7px; color: #8a5a12; font-size: .62rem; font-style: normal; font-weight: 800; background: #fff6df; border-radius: 6px; }
.insights-table th small { display: block; color: #8a94a8; font-size: .66rem; font-weight: 500; }
.insights-table.is-collapsed tbody tr.is-extra { display: none; }
.insights-table thead th:first-child small { display: inline; margin-left: 6px; color: #a3abbb; font-size: .62rem; font-weight: 600; text-transform: none; }
.query-row { cursor: pointer; }
.query-row:hover th, .query-row:hover td { background: #f6f8fc; }
.query-caret { display: inline-block; width: 14px; color: #8a94a8; font-size: .7rem; transition: transform .2s; }
.query-row.is-open .query-caret { transform: rotate(90deg); color: var(--blue-dark); }
.query-row.is-open th, .query-row.is-open td { border-bottom-color: transparent; }
.insights-table .query-detail > td { padding: 4px 0 14px 14px; text-align: left; white-space: normal; }
.query-pages { width: 100%; margin: 0 0 10px; border-collapse: collapse; font-size: .76rem; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.query-pages th, .query-pages td { padding: 7px 10px; text-align: right; vertical-align: top; border-bottom: 1px solid #edf0f5; }
.query-pages th:first-child { text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.query-pages thead th { color: #8a94a8; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.query-pages td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.query-pages tbody tr:last-child th, .query-pages tbody tr:last-child td { border-bottom: 0; }
.query-pages tr.is-main th:first-child { box-shadow: inset 3px 0 0 #59c98a; }
.query-pages a { color: var(--ink); text-decoration: none; }
.query-pages a:hover { color: var(--blue-dark); }
.query-pages th i { display: inline-block; margin-left: 6px; padding: 2px 7px; color: #2c6e48; font-size: .6rem; font-style: normal; font-weight: 800; background: #e3f6ea; border-radius: 6px; }
.query-pages th i.is-chosen { color: #fff; background: #2c8a56; }
.query-pages th small { display: block; color: #8a94a8; font-size: .64rem; }
.advice-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.advice-list li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; padding: 11px 12px; color: #4a5468; font-size: .77rem; line-height: 1.55; background: #f3f6ff; border: 1px solid #dfe5fb; border-radius: 10px; }
.advice-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--blue-dark); background: #fff; border: 1px solid #dfe5fb; border-radius: 10px; }
.advice-icon.is-click { color: #c2410c; background: #fff4ec; border-color: #fbd9c2; }
.advice-icon.is-podium { color: #a16207; background: #fff8e1; border-color: #f6e2a6; }
.advice-icon.is-up, .advice-icon.is-far { color: #7c3aed; background: #f5f0ff; border-color: #e2d6fb; }
.advice-icon.is-link, .advice-icon.is-merge, .advice-icon.is-target { color: #1d4ed8; background: #eef3ff; border-color: #d3defb; }
.advice-icon.is-copy { color: #b4472f; background: #fff1ee; border-color: #f6d5ce; }
.advice-icon.is-ok { color: #2c8a56; background: #effaf3; border-color: #cdebd8; }
.serp { margin: 10px 0 0; padding: 12px 14px; font-family: Arial, Helvetica, sans-serif; background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; box-shadow: 0 1px 3px rgba(32,33,36,.08); }
.serp figcaption { margin-bottom: 8px; color: #8a94a8; font-family: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.serp-site { display: flex; align-items: center; gap: 9px; }
.serp-fav { display: grid; place-items: center; flex: 0 0 26px; height: 26px; color: #4d5156; font-size: .72rem; font-weight: 700; background: #f1f3f4; border: 1px solid #dadce0; border-radius: 50%; }
.serp-site b { display: block; color: #202124; font-size: .8rem; font-weight: 400; }
.serp-site small { display: block; color: #4d5156; font-size: .7rem; overflow-wrap: anywhere; }
.serp-title { margin-top: 6px; color: #1a0dab; font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.serp-title b { font-weight: 400; }
.serp-desc { margin-top: 4px; color: #4d5156; font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.serp-desc b { color: #202124; font-weight: 700; }
.serp-cut { color: #b8bec9; text-decoration: line-through; text-decoration-color: #d5dae2; }
.serp em { color: #9aa1ad; font-style: italic; }
.serp-legend { display: block; margin-top: 8px; color: #9aa1ad; font-family: inherit; font-size: .64rem; }
.serp-missing { margin: 8px 0 0; padding: 8px 10px; color: #6f7a8e; font-size: .74rem; background: #fff; border: 1px dashed #d5dbe6; border-radius: 9px; }
.advice-list strong { color: #273043; font-size: .78rem; }
.advice-list p { margin: 3px 0 0; }
.target-link { margin-left: 6px; padding: 0; color: var(--blue-dark); font-size: .7rem; font-weight: 750; background: transparent; border: 0; cursor: pointer; text-decoration: underline; }
.target-pick { margin: 10px 0; padding: 10px 12px; color: #4a5468; font-size: .77rem; line-height: 1.55; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.target-pick p { margin: 0; }
.target-pick b { color: #273043; }
.target-pick.is-ask { background: #fff8e8; border-color: #f3dca6; }
.target-pick.is-set { background: #effaf3; border-color: #cdebd8; }
.target-note { color: #6f7a8e; font-size: .7rem; }
.target-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.target-options button { display: grid; padding: 6px 10px; color: #273043; font-size: .74rem; font-weight: 700; text-align: left; background: #fff; border: 1px solid #d5dbe6; border-radius: 9px; cursor: pointer; }
.target-options button:hover, .target-options button.is-current { border-color: var(--blue); background: #f3f6ff; }
.target-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.target-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; color: #1f5e3a; font-size: .74rem; font-weight: 750; background: #fff; border: 1px solid #b9e2c8; border-radius: 999px; }
.target-chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; color: #6f7a8e; font-size: .62rem; background: #f1f4f8; border: 0; border-radius: 50%; cursor: pointer; }
.target-chip button:hover { color: #fff; background: #e25a48; }
.target-options button.is-current { color: #1f5e3a; border-color: #59c98a; background: #effaf3; }
.target-options small { color: #8a94a8; font-size: .64rem; font-weight: 600; }
.target-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.target-form input { flex: 1 1 220px; min-width: 0; padding: 7px 10px; font: inherit; font-size: .76rem; border: 1px solid #d5dbe6; border-radius: 9px; }
.target-form button[type="submit"] { padding: 7px 12px; color: #fff; font-size: .74rem; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; }
.page-searches { margin-top: 10px; }
.query-pages tr.is-missing th:first-child { box-shadow: inset 3px 0 0 #f0b23c; }
.target-url-form { margin: 0 0 10px; }
.target-url-form span { flex-basis: 100%; color: #4a5468; font-size: .74rem; font-weight: 700; }
.target-url-form button[disabled], .target-link[disabled] { opacity: .6; cursor: wait; }
.target-check { margin: 0 0 10px; padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.target-check strong { display: block; color: #273043; font-size: .8rem; }
.target-check p { margin: 6px 0 0; color: #2c8a56; font-size: .76rem; }
.target-check .target-link { margin: 8px 0 0; }
.page-searches ul:not(.advice-list) { display: grid; gap: 5px; margin: 6px 0 10px; padding: 0; list-style: none; }
.page-searches ul:not(.advice-list) li { color: #4a5468; font-size: .76rem; line-height: 1.5; }
.page-searches ul:not(.advice-list) span { margin-left: 6px; color: #8a94a8; font-variant-numeric: tabular-nums; }
.page-searches i { display: inline-block; margin-left: 6px; padding: 1px 7px; color: #8a5a12; font-size: .6rem; font-style: normal; font-weight: 800; background: #fff6df; border-radius: 6px; }
.page-searches i.is-main { color: #2c6e48; background: #e3f6ea; }
.page-searches i.is-other { color: #5f687b; background: #eef1f6; }
.page-row .detail-label { display: block; margin-top: 10px; }
.insights-more { margin-top: 8px; padding: 6px 0; color: var(--blue-dark); font-size: .74rem; font-weight: 800; background: transparent; border: 0; cursor: pointer; }
.intent-block { padding: 16px 17px; background: #fff; border: 1px solid #e1e6ef; border-radius: 13px; }
.intent-block ul { display: grid; gap: 11px; margin: 12px 0 0; padding: 0; list-style: none; }
.intent-block li { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: start; gap: 12px; }
.intent-block li > i { padding: 4px 6px; font-size: .62rem; font-style: normal; font-weight: 850; text-align: center; border-radius: 7px; }
.intent-block .intent-yes { color: #2f7a4f; background: #eaf8ef; }
.intent-block .intent-partial { color: #8a5a12; background: #fff6df; }
.intent-block .intent-no { color: #b84b48; background: #fff0ee; }
.intent-block strong { font-size: .84rem; }
.intent-block p { margin-top: 2px !important; color: #3c465a; font-size: .78rem; line-height: 1.5; }
.intent-block small { color: #8a94a8; font-size: .68rem; line-height: 1.5; }
.focus-trend:not(:empty) { margin-top: 16px; padding: 16px 17px; background: #f7f9fc; border: 1px solid #edf0f5; border-radius: 13px; }
.trend-now { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.trend-now div { display: grid; gap: 2px; }
.trend-now strong { font-size: 1.35rem; letter-spacing: -.03em; }
.trend-now span { color: #7c8699; font-size: .7rem; }
.trend-caption { display: block; margin-top: 8px; color: #9199aa; font-size: .66rem; line-height: 1.5; }
.trend-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .82rem; }
.trend-table th, .trend-table td { padding: 7px 8px 7px 0; text-align: right; border-bottom: 1px solid #e8ecf2; }
.trend-table th:first-child { color: #5f687b; font-weight: 650; text-align: left; }
.trend-table thead th { color: #8a94a8; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.trend-table thead small { font-weight: 600; text-transform: none; }
.trend-table tbody tr:last-child th, .trend-table tbody tr:last-child td { border-bottom: 0; }
.trend-table td { font-weight: 750; font-variant-numeric: tabular-nums; }
.trend-table .is-better { color: #2f8a57; font-size: .74rem; white-space: nowrap; }
.trend-table .is-worse { color: #c0504c; font-size: .74rem; white-space: nowrap; }
.trend-note { margin: 10px 0 0; padding: 8px 11px; color: #8a5a12; font-size: .74rem; font-weight: 650; background: #fff6df; border-radius: 9px; }
.trend-chart { display: block; width: 100%; height: 64px; margin-top: 14px; overflow: visible; }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-pivot { stroke: #2f8a57; stroke-width: 1.4; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.focus-texts { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #edf0f5; }
.focus-texts p { margin: 0; }
.focus-texts .page-analysis-button { justify-self: start; padding: 13px 17px; font-size: .8rem; }
.analysis-overview { color: #3c465a; font-size: .84rem; line-height: 1.6; }
.analysis-warning { padding: 10px 13px; color: #8a5a12; font-size: .76rem; font-weight: 700; background: #fff6df; border-radius: 10px; }
.compare-block { padding: 16px 17px; background: #f3f5ff; border: 1px solid #dfe4ff; border-radius: 13px; }
.compare-now { display: flex; align-items: baseline; gap: 10px; margin-top: 10px !important; color: #7d8698; font-size: .78rem; line-height: 1.5; }
.compare-now i { flex: 0 0 auto; padding: 3px 7px; font-size: .56rem; font-style: normal; font-weight: 850; text-transform: uppercase; background: #e4e8f3; border-radius: 6px; }
.compare-now span { overflow-wrap: anywhere; }
.copy-list { display: grid; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.copy-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 11px 13px; background: #fff; border: 1px solid #dfe4ff; border-radius: 11px; }
.copy-list li > span { font-size: .86rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.copy-list small { color: #9199aa; font-size: .62rem; white-space: nowrap; }
.copy-button { min-width: 78px; padding: 8px 12px; color: #fff; font-size: .7rem; font-weight: 800; background: var(--blue); border: 0; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.copy-button:hover { background: var(--blue-dark); }
.copy-button.is-copied { color: #17220b; background: var(--lime); }
.focus-texts .suggestion-grid section { background: #fff; border-color: #e1e6ef; }
.focus-texts .suggestion-grid ul { margin: 9px 0 0; padding-left: 18px; }
.focus-texts .suggestion-grid li { margin: 6px 0; font-size: .8rem; line-height: 1.55; }
.focus-texts .implementation-note p { font-size: .8rem; line-height: 1.6; }
.focus-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf0f5; }
.focus-done { padding: 15px 22px; color: #fff; font-size: .92rem; font-weight: 850; background: var(--navy); border: 0; border-radius: 13px; box-shadow: 0 13px 30px rgba(11,17,32,.18); cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.focus-done:hover { transform: translateY(-2px); }
.focus-done.is-ready { color: #17220b; background: var(--lime); box-shadow: 0 12px 28px rgba(184,242,74,.4); }
.focus-skip { padding: 10px 6px; color: #7c8699; font-size: .8rem; font-weight: 750; text-decoration: underline; background: transparent; border: 0; cursor: pointer; }
.focus-finished { display: grid; justify-items: center; gap: 4px; padding: 30px 10px; text-align: center; }
.focus-finished .focus-kicker { color: #318c5f; }
.focus-finished h3 { margin-bottom: 18px; }
.focus-card + .task-board { margin-top: 32px; }
.task-line { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px 14px; background: #fff; border: 1px solid #dfe5ee; border-radius: 13px; transition: border-color .2s, box-shadow .2s; }
.task-line:hover { border-color: #c4ceff; }
.task-line.is-current { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,108,255,.12); }
.task-line-open { display: grid; gap: 3px; min-width: 0; padding: 4px 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.task-line-open strong { font-size: .86rem; line-height: 1.35; }
.task-line-open small { overflow: hidden; color: #7c88a0; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.task-line.is-done .task-line-open strong { color: #7d8698; text-decoration: line-through; text-decoration-color: #b7bfcb; }
.priority-dot { width: 9px; height: 9px; background: #cfd6e2; border-radius: 50%; }
.priority-dot.priority-high { background: #e0625e; }
.priority-dot.priority-medium { background: #e3b341; }
.priority-dot.priority-low { background: #58c48a; }
.done-group summary { padding: 6px 3px; color: #7c8699; font-size: .8rem; font-weight: 800; cursor: pointer; }
.done-group .horizon-tasks { margin-top: 9px; }

@media (max-width: 1000px) {
    .auth-hero { grid-template-columns: 1fr; padding-top: 80px; }
    .auth-copy { max-width: 800px; }
    .auth-visual { display: none; }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permission-badge { display: none; }
}

@media (max-width: 720px) {
    .auth-nav, .auth-hero, .projects-shell, .workflow-shell { width: min(100% - 28px, 1280px); }
    .auth-nav { padding: 20px 0; }
    .nav-note, .connection-pill, .toolbar-note, .workspace-label { display: none; }
    .auth-hero { align-items: start; min-height: auto; padding: 72px 0 80px; }
    .auth-copy h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
    .connect-button { width: 100%; justify-content: flex-start; }
    .button-arrow { margin-left: auto; }
    .trust-row { gap: 11px; }
    .app-header { padding: 0 16px; }
    .projects-shell { padding-top: 30px; }
    .projects-top { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 26px; }
    .projects-top .search-box { flex: none; }
    .active-grid { grid-template-columns: 1fr; }
    .active-card { grid-template-columns: auto minmax(0,1fr); }
    .active-cta { grid-column: 1 / -1; justify-content: center; }
    .fresh-grid { grid-template-columns: 1fr; }
    .projects-hero { align-items: flex-start; flex-direction: column; }
    .projects-hero h1 { font-size: 2.6rem; }
    .project-count { align-items: center; gap: 18px; min-width: 0; padding: 14px 17px; }
    .project-toolbar { align-items: stretch; flex-direction: column; margin-top: 32px; }
    .project-toolbar-side { justify-content: space-between; }
    .search-box { width: 100%; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 164px; }
    .projects-grid.is-list-view .project-card { grid-template-columns: 1fr; min-height: 164px; }
    .projects-grid.is-list-view .project-card-head { grid-row: auto; }
    .projects-grid.is-list-view .project-analysis-count { position: static; }
    .workflow-shell { padding-top: 22px; }
    .project-focus { grid-template-columns: auto minmax(0, 1fr); }
    .project-focus .secure-badge { display: none; }
    .project-focus h1 { overflow-wrap: anywhere; font-size: 2.1rem; }
    .workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 12px; }
    .step-line { display: none; }
    .workflow-step { align-items: flex-start; flex-direction: column; gap: 7px; }
    .workflow-progress { min-height: 430px; padding: 58px 20px 48px; }
    .plan-view { padding: 30px 20px 42px; }
    .plan-header { align-items: stretch; flex-direction: column; }
    .plan-header .ghost-button { align-self: flex-start; }
    .plan-dashboard { grid-template-columns: repeat(3, 1fr); }
    .progress-card { grid-column: span 3; }
    .task-toolbar { align-items: stretch; flex-direction: column; }
    .task-filters { align-self: flex-start; }
    .task-detail { padding: 4px 18px 22px; }
    .task-detail-grid, .suggestion-grid { grid-template-columns: 1fr; }
    .page-tool { align-items: stretch; flex-direction: column; }
    .page-analysis-button { align-self: flex-start; }
    .focus-card { padding: 20px 16px; }
    .focus-why { grid-template-columns: 1fr; }
    .copy-list li { grid-template-columns: minmax(0,1fr) auto; }
    .copy-list li > span { grid-column: 1 / -1; }
    .focus-done { flex: 1; }
}

@media (max-width: 420px) {
    .header-actions { gap: 7px; }
    .ghost-button { padding: 8px 9px; }
    .auth-copy > p { font-size: .98rem; }
    .trust-row { display: grid; }
    .project-card, .projects-grid.is-list-view .project-card { grid-template-columns: 1fr; }
    .project-status-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .project-progress-copy { max-width: 100%; }
    .permission-badge { display: none; }
    .plan-view { padding-right: 14px; padding-left: 14px; }
    .plan-dashboard { gap: 7px; }
    .progress-card { min-height: 112px; padding: 14px; }
    .progress-ring { width: 72px; height: 72px; }
    .plan-stat { min-height: 88px; padding: 12px; }
    .plan-stat strong { font-size: 1.45rem; }
    .task-row { gap: 9px; padding: 13px 11px; }
    .task-check { width: 26px; }
    .task-open > strong { font-size: .82rem; }
    .task-detail { padding-right: 11px; padding-left: 11px; }
    .snapshot-grid { grid-template-columns: 1fr; }
    .snapshot-grid div:first-child { grid-column: auto; }
}

/* Account: accesso, registrazione, codice via email */
.auth-card { width: min(440px, 100%); padding: 24px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(8px); }
.auth-card h2 { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: -.03em; }
.auth-note { margin: -6px 0 18px; color: #a6b0c7; font-size: .9rem; line-height: 1.55; }
.auth-note strong { color: #fff; font-weight: 700; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #c5cde0; font-size: .78rem; font-weight: 700; }
.auth-form input { width: 100%; height: 50px; padding: 0 14px; color: #fff; font-size: 1rem; font-weight: 500; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; outline: none; transition: border-color .2s, background .2s; }
.auth-form input:focus { background: rgba(255,255,255,.1); border-color: var(--lime); }
.auth-form input::placeholder { color: #5f6a85; }
.auth-form small { color: #7f8aa5; font-size: .72rem; font-weight: 500; }
.auth-form .pin-input { height: 62px; font-size: 1.9rem; font-weight: 800; letter-spacing: .42em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 4px; color: #0d1526; font-weight: 800; background: #fff; border: 0; border-radius: 13px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.auth-submit span { color: var(--blue); }
.auth-switch, .auth-hint { margin: 16px 0 0; color: #8f9ab4; font-size: .84rem; }
.auth-hint { margin-top: 8px; font-size: .75rem; }
.auth-switch a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.auth-switch a:hover { text-decoration-color: var(--lime); }
.auth-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 16px; color: #8f9ab4; font-size: .84rem; }
.auth-links button { padding: 0; color: #fff; font-size: .84rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.auth-links button:hover { text-decoration-color: var(--lime); }
.auth-flash { margin: 0 0 16px; padding: 11px 13px; font-size: .86rem; line-height: 1.45; border-radius: 11px; }
.auth-flash.is-error { color: #ffd9d2; background: rgba(255,107,87,.14); border: 1px solid rgba(255,107,87,.35); }
.auth-flash.is-info { color: #e6f9c4; background: rgba(184,242,74,.1); border: 1px solid rgba(184,242,74,.3); }
.auth-card .connect-button { width: 100%; }
.header-form { display: flex; gap: 8px; }
.plan-pill { padding: 5px 10px; color: var(--blue-dark); font-size: .7rem; font-weight: 800; letter-spacing: .02em; background: #eef1ff; border-radius: 999px; white-space: nowrap; }
.plan-note { margin: -4px 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.plan-note b { color: var(--blue-dark); font-weight: 700; }
.project-status.status-new { color: #5b6478; background: #eef1f6; }
.fresh-tile.is-locked { background: #fafbfd; }
.fresh-tile.is-locked strong { color: #6b7488; }
.fresh-tile:disabled { cursor: not-allowed; opacity: .6; }
@media (max-width: 640px) {
    .auth-card { padding: 18px; }
    .plan-pill { display: none; }
}
/* Con il modulo sotto, il titolo d'ingresso si fa più piccolo: il pulsante deve stare nella prima schermata. */
.auth-hero { padding: 36px 0 64px; }
.auth-copy h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 4.2vw, 3.9rem); line-height: 1; }
.auth-copy > p { margin-bottom: 24px; }
@media (max-width: 640px) {
    .auth-hero { padding: 32px 0 56px; }
    .auth-copy h1 { font-size: clamp(2rem, 9.5vw, 2.9rem); }
}

/* Finestra di conferma e avvisi nostri: mai quelli di sistema */
.confirm-dialog { width: min(420px, calc(100% - 32px)); padding: 26px; color: var(--ink); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(9,14,27,.35); }
.confirm-dialog::backdrop { background: rgba(9,14,27,.55); backdrop-filter: blur(3px); }
.confirm-dialog h2 { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -.03em; overflow-wrap: anywhere; }
.confirm-dialog p { margin: 0 0 22px; color: #4d566b; font-size: .95rem; line-height: 1.6; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-actions button { min-height: 46px; padding: 0 18px; font-size: .9rem; font-weight: 800; border-radius: 12px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.confirm-cancel { color: #5f687b; background: #fff; border: 1px solid #dce2eb; }
.confirm-cancel:hover { color: var(--ink); background: #f6f8fb; }
.confirm-ok { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.confirm-ok:hover { background: var(--blue-dark); transform: translateY(-1px); }
.notice-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.45; background: #1b2338; border-left: 4px solid #ff6b57; border-radius: 12px; box-shadow: 0 18px 50px rgba(9,14,27,.35); cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.notice-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.plan-note.is-warning { padding: 12px 15px; color: #6b4a12; background: #fff6df; border: 1px solid #f3dfae; border-radius: 12px; }
.plan-note.is-warning strong { color: #4f3608; }
.lock-tag { padding: 4px 9px; color: var(--blue-dark); font-size: .68rem; font-weight: 800; background: #eef1ff; border-radius: 999px; }
@media (max-width: 640px) {
    .confirm-actions { flex-direction: column-reverse; }
    .confirm-actions button { width: 100%; }
}

.copy-list small.is-long { color: #b4472f; font-weight: 700; }

/* Attività su più pagine: esito, problemi, strumenti e spunta per ogni pagina */
.focus-pages { margin-top: 12px; padding: 16px 17px; background: #fff; border: 1px solid #dfe5ee; border-radius: 13px; }
.page-rows { display: grid; gap: 8px; margin: 12px 0 10px; padding: 0; list-style: none; }
.page-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 12px 13px; background: #fafbfd; border: 1px solid #e6eaf1; border-left: 4px solid #cfd6e2; border-radius: 11px; }
.page-row.is-ok { border-left-color: #59c98a; }
.page-row.is-warn { border-left-color: #f0b23c; }
.page-row.is-bad { border-left-color: #ef6a5a; }
.page-row:has(input:checked) { background: #f8fbf3; }
.page-row:has(input:checked) .page-row-head a { color: #7d8698; text-decoration: line-through; }
.page-done { position: relative; cursor: pointer; }
.page-done input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.page-done span { display: grid; place-items: center; width: 22px; height: 22px; color: transparent; font-size: .68rem; font-weight: 900; background: #fff; border: 1.5px solid #cfd6e2; border-radius: 7px; transition: color .2s, background .2s, border-color .2s; }
.page-done input:focus-visible + span { outline: 3px solid rgba(79,108,255,.2); outline-offset: 2px; }
.page-done input:checked + span { color: #17220b; background: var(--lime); border-color: var(--lime); }
.page-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.page-row-head a { color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.page-row-head a:hover { color: var(--blue-dark); }
.page-row-head i { color: #8a94a8; font-size: .7rem; font-style: normal; font-weight: 700; }
.page-row.is-ok .page-row-head i { color: #2c8a56; }
.page-row.is-warn .page-row-head i { color: #9a6c22; }
.page-row.is-bad .page-row-head i { color: #b4472f; }
.page-issues { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.page-issues li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; color: #4a5468; font-size: .77rem; line-height: 1.55; }
.page-issues b { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: .62rem; border-radius: 6px; }
.page-issues .check-warn b { color: #8a5a12; background: #fff1d2; }
.page-issues .check-bad b { color: #a03a26; background: #ffe2dc; }
.page-issues strong { color: #273043; overflow-wrap: anywhere; }
.page-tools { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.page-row .page-tools { margin-top: 10px; }
.page-tools a { padding: 5px 10px; color: var(--blue-dark); font-size: .7rem; font-weight: 750; text-decoration: none; background: #eef1ff; border-radius: 999px; transition: background .2s; }
.page-tools a:hover { background: #dfe5ff; }
.page-tools a::after { content: " ↗"; }

/* Esito degli strumenti esterni, pagina per pagina */
.tool-guide { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; background: #f4f6ff; border: 1px solid #dfe5ff; border-radius: 11px; }
.tool-guide p { margin: 0; color: #414b60; font-size: .77rem; line-height: 1.6; }
.tool-guide b { margin-right: 4px; color: var(--blue-dark); }
.tool-guide em { color: var(--ink); font-style: normal; font-weight: 700; }
.tool-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e1e6ee; }
.tool-line > b { min-width: 92px; color: #273043; font-size: .76rem; }
.tool-line > a { padding: 5px 10px; color: var(--blue-dark); font-size: .7rem; font-weight: 750; text-decoration: none; background: #eef1ff; border-radius: 999px; }
.tool-line > a:hover { background: #dfe5ff; }
.tool-line > a::after { content: " ↗"; }
.tool-line .copy-button { padding: 5px 10px; font-size: .7rem; }
.verdict { display: inline-flex; margin-left: auto; overflow: hidden; border: 1px solid #d5dbe6; border-radius: 9px; }
.verdict button { padding: 6px 11px; color: #5f687b; font-size: .7rem; font-weight: 750; background: #fff; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.verdict button + button { border-left: 1px solid #d5dbe6; }
.verdict button:hover { background: #f3f5f9; }
.verdict button.is-pass { color: #17220b; background: var(--lime); }
.verdict button.is-fail { color: #fff; background: #e25a48; }
@media (max-width: 640px) {
    .verdict { width: 100%; margin-left: 0; }
    .verdict button { flex: 1; }
}

.tool-help { margin: 8px 0 0; padding: 10px 12px; color: #6b3a2e; font-size: .76rem; line-height: 1.6; background: #fff3f0; border: 1px solid #f6d5ce; border-radius: 10px; }

/* Mappa del sito: barre ordinate per visibilità su Google */
.site-map { margin-bottom: 18px; }
.site-map-box { background: #fff; border: 1px solid #dfe5ee; border-radius: 18px; }
.site-map-box > summary { display: grid; gap: 3px; padding: 18px 48px 18px 22px; position: relative; cursor: pointer; list-style: none; }
.site-map-box > summary::-webkit-details-marker, .map-row > summary::-webkit-details-marker { display: none; }
.site-map-box > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; color: var(--blue-dark); font-weight: 800; background: #eef1ff; border-radius: 8px; transform: translateY(-50%); }
.site-map-box[open] > summary::after { content: "–"; }
.site-map-box > summary strong { font-size: 1.05rem; letter-spacing: -.02em; }
.site-map-box > summary small { color: #6e768b; font-size: .78rem; }
.map-body { padding: 0 22px 18px; }
.map-hint { margin: 0 0 12px; color: #6e768b; font-size: .77rem; line-height: 1.55; }
.map-row { border-top: 1px solid #edf0f5; }
.map-row > summary { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 84px; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; list-style: none; }
.map-row > summary:hover .map-label strong { color: var(--blue-dark); }
.map-label { display: grid; gap: 1px; min-width: 0; }
.map-label strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.map-label small, .map-value small { color: #8a94a8; font-size: .68rem; }
.map-track { height: 14px; background: #f1f3f8; border-radius: 4px; }
.map-track i { display: block; width: 0; min-width: 3px; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; transition: width .4s ease; }
.map-row[open] .map-track i { background: var(--blue-dark); }
.map-value { display: grid; gap: 1px; text-align: right; font-variant-numeric: tabular-nums; }
.map-value strong { font-size: .84rem; }
.map-pages { width: 100%; margin: 2px 0 12px; border-collapse: collapse; font-size: .77rem; }
.map-pages th, .map-pages td { padding: 7px 0 7px 12px; text-align: right; border-top: 1px dashed #edf0f5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-pages th:first-child { padding-left: 0; text-align: left; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.map-pages thead th { color: #8a94a8; font-size: .62rem; font-weight: 800; text-transform: uppercase; border-top: 0; }
.map-pages a { color: var(--ink); text-decoration: none; }
.map-pages a:hover { color: var(--blue-dark); text-decoration: underline; }
.map-tone { padding: 3px 8px; font-size: .66rem; font-style: normal; font-weight: 750; border-radius: 999px; }
.map-tone.is-ok { color: #1f6b41; background: #e4f6ea; }
.map-tone.is-warn { color: #8a5a12; background: #fff1d2; }
.map-tone.is-bad { color: #a03a26; background: #ffe2dc; }
.map-task { margin-left: 4px; padding: 3px 9px; color: var(--blue-dark); font-size: .66rem; font-weight: 750; background: #eef1ff; border: 0; border-radius: 999px; cursor: pointer; }
.map-task:hover { background: #dfe5ff; }
.page-row-head small { color: #9199aa; font-size: .66rem; }
@media (max-width: 640px) {
    .map-row > summary { grid-template-columns: minmax(0, 1fr) 70px; }
    .map-track { grid-column: 1 / -1; order: 3; }
    .map-pages thead { display: none; }
    .map-pages td:nth-child(4) { display: none; }
}

/* Mappa del sito a raggiera */
.mind-map { display: block; width: 100%; height: auto; margin: 4px 0 10px; }
.mm-link { stroke: #c9d2ff; stroke-width: 2; }
.mm-node { cursor: pointer; }
.mm-node circle { transition: filter .2s, stroke-width .2s; }
.mm-node:hover circle { filter: brightness(1.12); }
.mm-center { cursor: default; }
.mm-center.is-link { cursor: pointer; }
.mm-link-query { stroke: #e4c7f5; stroke-dasharray: 4 4; }
.mm-query rect { fill: #a463d6; stroke: #fff; stroke-width: 2; transition: filter .2s; }
.mm-query:hover rect { filter: brightness(1.15); }
.mm-query .mm-leaf { fill: #6b3d91; font-style: italic; }
.mm-center circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.mm-section circle { fill: var(--blue-dark); stroke: #fff; stroke-width: 2; }
.mm-page circle { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.mm-page circle.is-ok { fill: #59c98a; stroke: #2c8a56; }
.mm-page circle.is-warn { fill: #f0b23c; stroke: #a97410; }
.mm-page circle.is-bad { fill: #ef6a5a; stroke: #a03a26; }
.mm-page:hover circle { stroke-width: 3.5; }
.mm-title, .mm-sub { fill: #fff; text-anchor: middle; pointer-events: none; }
.mm-title { font-size: 13px; font-weight: 800; }
.mm-sub { font-size: 11px; font-weight: 600; opacity: .85; }
.mm-leaf { fill: #414b60; font-size: 12px; font-weight: 600; }
.mm-page:hover .mm-leaf { fill: var(--blue-dark); }
@media (max-width: 640px) {
    .mind-map { display: none; }   /* su telefono il disegno diventa illeggibile: restano le barre */
}

/* ---- Strumento di scrittura (writer.js) */
.write-button { margin-top: 9px; padding: 7px 12px; color: #fff; font-size: .74rem; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; }
.write-button:hover { filter: brightness(1.1); }
.writer { width: min(1180px, calc(100% - 24px)); height: min(92vh, 900px); max-width: none; max-height: none; padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(9,14,27,.35); }
.writer[open] { display: flex; flex-direction: column; }
.writer::backdrop { background: rgba(9,14,27,.55); backdrop-filter: blur(3px); }
.writer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e6eaf1; }
.writer-head h2 { margin: 2px 0; font-size: 1.15rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.writer-head small { color: #8a94a8; font-size: .74rem; overflow-wrap: anywhere; }
.writer-close { flex: 0 0 34px; height: 34px; color: #5f687b; font-size: .9rem; background: #f3f5f9; border: 0; border-radius: 10px; cursor: pointer; }
.writer-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; flex: 1; min-height: 0; }
.writer-main { display: flex; flex-direction: column; min-height: 0; padding: 14px 20px; }
.writer-status { margin-bottom: 10px; padding: 9px 12px; color: #4a5468; font-size: .78rem; background: #f3f6ff; border: 1px solid #dfe5fb; border-radius: 10px; }
.writer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: #f6f8fc; border: 1px solid #e6eaf1; border-radius: 10px 10px 0 0; }
.writer-toolbar button { padding: 6px 10px; color: #273043; font-size: .74rem; font-weight: 700; background: #fff; border: 1px solid #dde2ea; border-radius: 7px; cursor: pointer; }
.writer-toolbar button:hover { border-color: var(--blue); background: #f3f6ff; }
.writer-sep { width: 1px; height: 22px; margin: 0 4px; background: #dde2ea; }
.writer-form { padding: 10px; font-size: .76rem; background: #fffdf5; border: 1px solid #e6eaf1; border-top: 0; }
.writer-form form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.writer-form label { display: grid; gap: 4px; flex: 1 1 200px; color: #4a5468; font-weight: 700; }
.writer-form label.is-wide { flex-basis: 100%; }
.writer-form input[type="text"] { padding: 7px 10px; font: inherit; border: 1px solid #d5dbe6; border-radius: 8px; }
.writer-form button[type="submit"] { padding: 7px 12px; color: #fff; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }
.writer-form small { flex-basis: 100%; color: #8a94a8; }
.writer-form p { margin: 0; }
.writer-stage { position: relative; display: flex; flex: 1; min-height: 0; }
.writer-editor { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px; font-size: .95rem; line-height: 1.7; background: #fff; border: 1px solid #e6eaf1; border-top: 0; border-radius: 0 0 10px 10px; outline: none; }
.writer-editor:focus { border-color: #c9d2ff; }
.writer-editor.is-busy { opacity: .5; pointer-events: none; }
.writer-editor h2 { margin: 0 0 10px; font-size: 1.35rem; }
.writer-editor h3 { margin: 18px 0 6px; font-size: 1.08rem; }
.writer-editor p { margin: 0 0 10px; }
.writer-editor ul, .writer-editor ol { margin: 0 0 10px; padding-left: 22px; }
.writer-editor img { display: block; max-width: 100%; max-height: 260px; margin: 8px 0; border-radius: 8px; }
.writer-editor a { color: var(--blue-dark); }
.writer-editor mark.w-todo { padding: 0 3px; color: #7a4b00; background: #ffe9a8; border-radius: 4px; }
.writer-editor .w-photo { margin: 12px 0; padding: 12px 14px; color: #4a5468; font-size: .82rem; background: #f6f8fc; border: 2px dashed #c9d2e3; border-radius: 10px; cursor: pointer; user-select: none; }
.writer-editor .w-photo:hover { border-color: var(--blue); }
.writer-editor .w-photo b { display: block; color: #273043; }
.writer-editor .w-photo span { display: inline-block; margin-top: 4px; color: var(--blue-dark); font-weight: 750; }
.writer-side { overflow: auto; padding: 14px 18px; background: #fafbfd; border-left: 1px solid #e6eaf1; }
.writer-side section { margin-bottom: 16px; }
.writer-side p { margin: 4px 0 6px; color: #4a5468; font-size: .78rem; line-height: 1.55; }
.writer-side ul { margin: 6px 0 0; padding-left: 18px; color: #4a5468; font-size: .76rem; line-height: 1.55; }
.writer-side .writer-checks { padding-left: 0; list-style: none; }
.writer-checks li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; margin-bottom: 7px; }
.writer-checks b { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: .62rem; border-radius: 6px; }
.writer-checks .is-ok b { color: #1f5e3a; background: #dff3e7; }
.writer-checks .is-todo b { color: #8a5a12; background: #fff1d2; }
.writer-checks small { display: block; color: #8a94a8; font-size: .7rem; }
.writer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid #e6eaf1; }
.writer-foot small { flex: 1 1 320px; color: #8a94a8; font-size: .7rem; line-height: 1.5; }
.writer-foot div { display: flex; flex-wrap: wrap; gap: 8px; }
.writer-foot [data-w-regen].is-armed { color: #fff; background: #e25a48; border-color: #e25a48; }
@media (max-width: 820px) {
    .writer { width: calc(100% - 16px); height: 96vh; }
    .writer-body { grid-template-columns: 1fr; overflow: auto; }
    .writer-main { min-height: 60vh; }
    .writer-side { border-left: 0; border-top: 1px solid #e6eaf1; }
}
.writer-saved { margin-right: 4px; color: #2c8a56; font-weight: 750; }
.writer-saved.is-error { color: #b4472f; }
.writer-foot [data-w-delete].is-armed { color: #b4472f; font-weight: 800; }
.snippet-ideas { margin-top: 10px; }
.snippet-ideas-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.snippet-ideas-head .write-button { margin-top: 0; }
.snippet-ideas-head .write-button[disabled] { opacity: .7; cursor: wait; }
.snippet-options { display: grid; gap: 8px; margin-top: 8px; }
.snippet-options .serp { margin-top: 0; border-color: #d3defb; }
.snippet-note { margin: 8px 0 0; color: #6f7a8e; font-size: .74rem; }
.serp-count { display: block; margin-top: 6px; color: #9aa1ad; font-family: inherit; font-size: .64rem; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-family: var(--font, inherit); }
.idea-actions .ghost-button { padding: 6px 10px; font-size: .72rem; }

/* ---- IA al lavoro (writer.js) */
.writer-working { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(255,255,255,.72); backdrop-filter: blur(2px); border-radius: 0 0 10px 10px; }
.writer-working[hidden] { display: none; }
.writer-working-card { display: grid; justify-items: center; gap: 12px; width: min(420px, 100%); padding: 22px 24px; text-align: center; background: #fff; border: 1px solid #dfe5fb; border-radius: 16px; box-shadow: 0 18px 50px rgba(30,45,110,.14); }
.writer-working-card strong { color: #273043; font-size: .9rem; }
.writer-pen { display: grid; place-items: center; width: 52px; height: 52px; color: var(--blue-dark); background: #eef3ff; border-radius: 50%; animation: writer-pen 1.6s ease-in-out infinite; }
.writer-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.writer-steps li { padding: 4px 10px; color: #9aa1ad; font-size: .68rem; font-weight: 750; background: #f3f5f9; border-radius: 999px; transition: background .3s, color .3s; }
.writer-steps li.is-done { color: #1f5e3a; background: #dff3e7; }
.writer-steps li.is-done::before { content: '✓ '; }
.writer-steps li.is-active { color: #fff; background: var(--blue-dark); animation: writer-pulse 1.4s ease-in-out infinite; }
.writer-lines { display: grid; gap: 7px; width: 100%; }
.writer-lines i { display: block; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 0%, #dfe6fb 40%, #eef1f6 80%); background-size: 220% 100%; animation: writer-shimmer 1.5s linear infinite, writer-type 2.4s ease-in-out infinite; transform-origin: left center; }
.writer-lines i:nth-child(1) { width: 62%; height: 12px; animation-delay: 0s, 0s; }
.writer-lines i:nth-child(2) { width: 100%; animation-delay: .1s, .3s; }
.writer-lines i:nth-child(3) { width: 92%; animation-delay: .2s, .6s; }
.writer-lines i:nth-child(4) { width: 97%; animation-delay: .3s, .9s; }
.writer-lines i:nth-child(5) { width: 70%; animation-delay: .4s, 1.2s; }
@keyframes writer-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@keyframes writer-type { 0% { transform: scaleX(.15); opacity: .4; } 45%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .4; } }
@keyframes writer-pen { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(3px, -2px) rotate(-8deg); } 50% { transform: translate(-2px, 1px) rotate(4deg); } 75% { transform: translate(2px, 2px) rotate(-4deg); } }
@keyframes writer-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43,71,201,.35); } 50% { box-shadow: 0 0 0 6px rgba(43,71,201,0); } }
@media (prefers-reduced-motion: reduce) {
    .writer-pen, .writer-steps li.is-active, .writer-lines i { animation: none; }
}
.path-progress { display: inline-block; margin: 3px 0 2px; padding: 2px 8px; color: #8a5a12; font-size: .66rem; font-weight: 800; background: #fff6df; border-radius: 6px; }
.path-progress.is-complete { color: #1f5e3a; background: #dff3e7; }
.path-item.is-live strong i { color: #2b47c9; background: #eef3ff; }
.path-item.is-live strong i.is-auto-done { color: #1f5e3a; background: #dff3e7; }
.path-item.is-live input[disabled] + span { cursor: default; }

/* ---- Riepilogo del piano e dei passaggi */
.plan-strip { margin: -4px 0 16px; padding: 10px 12px; background: #f6f8fc; border: 1px solid #e6eaf1; border-radius: 12px; }
.plan-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: .76rem; }
.plan-strip-head b { color: #273043; }
.plan-strip-head span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #6f7a8e; }
.plan-strip .dot { display: inline-block; width: 9px; height: 9px; margin-left: 4px; background: #fff; border: 2px solid #cfd6e2; border-radius: 50%; }
.plan-strip .dot.is-done { background: #59c98a; border-color: #59c98a; }
.plan-strip .dot.is-skipped { background: #f0b23c; border-color: #f0b23c; }
.plan-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.plan-dots button { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; color: #6f7a8e; font-size: .7rem; font-weight: 800; background: #fff; border: 2px solid #dde2ea; border-radius: 8px; cursor: pointer; transition: transform .15s, border-color .15s; }
.plan-dots button:hover { transform: translateY(-1px); border-color: var(--blue); }
.plan-dots button.is-done { color: #fff; background: #59c98a; border-color: #59c98a; }
.plan-dots button.is-skipped { color: #6b4a0b; background: #ffe7ad; border-color: #f0b23c; }
.plan-dots button.is-current { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(43,71,201,.2); }
.steps-summary { display: grid; grid-template-columns: auto minmax(80px,1fr); align-items: center; gap: 6px 12px; margin-top: 18px; padding: 10px 12px; font-size: .78rem; color: #4a5468; background: #f6f8fc; border: 1px solid #e6eaf1; border-radius: 12px; }
.steps-summary b { color: #273043; }
.steps-summary small { grid-column: 1 / -1; color: #6f7a8e; font-size: .72rem; }
.steps-bar { height: 8px; overflow: hidden; background: #e6eaf1; border-radius: 6px; }
.steps-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 6px; transition: width .4s; }
.steps-summary.is-complete { background: #effaf3; border-color: #cdebd8; }
.steps-summary.is-complete .steps-bar i { background: #59c98a; }
.skip-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; color: #6b4a0b; font-size: .62rem; font-style: normal; font-weight: 800; background: #ffe7ad; border-radius: 6px; vertical-align: middle; }
@media (max-width: 560px) { .steps-summary { grid-template-columns: 1fr; } }

/* ---- Strumenti dentro i passaggi */
.path-item .focus-insights, .path-item .focus-texts, .path-item .focus-check { margin-top: 12px; }
.focus-page .verdict { margin-left: 4px; }
.path-item .focus-insights, .path-item .focus-texts, .path-item .focus-check { padding: 12px 14px; background: #fff; border: 1px solid #e6eaf1; border-radius: 11px; }
.path-item .focus-check:empty { display: none; }

/* ---- Proposte operative: codice pronto, stato online, controlli */
.action-block { grid-column: 1 / -1; }
.action-list, .verify-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.action-list li { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.action-list p { margin: 0; color: #4a5468; font-size: .8rem; line-height: 1.55; }
.action-list .write-button { margin-top: 8px; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.code-row code { flex: 1 1 260px; min-width: 0; padding: 8px 10px; color: #273043; font-size: .74rem; background: #f1f4fa; border: 1px solid #dfe5ee; border-radius: 8px; overflow-wrap: anywhere; }
.snippet-state { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; }
.snippet-state.is-ok { color: #2c8a56; }
.snippet-state.is-todo { color: #9a6c22; }
.snippet-state.is-unknown { color: #8a94a8; }
.verify-list li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 9px 12px; font-size: .78rem; line-height: 1.5; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.verify-list b { display: grid; place-items: center; width: 22px; height: 22px; font-size: .7rem; border-radius: 7px; background: #eef1f6; }
.verify-list strong { display: block; color: #273043; font-weight: 650; }
.verify-list small { display: block; margin-top: 2px; color: #6f7a8e; }
.verify-list .is-ok b { color: #1f5e3a; background: #dff3e7; }
.verify-list .is-bad b { color: #a03a26; background: #ffe2dc; }
.verify-list .is-bad small { color: #a03a26; }
.verify-list .is-ok small { color: #2c8a56; }

/* ---- Una pagina per ogni ricerca */
.intent-tool { margin-top: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e6eaf1; border-radius: 11px; }
.intent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.intent-actions .write-button { margin-top: 0; }
.intent-actions small, .intent-done { color: #6f7a8e; font-size: .74rem; }
.intent-done { margin: 0 0 10px; color: #2c8a56; }
.intent-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.intent-list > li { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.intent-list > li.is-chosen { background: #f4fbf6; border-color: #cdebd8; }
.intent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.intent-head strong { color: #273043; font-size: .82rem; }
.intent-head small { flex-basis: 100%; color: #6f7a8e; font-size: .72rem; }
.intent-tag { padding: 2px 8px; font-size: .62rem; font-style: normal; font-weight: 800; border-radius: 6px; }
.intent-tag.is-info { color: #6b3d91; background: #f3eafd; }
.intent-tag.is-buy { color: #1d4ed8; background: #eaf0ff; }
.intent-tag.is-brand { color: #8a5a12; background: #fff1d2; }
.intent-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 8px; }
.intent-pages button { position: relative; display: grid; gap: 2px; padding: 8px 10px; color: #273043; text-align: left; background: #fff; border: 1px solid #dde2ea; border-radius: 9px; cursor: pointer; }
.intent-pages button:hover { border-color: var(--blue); }
.intent-pages button b { color: #8a94a8; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.intent-pages button span { font-size: .74rem; font-weight: 650; overflow-wrap: anywhere; }
.intent-pages button small { color: #8a94a8; font-size: .66rem; }
.intent-pages button em { position: absolute; top: 6px; right: 8px; font-size: .62rem; font-style: normal; font-weight: 800; }
.intent-pages button.is-reco { border: 2px solid var(--blue); background: #f3f6ff; }
.intent-pages button.is-reco em { color: var(--blue-dark); }
.intent-pages button.is-chosen { border: 2px solid #59c98a; background: #effaf3; }
.intent-pages button.is-chosen em { color: #2c8a56; }
.path-item.is-final { background: #f3f5ff; border-color: #c9d2ff; border-style: dashed; }
.path-item.is-final .path-mark { color: #fff; background: var(--blue-dark); }
.path-tool { margin: -2px 0 0; padding: 0 15px 13px 49px; }
.path-item.is-manual:has(.path-tool) .step-check { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.path-item.is-manual:has(.path-tool) .path-tool { background: #fff; border: 1px solid #dfe5ee; border-top: 0; border-radius: 0 0 13px 13px; }
.path-tool .intent-tool { margin-top: 0; }
.intent-pages button .intent-url { color: #273043; font-size: .76rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 560px) { .path-tool { padding-left: 15px; } }

/* ---- Dopo la scelta: cosa fare sulle pagine */
.intent-why { margin-bottom: 10px; padding: 9px 12px; color: #4a5468; font-size: .78rem; line-height: 1.6; background: #f3f6ff; border: 1px solid #dfe5fb; border-radius: 10px; }
.intent-why summary { color: var(--blue-dark); font-weight: 800; cursor: pointer; }
.intent-why p { margin: 6px 0 0; }
.intent-list > li.is-aligned { border-color: #59c98a; }
.intent-todo { margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px dashed #c9d2e3; border-radius: 10px; }
.intent-todo ol { display: grid; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.intent-todo li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; font-size: .77rem; line-height: 1.5; }
.intent-todo li > b { display: grid; place-items: center; width: 22px; height: 22px; font-size: .7rem; border-radius: 7px; background: #eef1f6; color: #6f7a8e; }
.intent-todo li.is-ok > b { color: #1f5e3a; background: #dff3e7; }
.intent-todo li.is-todo > b { color: #8a5a12; background: #fff1d2; }
.intent-todo strong { color: #273043; overflow-wrap: anywhere; }
.intent-todo p { margin: 2px 0 0; color: #4a5468; }
.intent-todo small { display: block; margin-top: 4px; color: #6f7a8e; font-size: .7rem; }
.intent-todo li.is-ok small { color: #2c8a56; }
.intent-todo small.is-warn { color: #9a6c22; }
.intent-todo .code-row { margin-top: 6px; }
.advice-choose { margin: 9px 8px 0 0; padding: 7px 12px; font-size: .74rem; }
.redo-line { margin: 10px 0 0; color: #9aa1ad; font-size: .72rem; text-align: right; }
.redo-line .target-link { margin-left: 0; color: #8a94a8; font-weight: 700; }
.redo-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; background: #fff8e8; border: 1px solid #f3dca6; border-radius: 10px; }
.redo-alert p { flex: 1 1 260px; margin: 0; color: #6b4a0b; font-size: .78rem; line-height: 1.5; }
.redo-alert .write-button { margin-top: 0; }
.action-list li.is-done { background: #f4fbf6; border-color: #cdebd8; }
.action-list li.is-done p { color: #7d8698; }
.snippet-state.is-human { color: #8a94a8; font-weight: 600; }
.link-idea { margin-top: 8px; padding: 9px 11px; background: #fff; border: 1px solid #e6eaf1; border-radius: 9px; }
.link-idea strong { display: block; color: #273043; font-size: .78rem; overflow-wrap: anywhere; }
.link-idea > small { display: block; margin-top: 2px; color: #6f7a8e; font-size: .7rem; }
.link-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: #8a94a8; font-size: .7rem; }
.link-alt .target-link { margin-left: 0; font-size: .7rem; }

/* ---- Passo 1: una pagina per ogni ricerca */
.keyword-map { margin: 0 0 18px; }
.map-loading { margin: 0; padding: 14px 16px; color: #4a5468; font-size: .82rem; background: #f3f6ff; border: 1px solid #dfe5fb; border-radius: 14px; }
.keyword-map-box { background: #fff; border: 2px solid #c9d2ff; border-radius: 16px; }
.keyword-map-box.is-pending { border-color: #f0b23c; box-shadow: 0 10px 30px rgba(240,178,60,.12); }
.keyword-map-box.is-complete { border-color: #cdebd8; }
.keyword-map-box > summary { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 4px 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.keyword-map-box > summary::-webkit-details-marker { display: none; }
.keyword-map-box > summary .detail-label { grid-column: 1 / -1; }
.keyword-map-box > summary strong { color: #273043; font-size: 1rem; }
.keyword-map-box.is-complete .steps-bar i { background: #59c98a; }
.keyword-map-box.is-pending .steps-bar i { background: #f0b23c; }
.keyword-map-body { padding: 0 18px 18px; }
.map-intro { margin: 0 0 12px; color: #4a5468; font-size: .82rem; line-height: 1.65; }
.map-list { margin-top: 10px; }
.map-list > li.map-done { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 12px; font-size: .78rem; background: #f4fbf6; border-color: #cdebd8; }
.map-done-query { color: #1f5e3a; font-weight: 750; }
.map-done-page { color: #4a5468; overflow-wrap: anywhere; }
.map-stats { color: #8a94a8; font-size: .7rem; }
.map-by-page { margin-top: 16px; }
.map-by-page ul { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.map-by-page li { display: grid; gap: 2px; padding: 8px 12px; font-size: .76rem; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 9px; }
.map-by-page strong { color: #273043; overflow-wrap: anywhere; }
.map-by-page span { color: #6f7a8e; }
.redo-alert .target-link { margin-left: 4px; }
.focus-locked { padding: 18px 4px; text-align: center; }
.focus-locked h3 { margin: 6px 0 8px; }
.focus-locked p { max-width: 560px; margin: 0 auto 14px; color: #4a5468; font-size: .86rem; line-height: 1.6; }
@media (max-width: 560px) { .keyword-map-box > summary { grid-template-columns: 1fr; } }

/* ---- Riquadri pagina: scegli / apri / redirect */
.intent-pages .page-card { display: grid; gap: 4px; }
.intent-pages .page-card > .page-pick { width: 100%; }
.intent-pages .page-card.is-reco > .page-pick { border: 2px solid var(--blue); background: #f3f6ff; }
.intent-pages .page-card.is-reco > .page-pick em { color: var(--blue-dark); }
.intent-pages .page-card.is-chosen > .page-pick { border: 2px solid #59c98a; background: #effaf3; }
.intent-pages .page-card.is-chosen > .page-pick em { color: #2c8a56; }
.page-card-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px; font-size: .68rem; }
.page-card-actions a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.page-card-actions a:hover { text-decoration: underline; }
.page-card-actions .target-link { margin-left: 0; font-size: .68rem; }
.redirect-mark { font-weight: 750; color: #8a94a8; }
.redirect-mark.is-ok { color: #2c8a56; }
.redirect-mark.is-todo, .redirect-mark.is-warn { color: #9a6c22; }
.redirect-mark.is-bad { color: #b4472f; }
.map-list .target-url-form { margin: 8px 0 0; }

/* ---- Elenco redirect */
.redirects { margin: 0 0 18px; }
.redirects-box { background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; }
.redirects-box > summary { display: grid; gap: 2px; padding: 12px 18px; cursor: pointer; list-style: none; }
.redirects-box > summary::-webkit-details-marker { display: none; }
.redirects-box > summary strong { color: #273043; font-size: .92rem; }
.redirects-body { padding: 0 18px 16px; }
.redirect-form { margin-bottom: 12px; }
.redirect-form input { flex: 1 1 220px; }
.redirect-form > span { color: #8a94a8; font-weight: 800; }
.redirect-list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.redirect-list > li { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-left: 4px solid #cfd6e2; border-radius: 10px; }
.redirect-list > li.is-ok { border-left-color: #59c98a; }
.redirect-list > li.is-todo, .redirect-list > li.is-warn { border-left-color: #f0b23c; }
.redirect-list > li.is-bad { border-left-color: #ef6a5a; }
.redirect-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8rem; }
.redirect-head b { color: #273043; overflow-wrap: anywhere; }
.redirect-head > span { color: #8a94a8; }
.redirect-head a { color: var(--blue-dark); text-decoration: none; }
.redirect-state { margin-left: auto; padding: 2px 8px; font-size: .64rem; font-style: normal; font-weight: 800; color: #6f7a8e; background: #eef1f6; border-radius: 6px; }
.redirect-state.is-ok { color: #1f5e3a; background: #dff3e7; }
.redirect-state.is-todo, .redirect-state.is-warn { color: #8a5a12; background: #fff1d2; }
.redirect-state.is-bad { color: #a03a26; background: #ffe2dc; }
.redirect-list small { display: block; margin-top: 4px; color: #6f7a8e; font-size: .72rem; }
.redirect-how { margin-top: 6px; font-size: .74rem; color: #4a5468; }
.redirect-how summary { color: var(--blue-dark); font-weight: 750; cursor: pointer; }
.redirect-how p { margin: 6px 0; line-height: 1.55; }
.redirect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.redirect-actions .ghost-button { padding: 6px 10px; font-size: .72rem; }
.redirect-actions .target-link.is-armed { color: #b4472f; font-weight: 800; }
.intent-pages .page-card-actions button.target-link { display: inline; position: static; padding: 0; color: var(--blue-dark); font-weight: 700; text-align: left; background: transparent; border: 0; border-radius: 0; text-decoration: underline; }

/* ---- Passo 1 su due colonne */
.map-columns { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 14px; align-items: start; margin-top: 10px; }
.map-col { min-width: 0; padding: 10px; border-radius: 12px; }
.map-col.is-todo { background: #fffaf0; border: 1px solid #f3dca6; }
.map-col.is-done { background: #f4fbf6; border: 1px solid #cdebd8; }
.map-col h4 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 8px; color: #273043; font-size: .82rem; }
.map-col h4 b { padding: 1px 8px; font-size: .7rem; color: #fff; border-radius: 999px; background: #f0b23c; }
.map-col.is-done h4 b { background: #59c98a; }
.map-col .map-list { margin-top: 0; }
.map-col.is-done .map-list > li.map-done { background: #fff; }
.map-empty { margin: 4px; color: #6f7a8e; font-size: .76rem; }
@media (max-width: 900px) { .map-columns { grid-template-columns: 1fr; } }

/* ---- Passo 1 nella barra in alto */
button.workflow-step { font: inherit; color: inherit; text-align: left; background: transparent; cursor: pointer; }
button.workflow-step.is-active { background: #f1f4ff; }
button.workflow-step:hover { background: #f4f6fa; border-color: #e3e7ef; }
button.workflow-step.is-active:hover { background: #e9eeff; border-color: #c9d2ff; }

/* ---- Note sulle ricerche */
.kw-note-slot { flex-basis: 100%; margin-top: 6px; }
.kw-note-add { margin-left: 0; font-size: .7rem; color: #8a94a8; }
.kw-note { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 7px 10px; background: #fffbea; border: 1px solid #f3e2a8; border-radius: 9px; }
.kw-note p { margin: 0; color: #5c4a12; font-size: .76rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.kw-note label { position: relative; cursor: pointer; }
.kw-note input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kw-note label span { display: grid; place-items: center; width: 18px; height: 18px; color: transparent; font-size: .6rem; font-weight: 900; background: #fff; border: 1.5px solid #e2cf8d; border-radius: 5px; }
.kw-note input:checked + span { color: #17220b; background: var(--lime); border-color: var(--lime); }
.kw-note.is-done { background: #f4fbf6; border-color: #cdebd8; }
.kw-note.is-done p { color: #7d8698; text-decoration: line-through; }
.kw-note .target-link { margin-left: 0; font-size: .68rem; }
.kw-note-form { display: grid; gap: 6px; }
.kw-note-form textarea { width: 100%; padding: 7px 10px; font: inherit; font-size: .78rem; border: 1px solid #e2cf8d; border-radius: 8px; resize: vertical; }
.kw-note-form div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kw-note-form button[type="submit"] { padding: 6px 12px; color: #fff; font-size: .72rem; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }
.map-notes-count { grid-column: 1 / -1; color: #8a5a12; font-size: .72rem; font-weight: 750; }
.query-detail .kw-note-slot { margin: 0 0 8px; }

.redirect-choices { flex-basis: 100%; display: grid; gap: 4px; margin: 2px 0 0; padding: 8px 10px; background: #fafbfd; border: 1px dashed #d5dbe6; border-radius: 9px; }
.redirect-choices legend { padding: 0 4px; color: #4a5468; font-size: .72rem; font-weight: 700; }
.redirect-choices label { display: flex; align-items: center; gap: 6px; color: #273043; font-size: .74rem; overflow-wrap: anywhere; cursor: pointer; }

/* ---- Redirect nel campo «altra pagina» */
.redirect-choices { display: grid; gap: 8px; padding: 10px 12px; background: #f7f9fd; border: 1px solid #dfe5ee; border-style: solid; }
.rc-title { margin: 0; color: #273043; font-size: .78rem; font-weight: 800; }
.rc-title small { margin-left: 6px; color: #8a94a8; font-weight: 600; }
.rc-help { margin: 0; color: #6f7a8e; font-size: .72rem; line-height: 1.5; }
.redirect-choices .rc-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid #dde2ea; border-radius: 9px; cursor: pointer; }
.redirect-choices .rc-row:has(input:checked) { border-color: var(--blue); background: #f3f6ff; }
.rc-page { display: grid; gap: 1px; min-width: 0; }
.rc-page small { color: #8a94a8; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.rc-page b { color: #273043; font-size: .74rem; overflow-wrap: anywhere; }
.rc-arrow { color: var(--blue-dark); font-weight: 900; }
@media (max-width: 560px) { .redirect-choices .rc-row { grid-template-columns: auto minmax(0,1fr); } .rc-arrow { display: none; } }

/* ---- Note come lista di cose da fare */
.kw-note { display: block; }
.kw-note-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kw-note-head b { color: #5c4a12; font-size: .74rem; }
.kw-note ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.kw-note li label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 8px; cursor: pointer; }
.kw-note li input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kw-note li span { display: grid; place-items: center; width: 18px; height: 18px; color: transparent; font-size: .6rem; font-weight: 900; background: #fff; border: 1.5px solid #e2cf8d; border-radius: 5px; }
.kw-note li input:checked + span { color: #17220b; background: var(--lime); border-color: var(--lime); }
.kw-note li em { color: #5c4a12; font-size: .76rem; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }
.kw-note li.is-done em { color: #9aa1ad; text-decoration: line-through; }
.kw-note.is-done .kw-note-head b { color: #2c8a56; }
.kw-note-form small { color: #8a94a8; font-size: .68rem; }

/* ---- Redirect in una riga */
.rc-mini { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #4a5468; font-size: .74rem; cursor: pointer; }
.rc-mini b { color: #273043; overflow-wrap: anywhere; }

/* ---- Gruppi di ricerche */
.kw-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.kw-member { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; color: #273043; font-size: .72rem; font-weight: 700; background: #eef3ff; border: 1px solid #d3defb; border-radius: 999px; }
.kw-member button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; color: #6f7a8e; font-size: .58rem; background: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.kw-member button:hover { color: #fff; background: #e25a48; }
.kw-group-add { margin-left: 0; font-size: .7rem; color: #8a94a8; }
.kw-group-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; color: #4a5468; }
.kw-group-form select { max-width: 100%; padding: 6px 8px; font: inherit; border: 1px solid #d5dbe6; border-radius: 8px; }
.kw-group-form button[type="submit"] { padding: 6px 12px; color: #fff; font-size: .72rem; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }

/* ---- Ricerche e pagine prima del piano */
.keyword-stage { padding: 30px 44px 0; }
.keyword-stage:has(> section:not([hidden])) + .plan-view { padding-top: 12px; }
.keyword-stage .keyword-map:last-child, .keyword-stage .redirects:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .keyword-stage { padding: 20px 14px 0; } }
.workflow-step.is-link { cursor: pointer; }
.map-phases { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.map-phases button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; color: #4a5468; font-size: .76rem; font-weight: 750; background: #f3f5f9; border: 1px solid #dde2ea; border-radius: 999px; cursor: pointer; }
.map-phases button.is-current { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.map-phases button.is-done:not(.is-current) { color: #1f5e3a; background: #dff3e7; border-color: #cdebd8; }
.group-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.group-list > li { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.group-list > li.has-members { background: #f3f6ff; border-color: #d3defb; }
.groups-done-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; background: #effaf3; border: 1px solid #cdebd8; border-radius: 10px; }
.groups-done-bar p { margin: 0; color: #1f5e3a; font-size: .78rem; }
.groups-done-bar .write-button { margin-top: 0; }
.plan-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; padding: 12px 14px; background: #f3f6ff; border: 1px solid #c9d2ff; border-radius: 12px; }
.plan-gate p { margin: 0; color: #273043; font-size: .8rem; }
.plan-gate .write-button { margin-top: 0; }
.plan-gate .write-button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Attesa dell'IA: si vede che sta lavorando */
.workflow-progress.is-waiting .progress-track span { background: linear-gradient(90deg, var(--blue), var(--purple), #c9d2ff, var(--purple), var(--blue)); background-size: 300% 100%; transition: width .5s linear; animation: progress-flow 2.4s linear infinite; }
.workflow-progress.is-waiting .activity-orb i { animation-duration: 1.1s; }
.workflow-progress.is-waiting .activity-orb::before { animation: orb-glow 1.8s ease-in-out infinite; }
.workflow-progress.is-waiting [data-progress-title]::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; }
.workflow-progress.is-waiting [data-progress-count] { font-variant-numeric: tabular-nums; }
[data-progress-title].is-new { animation: title-in .45s ease; }
@keyframes progress-flow { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes orb-glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes title-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .workflow-progress.is-waiting .progress-track span, .workflow-progress.is-waiting .activity-orb::before, [data-progress-title].is-new { animation: none; }
}

/* ---- Lavagna «metti insieme le parole» */
.kw-board.is-busy { opacity: .6; pointer-events: none; }
.kw-board-title { margin: 0 0 10px; color: #273043; font-size: 1.05rem; }
.kw-board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.kw-board-bar small { color: #6f7a8e; font-size: .74rem; }
.kw-board-bar .ghost-button.is-armed { color: #fff; background: #e25a48; border-color: #e25a48; }
.kw-board-note { margin: 0 0 12px; padding: 8px 12px; color: #2b47c9; font-size: .78rem; background: #f3f6ff; border-radius: 9px; }
.kw-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kw-gcard { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 64px; padding: 10px; background: #f3f6ff; border: 2px solid #d3defb; border-radius: 14px; transition: border-color .15s, background .15s, transform .15s; }
.kw-gcard.is-new { align-items: center; justify-content: center; color: #8a94a8; font-size: .74rem; background: #fafbfd; border: 2px dashed #d5dbe6; }
.kw-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 64px; padding: 12px; background: #fafbfd; border: 2px dashed #d5dbe6; border-radius: 14px; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.kw-pool-label { flex-basis: 100%; color: #8a94a8; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.kw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; color: #273043; font-size: .8rem; font-weight: 700; background: #fff; border: 1.5px solid #dde2ea; border-radius: 999px; box-shadow: 0 2px 6px rgba(30,45,110,.06); cursor: grab; user-select: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kw-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(30,45,110,.12); border-color: var(--blue); }
.kw-chip small { color: #9aa1ad; font-size: .64rem; font-weight: 700; }
.kw-chip.is-leader { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.kw-chip.is-leader small { color: #c9d2ff; }
.kw-chip.is-selected { outline: 3px solid #f0b23c; outline-offset: 2px; transform: translateY(-2px) scale(1.04); }
.kw-chip.is-dragging { opacity: .35; }
.kw-chip.is-over, .kw-gcard.is-over, .kw-pool.is-over { border-color: #f0b23c; background: #fff8e8; transform: scale(1.03); }
.kw-board-wait { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kw-board-wait i { display: block; width: 110px; height: 32px; border-radius: 999px; background: linear-gradient(90deg, #eef1f6 0%, #dfe6fb 40%, #eef1f6 80%); background-size: 220% 100%; animation: writer-shimmer 1.4s linear infinite; }
.kw-board-wait i:nth-child(3n) { width: 150px; } .kw-board-wait i:nth-child(4n) { width: 90px; }
@media (prefers-reduced-motion: reduce) { .kw-board-wait i { animation: none; } .kw-chip:hover { transform: none; } }
.kw-gcard.is-solo { background: #fffaf0; border-color: #f3dca6; border-style: dashed; }
.kw-solo-hint { flex-basis: 100%; color: #9a6c22; font-size: .7rem; }
.kw-gcard.is-home { background: #fff8e8; border-color: #f0b23c; }
.kw-card-label { flex-basis: 100%; color: #8a5a12; font-size: .78rem; font-weight: 800; }
.kw-card-label small { margin-left: 4px; color: #a98a4e; font-weight: 600; }
.kw-chip.is-moved { animation: chip-moved 1.6s ease; }
@keyframes chip-moved { 0% { box-shadow: 0 0 0 0 rgba(240,178,60,.9); transform: scale(1.12); } 40% { box-shadow: 0 0 0 10px rgba(240,178,60,0); transform: scale(1); } 100% { box-shadow: 0 2px 6px rgba(30,45,110,.06); } }
@media (prefers-reduced-motion: reduce) { .kw-chip.is-moved { animation: none; outline: 3px solid #f0b23c; } }

/* ---- Passo 03: selezione + «Applica» */
.intent-pages .page-card.is-draft > .page-pick { border: 2px solid #f0b23c; background: #fff8e8; }
.intent-pages .page-card.is-draft > .page-pick em { color: #8a5a12; }
.map-apply { display: grid; gap: 8px; margin-top: 10px; }
.map-apply-url { display: grid; gap: 4px; color: #4a5468; font-size: .74rem; font-weight: 700; }
.map-apply-url input { width: 100%; padding: 8px 10px; font: inherit; font-weight: 400; border: 1px solid #d5dbe6; border-radius: 9px; }
.rc-list { display: grid; gap: 4px; }
.rc-mini { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: start; gap: 8px; color: #4a5468; font-size: .74rem; line-height: 1.45; cursor: pointer; }
.rc-mini input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.rc-mini b { color: #273043; overflow-wrap: anywhere; }
.map-apply-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 8px; border-top: 1px solid #e6eaf1; }
.map-apply-bar small { color: #6f7a8e; font-size: .72rem; overflow-wrap: anywhere; }
.map-apply-bar small b { color: #273043; }
.map-apply-bar button { padding: 8px 18px; color: #fff; font-size: .78rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; }
.map-apply-bar button[disabled] { opacity: .6; cursor: wait; }

/* ---- Struttura del sito */
.map-tree { margin-top: 16px; padding: 12px 14px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 12px; }
.tree-node { margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; }
.tree-parent { color: #273043; font-size: .84rem; overflow-wrap: anywhere; }
.tree-parent small, .tree-node li > small { color: #8a94a8; font-weight: 600; }
.tree-node ul { display: grid; gap: 10px; margin: 8px 0 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid #e6eaf1; }
.tree-node li > b { color: #273043; font-size: .78rem; overflow-wrap: anywhere; }
.tree-link { margin-top: 6px; }
.tree-link .snippet-state { margin-top: 0; }
.tree-warn { display: block; margin-top: 6px; color: #9a6c22; font-size: .72rem; }
.map-tree > .ghost-button { margin-top: 10px; }
.write-button.is-calling { animation: calling 1.2s ease-in-out 4; }
@keyframes calling { 0%, 100% { box-shadow: 0 0 0 0 rgba(43,71,201,.45); } 50% { box-shadow: 0 0 0 10px rgba(43,71,201,0); } }

/* ---- Checklist snella */
.path { gap: 0; margin-top: 16px; border-top: 1px solid #edf0f5; }
.path-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #edf0f5; }
.path-num, .path-check > span { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: #8a94a8; font-size: .66rem; font-weight: 850; background: #f1f4f8; border: 1.5px solid #dfe5ee; border-radius: 7px; }
.path-num.is-on, .path-check input:checked + span, .path-check.is-on > span { color: #17220b; background: var(--lime); border-color: var(--lime); }
.path-check { position: relative; cursor: pointer; }
.path-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.path-check > span { color: transparent; background: #fff; }
.path-check.is-locked { cursor: default; }
.path-check.is-locked > span { background: #f6f8fb; border-style: dashed; }
.path-check.is-locked.is-on > span { border-style: solid; }
.path-main { min-width: 0; }
.path-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.path-title strong { color: #273043; font-size: .86rem; line-height: 1.45; }
.path-row.is-done .path-title strong { color: #7d8698; }
.path-who { color: #9a6c22; font-size: .62rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.path-row .path-progress { margin: 0; }
.path-ignored { color: #8a94a8; font-size: .66rem; font-weight: 700; }
.path-main > p { margin: 3px 0 0; color: #6f7a8e; font-size: .78rem; line-height: 1.55; }
.path-main > .focus-insights, .path-main > .focus-texts, .path-main > .focus-check, .path-main > .intent-tool { margin-top: 10px; }
.path-ignore { padding: 2px 0; color: #8a94a8; font-size: .7rem; font-weight: 700; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.path-ignore:hover { color: var(--blue-dark); }
.focus-actions { justify-content: space-between; }
.focus-tools, .focus-main-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.focus-tools .page-analysis-button { padding: 11px 15px; font-size: .76rem; }
.insights-table th i.q-mine { color: #1f5e3a; background: #dff3e7; }
.insights-table th i.q-elsewhere { color: #5f687b; background: #eef1f6; }
/* Il contenuto che si ridisegna non deve trascinare lo scorrimento della pagina. */
.focus-card, .keyword-stage, .task-board, .site-map { overflow-anchor: none; }
.check-table tr.is-ignored td, .check-table tr.is-ignored th { opacity: .55; }
.check-table th .path-ignore { display: inline-block; margin-top: 4px; }
.path-toggle { display: inline-flex; align-items: baseline; gap: 8px; padding: 0; font: inherit; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.path-toggle span { color: #8a94a8; font-size: .7rem; transition: transform .2s; }
.path-toggle.is-open span { transform: rotate(90deg); }
.path-toggle:hover strong { color: var(--blue-dark); }

/* ---- Andamento + risultato Google affiancati */
.focus-trend-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: stretch; margin-top: 16px; }
.focus-trend-row .focus-trend:not(:empty) { margin-top: 0; }
.focus-trend-row .trend-now { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
.focus-serp { min-width: 0; }
.focus-serp .serp { height: 100%; margin: 0; }
.focus-serp .serp-missing { height: 100%; margin: 0; display: grid; place-items: center; padding: 16px; text-align: center; }
.serp-fav img { display: block; width: 18px; height: 18px; border-radius: 4px; }
@media (max-width: 760px) { .focus-trend-row { grid-template-columns: 1fr; } }

/* ---- Mappa del sito: si vede che si apre */
.site-map-box { border: 2px solid #c9d2ff; box-shadow: 0 10px 28px rgba(43,71,201,.08); transition: box-shadow .2s, border-color .2s; }
.site-map-box:not([open]):hover { border-color: var(--blue); box-shadow: 0 14px 34px rgba(43,71,201,.16); }
.site-map-box > summary { padding-right: 170px; background: linear-gradient(110deg, #f3f6ff, #fff 60%); border-radius: 16px; }
.site-map-box > summary::after { content: "Apri la mappa ▸"; width: auto; height: auto; padding: 9px 14px; color: #fff; font-size: .76rem; background: var(--blue-dark); border-radius: 10px; box-shadow: 0 6px 16px rgba(43,71,201,.25); }
.site-map-box[open] > summary::after { content: "Chiudi ▴"; color: var(--blue-dark); background: #eef1ff; box-shadow: none; }
.site-map-box:not([open]) > summary::after { animation: map-nudge 2.6s ease-in-out 3; }
@keyframes map-nudge { 0%, 70%, 100% { transform: translateY(-50%); } 80% { transform: translateY(-50%) translateX(4px); } 90% { transform: translateY(-50%) translateX(-2px); } }
@media (max-width: 560px) { .site-map-box > summary { padding-right: 22px; padding-bottom: 60px; } .site-map-box > summary::after { top: auto; bottom: 14px; left: 22px; right: auto; transform: none; animation: none; } }
@media (prefers-reduced-motion: reduce) { .site-map-box:not([open]) > summary::after { animation: none; } }
.serp-dots { color: inherit; cursor: help; }
.serp-legend + .serp-legend { display: none; }
.focus-serp .serp-missing { display: grid; gap: 10px; place-items: center; align-content: center; }
.focus-serp .serp-missing p { margin: 0; color: #4a5468; font-size: .82rem; font-weight: 700; }
.path-side { align-self: center; }
.path-side .page-analysis-button { padding: 10px 14px; font-size: .76rem; white-space: nowrap; }
@media (max-width: 560px) { .path-row { grid-template-columns: 26px minmax(0,1fr); } .path-side { grid-column: 2; justify-self: start; } }
.path-side { display: grid; justify-items: end; gap: 4px; }
.target-pick.is-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; background: #fafbfd; border-color: #e6eaf1; }
.target-pick.is-compact b { color: #4a5468; font-size: .74rem; }
.target-pick.is-compact .target-chips { margin-top: 0; }
.target-chip small { margin-left: 3px; color: #8a94a8; font-size: .64rem; }

/* ---- Redirect della pagina e note/redirect dell'attività */
.redirect-banner { margin: 10px 0 0; padding: 8px 12px; color: #6b4a0b; font-size: .78rem; background: #fff8e8; border: 1px solid #f3dca6; border-radius: 10px; }
.redirect-banner b { color: #273043; }
.redirect-banner .target-link { margin-left: 6px; }
.task-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.task-extras > div { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
.task-extra-note { margin-top: 6px; }
.task-extra-note > strong { display: block; margin-bottom: 4px; color: #273043; font-size: .76rem; }
.task-redirects { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.task-redirects li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .74rem; color: #273043; overflow-wrap: anywhere; }
.task-redirects .redirect-state { margin-left: 0; }

/* ---- Barra degli strumenti a richiesta */
.workflow-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 44px 0; }
.workflow-tools[hidden] { display: none; }
.workflow-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; color: #4a5468; font-size: .76rem; font-weight: 750; background: #fff; border: 1px solid #dde2ea; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.workflow-tools button:hover { border-color: var(--blue); color: var(--blue-dark); }
.workflow-tools button.is-active { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.workflow-tools button span { color: inherit; opacity: .8; font-weight: 700; }
.workflow-step.is-open { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,108,255,.12); }
@media (max-width: 760px) { .workflow-tools { padding: 10px 14px 0; justify-content: flex-start; } }
.workflow-topline .workflow-tools { padding: 0; }
@media (max-width: 760px) { .workflow-topline { flex-wrap: wrap; gap: 10px; } .workflow-topline .workflow-tools { padding: 0; } }

/* ---- Assistenti IA */
.agents { margin: 0 0 18px; }
.agents-box { padding: 14px 18px; background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; }
.agents-status { margin: 4px 0 12px; padding: 9px 12px; font-size: .8rem; border-radius: 10px; background: #f3f5f9; color: #4a5468; }
.agents-status.is-ok { color: #1f5e3a; background: #effaf3; }
.agents-status.is-todo { color: #6b4a0b; background: #fff8e8; }
.agents-status.is-bad { color: #a03a26; background: #fff1ee; }
.agents-pre { max-height: 320px; overflow: auto; margin: 6px 0 10px; padding: 12px 14px; color: #273043; font-size: .74rem; line-height: 1.55; white-space: pre-wrap; background: #f6f8fc; border: 1px solid #e6eaf1; border-radius: 10px; }
.agents-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ---- Ruolo della pagina */
.role-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 8px 12px; font-size: .78rem; color: #4a5468; border-radius: 10px; }
.role-box b { color: #273043; }
.role-box a { color: var(--blue-dark); }
.role-box.is-set { background: #f3f6ff; border: 1px solid #dfe5fb; }
.role-box.is-suggested { background: #fffaf0; border: 1px dashed #f0b23c; }
.role-box .ghost-button { padding: 5px 11px; font-size: .72rem; }
.role-box.is-editing { display: grid; gap: 8px; background: #fafbfd; border: 1px solid #e6eaf1; }
.role-box.is-editing label { display: grid; gap: 4px; font-weight: 700; }
.role-box.is-editing select, .role-box.is-editing input { padding: 7px 10px; font: inherit; font-weight: 400; border: 1px solid #d5dbe6; border-radius: 8px; }
.role-box.is-editing div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role-box.is-editing button[type="submit"] { padding: 7px 14px; color: #fff; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }
.workflow-tools button[hidden] { display: none; }

/* ---- Pagine da controllare: righe richiudibili e redirect */
.page-row-body > summary { list-style: none; cursor: pointer; }
.page-row-body > summary::-webkit-details-marker { display: none; }
.page-row-caret { display: inline-block; margin-right: 2px; color: #8a94a8; font-size: .66rem; transition: transform .2s; }
.page-row-body[open] .page-row-caret { transform: rotate(90deg); }
.page-redirect { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: .74rem; color: #4a5468; }
.page-redirect b { color: #273043; overflow-wrap: anywhere; }
.page-redirect.is-form input { flex: 1 1 220px; min-width: 0; padding: 6px 9px; font: inherit; border: 1px solid #d5dbe6; border-radius: 8px; }
.page-redirect.is-form button { padding: 6px 12px; color: #fff; font-size: .72rem; font-weight: 750; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }
.page-redirect .redirect-state { margin-left: 0; }

/* ---- Squadra del sito */
.team-banner { margin: 0 0 14px; padding: 10px 14px; color: #273043; font-size: .8rem; line-height: 1.55; background: #f3f6ff; border: 1px solid #dfe5fb; border-radius: 12px; }
.team-banner small { color: #8a94a8; }
.team-banner span { display: block; color: #6f7a8e; font-size: .74rem; }
.by-label { margin-left: 4px; color: #8a94a8; font-size: .68rem; font-weight: 600; }
[data-regenerate].is-armed, [data-map-regenerate].is-armed { color: #fff; background: #e25a48; border-color: #e25a48; }
.team-banner .team-line .target-link { margin-left: 2px; font-size: .72rem; }
.team-banner .target-link.is-armed { color: #b4472f; font-weight: 800; }
.role-tag { margin-left: 6px; padding: 1px 7px; color: #2b47c9; font-size: .62rem; font-style: normal; font-weight: 800; background: #eef3ff; border-radius: 6px; vertical-align: middle; }
.lock-tag.is-shared { color: #2b47c9; background: #eef3ff; }
.fresh-tile.is-shared { border-style: dashed; }

/* Passo 02: che cos'è ogni pagina */
.rb-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 0 0 12px; }
.rb-group { padding: 10px 12px; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; }
.rb-group h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-size: .82rem; color: #273043; }
.rb-group h4 b { padding: 0 7px; font-size: .68rem; color: #4a5468; background: #f0f2f6; border-radius: 999px; }
.rb-group h4 small { flex-basis: 100%; color: #7a8497; font-size: .7rem; font-weight: 500; }
.rb-group.is-utility, .rb-group.is-legal { background: #fafbfc; border-style: dashed; }
.rb-group ul { margin: 0; padding: 0; list-style: none; }
.rb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f0f2f6; }
.rb-row:first-child { border-top: 0; }
.rb-page { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rb-page a { color: #273043; font-size: .78rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.rb-page a:hover { text-decoration: underline; }
.rb-page small { color: #7a8497; font-size: .68rem; }
.rb-page .rb-warn { color: #a5561d; }
.rb-row select { max-width: 46%; padding: 4px 6px; font-size: .72rem; border: 1px solid #dde2ea; border-radius: 7px; background: #fff; }
.rb-row.is-saved select { border-color: #cdebd8; background: #f4fbf7; }
/* Proposta dei tipi con l'IA (passo «Pagine» e Fase 2) */
.rb-ai { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; color: #273043; font-size: .8rem; line-height: 1.45; background: linear-gradient(135deg, #f1f3ff, #f7f2ff); border: 1px solid #dcd6ff; border-radius: 12px; }
.rb-ai > span:not(.mini-spinner) { flex: 1 1 320px; }
.rb-ai button { padding: 8px 14px; color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; background: var(--purple); border: 0; border-radius: 9px; cursor: pointer; }
.rb-ai.is-busy { justify-content: flex-start; gap: 10px; font-weight: 600; }
.rb-ai.is-busy .mini-spinner { width: 16px; height: 16px; margin: 0; border-color: rgba(139,108,255,.25); border-top-color: var(--purple); }
.rb-ai.is-progress { flex-wrap: wrap; align-items: center; }
.rb-ai-text { display: flex; flex: 1 1 260px; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rb-ai-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-ai-counts i { padding: 2px 9px; color: #3d3466; font-size: .74rem; font-style: normal; font-weight: 800; background: #fff; border: 1px solid #dcd6ff; border-radius: 99px; font-variant-numeric: tabular-nums; }
.rb-ai-counts i.is-fixed { color: #fff; background: var(--purple); border-color: var(--purple); }
.rb-ai-counts i.is-skipped { color: #318c5f; border-color: #cfe9d6; }
.rb-ai-counts i.is-missed { color: #a5561d; border-color: #f2d9c4; }
.rb-ai-bar { flex: 1 1 100%; height: 6px; overflow: hidden; background: rgba(139,108,255,.15); border-radius: 99px; }
.rb-ai-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; }
.pp-fixed { color: #6b4fe0; font-weight: 700; }
.rb-ai.is-done { color: #4a5468; background: #f6f7fb; border-color: var(--line); }
.rb-new { padding: 1px 7px; color: #2b47c9; font-size: .62rem; font-style: normal; font-weight: 800; background: #eef3ff; border-radius: 6px; }
button.workflow-step[data-step-jump]:not(.is-complete) { cursor: default; }
button.workflow-step[data-step-jump]:not(.is-complete):hover { background: transparent; border-color: transparent; }

/* Passi 02-04: un passo alla volta, con la sua testata */
.keyword-map-box.is-stage { border-width: 1px; }
.keyword-map-box.is-stage.is-pending { border: 2px solid #f0b23c; }
.map-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 4px; }
.map-stage-head > div { display: grid; gap: 3px; }
.map-stage-head strong { color: #1a2233; font-size: 1rem; }
.map-stage-head .target-link { flex: none; font-size: .74rem; }
.map-list li.is-flash { animation: row-flash 1.6s ease; }
@keyframes row-flash { 0%, 60% { background: #fff6d6; } 100% { background: transparent; } }

/* Post-it delle note, a parte */
.note-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 320px; max-height: min(60vh, 460px); display: flex; flex-direction: column; background: #fffdf3; border: 1px solid #f1dfa0; border-radius: 14px; box-shadow: 0 18px 40px rgba(30,40,60,.18); }
.note-float > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f3e7bb; }
.note-float > header strong { color: #5d4710; font-size: .82rem; }
.note-float > header .target-link { padding: 0 6px; font-size: 1rem; line-height: 1; text-decoration: none; }
.note-float-body { overflow-y: auto; padding: 8px 14px 12px; }
.note-float-item { padding: 6px 0; border-top: 1px dashed #f0e1ad; }
.note-float-item:first-child { border-top: 0; }
.note-float-query { display: inline-block; margin-bottom: 2px; color: #273043; font-size: .76rem; font-weight: 800; }
.note-float .kw-note { margin: 0; background: transparent; border: 0; padding: 0; }
.note-float.is-min { width: auto; background: transparent; border: 0; box-shadow: none; }
.note-float-pill { padding: 9px 14px; color: #5d4710; font: inherit; font-size: .82rem; font-weight: 800; background: #fff3c4; border: 1px solid #f1dfa0; border-radius: 999px; box-shadow: 0 10px 24px rgba(30,40,60,.16); cursor: pointer; }
@media (max-width: 560px) { .note-float { right: 10px; left: 10px; bottom: 10px; width: auto; } .note-float.is-min { left: auto; } }

/* Testata compatta quando si scorre (pagina di un progetto) */
.brand-text { display: grid; line-height: 1.05; }
.brand-project, .header-steps, .header-info { display: none; }
.app-header.has-compact { transition: min-height .2s, box-shadow .2s; }
.app-header.is-compact { min-height: 58px; gap: 18px; box-shadow: 0 8px 24px rgba(30,40,60,.08); }
.app-header.is-compact .header-actions { display: none; }
.app-header.is-compact .brand-project { display: block; max-width: 180px; overflow: hidden; color: #6c7588; font-size: .72rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.app-header.is-compact .header-steps { display: flex; flex: 1; justify-content: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.app-header.is-compact .header-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hs-step { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; color: #9aa2b2; font: inherit; font-size: .74rem; font-weight: 750; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; }
.hs-step i { display: grid; place-items: center; width: 20px; height: 20px; color: #8a93a5; font-size: .58rem; font-style: normal; font-weight: 850; background: #fff; border: 1px solid #dfe4ec; border-radius: 7px; }
.hs-step.is-complete { color: #1a2233; }
.hs-step.is-complete i { font-size: 0; color: #18301c; background: var(--lime); border-color: var(--lime); }
.hs-step.is-complete i::after { content: "✓"; font-size: .66rem; }
.hs-step.is-active { color: var(--blue-dark); background: #f1f4ff; border-color: #d9e0ff; }
.hs-step.is-active i { color: #fff; background: var(--blue); border-color: var(--blue); }
.hs-step.is-open { border-color: var(--blue); }
.hs-step:not([disabled]):hover { background: #f4f6fa; border-color: #e3e7ef; }
.hs-step[disabled] { cursor: default; }
.hs-progress { display: inline-grid; gap: 3px; color: #6c7588; font-size: .7rem; white-space: nowrap; }
.hs-progress b { color: #1a2233; }
.hs-progress i { display: block; width: 64px; height: 4px; background: #e8ecf2; border-radius: 4px; overflow: hidden; }
.hs-progress u { display: block; height: 100%; background: #59c98a; text-decoration: none; }
.hs-chip { flex: none; padding: 6px 11px; color: #4a5468; font: inherit; font-size: .72rem; font-weight: 750; background: #fff; border: 1px solid #dde2ea; border-radius: 999px; cursor: pointer; }
.hs-chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.hs-current { flex: 0 1 auto; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hs-top { padding: 6px 10px; }
@media (max-width: 1100px) { .hs-current { display: none; } }
@media (max-width: 760px) { .app-header.is-compact .header-info .hs-progress, .app-header.is-compact .brand-project { display: none; } .hs-step { font-size: 0; gap: 0; padding: 4px; } }
/* Le sezioni raggiunte con lo scorrimento non finiscono sotto la testata fissa */
.keyword-map, .redirects, .agents, .site-map, .focus-card, .plan-header { scroll-margin-top: 76px; }

/* Google Shopping */
.shop-box { margin: 14px 0; padding: 12px 14px; background: #fbfcff; border: 1px solid #dfe5f3; border-radius: 12px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.shop-head strong { color: #1a2233; font-size: .86rem; }
.shop-intro, .shop-none { margin: 4px 0; color: #5f687b; font-size: .76rem; }
.shop-none { color: #8a3b22; }
.shop-types { display: grid; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
.shop-types > li { display: grid; gap: 2px; padding: 7px 10px; font-size: .76rem; border-radius: 9px; }
.shop-types > li b { color: #1a2233; }
.shop-types > li.is-ok { background: #effaf3; } .shop-types > li.is-ok > span { color: #1f6b3f; }
.shop-types > li.is-warn { background: #fff8e8; } .shop-types > li.is-warn > span { color: #8a5a10; }
.shop-types > li.is-bad { background: #fdeeea; } .shop-types > li.is-bad > span { color: #a33a22; }
.shop-types ul { margin: 4px 0 0; padding-left: 18px; color: #4a5468; font-size: .72rem; }
.shop-types ul li.is-bad { color: #a33a22; }
.shop-looks, .shop-site { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.shop-looks .detail-label, .shop-site .detail-label { flex-basis: 100%; }
.shop-chip { padding: 4px 9px; color: #4a5468; font-size: .7rem; background: #f1f3f7; border-radius: 999px; }
.shop-chip.is-shop { color: #1f4e9c; background: #eaf1ff; }
.shop-when { color: #8b94a4; font-size: .66rem; }
p.shop-site { display: block; color: #5f687b; font-size: .76rem; }

/* Sitemap confrontata con Google */
.sm-box { margin: 0 0 14px; padding: 12px 14px; background: #fbfcff; border: 1px solid #dfe5f3; border-left-width: 4px; border-radius: 12px; }
.sm-box.is-ok { border-left-color: #59c98a; } .sm-box.is-warn { border-left-color: #f0b23c; } .sm-box.is-bad { border-left-color: #d9573b; }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sm-lead { margin: 6px 0 10px; color: #273043; font-size: .84rem; line-height: 1.45; }
.sm-wait { margin: 0; color: #5f687b; font-size: .78rem; }
.sm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0 0 10px; }
.sm-stat { display: grid; gap: 2px; padding: 8px 10px; color: #6c7588; font-size: .7rem; background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; }
.sm-stat b { color: #1a2233; font-size: 1.15rem; }
.sm-stat.is-ok b { color: #1f6b3f; } .sm-stat.is-bad b { color: #a33a22; } .sm-stat.is-warn b { color: #8a5a10; }
.sm-note { margin: 6px 0; color: #5f687b; font-size: .74rem; }
.sm-note.is-warn { color: #8a5a10; } .sm-note.is-bad { color: #a33a22; }
.sm-list { margin: 6px 0; font-size: .76rem; }
.sm-list summary { color: #2b47c9; font-weight: 750; cursor: pointer; }
.sm-list ul { max-height: 260px; margin: 6px 0 0; padding-left: 18px; overflow-y: auto; }
.sm-list li { padding: 2px 0; overflow-wrap: anywhere; }
.sm-list small { color: #7a8497; }
.sm-sources { margin: 8px 0 4px; padding-left: 16px; color: #7a8497; font-size: .7rem; }
.sm-sources li { overflow-wrap: anywhere; }
.sm-err { color: #a33a22; font-weight: 700; }

/* Prodotti su Google */
.shop-site-box { margin: 0 0 14px; padding: 12px 14px; background: #fbfcff; border: 1px solid #dfe5f3; border-left: 4px solid #5b7cfa; border-radius: 12px; }
.sm-stat small { color: #8b94a4; font-size: .64rem; }
.shop-chart { margin: 10px 0; }
.shop-bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin-top: 6px; padding: 4px; background: #fff; border: 1px solid #e6eaf1; border-radius: 8px; }
.shop-bars span { flex: 1 1 0; min-width: 2px; background: #9db2ff; border-radius: 2px 2px 0 0; }
.shop-bars.is-count span { background: #59c98a; }
.shop-bars span:hover { background: var(--blue); }
.shop-axis { display: flex; justify-content: space-between; color: #8b94a4; font-size: .64rem; }
.shop-priority ul { margin: 6px 0; padding-left: 18px; font-size: .76rem; }
.shop-priority li, .shop-site-box .sm-list li { padding: 3px 0; overflow-wrap: anywhere; }
.shop-site-box em { display: block; color: #8a5a10; font-size: .7rem; font-style: normal; }
.shop-site-box em.is-bad { color: #a33a22; }

/* Abbonamenti: etichette, tessere, striscia e sito fermo */
.bill-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; color: #4a5468; font-size: .66rem; font-weight: 800; background: #f1f3f7; border-radius: 6px; }
.bill-tag.is-trial { color: #2b47c9; background: #eef3ff; }
.bill-tag.is-paid { color: #1f6b3f; background: #e4f6ec; }
.bill-tag.is-expiring { color: #8a5a10; background: #fff3d6; }
.bill-tag.is-expired { color: #fff; background: #c2412a; }
.lock-tag.is-trial { color: #2b47c9; background: #eef3ff; }
.lock-tag.is-paid { color: #1f4e9c; background: #eaf1ff; }
.fresh-tile.is-trial { border-color: #c9d2ff; }
.bill-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 16px; padding: 10px 14px; color: #273043; font-size: .82rem; background: #eef3ff; border: 1px solid #d9e0ff; border-radius: 12px; }
.bill-strip.is-urgent { background: #fff6df; border-color: #f2dfae; }
.bill-strip.is-grow { background: #effaf1; border-color: #cbe9d2; }
.bill-strip.is-grow > span { flex: 1 1 420px; line-height: 1.5; }
.bill-strip form { margin: 0; }
.bill-strip button { padding: 8px 14px; color: #fff; font: inherit; font-size: .78rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; }
.bill-block { max-width: 640px; margin: 40px auto; padding: 34px 30px; text-align: center; background: #fff; border: 2px solid #f0b8aa; border-radius: 20px; box-shadow: 0 20px 50px rgba(194,65,42,.12); }
.bill-block-icon { font-size: 2.6rem; }
.bill-block h1 { margin: 8px 0 12px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.bill-block-lead { color: #4a5468; font-size: .95rem; }
.bill-block-warn { padding: 12px 14px; color: #8a2c17; font-size: .9rem; background: #fdeeea; border-radius: 12px; }
.bill-block-pay { display: grid; justify-items: center; gap: 8px; margin-top: 18px; }
.bill-block-pay small { color: #6c7588; }
a.plan-pill { text-decoration: none; }

/* Prima lettura fatta dal server */
.progress-note { max-width: 520px; margin: 14px auto 0; color: #4a5468; font-size: .86rem; line-height: 1.5; text-align: center; }
[data-import-here] { margin-top: 12px; }
.progress-back { display: inline-block; margin-top: 14px; text-decoration: none; }
.progress-back[hidden] { display: none; }

/* Passaggi controllati da Site Hero: http → https e indirizzo ufficiale */
.https-result { display: grid; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.https-result li { display: grid; gap: 2px; padding: 7px 10px; font-size: .76rem; border-radius: 9px; }
.https-result li.is-ok { color: #1f6b3f; background: #effaf3; }
.https-result li.is-bad { color: #a33a22; background: #fdeeea; }
.https-result small { color: #6c7588; font-size: .68rem; overflow-wrap: anywhere; }
.how-list { margin: 8px 0; padding-left: 18px; color: #4a5468; font-size: .76rem; line-height: 1.5; }
.how-list li { margin: 3px 0; }

/* Piano completato: risultati e monitoraggio */
.focus-finished.is-results { text-align: left; }
.finish-lead { margin: 6px 0 14px; color: #4a5468; font-size: .9rem; }
.finish-wait { color: #6c7588; font-size: .86rem; }
.finish-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.finish-stat { display: grid; gap: 3px; padding: 12px 14px; background: #fff; border: 1px solid #e3e7ef; border-radius: 14px; }
.finish-stat > span { color: #6c7588; font-size: .72rem; font-weight: 700; }
.finish-stat > b { color: #10172a; font-size: 1.5rem; }
.finish-stat small { color: #8b94a4; font-size: .72rem; }
.finish-stat em, .finish-task-num em { margin-left: 4px; padding: 1px 6px; font-size: .7rem; font-style: normal; font-weight: 800; border-radius: 6px; }
em.is-up { color: #1f6b3f; background: #e4f6ec; }
em.is-down { color: #a33a22; background: #fdeeea; }
em.is-flat { color: #6c7588; background: #f1f3f7; }
.finish-chart { margin: 0 0 16px; }
.finish-bars { height: 90px; }
.finish-bars span { background: #c9d2e3; }
.finish-bars span.is-after { background: #59c98a; }
.finish-tasks ul { display: grid; gap: 6px; margin: 6px 0 16px; padding: 0; list-style: none; }
.finish-tasks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 9px 12px; font-size: .8rem; background: #fff; border: 1px solid #e9ecf2; border-radius: 10px; }
.finish-tasks li > span:first-child { display: grid; gap: 2px; }
.finish-tasks small { color: #8b94a4; }
.finish-next { padding: 14px 16px; color: #273043; font-size: .86rem; background: #eef3ff; border: 1px solid #d9e0ff; border-radius: 14px; }
.finish-next.is-ready { background: #fff6df; border-color: #f2dfae; }
.finish-next p { margin: 0 0 10px; }

/* Site Hero per WordPress: collegamento e «Applica sul sito» */
.connect-box { padding: 4px 0; background: #fff; border: 1px solid #dfe5f3; border-radius: 16px; }
.connect-box > summary { display: grid; gap: 3px; padding: 14px 18px; list-style: none; cursor: default; }
.connect-box > summary::-webkit-details-marker { display: none; }
.connect-box > summary strong { color: #1a2233; font-size: 1rem; }
.connect-box.is-on { border-left: 4px solid #59c98a; }
.connect-intro, .connect-meta { margin: 0 18px 10px; color: #4a5468; font-size: .8rem; line-height: 1.5; }
.connect-steps { margin: 0 18px 14px; padding-left: 20px; color: #273043; font-size: .82rem; line-height: 1.6; }
.connect-steps li { margin: 6px 0; }
.connect-steps .ghost-button, .connect-steps .write-button { margin-left: 6px; text-decoration: none; }
.connect-wait { display: block; margin-top: 6px; color: #6c7588; }
.connect-changes { display: grid; gap: 6px; margin: 0 18px 12px; padding: 0; list-style: none; }
.connect-changes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 10px; font-size: .76rem; background: #fafbfd; border: 1px solid #edf0f5; border-radius: 10px; }
.connect-changes li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.connect-changes small { color: #6c7588; overflow-wrap: anywhere; }
.connect-actions { display: flex; gap: 14px; margin: 0 18px 12px; }
.apply-button { margin-left: 6px; padding: 4px 10px; color: #fff; font: inherit; font-size: .72rem; font-weight: 800; background: #1f8a4c; border: 0; border-radius: 7px; cursor: pointer; }
.apply-button:hover { background: #17703d; }
.apply-button[disabled] { opacity: .6; cursor: wait; }
.apply-state { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 6px; font-size: .72rem; font-weight: 750; }
.apply-state.is-ok { color: #1f6b3f; } .apply-state.is-wait { color: #8a5a10; } .apply-state.is-bad { color: #a33a22; } .apply-state.is-off { color: #6c7588; }
.apply-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.apply-all .apply-button { margin-left: 0; padding: 8px 14px; font-size: .8rem; }
.apply-all small { color: #6c7588; }

/* Piano completato: impaginazione a tutta larghezza */
.focus-finished.is-results { display: block; padding: 26px 4px; }
.focus-finished.is-results .focus-kicker, .focus-finished.is-results h3 { display: block; text-align: center; }
.focus-finished.is-results .finish-lead { text-align: center; }
.finish-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .finish-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.finish-chart { width: 100%; }
.finish-bars { width: 100%; box-sizing: border-box; }
.finish-axis { display: flex; justify-content: space-between; margin-top: 4px; color: #8b94a4; font-size: .68rem; }
.finish-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: #6c7588; font-size: .7rem; }
.finish-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.finish-legend i.is-before { background: #c9d2e3; }
.finish-legend i.is-after { margin-left: 10px; background: #59c98a; }

/* Modalità esperto: tutto in una lista, pagina per pagina */
.workflow-tools button[data-expert-toggle].is-active { color: #fff; background: #10172a; border-color: #10172a; }
.expert-view { display: grid; gap: 12px; text-align: left; }
.ex-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; font-size: .8rem; color: #4a5468; background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; box-shadow: 0 6px 18px rgba(30,40,60,.06); }
.ex-bar > span { margin-right: auto; }
.ex-bar b { color: #10172a; }
.ex-filter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ex-page { background: #fff; border: 1px solid #e3e7ef; border-radius: 14px; overflow: hidden; }
.ex-page > header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; background: #f8f9fc; border-bottom: 1px solid #edf0f5; }
.ex-url { margin-right: auto; color: #10172a; font-size: .86rem; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
a.ex-url:hover { text-decoration: underline; }
.ex-count { padding: 2px 9px; color: #8a5a10; font-size: .7rem; font-weight: 800; background: #fff3d6; border-radius: 999px; }
.ex-count.is-zero { color: #1f6b3f; background: #e4f6ec; }
.ex-checked { color: #8b94a4; font-size: .7rem; }
.ex-problems { display: grid; gap: 4px; margin: 0; padding: 8px 14px; list-style: none; border-bottom: 1px solid #f0f2f6; }
.ex-problems li { display: flex; gap: 8px; font-size: .76rem; }
.ex-problems li.is-bad b { color: #c2412a; } .ex-problems li.is-warn b { color: #c48a12; }
.ex-problems small { display: block; color: #7a8497; font-size: .7rem; }
.ex-task { padding: 8px 14px 10px; border-top: 1px solid #f0f2f6; }
.ex-task:first-of-type { border-top: 0; }
.ex-task.is-done { opacity: .6; }
.ex-task-head { display: flex; align-items: center; gap: 8px; }
.ex-task-title { flex: 1; padding: 0; color: #273043; font: inherit; font-size: .82rem; font-weight: 800; text-align: left; background: none; border: 0; cursor: pointer; }
.ex-task-title:hover { color: var(--blue-dark); text-decoration: underline; }
.ex-steps { display: grid; gap: 2px; margin: 6px 0 0 30px; padding: 0; list-style: none; }
.ex-steps label { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: .78rem; color: #273043; cursor: pointer; }
.ex-steps input { margin-top: 3px; }
.ex-steps li.is-done span { color: #8b94a4; text-decoration: line-through; }
.ex-steps small { display: block; color: #7a8497; font-size: .7rem; text-decoration: none; }
.ex-texts { display: grid; gap: 4px; margin: 6px 0 0 30px; }
.ex-texts > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .76rem; }
.ex-texts small { min-width: 74px; color: #7a8497; font-weight: 700; }
.ex-texts span { flex: 1; min-width: 200px; color: #273043; }
.ex-empty { padding: 20px; color: #1f6b3f; text-align: center; }

/* Elenco dei siti: lettura dei dati in corso */
.project-status .mini-spinner { display: inline-block; width: 9px; height: 9px; margin-right: 2px; border-width: 2px; border-color: rgba(138,90,16,.25); border-top-color: #8a5a10; vertical-align: -1px; }
.project-progress-track.is-import i { background: linear-gradient(90deg, #f0b23c, #ffd36b); transition: width .6s ease; }
.is-import-done .project-status { animation: import-done 1.2s ease; }
@keyframes import-done { 0% { box-shadow: 0 0 0 0 rgba(89,201,138,.6); } 100% { box-shadow: 0 0 0 10px rgba(89,201,138,0); } }

.rb-redirect { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; margin-top: 6px; font-size: .72rem; color: #4a5468; }
.rb-redirect input { flex: 1; min-width: 160px; padding: 4px 6px; font-size: .72rem; border: 1px solid #dde2ea; border-radius: 6px; }
.rb-redirect button { padding: 4px 10px; color: #fff; font-size: .7rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 6px; cursor: pointer; }
.rb-row { flex-wrap: wrap; }

.kw-gcard.is-ignore { align-items: center; justify-content: center; color: #a05050; font-size: .74rem; background: #fdf7f7; border: 2px dashed #e8c9c9; }
.kw-ignored { margin: 0 0 12px; padding: 8px 12px; font-size: .74rem; color: #4a5468; background: #fafbfd; border: 1px solid #e3e7ee; border-radius: 12px; }
.kw-ignored summary { cursor: pointer; font-weight: 700; }
.kw-ignored summary small { margin-left: 6px; color: #8a94a8; font-weight: 400; }
.kw-ignored > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kw-ignored-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; color: #6b7385; text-decoration: line-through; background: #fff; border: 1px solid #e3e7ee; border-radius: 999px; }
.kw-ignored-chip button { padding: 2px 8px; color: var(--blue-dark); font-size: .68rem; font-weight: 800; text-decoration: none; background: #eef3fb; border: 0; border-radius: 999px; cursor: pointer; }
.redirect-help { margin: 6px 0; padding: 8px 10px; font-size: .74rem; line-height: 1.45; color: #4a5468; background: #fff8e8; border-left: 3px solid #f0b23c; border-radius: 6px; }

.task-redirects li { flex-wrap: wrap; }
.task-redirect-detail { flex-basis: 100%; color: #6b7385; font-size: .7rem; }
.task-redirect-guide { flex-basis: 100%; }
.task-redirect-guide .redirect-how p { margin: 6px 0; font-size: .74rem; line-height: 1.45; }

.copy-list li.is-chosen { border-color: #3fb27f; box-shadow: 0 0 0 2px rgba(63, 178, 127, .18); background: #f3fbf7; }
.chosen-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; color: #fff; font-size: .62rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; background: #3fb27f; border-radius: 999px; }

.check-help { margin-top: 6px; font-weight: 400; }
.check-help summary { display: inline-block; padding: 2px 10px; color: var(--blue-dark); font-size: .7rem; font-weight: 800; background: #eef3fb; border-radius: 999px; cursor: pointer; list-style: none; }
.check-help summary::-webkit-details-marker { display: none; }
.check-help[open] summary { margin-bottom: 6px; }
.check-help p { margin: 4px 0; font-size: .74rem; line-height: 1.45; color: #4a5468; }
.check-help code { padding: 0 4px; font-size: .7rem; background: #f1f3f7; border-radius: 4px; }
.check-code { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.check-code pre { flex: 1; min-width: 0; max-height: 260px; margin: 0; padding: 8px 10px; overflow: auto; font-size: .68rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; color: #273043; background: #f6f8fb; border: 1px solid #e3e7ee; border-radius: 8px; }
.check-items { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.check-items small { color: #8a94a8; font-size: .68rem; overflow-wrap: anywhere; }
.check-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.check-tools a { color: var(--blue-dark); font-size: .72rem; font-weight: 700; }

.check-code.is-edit textarea { flex: 1; min-width: 0; padding: 8px 10px; font: .68rem/1.4 ui-monospace, Consolas, monospace; color: #273043; background: #f6f8fb; border: 1px solid #e3e7ee; border-radius: 8px; resize: vertical; }
.check-code-side { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }

.sm-lists { margin: 10px 0; padding: 10px 12px; background: #fff; border: 1px solid #e6eaf1; border-radius: 12px; }
.sm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sm-tabs button { padding: 6px 12px; color: #4a5468; font-size: .74rem; font-weight: 750; background: #f4f6fa; border: 1px solid #e3e7ee; border-radius: 999px; cursor: pointer; }
.sm-tabs button b { margin-left: 4px; }
.sm-tabs button.is-on { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.sm-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sm-tools input { flex: 1; min-width: 180px; padding: 6px 10px; font-size: .76rem; border: 1px solid #dde2ea; border-radius: 8px; }
.sm-folders { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sm-folders button { padding: 3px 9px; color: #4a5468; font-size: .68rem; background: #fafbfd; border: 1px solid #e3e7ee; border-radius: 999px; cursor: pointer; overflow-wrap: anywhere; }
.sm-folders button b { color: #8a94a8; }
.sm-folders button.is-on { color: var(--blue-dark); background: #eef3fb; border-color: #b9c8ea; }
.sm-bulk { position: sticky; top: 64px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; padding: 8px 10px; color: #6b7385; font-size: .72rem; background: #fafbfd; border: 1px dashed #d5dbe6; border-radius: 10px; }
.sm-bulk.is-on { color: #273043; background: #fff8e8; border: 1px solid #f0d59a; }
.sm-bulk-count b { color: var(--ink); font-size: .8rem; }
.sm-bulk-go { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.sm-bulk-go .ghost-button { padding: 6px 10px; font-size: .7rem; }
.sm-bulk-open { padding: 7px 14px; color: #fff; font-size: .74rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 8px; cursor: pointer; }
.sm-bulk-open:disabled { opacity: .45; cursor: default; }
.sm-bulk-open:not(:disabled):hover { background: var(--blue); }

/* Elenco a colonne: casella · pagina · volte · clic · redirect */
.sm-table { overflow: hidden; border: 1px solid #e3e7ee; border-radius: 10px; }
.sm-thead, .sm-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 110px 60px 190px; align-items: center; column-gap: 10px; }
.sm-thead.is-plain, .sm-rows.is-plain .sm-row { grid-template-columns: 34px minmax(0, 1fr) 190px; }
.sm-thead { padding: 7px 10px 7px 0; color: #6b7385; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #f4f6fa; border-bottom: 1px solid #e3e7ee; }
.sm-rows { max-height: 460px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.sm-row { min-height: 40px; padding: 4px 10px 4px 0; font-size: .78rem; border-bottom: 1px solid #edf0f5; border-left: 3px solid transparent; }
.sm-row:last-child { border-bottom: 0; }
.sm-row:nth-child(even) { background: #fafbfd; }
.sm-row:hover { background: #f1f5fd; }
.sm-row.is-picked { background: #fff6dd; border-left-color: #f0b429; }
.sm-row.has-redirect { color: #6b7385; }
.sm-pick { display: flex; align-self: stretch; align-items: center; justify-content: center; cursor: pointer; }
.sm-pick input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--blue-dark); }
.sm-pick-gap { color: #9aa3b5; font-size: .8rem; }
.sm-url { min-width: 0; overflow: hidden; color: #1f2a44; font-weight: 600; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.sm-url:hover { color: var(--blue-dark); text-decoration: underline; }
.sm-row.has-redirect .sm-url { color: #6b7385; font-weight: 500; }
.sm-num { color: #4a5468; font-variant-numeric: tabular-nums; text-align: right; }
.sm-num.is-clicks { color: var(--ink); font-weight: 800; }
.sm-num.is-zero { color: #b2b9c7; }
.sm-act { display: flex; justify-content: flex-end; min-width: 0; }
.sm-act .redirect-state { max-width: 100%; overflow: hidden; font-size: .66rem; white-space: nowrap; text-overflow: ellipsis; }
.sm-act-btn { padding: 4px 10px; color: var(--blue-dark); font-size: .7rem; font-weight: 800; background: #fff; border: 1px solid #c9d4f0; border-radius: 7px; cursor: pointer; }
.sm-act-btn:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
@media (max-width: 640px) {
    .sm-thead { display: none; }
    .sm-row, .sm-rows.is-plain .sm-row { grid-template-columns: 30px minmax(0, 1fr) auto auto; row-gap: 2px; padding: 6px 8px 6px 0; }
    .sm-url { grid-column: 2 / -1; }
    .sm-num { grid-row: 2; font-size: .7rem; }
    .sm-num:first-of-type { grid-column: 2; text-align: left; }
    .sm-act { grid-row: 2; grid-column: -2 / -1; }
}

/* Finestra «Prepara i redirect» */
.rd-dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 22, 40, .3); }
.rd-dialog::backdrop { background: rgba(15, 22, 40, .45); backdrop-filter: blur(2px); }
.rd-wrap { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.rd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid #edf0f5; }
.rd-head h2 { margin: 2px 0 0; font-size: 1.15rem; letter-spacing: -.02em; }
.rd-close { width: 32px; height: 32px; color: #6b7385; font-size: 1.3rem; line-height: 1; background: #f4f6fa; border: 0; border-radius: 50%; cursor: pointer; }
.rd-close:hover { color: var(--ink); background: #e8ecf3; }
.rd-body { flex: 1; min-height: 0; padding: 14px 22px; overflow-y: auto; }
.rd-body section + section { margin-top: 18px; }
.rd-body h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; }
.rd-body h3 span { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #fff; font-size: .7rem; background: var(--blue-dark); border-radius: 50%; }
.rd-all { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 10px; padding: 10px 12px; background: #f3f6fd; border: 1px solid #d9e2f5; border-radius: 10px; }
.rd-all label { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 220px; color: #4a5468; font-size: .7rem; font-weight: 700; }
.rd-all input, .rd-list input[type="text"] { padding: 7px 10px; font-size: .78rem; border: 1px solid #d5dbe6; border-radius: 8px; }
.rd-all input:focus, .rd-list input[type="text"]:focus { border-color: var(--blue); outline: 2px solid rgba(79, 108, 255, .18); }
.rd-list { margin: 0; padding: 0; list-style: none; border: 1px solid #e3e7ee; border-radius: 10px; }
.rd-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 8px 12px; border-bottom: 1px solid #edf0f5; }
.rd-list li:last-child { border-bottom: 0; }
.rd-list li:nth-child(even) { background: #fafbfd; }
.rd-list li.is-off { opacity: .5; }
.rd-list li.is-saved { background: #f2faf0; }
.rd-list input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue-dark); }
.rd-from { display: flex; flex-direction: column; min-width: 0; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.rd-from small { color: #7a8497; font-size: .66rem; font-weight: 500; }
.rd-arrow { color: #9aa3b5; text-align: center; }
.rd-saved { font-size: .78rem; overflow-wrap: anywhere; }
.rd-error { grid-column: 2 / -1; color: #b42318; font-size: .7rem; }
.rd-with { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; color: #4a5468; font-size: .76rem; cursor: pointer; }
.rd-with input { margin-top: 2px; accent-color: var(--blue-dark); }
.rd-tabs { display: flex; gap: 4px; margin-bottom: 8px; padding: 3px; background: #f1f3f8; border-radius: 10px; width: fit-content; }
.rd-tabs button { padding: 6px 14px; color: #4a5468; font-size: .74rem; font-weight: 750; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.rd-tabs button.is-on { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(15, 22, 40, .12); }
.rd-how { margin: 0 0 8px; color: #4a5468; font-size: .76rem; line-height: 1.5; }
.rd-how.is-small { margin-top: 8px; font-size: .7rem; color: #7a8497; }
.rd-code pre { max-height: 300px; margin: 0; padding: 12px 14px; overflow: auto; color: #e6ebf5; font: .7rem/1.5 ui-monospace, Consolas, monospace; white-space: pre; background: #141b2d; border-radius: 10px; }
.rd-code-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #7a8497; font-size: .7rem; }
.rd-empty { padding: 16px; color: #7a8497; font-size: .76rem; text-align: center; background: #fafbfd; border: 1px dashed #d5dbe6; border-radius: 10px; }
.rd-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; background: #fafbfd; border-top: 1px solid #edf0f5; border-radius: 0 0 18px 18px; }
.rd-save { padding: 8px 16px; color: #fff; font-size: .78rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; }
.rd-save:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) {
    .rd-head, .rd-body, .rd-foot { padding-left: 16px; padding-right: 16px; }
    .rd-list li { grid-template-columns: 22px minmax(0, 1fr); }
    .rd-arrow { display: none; }
    .rd-list input[type="text"], .rd-saved { grid-column: 2; }
}
.sm-count { margin: 6px 0 0; color: #7a8497; font-size: .7rem; }

/* Perché Google non mostra le pagine: risposta del controllo URL, divisa per motivo */
.ix-box { display: grid; gap: 8px; margin: 8px 0 10px; padding: 12px 14px; background: #f6f8fd; border: 1px solid #dde5f5; border-radius: 12px; }
.ix-lead { margin: 0; color: #273043; font-size: .78rem; line-height: 1.55; }
.ix-box > .ghost-button, .ix-foot .ghost-button { justify-self: start; }
.ix-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-chip { padding: 4px 10px; font-size: .7rem; background: #fff; border: 1px solid #e3e7ee; border-radius: 999px; }
.ix-chip b { margin-right: 2px; }
.ix-chip.is-bad { color: #9b1c1c; background: #fff3f2; border-color: #f5c9c5; }
.ix-chip.is-warn { color: #8a5a00; background: #fff8e8; border-color: #f0d59a; }
.ix-chip.is-info { color: #1f4f9e; background: #eef3fd; border-color: #c9d6f2; }
.ix-group { background: #fff; border: 1px solid #e3e7ee; border-left: 4px solid #c9d0dc; border-radius: 10px; }
.ix-group.is-bad { border-left-color: #e0574b; }
.ix-group.is-warn { border-left-color: #f0b429; }
.ix-group.is-info { border-left-color: #6b8fe0; }
.ix-group summary { padding: 9px 12px; font-size: .8rem; cursor: pointer; }
.ix-group summary b { margin-right: 4px; }
.ix-group > :not(summary) { margin-left: 12px; margin-right: 12px; }
.ix-group > p { margin-top: 0; margin-bottom: 8px; color: #4a5468; font-size: .76rem; line-height: 1.55; }
.ix-group .ix-todo-title { margin-bottom: 2px; color: #273043; font-weight: 800; }
.ix-todo { margin-top: 0; margin-bottom: 8px; padding-left: 18px; color: #273043; font-size: .76rem; line-height: 1.55; }
.ix-pages { display: grid; gap: 3px; margin-top: 0; margin-bottom: 6px; padding: 8px 10px; list-style: none; background: #fafbfd; border-radius: 8px; }
.ix-pages li { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .74rem; }
.ix-pages a { min-width: 0; overflow: hidden; color: #1f2a44; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ix-pages small { color: #7a8497; }
.ix-pages .ix-check { padding: 0; font-size: .72rem; white-space: nowrap; }
/* Fase 2 · controllo pagina a schermo nella scheda per tipo (stesso contenuto del pannello 🔎, senza barra dell'indirizzo) */
.pc-inline { margin: 6px 0 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pc-inline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.pc-inline-head a { overflow: hidden; color: var(--ink); font-size: .84rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pc-inline-head .ghost-button { margin-left: auto; }
.pc-inline-title { display: grid; gap: 2px; min-width: 0; }
.pc-inline-score .task-score { margin: 0; }
.pc-actions-block { margin-top: 14px; }
.pc-inline .pc-top { margin-bottom: 10px; }
/* Fase 2 · in alto: il perché di Google (sinistra) e l'anteprima su Google con «Proponi» (destra) */
.phase-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 6px 0 12px; }
.phase-why { display: flex; gap: 14px; padding: 18px; background: linear-gradient(135deg, #fffaf0, #fff4e2); border: 1px solid #f6dfb4; border-radius: 16px; }
.phase-why.is-bad { background: linear-gradient(135deg, #fff6f6, #ffecec); border-color: #f5c9cb; }
.phase-why.is-info { background: linear-gradient(135deg, #f3f6ff, #eaf0ff); border-color: #cfd9ff; }
.phase-why-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; font-size: 1.2rem; font-weight: 900; color: #fff; background: #e39a3b; border-radius: 14px; box-shadow: 0 8px 18px rgba(227,154,59,.3); }
.phase-why.is-bad .phase-why-icon { background: #e5484d; box-shadow: 0 8px 18px rgba(229,72,77,.28); }
.phase-why.is-info .phase-why-icon { background: var(--blue); box-shadow: 0 8px 18px rgba(79,108,255,.28); }
.phase-why b { display: block; margin: 4px 0 6px; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.phase-why p { margin: 0; color: #4a5468; font-size: .86rem; line-height: 1.55; }
.phase-why small { display: block; margin-top: 8px; color: #8a6a4b; font-size: .74rem; font-weight: 600; }
.phase-serp { display: grid; align-content: start; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.phase-serp .phase-ideas-btn { width: 100%; justify-content: center; }
.phase-serp > small { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.ideas-sec { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ideas-sec:last-child { border-bottom: 0; }
.ideas-sec > .detail-label { display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .phase-top { grid-template-columns: 1fr; } }
.pc-texts { margin: 10px 0; padding: 12px 14px; background: #f7f5ff; border: 1px solid #e3dcff; border-radius: 12px; }
.check-ai { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.check-help .ix-todo { margin: 6px 0; padding-left: 20px; font-size: .8rem; line-height: 1.5; }
/* Fase 2 · «Chiedi a Google» automatico: rotella verde finché Google risponde */
.ask-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 6px 0 8px; padding: 14px 16px; background: linear-gradient(135deg, #f2fbf4, #f7fdf0); border: 1px solid #cdeccf; border-radius: 14px; }
.ask-auto > div { flex: 1 1 240px; }
.ask-auto b { display: block; color: #1d5a35; font-size: .95rem; }
.ask-auto small { color: #4a6b55; font-size: .78rem; }
.ask-spinner { flex: none; width: 34px; height: 34px; box-sizing: border-box; border: 4px solid rgba(49,140,95,.18); border-top-color: #2fa866; border-right-color: #8bd96a; border-radius: 50%; animation: ring .9s linear infinite; }
.ask-check { display: grid; flex: none; place-items: center; width: 34px; height: 34px; color: #fff; font-weight: 900; background: #2fa866; border-radius: 50%; }
.ask-auto.is-stopped { background: #fff8ef; border-color: #f2d9c4; }
.ask-auto.is-stopped b { color: #8a4b10; }
.ask-auto.is-stopped small { color: #8a6a4b; }
.ask-auto.is-stopped .ask-check { background: #e39a3b; }
.ask-list { display: grid; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.ask-list li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: .8rem; background: #fafbfd; border-radius: 9px; }
.ask-list li i { display: grid; flex: none; place-items: center; width: 18px; color: var(--muted); font-style: normal; font-weight: 900; }
.ask-list li.is-ok i { color: #2fa866; }
.ask-list li b { flex: none; min-width: 170px; font-size: .8rem; }
.ask-list li span { overflow: hidden; color: #4a5468; text-overflow: ellipsis; white-space: nowrap; }
.ask-list li span { flex: 1 1 auto; }
.ask-list li .target-link { flex: none; padding: 0; font-size: .76rem; }
.ask-list li select { flex: 1 1 auto; min-width: 0; padding: 5px 8px; font: inherit; font-size: .8rem; border: 1px solid #dde2ea; border-radius: 8px; background: #fff; }
.ask-list li.is-editing { background: #f1f4ff; }
.ask-list .mini-spinner { margin: 0; border-color: rgba(49,140,95,.2); border-top-color: #2fa866; }
@media (prefers-reduced-motion: reduce) { .ask-spinner { animation-duration: 2.4s; } }
/* Fase 2 · una pagina per tipo da chiedere a Google */
.ix-sample { display: grid; gap: 6px; margin: 8px 0 10px; padding: 0; list-style: none; }
.ix-sample-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 8px 12px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; }
.ix-sample-role { font-size: .82rem; font-weight: 700; }
.ix-sample-role small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.ix-sample-row select { min-width: 0; padding: 6px 8px; font: inherit; font-size: .8rem; border: 1px solid #dde2ea; border-radius: 8px; background: #fff; }
.ix-sample-ok { color: #318c5f; font-size: .76rem; white-space: nowrap; }
.ix-sample-wait { color: #b45309; font-size: .76rem; white-space: nowrap; }
/* Fase 2 · un'attività per tipo: pagina campione, verdetto di Google, cosa fare */
.type-box { display: grid; gap: 10px; margin: 8px 0 4px; padding: 14px 16px; background: #fafbfd; border: 1px solid var(--line); border-radius: 12px; }
.type-sample { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: .84rem; }
.type-sample > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.type-sample a { color: var(--ink); font-weight: 700; }
.type-verdict { padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #f2b740; border-radius: 10px; }
.type-verdict.is-bad { border-left-color: #e5484d; }
.type-verdict.is-info { border-left-color: var(--blue); }
.type-verdict b { font-size: .9rem; }
.type-verdict p { margin: 4px 0 0; color: #4a5468; font-size: .82rem; line-height: 1.5; }
.type-signals ul { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; }
.type-signals li { display: grid; grid-template-columns: 20px minmax(130px, 210px) minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 6px 10px; font-size: .8rem; background: #fff; border-radius: 8px; }
.type-signals li i { color: var(--muted); font-style: normal; font-weight: 900; text-align: center; }
.type-signals li b { font-size: .8rem; }
.type-signals li span { min-width: 0; color: #4a5468; overflow-wrap: anywhere; }
.type-signals li.is-ok i { color: #2fa866; }
.type-signals li.is-warn i { color: #d38a1f; }
.type-signals li.is-bad { background: #fff5f5; }
.type-signals li.is-bad i { color: #e5484d; }
.type-signals .mini-spinner { margin: 0; }
.type-signals .ix-todo-title small { margin-left: 8px; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.type-push ol { display: grid; gap: 5px; margin: 6px 0 0; padding-left: 22px; font-size: .84rem; line-height: 1.5; }
.type-push li.is-bad::marker { color: #e5484d; font-weight: 900; }
.type-push li.is-warn::marker { color: #d38a1f; font-weight: 900; }
.type-more { margin-top: 8px; font-size: .8rem; color: #4a5468; }
.type-more summary { cursor: pointer; font-weight: 700; }
@media (max-width: 640px) { .type-signals li { grid-template-columns: 20px 1fr; } .type-signals li span { grid-column: 2; } }
.type-box .ix-todo-title { margin: 2px 0 0; }
.type-box .ix-todo { margin: 0; }
.type-box > .ghost-button { justify-self: start; }
.focus-why-short { margin: 4px 0 10px; color: #4a5468; font-size: .86rem; line-height: 1.5; }
@media (max-width: 640px) { .ix-sample-row { grid-template-columns: 1fr; } }
.ix-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.ix-actions .ghost-button { padding: 5px 10px; font-size: .7rem; }
.ix-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ix-foot small { color: #7a8497; font-size: .68rem; }

.combined-write { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 10px; padding: 10px 12px; background: #f3f6fd; border: 1px solid #d9e2f5; border-radius: 10px; }
.combined-write small { flex: 1; min-width: 200px; color: #4a5468; font-size: .72rem; line-height: 1.4; }

.path-toggle .path-open-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; color: var(--blue-dark); font-size: .68rem; font-weight: 800; background: #eef3fb; border: 1px solid #d3def3; border-radius: 999px; transition: background .15s; transform: none; }
.path-toggle .path-open-pill i { font-style: normal; transition: transform .2s; }
.path-toggle.is-open .path-open-pill { transform: none; }
.path-toggle.is-open .path-open-pill i { transform: rotate(90deg); }
.path-toggle:hover .path-open-pill { background: #dfe8f8; }

.redirect-banner .redirect-banner-check { margin-left: auto; padding: 4px 10px; font-size: .72rem; }
.redirect-banner.is-soft { color: #1f5a37; background: #f1faf4; border-color: #cbe9d6; }
.redirect-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

.focus-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.focus-title-row h3 { flex: 1; min-width: 0; }
.task-pct { display: inline-flex; flex: none; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 10px; background: #f4f6fa; border: 1px solid #e3e7ee; border-radius: 999px; }
.task-pct b { color: #273043; font-size: .82rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.task-pct-bar { position: relative; width: 70px; height: 6px; overflow: hidden; background: #e1e6ef; border-radius: 999px; }
.task-pct-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue-dark); border-radius: 999px; transition: width .4s ease; }
.task-pct.is-full { background: #effaf3; border-color: #c7ead4; }
.task-pct.is-full b { color: #1f6b3f; }
.task-pct.is-full .task-pct-bar i { background: #3fb27f; }
@media (max-width: 600px) { .focus-title-row { flex-direction: column; gap: 4px; } }

/* Punteggio dell'attività, stile Lighthouse: anello colorato con il numero al centro */
.task-score { position: relative; display: inline-grid; flex: none; grid-template-columns: 46px auto; align-items: center; column-gap: 8px; margin-top: 2px; }
.task-score svg { grid-row: 1 / 3; width: 46px; height: 46px; transform: rotate(-90deg); }
.task-score circle { fill: none; stroke-width: 3.2; }
.task-score .ts-track { stroke: #e7ebf2; }
.task-score .ts-value { stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.task-score b { position: absolute; left: 0; top: 0; display: grid; width: 46px; height: 46px; place-items: center; font-size: .95rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.task-score small { grid-column: 2; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.task-score.is-good .ts-value { stroke: #0cce6b; } .task-score.is-good b, .task-score.is-good small { color: #0a8f4b; }
.task-score.is-good .ts-track { stroke: #d8f6e5; }
.task-score.is-mid .ts-value { stroke: #ffa400; } .task-score.is-mid b, .task-score.is-mid small { color: #b26b00; }
.task-score.is-mid .ts-track { stroke: #fff0d6; }
.task-score.is-low .ts-value { stroke: #ff4e42; } .task-score.is-low b, .task-score.is-low small { color: #c7221a; }
.task-score.is-low .ts-track { stroke: #ffe1df; }
.task-score small { display: grid; gap: 1px; max-width: 170px; }
.task-score small em { color: #7a8497; font-size: .62rem; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.focus-recheck { color: var(--blue-dark); border-color: #c9d6f2; background: #f3f6fd; }
.focus-recheck:disabled { opacity: .7; cursor: default; }

/* «Ricontrolla la pagina» sempre a portata di clic, fluttuante in basso a sinistra (a destra c'è il post-it delle note) */
.recheck-fab { position: fixed; left: 20px; bottom: 20px; z-index: 35; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; color: #fff; font-size: .84rem; font-weight: 800; background: var(--blue-dark); border: 0; border-radius: 999px; box-shadow: 0 14px 34px rgba(30,50,120,.32); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.recheck-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(30,50,120,.4); }
.recheck-fab.is-first { background: #0a8f4b; box-shadow: 0 14px 34px rgba(10,120,70,.3); animation: recheck-pulse 2s ease-in-out 3; }
.recheck-fab.is-busy, .recheck-fab:disabled { cursor: default; opacity: .9; transform: none; }
@keyframes recheck-pulse { 0%, 100% { box-shadow: 0 14px 34px rgba(10,120,70,.3); } 50% { box-shadow: 0 0 0 8px rgba(12,206,107,.18), 0 14px 34px rgba(10,120,70,.3); } }
@media (max-width: 600px) { .recheck-fab { left: 12px; bottom: 12px; padding: 10px 14px; font-size: .78rem; } }
.page-redirect.is-ask { margin: 4px 0; font-size: .72rem; }

.page-links { margin: 6px 0 8px; padding: 0; list-style: none; }
.page-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 4px 0; font-size: .78rem; }
.page-links li b { width: 16px; text-align: center; }
.page-links li.is-ok b { color: #0a8f4b; } .page-links li.is-todo b { color: #c7221a; } .page-links li.is-unknown b { color: #8a94a8; }
.page-links small { color: #7a8497; }
.page-more { margin: 6px 0; }
.page-more > summary { color: #5f687b; font-size: .72rem; font-weight: 700; cursor: pointer; }
.page-more[open] > summary { margin-bottom: 6px; }

.page-links-write { margin: 2px 0 8px; }

/* ---- Pannello laterale «Controllo pagina» */
.pc-drawer { position: fixed; inset: 0; z-index: 60; }
.pc-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 40, .32); }
.pc-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(760px, 100%); background: #fff; box-shadow: -24px 0 60px rgba(15, 22, 40, .22); }
.pc-drawer.is-entering .pc-backdrop { animation: pc-fade .2s ease; }
.pc-drawer.is-entering .pc-panel { animation: pc-slide .25s ease; }
.pc-head { padding: 16px 22px 12px; background: #fbfcfe; border-bottom: 1px solid #e6eaf1; }
.pc-title { display: flex; align-items: center; justify-content: space-between; }
.pc-close { width: 34px; height: 34px; color: #4a5468; font-size: 1rem; background: #f1f3f7; border: 0; border-radius: 10px; cursor: pointer; }
.pc-url { display: flex; gap: 8px; margin: 10px 0 6px; }
.pc-url input { flex: 1; min-width: 0; padding: 10px 12px; font-size: .86rem; border: 1.5px solid #cfd8ea; border-radius: 10px; }
.pc-url input:focus { outline: none; border-color: var(--blue); }
.pc-url button { padding: 0 16px; color: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap; background: var(--blue-dark); border: 0; border-radius: 10px; cursor: pointer; }
.pc-url button:disabled { opacity: .75; cursor: default; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: #5f687b; font-size: .74rem; }
.pc-meta a { margin-left: auto; color: var(--blue-dark); font-weight: 700; }
.pc-body { flex: 1; padding: 16px 22px 40px; overflow-y: auto; }
.pc-empty { color: #5f687b; font-size: .84rem; line-height: 1.5; }
.pc-body .focus-check { margin-top: 12px; }
body.has-pc { overflow: hidden; }
@keyframes pc-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
.pc-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 12px; }
.pc-summary.is-none { color: #5f687b; font-size: .78rem; }
.pc-count { color: #273043; font-size: .8rem; }
.pc-count em { font-style: normal; font-weight: 800; } .pc-count em.is-bad { color: #c7221a; }
.pc-chips { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 5px; }
.pc-chips i { padding: 2px 8px; color: #6b7385; font-size: .66rem; font-style: normal; background: #fff; border: 1px solid #e3e7ee; border-radius: 999px; }
.pc-chips i.check-bad { color: #a33a22; background: #fff4f2; border-color: #f3cdc6; }
.pc-chips i.check-warn { color: #8a5a10; background: #fff8e8; border-color: #f3dca6; }
@media (max-width: 600px) { .pc-head, .pc-body { padding-left: 14px; padding-right: 14px; } }

.pc-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.pc-top > :first-child { flex: 1 1 320px; min-width: 0; }
.pc-score { display: grid; justify-items: center; gap: 6px; padding: 12px 14px; text-align: center; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 14px; }
.pc-score .task-score { grid-template-columns: 46px; justify-items: center; row-gap: 4px; }
.pc-score .task-score small { grid-column: 1; text-align: center; }
.pc-score > small { max-width: 150px; color: #7a8497; font-size: .66rem; line-height: 1.3; }
.pc-score .task-score svg { grid-row: auto; }
/* Pannello: anteprima Google e punteggio affiancati, punteggio compatto */
.pc-top { display: grid; grid-template-columns: minmax(0, 1fr) 132px; flex-wrap: nowrap; align-items: start; }
.pc-score { padding: 12px 10px; }
.pc-score .task-score small { font-size: .62rem; white-space: nowrap; }
@media (max-width: 640px) { .pc-top { grid-template-columns: 1fr; } .pc-score { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.pc-snippet { min-width: 0; }
.page-done.is-auto { cursor: default; }
.page-done.is-auto input { cursor: default; }
.snippet-need { margin: 8px 0 0; color: #4a5468; font-size: .74rem; line-height: 1.45; }
.snippet-need.is-on { color: #8a5a10; }

/* Aprire/chiudere: pulsante grande e chiaro a destra, invece della freccina */
.page-row-head { align-items: center; cursor: pointer; list-style: none; }
.page-row-head::-webkit-details-marker { display: none; }
.row-toggle { display: inline-flex; flex: none; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; color: var(--blue-dark); font-size: .74rem; font-weight: 800; background: #eef3fb; border: 1px solid #d3def3; border-radius: 999px; transition: background .15s; }
.row-toggle::before { content: 'Apri'; }
.row-toggle::after { content: '▾'; font-size: .8rem; transition: transform .2s; }
details[open] > summary > .row-toggle::before { content: 'Chiudi'; }
details[open] > summary > .row-toggle::after { transform: rotate(180deg); }
.page-row-head:hover .row-toggle { background: #dfe8f8; }
.page-more > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #4a5468; font-size: .74rem; background: #f4f6fa; border: 1px solid #e3e7ee; border-radius: 999px; list-style: none; }
.page-more > summary::-webkit-details-marker { display: none; }
.page-more > summary::after { content: '▾'; transition: transform .2s; }
.page-more[open] > summary::after { transform: rotate(180deg); }

/* Meno spazio vuoto: la fascia delle fasi senza pannelli aperti non occupa posto, e il piano parte più in alto */
.keyword-stage:not(:has(> :not([hidden]))) { padding: 0; }
.plan-view { padding-top: 24px; }
.keyword-stage:has(> :not([hidden])) + .plan-view { padding-top: 12px; }
@media (max-width: 760px) { .plan-view { padding-top: 16px; } }
.tool-line { flex-wrap: wrap; }
.tool-line-hint { flex-basis: 100%; color: #7a8497; font-size: .68rem; }
.check-speed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 10px; padding: 12px 14px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 12px; }
.check-speed > div { display: grid; gap: 2px; font-size: .8rem; }
.check-speed > div a { color: var(--blue-dark); font-weight: 700; }
.check-speed small { color: #7a8497; font-size: .68rem; }
.check-speed.is-fail { background: #fff6f4; border-color: #f3cdc6; }
.check-speed.is-pass { background: #f1faf4; border-color: #cbe9d6; }
.check-speed .tool-help { flex-basis: 100%; margin: 0; }
.check-speed > i { font-size: .76rem; font-style: normal; font-weight: 800; }

/* Proposte di titolo e descrizione dentro l'anteprima di Google */
.serp-pick-cta { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e7ee; }
.serp-pick-cta small { color: #7a8497; font-size: .7rem; }
.serp-pick-wait { margin: 12px 0 0; color: #5f687b; font-size: .76rem; }
.serp-picks { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e7ee; }
.serp-pick { border: 1.5px solid #e3e7ee; border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.serp-pick:hover { border-color: #b9c8ea; box-shadow: 0 6px 18px rgba(40, 60, 120, .08); transform: translateY(-1px); }
.serp-pick.is-chosen { border-color: #3fb27f; box-shadow: 0 0 0 3px rgba(63, 178, 127, .15); background: #f6fcf8; }
.serp-pick figure { margin: 0; border: 0; box-shadow: none; background: transparent; }
.serp-pick-foot { margin: 2px 0 0; font-size: .72rem; }

/* Riga sotto il titolo dell'attività: tutti i pulsanti uguali, snelli */
.focus-page { gap: 8px; }
.focus-page .ghost-button, .focus-page .page-tools a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #273043; font-size: .74rem; font-weight: 750; line-height: 1.2; background: #fff; border: 1px solid #d9dfe9; border-radius: 9px; box-shadow: none; transition: border-color .15s, background .15s; }
.focus-page .ghost-button:hover, .focus-page .page-tools a:hover { background: #f5f7fb; border-color: #b9c4d8; }
.focus-page .page-tools a::after { content: " ↗"; }
.focus-serp .serp { height: auto; min-height: 100%; }
.serp .serp-pick .serp { min-height: 0; padding: 10px 12px; }

/* Pannello: le proposte stanno in colonna sotto l'anteprima, una per riga */
.pc-snippet .snippet-ideas { display: block; }
.pc-snippet .snippet-ideas-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.pc-snippet .snippet-options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.pc-snippet .snippet-options .serp { width: auto; }
.serp-pick-done { margin: 0; color: #1f5a37; font-size: .78rem; line-height: 1.4; }
.copy-list-more { margin-top: 6px; font-size: .72rem; }

/* ---- «✦ IA»: quale intelligenza artificiale usa Site Hero */
.ai-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 22, 40, .3); }
.ai-dialog::backdrop { background: rgba(15, 22, 40, .38); }
.ai-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; background: #fbfcfe; border-bottom: 1px solid #e6eaf1; }
.ai-head h2 { margin: 4px 0 2px; font-size: 1.2rem; }
.ai-head small { color: #6b7385; font-size: .74rem; }
.ai-close { width: 34px; height: 34px; color: #4a5468; background: #f1f3f7; border: 0; border-radius: 10px; cursor: pointer; }
.ai-body { padding: 16px 22px; overflow-y: auto; }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ai-card { position: relative; display: grid; gap: 3px; padding: 10px 12px; background: #fff; border: 1.5px solid #e3e7ee; border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ai-card input { position: absolute; opacity: 0; pointer-events: none; }
.ai-card b { font-size: .86rem; }
.ai-card small { color: #7a8497; font-size: .68rem; line-height: 1.3; }
.ai-card.is-on { border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(79, 108, 255, .15); background: #f6f8ff; }
.ai-fields { display: grid; gap: 12px; }
.ai-field { display: grid; gap: 5px; font-size: .78rem; }
.ai-field > span { color: #273043; font-weight: 800; }
.ai-field input, .ai-field select { padding: 9px 11px; font-size: .84rem; border: 1.5px solid #cfd8ea; border-radius: 10px; }
.ai-field small, .ai-note { color: #6b7385; font-size: .72rem; line-height: 1.45; }
.ai-note { margin: -4px 0 0; }
.ai-note code { padding: 0 4px; background: #f1f3f7; border-radius: 4px; }
.ai-field a, .ai-link { justify-self: start; padding: 0; color: var(--blue-dark); font-size: .72rem; font-weight: 700; background: none; border: 0; cursor: pointer; text-decoration: underline; }
.ai-model { display: flex; gap: 8px; }
.ai-model input { flex: 1; min-width: 0; }
.ai-model button, .ai-account button { padding: 0 12px; color: var(--blue-dark); font-size: .76rem; font-weight: 800; background: #eef3fb; border: 1px solid #d3def3; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.ai-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: .8rem; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 12px; }
.ai-account button { padding: 7px 12px; }
.ai-status { margin: 14px 0 0; padding: 10px 12px; font-size: .78rem; line-height: 1.45; background: #f4f6fa; border-radius: 10px; }
.ai-status.is-ok { color: #1f5a37; background: #effaf3; } .ai-status.is-bad { color: #a33a22; background: #fff4f2; }
.ai-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 18px; border-top: 1px solid #e6eaf1; }
.ai-foot .focus-done { padding: 11px 22px; }
.ai-offer { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; gap: 12px; align-items: flex-start; max-width: min(460px, calc(100% - 40px)); padding: 12px 14px; color: #fff; background: #1b2338; border-left: 4px solid #ffb547; border-radius: 12px; box-shadow: 0 18px 50px rgba(9, 14, 27, .35); }
.ai-offer p { margin: 0; font-size: .82rem; line-height: 1.45; }
.ai-offer div { display: flex; gap: 6px; }
.ai-offer-open { padding: 6px 12px; color: #1b2338; font-size: .76rem; font-weight: 800; white-space: nowrap; background: #ffd27a; border: 0; border-radius: 8px; cursor: pointer; }
.ai-offer-close { color: #aab3c5; background: none; border: 0; cursor: pointer; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sells-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; padding: 12px 14px; background: #fff8e8; border: 1px solid #f3dca6; border-radius: 12px; }
.sells-q.is-answered { background: #fafbfd; border-color: #e6eaf1; }
.sells-q > span:first-child { display: grid; gap: 2px; font-size: .82rem; }
.sells-q small { color: #6b7385; font-size: .72rem; line-height: 1.4; }
.sells-q-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.sells-q-buttons button { padding: 7px 12px; color: #273043; font-size: .74rem; font-weight: 750; background: #fff; border: 1px solid #d9dfe9; border-radius: 9px; cursor: pointer; }
.sells-q-buttons button.is-on { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.link-row { align-items: center; margin-bottom: 6px; }
.link-row .link-state { flex: none; width: 18px; text-align: center; font-size: .8rem; }
.link-row.is-ok .link-state { color: #0a8f4b; } .link-row.is-todo .link-state { color: #c7221a; } .link-row.is-unknown .link-state { color: #8a94a8; }
.advice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.variant-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: .76rem; }
.variant-line a { overflow-wrap: anywhere; }
.variant-line .ghost-button { padding: 4px 12px; font-size: .72rem; }
.variant-line small { flex-basis: 100%; color: #4a5468; font-size: .74rem; line-height: 1.4; }
.variant-how { margin-top: 6px; }

/* Barra strumenti attaccata sotto l'intestazione: squadrata, a gruppi, a tutta larghezza */
.workflow-topline { position: relative; width: 100vw; margin: -34px 0 28px calc(50% - 50vw); padding: 0 max(28px, calc((100vw - 1320px) / 2)); display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 46px; background: #fff; border-bottom: 1px solid #e3e7ee; box-shadow: 0 6px 18px rgba(30, 40, 60, .04); }
.workflow-topline form { display: flex; align-items: center; }
.workflow-topline .back-button { padding: 6px 10px; color: #5f687b; font-size: .74rem; border: 0; border-radius: 6px; background: transparent; white-space: nowrap; }
.workflow-topline .back-button:hover { color: var(--ink); background: #f3f5f9; }
.workflow-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0; padding: 6px 0; }
.workflow-tools .tools-group { display: inline-flex; align-items: center; gap: 2px; padding: 0 10px; border-left: 1px solid #e6eaf1; }
.workflow-tools .tools-group:first-child { border-left: 0; }
.workflow-tools button { gap: 6px; padding: 7px 10px; color: #3d4659; font-size: .74rem; font-weight: 700; background: transparent; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
.workflow-tools button:hover { color: var(--blue-dark); background: #f3f6fd; border-color: transparent; }
.workflow-tools button.is-active { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.workflow-tools button span { opacity: .7; font-weight: 600; }
@media (max-width: 900px) {
    .workflow-topline { flex-direction: column; align-items: stretch; gap: 0; margin-top: -22px; padding: 0 14px; }
    .workflow-topline form { padding-top: 6px; }
    .workflow-tools { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
    .workflow-tools .tools-group { padding: 0 6px; }
}
body { overflow-x: clip; }   /* la barra a tutta larghezza (100vw) non deve far scorrere la pagina di lato */
.auto-note { margin: 4px 0 8px; color: #5f687b; font-size: .76rem; line-height: 1.45; }
.finish-task-act { display: inline-flex; align-items: center; gap: 8px; }
.finish-task-act .ghost-button { padding: 5px 12px; font-size: .74rem; }
.finish-score { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; font-size: .74rem; font-style: normal; font-weight: 850; border-radius: 999px; }
.finish-score.is-good { color: #0a8f4b; background: #e6f8ee; } .finish-score.is-mid { color: #b26b00; background: #fff3dc; } .finish-score.is-low { color: #c7221a; background: #ffe9e7; }
.finish-improve { margin: 14px 0 0; padding: 12px 14px; color: #273043; font-size: .82rem; line-height: 1.5; background: #f6f8ff; border: 1px solid #d9e2f5; border-radius: 12px; }
.finish-improve p { margin: 0; }
/* Attività fatte: colore come il punteggio della pagina */
.plan-dots button.is-done.score-good { color: #fff; background: #0cce6b; border-color: #0cce6b; }
.plan-dots button.is-done.score-mid { color: #fff; background: #ffa400; border-color: #ffa400; }
.plan-dots button.is-done.score-low { color: #fff; background: #ff4e42; border-color: #ff4e42; }
.plan-dots button.is-current.is-current.is-current { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }   /* quella aperta resta blu */

/* ---- «✨ Extra» */
.extras-box { padding: 14px 18px; background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; }
.extras-box .sm-lead small { display: block; margin-top: 2px; color: #7a8497; font-size: .72rem; }
.extra-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 18px; margin: 8px 0; }
.extra-group ul, .pc-extras ul { margin: 6px 0 0; padding: 0; list-style: none; }
.extra-item { display: flex; gap: 10px; padding: 8px 0; font-size: .8rem; border-top: 1px solid #f0f2f6; }
.extra-item:first-child { border-top: 0; }
.extra-item > div { flex: 1; min-width: 0; }
.extra-item strong { color: #273043; }
.extra-value { color: #6b7385; font-size: .74rem; }
.extra-item p { margin: 4px 0; color: #4a5468; font-size: .74rem; line-height: 1.45; }
.extra-icon { display: grid; flex: none; place-items: center; width: 20px; height: 20px; margin-top: 1px; font-size: .7rem; border-radius: 6px; }
.extra-item.is-ok .extra-icon { color: #0a8f4b; background: #e6f8ee; }
.extra-item.is-todo .extra-icon { color: #8a5a10; background: #fff3dc; }
.extra-item.is-bad .extra-icon { color: #c7221a; background: #ffe9e7; }
.extra-item.is-warn .extra-icon { color: #8a5a10; background: #fff8e8; }
.pc-extras { margin-top: 16px; padding: 12px 14px; background: #fafbfd; border: 1px dashed #d9dfe9; border-radius: 12px; }
.finish-extras { margin: 14px 0 0; padding: 12px 14px; font-size: .82rem; line-height: 1.5; background: #fffaf0; border: 1px solid #f3dca6; border-radius: 12px; }
.finish-extras p { margin: 0 0 6px; } .finish-extras small { color: #7a8497; }
.finish-extras ul { margin: 0 0 10px; padding-left: 18px; }
.finish-extras li span { color: #6b7385; font-size: .76rem; }
.hs-num { white-space: nowrap; }
.header-tool { padding: 8px 12px; white-space: nowrap; }
.header-tool span { opacity: .7; }
@media (max-width: 900px) { .header-tool { padding: 6px 8px; font-size: .7rem; } .header-tool span { display: none; } }
.finish-extras + .finish-tasks, .finish-extras ~ .finish-tasks { margin-top: 24px; }
.fresh-tile.is-measuring { opacity: .6; cursor: progress; }
.admin-tiers { display: grid; gap: 8px; margin: 6px 0 12px; }
.admin-tiers input { width: 110px; }

/* ---- Fase 2 del piano: pagine della sitemap che Google non mostra */
.phase-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 18px 0 0; padding: 16px 18px; text-align: left; background: linear-gradient(135deg, #f4f8ff, #fbf8f2); border: 1px solid #d9e2f5; border-radius: 14px; }
.phase-box > div { flex: 1 1 380px; }
.phase-box p { margin: 6px 0 0; color: #3d4659; font-size: .84rem; line-height: 1.5; }
.phase-box.is-done { background: #f3fbf5; border-color: #cfe9d6; }
.phase-box.is-locked { background: #f7f6fa; }
.phase-pay { margin: 0; }
/* Banner in cima al «Piano completato»: la Fase 2 come prossima cosa da fare */
.phase-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; width: 100%; box-sizing: border-box; margin: 0 0 22px; padding: 28px 30px; overflow: hidden; color: #fff; text-align: left; background: radial-gradient(120% 140% at 100% 0%, rgba(79,108,255,.55) 0%, rgba(79,108,255,0) 55%), radial-gradient(90% 120% at 0% 100%, rgba(139,108,255,.35) 0%, rgba(139,108,255,0) 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 1px solid rgba(184,242,74,.35); border-radius: 20px; box-shadow: 0 22px 50px rgba(9,14,27,.28); }
.phase-hero::after { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: var(--lime); border-radius: 50%; opacity: .12; filter: blur(30px); pointer-events: none; }
.phase-hero-text { position: relative; z-index: 1; flex: 1 1 420px; }
.phase-eyebrow { display: inline-block; padding: 5px 11px; color: #17220b; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; background: var(--lime); border-radius: 99px; }
.phase-hero h3 { margin: 12px 0 8px; color: #fff; font-size: 1.55rem; font-weight: 850; line-height: 1.2; letter-spacing: -.01em; }
.phase-hero h3 em { font-style: normal; color: var(--lime); }
.phase-hero p { margin: 0; color: #c9d1e6; font-size: .93rem; line-height: 1.55; }
.phase-hero p b { color: #fff; }
.phase-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.phase-perks li { padding: 7px 12px; color: #e8ecf8; font-size: .8rem; font-weight: 650; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.phase-fine { display: block; margin-top: 10px; color: #8d97b3; font-size: .74rem; }
.phase-hero-cta { position: relative; z-index: 1; display: grid; flex: 0 1 260px; justify-items: center; gap: 10px; text-align: center; }
.phase-hero-cta small { color: #aeb8d3; font-size: .76rem; line-height: 1.4; }
.phase-cta { width: 100%; padding: 18px 26px; color: #17220b; font-size: 1.05rem; font-weight: 900; white-space: nowrap; background: var(--lime); border: 0; border-radius: 14px; box-shadow: 0 14px 34px rgba(184,242,74,.38), 0 0 0 4px rgba(184,242,74,.16); cursor: pointer; transition: transform .2s, box-shadow .2s; animation: phase-pulse 2.4s ease-in-out infinite; }
a.phase-cta { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.phase-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(184,242,74,.5), 0 0 0 6px rgba(184,242,74,.2); }
.phase-cta:disabled { cursor: default; opacity: .6; animation: none; }
.phase-hero-cta .phase-pay { width: 100%; }
@keyframes phase-pulse { 0%, 100% { box-shadow: 0 14px 34px rgba(184,242,74,.38), 0 0 0 4px rgba(184,242,74,.16); } 50% { box-shadow: 0 14px 34px rgba(184,242,74,.48), 0 0 0 10px rgba(184,242,74,.06); } }
@media (prefers-reduced-motion: reduce) { .phase-cta { animation: none; } }
/* Fase 2 · passo 1: scelta delle pagine che contano */
/* Fase 2 · passo 1 come pagina a sé (fase2.php) */
.phase2-page { width: min(1240px, calc(100% - 32px)); margin: 24px auto 0; padding-bottom: 120px; }
/* I due passi della Fase 2 in cima a fase2.php */
.p2-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.p2-step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.p2-step > i { display: grid; flex: none; place-items: center; width: 30px; height: 30px; font-size: .82rem; font-style: normal; font-weight: 850; color: var(--muted); background: #f0f2f6; border-radius: 9px; }
.p2-step > span { display: flex; flex-direction: column; }
.p2-step b { color: var(--ink); font-size: .88rem; }
.p2-step small { font-size: .72rem; }
.p2-step.is-active > i { color: #fff; background: var(--blue); }
.p2-step.is-done > i { color: #17220b; background: var(--lime); }
a.p2-step.is-link { margin: -6px -8px; padding: 6px 8px; text-decoration: none; border-radius: 12px; transition: background .15s; }
a.p2-step.is-link:hover { background: #f1f4ff; }
a.p2-step.is-link small { color: var(--blue-dark); font-weight: 700; }
.p2-step-line { flex: 1 1 40px; min-width: 24px; height: 2px; background: var(--line); }
.phase2-page .workflow-card { margin: 0; }
.p2-head { padding: 26px 28px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.p2-head h1 { margin: 12px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.p2-head p { margin: 0; color: #4a5468; font-size: .9rem; line-height: 1.55; }
.p2-head .rb-ai { margin: 14px 0 0; }
.p2-board { margin-top: 16px; }
.p2-board .rb-groups { margin: 0; }
.p2-foot { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(9,14,27,.08); }
.p2-foot:empty { display: none; }
.p2-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0 14px; }
.p2-foot p { margin: 0; font-size: .88rem; }
.p2-foot small.is-ok { color: #318c5f; }
.p2-foot small.is-over { color: #b45309; }
.p2-foot small.pp-sample { color: var(--blue-dark); }
.p2-foot .pp-foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.p2-foot .phase-cta { width: auto; padding: 14px 22px; font-size: .95rem; animation: none; }
.p2-foot a.confirm-cancel { text-decoration: none; }
.p2-stop { padding: 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.p2-stop h2 { margin: 0 0 8px; }
.p2-stop p { color: #4a5468; }
.p2-back { display: inline-block; width: auto; text-decoration: none; animation: none; }
@media (max-width: 640px) {
    .p2-head { padding: 20px 16px 14px; }
    .p2-foot .pp-foot-actions, .p2-foot .phase-cta { width: 100%; }
}
.pp-top .rb-ai { margin: 12px 0 0; }
.pp-list .rb-groups { margin: 0; }
.pp-col.has-picked { border-color: rgba(79,108,255,.45); }
.pp-col h4 { align-items: center; }
.pp-col-pick input, .pp-include input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.pp-include { display: flex; flex: none; }
.pp-row:not(.is-on) .rb-page a { color: #9aa2b3; font-weight: 600; }
.pp-more { margin-top: 6px; }
.phase-pick-dialog { display: flex; flex-direction: column; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 40px); padding: 0; overflow: hidden; }
.phase-pick-dialog:not([open]) { display: none; }
.pp-top { padding: 22px 24px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.pp-top h2 { margin: 10px 0 6px; font-size: 1.35rem; }
.pp-top p { margin: 0; color: #4a5468; font-size: .86rem; line-height: 1.5; }
.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-tools input { flex: 1 1 240px; min-width: 0; padding: 9px 12px; font: inherit; font-size: .86rem; border: 1px solid var(--line); border-radius: 10px; }
.pp-list { flex: 1 1 auto; min-height: 160px; padding: 12px 24px; overflow-y: auto; text-align: left; background: var(--canvas); }
.pp-group { margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pp-group.has-picked { border-color: rgba(79,108,255,.45); }
.pp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; }
.pp-head label { display: flex; flex: 1 1 200px; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.pp-head b { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.pp-head small { color: var(--muted); font-size: .78rem; }
.pp-group input[type="checkbox"] { flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.pp-children { margin: 0 12px 10px 26px; padding-left: 12px; border-left: 2px solid #e4e9ff; }
.pp-children .pp-group { margin: 6px 0; background: #fafbff; border-color: #e8ecf5; }
.pp-children .pp-head { padding: 7px 10px; }
.pp-children .pp-head b { font-size: .84rem; }
.pp-page { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: .82rem; border-top: 1px dashed var(--line); }
.pp-page:first-child { border-top: 0; }
.pp-page.is-own { margin: 6px 0 2px; padding: 7px 10px; background: #eef1ff; border: 0; border-radius: 9px; }
.pp-list > .pp-page { margin-bottom: 8px; padding: 9px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pp-page label { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.pp-page label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-page input[type="checkbox"] { flex: none; width: 16px; height: 16px; accent-color: var(--blue); }
.pp-page a { flex: none; color: var(--muted); text-decoration: none; }
.pp-role { flex: none; padding: 2px 8px; color: var(--blue-dark); font-size: .7rem; font-style: normal; font-weight: 700; background: #eef1ff; border-radius: 99px; }
.pp-role.is-off { color: var(--muted); background: #f1f2f5; }
.pp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 24px 18px; text-align: left; border-top: 1px solid var(--line); }
.pp-foot p { margin: 0; font-size: .88rem; }
.pp-foot small { color: #318c5f; font-size: .78rem; }
.pp-foot small.is-over { color: #b45309; }
.pp-foot small.pp-sample { color: var(--blue-dark); }
.pp-foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pp-foot .phase-cta { width: auto; padding: 14px 22px; font-size: .95rem; animation: none; }
@media (max-width: 640px) {
    .pp-top, .pp-list, .pp-foot { padding-right: 16px; padding-left: 16px; }
    .pp-children { margin-left: 10px; padding-left: 8px; }
    .pp-foot-actions, .pp-foot .phase-cta { width: 100%; }
}
.phase-progress { height: 8px; margin-top: 14px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.phase-progress i { display: block; width: 0; height: 100%; background: var(--lime); border-radius: 99px; transition: width .4s ease; }
@media (max-width: 640px) {
    .phase-hero { padding: 22px 18px; }
    .phase-hero h3 { font-size: 1.25rem; }
    .phase-hero-cta { flex-basis: 100%; }
    .phase-cta { white-space: normal; }
}
.phase-dialog { max-width: 560px; }
.phase-dialog p { line-height: 1.5; }
.phase-dialog .confirm-actions { flex-wrap: wrap; }
.phase-dialog .phase-pay { display: contents; }

/* ---- Programma di crescita */
.growth-box { margin: 18px 0 0; padding: 16px 18px; background: #fff; border: 1px solid #d9e2f5; border-radius: 14px; text-align: left; }
.growth-box.is-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: linear-gradient(135deg, #f4f6ff, #f6fbf7); }
.growth-box.is-cta > div { flex: 1 1 380px; }
.growth-box.is-cta p { margin: 6px 0 0; color: #3d4659; font-size: .84rem; line-height: 1.5; }
.growth-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.growth-head small { color: #8a94a8; font-size: .7rem; }
.growth-actions { display: inline-flex; align-items: center; gap: 10px; }
.growth-summary { margin: 10px 0 4px; color: #1a2233; font-size: .9rem; line-height: 1.6; }
.growth-box section { margin-top: 14px; }
.growth-box h4 { margin: 0 0 6px; font-size: .86rem; }
.growth-box ul, .growth-box ol { margin: 0; padding-left: 18px; font-size: .8rem; line-height: 1.5; }
.growth-box p { font-size: .8rem; line-height: 1.5; color: #3d4659; }
.growth-goals { width: 100%; border-collapse: collapse; font-size: .78rem; }
.growth-goals th, .growth-goals td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #eef1f5; }
.growth-goals th { color: #8a94a8; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.growth-gaps li { margin-bottom: 10px; }
.growth-gaps p { margin: 2px 0; }
.growth-type { padding: 1px 8px; color: #2b47c9; font-size: .66rem; font-weight: 800; background: #eef3fb; border-radius: 999px; }
.growth-q { color: #6b7385; font-size: .74rem; }
.growth-q i { font-style: normal; color: #273043; }
.growth-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.growth-steps > div { padding: 10px 12px; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 10px; }
@media print {
    body.is-printing-growth * { visibility: hidden; }
    body.is-printing-growth [data-growth-print], body.is-printing-growth [data-growth-print] * { visibility: visible; }
    body.is-printing-growth [data-growth-print] { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
    body.is-printing-growth .growth-actions { display: none; }
}

/* Logo Site Hero (immagine) */
.brand-logo-img { display: block; width: auto; height: 34px; }
.app-header.is-compact .brand-logo-img { height: 28px; }
.brand-chip { padding: 6px 12px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.brand-chip .brand-logo-img { height: 30px; }
@media (max-width: 600px) { .brand-logo-img { height: 26px; } }


/* ==== Pagina d'ingresso di /grow nello stile del logo Site Hero (chiaro, viola dello scudo, arancio di «Hero») ==== */
.auth-view { color: #1c0f2e; background: #fff; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.auth-view .auth-shell { background: #fff; }
.auth-view .auth-shell::before { opacity: 1; background-image: radial-gradient(rgba(28, 15, 46, .07) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at 40% 40%, #000 25%, transparent 72%); }
.auth-view .auth-shell::after { content: ""; position: absolute; top: -240px; right: -180px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .26), rgba(79, 70, 229, .1) 55%, transparent 70%); filter: blur(70px); pointer-events: none; }
.auth-view .auth-hero::before { content: ""; position: absolute; bottom: -220px; left: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 0, .22), rgba(255, 77, 0, .06) 55%, transparent 70%); filter: blur(70px); pointer-events: none; z-index: -1; }
.auth-view .auth-nav { border-bottom-color: #ece7f3; }
.auth-view .auth-nav .brand-logo-img { height: 42px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; color: #6d28d9; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #f1ebff; border: 1px solid #ddd0ff; border-radius: 999px; }
.auth-eyebrow b { color: #ff5a1f; }
.auth-view .auth-copy h1 { margin-top: 18px; color: #1c0f2e; font-family: "Poppins", "Inter", sans-serif; font-weight: 800; letter-spacing: -.04em; }
.auth-view .auth-copy h1 span { background: linear-gradient(90deg, #ff4d00, #ff8a00 55%, #ffb300); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-view .auth-copy > p { color: #5e5670; }
.auth-view .auth-card { color: #1c0f2e; background: rgba(255, 255, 255, .9); border: 1px solid #ece7f3; box-shadow: 0 24px 60px rgba(28, 15, 46, .1); }
.auth-view .auth-card h2 { color: #1c0f2e; font-family: "Poppins", "Inter", sans-serif; }
.auth-view .auth-note, .auth-view .auth-switch, .auth-view .auth-hint, .auth-view .auth-links { color: #5e5670; }
.auth-view .auth-note strong { color: #1c0f2e; }
.auth-view .auth-form label { color: #3d3150; }
.auth-view .auth-form input { color: #1c0f2e; background: #fff; border: 1.5px solid #e2d9f1; }
.auth-view .auth-form input:focus { background: #fff; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.auth-view .auth-form input::placeholder { color: #a79fb8; }
.auth-view .auth-form small { color: #8a8299; }
.auth-view .auth-submit { color: #fff; background: linear-gradient(90deg, #ff4d00, #ff8a00 60%, #ffb300); box-shadow: 0 14px 30px rgba(255, 90, 31, .3); }
.auth-view .auth-submit span { color: #fff; }
.auth-view .auth-submit:hover { box-shadow: 0 18px 36px rgba(255, 90, 31, .4); }
.auth-view .auth-switch a, .auth-view .auth-links button { color: #6d28d9; text-decoration-color: rgba(109, 40, 217, .35); }
.auth-view .auth-switch a:hover, .auth-view .auth-links button:hover { text-decoration-color: #ff5a1f; }
.auth-view .connect-button { color: #1c0f2e; background: #fff; border: 1.5px solid #e2d9f1; box-shadow: 0 14px 34px rgba(28, 15, 46, .1); }
.auth-view .button-arrow { background: linear-gradient(135deg, #ff4d00, #ffb300); }
.auth-view .auth-flash.is-error { color: #a3261a; background: #fff1ee; border-color: #f6c7bf; }
.auth-view .auth-flash.is-info { color: #4c2a8a; background: #f4effe; border-color: #ddd0ff; }
.auth-view .trust-row, .auth-view .trust-row span { color: #5e5670; }

/* anteprima dell'app: come appare davvero dentro Site Hero */
.mock-app { position: absolute; z-index: 2; top: 40px; right: 20px; width: min(470px, 92%); padding: 18px; color: #273043; background: #fff; border: 1px solid #ece7f3; border-radius: 22px; box-shadow: 0 40px 90px rgba(28, 15, 46, .16); transform: rotate(-1.2deg); }
.mock-steps { display: flex; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #f0edf5; }
.mock-steps span { display: inline-flex; flex: 1; align-items: center; gap: 4px; color: #6b7385; font-size: .58rem; font-weight: 800; white-space: nowrap; }
.mock-steps i { display: grid; place-items: center; width: 15px; height: 15px; font-size: .55rem; font-style: normal; border-radius: 4px; }
.mock-steps .is-done i { color: #1c3a05; background: #b8f24a; }
.mock-steps .is-now i { color: #fff; background: #4338ca; }
.mock-dots { display: flex; gap: 4px; margin: 12px 0; }
.mock-dots b { display: grid; place-items: center; width: 22px; height: 22px; color: #8a94a8; font-size: .6rem; background: #fff; border: 1.5px solid #e3e7ee; border-radius: 6px; }
.mock-dots b.g { color: #fff; background: #0cce6b; border-color: #0cce6b; }
.mock-dots b.o { color: #fff; background: #ffa400; border-color: #ffa400; }
.mock-dots b.now { color: #fff; background: #2b47c9; border-color: #2b47c9; }
.mock-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-task small { color: #4f6cff; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mock-task strong { display: block; margin-top: 3px; color: #10172a; font-family: "Poppins", "Inter", sans-serif; font-size: .95rem; line-height: 1.25; }
.mock-score { position: relative; flex: none; width: 52px; height: 52px; }
.mock-score svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.mock-score circle { fill: none; stroke-width: 3.4; }
.mock-score .t { stroke: #d8f6e5; }
.mock-score .v { stroke: #0cce6b; stroke-linecap: round; }
.mock-score b { position: absolute; inset: 0; display: grid; place-items: center; color: #0a8f4b; font-size: .95rem; font-weight: 850; }
.mock-serp { margin-top: 12px; padding: 11px 12px; font-family: Arial, Helvetica, sans-serif; border: 1px solid #e3e6ec; border-radius: 10px; }
.mock-serp small { display: block; margin-bottom: 4px; color: #8a94a8; font-family: "Inter", sans-serif; font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mock-serp em { color: #4d5156; font-size: .66rem; font-style: normal; }
.mock-serp strong { display: block; margin: 2px 0; color: #1a0dab; font-size: .9rem; font-weight: 400; }
.mock-serp p { margin: 0; color: #4d5156; font-size: .7rem; line-height: 1.45; }
.mock-steps-list { display: grid; gap: 5px; margin-top: 12px; font-size: .7rem; font-weight: 700; }
.mock-steps-list .ok { color: #1f6b3f; }
.mock-steps-list .todo { color: #8a5a10; }
.mock-float { position: absolute; z-index: 3; display: grid; gap: 4px; padding: 13px 16px; background: #fff; border: 1px solid #ece7f3; border-radius: 16px; box-shadow: 0 24px 50px rgba(28, 15, 46, .14); }
.mock-float small { color: #8a8299; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mock-float strong { color: #1c0f2e; font-size: .88rem; }
.mock-check { top: 8px; left: 0; transform: rotate(3deg); }
.mock-check .bar { display: block; width: 130px; height: 5px; overflow: hidden; background: #ece7f3; border-radius: 99px; }
.mock-check .bar i { display: block; width: 92%; height: 100%; background: linear-gradient(90deg, #4f46e5, #a855f7); }
.mock-growth { right: 0; bottom: 30px; transform: rotate(2.5deg); }
.mock-growth strong { background: linear-gradient(90deg, #ff4d00, #ffb300); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Passo 04: pagine che rimandano già altrove (redirect veri sul sito) */
.moved-list { display: grid; gap: 4px; margin: 6px 0 2px; padding: 0; list-style: none; }
.moved-list li { padding: 7px 10px; color: #5b4a12; font-size: .78rem; line-height: 1.45; background: #fff8e6; border: 1px solid #f3e1a8; border-radius: 8px; }
.page-card .page-via { display: block; margin-top: 3px; color: #6d28d9; font-size: .7rem; font-weight: 700; }
.map-done.is-moved { border-color: #f3c46b; background: #fffaf0; }
.map-done .moved-warn { flex-basis: 100%; margin: 6px 0 0; color: #7a5a10; font-size: .8rem; }

/* Varianti della stessa pagina (www, «/» finale, tracciamento): versione ufficiale e stato di ognuna */
.variant-groups { display: grid; gap: 10px; margin: 8px 0; padding: 0; list-style: none; }
.variant-group > b { display: block; margin-bottom: 4px; color: #1c2541; font-size: .82rem; word-break: break-all; }
.variant-group ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.variant-group li { padding: 7px 10px; font-size: .8rem; background: #fff; border: 1px solid #e3e7ee; border-left-width: 4px; border-radius: 8px; }
.variant-group li a { color: inherit; font-weight: 700; word-break: break-all; }
.variant-group li small { display: block; margin-top: 2px; color: #5a6478; }
.variant-group li.is-ok { border-left-color: #0cce6b; }
.variant-group li.is-warn { border-left-color: #ffa400; }
.variant-group li.is-bad { border-left-color: #ff4e42; }
.variant-group li.is-wait { border-left-color: #c4cad6; }
.variant-group li .code-row { margin-top: 6px; }
.variant-group li .target-link { margin-top: 4px; }
.variant-group li.is-info { border-left-color: #a5b4fc; }

/* «Controllo attività»: ricontrollo di tutte le attività in sottofondo */
.sweep-box { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 16px; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 14px; }
.sweep-box.is-finished { background: #effaf3; border-color: #bfe8cf; }
.sweep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; }
.sweep-head b { display: inline-flex; align-items: center; gap: 6px; color: #3b2a7a; }
.sweep-box.is-finished .sweep-head b { color: #1f6b3f; }
.sweep-head span { flex: 1; min-width: 0; overflow: hidden; color: #5a6478; text-overflow: ellipsis; white-space: nowrap; }
.sweep-bar { display: block; height: 6px; overflow: hidden; background: #e4def8; border-radius: 99px; }
.sweep-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #4f46e5, #a855f7); border-radius: 99px; transition: width .4s ease; }
.sweep-box.is-finished .sweep-bar i { background: #0cce6b; }
.sweep-run { margin-left: 10px; padding: 3px 10px; color: #4338ca; font-size: .74rem; font-weight: 800; background: #fff; border: 1px solid #d6d3f5; border-radius: 999px; cursor: pointer; }
.sweep-run:hover:not([disabled]) { border-color: #4338ca; }
.sweep-run[disabled] { opacity: .6; cursor: default; }

.intent-list .moved-warn { margin: 6px 0 8px; padding: 8px 10px; color: #7a5a10; font-size: .8rem; background: #fff8e6; border: 1px solid #f3e1a8; border-radius: 8px; }

/* «📄 Report» nella barra: un link che si comporta come gli altri pulsanti */
.workflow-tools .tools-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #3d4659; font-size: .74rem; font-weight: 700; text-decoration: none; background: transparent; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
.workflow-tools .tools-link:hover { color: var(--blue-dark); background: #f3f6fd; }

/* «Cosa fare» sulla pagina scelta: titolo e H1 di oggi con le parole mancanti */
.title-live { display: grid; gap: 3px; margin: 6px 0; padding: 0; list-style: none; font-size: .8rem; }
.title-live li { padding: 5px 9px; background: #fff; border: 1px solid #e3e7ee; border-left: 3px solid #0cce6b; border-radius: 6px; }
.title-live li.is-todo { border-left-color: #ff4e42; }
.title-live li span { font-weight: 700; }
.title-live em { color: #b42318; font-style: normal; font-weight: 700; }
.title-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.title-ideas { margin-top: 8px; }
.title-ideas > summary { color: #4338ca; font-size: .8rem; font-weight: 800; cursor: pointer; }

/* Sitemap su un'altra versione del sito rispetto alla proprietà di Search Console */
.ix-mismatch { margin: 8px 0; padding: 12px 14px; color: #5c1a14; font-size: .78rem; line-height: 1.55; background: #fff3f2; border: 1px solid #f5c9c5; border-left: 4px solid #e0574b; border-radius: 10px; }
.ix-mismatch p { margin: 0 0 6px; }
.ix-mismatch ol { margin: 0; padding-left: 18px; }
.ix-mismatch li + li { margin-top: 4px; }
.ix-mismatch code { padding: 1px 5px; font-size: .74rem; background: #fff; border: 1px solid #f0d2ce; border-radius: 5px; overflow-wrap: anywhere; }

/* Sito nuovo: niente dati di Google ancora, al posto dell'errore */
.newsite-box { display: grid; gap: 14px; padding: 26px 28px; }
.newsite-head { display: flex; align-items: flex-start; gap: 14px; }
.newsite-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; font-size: 1.6rem; background: #effaf1; border: 1px solid #cbe9d2; border-radius: 14px; }
.newsite-head h2 { margin: 2px 0 6px; font-size: 1.2rem; letter-spacing: -.02em; }
.newsite-head p { margin: 0; color: #4a5468; font-size: .86rem; line-height: 1.6; }
.newsite-box h3 { margin: 4px 0 0; font-size: .92rem; }
.newsite-steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #273043; font-size: .82rem; line-height: 1.55; }
.newsite-steps code { padding: 1px 5px; font-size: .76rem; background: #f4f6fa; border-radius: 5px; }
.newsite-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.newsite-foot small { color: #7a8497; font-size: .74rem; }
@media (max-width: 640px) { .newsite-box { padding: 18px 16px; } }

/* Sito nuovo: lettura del sito fatta da Site Hero e piano */
.crawl-box { display: grid; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; }
.crawl-pages { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; border: 1px solid #edf0f5; border-radius: 10px; overflow: hidden; }
.crawl-pages li { display: grid; gap: 3px; padding: 8px 12px; font-size: .76rem; border-bottom: 1px solid #edf0f5; }
.crawl-pages li:nth-child(even) { background: #fafbfd; }
.crawl-pages li:last-child { border-bottom: 0; }
.crawl-pages a { min-width: 0; overflow: hidden; color: #1f2a44; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.crawl-pages small { color: #7a8497; overflow-wrap: anywhere; }
.crawl-pages span { display: flex; flex-wrap: wrap; gap: 4px; }
.crawl-pages i { padding: 1px 8px; font-size: .66rem; font-style: normal; border-radius: 999px; }
.crawl-pages i.is-bad { color: #9b1c1c; background: #fff3f2; }
.crawl-pages i.is-warn { color: #8a5a00; background: #fff8e8; }
.newsite-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; background: #f3f6fd; border: 1px solid #d9e2f5; border-radius: 12px; }
.newsite-cta small { flex: 1 1 260px; color: #4a5468; font-size: .74rem; line-height: 1.5; }
.newsite-cta button:disabled { opacity: .55; cursor: default; }
/* L'anello attorno al logo sostituisce la barra in fondo alla scheda (resta solo durante la lettura dei dati) */
.active-card .project-progress-track:not(.is-import) { display: none; }

/* «💬 Chiedi a Site Hero»: chat sul sito aperto (in basso a sinistra: a destra c'è il post-it delle note) */
.chat-fab { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; color: #fff; font: inherit; font-size: .84rem; font-weight: 800; background: linear-gradient(135deg, var(--blue-dark), #7b5cd6); border: 0; border-radius: 999px; box-shadow: 0 14px 34px rgba(49,76,215,.35); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(49,76,215,.42); }
.chat-fab[hidden] { display: none; }
.chat-panel { position: fixed; left: 20px; bottom: 20px; z-index: 46; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); overflow: hidden; background: #fff; border: 1px solid #e3e7ee; border-radius: 18px; box-shadow: 0 30px 80px rgba(15,22,40,.28); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--blue-dark), #7b5cd6); }
.chat-head strong { display: block; font-size: .92rem; }
.chat-head small { color: rgba(255,255,255,.82); font-size: .72rem; }
.chat-ai { padding: 0; color: #fff; font: inherit; font-weight: 800; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.chat-icon { width: 30px; height: 30px; margin-left: 4px; color: #fff; font-size: 1.05rem; line-height: 1; background: rgba(255,255,255,.16); border: 0; border-radius: 50%; cursor: pointer; }
.chat-icon:hover { background: rgba(255,255,255,.3); }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; background: #f6f8fc; }
.chat-intro p { margin: 0; padding: 12px 14px; color: #4a5468; font-size: .8rem; line-height: 1.55; background: #fff; border: 1px dashed #d5dbe6; border-radius: 12px; }
.chat-msg { max-width: 88%; padding: 9px 12px; font-size: .82rem; line-height: 1.55; border-radius: 14px; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p, .chat-msg ul + p, .chat-msg p + ul { margin-top: 6px; }
.chat-msg ul { margin: 4px 0 0; padding-left: 18px; }
.chat-msg.is-user { align-self: flex-end; color: #fff; background: var(--blue-dark); border-bottom-right-radius: 4px; }
.chat-msg.is-bot { align-self: flex-start; color: #1f2a44; background: #fff; border: 1px solid #e6eaf1; border-bottom-left-radius: 4px; }
.chat-msg.is-error { align-self: flex-start; color: #9b1c1c; background: #fff3f2; border: 1px solid #f5c9c5; }
.chat-msg.is-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-msg.is-typing span { width: 7px; height: 7px; background: #9aa3b5; border-radius: 50%; animation: chat-dot 1s infinite ease-in-out; }
.chat-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: #fff; border-top: 1px solid #edf0f5; }
.chat-chips button { padding: 5px 10px; color: var(--blue-dark); font: inherit; font-size: .72rem; font-weight: 700; text-align: left; background: #eef3fd; border: 1px solid #d3def5; border-radius: 999px; cursor: pointer; }
.chat-chips button:hover { background: #e2ebfd; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.chat-form textarea { flex: 1; min-height: 38px; max-height: 140px; padding: 9px 12px; font: inherit; font-size: .82rem; line-height: 1.4; resize: none; border: 1px solid #d5dbe6; border-radius: 12px; }
.chat-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(79,108,255,.18); }
.chat-form button { width: 38px; height: 38px; flex: none; color: #fff; font-size: .95rem; background: var(--blue-dark); border: 0; border-radius: 50%; cursor: pointer; }
.chat-form button:disabled, .chat-form textarea:disabled { opacity: .55; cursor: default; }
@media (max-width: 640px) {
    .chat-fab { left: 16px; bottom: 16px; }
    .chat-panel { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }

/* Chiave dell'IA: campo di testo (non «password», così il browser non propone email e password salvate) ma con i pallini */
.ai-secret { -webkit-text-security: disc; text-security: disc; font-family: inherit; letter-spacing: .08em; }
.ai-secret::placeholder { letter-spacing: normal; }

/* «✦ IA»: spiegazioni sempre visibili, passo per passo */
.ai-guide { margin: 0 0 12px; padding: 12px 14px; color: #273043; font-size: .78rem; line-height: 1.55; background: #f3f6fd; border: 1px solid #d9e2f5; border-radius: 12px; }
.ai-guide > summary { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; cursor: pointer; list-style: none; }
.ai-guide > summary::-webkit-details-marker { display: none; }
.ai-guide > summary em { margin-left: auto; color: var(--blue-dark); font-size: .72rem; font-style: normal; font-weight: 700; }
.ai-guide[open] > summary { margin-bottom: 8px; }
.ai-i { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; color: #fff; font: italic 800 .74rem/1 Georgia, 'Times New Roman', serif; background: var(--blue-dark); border-radius: 50%; }
.ai-guide:not([open]) { padding-top: 9px; padding-bottom: 9px; }
.ai-guide > summary:hover em { text-decoration: underline; }
.ai-guide ol { margin: 0; padding-left: 18px; }
.ai-guide li + li { margin-top: 5px; }
.ai-guide a { color: var(--blue-dark); font-weight: 700; }
.ai-guide small { display: block; margin-top: 8px; color: #6b7385; font-size: .72rem; }
.ai-code { display: inline-flex; align-items: center; gap: 4px; margin: 2px 2px 2px 0; padding: 1px 1px 1px 7px; background: #fff; border: 1px solid #d5dbe6; border-radius: 7px; vertical-align: middle; }
.ai-code code { font-size: .74rem; overflow-wrap: anywhere; }
.ai-code button { padding: 2px 8px; color: var(--blue-dark); font: inherit; font-size: .66rem; font-weight: 800; background: #eef3fd; border: 0; border-radius: 5px; cursor: pointer; }

/* «✦ IA»: tendina con i modelli trovati (per Ollama con parametri e grandezza) */
.ai-model-pick { width: 100%; margin-top: 6px; padding: 8px 10px; font: inherit; font-size: .8rem; background: #f3f6fd; border: 1px solid #c9d6f2; border-radius: 10px; cursor: pointer; }

/* ---- Novità da Google: ricerche e pagine nuove, festose (coriandoli una volta sola quando arrivano) */
.news-slot[hidden] { display: none; }
.news-box { position: relative; margin: 0 0 18px; padding: 20px 22px; overflow: hidden; background: linear-gradient(135deg, #f6ffe6 0%, #ffffff 55%, #eef1ff 100%); border: 1px solid rgba(184,242,74,.9); border-radius: 18px; box-shadow: 0 14px 34px rgba(79,108,255,.12); }
.news-box.is-warn { background: #fff8ec; border-color: #f3c873; box-shadow: none; }
.news-box.is-party { animation: news-pop .6s cubic-bezier(.2,1.4,.4,1); }
.news-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.news-head strong { display: block; margin-top: 4px; font-size: 1.12rem; font-weight: 850; line-height: 1.3; }
.news-head p { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.news-head .ghost-button { flex: 0 0 auto; }
.news-list { position: relative; z-index: 1; display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.news-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag name act" "tag note act"; align-items: center; gap: 2px 12px; padding: 10px 12px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 12px; }
.news-tag { grid-area: tag; padding: 4px 9px; font-size: .72rem; font-weight: 800; white-space: nowrap; background: var(--lime); color: #17220b; border-radius: 99px; }
.news-item.is-risen .news-tag { color: #fff; background: var(--blue); }
.news-item.is-fight .news-tag { color: #6b4300; background: #ffe2a8; }
.news-item b { grid-area: name; min-width: 0; overflow-wrap: anywhere; font-size: .93rem; }
.news-item small { grid-area: note; color: var(--muted); font-size: .78rem; }
.news-act { grid-area: act; }
.news-go { padding: 7px 12px; color: #fff; font-size: .8rem; font-weight: 750; white-space: nowrap; background: var(--blue); border: 0; border-radius: 10px; cursor: pointer; }
.news-go:hover { background: var(--blue-dark); }
.news-ok { color: #2f7a12; font-size: .8rem; font-weight: 700; }
.news-more { position: relative; z-index: 1; margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.news-confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.news-confetti i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: news-fall 1.8s ease-in forwards; }
.news-confetti i:nth-child(4n+1) { background: var(--lime); }
.news-confetti i:nth-child(4n+2) { background: var(--blue); }
.news-confetti i:nth-child(4n+3) { background: var(--purple); }
.news-confetti i:nth-child(4n) { background: #ffb347; }
.news-confetti i:nth-child(1) { left: 4%; animation-delay: 0s; }
.news-confetti i:nth-child(2) { left: 11%; animation-delay: .25s; }
.news-confetti i:nth-child(3) { left: 18%; animation-delay: .1s; }
.news-confetti i:nth-child(4) { left: 26%; animation-delay: .4s; }
.news-confetti i:nth-child(5) { left: 33%; animation-delay: .05s; }
.news-confetti i:nth-child(6) { left: 41%; animation-delay: .3s; }
.news-confetti i:nth-child(7) { left: 49%; animation-delay: .15s; }
.news-confetti i:nth-child(8) { left: 56%; animation-delay: .45s; }
.news-confetti i:nth-child(9) { left: 63%; animation-delay: .2s; }
.news-confetti i:nth-child(10) { left: 71%; animation-delay: .35s; }
.news-confetti i:nth-child(11) { left: 78%; animation-delay: .08s; }
.news-confetti i:nth-child(12) { left: 85%; animation-delay: .28s; }
.news-confetti i:nth-child(13) { left: 91%; animation-delay: .12s; }
.news-confetti i:nth-child(14) { left: 96%; animation-delay: .38s; }
@keyframes news-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(240px) rotate(540deg); } }
@keyframes news-pop { 0% { transform: scale(.97); } 100% { transform: scale(1); } }
@media (max-width: 640px) {
    .news-head { flex-direction: column; }
    .news-item { grid-template-columns: 1fr; grid-template-areas: "tag" "name" "note" "act"; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .news-box.is-party, .news-confetti i { animation: none; } .news-confetti { display: none; } }

/* ---- Fase 2: riquadro Google (non è nell'indice · difficoltà · il motivo che vediamo sulla pagina) */
.phase-google { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid #f5c9cb; border-left: 6px solid #e5484d; border-radius: 16px; box-shadow: 0 10px 26px rgba(229,72,77,.08); }
.pg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pg-badge { padding: 7px 13px; color: #fff; font-size: .8rem; font-weight: 850; letter-spacing: .01em; background: #e5484d; border-radius: 99px; box-shadow: 0 6px 16px rgba(229,72,77,.28); }
.pg-gauge { display: flex; align-items: center; gap: 10px; }
.pg-gauge .task-score { margin: 0; }
.pg-gauge .task-score b { font-size: 1.05rem; }
.pg-gauge .task-score small { line-height: 1.25; }
.pg-gauge em { max-width: 150px; color: var(--muted); font-size: .74rem; font-style: normal; line-height: 1.3; }
.pg-label { margin-top: 6px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pg-title { color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.pg-why { margin: 0; color: #4a5468; font-size: .84rem; line-height: 1.5; }
.pg-causes { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.pg-cause { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff8ec; border: 1px solid #f6dfb4; border-radius: 12px; }
.pg-cause.is-bad { background: #fff3f3; border-color: #f5c9cb; }
.pg-cause.is-ok { background: #effbf4; border-color: #bfe9d0; }
.pg-cause > span { flex: none; font-size: 1.1rem; }
.pg-cause b { display: block; color: var(--ink); font-size: .86rem; }
.pg-cause small { color: var(--muted); font-size: .76rem; }
.pg-cause.is-main { padding: 12px 14px; border-width: 2px; }
.pg-cause.is-main > span { display: grid; width: 38px; height: 38px; place-items: center; font-size: 1.3rem; background: #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(16,23,42,.08); }
.pg-cause.is-main b { font-size: .98rem; }
.pg-wait { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.pg-fix { margin: 4px 0 0; color: var(--blue); font-size: .8rem; font-weight: 700; }

/* ---- Piano 1 con la Fase 2 già partita: pulsante in testa per andarci */
.phase-go-top { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: #17220b; font-size: .84rem; font-weight: 800; text-decoration: none; white-space: nowrap; background: var(--lime); border-radius: 12px; box-shadow: 0 8px 20px rgba(184,242,74,.35); transition: transform .15s; }
.phase-go-top:hover { transform: translateY(-1px); }
.phase-go-top i { width: 8px; height: 8px; background: #3d7a00; border-radius: 50%; animation: phase-dot 1.6s ease-in-out infinite; }
.phase-go-top small { padding: 2px 7px; font-size: .72rem; font-weight: 750; background: rgba(255,255,255,.55); border-radius: 99px; }
.phase-go-top.is-done { color: #0a8f4b; background: #e3f8ec; box-shadow: none; }
.phase-go-top.is-done i { background: #0cce6b; animation: none; }
@keyframes phase-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .phase-go-top i { animation: none; } }

/* ---- Ollama in diretta (avanzamento, ragionamento, Interrompi) ---- */
.ai-live { position: fixed; right: 20px; bottom: 20px; z-index: 71; width: min(440px, calc(100% - 40px)); color: #fff; background: #1b2338; border-left: 4px solid var(--purple); border-radius: 12px; box-shadow: 0 18px 50px rgba(9, 14, 27, .35); overflow: hidden; }
.ai-live.is-done { border-left-color: var(--lime); }
.ai-live-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ai-live-dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--purple); animation: aiLivePulse 1.2s ease-in-out infinite; }
.ai-live.is-done .ai-live-dot { background: var(--lime); animation: none; }
.ai-live-title { display: grid; flex: 1; min-width: 0; gap: 2px; }
.ai-live-title b { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-live-title small { color: #b9c0d4; font-size: .72rem; }
.ai-live-stop { padding: 6px 10px; color: #fff; font-size: .72rem; font-weight: 800; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; cursor: pointer; }
.ai-live-think { border-top: 1px solid rgba(255, 255, 255, .08); }
.ai-live-think[hidden] { display: none; }
.ai-live-think summary { padding: 8px 14px; color: #c9bcff; font-size: .74rem; font-weight: 700; cursor: pointer; }
.ai-live-text { max-height: 220px; padding: 0 14px 12px; overflow-y: auto; color: #aeb5c9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes aiLivePulse { 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .ai-live-dot { animation: none; } }

/* ---- Piano completato: grafici dei risultati e dettaglio del giorno */
.result-charts { display: grid; gap: 14px; margin: 0 0 16px; }
.rc-hero { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(120deg, #e9f9f0, #f4fbf7); border: 1px solid #c8eed8; }
.rc-hero b { font-size: 2.2rem; line-height: 1; font-weight: 800; color: #1f9d5a; letter-spacing: -.02em; }
.rc-hero span { display: grid; gap: 2px; color: #2b3445; font-weight: 600; }
.rc-hero small { color: #6c7588; font-weight: 400; font-size: .76rem; }
.rc-hero.is-down { background: #fff4f2; border-color: #f6d3cc; }
.rc-hero.is-down b { color: #d0482f; }
.rc-card { padding: 12px 14px 10px; background: #fff; border: 1px solid #e6eaf1; border-radius: 12px; }
.rc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.rc-head small { color: #8b94a4; font-size: .7rem; }
.rc-plot { position: relative; height: 130px; }
.rc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rc-col { fill: transparent; cursor: pointer; }
.rc-col:hover { fill: #f2f5fb; }
.rc-col.is-selected { fill: #eaf0ff; }
.rc-bar, .rc-impr { cursor: pointer; transition: opacity .15s; }
.rc-bar { fill: #c9d2e3; }
.rc-bar.is-after { fill: #59c98a; }
.rc-impr { fill: #dfe5f1; }
.rc-impr.is-after { fill: #b9ccff; }
.rc-bar:hover, .rc-impr:hover { opacity: .75; }
.rc-bar.is-selected, .rc-impr.is-selected { fill: var(--blue); }
.rc-avg { stroke: #8b94a4; stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.rc-avg.is-after { stroke: #1f9d5a; }
.rc-start { stroke: #4f6cff; stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; pointer-events: none; }
.rc-pos { fill: none; stroke: #ff8a3d; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.rc-scale { position: absolute; inset: 0 auto 0 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.rc-scale i { font-style: normal; font-size: .62rem; color: #c8611d; background: rgba(255, 255, 255, .85); padding: 0 3px; border-radius: 3px; }
.rc-axis-start { color: #4f6cff; }
.finish-legend i.is-avg { margin-left: 10px; width: 14px; height: 0; border-top: 2px dashed #8b94a4; border-radius: 0; }
.finish-legend i.is-impr { background: #dfe5f1; }
.finish-legend i.is-impr-after { margin-left: 10px; background: #b9ccff; }
.finish-legend i.is-pos { margin-left: 10px; width: 14px; height: 3px; background: #ff8a3d; }
.day-detail { padding: 14px; border-radius: 12px; background: #f7f9fd; border: 1px solid #dde4f3; animation: day-in .2s ease-out; }
.day-detail.is-after { background: #f3fbf6; border-color: #cdebd9; }
@keyframes day-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.day-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-head > div { flex: 1; display: grid; gap: 1px; text-align: center; }
.day-head b { text-transform: capitalize; }
.day-head small { color: #6c7588; font-size: .72rem; }
.day-nav, .day-close { min-width: 34px; padding: 4px 8px; font-size: 1.05rem; line-height: 1; }
.day-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.day-stat { display: grid; gap: 2px; padding: 8px 10px; background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; }
.day-stat span { color: #6c7588; font-size: .72rem; }
.day-stat b { font-size: 1.25rem; }
.day-stat small { color: #8b94a4; font-size: .7rem; }
.day-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day-list table { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: .78rem; table-layout: fixed; }
.day-list th { color: #8b94a4; font-weight: 500; font-size: .68rem; text-align: right; padding: 2px 4px; }
.day-list th:first-child { width: auto; }
.day-list th:not(:first-child) { width: 46px; }
.day-list td { padding: 4px; border-top: 1px solid #e9edf4; text-align: right; }
.day-list td:first-child { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-list tr.has-clicks td:nth-child(2) { color: #1f9d5a; font-weight: 700; }
@media (max-width: 640px) {
    .day-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .day-lists { grid-template-columns: 1fr; }
    .rc-hero b { font-size: 1.7rem; }
    .rc-plot { height: 110px; }
}
/* Il controllo di Site Hero dentro il dettaglio del giorno */
.day-list td:first-child { white-space: normal; }
.dl-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.dl-tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: .64rem; line-height: 1.5; background: #eef1f6; color: #4a5468; }
.dl-tag.is-good { background: #e3f6eb; color: #1c7d48; }
.dl-tag.is-warn { background: #fff3e0; color: #a35a00; }
.dl-tag.is-bad { background: #fde8e4; color: #b4361f; }
.dl-tag.is-new { background: #e8edff; color: #3149c9; font-weight: 600; }
.dl-tag.is-target { background: #f3ecff; color: #6b3fc4; }
.dl-tag.is-link { cursor: pointer; }
.dl-tag.is-link:hover { filter: brightness(.95); text-decoration: underline; }
a.dl-name { color: inherit; text-decoration: none; }
a.dl-name:hover { color: var(--blue); text-decoration: underline; }
a.dl-name small { color: #8b94a4; font-size: .7em; }
a.dl-tag { text-decoration: none; }
button.dl-tag { border: 0; font-family: inherit; }
.dl-tag.is-action { cursor: pointer; background: #4f6cff; color: #fff; font-weight: 600; }
.dl-tag.is-action.is-bad { background: #d0482f; }
.dl-tag.is-action:hover { filter: brightness(1.08); }
.dl-tag.is-action:disabled { opacity: .6; cursor: wait; }
.redirects-todo { font-style: normal; color: #b4361f; }
.redirect-pending { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff4f2; border: 1px solid #f6d3cc; }
.redirect-pending p { margin: 0 0 6px; font-size: .82rem; }
/* Redirect da fare: avviso in cima appena si apre il sito */
.redirect-alert { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: #fff4f2; border: 1px solid #f3c9bf; border-left: 5px solid #d0482f; }
.redirect-alert header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.redirect-alert header strong { display: block; font-size: 1.05rem; color: #9e2f1a; }
.redirect-alert header p { margin: 2px 0 0; color: #6c7588; font-size: .8rem; }
.redirect-alert-act { display: flex; gap: 6px; align-items: center; }
.redirect-alert ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.redirect-alert li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 10px; background: #fff; border: 1px solid #f1dcd6; border-radius: 10px; }
.redirect-alert li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.redirect-alert li small { grid-column: 1; color: #a0412c; font-size: .74rem; }
.redirect-alert li .news-go { grid-column: 2; grid-row: 1 / span 2; }
[data-panel="redirects"].has-todo { color: #b4361f; border-color: #f3c9bf; background: #fff4f2; }

/* Apertura della proprietà: copre la schermata finché app.js non ha finito i controlli (poi sfuma). */
.boot-overlay { position: fixed; inset: 0; z-index: 48; display: grid; place-items: center; padding: 16px; background: rgba(244,246,250,.96); backdrop-filter: blur(8px); transition: opacity .3s ease; animation: boot-giveup .3s 15s forwards; }
.boot-overlay.is-leaving { opacity: 0; pointer-events: none; }
.boot-box { display: grid; justify-items: center; gap: 6px; text-align: center; }
.boot-box .activity-orb { margin-bottom: 22px; }
.boot-box strong { font-size: 1.3rem; letter-spacing: -.03em; }
.boot-box small { color: var(--muted); font-size: .92rem; }
@keyframes boot-giveup { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Vista esperto: pagina reindirizzata (o da reindirizzare) — niente controlli né attività di ottimizzazione. */
.ex-page.is-redirected > header { background: #fff7ec; }
.ex-redirect { display: grid; gap: 8px; padding: 12px 14px; font-size: .88rem; line-height: 1.5; color: #6b4a12; background: #fffaf2; border-bottom: 1px solid #f3e6cf; }
.ex-redirect.is-done { color: #1f6b3f; background: #f2fbf5; border-bottom-color: #d8efe0; }
.ex-redirect p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.ex-redirect a { color: inherit; font-weight: 700; }
.ex-redirect-moot { color: var(--muted); }
.ex-redirect-moot em { font-style: normal; color: var(--ink); }

/* «📊 Analytics»: Google Analytics 4 in sola lettura (pannello della barra strumenti e riga nelle schede). */
.ga-box { display: grid; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ga-intro { display: grid; gap: 12px; justify-items: start; max-width: 720px; }
.ga-intro p { margin: 0; line-height: 1.6; }
.ga-intro small { color: var(--muted); }
.ga-promise { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: #1f6b3f; font-size: .9rem; font-weight: 600; }
.ga-connect { text-decoration: none; }
.ga-props { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ga-props li { border: 1px solid var(--line); border-radius: 12px; }
.ga-props li.is-suggested { border-color: #b8dd7a; background: #f7fdeb; }
.ga-props label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; cursor: pointer; }
.ga-props input { margin-top: 4px; }
.ga-props span { display: grid; gap: 2px; }
.ga-props small { color: var(--muted); font-size: .8rem; }
.ga-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; color: #2f5a07; font-size: .7rem; font-style: normal; font-weight: 800; background: #e2f6c4; border-radius: 999px; }
.ga-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--muted); font-size: .88rem; }
.ga-meta b { color: var(--ink); }
.ga-error { margin: 0; padding: 10px 12px; color: #8a2c1d; font-size: .88rem; background: #fff1ee; border-radius: 10px; }
.ga-hint { margin: 0; padding: 12px 14px; color: #6b4a12; font-size: .88rem; line-height: 1.55; background: #fff8e8; border-radius: 12px; }
.ga-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ga-tiles > div { display: grid; gap: 2px; padding: 12px 14px; background: var(--canvas); border-radius: 12px; }
.ga-tiles small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.ga-tiles b { font-size: 1.35rem; letter-spacing: -.02em; }
.ga-tiles em, .ga-strip em { font-size: .78rem; font-style: normal; font-weight: 800; color: var(--muted); }
.ga-tiles em.is-up { color: #1f8a4c; }
.ga-tiles em.is-down { color: #c2412d; }
.ga-sec { display: grid; gap: 8px; }
.ga-sub { margin: 0; color: var(--muted); font-size: .86rem; }
.ga-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ga-table th { padding: 6px 8px; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: right; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.ga-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #f0f2f6; font-variant-numeric: tabular-nums; }
.ga-table th:first-child, .ga-table td:first-child { text-align: left; }
.ga-table td:first-child a { color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
.ga-table td.is-zero, .ga-strip b.is-zero { color: #c2412d; }
.ga-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .8rem; }
.ga-quiet { color: var(--muted); }
.ga-strip { margin: 6px 0 0; padding: 7px 12px; color: #33415c; font-size: .84rem; line-height: 1.5; background: #f1f4ff; border-radius: 10px; }
.ga-strip.is-empty { color: var(--muted); background: var(--canvas); }
.ex-page > .ga-strip { margin: 0; border-radius: 0; border-bottom: 1px solid #edf0f5; }
@media (max-width: 720px) {
    .ga-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ga-table th:nth-child(4), .ga-table td:nth-child(4) { display: none; }
}
.ga-box .primary-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; color: #fff; font: inherit; font-size: .92rem; font-weight: 800; background: var(--navy); border: 0; border-radius: 12px; cursor: pointer; transition: transform .2s; }
.ga-box .primary-button:hover { transform: translateY(-1px); }
.ga-box .primary-button:disabled { cursor: wait; opacity: .75; transform: none; }
.ga-box .primary-button .mini-spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

/* Incrocio Search Console × Analytics: verdetto sul clic e segnali (riga nelle schede, tabella del pannello 📊). */
.ga-verdict { display: inline-block; margin-left: 4px; padding: 1px 8px; font-size: .74rem; font-weight: 800; white-space: nowrap; border-radius: 999px; }
.ga-verdict.is-good { color: #1f6b3f; background: #e4f6ec; }
.ga-verdict.is-ok { color: #5b6476; background: #eef1f6; }
.ga-verdict.is-weak { color: #9a3412; background: #ffedd5; }
.ga-flag { color: #c2412d; font-weight: 700; }
.ga-strip.is-warn { color: #8a2c1d; background: #fff1ee; }
.ga-strip span { white-space: nowrap; }
.ga-hint ul { margin: 6px 0 0; padding-left: 4px; list-style: none; }
.ga-hint li { margin: 2px 0; }
.ga-table td .ga-verdict { margin-left: 0; }
@media (max-width: 720px) {
    .ga-table th:nth-child(6), .ga-table td:nth-child(6) { display: none; }
}

/* Prima del piano: Analytics consigliato (finestra e invito nel riquadro «Scrivi il piano»). */
.ga-first { width: min(520px, calc(100% - 32px)); }
.ga-first-tag { display: inline-block; margin-bottom: 10px; padding: 2px 10px; color: #2f5a07; font-size: .72rem; font-weight: 800; background: #e2f6c4; border-radius: 999px; }
.ga-first p.ga-first-note { margin-top: -10px; color: var(--muted); font-size: .86rem; }
.ga-first .confirm-actions { flex-wrap: wrap; }
.confirm-actions a.confirm-ok { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; font-size: .9rem; font-weight: 800; text-decoration: none; border-radius: 12px; }
.plan-gate-ga { flex: 1 1 100%; margin: 4px 0 0; padding-top: 8px; color: #33415c; font-size: .8rem; line-height: 1.5; border-top: 1px dashed #c9d2ff; }
.plan-gate-ga .target-link { margin-left: 4px; }

/* Scelta della proprietà Analytics: solo lo stesso sito; altrimenti invito a collegare l'account giusto. */
.ga-prop-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ga-prop-name .ga-badge { margin-left: 0; }
.ga-mismatch { display: grid; gap: 10px; padding: 14px 16px; color: #6b4a12; background: #fff8e8; border: 1px solid #f3e1b5; border-radius: 12px; }
.ga-mismatch p { margin: 0; line-height: 1.55; font-size: .9rem; }
.ga-mismatch b { color: var(--ink); }
.ga-tiles em { justify-self: start; padding: 0 6px; border-radius: 6px; }

/* Durante il piano: «📈 Come sta andando il sito» (stesso grafico del Piano completato), richiudibile. */
.plan-trend { margin: 0 0 16px; }
.plan-trend-box { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.plan-trend-box > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.plan-trend-box > summary::-webkit-details-marker { display: none; }
.plan-trend-box > summary small { color: var(--blue-dark); font-size: .8rem; font-weight: 700; }
.plan-trend-lead { margin: 10px 0 4px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* «Metti in alto la risposta»: cosa c'è oggi, cosa cercano, cosa fare e il pulsante per scrivere l'apertura. */
.top-guide { display: grid; gap: 10px; margin-top: 8px; padding: 12px 14px; background: #f7f9ff; border: 1px solid #dfe5ff; border-radius: 12px; }
.top-guide-now { display: grid; gap: 4px; margin: 0; }
.top-guide-now > div { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .86rem; }
.top-guide-now dt { min-width: 120px; color: var(--muted); font-weight: 700; }
.top-guide-now dd { margin: 0; color: var(--ink); }
.top-guide-todo { display: grid; gap: 5px; margin: 0; padding-left: 20px; font-size: .88rem; line-height: 1.5; }
.top-guide .write-button { justify-self: start; margin-top: 2px; }

/* In primo piano come popover (drseoOnTop in ui.js): si tolgono gli stili del browser per i popover
   (riquadro centrato a tutto schermo, bordo, margini) e restano posizione e aspetto di sempre. */
.ai-live[popover], .ai-offer[popover], .notice-toast[popover] { top: auto; height: auto; margin: 0; border-top: 0; border-right: 0; border-bottom: 0; overflow: visible; }
.ai-live[popover], .ai-offer[popover] { left: auto; }
.ai-live[popover] { overflow: hidden; }
.notice-toast[popover] { right: auto; }
/* Dentro una finestra (vedi drseoOnTop) gli stili della finestra non devono cambiare l'avviso «Cambia IA». */
dialog .ai-offer p { margin: 0; color: inherit; font-size: .82rem; line-height: 1.45; }

/* Pulsante pronto («Aggiungi un pulsante di contatto»): scelte, anteprima (con classi: la CSP ignora gli style in linea) e codice. */
.cta-builder { display: grid; gap: 10px; margin-top: 8px; padding: 12px 14px; background: #f7f9ff; border: 1px solid #dfe5ff; border-radius: 12px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cta-row > span:first-child { min-width: 70px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.cta-gap { flex: 0 0 10px; }
.cta-chip { padding: 5px 11px; color: #33415c; font: inherit; font-size: .8rem; font-weight: 700; background: #fff; border: 1px solid #d6dcea; border-radius: 999px; cursor: pointer; }
.cta-chip.is-on { color: #fff; background: var(--navy); border-color: var(--navy); }
.cta-swatch { width: 26px; height: 26px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d6dcea; cursor: pointer; }
.cta-swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.cta-c-navy { --cta: #111827; } .cta-c-blue { --cta: #2563eb; } .cta-c-green { --cta: #16a34a; } .cta-c-orange { --cta: #ea580c; } .cta-c-red { --cta: #dc2626; }
.cta-swatch[class*="cta-c-"] { background: var(--cta); }
.cta-fields { align-items: stretch; }
.cta-fields label { display: grid; flex: 1 1 220px; gap: 3px; }
.cta-fields span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.cta-fields input { padding: 8px 10px; font: inherit; font-size: .88rem; border: 1px solid #d6dcea; border-radius: 8px; }
.cta-preview { display: grid; place-items: center; padding: 18px 10px; background: #fff; border: 1px dashed #d6dcea; border-radius: 10px; }
.cta-prev { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 14px 28px; font-size: 17px; font-weight: 700; line-height: 1.3; text-align: center; border: 2px solid var(--cta); border-radius: 10px; }
.cta-prev.is-solid { color: #fff; background: var(--cta); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cta-prev.is-outline { color: var(--cta); background: #fff; }
.cta-missing { margin: 0; color: #8a5a10; font-size: .82rem; }

/* «Cosa fare» per motivo, verificati da Site Hero sul sito (senza aspettare Google), ed «Evvai» quando le pagine entrano. */
.ix-todo-checks { display: grid; gap: 6px; padding-left: 0; list-style: none; }
.ix-todo-item { display: grid; grid-template-columns: 20px 1fr auto; align-items: start; gap: 8px; font-size: .88rem; line-height: 1.5; }
.ix-todo-mark { display: grid; place-items: center; width: 20px; height: 20px; font-size: .74rem; font-weight: 800; border-radius: 50%; background: #eef1f6; color: var(--muted); }
.ix-todo-item.is-ok .ix-todo-mark { color: #fff; background: #1f8a4c; }
.ix-todo-item.is-todo .ix-todo-mark { color: #fff; background: #c2412d; }
.ix-todo-item em { color: var(--muted); font-size: .76rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.ix-todo-item.is-ok em { color: #1f6b3f; }
.ix-todo-item.is-todo em { color: #c2412d; }
.ix-todo-item.is-ok > span:nth-child(2) { color: var(--muted); }
.ix-read-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 8px; }
.ix-read-row small { color: var(--muted); font-size: .78rem; }
.ix-evvai { margin: 0 0 10px; padding: 10px 14px; color: #1f6b3f; font-size: .9rem; background: #e9f9ef; border: 1px solid #bfe8cd; border-radius: 12px; }

/* «🧭 Google e sitemap»: pannello a sé, fuori dal piano. */
[data-panel="indexing"].has-todo { color: #b4361f; border-color: #f3c9bf; background: #fff4f2; }
.ixp-box { display: grid; gap: 12px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ixp-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ixp-row.is-done { background: #f6fcf8; border-color: #d3eedc; }
.ixp-row.is-todo { background: #fffaf6; border-color: #f3dccb; }
.ixp-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ixp-row-head strong { font-size: .95rem; }
.ixp-row-head small { color: var(--muted); font-size: .8rem; font-weight: 700; }
.ixp-row.is-done .ixp-row-head small { color: #1f6b3f; }
.ixp-row.is-todo .ixp-row-head small { color: #b4361f; }
.ixp-mark { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; font-size: .78rem; font-weight: 900; border-radius: 50%; background: #c2412d; }
.ixp-row.is-done .ixp-mark { background: #1f8a4c; }
.ixp-row-body { margin-top: 10px; }
.ixp-phase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: #f7fbe9; border: 1px solid #dcefb0; border-radius: 14px; }
.ixp-phase p { flex: 1 1 320px; margin: 0; font-size: .9rem; line-height: 1.5; }
.ixp-phase .phase-cta { width: auto; padding: 12px 20px; font-size: .95rem; text-decoration: none; animation: none; }

/* «Copia per l'editor»: copia il risultato formattato (link/pulsante veri) per gli editor visuali. */
.copy-button.is-rich { margin-left: 6px; color: var(--blue-dark); background: #fff; border: 1px solid #c9d2ff; }
.copy-button.is-rich:hover { color: #fff; background: var(--blue-dark); }
.copy-button.is-rich.is-copied { color: #17220b; background: var(--lime); border-color: var(--lime); }
