*{box-sizing:border-box}html{font-family:Inter,Arial,Helvetica,sans-serif;background:#f5f8fc;color:#0b2348}body{margin:0}.appbar{height:72px;padding:0 max(24px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:#04162f;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.appbar a{color:#fff;text-decoration:none}.appbar nav{display:flex;gap:18px;font-size:14px;font-weight:700}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.04em}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#1f80ff,#63c4ff)}.app-shell{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:58px 0 80px}.page-heading{max-width:820px;margin-bottom:30px}.page-heading h1{font-size:clamp(2.2rem,4vw,4rem);letter-spacing:-.045em;line-height:1.02;margin:8px 0 12px}.page-heading p{color:#667a93;line-height:1.65}.eyebrow{font-size:12px;color:#1778ec;font-weight:850;letter-spacing:.08em}.choice-grid,.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.choice-card,.panel,.stat-card{border:1px solid #dce7f3;border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(13,35,74,.06)}.choice-card{padding:30px;text-decoration:none;color:inherit;transition:.28s}.choice-card:hover{transform:translateY(-7px);border-color:#7bbcff;box-shadow:0 26px 60px rgba(13,35,74,.13)}.choice-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#eaf4ff;color:#1675e8;font-size:26px;margin-bottom:20px}.choice-card h2{font-size:1.7rem;margin:0 0 8px}.choice-card p{color:#61758e;line-height:1.62}.tags{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.tag{padding:6px 9px;border-radius:999px;background:#eef6ff;color:#1675e8;font-size:11px;font-weight:800}.cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 17px;border:0;border-radius:13px;background:#1675e8;color:#fff!important;text-decoration:none;font-weight:850;cursor:pointer}.cta.secondary{background:#eef6ff;color:#1675e8!important}.cta.ghost{background:#fff;color:#1675e8!important;border:1px solid #cfe2f7}.login-strip{margin-top:22px;padding:22px 26px;border-radius:20px;background:linear-gradient(135deg,#061936,#0a3470);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.login-strip p{margin:3px 0;color:rgba(255,255,255,.7)}.panel{padding:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field.full{grid-column:1/-1}.field label{display:block;font-size:12px;font-weight:800;margin-bottom:7px;color:#3e5674}.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #cfddec;border-radius:12px;background:#fff;font:inherit;color:#0b2348;outline:none}.field textarea{min-height:100px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#45a0ff;box-shadow:0 0 0 3px rgba(35,134,255,.12)}.section-title{grid-column:1/-1;margin-top:8px;padding-top:18px;border-top:1px solid #e5edf6;font-size:1.05rem}.checks{grid-column:1/-1;display:grid;gap:10px}.check{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e0eaf4;border-radius:12px;background:#f9fbfe}.check input{margin-top:4px}.form-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;margin-top:8px}.muted{color:#70839a;font-size:13px;line-height:1.55}.flash{padding:13px 15px;border-radius:12px;margin:0 0 18px}.flash.success{background:#e9f8f1;color:#13724f}.flash.error{background:#fff0f3;color:#9f2941}.flash.info{background:#edf6ff;color:#185fba}.verify-box{max-width:600px}.code-input{font-size:28px!important;letter-spacing:7px;text-align:center;font-weight:800}.dashboard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat-card{padding:24px;text-decoration:none;color:inherit;transition:.25s}.stat-card:hover{transform:translateY(-5px);border-color:#86c4ff}.stat-card strong{display:block;font-size:1.15rem;margin-bottom:7px}.stat-card span{color:#6b7f97;font-size:13px;line-height:1.5}.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850}.badge.green{background:#e7f8f0;color:#157653}.badge.orange{background:#fff2da;color:#8e6200}.badge.blue{background:#eaf4ff;color:#176fd5}.badge.red{background:#ffedf0;color:#9b2940}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #e4ecf5;text-align:left;font-size:13px}.table th{color:#647892}.actions{display:flex;flex-wrap:wrap;gap:8px}.app-footer{padding:28px;text-align:center;color:#7a8ca2;font-size:12px}.notice{padding:15px 17px;border-left:4px solid #2d8cff;background:#eef6ff;border-radius:10px;color:#315473;line-height:1.55;margin:18px 0}@media(max-width:850px){.choice-grid,.card-grid,.form-grid,.dashboard-grid{grid-template-columns:1fr}.field.full,.section-title,.checks,.form-actions{grid-column:auto}.login-strip{align-items:flex-start;flex-direction:column}}

/* =========================================================
   NEDÌTESO — BRANDING UFFICIALE AREA RISERVATA
   ========================================================= */

.brand{
    display:flex;
    align-items:center;
    min-height:72px;
    text-decoration:none
}

.brand-logo{
    display:block;
    width:auto;
    height:38px;
    max-width:220px;
    object-fit:contain
}

.appbar-link{
    display:inline-flex;
    align-items:center;
    gap:7px
}

.appbar-link img{
    width:19px;
    height:19px;
    object-fit:contain;
    filter:brightness(0) invert(1);
    opacity:.9
}

.choice-icon{
    color:transparent;
    transition:transform .28s ease,box-shadow .28s ease
}

.choice-icon img{
    display:block;
    width:31px;
    height:31px;
    object-fit:contain
}

.choice-card:hover .choice-icon{
    transform:scale(1.08) rotate(-3deg);
    box-shadow:0 12px 28px rgba(35,134,255,.15)
}

.cta img{
    width:19px;
    height:19px;
    object-fit:contain
}

.login-cta img{
    filter:brightness(0) invert(1)
}

.stat-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    margin-bottom:17px;
    border-radius:14px;
    background:#eaf4ff;
    transition:transform .25s ease,box-shadow .25s ease
}

.stat-icon img{
    width:27px;
    height:27px;
    object-fit:contain
}

.stat-card:hover .stat-icon{
    transform:scale(1.1) rotate(-3deg);
    box-shadow:0 10px 24px rgba(35,134,255,.13)
}

.app-footer{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px
}

.app-footer img{
    width:20px;
    height:20px;
    object-fit:contain;
    opacity:.7
}

@media(max-width:850px){
    .brand-logo{height:32px;max-width:180px}
    .appbar-link span{display:none}
}


/* =========================================================
   REGISTRAZIONI — BRANDING UFFICIALE
   ========================================================= */
.auth-context{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:18px;
    align-items:center;
    margin:0 0 22px;
    padding:20px 22px;
    border:1px solid #dce7f3;
    border-radius:20px;
    background:linear-gradient(145deg,#ffffff,#f2f8ff);
    box-shadow:0 15px 38px rgba(13,35,74,.05)
}
.auth-context-icon{
    width:64px;
    height:64px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:#eaf4ff
}
.auth-context-icon img{width:34px;height:34px;object-fit:contain}
.auth-context strong{display:block;margin:3px 0 5px;font-size:1.15rem;color:#0b2348}
.auth-context p{margin:0;color:#687c94;line-height:1.55;font-size:.9rem}
.section-title-icon{display:flex;align-items:center;gap:9px}
.section-title-icon img{width:22px;height:22px;object-fit:contain}
.form-actions .cta img{width:19px;height:19px;object-fit:contain;filter:brightness(0) invert(1)}
.form-actions .cta.ghost img,.form-actions .cta.secondary img{filter:none}
.panel.form-grid{position:relative;overflow:hidden}
.panel.form-grid:before{content:"";position:absolute;width:230px;height:230px;right:-105px;top:-115px;border-radius:50%;background:radial-gradient(circle,rgba(35,134,255,.075),transparent 70%);pointer-events:none}
@media(max-width:700px){.auth-context{grid-template-columns:1fr}.auth-context-icon{width:56px;height:56px}.auth-context-icon img{width:30px;height:30px}}


/* =========================================================
   NDA READER — LETTURA OBBLIGATORIA
   ========================================================= */

.nda-reader-card{
    grid-column:1/-1;
    padding:18px;
    border:1px solid #d7e5f4;
    border-radius:17px;
    background:linear-gradient(145deg,#fafdff,#f2f8ff)
}

.nda-reader-top{
    display:grid;
    grid-template-columns:52px 1fr;
    gap:14px;
    align-items:center
}

.nda-reader-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#eaf4ff
}

.nda-reader-icon img{
    width:27px;
    height:27px;
    object-fit:contain
}

.nda-reader-top strong{
    display:block;
    color:#0b2348;
    font-size:1rem
}

.nda-reader-top p{
    margin:5px 0 0;
    color:#657b95;
    font-size:.82rem;
    line-height:1.5
}

.nda-reader-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    margin:15px 0 13px
}

.nda-reader-status{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    background:#fff2dc;
    color:#936100;
    font-size:.72rem;
    font-weight:850
}

.nda-reader-status.done{
    background:#e7f8f0;
    color:#147550
}

.nda-final-check input:disabled{
    cursor:not-allowed
}

.nda-final-check:has(input:disabled){
    opacity:.62
}

.nda-modal[hidden]{
    display:none!important
}

.nda-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:grid;
    place-items:center;
    padding:22px
}

.nda-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(2,15,34,.76);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px)
}

.nda-modal-dialog{
    position:relative;
    z-index:2;
    width:min(940px,100%);
    max-height:min(90vh,920px);
    display:grid;
    grid-template-rows:auto minmax(220px,1fr) auto;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.2);
    border-radius:24px;
    background:#fff;
    box-shadow:0 34px 100px rgba(0,0,0,.34)
}

.nda-modal-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:22px 24px;
    border-bottom:1px solid #e2eaf3;
    background:linear-gradient(145deg,#fff,#f3f8ff)
}

.nda-modal-header h2{
    margin:5px 0 7px;
    color:#0b2348;
    font-size:1.35rem
}

.nda-modal-header p{
    margin:0;
    color:#72859b;
    font-size:.75rem;
    overflow-wrap:anywhere
}

.nda-modal-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:12px;
    background:#edf5ff;
    color:#176fd5;
    font-size:25px;
    cursor:pointer
}

.nda-modal-scroll{
    overflow:auto;
    padding:24px 28px;
    outline:none;
    background:#fff
}

.nda-modal-document{
    max-width:790px;
    margin:0 auto;
    color:#455c77;
    font-size:.93rem;
    line-height:1.75
}

.nda-scroll-end{
    max-width:790px;
    margin:30px auto 0;
    padding:13px;
    border-radius:12px;
    background:#eef6ff;
    color:#1675e8;
    text-align:center;
    font-size:.76rem;
    font-weight:850;
    letter-spacing:.04em
}

.nda-modal-footer{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    padding:18px 24px;
    border-top:1px solid #e2eaf3;
    background:#f7fafe
}

.nda-scroll-message{
    max-width:480px;
    color:#667b94;
    font-size:.79rem;
    line-height:1.5
}

.nda-modal-footer .cta:disabled{
    opacity:.42;
    cursor:not-allowed;
    transform:none
}

body.nda-modal-open{
    overflow:hidden
}

@media(max-width:700px){
    .nda-modal{
        padding:10px
    }
    .nda-modal-dialog{
        max-height:94vh;
        border-radius:18px
    }
    .nda-modal-header,
    .nda-modal-scroll,
    .nda-modal-footer{
        padding-left:17px;
        padding-right:17px
    }
    .nda-modal-footer{
        align-items:stretch;
        flex-direction:column
    }
    .nda-modal-footer .cta{
        width:100%
    }
}

/* =========================================================
   NEDÌTESO CONTROL PANEL — 3e.1d-a1
   Dashboard e menu laterale coerenti con Publisher CRM.
   ========================================================= */
.admin-control-body{background:#f5f8fc}
.admin-control-sidebar .crm-nediteso-brand span{letter-spacing:.04em}
.admin-platform-brand{display:grid;grid-template-columns:50px 1fr;gap:12px;align-items:center;margin:8px 16px 16px;padding:14px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.055)}
.admin-platform-symbol{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#fff}
.admin-platform-symbol img{width:29px;height:29px;object-fit:contain}
.admin-platform-brand small{display:block;color:rgba(255,255,255,.55);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.admin-platform-brand strong{display:block;color:#fff;font-size:15px}
.admin-control-workspace{min-height:calc(100vh - 205px)}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.admin-kpi{display:block;padding:20px;border:1px solid #dce7f3;border-radius:18px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 12px 34px rgba(13,35,74,.05);transition:.2s ease}
.admin-kpi:hover{transform:translateY(-3px);border-color:#91c8ff;box-shadow:0 18px 42px rgba(13,35,74,.09)}
.admin-kpi small{display:block;color:#6c8098;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.admin-kpi strong{display:block;font-size:28px;line-height:1;color:#0b2348;margin-bottom:7px}
.admin-kpi span{display:block;color:#6b7f97;font-size:12px;line-height:1.45}
.admin-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:18px}
.admin-stack{display:grid;gap:18px}
.admin-panel{border:1px solid #dce7f3;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(13,35,74,.05);padding:22px}
.admin-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.admin-panel-head h2{margin:0;font-size:18px}.admin-panel-head p{margin:5px 0 0;color:#6b7f97;font-size:12px;line-height:1.5}
.admin-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-quick-link{padding:14px;border:1px solid #dce7f3;border-radius:14px;text-decoration:none;color:#0b2348;background:#f9fbfe;font-weight:800;font-size:13px}.admin-quick-link:hover{border-color:#86c4ff;background:#f1f7ff}
.admin-status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e8eef5}.admin-status-line:last-child{border-bottom:0}.admin-status-line span{color:#6b7f97;font-size:13px}.admin-status-line strong{font-size:13px}
.admin-filterbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.admin-filterbar .field{min-width:180px;flex:1}.admin-filterbar .field.search{min-width:260px;flex:2}.admin-filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.admin-filter-tabs a{padding:9px 12px;border-radius:999px;border:1px solid #d6e3f1;background:#fff;color:#46627f;text-decoration:none;font-size:12px;font-weight:800}.admin-filter-tabs a.active{background:#0d67c8;color:#fff;border-color:#0d67c8}
.admin-manuscript-card{border:1px solid #dce7f3;border-radius:18px;background:#fff;padding:20px;margin-bottom:14px}.admin-manuscript-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.admin-manuscript-top h3{margin:5px 0 4px;font-size:19px}.admin-manuscript-meta{display:flex;flex-wrap:wrap;gap:8px;color:#687d96;font-size:12px}.admin-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-detail-box{border:1px solid #e0e9f3;border-radius:14px;padding:14px;background:#fbfdff}.admin-detail-box small{display:block;color:#74869c;font-size:10px;text-transform:uppercase;font-weight:850;letter-spacing:.04em;margin-bottom:5px}.admin-detail-box strong{display:block;font-size:14px}.admin-danger-note{border-left:4px solid #e3a229;background:#fff8e8;padding:13px 15px;border-radius:11px;color:#6f5317;font-size:12px;line-height:1.5}.admin-route-box{border:1px solid #bcd8f5;background:#f5faff;border-radius:18px;padding:18px}.admin-route-box h3{margin-top:0}.admin-route-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#e7f8f0;color:#147550;font-size:11px;font-weight:850}.admin-route-badge.unassigned{background:#fff1dc;color:#8c5d00}
@media(max-width:1180px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-dashboard-grid{grid-template-columns:1fr}.admin-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.admin-kpi-grid,.admin-detail-grid,.admin-quick-grid{grid-template-columns:1fr}.admin-manuscript-top{flex-direction:column}.admin-filterbar{align-items:stretch}.admin-filterbar .field,.admin-filterbar .field.search{min-width:100%}}

/* =========================================================
   NEDÌTESO AI — graphic refresh 3e.1e-a3
   ========================================================= */
.ned-ai-strip{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:14px 18px;
    margin:0 0 16px;
    border:1px solid #d8e8fa;
    border-radius:18px;
    background:linear-gradient(180deg,#f5fbff,#eef7ff);
    box-shadow:0 10px 24px rgba(10,74,153,.06);
}

.ned-ai-strip.dark{
    background:linear-gradient(180deg,#0a2c58,#0f3d78);
    border-color:#114888;
}

.ned-ai-strip img{
    display:block;
    width:min(100%,340px);
    height:auto;
}

.ned-ai-strip.dark img{filter:none}

/* 3e.1e-b3 — access suspension */
.cta.danger{background:#c9362b;color:#fff!important}
.cta.danger:hover{background:#a72a21}


/* ========================================================================
   NEDÌTESO 3e.1h-R11-R3R4
   Author Portal Visual System · Color Areas + Colored Icons
   ======================================================================== */

:root{
  --ned-r11-page:#f5f8fd;
  --ned-r11-border:#cfe0f7;
  --ned-r11-text:#092f66;
  --ned-r11-soft:#5c7599;
  --ned-r11-blue:#1769ff;
  --ned-r11-blue-2:#2c7bff;

  --ned-r11-book-bg:#edf4ff;
  --ned-r11-ai-bg:#eef6ff;
  --ned-r11-profile-bg:#f6f1ff;
  --ned-r11-docs-bg:#eff7ff;

  --ned-r11-form:#eaf6ff;

  --ned-r11-doc-icon-bg:#eaf3ff;
  --ned-r11-doc-icon:#2e7bff;
  --ned-r11-manuscript-icon-bg:#f1e9ff;
  --ned-r11-manuscript-icon:#7a42f4;
  --ned-r11-book-icon-bg:#e6f8ef;
  --ned-r11-book-icon:#25b66f;
  --ned-r11-ai-icon-bg:#fff1e6;
  --ned-r11-ai-icon:#f08a24;
  --ned-r11-profile-icon-bg:#f2edff;
  --ned-r11-profile-icon:#8065f5;
  --ned-r11-archive-icon-bg:#e8f8f1;
  --ned-r11-archive-icon:#28a86b;
  --ned-r11-cloud-icon-bg:#eaf4ff;
  --ned-r11-cloud-icon:#4c94ff;

  --ned-r11-radius:18px;
  --ned-r11-hero-radius:24px;
  --ned-r11-shadow:0 8px 24px rgba(18,58,124,.065);
}

body.ned-r11-area-dashboard{ background:var(--ned-r11-page)!important; }
body.ned-r11-area-bookstudio{ background:var(--ned-r11-book-bg)!important; }
body.ned-r11-area-ai{ background:var(--ned-r11-ai-bg)!important; }
body.ned-r11-area-profile{ background:var(--ned-r11-profile-bg)!important; }
body.ned-r11-area-documents{ background:var(--ned-r11-docs-bg)!important; }

/* Uniformazione generale card */
body[class*="ned-r11-area-"] :is(
  .card,.panel,.tile,.shortcut,.stat-card,.quick-card,.metric-card,
  [class*="card"],[class*="tile"],[class*="shortcut"],[class*="stat"]
){
  border-color:var(--ned-r11-border);
}

/* Hero: geometria coerente */
body[class*="ned-r11-area-"] :is(
  .hero,.hero-shell,.page-hero,.author-hero,.welcome-hero,
  [class*="hero"]
){
  border-radius:var(--ned-r11-hero-radius);
}

/* Regola permanente NEDÌTESO: form compilabili */
body[class*="ned-r11-area-"] :is(
  .form-zone,.form-card,.form-section,.section-form,
  [class*="form-panel"],[class*="form-section"]
){
  background:var(--ned-r11-form)!important;
}

/* Badge icona */
.ned-r11-icon-badge{
  width:48px;
  height:48px;
  min-width:48px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 16px rgba(18,58,124,.06);
  margin:0 12px 8px 0;
  vertical-align:middle;
}
.ned-r11-icon-badge svg{
  width:25px;
  height:25px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ned-r11-theme-docs .ned-r11-icon-badge{background:var(--ned-r11-doc-icon-bg);color:var(--ned-r11-doc-icon);}
.ned-r11-theme-manuscript .ned-r11-icon-badge{background:var(--ned-r11-manuscript-icon-bg);color:var(--ned-r11-manuscript-icon);}
.ned-r11-theme-book .ned-r11-icon-badge{background:var(--ned-r11-book-icon-bg);color:var(--ned-r11-book-icon);}
.ned-r11-theme-ai .ned-r11-icon-badge{background:var(--ned-r11-ai-icon-bg);color:var(--ned-r11-ai-icon);}
.ned-r11-theme-profile .ned-r11-icon-badge{background:var(--ned-r11-profile-icon-bg);color:var(--ned-r11-profile-icon);}
.ned-r11-theme-archive .ned-r11-icon-badge{background:var(--ned-r11-archive-icon-bg);color:var(--ned-r11-archive-icon);}
.ned-r11-theme-cloud .ned-r11-icon-badge{background:var(--ned-r11-cloud-icon-bg);color:var(--ned-r11-cloud-icon);}

/* Card piccole / metriche */
.ned-r11-iconified:not(.ned-r11-feature-card){
  box-shadow:var(--ned-r11-shadow);
}

/* Dashboard: card principali più accattivanti */
body.ned-r11-area-dashboard .ned-r11-feature-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--ned-r11-radius);
  box-shadow:var(--ned-r11-shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}
body.ned-r11-area-dashboard .ned-r11-feature-card:hover{
  transform:translateY(-2px);
  box-shadow:0 13px 30px rgba(18,58,124,.11);
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-book{
  background:linear-gradient(155deg,#0f55e8 0%,#2576ff 63%,#0c56dc 100%)!important;
  color:#fff;
  border-color:#3a88ff!important;
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-book :is(h1,h2,h3,h4,p,span,strong){
  color:inherit;
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-book .ned-r11-icon-badge{
  background:rgba(255,255,255,.94);
  color:#1769ff;
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-ai{
  background:
    radial-gradient(circle at 76% 84%,rgba(79,161,255,.22),transparent 34%),
    linear-gradient(155deg,#f8fcff 0%,#edf7ff 55%,#e7f2ff 100%)!important;
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-profile{
  background:linear-gradient(155deg,#fbf9ff 0%,#f1eaff 60%,#ece4ff 100%)!important;
}
body.ned-r11-area-dashboard .ned-r11-feature-card.ned-r11-theme-docs{
  background:linear-gradient(155deg,#f8fcff 0%,#eaf6ff 58%,#e0f3ff 100%)!important;
}

/* Area pages: accento coerente con la rispettiva card Dashboard */
body.ned-r11-area-bookstudio :is(.page-hero,.hero,.hero-shell,[class*="hero"]){
  background-color:#edf4ff;
}
body.ned-r11-area-profile :is(.page-hero,.hero,.hero-shell,[class*="hero"]){
  background-color:#f6f1ff;
}
body.ned-r11-area-documents :is(.page-hero,.hero,.hero-shell,[class*="hero"]){
  background-color:#eff7ff;
}
body.ned-r11-area-ai :is(.page-hero,.hero,.hero-shell,[class*="hero"]){
  background-color:#eef6ff;
}

/* CTA standard: non forza i componenti già brandizzati */
body[class*="ned-r11-area-"] .ned-r11-iconified a,
body[class*="ned-r11-area-"] .ned-r11-iconified button{
  transition:filter .15s ease, transform .15s ease;
}

/* Mobile */
@media (max-width:760px){
  .ned-r11-icon-badge{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:13px;
    margin-right:9px;
  }
  .ned-r11-icon-badge svg{
    width:22px;
    height:22px;
  }
  body.ned-r11-area-dashboard .ned-r11-feature-card:hover{
    transform:none;
  }
}
/* ========================= END NEDÌTESO R11-R3R4 ========================= */







/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H3
   AUTHOR PORTAL HERO CONSOLIDATION
   Golden reference: Documenti e download
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DASHBOARD / HOME AUTORE
   Struttura reale:
   .author-home > .ah-hero
     > div (copy)
     > .ah-visual > .ah-visual-img

   La visual viene usata come background COVER, esattamente come Documenti.
   -------------------------------------------------------------------------- */

.author-home .ah-hero{
    position:relative !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    min-height:274px !important;
    padding:34px 38px !important;
    border:1px solid #d3e2f2 !important;
    border-radius:28px !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(250,252,255,.97) 31%,
            rgba(239,247,255,.84) 49%,
            rgba(220,238,255,.42) 65%,
            rgba(30,105,190,.08) 100%
        ),
        url('/app/assets/branding/author-welcome-writing-3e1h-r2.webp')
        center center / cover no-repeat !important;

    box-shadow:0 18px 48px rgba(17,54,98,.08) !important;
}

/* elimina il vecchio glow circolare */
.author-home .ah-hero::after{
    content:none !important;
}

/* colonna contenuto */
.author-home .ah-hero > div:first-child{
    position:relative !important;
    z-index:3 !important;
    width:100% !important;
    max-width:760px !important;
}

/* l'immagine non deve più essere un box autonomo */
.author-home .ah-hero > .ah-visual{
    display:none !important;
}

/* Hero typography coerente con Documenti */
.author-home .ah-kicker{
    color:#1477f3 !important;
    font-size:13px !important;
    font-weight:950 !important;
    letter-spacing:.09em !important;
    text-transform:uppercase !important;
}

.author-home .ah-hero h1{
    margin:7px 0 10px !important;
    color:#0a2a54 !important;
    font-size:clamp(38px,4.6vw,60px) !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
}

.author-home .ah-hero-copy{
    max-width:680px !important;
    margin:0 0 18px !important;
    color:#5f7691 !important;
    font-size:17px !important;
    line-height:1.55 !important;
}

/* --------------------------------------------------------------------------
   2. DASHBOARD CARD SYSTEM
   Mantiene la card Book Studio primaria e assegna un colore guida
   alle altre aree, senza JS e senza classi globali.
   -------------------------------------------------------------------------- */

.author-home .ah-action-card{
    overflow:hidden !important;
}

/* NEDÌTESO AI */
.author-home .ah-action-card:nth-child(2){
    background:
      radial-gradient(circle at 82% 86%,rgba(90,169,255,.20),transparent 35%),
      linear-gradient(150deg,#fbfdff 0%,#edf7ff 60%,#e5f2ff 100%) !important;
    border-color:#cfe3fa !important;
}
.author-home .ah-action-card:nth-child(2) .ah-card-icon{
    background:#fff1e6 !important;
}

/* Profilo autore */
.author-home .ah-action-card:nth-child(3){
    background:
      linear-gradient(150deg,#fdfcff 0%,#f5efff 58%,#ece4ff 100%) !important;
    border-color:#ded2fb !important;
}
.author-home .ah-action-card:nth-child(3) .ah-card-icon{
    background:#f1e9ff !important;
}

/* Documenti e download */
.author-home .ah-action-card:nth-child(4){
    background:
      linear-gradient(150deg,#fbfdff 0%,#eef8ff 58%,#e2f3ff 100%) !important;
    border-color:#cfe7f8 !important;
}
.author-home .ah-action-card:nth-child(4) .ah-card-icon{
    background:#eaf3ff !important;
}

/* Percorso consigliato: badge pastello differenziati */
.author-home .ah-step:nth-child(1) .ah-step-icon{
    background:#e6f8ef !important;
}
.author-home .ah-step:nth-child(2) .ah-step-icon{
    background:#fff1e6 !important;
}
.author-home .ah-step:nth-child(3) .ah-step-icon{
    background:#eaf3ff !important;
}

/* Stato: stessa logica cromatica */
.author-home .ah-status-row:nth-of-type(1) .ah-status-icon{
    background:#e6f8ef !important;
}
.author-home .ah-status-row:nth-of-type(2) .ah-status-icon{
    background:#f1e9ff !important;
}
.author-home .ah-status-row:nth-of-type(3) .ah-status-icon{
    background:#fff1e6 !important;
}
.author-home .ah-status-row:nth-of-type(4) .ah-status-icon{
    background:#eaf3ff !important;
}

/* --------------------------------------------------------------------------
   3. NEDÌTESO AI
   Le classi H3 vengono applicate SOLO dal runtime con HARD PATH GUARD.
   La Hero usa la propria immagine reale come background e si fonde in un
   unico pannello, seguendo il modello Documenti.
   -------------------------------------------------------------------------- */

.ned-h3-ai-hero{
    position:relative !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    min-height:274px !important;
    padding:34px 34px !important;
    border:1px solid #d3e2f2 !important;
    border-radius:28px !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(248,252,255,.96) 32%,
            rgba(231,244,255,.68) 55%,
            rgba(10,79,157,.15) 100%
        ),
        var(--ned-h3-ai-bg, none)
        center center / cover no-repeat !important;

    box-shadow:0 18px 48px rgba(17,54,98,.08) !important;
}

.ned-h3-ai-hero-content{
    position:relative !important;
    z-index:3 !important;
    width:100% !important;
    max-width:720px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

/* media originale invisibile: l'immagine è già stata promossa a background */
.ned-h3-ai-hero-media{
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    opacity:0 !important;
    pointer-events:none !important;
}

/* qualsiasi elemento interno del vecchio media non deve creare box */
.ned-h3-ai-hero-media *{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */
@media(max-width:880px){
    .author-home .ah-hero{
        min-height:300px !important;
        padding:26px !important;
        background-position:66% center !important;
    }

    .author-home .ah-hero > div:first-child{
        max-width:72% !important;
    }

    .author-home .ah-hero h1{
        font-size:clamp(34px,7vw,48px) !important;
    }

    .ned-h3-ai-hero{
        min-height:300px !important;
        padding:26px !important;
        background-position:65% center !important;
    }

    .ned-h3-ai-hero-content{
        max-width:70% !important;
    }
}

@media(max-width:640px){
    .author-home .ah-hero{
        min-height:auto !important;
        padding:22px !important;
        padding-bottom:185px !important;
        background-position:center bottom !important;
        background-size:auto 190px !important;
        background-color:#f7fbff !important;
    }

    .author-home .ah-hero > div:first-child{
        max-width:none !important;
    }

    .author-home .ah-hero h1{
        font-size:36px !important;
    }

    .author-home .ah-hero-copy{
        font-size:15px !important;
    }

    .ned-h3-ai-hero{
        min-height:auto !important;
        padding:22px !important;
        padding-bottom:185px !important;
        background-position:center bottom !important;
        background-size:auto 190px !important;
        background-color:#eef7ff !important;
    }

    .ned-h3-ai-hero-content{
        max-width:none !important;
    }
}

/* =============================== END H3 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H4
   Docs colored icons + AI manuscript icon visual alignment
   ========================================================================== */

/* --------------------------------------------------------------------------
   DOCUMENTI E DOWNLOAD
   KPI BOXES + NAV BOXES CON ICONE COLORATE
   -------------------------------------------------------------------------- */

.docs-kpi,
.docs-nav a{
    position:relative !important;
    overflow:hidden !important;
}

.docs-kpi{
    min-height:92px !important;
    padding:16px 16px 16px 74px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

.docs-nav a{
    min-height:84px !important;
    padding:15px 15px 15px 74px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

/* badge base */
.docs-kpi::before,
.docs-nav a::before{
    content:"";
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border-radius:14px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:22px 22px;
    box-shadow:0 8px 18px rgba(18,58,124,.06);
}

/* ---------------- KPI icons ---------------- */

/* 1 - File complessivi */
.docs-kpis .docs-kpi:nth-child(1)::before{
    background-color:#eaf3ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7BFF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h9l3 3v12a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z'/%3E%3Cpath d='M18 3v4h4'/%3E%3Cpath d='M7 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10'/%3E%3C/svg%3E");
}

/* 2 - Manoscritti */
.docs-kpis .docs-kpi:nth-child(2)::before{
    background-color:#f1e9ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A42F4' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 13h5M10 17h5M10 9h2'/%3E%3C/svg%3E");
}

/* 3 - Book Studio */
.docs-kpis .docs-kpi:nth-child(3)::before{
    background-color:#e6f8ef;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325B66F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5A3.5 3.5 0 0 1 6.5 2H11v17H6.5A3.5 3.5 0 0 0 3 22z'/%3E%3Cpath d='M21 5.5A3.5 3.5 0 0 0 17.5 2H13v17h4.5A3.5 3.5 0 0 1 21 22z'/%3E%3C/svg%3E");
}

/* 4 - Report AI */
.docs-kpis .docs-kpi:nth-child(4)::before{
    background-color:#fff1e6;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F08A24' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l1.25 3.75L17 7l-3.75 1.25L12 12l-1.25-3.75L7 7l3.75-1.25z'/%3E%3Cpath d='M18 13l.9 2.1L21 16l-2.1.9L18 19l-.9-2.1L15 16l2.1-.9z'/%3E%3Cpath d='M6 14l.75 1.75L8.5 16.5l-1.75.75L6 19l-.75-1.75-1.75-.75 1.75-.75z'/%3E%3C/svg%3E");
}

/* 5 - Altri documenti */
.docs-kpis .docs-kpi:nth-child(5)::before{
    background-color:#eaf4ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C94FF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h7l2 2h9v10H3z'/%3E%3Cpath d='M3 7V5h7l2 2'/%3E%3C/svg%3E");
}

/* ---------------- NAV icons ---------------- */

/* 1 - Manoscritti */
.docs-nav a:nth-child(1)::before{
    background-color:#f1e9ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A42F4' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 13h5M10 17h5M10 9h2'/%3E%3C/svg%3E");
}

/* 2 - Book Studio */
.docs-nav a:nth-child(2)::before{
    background-color:#e6f8ef;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325B66F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5A3.5 3.5 0 0 1 6.5 2H11v17H6.5A3.5 3.5 0 0 0 3 22z'/%3E%3Cpath d='M21 5.5A3.5 3.5 0 0 0 17.5 2H13v17h4.5A3.5 3.5 0 0 1 21 22z'/%3E%3C/svg%3E");
}

/* 3 - Report AI */
.docs-nav a:nth-child(3)::before{
    background-color:#fff1e6;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F08A24' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l1.25 3.75L17 7l-3.75 1.25L12 12l-1.25-3.75L7 7l3.75-1.25z'/%3E%3Cpath d='M18 13l.9 2.1L21 16l-2.1.9L18 19l-.9-2.1L15 16l2.1-.9z'/%3E%3Cpath d='M6 14l.75 1.75L8.5 16.5l-1.75.75L6 19l-.75-1.75-1.75-.75 1.75-.75z'/%3E%3C/svg%3E");
}

/* 4 - I miei documenti */
.docs-nav a:nth-child(4)::before{
    background-color:#e8f8f1;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328A86B' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h7l2 2h9v10H3z'/%3E%3Cpath d='M3 7V5h7l2 2'/%3E%3C/svg%3E");
}

/* 5 - Risorse */
.docs-nav a:nth-child(5)::before{
    background-color:#eaf4ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C94FF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18h11a4 4 0 0 0 .5-7.97A6.5 6.5 0 0 0 6 8.5 4.5 4.5 0 0 0 7 18z'/%3E%3C/svg%3E");
}

@media(max-width:1100px){
    .docs-kpi,
    .docs-nav a{
        padding-left:70px !important;
    }
}

@media(max-width:720px){
    .docs-kpi,
    .docs-nav a{
        min-height:82px !important;
    }
}

/* ==========================================================================
   END H4
   ========================================================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H5
   AI Manuscripts Icon + Book Studio Hero Alignment
   ========================================================================== */

/* ---------------- AI CARD: nuovo badge foglio ---------------- */

.ned-h5-manuscripts-card{
    position:relative !important;
}

.ned-h5-manuscripts-icon{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#EAF3FF !important;
    color:#2E7BFF !important;
    box-shadow:0 8px 18px rgba(18,58,124,.06) !important;
    flex:0 0 auto !important;
}

.ned-h5-manuscripts-icon svg{
    width:22px !important;
    height:22px !important;
    display:block !important;
}

/* ---------------- BOOK STUDIO HERO ---------------- */

.ned-h5-book-hero{
    position:relative !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    min-height:274px !important;
    padding:34px 34px !important;
    border:1px solid #d3e2f2 !important;
    border-radius:28px !important;

    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,.98) 0%,
        rgba(249,252,255,.97) 32%,
        rgba(235,245,255,.74) 55%,
        rgba(25,102,192,.12) 100%
      ),
      var(--ned-h5-book-bg, none)
      center center / cover no-repeat !important;

    box-shadow:0 18px 48px rgba(17,54,98,.08) !important;
}

.ned-h5-book-hero-content{
    position:relative !important;
    z-index:3 !important;
    width:100% !important;
    max-width:720px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

/* Nasconde il vecchio media autonomo: l'immagine viene promossa a background */
.ned-h5-book-hero-media{
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    width:100% !important;
    height:100% !important;
    opacity:0 !important;
    pointer-events:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

.ned-h5-book-kicker{
    color:#1477f3 !important;
    font-size:13px !important;
    font-weight:950 !important;
    letter-spacing:.09em !important;
    text-transform:uppercase !important;
}

.ned-h5-book-hero h1,
.ned-h5-book-hero h2{
    color:#0a2a54 !important;
    font-size:clamp(38px,4.6vw,60px) !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
}

.ned-h5-book-actions{
    display:flex !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    margin-top:19px !important;
}

.ned-h5-book-actions a{
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:11px 15px !important;
    border:1px solid #bed7f3 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#0a70eb !important;
    text-decoration:none !important;
    font-weight:850 !important;
    transition:.18s ease !important;
}

.ned-h5-book-actions a:hover{
    transform:translateY(-2px) !important;
    box-shadow:0 10px 24px rgba(15,81,156,.10) !important;
}

.ned-h5-book-actions a.primary{
    background:#1477f3 !important;
    border-color:#1477f3 !important;
    color:#fff !important;
}

@media(max-width:720px){
    .ned-h5-book-hero{
        min-height:auto !important;
        padding:22px !important;
        padding-bottom:185px !important;
        background-position:center bottom !important;
        background-size:auto 190px !important;
        background-color:#eef5ff !important;
    }

    .ned-h5-book-hero-content{
        max-width:none !important;
    }

    .ned-h5-book-actions{
        gap:8px !important;
    }

    .ned-h5-book-actions a{
        flex:1 1 calc(50% - 8px) !important;
        justify-content:center !important;
    }
}

/* =============================== END H5 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H6
   Book Studio Hero Background Update
   ========================================================================== */

/* Override della sola Hero Book Studio già introdotta con H5.
   Nuova immagine più armonica, con fusione morbida verso sinistra. */
.ned-h5-book-hero{
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,.985) 0%,
        rgba(252,253,255,.975) 30%,
        rgba(244,249,255,.90) 46%,
        rgba(231,242,255,.60) 60%,
        rgba(187,214,245,.16) 100%
      ),
      url('/app/assets/branding/book-studio-hero-r11-h6.webp')
      center center / cover no-repeat !important;
}

/* Rinforzo: nessun box visuale separato deve riapparire */
.ned-h5-book-hero-media{
    opacity:0 !important;
    pointer-events:none !important;
    background:none !important;
}

@media(max-width:720px){
    .ned-h5-book-hero{
        background-position:center bottom !important;
        background-size:cover !important;
        background-color:#eef5ff !important;
    }
}
/* =============================== END H6 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H7
   BOOK STUDIO HERO FINAL
   Target reale: pagina con .bs-top-actions / .bs-intro
   ========================================================================== */

/* HARD PAGE SCOPE:
   il selettore :has(.bs-top-actions) limita l'override alla sola Book Studio. */
body:has(.bs-top-actions) .page-heading{
    position:relative !important;
    overflow:hidden !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    min-height:274px !important;
    padding:34px 38px !important;

    border:1px solid #d3e2f2 !important;
    border-radius:28px !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.995) 0%,
            rgba(253,254,255,.990) 28%,
            rgba(247,251,255,.955) 43%,
            rgba(235,245,255,.75) 57%,
            rgba(194,220,249,.22) 74%,
            rgba(120,177,235,.06) 100%
        ),
        url('/app/assets/branding/book-studio-hero-r11-h7.webp')
        center center / cover no-repeat !important;

    box-shadow:0 18px 48px rgba(17,54,98,.08) !important;
    margin:0 0 18px 0 !important;
}

/* La vecchia Hero duplicava l'immagine con ::after.
   H7 la elimina definitivamente. */
body:has(.bs-top-actions) .page-heading::after{
    content:none !important;
    display:none !important;
    background:none !important;
}

/* Contenuto in primo piano */
body:has(.bs-top-actions) .page-heading > *{
    position:relative !important;
    z-index:2 !important;
}

/* Gerarchia tipografica uniforme con Documenti */
body:has(.bs-top-actions) .page-heading .eyebrow{
    color:#1477f3 !important;
    font-weight:950 !important;
    letter-spacing:.09em !important;
}

body:has(.bs-top-actions) .page-heading h1{
    max-width:720px !important;
    margin:7px 0 10px !important;
    color:#0a2a54 !important;
    font-size:clamp(38px,4.6vw,60px) !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
}

body:has(.bs-top-actions) .page-heading p{
    max-width:650px !important;
    margin:0 !important;
    color:#5f7691 !important;
    font-size:17px !important;
    line-height:1.55 !important;
}

/* La parte sinistra rimane pulita; i soggetti visuali restano sulla destra. */
@media (min-width:901px){
    body:has(.bs-top-actions) .page-heading{
        padding-right:43% !important;
        background-position:center center !important;
    }
}

/* Tablet */
@media (max-width:900px){
    body:has(.bs-top-actions) .page-heading{
        min-height:270px !important;
        padding:28px 38% 28px 26px !important;
        background-position:center right !important;
    }

    body:has(.bs-top-actions) .page-heading h1{
        font-size:clamp(34px,6vw,48px) !important;
    }
}

/* Mobile */
@media (max-width:640px){
    body:has(.bs-top-actions) .page-heading{
        min-height:auto !important;
        padding:22px 22px 185px !important;
        border-radius:20px !important;
        background-position:center bottom !important;
        background-size:auto 220px !important;
        background-color:#f3f9ff !important;
    }

    body:has(.bs-top-actions) .page-heading h1{
        font-size:36px !important;
    }

    body:has(.bs-top-actions) .page-heading p{
        font-size:15px !important;
    }
}

/* =============================== END H7 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H8
   Book Studio Hero Title Fix
   ========================================================================== */

/* Desktop: titolo più equilibrato e su una sola riga */
@media (min-width:901px){
    body:has(.bs-top-actions) .page-heading h1{
        max-width:none !important;
        width:max-content !important;
        white-space:nowrap !important;
        font-size:clamp(36px,3.55vw,48px) !important;
        line-height:1.02 !important;
        letter-spacing:-.03em !important;
    }
}

/* Tablet: leggermente più compatto */
@media (min-width:641px) and (max-width:900px){
    body:has(.bs-top-actions) .page-heading h1{
        max-width:none !important;
        white-space:nowrap !important;
        font-size:clamp(31px,4.5vw,40px) !important;
        line-height:1.03 !important;
    }
}

/* Mobile: torna responsive e può andare a capo se necessario */
@media (max-width:640px){
    body:has(.bs-top-actions) .page-heading h1{
        width:auto !important;
        max-width:100% !important;
        white-space:normal !important;
        font-size:34px !important;
        line-height:1.04 !important;
    }
}

/* =============================== END H8 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1h-R11-R3R4-H9
   AUTHOR PORTAL COMPACT TYPOGRAPHY
   Riduzione controllata della tipografia del Portale Autore
   ========================================================================== */

/* --------------------------------------------------------------------------
   DASHBOARD / HOME AUTORE
   -------------------------------------------------------------------------- */
.author-home .ah-hello{
    font-size:14px !important;
}
.author-home .ah-kicker{
    font-size:11px !important;
}
.author-home .ah-hero h1{
    font-size:clamp(34px,3.7vw,50px) !important;
    line-height:1.03 !important;
}
.author-home .ah-hero-copy{
    font-size:15px !important;
    line-height:1.5 !important;
}
.author-home .ah-account{
    font-size:12px !important;
}
.author-home .ah-section-title{
    font-size:11px !important;
}
.author-home .ah-step strong{
    font-size:13px !important;
}
.author-home .ah-step p{
    font-size:11.5px !important;
}
.author-home .ah-action-card h2{
    font-size:17px !important;
}
.author-home .ah-action-card p{
    font-size:12px !important;
    line-height:1.45 !important;
}
.author-home .ah-card-button{
    font-size:12px !important;
}
.author-home .ah-status h2{
    font-size:13px !important;
}
.author-home .ah-status-row{
    font-size:11.5px !important;
}
.author-home .ah-status-row strong{
    font-size:17px !important;
}
.author-home .ah-status-meta,
.author-home .ah-note,
.author-home .ah-empty-hint{
    font-size:11px !important;
}

/* --------------------------------------------------------------------------
   DOCUMENTI E DOWNLOAD
   -------------------------------------------------------------------------- */
.docs-shell .docs-kicker{
    font-size:11px !important;
}
.docs-shell .docs-hero h1{
    font-size:clamp(34px,3.8vw,50px) !important;
    line-height:1.03 !important;
}
.docs-shell .docs-hero p{
    font-size:15px !important;
    line-height:1.5 !important;
}
.docs-shell .docs-actions a{
    font-size:13px !important;
}
.docs-shell .docs-kpi small{
    font-size:10px !important;
}
.docs-shell .docs-kpi strong{
    font-size:22px !important;
}
.docs-shell .docs-nav a{
    font-size:14px !important;
}
.docs-shell .docs-nav small{
    font-size:11.5px !important;
}
.docs-shell .docs-panel h2{
    font-size:22px !important;
}
.docs-shell .docs-panel > p{
    font-size:13px !important;
}
.docs-shell .docs-file strong{
    font-size:13px !important;
}
.docs-shell .docs-meta{
    font-size:11px !important;
}
.docs-shell .docs-download{
    font-size:12px !important;
}
.docs-shell .docs-resource strong{
    font-size:14px !important;
}
.docs-shell .docs-resource span{
    font-size:12px !important;
}
.docs-shell .docs-resource em{
    font-size:12px !important;
}

/* --------------------------------------------------------------------------
   BOOK STUDIO
   -------------------------------------------------------------------------- */
body:has(.bs-top-actions) .page-heading .eyebrow{
    font-size:11px !important;
}
body:has(.bs-top-actions) .page-heading h1{
    font-size:clamp(34px,3.4vw,44px) !important;
    line-height:1.03 !important;
}
body:has(.bs-top-actions) .page-heading p{
    font-size:15px !important;
    line-height:1.5 !important;
}
body:has(.bs-top-actions) .bs-top-actions .cta{
    font-size:13px !important;
}
body:has(.bs-top-actions) .bs-intro .eyebrow{
    font-size:11px !important;
}
body:has(.bs-top-actions) .bs-intro h2{
    font-size:22px !important;
}
body:has(.bs-top-actions) .bs-intro p{
    font-size:13px !important;
}
body:has(.bs-top-actions) .bs-intro-jump{
    font-size:12px !important;
}
body:has(.bs-top-actions) .bs-title{
    font-size:20px !important;
}
body:has(.bs-top-actions) .bs-plan h3{
    font-size:16px !important;
}
body:has(.bs-top-actions) .bs-plan p{
    font-size:12px !important;
}
body:has(.bs-top-actions) .bs-chip,
body:has(.bs-top-actions) .bs-badge{
    font-size:9px !important;
}
body:has(.bs-top-actions) .bs-step{
    font-size:12px !important;
}
body:has(.bs-top-actions) .bs-create,
body:has(.bs-top-actions) .bs-clear{
    font-size:12px !important;
}

/* --------------------------------------------------------------------------
   NEDÌTESO AI
   Scoped by presence of AI-specific content
   -------------------------------------------------------------------------- */
body:has(.ai-kpis) .page-heading h1,
body:has(.ai-kpis) .ned-h3-ai-hero h1,
body:has(.ai-kpis) .ned-h3-ai-hero h2{
    font-size:clamp(34px,3.6vw,48px) !important;
    line-height:1.03 !important;
}
body:has(.ai-kpis) .page-heading p,
body:has(.ai-kpis) .ned-h3-ai-hero p{
    font-size:15px !important;
    line-height:1.5 !important;
}
body:has(.ai-kpis) .eyebrow{
    font-size:10px !important;
}
body:has(.ai-kpis) .panel h2{
    font-size:20px !important;
}
body:has(.ai-kpis) .panel h3,
body:has(.ai-kpis) .ai-card h3{
    font-size:15px !important;
}
body:has(.ai-kpis) .panel p,
body:has(.ai-kpis) .ai-card p{
    font-size:12px !important;
    line-height:1.45 !important;
}
body:has(.ai-kpis) .ai-kpi small{
    font-size:11px !important;
}
body:has(.ai-kpis) .ai-kpi strong{
    font-size:20px !important;
}
body:has(.ai-kpis) .ai-scope,
body:has(.ai-kpis) .ai-status{
    font-size:10px !important;
}
body:has(.ai-kpis) .cta{
    font-size:12px !important;
}

/* --------------------------------------------------------------------------
   PROFILO AUTORE
   Scope sui form del profilo
   -------------------------------------------------------------------------- */
body:has(form[action*="profile"]) .page-heading h1,
body:has(.profile-form) .page-heading h1,
body:has(.author-profile) .page-heading h1{
    font-size:clamp(34px,3.6vw,48px) !important;
    line-height:1.03 !important;
}
body:has(form[action*="profile"]) .page-heading p,
body:has(.profile-form) .page-heading p,
body:has(.author-profile) .page-heading p{
    font-size:15px !important;
    line-height:1.5 !important;
}
body:has(form[action*="profile"]) h2,
body:has(.profile-form) h2,
body:has(.author-profile) h2{
    font-size:20px !important;
}
body:has(form[action*="profile"]) h3,
body:has(.profile-form) h3,
body:has(.author-profile) h3{
    font-size:15px !important;
}
body:has(form[action*="profile"]) label,
body:has(.profile-form) label,
body:has(.author-profile) label{
    font-size:11px !important;
}
body:has(form[action*="profile"]) input,
body:has(form[action*="profile"]) select,
body:has(form[action*="profile"]) textarea,
body:has(.profile-form) input,
body:has(.profile-form) select,
body:has(.profile-form) textarea,
body:has(.author-profile) input,
body:has(.author-profile) select,
body:has(.author-profile) textarea{
    font-size:12px !important;
}

/* --------------------------------------------------------------------------
   MOBILE: evitare che la riduzione comprometta la leggibilità
   -------------------------------------------------------------------------- */
@media(max-width:640px){
    .author-home .ah-hero h1,
    .docs-shell .docs-hero h1,
    body:has(.bs-top-actions) .page-heading h1,
    body:has(.ai-kpis) .page-heading h1,
    body:has(.ai-kpis) .ned-h3-ai-hero h1{
        font-size:31px !important;
    }

    .author-home .ah-hero-copy,
    .docs-shell .docs-hero p,
    body:has(.bs-top-actions) .page-heading p,
    body:has(.ai-kpis) .page-heading p{
        font-size:14px !important;
    }
}

/* =============================== END H9 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L9
   Registration Gateway · Hero Copy Alignment
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

/* Desktop / tablet:
   - testo leggermente più grande
   - larghezza controllata fino circa sotto il "?" del titolo
   - entrambe le righe giustificate sulla stessa larghezza */
@media (min-width:761px){
    .ned-access-gateway .na-hero p{
        width:535px !important;
        max-width:535px !important;
        font-size:18px !important;
        line-height:1.52 !important;
        text-align:justify !important;
        text-align-last:justify !important;
        letter-spacing:.002em !important;
    }
}

/* Mobile: niente giustificazione forzata, massima leggibilità */
@media (max-width:760px){
    .ned-access-gateway .na-hero p{
        width:auto !important;
        max-width:100% !important;
        font-size:16px !important;
        line-height:1.55 !important;
        text-align:left !important;
        text-align-last:auto !important;
        letter-spacing:normal !important;
    }
}

/* =============================== END L9 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L10
   REGISTRATION FORMS VISUAL ALIGNMENT
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE IDENTIFICATION
   Author: birth_date / has_published / genre or similar profile fields
   Publisher: contact_role / publisher/legal/company fields
   Multiple selectors are intentionally used for robustness.
   -------------------------------------------------------------------------- */

body:has(form input[name="birth_date"]),
body:has(form select[name="has_published"]),
body:has(form input[name="author_name"]) {
    --reg-accent:#1477f3;
    --reg-accent-dark:#0a66db;
    --reg-soft:#eaf5ff;
    --reg-soft-2:#dff0ff;
    --reg-border:#bad9f7;
    --reg-icon-bg:#e8f3ff;
    --reg-chip:#edf6ff;
}

body:has(form select[name="contact_role"]),
body:has(form input[name="publisher_name"]),
body:has(form input[name="legal_name"]),
body:has(form input[name="company_name"]) {
    --reg-accent:#f47b20;
    --reg-accent-dark:#d96312;
    --reg-soft:#fff3e8;
    --reg-soft-2:#ffe9d6;
    --reg-border:#f5c79e;
    --reg-icon-bg:#fff0e3;
    --reg-chip:#fff3e8;
}

/* --------------------------------------------------------------------------
   PAGE WIDTH / SPACING
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) main,
body:has(form select[name="has_published"]) main,
body:has(form select[name="contact_role"]) main,
body:has(form input[name="publisher_name"]) main,
body:has(form input[name="legal_name"]) main,
body:has(form input[name="company_name"]) main {
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* --------------------------------------------------------------------------
   HERO / PAGE HEADING
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) .page-heading,
body:has(form select[name="has_published"]) .page-heading,
body:has(form select[name="contact_role"]) .page-heading,
body:has(form input[name="publisher_name"]) .page-heading,
body:has(form input[name="legal_name"]) .page-heading,
body:has(form input[name="company_name"]) .page-heading {
    position:relative !important;
    overflow:hidden !important;
    margin:12px 0 18px !important;
    padding:28px 32px !important;
    border:1px solid var(--reg-border) !important;
    border-radius:24px !important;
    background:
        radial-gradient(circle at 88% 30%, color-mix(in srgb, var(--reg-accent) 11%, transparent), transparent 30%),
        linear-gradient(120deg,#ffffff 0%,color-mix(in srgb,var(--reg-soft) 62%,#ffffff) 100%) !important;
    box-shadow:0 16px 42px rgba(20,58,102,.07) !important;
}

body:has(form input[name="birth_date"]) .page-heading::after,
body:has(form select[name="has_published"]) .page-heading::after,
body:has(form select[name="contact_role"]) .page-heading::after,
body:has(form input[name="publisher_name"]) .page-heading::after,
body:has(form input[name="legal_name"]) .page-heading::after,
body:has(form input[name="company_name"]) .page-heading::after {
    content:"";
    position:absolute;
    right:30px;
    top:50%;
    transform:translateY(-50%);
    width:110px;
    height:110px;
    border-radius:30px;
    background-color:var(--reg-icon-bg);
    background-position:center;
    background-repeat:no-repeat;
    background-size:54px 54px;
    opacity:.95;
}

/* Author hero icon */
body:has(form input[name="birth_date"]) .page-heading::after,
body:has(form select[name="has_published"]) .page-heading::after {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231477f3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5 21c0-4 2.8-7 7-7s7 3 7 7'/%3E%3Cpath d='M17 4l1 2 2 .5-1.5 1.5.5 2-2-1-2 1 .5-2L13 6.5 15 6z'/%3E%3C/svg%3E");
}

/* Publisher hero icon */
body:has(form select[name="contact_role"]) .page-heading::after,
body:has(form input[name="publisher_name"]) .page-heading::after,
body:has(form input[name="legal_name"]) .page-heading::after,
body:has(form input[name="company_name"]) .page-heading::after {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f47b20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V9M10 21V9M14 21V9M19 21V9'/%3E%3Cpath d='M2 9h20'/%3E%3Cpath d='M12 3l9 5H3z'/%3E%3C/svg%3E");
}

body:has(form input[name="birth_date"]) .page-heading > *,
body:has(form select[name="has_published"]) .page-heading > *,
body:has(form select[name="contact_role"]) .page-heading > *,
body:has(form input[name="publisher_name"]) .page-heading > *,
body:has(form input[name="legal_name"]) .page-heading > *,
body:has(form input[name="company_name"]) .page-heading > * {
    position:relative !important;
    z-index:2 !important;
    max-width:78% !important;
}

body:has(form input[name="birth_date"]) .page-heading h1,
body:has(form select[name="has_published"]) .page-heading h1,
body:has(form select[name="contact_role"]) .page-heading h1,
body:has(form input[name="publisher_name"]) .page-heading h1,
body:has(form input[name="legal_name"]) .page-heading h1,
body:has(form input[name="company_name"]) .page-heading h1 {
    margin:4px 0 7px !important;
    color:#0a2a54 !important;
    font-size:34px !important;
    line-height:1.05 !important;
    letter-spacing:-.025em !important;
}

body:has(form input[name="birth_date"]) .page-heading p,
body:has(form select[name="has_published"]) .page-heading p,
body:has(form select[name="contact_role"]) .page-heading p,
body:has(form input[name="publisher_name"]) .page-heading p,
body:has(form input[name="legal_name"]) .page-heading p,
body:has(form input[name="company_name"]) .page-heading p {
    margin:0 !important;
    color:#587390 !important;
    font-size:14px !important;
    line-height:1.5 !important;
}

/* --------------------------------------------------------------------------
   TOP INFO / ROLE CALLOUT
   Enhances common cards immediately before the main form.
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) .card,
body:has(form select[name="has_published"]) .card,
body:has(form select[name="contact_role"]) .card,
body:has(form input[name="publisher_name"]) .card,
body:has(form input[name="legal_name"]) .card,
body:has(form input[name="company_name"]) .card,
body:has(form input[name="birth_date"]) .panel,
body:has(form select[name="has_published"]) .panel,
body:has(form select[name="contact_role"]) .panel,
body:has(form input[name="publisher_name"]) .panel,
body:has(form input[name="legal_name"]) .panel,
body:has(form input[name="company_name"]) .panel {
    border-radius:18px !important;
    border-color:var(--reg-border) !important;
    box-shadow:0 8px 24px rgba(32,73,122,.045) !important;
}

/* --------------------------------------------------------------------------
   FORM SURFACE — PERMANENT NEDÌTESO RULE
   AUTHOR = LIGHT BLUE
   PUBLISHER = LIGHT ORANGE
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) form,
body:has(form select[name="has_published"]) form {
    position:relative !important;
    padding:24px !important;
    border:1px solid #b7d9f8 !important;
    border-radius:22px !important;
    background:
        linear-gradient(180deg,#eef8ff 0%,#e3f2ff 100%) !important;
    box-shadow:0 14px 34px rgba(32,92,150,.075) !important;
}

body:has(form select[name="contact_role"]) form,
body:has(form input[name="publisher_name"]) form,
body:has(form input[name="legal_name"]) form,
body:has(form input[name="company_name"]) form {
    position:relative !important;
    padding:24px !important;
    border:1px solid #f3c495 !important;
    border-radius:22px !important;
    background:
        linear-gradient(180deg,#fff8f1 0%,#ffeddd 100%) !important;
    box-shadow:0 14px 34px rgba(180,93,31,.07) !important;
}

/* White inner group surfaces if existing fieldsets / sections are present */
body:has(form input[name="birth_date"]) form fieldset,
body:has(form select[name="has_published"]) form fieldset,
body:has(form select[name="contact_role"]) form fieldset,
body:has(form input[name="publisher_name"]) form fieldset,
body:has(form input[name="legal_name"]) form fieldset,
body:has(form input[name="company_name"]) form fieldset {
    margin:0 0 16px !important;
    padding:18px !important;
    border:1px solid color-mix(in srgb,var(--reg-border) 80%,#ffffff) !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.72) !important;
}

/* Section titles */
body:has(form input[name="birth_date"]) form h2,
body:has(form select[name="has_published"]) form h2,
body:has(form select[name="contact_role"]) form h2,
body:has(form input[name="publisher_name"]) form h2,
body:has(form input[name="legal_name"]) form h2,
body:has(form input[name="company_name"]) form h2,
body:has(form input[name="birth_date"]) form h3,
body:has(form select[name="has_published"]) form h3,
body:has(form select[name="contact_role"]) form h3,
body:has(form input[name="publisher_name"]) form h3,
body:has(form input[name="legal_name"]) form h3,
body:has(form input[name="company_name"]) form h3 {
    color:#0a2a54 !important;
    font-size:15px !important;
    line-height:1.2 !important;
}

/* Separators */
body:has(form input[name="birth_date"]) form hr,
body:has(form select[name="has_published"]) form hr,
body:has(form select[name="contact_role"]) form hr,
body:has(form input[name="publisher_name"]) form hr,
body:has(form input[name="legal_name"]) form hr,
body:has(form input[name="company_name"]) form hr {
    border:0 !important;
    border-top:1px solid color-mix(in srgb,var(--reg-border) 82%,#fff) !important;
    margin:20px 0 !important;
}

/* --------------------------------------------------------------------------
   FIELDS
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) form label,
body:has(form select[name="has_published"]) form label,
body:has(form select[name="contact_role"]) form label,
body:has(form input[name="publisher_name"]) form label,
body:has(form input[name="legal_name"]) form label,
body:has(form input[name="company_name"]) form label {
    color:#17385f !important;
    font-size:11px !important;
    font-weight:800 !important;
}

body:has(form input[name="birth_date"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="has_published"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="contact_role"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="publisher_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="legal_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="company_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="birth_date"]) form select,
body:has(form select[name="has_published"]) form select,
body:has(form select[name="contact_role"]) form select,
body:has(form input[name="publisher_name"]) form select,
body:has(form input[name="legal_name"]) form select,
body:has(form input[name="company_name"]) form select,
body:has(form input[name="birth_date"]) form textarea,
body:has(form select[name="has_published"]) form textarea,
body:has(form select[name="contact_role"]) form textarea,
body:has(form input[name="publisher_name"]) form textarea,
body:has(form input[name="legal_name"]) form textarea,
body:has(form input[name="company_name"]) form textarea {
    min-height:42px !important;
    border:1px solid color-mix(in srgb,var(--reg-border) 86%,#8baac9) !important;
    border-radius:10px !important;
    background:#ffffff !important;
    color:#17385f !important;
    font-size:12px !important;
    box-shadow:0 2px 5px rgba(27,64,109,.025) !important;
    transition:border-color .15s ease,box-shadow .15s ease !important;
}

body:has(form input[name="birth_date"]) form input:focus,
body:has(form select[name="has_published"]) form input:focus,
body:has(form select[name="contact_role"]) form input:focus,
body:has(form input[name="publisher_name"]) form input:focus,
body:has(form input[name="legal_name"]) form input:focus,
body:has(form input[name="company_name"]) form input:focus,
body:has(form input[name="birth_date"]) form select:focus,
body:has(form select[name="has_published"]) form select:focus,
body:has(form select[name="contact_role"]) form select:focus,
body:has(form input[name="publisher_name"]) form select:focus,
body:has(form input[name="legal_name"]) form select:focus,
body:has(form input[name="company_name"]) form select:focus,
body:has(form input[name="birth_date"]) form textarea:focus,
body:has(form select[name="has_published"]) form textarea:focus,
body:has(form select[name="contact_role"]) form textarea:focus,
body:has(form input[name="publisher_name"]) form textarea:focus,
body:has(form input[name="legal_name"]) form textarea:focus,
body:has(form input[name="company_name"]) form textarea:focus {
    outline:none !important;
    border-color:var(--reg-accent) !important;
    box-shadow:0 0 0 3px color-mix(in srgb,var(--reg-accent) 13%,transparent) !important;
}

/* --------------------------------------------------------------------------
   CONSENTS / CHECKBOX PANELS
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) form .consent,
body:has(form select[name="has_published"]) form .consent,
body:has(form select[name="contact_role"]) form .consent,
body:has(form input[name="publisher_name"]) form .consent,
body:has(form input[name="legal_name"]) form .consent,
body:has(form input[name="company_name"]) form .consent,
body:has(form input[name="birth_date"]) form .checkbox-row,
body:has(form select[name="has_published"]) form .checkbox-row,
body:has(form select[name="contact_role"]) form .checkbox-row,
body:has(form input[name="publisher_name"]) form .checkbox-row,
body:has(form input[name="legal_name"]) form .checkbox-row,
body:has(form input[name="company_name"]) form .checkbox-row {
    border-color:color-mix(in srgb,var(--reg-border) 80%,#fff) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.66) !important;
}

/* Native checkbox accent */
body:has(form input[name="birth_date"]) form input[type="checkbox"],
body:has(form select[name="has_published"]) form input[type="checkbox"],
body:has(form select[name="contact_role"]) form input[type="checkbox"],
body:has(form input[name="publisher_name"]) form input[type="checkbox"],
body:has(form input[name="legal_name"]) form input[type="checkbox"],
body:has(form input[name="company_name"]) form input[type="checkbox"] {
    accent-color:var(--reg-accent) !important;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) form button[type="submit"],
body:has(form select[name="has_published"]) form button[type="submit"],
body:has(form select[name="contact_role"]) form button[type="submit"],
body:has(form input[name="publisher_name"]) form button[type="submit"],
body:has(form input[name="legal_name"]) form button[type="submit"],
body:has(form input[name="company_name"]) form button[type="submit"],
body:has(form input[name="birth_date"]) form input[type="submit"],
body:has(form select[name="has_published"]) form input[type="submit"],
body:has(form select[name="contact_role"]) form input[type="submit"],
body:has(form input[name="publisher_name"]) form input[type="submit"],
body:has(form input[name="legal_name"]) form input[type="submit"],
body:has(form input[name="company_name"]) form input[type="submit"] {
    min-height:44px !important;
    padding:10px 18px !important;
    border:1px solid var(--reg-accent) !important;
    border-radius:11px !important;
    background:var(--reg-accent) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:900 !important;
    box-shadow:0 8px 17px color-mix(in srgb,var(--reg-accent) 22%,transparent) !important;
}

body:has(form input[name="birth_date"]) form a.btn,
body:has(form select[name="has_published"]) form a.btn,
body:has(form select[name="contact_role"]) form a.btn,
body:has(form input[name="publisher_name"]) form a.btn,
body:has(form input[name="legal_name"]) form a.btn,
body:has(form input[name="company_name"]) form a.btn {
    min-height:42px !important;
    border-radius:11px !important;
}

/* --------------------------------------------------------------------------
   INFO / WARNING BOXES WITHIN FORM
   -------------------------------------------------------------------------- */
body:has(form input[name="birth_date"]) form .notice,
body:has(form select[name="has_published"]) form .notice,
body:has(form select[name="contact_role"]) form .notice,
body:has(form input[name="publisher_name"]) form .notice,
body:has(form input[name="legal_name"]) form .notice,
body:has(form input[name="company_name"]) form .notice,
body:has(form input[name="birth_date"]) form .alert,
body:has(form select[name="has_published"]) form .alert,
body:has(form select[name="contact_role"]) form .alert,
body:has(form input[name="publisher_name"]) form .alert,
body:has(form input[name="legal_name"]) form .alert,
body:has(form input[name="company_name"]) form .alert {
    border-radius:12px !important;
}

/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */
@media(max-width:760px){
    body:has(form input[name="birth_date"]) .page-heading,
    body:has(form select[name="has_published"]) .page-heading,
    body:has(form select[name="contact_role"]) .page-heading,
    body:has(form input[name="publisher_name"]) .page-heading,
    body:has(form input[name="legal_name"]) .page-heading,
    body:has(form input[name="company_name"]) .page-heading {
        padding:22px !important;
        border-radius:20px !important;
    }

    body:has(form input[name="birth_date"]) .page-heading::after,
    body:has(form select[name="has_published"]) .page-heading::after,
    body:has(form select[name="contact_role"]) .page-heading::after,
    body:has(form input[name="publisher_name"]) .page-heading::after,
    body:has(form input[name="legal_name"]) .page-heading::after,
    body:has(form input[name="company_name"]) .page-heading::after {
        opacity:.18 !important;
        right:14px !important;
    }

    body:has(form input[name="birth_date"]) .page-heading > *,
    body:has(form select[name="has_published"]) .page-heading > *,
    body:has(form select[name="contact_role"]) .page-heading > *,
    body:has(form input[name="publisher_name"]) .page-heading > *,
    body:has(form input[name="legal_name"]) .page-heading > *,
    body:has(form input[name="company_name"]) .page-heading > * {
        max-width:100% !important;
    }

    body:has(form input[name="birth_date"]) .page-heading h1,
    body:has(form select[name="has_published"]) .page-heading h1,
    body:has(form select[name="contact_role"]) .page-heading h1,
    body:has(form input[name="publisher_name"]) .page-heading h1,
    body:has(form input[name="legal_name"]) .page-heading h1,
    body:has(form input[name="company_name"]) .page-heading h1 {
        font-size:29px !important;
    }

    body:has(form input[name="birth_date"]) form,
    body:has(form select[name="has_published"]) form,
    body:has(form select[name="contact_role"]) form,
    body:has(form input[name="publisher_name"]) form,
    body:has(form input[name="legal_name"]) form,
    body:has(form input[name="company_name"]) form {
        padding:17px !important;
        border-radius:18px !important;
    }
}

/* ============================== END L10 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L11
   REGISTRATION FORMS · PHOTO HERO + THEME CORRECTION
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

/* PAGE IDENTIFICATION */
body:has(form input[name="birth_date"]),
body:has(form select[name="has_published"]),
body:has(form input[name="author_name"]) {
    --reg-accent:#1477f3;
    --reg-accent-dark:#0a66db;
    --reg-soft:#eef8ff;
    --reg-soft-2:#e2f1ff;
    --reg-border:#b9d9f8;
    --reg-card:#f8fcff;
    --reg-title:#0a2a54;
    --reg-copy:#587390;
    --reg-hero-image:url('/app/assets/branding/register-author-hero-l11.webp');
}

body:has(form select[name="contact_role"]),
body:has(form input[name="publisher_name"]),
body:has(form input[name="legal_name"]),
body:has(form input[name="company_name"]) {
    --reg-accent:#f47b20;
    --reg-accent-dark:#d96312;
    --reg-soft:#fff7ef;
    --reg-soft-2:#ffecd9;
    --reg-border:#f3c495;
    --reg-card:#fff8f1;
    --reg-title:#0a2a54;
    --reg-copy:#6d5b4d;
    --reg-hero-image:url('/app/assets/branding/register-publisher-hero-l11.webp');
}

/* Canvas */
body:has(form input[name="birth_date"]) main,
body:has(form select[name="has_published"]) main,
body:has(form select[name="contact_role"]) main,
body:has(form input[name="publisher_name"]) main,
body:has(form input[name="legal_name"]) main,
body:has(form input[name="company_name"]) main {
    max-width:1240px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* HERO with realistic background */
body:has(form input[name="birth_date"]) .page-heading,
body:has(form select[name="has_published"]) .page-heading,
body:has(form select[name="contact_role"]) .page-heading,
body:has(form input[name="publisher_name"]) .page-heading,
body:has(form input[name="legal_name"]) .page-heading,
body:has(form input[name="company_name"]) .page-heading {
    width:100% !important;
    box-sizing:border-box !important;
    position:relative !important;
    overflow:hidden !important;
    margin:12px 0 18px !important;
    min-height:166px !important;
    padding:28px 360px 28px 32px !important;
    border:1px solid var(--reg-border) !important;
    border-radius:24px !important;
    background:
        linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 40%, rgba(255,255,255,.55) 58%, rgba(255,255,255,.08) 76%),
        var(--reg-hero-image) center right / cover no-repeat !important;
    box-shadow:0 16px 42px rgba(20,58,102,.07) !important;
}

body:has(form input[name="birth_date"]) .page-heading::after,
body:has(form select[name="has_published"]) .page-heading::after,
body:has(form select[name="contact_role"]) .page-heading::after,
body:has(form input[name="publisher_name"]) .page-heading::after,
body:has(form input[name="legal_name"]) .page-heading::after,
body:has(form input[name="company_name"]) .page-heading::after {
    display:none !important;
    content:none !important;
}

body:has(form input[name="birth_date"]) .page-heading > *,
body:has(form select[name="has_published"]) .page-heading > *,
body:has(form select[name="contact_role"]) .page-heading > *,
body:has(form input[name="publisher_name"]) .page-heading > *,
body:has(form input[name="legal_name"]) .page-heading > *,
body:has(form input[name="company_name"]) .page-heading > * {
    position:relative !important;
    z-index:2 !important;
    max-width:560px !important;
}

body:has(form input[name="birth_date"]) .page-heading h1,
body:has(form select[name="has_published"]) .page-heading h1,
body:has(form select[name="contact_role"]) .page-heading h1,
body:has(form input[name="publisher_name"]) .page-heading h1,
body:has(form input[name="legal_name"]) .page-heading h1,
body:has(form input[name="company_name"]) .page-heading h1 {
    margin:4px 0 8px !important;
    color:var(--reg-title) !important;
    font-size:34px !important;
    line-height:1.05 !important;
    letter-spacing:-.03em !important;
}

body:has(form input[name="birth_date"]) .page-heading p,
body:has(form select[name="has_published"]) .page-heading p,
body:has(form select[name="contact_role"]) .page-heading p,
body:has(form input[name="publisher_name"]) .page-heading p,
body:has(form input[name="legal_name"]) .page-heading p,
body:has(form input[name="company_name"]) .page-heading p {
    color:var(--reg-copy) !important;
    font-size:14px !important;
    line-height:1.5 !important;
    margin:0 !important;
}

/* All boxes align with rest */
body:has(form input[name="birth_date"]) .card,
body:has(form input[name="birth_date"]) .panel,
body:has(form select[name="has_published"]) .card,
body:has(form select[name="has_published"]) .panel,
body:has(form select[name="contact_role"]) .card,
body:has(form select[name="contact_role"]) .panel,
body:has(form input[name="publisher_name"]) .card,
body:has(form input[name="publisher_name"]) .panel,
body:has(form input[name="legal_name"]) .card,
body:has(form input[name="legal_name"]) .panel,
body:has(form input[name="company_name"]) .card,
body:has(form input[name="company_name"]) .panel,
body:has(form input[name="birth_date"]) form,
body:has(form select[name="has_published"]) form,
body:has(form select[name="contact_role"]) form,
body:has(form input[name="publisher_name"]) form,
body:has(form input[name="legal_name"]) form,
body:has(form input[name="company_name"]) form {
    width:100% !important;
    box-sizing:border-box !important;
}

/* Secondary role / intro boxes */
body:has(form input[name="birth_date"]) .card,
body:has(form input[name="birth_date"]) .panel,
body:has(form select[name="has_published"]) .card,
body:has(form select[name="has_published"]) .panel {
    border-radius:18px !important;
    border:1px solid var(--reg-border) !important;
    background:linear-gradient(180deg,#ffffff 0%, var(--reg-card) 100%) !important;
    box-shadow:0 8px 24px rgba(32,73,122,.045) !important;
}

body:has(form select[name="contact_role"]) .card,
body:has(form select[name="contact_role"]) .panel,
body:has(form input[name="publisher_name"]) .card,
body:has(form input[name="publisher_name"]) .panel,
body:has(form input[name="legal_name"]) .card,
body:has(form input[name="legal_name"]) .panel,
body:has(form input[name="company_name"]) .card,
body:has(form input[name="company_name"]) .panel {
    border-radius:18px !important;
    border:1px solid var(--reg-border) !important;
    background:linear-gradient(180deg,#fffdfb 0%, var(--reg-soft) 100%) !important;
    box-shadow:0 8px 24px rgba(180,93,31,.055) !important;
}

/* All publisher boxes orange background and orange icon system */
body:has(form select[name="contact_role"]) .card *,
body:has(form select[name="contact_role"]) .panel *,
body:has(form input[name="publisher_name"]) .card *,
body:has(form input[name="publisher_name"]) .panel *,
body:has(form input[name="legal_name"]) .card *,
body:has(form input[name="legal_name"]) .panel *,
body:has(form input[name="company_name"]) .card *,
body:has(form input[name="company_name"]) .panel * {
    border-color:var(--reg-border);
}

/* Text colors like approved mockup */
body:has(form input[name="birth_date"]) .card h2,
body:has(form input[name="birth_date"]) .card h3,
body:has(form input[name="birth_date"]) .panel h2,
body:has(form input[name="birth_date"]) .panel h3,
body:has(form select[name="has_published"]) .card h2,
body:has(form select[name="has_published"]) .card h3,
body:has(form select[name="has_published"]) .panel h2,
body:has(form select[name="has_published"]) .panel h3,
body:has(form select[name="contact_role"]) .card h2,
body:has(form select[name="contact_role"]) .card h3,
body:has(form select[name="contact_role"]) .panel h2,
body:has(form select[name="contact_role"]) .panel h3,
body:has(form input[name="publisher_name"]) .card h2,
body:has(form input[name="publisher_name"]) .card h3,
body:has(form input[name="publisher_name"]) .panel h2,
body:has(form input[name="publisher_name"]) .panel h3,
body:has(form input[name="legal_name"]) .card h2,
body:has(form input[name="legal_name"]) .card h3,
body:has(form input[name="legal_name"]) .panel h2,
body:has(form input[name="legal_name"]) .panel h3,
body:has(form input[name="company_name"]) .card h2,
body:has(form input[name="company_name"]) .card h3,
body:has(form input[name="company_name"]) .panel h2,
body:has(form input[name="company_name"]) .panel h3 {
    color:var(--reg-title) !important;
}

body:has(form input[name="birth_date"]) .card p,
body:has(form input[name="birth_date"]) .panel p,
body:has(form select[name="has_published"]) .card p,
body:has(form select[name="has_published"]) .panel p,
body:has(form select[name="contact_role"]) .card p,
body:has(form select[name="contact_role"]) .panel p,
body:has(form input[name="publisher_name"]) .card p,
body:has(form input[name="publisher_name"]) .panel p,
body:has(form input[name="legal_name"]) .card p,
body:has(form input[name="legal_name"]) .panel p,
body:has(form input[name="company_name"]) .card p,
body:has(form input[name="company_name"]) .panel p {
    color:var(--reg-copy) !important;
}

/* Emphasis labels */
body:has(form input[name="birth_date"]) .card .eyebrow,
body:has(form input[name="birth_date"]) .panel .eyebrow,
body:has(form select[name="has_published"]) .card .eyebrow,
body:has(form select[name="has_published"]) .panel .eyebrow {
    color:#1477f3 !important;
}

body:has(form select[name="contact_role"]) .card .eyebrow,
body:has(form select[name="contact_role"]) .panel .eyebrow,
body:has(form input[name="publisher_name"]) .card .eyebrow,
body:has(form input[name="publisher_name"]) .panel .eyebrow,
body:has(form input[name="legal_name"]) .card .eyebrow,
body:has(form input[name="legal_name"]) .panel .eyebrow,
body:has(form input[name="company_name"]) .card .eyebrow,
body:has(form input[name="company_name"]) .panel .eyebrow {
    color:#f47b20 !important;
}

/* Icon color system */
body:has(form input[name="birth_date"]) .page-heading svg,
body:has(form input[name="birth_date"]) .card svg,
body:has(form input[name="birth_date"]) .panel svg,
body:has(form input[name="birth_date"]) form svg,
body:has(form select[name="has_published"]) .page-heading svg,
body:has(form select[name="has_published"]) .card svg,
body:has(form select[name="has_published"]) .panel svg,
body:has(form select[name="has_published"]) form svg {
    color:#1477f3 !important;
}

body:has(form select[name="contact_role"]) .page-heading svg,
body:has(form select[name="contact_role"]) .card svg,
body:has(form select[name="contact_role"]) .panel svg,
body:has(form select[name="contact_role"]) form svg,
body:has(form input[name="publisher_name"]) .page-heading svg,
body:has(form input[name="publisher_name"]) .card svg,
body:has(form input[name="publisher_name"]) .panel svg,
body:has(form input[name="publisher_name"]) form svg,
body:has(form input[name="legal_name"]) .page-heading svg,
body:has(form input[name="legal_name"]) .card svg,
body:has(form input[name="legal_name"]) .panel svg,
body:has(form input[name="legal_name"]) form svg,
body:has(form input[name="company_name"]) .page-heading svg,
body:has(form input[name="company_name"]) .card svg,
body:has(form input[name="company_name"]) .panel svg,
body:has(form input[name="company_name"]) form svg {
    color:#f47b20 !important;
}

body:has(form input[name="birth_date"]) .page-heading svg *,
body:has(form input[name="birth_date"]) .card svg *,
body:has(form input[name="birth_date"]) .panel svg *,
body:has(form input[name="birth_date"]) form svg *,
body:has(form select[name="has_published"]) .page-heading svg *,
body:has(form select[name="has_published"]) .card svg *,
body:has(form select[name="has_published"]) .panel svg *,
body:has(form select[name="has_published"]) form svg * {
    stroke:#1477f3 !important;
    fill:transparent !important;
}

body:has(form select[name="contact_role"]) .page-heading svg *,
body:has(form select[name="contact_role"]) .card svg *,
body:has(form select[name="contact_role"]) .panel svg *,
body:has(form select[name="contact_role"]) form svg *,
body:has(form input[name="publisher_name"]) .page-heading svg *,
body:has(form input[name="publisher_name"]) .card svg *,
body:has(form input[name="publisher_name"]) .panel svg *,
body:has(form input[name="publisher_name"]) form svg *,
body:has(form input[name="legal_name"]) .page-heading svg *,
body:has(form input[name="legal_name"]) .card svg *,
body:has(form input[name="legal_name"]) .panel svg *,
body:has(form input[name="legal_name"]) form svg *,
body:has(form input[name="company_name"]) .page-heading svg *,
body:has(form input[name="company_name"]) .card svg *,
body:has(form input[name="company_name"]) .panel svg *,
body:has(form input[name="company_name"]) form svg * {
    stroke:#f47b20 !important;
    fill:transparent !important;
}

/* Form surfaces */
body:has(form input[name="birth_date"]) form,
body:has(form select[name="has_published"]) form {
    padding:24px !important;
    border:1px solid #b7d9f8 !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#eef8ff 0%,#e3f2ff 100%) !important;
    box-shadow:0 14px 34px rgba(32,92,150,.075) !important;
}

body:has(form select[name="contact_role"]) form,
body:has(form input[name="publisher_name"]) form,
body:has(form input[name="legal_name"]) form,
body:has(form input[name="company_name"]) form {
    padding:24px !important;
    border:1px solid #f3c495 !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#fff8f1 0%,#ffeddd 100%) !important;
    box-shadow:0 14px 34px rgba(180,93,31,.07) !important;
}

/* Inputs */
body:has(form input[name="birth_date"]) form label,
body:has(form select[name="has_published"]) form label,
body:has(form select[name="contact_role"]) form label,
body:has(form input[name="publisher_name"]) form label,
body:has(form input[name="legal_name"]) form label,
body:has(form input[name="company_name"]) form label {
    color:#17385f !important;
    font-size:11px !important;
    font-weight:800 !important;
}

body:has(form input[name="birth_date"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="birth_date"]) form select,
body:has(form input[name="birth_date"]) form textarea,
body:has(form select[name="has_published"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="has_published"]) form select,
body:has(form select[name="has_published"]) form textarea,
body:has(form select[name="contact_role"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="contact_role"]) form select,
body:has(form select[name="contact_role"]) form textarea,
body:has(form input[name="publisher_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="publisher_name"]) form select,
body:has(form input[name="publisher_name"]) form textarea,
body:has(form input[name="legal_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="legal_name"]) form select,
body:has(form input[name="legal_name"]) form textarea,
body:has(form input[name="company_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="company_name"]) form select,
body:has(form input[name="company_name"]) form textarea {
    min-height:42px !important;
    border-radius:10px !important;
    background:#ffffff !important;
    color:#17385f !important;
    font-size:12px !important;
}

body:has(form input[name="birth_date"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="birth_date"]) form select,
body:has(form input[name="birth_date"]) form textarea,
body:has(form select[name="has_published"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="has_published"]) form select,
body:has(form select[name="has_published"]) form textarea {
    border:1px solid #bad9f8 !important;
}

body:has(form select[name="contact_role"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="contact_role"]) form select,
body:has(form select[name="contact_role"]) form textarea,
body:has(form input[name="publisher_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="publisher_name"]) form select,
body:has(form input[name="publisher_name"]) form textarea,
body:has(form input[name="legal_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="legal_name"]) form select,
body:has(form input[name="legal_name"]) form textarea,
body:has(form input[name="company_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="company_name"]) form select,
body:has(form input[name="company_name"]) form textarea {
    border:1px solid #f3c495 !important;
}

/* Focus */
body:has(form input[name="birth_date"]) form input:focus,
body:has(form input[name="birth_date"]) form select:focus,
body:has(form input[name="birth_date"]) form textarea:focus,
body:has(form select[name="has_published"]) form input:focus,
body:has(form select[name="has_published"]) form select:focus,
body:has(form select[name="has_published"]) form textarea:focus {
    outline:none !important;
    border-color:#1477f3 !important;
    box-shadow:0 0 0 3px rgba(20,119,243,.13) !important;
}

body:has(form select[name="contact_role"]) form input:focus,
body:has(form select[name="contact_role"]) form select:focus,
body:has(form select[name="contact_role"]) form textarea:focus,
body:has(form input[name="publisher_name"]) form input:focus,
body:has(form input[name="publisher_name"]) form select:focus,
body:has(form input[name="publisher_name"]) form textarea:focus,
body:has(form input[name="legal_name"]) form input:focus,
body:has(form input[name="legal_name"]) form select:focus,
body:has(form input[name="legal_name"]) form textarea:focus,
body:has(form input[name="company_name"]) form input:focus,
body:has(form input[name="company_name"]) form select:focus,
body:has(form input[name="company_name"]) form textarea:focus {
    outline:none !important;
    border-color:#f47b20 !important;
    box-shadow:0 0 0 3px rgba(244,123,32,.13) !important;
}

/* Buttons */
body:has(form input[name="birth_date"]) form button[type="submit"],
body:has(form input[name="birth_date"]) form input[type="submit"],
body:has(form select[name="has_published"]) form button[type="submit"],
body:has(form select[name="has_published"]) form input[type="submit"] {
    background:#1477f3 !important;
    border-color:#1477f3 !important;
    color:#fff !important;
    border-radius:11px !important;
    font-size:12px !important;
    font-weight:900 !important;
}

body:has(form select[name="contact_role"]) form button[type="submit"],
body:has(form select[name="contact_role"]) form input[type="submit"],
body:has(form input[name="publisher_name"]) form button[type="submit"],
body:has(form input[name="publisher_name"]) form input[type="submit"],
body:has(form input[name="legal_name"]) form button[type="submit"],
body:has(form input[name="legal_name"]) form input[type="submit"],
body:has(form input[name="company_name"]) form button[type="submit"],
body:has(form input[name="company_name"]) form input[type="submit"] {
    background:#f47b20 !important;
    border-color:#f47b20 !important;
    color:#fff !important;
    border-radius:11px !important;
    font-size:12px !important;
    font-weight:900 !important;
}

/* Secondary buttons / links */
body:has(form select[name="contact_role"]) form a.btn,
body:has(form input[name="publisher_name"]) form a.btn,
body:has(form input[name="legal_name"]) form a.btn,
body:has(form input[name="company_name"]) form a.btn {
    border-color:#f47b20 !important;
    color:#f47b20 !important;
    background:#fff !important;
}

/* Mobile */
@media(max-width:760px){
    body:has(form input[name="birth_date"]) .page-heading,
    body:has(form select[name="has_published"]) .page-heading,
    body:has(form select[name="contact_role"]) .page-heading,
    body:has(form input[name="publisher_name"]) .page-heading,
    body:has(form input[name="legal_name"]) .page-heading,
    body:has(form input[name="company_name"]) .page-heading {
        padding:22px 22px 156px 22px !important;
        min-height:auto !important;
        background-position:center bottom !important;
        background-size:cover !important;
    }
    body:has(form input[name="birth_date"]) .page-heading > *,
    body:has(form select[name="has_published"]) .page-heading > *,
    body:has(form select[name="contact_role"]) .page-heading > *,
    body:has(form input[name="publisher_name"]) .page-heading > *,
    body:has(form input[name="legal_name"]) .page-heading > *,
    body:has(form input[name="company_name"]) .page-heading > * {
        max-width:100% !important;
    }
    body:has(form input[name="birth_date"]) .page-heading h1,
    body:has(form select[name="has_published"]) .page-heading h1,
    body:has(form select[name="contact_role"]) .page-heading h1,
    body:has(form input[name="publisher_name"]) .page-heading h1,
    body:has(form input[name="legal_name"]) .page-heading h1,
    body:has(form input[name="company_name"]) .page-heading h1 {
        font-size:29px !important;
    }
}
/* ============================== END L11 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L12
   PUBLISHER REGISTRATION · HERO ALIGNMENT + ORANGE TYPOGRAPHY FIX
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

/* Target robusto: pagina registrazione casa editrice / publisher */
body:has(form select[name="contact_role"]),
body:has(form input[name="publisher_name"]),
body:has(form input[name="legal_name"]),
body:has(form input[name="company_name"]) {
    --pub-accent:#f47b20;
    --pub-accent-dark:#c75f12;
    --pub-border:#f3c495;
    --pub-soft:#fff8f1;
    --pub-soft-2:#ffeedf;
    --pub-copy:#7a563a;
    --pub-title:#a45116;
    --pub-title-dark:#8e4310;
}

/* 1) Allineamento orizzontale di tutti i box principali */
body:has(form select[name="contact_role"]) .page-heading,
body:has(form input[name="publisher_name"]) .page-heading,
body:has(form input[name="legal_name"]) .page-heading,
body:has(form input[name="company_name"]) .page-heading,
body:has(form select[name="contact_role"]) form,
body:has(form input[name="publisher_name"]) form,
body:has(form input[name="legal_name"]) form,
body:has(form input[name="company_name"]) form,
body:has(form select[name="contact_role"]) .card,
body:has(form input[name="publisher_name"]) .card,
body:has(form input[name="legal_name"]) .card,
body:has(form input[name="company_name"]) .card,
body:has(form select[name="contact_role"]) .panel,
body:has(form input[name="publisher_name"]) .panel,
body:has(form input[name="legal_name"]) .panel,
body:has(form input[name="company_name"]) .panel,
body:has(form select[name="contact_role"]) .notice,
body:has(form input[name="publisher_name"]) .notice,
body:has(form input[name="legal_name"]) .notice,
body:has(form input[name="company_name"]) .notice,
body:has(form select[name="contact_role"]) .alert,
body:has(form input[name="publisher_name"]) .alert,
body:has(form input[name="legal_name"]) .alert,
body:has(form input[name="company_name"]) .alert {
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Se esiste un wrapper interno centrato, lo uniformiamo */
body:has(form select[name="contact_role"]) main,
body:has(form input[name="publisher_name"]) main,
body:has(form input[name="legal_name"]) main,
body:has(form input[name="company_name"]) main,
body:has(form select[name="contact_role"]) .container,
body:has(form input[name="publisher_name"]) .container,
body:has(form input[name="legal_name"]) .container,
body:has(form input[name="company_name"]) .container,
body:has(form select[name="contact_role"]) .page,
body:has(form input[name="publisher_name"]) .page,
body:has(form input[name="legal_name"]) .page,
body:has(form input[name="company_name"]) .page {
    max-width:1240px !important;
}

/* 2) Tutta la pagina publisher su tema arancione chiaro */
body:has(form select[name="contact_role"]) .card,
body:has(form input[name="publisher_name"]) .card,
body:has(form input[name="legal_name"]) .card,
body:has(form input[name="company_name"]) .card,
body:has(form select[name="contact_role"]) .panel,
body:has(form input[name="publisher_name"]) .panel,
body:has(form input[name="legal_name"]) .panel,
body:has(form input[name="company_name"]) .panel {
    border:1px solid var(--pub-border) !important;
    background:linear-gradient(180deg,#fffdfa 0%,var(--pub-soft) 100%) !important;
    box-shadow:0 8px 22px rgba(180,93,31,.05) !important;
}

/* 3) Hero box pienamente allineata e coerente */
body:has(form select[name="contact_role"]) .page-heading,
body:has(form input[name="publisher_name"]) .page-heading,
body:has(form input[name="legal_name"]) .page-heading,
body:has(form input[name="company_name"]) .page-heading {
    min-height:168px !important;
    padding:28px 360px 28px 32px !important;
    border:1px solid var(--pub-border) !important;
    border-radius:24px !important;
    background:
        linear-gradient(90deg, rgba(255,251,246,.97) 0%, rgba(255,251,246,.92) 42%, rgba(255,251,246,.55) 60%, rgba(255,251,246,.08) 78%),
        url('/app/assets/branding/register-publisher-hero-l11.webp') center right / cover no-repeat !important;
    overflow:hidden !important;
}

body:has(form select[name="contact_role"]) .page-heading > *,
body:has(form input[name="publisher_name"]) .page-heading > *,
body:has(form input[name="legal_name"]) .page-heading > *,
body:has(form input[name="company_name"]) .page-heading > * {
    max-width:560px !important;
    position:relative !important;
    z-index:2 !important;
}

/* 4) Tutte le scritte publisher in palette arancione / caldo */
body:has(form select[name="contact_role"]) .page-heading h1,
body:has(form input[name="publisher_name"]) .page-heading h1,
body:has(form input[name="legal_name"]) .page-heading h1,
body:has(form input[name="company_name"]) .page-heading h1 {
    color:var(--pub-title-dark) !important;
}

body:has(form select[name="contact_role"]) .page-heading p,
body:has(form input[name="publisher_name"]) .page-heading p,
body:has(form input[name="legal_name"]) .page-heading p,
body:has(form input[name="company_name"]) .page-heading p {
    color:var(--pub-copy) !important;
}

body:has(form select[name="contact_role"]) h2,
body:has(form input[name="publisher_name"]) h2,
body:has(form input[name="legal_name"]) h2,
body:has(form input[name="company_name"]) h2,
body:has(form select[name="contact_role"]) h3,
body:has(form input[name="publisher_name"]) h3,
body:has(form input[name="legal_name"]) h3,
body:has(form input[name="company_name"]) h3,
body:has(form select[name="contact_role"]) h4,
body:has(form input[name="publisher_name"]) h4,
body:has(form input[name="legal_name"]) h4,
body:has(form input[name="company_name"]) h4,
body:has(form select[name="contact_role"]) legend,
body:has(form input[name="publisher_name"]) legend,
body:has(form input[name="legal_name"]) legend,
body:has(form input[name="company_name"]) legend,
body:has(form select[name="contact_role"]) .section-title,
body:has(form input[name="publisher_name"]) .section-title,
body:has(form input[name="legal_name"]) .section-title,
body:has(form input[name="company_name"]) .section-title {
    color:var(--pub-title) !important;
}

body:has(form select[name="contact_role"]) p,
body:has(form input[name="publisher_name"]) p,
body:has(form input[name="legal_name"]) p,
body:has(form input[name="company_name"]) p,
body:has(form select[name="contact_role"]) .muted,
body:has(form input[name="publisher_name"]) .muted,
body:has(form input[name="legal_name"]) .muted,
body:has(form input[name="company_name"]) .muted,
body:has(form select[name="contact_role"]) small,
body:has(form input[name="publisher_name"]) small,
body:has(form input[name="legal_name"]) small,
body:has(form input[name="company_name"]) small {
    color:var(--pub-copy) !important;
}

body:has(form select[name="contact_role"]) label,
body:has(form input[name="publisher_name"]) label,
body:has(form input[name="legal_name"]) label,
body:has(form input[name="company_name"]) label,
body:has(form select[name="contact_role"]) .eyebrow,
body:has(form input[name="publisher_name"]) .eyebrow,
body:has(form input[name="legal_name"]) .eyebrow,
body:has(form input[name="company_name"]) .eyebrow,
body:has(form select[name="contact_role"]) .overline,
body:has(form input[name="publisher_name"]) .overline,
body:has(form input[name="legal_name"]) .overline,
body:has(form input[name="company_name"]) .overline {
    color:var(--pub-accent-dark) !important;
}

/* 5) Box introduttivi / callout arancioni */
body:has(form select[name="contact_role"]) .card:first-of-type,
body:has(form input[name="publisher_name"]) .card:first-of-type,
body:has(form input[name="legal_name"]) .card:first-of-type,
body:has(form input[name="company_name"]) .card:first-of-type,
body:has(form select[name="contact_role"]) .panel:first-of-type,
body:has(form input[name="publisher_name"]) .panel:first-of-type,
body:has(form input[name="legal_name"]) .panel:first-of-type,
body:has(form input[name="company_name"]) .panel:first-of-type {
    background:linear-gradient(180deg,#fff9f4 0%, var(--pub-soft) 100%) !important;
    border-color:var(--pub-border) !important;
}

/* 6) Icone publisher arancioni, niente blu */
body:has(form select[name="contact_role"]) svg,
body:has(form input[name="publisher_name"]) svg,
body:has(form input[name="legal_name"]) svg,
body:has(form input[name="company_name"]) svg {
    color:var(--pub-accent) !important;
}
body:has(form select[name="contact_role"]) svg *,
body:has(form input[name="publisher_name"]) svg *,
body:has(form input[name="legal_name"]) svg *,
body:has(form input[name="company_name"]) svg * {
    stroke:var(--pub-accent) !important;
}

/* Fondelli icona arancioni */
body:has(form select[name="contact_role"]) .icon-wrap,
body:has(form input[name="publisher_name"]) .icon-wrap,
body:has(form input[name="legal_name"]) .icon-wrap,
body:has(form input[name="company_name"]) .icon-wrap,
body:has(form select[name="contact_role"]) [class*="icon-box"],
body:has(form input[name="publisher_name"]) [class*="icon-box"],
body:has(form input[name="legal_name"]) [class*="icon-box"],
body:has(form input[name="company_name"]) [class*="icon-box"],
body:has(form select[name="contact_role"]) [class*="icon-badge"],
body:has(form input[name="publisher_name"]) [class*="icon-badge"],
body:has(form input[name="legal_name"]) [class*="icon-badge"],
body:has(form input[name="company_name"]) [class*="icon-badge"] {
    background:var(--pub-soft-2) !important;
    border-color:var(--pub-border) !important;
}

/* 7) Form publisher arancione chiaro */
body:has(form select[name="contact_role"]) form,
body:has(form input[name="publisher_name"]) form,
body:has(form input[name="legal_name"]) form,
body:has(form input[name="company_name"]) form {
    padding:24px !important;
    border:1px solid var(--pub-border) !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#fff8f1 0%, #ffeedf 100%) !important;
    box-shadow:0 14px 34px rgba(180,93,31,.07) !important;
}

body:has(form select[name="contact_role"]) form hr,
body:has(form input[name="publisher_name"]) form hr,
body:has(form input[name="legal_name"]) form hr,
body:has(form input[name="company_name"]) form hr {
    border:0 !important;
    border-top:1px solid var(--pub-border) !important;
}

/* 8) Input publisher coerenti */
body:has(form select[name="contact_role"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="publisher_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="legal_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form input[name="company_name"]) form input:not([type="checkbox"]):not([type="radio"]),
body:has(form select[name="contact_role"]) form select,
body:has(form input[name="publisher_name"]) form select,
body:has(form input[name="legal_name"]) form select,
body:has(form input[name="company_name"]) form select,
body:has(form select[name="contact_role"]) form textarea,
body:has(form input[name="publisher_name"]) form textarea,
body:has(form input[name="legal_name"]) form textarea,
body:has(form input[name="company_name"]) form textarea {
    border:1px solid var(--pub-border) !important;
    background:#ffffff !important;
    color:#6c4a31 !important;
}

body:has(form select[name="contact_role"]) form input:focus,
body:has(form input[name="publisher_name"]) form input:focus,
body:has(form input[name="legal_name"]) form input:focus,
body:has(form input[name="company_name"]) form input:focus,
body:has(form select[name="contact_role"]) form select:focus,
body:has(form input[name="publisher_name"]) form select:focus,
body:has(form input[name="legal_name"]) form select:focus,
body:has(form input[name="company_name"]) form select:focus,
body:has(form select[name="contact_role"]) form textarea:focus,
body:has(form input[name="publisher_name"]) form textarea:focus,
body:has(form input[name="legal_name"]) form textarea:focus,
body:has(form input[name="company_name"]) form textarea:focus {
    border-color:var(--pub-accent) !important;
    box-shadow:0 0 0 3px rgba(244,123,32,.13) !important;
    outline:none !important;
}

/* 9) CTA publisher */
body:has(form select[name="contact_role"]) form button,
body:has(form input[name="publisher_name"]) form button,
body:has(form input[name="legal_name"]) form button,
body:has(form input[name="company_name"]) form button,
body:has(form select[name="contact_role"]) form input[type="submit"],
body:has(form input[name="publisher_name"]) form input[type="submit"],
body:has(form input[name="legal_name"]) form input[type="submit"],
body:has(form input[name="company_name"]) form input[type="submit"] {
    border-color:var(--pub-accent) !important;
}
body:has(form select[name="contact_role"]) form button[type="submit"],
body:has(form input[name="publisher_name"]) form button[type="submit"],
body:has(form input[name="legal_name"]) form button[type="submit"],
body:has(form input[name="company_name"]) form button[type="submit"],
body:has(form select[name="contact_role"]) form input[type="submit"],
body:has(form input[name="publisher_name"]) form input[type="submit"],
body:has(form input[name="legal_name"]) form input[type="submit"],
body:has(form input[name="company_name"]) form input[type="submit"] {
    background:var(--pub-accent) !important;
    color:#fff !important;
}
body:has(form select[name="contact_role"]) form a.btn,
body:has(form input[name="publisher_name"]) form a.btn,
body:has(form input[name="legal_name"]) form a.btn,
body:has(form input[name="company_name"]) form a.btn {
    color:var(--pub-accent-dark) !important;
    border-color:var(--pub-border) !important;
}

/* 10) Mobile */
@media (max-width:760px){
  body:has(form select[name="contact_role"]) .page-heading,
  body:has(form input[name="publisher_name"]) .page-heading,
  body:has(form input[name="legal_name"]) .page-heading,
  body:has(form input[name="company_name"]) .page-heading {
      padding:22px 22px 150px 22px !important;
      min-height:auto !important;
      background-position:center bottom !important;
  }
  body:has(form select[name="contact_role"]) .page-heading > *,
  body:has(form input[name="publisher_name"]) .page-heading > *,
  body:has(form input[name="legal_name"]) .page-heading > *,
  body:has(form input[name="company_name"]) .page-heading > * {
      max-width:100% !important;
  }
}
/* ============================== END L12 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L13
   AUTHOR REGISTRATION · HERO FULL WIDTH ALIGNMENT FIX
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

body:has(form input[name="birth_date"]),
body:has(form select[name="has_published"]) {
    --author-reg-max:1240px;
}

body:has(form input[name="birth_date"]) main,
body:has(form select[name="has_published"]) main {
    width:100% !important;
    max-width:var(--author-reg-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

body:has(form input[name="birth_date"]) main > .page-heading,
body:has(form select[name="has_published"]) main > .page-heading,
body:has(form input[name="birth_date"]) main > *:has(> .page-heading),
body:has(form select[name="has_published"]) main > *:has(> .page-heading),
body:has(form input[name="birth_date"]) main > *:has(.page-heading),
body:has(form select[name="has_published"]) main > *:has(.page-heading),
body:has(form input[name="birth_date"]) main div:has(> .page-heading),
body:has(form select[name="has_published"]) main div:has(> .page-heading),
body:has(form input[name="birth_date"]) main section:has(> .page-heading),
body:has(form select[name="has_published"]) main section:has(> .page-heading) {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
    flex:1 1 100% !important;
    grid-column:1 / -1 !important;
}

body:has(form input[name="birth_date"]) .page-heading,
body:has(form select[name="has_published"]) .page-heading {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
    align-self:stretch !important;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.97) 0%,
            rgba(255,255,255,.92) 40%,
            rgba(255,255,255,.54) 59%,
            rgba(255,255,255,.08) 78%
        ),
        url('/app/assets/branding/register-author-hero-l11.webp')
        center right / cover no-repeat !important;
}

@media (min-width:761px) {
    body:has(form input[name="birth_date"]) .page-heading,
    body:has(form select[name="has_published"]) .page-heading {
        min-height:168px !important;
        padding:28px 360px 28px 32px !important;
    }
}

@media (max-width:760px) {
    body:has(form input[name="birth_date"]) main,
    body:has(form select[name="has_published"]) main,
    body:has(form input[name="birth_date"]) .page-heading,
    body:has(form select[name="has_published"]) .page-heading,
    body:has(form input[name="birth_date"]) main > *:has(.page-heading),
    body:has(form select[name="has_published"]) main > *:has(.page-heading) {
        width:100% !important;
        max-width:100% !important;
    }
}

/* ============================== END L13 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L14
   PUBLISHER REGISTRATION · FINAL ORANGE THEME + EMPTY CREDENTIALS
   ========================================================================== */

/* Exact page scope */
body:has(.publisher-registration-page){
    --pub-orange:#f47b20;
    --pub-orange-dark:#c95d0d;
    --pub-orange-text:#a54b0e;
    --pub-orange-copy:#7a5236;
    --pub-border:#f2b879;
    --pub-soft:#fff7ef;
    --pub-soft-2:#ffead5;
    --pub-soft-3:#fff2e5;
}

/* Hero typography */
body:has(.publisher-registration-page) .page-heading h1{
    color:var(--pub-orange-text) !important;
}
body:has(.publisher-registration-page) .page-heading p{
    color:var(--pub-orange-copy) !important;
}

/* Intro / role card */
body:has(.publisher-registration-page) .auth-context-publisher{
    border-color:var(--pub-border) !important;
    background:linear-gradient(180deg,#fffaf5 0%,#fff1e4 100%) !important;
    box-shadow:0 8px 24px rgba(180,93,31,.055) !important;
}
body:has(.publisher-registration-page) .auth-context-publisher .eyebrow,
body:has(.publisher-registration-page) .auth-context-publisher strong{
    color:var(--pub-orange-dark) !important;
}
body:has(.publisher-registration-page) .auth-context-publisher p{
    color:var(--pub-orange-copy) !important;
}
body:has(.publisher-registration-page) .auth-context-publisher .auth-context-icon{
    background:var(--pub-soft-2) !important;
    border-color:var(--pub-border) !important;
}

/* Main form surface */
body:has(.publisher-registration-page) .publisher-registration-form{
    border-color:var(--pub-border) !important;
    background:linear-gradient(180deg,#fff9f4 0%,#ffeddd 100%) !important;
    box-shadow:0 14px 34px rgba(180,93,31,.075) !important;
}

/* All form section headings / strong text orange */
body:has(.publisher-registration-page) .publisher-registration-form .section-title,
body:has(.publisher-registration-page) .publisher-registration-form .section-title span,
body:has(.publisher-registration-page) .publisher-registration-form strong,
body:has(.publisher-registration-page) .publisher-registration-form b{
    color:var(--pub-orange-dark) !important;
}

/* Keep field labels dark but warm, not blue */
body:has(.publisher-registration-page) .publisher-registration-form label{
    color:#65432e !important;
}
body:has(.publisher-registration-page) .publisher-registration-form .muted,
body:has(.publisher-registration-page) .publisher-registration-form small{
    color:#8a674d !important;
}
body:has(.publisher-registration-page) .publisher-registration-form a{
    color:var(--pub-orange-dark) !important;
}

/* All blue image icons become orange */
body:has(.publisher-registration-page) .auth-context-publisher img,
body:has(.publisher-registration-page) .publisher-registration-form .section-title-icon img,
body:has(.publisher-registration-page) .publisher-registration-form .cta img,
body:has(.publisher-registration-page) .publisher-registration-form .checks img,
body:has(.publisher-registration-page) .publisher-registration-form [class*="nda"] img{
    filter:
        brightness(0)
        saturate(100%)
        invert(54%)
        sepia(95%)
        saturate(2485%)
        hue-rotate(349deg)
        brightness(101%)
        contrast(91%) !important;
}

/* Inline SVG icons orange too */
body:has(.publisher-registration-page) .auth-context-publisher svg,
body:has(.publisher-registration-page) .publisher-registration-form svg{
    color:var(--pub-orange) !important;
    stroke:var(--pub-orange) !important;
}
body:has(.publisher-registration-page) .auth-context-publisher svg *,
body:has(.publisher-registration-page) .publisher-registration-form svg *{
    stroke:var(--pub-orange) !important;
}

/* Section separators orange */
body:has(.publisher-registration-page) .publisher-registration-form hr,
body:has(.publisher-registration-page) .publisher-registration-form .section-title{
    border-color:var(--pub-border) !important;
}

/* Consent boxes: NO more blue */
body:has(.publisher-registration-page) .publisher-registration-form .check,
body:has(.publisher-registration-page) .publisher-registration-form .checks > div,
body:has(.publisher-registration-page) .publisher-registration-form .checks > section,
body:has(.publisher-registration-page) .publisher-registration-form .checks > article,
body:has(.publisher-registration-page) .publisher-registration-form [class*="nda"],
body:has(.publisher-registration-page) .publisher-registration-form [class*="reader"]{
    border-color:var(--pub-border) !important;
    background:var(--pub-soft-3) !important;
}

/* NDA nested boxes */
body:has(.publisher-registration-page) .publisher-registration-form [class*="nda"] *,
body:has(.publisher-registration-page) .publisher-registration-form [class*="reader"] *{
    border-color:var(--pub-border);
}
body:has(.publisher-registration-page) .publisher-registration-form [class*="nda"] strong,
body:has(.publisher-registration-page) .publisher-registration-form [class*="reader"] strong{
    color:var(--pub-orange-dark) !important;
}

/* Notice becomes orange */
body:has(.publisher-registration-page) .publisher-registration-form .notice{
    border-color:var(--pub-border) !important;
    background:#fff1e4 !important;
    color:var(--pub-orange-copy) !important;
}
body:has(.publisher-registration-page) .publisher-registration-form .notice strong{
    color:var(--pub-orange-dark) !important;
}

/* Inputs remain white, with orange borders */
body:has(.publisher-registration-page) .publisher-registration-form
input:not([type="checkbox"]):not([type="radio"]),
body:has(.publisher-registration-page) .publisher-registration-form select,
body:has(.publisher-registration-page) .publisher-registration-form textarea{
    background:#fff !important;
    border-color:var(--pub-border) !important;
    color:#543a29 !important;
}

/* Kill browser autofill blue background */
body:has(.publisher-registration-page) .publisher-registration-form
input:-webkit-autofill,
body:has(.publisher-registration-page) .publisher-registration-form
input:-webkit-autofill:hover,
body:has(.publisher-registration-page) .publisher-registration-form
input:-webkit-autofill:focus,
body:has(.publisher-registration-page) .publisher-registration-form
input:-webkit-autofill:active{
    -webkit-text-fill-color:#543a29 !important;
    -webkit-box-shadow:0 0 0 1000px #ffffff inset !important;
    box-shadow:0 0 0 1000px #ffffff inset !important;
    transition:background-color 9999s ease-out 0s !important;
    caret-color:#543a29 !important;
}

/* Orange focus */
body:has(.publisher-registration-page) .publisher-registration-form
input:focus,
body:has(.publisher-registration-page) .publisher-registration-form
select:focus,
body:has(.publisher-registration-page) .publisher-registration-form
textarea:focus{
    outline:none !important;
    border-color:var(--pub-orange) !important;
    box-shadow:0 0 0 3px rgba(244,123,32,.14) !important;
}

/* Checkbox orange */
body:has(.publisher-registration-page) .publisher-registration-form
input[type="checkbox"],
body:has(.publisher-registration-page) .publisher-registration-form
input[type="radio"]{
    accent-color:var(--pub-orange) !important;
}

/* CTA */
body:has(.publisher-registration-page) .publisher-registration-form
button[type="submit"]{
    background:var(--pub-orange) !important;
    border-color:var(--pub-orange) !important;
    color:#fff !important;
}
body:has(.publisher-registration-page) .publisher-registration-form
.cta.ghost{
    background:#fff !important;
    border-color:var(--pub-orange) !important;
    color:var(--pub-orange-dark) !important;
}

/* Error boxes keep semantic red */
body:has(.publisher-registration-page) .flash.error{
    background:#fff0f0 !important;
    border-color:#efb2b2 !important;
    color:#a72a2a !important;
}

/* ============================== END L14 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L15
   PUBLISHER REGISTRATION · NDA LINK ORANGE FIX
   Solo CSS — nessun PHP, nessun testo modificato
   ========================================================================== */

/* Link "Apri e leggi l'NDA" e qualunque link interno al reader NDA Publisher */
body:has(.publisher-registration-page)
.publisher-registration-form [class*="nda"] a,
body:has(.publisher-registration-page)
.publisher-registration-form [class*="reader"] a,
body:has(.publisher-registration-page)
.publisher-registration-form a[href*="nda"],
body:has(.publisher-registration-page)
.publisher-registration-form a[target="_blank"][rel~="noopener"] {
    color:#d96312 !important;
    border-color:#f47b20 !important;
    text-decoration-color:#d96312 !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form [class*="nda"] a:hover,
body:has(.publisher-registration-page)
.publisher-registration-form [class*="reader"] a:hover,
body:has(.publisher-registration-page)
.publisher-registration-form a[href*="nda"]:hover {
    color:#b84f09 !important;
    text-decoration-color:#b84f09 !important;
}

/* Eventuale icona/link button interno al reader */
body:has(.publisher-registration-page)
.publisher-registration-form [class*="nda"] a svg,
body:has(.publisher-registration-page)
.publisher-registration-form [class*="reader"] a svg {
    color:#f47b20 !important;
    stroke:#f47b20 !important;
}

/* ============================== END L15 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L16
   PUBLISHER REGISTRATION · NDA BUTTON + SUBMIT ICON WHITE
   ========================================================================== */

/* 1) "Apri e leggi l'NDA" diventa un vero pulsante Publisher */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:38px !important;
    padding:8px 14px !important;
    margin:8px 8px 8px 0 !important;
    border:1px solid #f47b20 !important;
    border-radius:9px !important;
    background:#f47b20 !important;
    color:#ffffff !important;
    text-decoration:none !important;
    text-decoration-color:transparent !important;
    font-weight:850 !important;
    line-height:1.1 !important;
    box-shadow:0 6px 14px rgba(244,123,32,.18) !important;
    transition:transform .15s ease, filter .15s ease !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader a:hover {
    background:#de6814 !important;
    border-color:#de6814 !important;
    color:#ffffff !important;
    text-decoration:none !important;
    transform:translateY(-1px) !important;
    filter:none !important;
}

/* Eventuali icone contenute nel pulsante NDA devono essere bianche */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader a img {
    filter:brightness(0) invert(1) !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader a svg,
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader a svg * {
    color:#ffffff !important;
    stroke:#ffffff !important;
    fill:none !important;
}

/* Lo stato "Lettura richiesta" resta arancione scuro */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader {
    color:#b45309 !important;
}

/* 2) Icona del tasto "Invia richiesta editore" rigorosamente bianca */
body:has(.publisher-registration-page)
.publisher-registration-form button[type="submit"] img,
body:has(.publisher-registration-page)
.publisher-registration-form .form-actions button.cta img {
    filter:brightness(0) invert(1) !important;
    opacity:1 !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form button[type="submit"] svg,
body:has(.publisher-registration-page)
.publisher-registration-form button[type="submit"] svg * {
    color:#ffffff !important;
    stroke:#ffffff !important;
}

/* ============================== END L16 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L17
   PUBLISHER NDA BUTTON HARD FIX
   ========================================================================== */

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:38px !important;
    padding:8px 14px !important;
    margin:8px 8px 8px 0 !important;
    border:1px solid #f47b20 !important;
    border-radius:9px !important;
    background:#f47b20 !important;
    background-color:#f47b20 !important;
    color:#fff !important;
    text-decoration:none !important;
    text-decoration-color:transparent !important;
    font-weight:850 !important;
    box-shadow:0 6px 14px rgba(244,123,32,.18) !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button:hover {
    background:#d96312 !important;
    background-color:#d96312 !important;
    border-color:#d96312 !important;
    color:#fff !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button * {
    color:#fff !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button img {
    filter:brightness(0) invert(1) !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button svg,
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button svg * {
    stroke:#fff !important;
    color:#fff !important;
}

/* Submit icon stays white */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-submit-cta img {
    filter:brightness(0) invert(1) !important;
    opacity:1 !important;
}

/* ============================== END L17 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L18
   PUBLISHER REGISTRATION · HERO BACKGROUND RESTORE
   Solo CSS + asset — nessun PHP, nessun testo modificato
   ========================================================================== */

/*
 * Ripristino deterministico della foto Hero Publisher.
 * Il selettore si appoggia al wrapper stabile introdotto dalla L14/L17
 * e viene caricato per ultimo, quindi prevale sugli override precedenti.
 */
body:has(.publisher-registration-page) .page-heading {
    position:relative !important;
    overflow:hidden !important;
    min-height:168px !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    padding:28px 360px 28px 32px !important;
    border:1px solid #f2b879 !important;
    border-radius:24px !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,250,245,.98) 0%,
            rgba(255,250,245,.94) 38%,
            rgba(255,250,245,.72) 52%,
            rgba(255,250,245,.28) 67%,
            rgba(255,250,245,.05) 79%
        ),
        url('/app/assets/branding/register-publisher-hero-l18.webp?v=1') !important;

    background-position:center center, center right !important;
    background-size:cover, cover !important;
    background-repeat:no-repeat, no-repeat !important;
    background-color:#fff8f1 !important;
    box-shadow:0 16px 42px rgba(180,93,31,.07) !important;
}

/* Garantisce che il testo resti sopra la fotografia */
body:has(.publisher-registration-page) .page-heading > * {
    position:relative !important;
    z-index:2 !important;
    max-width:560px !important;
}

/* Colori Publisher già approvati */
body:has(.publisher-registration-page) .page-heading h1 {
    color:#a54b0e !important;
}
body:has(.publisher-registration-page) .page-heading p {
    color:#7a5236 !important;
}

/* Nessuna vecchia icona sintetica nella Hero */
body:has(.publisher-registration-page) .page-heading::after,
body:has(.publisher-registration-page) .page-heading::before {
    content:none !important;
    display:none !important;
}

/* Mobile */
@media (max-width:760px) {
    body:has(.publisher-registration-page) .page-heading {
        min-height:auto !important;
        padding:22px 22px 150px 22px !important;
        background-position:center bottom, center bottom !important;
        background-size:cover, cover !important;
    }
    body:has(.publisher-registration-page) .page-heading > * {
        max-width:100% !important;
    }
}

/* ============================== END L18 ================================== */



/* ==========================================================================
   NEDÌTESO 3e.1i-L19
   PUBLISHER REGISTRATION · EMERGENCY STABILITY FIX
   ========================================================================== */

/* Bottone NDA */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:38px !important;
    padding:8px 14px !important;
    margin:8px 8px 8px 0 !important;
    border:1px solid #f47b20 !important;
    border-radius:9px !important;
    background:#f47b20 !important;
    background-color:#f47b20 !important;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:850 !important;
    box-shadow:0 6px 14px rgba(244,123,32,.18) !important;
}

body:has(.publisher-registration-page)
.publisher-registration-form .publisher-nda-reader
.publisher-nda-open-button:hover {
    background:#d96312 !important;
    border-color:#d96312 !important;
    color:#fff !important;
}

/* Icona submit sempre bianca */
body:has(.publisher-registration-page)
.publisher-registration-form .publisher-submit-cta img {
    filter:brightness(0) invert(1) !important;
    opacity:1 !important;
}

/* ============================== END L19 ================================== */

/* NEDITESO_3E1J_P03_R5_CONTROL_PANEL_VISUAL_RESTORE */

/*
 * Questo blocco è volutamente scoped alla sola shell Super Admin.
 * La classe body viene applicata dallo script R5 solo quando è presente
 * .admin-control-sidebar, quindi Publisher/Author/Login non vengono toccati.
 */
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 {
    background-color: #061a3a !important;
    background-image:
        radial-gradient(circle at 88% 20%, rgba(56,151,255,.24), transparent 38%),
        linear-gradient(135deg, #061a3a 0%, #0a3470 56%, #0d4c9b 100%) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 16px 38px rgba(5,28,62,.18) !important;
    color: #ffffff !important;
}

body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 h1,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 h2,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .page-title,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .crm-page-title {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.08) !important;
}

body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 p,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .subtitle,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .page-subtitle,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .crm-page-subtitle {
    color: rgba(255,255,255,.80) !important;
}

body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .eyebrow,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .kicker,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 [class*="eyebrow"] {
    color: #71bcff !important;
}

/* Mantiene leggibili i controlli chiari eventualmente presenti nella testata. */
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 a.cta,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 button,
body.nediteso-admin-control-r5 .nediteso-admin-hero-r5 .btn {
    text-shadow: none !important;
}

/* Voce menu Pricing: stesso linguaggio visivo del Control Panel. */
.admin-control-sidebar a[data-nediteso-ai-pricing-menu="1"] {
    position: relative;
}

.admin-control-sidebar a[data-nediteso-ai-pricing-menu="1"]::after {
    content: "AI";
    margin-left: auto;
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(83,174,255,.16);
    color: #77c2ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.35;
    text-align: center;
}

.admin-control-sidebar a[data-nediteso-ai-pricing-menu="1"].active::after {
    background: rgba(255,255,255,.18);
    color: #ffffff;
}

/* NEDITESO_3E1J_P03_R6_CONTROL_PANEL_BLUE_FRAME */

/*
 * R6 completa il ripristino cromatico del Control Panel.
 * Lo script applica le classi SOLO quando è presente la sidebar Super Admin.
 * Non modifica Portale Autore, CRM Publisher, login o aree pubbliche.
 */
body.nediteso-admin-control-r6 {
    --nediteso-r6-frame-start: #0a2f66;
    --nediteso-r6-frame-end: #0d4f9f;
    --nediteso-r6-border: #86bdf3;
    --nediteso-r6-border-strong: #5ca3ea;
    --nediteso-r6-surface: #ffffff;
}

/* Il contenitore neutro/grigio che circonda i box diventa cornice blu NEDÌTESO. */
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 {
    background-color: var(--nediteso-r6-frame-start) !important;
    background-image:
        radial-gradient(circle at 92% 8%, rgba(75, 162, 255, .20), transparent 34%),
        linear-gradient(145deg, var(--nediteso-r6-frame-start) 0%, #0b3c7a 52%, var(--nediteso-r6-frame-end) 100%) !important;
    border-color: rgba(117, 185, 255, .48) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .035),
        0 18px 42px rgba(5, 28, 62, .18) !important;
}

/* I box operativi rimangono chiari, ma con contorno blu coerente. */
body.nediteso-admin-control-r6 .nediteso-admin-surface-r6 {
    background-color: var(--nediteso-r6-surface) !important;
    border-color: var(--nediteso-r6-border) !important;
    box-shadow:
        0 8px 24px rgba(5, 44, 91, .075),
        0 0 0 1px rgba(92, 163, 234, .06) !important;
}

body.nediteso-admin-control-r6 .nediteso-admin-surface-r6:hover {
    border-color: var(--nediteso-r6-border-strong) !important;
}

/* Controlli grandi appoggiati direttamente sulla cornice: bordo blu senza cambiare il fondo. */
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 input,
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 select,
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 textarea {
    border-color: #a9cef3;
}

/* Non alterare i componenti di stato e i pulsanti già colorati. */
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 .badge,
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 [class*="status"],
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 .btn,
body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 button {
    box-shadow: none;
}

@media (max-width: 820px) {
    body.nediteso-admin-control-r6 .nediteso-admin-blue-frame-r6 {
        box-shadow: 0 10px 28px rgba(5, 28, 62, .14) !important;
    }
}

/* NEDITESO_3E1J_P03_R7_FULL_BLUE_WORKSPACE */

/*
 * R7 porta l'intero workspace CRM sul blu NEDÌTESO sia nel Control Panel
 * Super Admin sia nel CRM Publisher. Restano bianchi esclusivamente i box
 * operativi/contenuto. Portale Autore, login e pagine pubbliche sono esclusi.
 */
body.nediteso-crm-blue-r7 {
    --nediteso-r7-blue-dark: #061f46;
    --nediteso-r7-blue: #0a3f80;
    --nediteso-r7-blue-light: #1264b7;
    --nediteso-r7-border: #85bdf3;
    --nediteso-r7-border-strong: #5ca3ea;
    --nediteso-r7-white: #ffffff;
    background-color: var(--nediteso-r7-blue-dark) !important;
}

/* Shell e area di lavoro: nessun grigio deve affiorare attorno ai box. */
body.nediteso-crm-blue-r7 .nediteso-workspace-r7,
body.nediteso-crm-blue-r7 .nediteso-blue-frame-r7 {
    background-color: var(--nediteso-r7-blue) !important;
    background-image:
        radial-gradient(circle at 94% 4%, rgba(70, 161, 255, .22), transparent 32%),
        linear-gradient(145deg, var(--nediteso-r7-blue-dark) 0%, #0a3975 48%, var(--nediteso-r7-blue-light) 100%) !important;
    border-color: rgba(126, 194, 255, .46) !important;
}

body.nediteso-crm-blue-r7 .nediteso-workspace-r7 {
    min-height: 100vh;
}

/* Ripulisce anche gli involucri della shell che possono avere un fondo grigio. */
body.nediteso-crm-blue-r7 .crm-shell,
body.nediteso-crm-blue-r7 .admin-control-shell,
body.nediteso-crm-blue-r7 .crm-layout,
body.nediteso-crm-blue-r7 .admin-control-layout,
body.nediteso-crm-blue-r7 .app-shell,
body.nediteso-crm-blue-r7 .app-layout {
    background-color: var(--nediteso-r7-blue-dark) !important;
}

/* Hero/testata pagina blu in entrambi gli ambienti: titolo sempre leggibile. */
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 {
    background-color: var(--nediteso-r7-blue-dark) !important;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(76, 167, 255, .28), transparent 38%),
        linear-gradient(135deg, #061a3a 0%, #0a3470 55%, #1264b7 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 16px 38px rgba(5,28,62,.18) !important;
}

body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 h1,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 h2,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .page-title,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .crm-page-title {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.10) !important;
}

body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 p,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .subtitle,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .page-subtitle,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .crm-page-subtitle {
    color: rgba(255,255,255,.84) !important;
}

body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .eyebrow,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 .kicker,
body.nediteso-crm-blue-r7 .nediteso-blue-hero-r7 [class*="eyebrow"] {
    color: #79c5ff !important;
}

/* Uniche superfici chiare: box che contengono dati, testo e controlli. */
body.nediteso-crm-blue-r7 .nediteso-content-box-r7 {
    background-color: var(--nediteso-r7-white) !important;
    background-image: none !important;
    border-color: var(--nediteso-r7-border) !important;
    box-shadow:
        0 8px 24px rgba(4, 35, 76, .10),
        0 0 0 1px rgba(92, 163, 234, .055) !important;
}

body.nediteso-crm-blue-r7 .nediteso-content-box-r7:hover {
    border-color: var(--nediteso-r7-border-strong) !important;
}

/* Controlli all'interno dei box rimangono bianchi e leggibili. */
body.nediteso-crm-blue-r7 .nediteso-content-box-r7 input,
body.nediteso-crm-blue-r7 .nediteso-content-box-r7 select,
body.nediteso-crm-blue-r7 .nediteso-content-box-r7 textarea {
    background-color: #ffffff !important;
    border-color: #a9cef3 !important;
}

/* Evita che i vecchi frame R6 mantengano un tono differente dal nuovo workspace. */
body.nediteso-crm-blue-r7 .nediteso-admin-blue-frame-r6 {
    background-color: var(--nediteso-r7-blue) !important;
    background-image:
        radial-gradient(circle at 94% 4%, rgba(70, 161, 255, .22), transparent 32%),
        linear-gradient(145deg, var(--nediteso-r7-blue-dark) 0%, #0a3975 48%, var(--nediteso-r7-blue-light) 100%) !important;
}

/* Badge, stati e pulsanti conservano i propri colori semantici. */
body.nediteso-crm-blue-r7 .badge,
body.nediteso-crm-blue-r7 [class*="status"],
body.nediteso-crm-blue-r7 .btn,
body.nediteso-crm-blue-r7 button {
    text-shadow: none;
}

@media (max-width: 820px) {
    body.nediteso-crm-blue-r7 .nediteso-content-box-r7 {
        box-shadow: 0 6px 18px rgba(4, 35, 76, .09) !important;
    }
}

/* NEDITESO_3E1J_P03_R8_INTERNAL_FORM_THEME_ISOLATION */

/*
 * R8 separa definitivamente i temi dei form per ambiente.
 * Regola di progetto:
 * - registrazione Publisher pubblica: mantiene il tema arancione originario;
 * - registrazione Autore pubblica: mantiene il tema celeste originario;
 * - Control Panel / CRM Publisher: form interni bianchi con bordi blu NEDÌTESO.
 *
 * Le regole qui sotto sono attive SOLO quando R7 ha riconosciuto una shell CRM
 * interna (body.nediteso-crm-blue-r7). Nessuna pagina pubblica viene toccata.
 */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 {
    --nediteso-r8-form-bg: #ffffff;
    --nediteso-r8-form-border: #8dbff0;
    --nediteso-r8-form-border-strong: #3f91e4;
    --nediteso-r8-form-text: #0d2d58;
    --nediteso-r8-form-muted: #607895;
    --nediteso-r8-form-primary: #1477e6;
    --nediteso-r8-form-primary-hover: #0d65c6;
    --nediteso-r8-form-focus: rgba(20, 119, 230, .16);
}

/* Solo i form riconosciuti come interni. Non viene alterato il layout pagina. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 {
    color: var(--nediteso-r8-form-text) !important;
}

/* Neutralizza esclusivamente superfici beige/arancio ereditate dalla registrazione. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 {
    background-color: var(--nediteso-r8-form-bg) !important;
    background-image: none !important;
    border-color: var(--nediteso-r8-form-border) !important;
    color: var(--nediteso-r8-form-text) !important;
    box-shadow: 0 6px 20px rgba(5, 39, 82, .07) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 h1,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 h2,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 h3,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 h4,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 legend,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 label {
    color: var(--nediteso-r8-form-text) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 p,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 small,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 .help,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 .hint,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 [class*="help"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-surface-r8 [class*="hint"] {
    color: var(--nediteso-r8-form-muted) !important;
}

/* Tutti i controlli dei form interni usano la grammatica blu CRM. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 select,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 textarea,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-control-r8 {
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: var(--nediteso-r8-form-border) !important;
    color: var(--nediteso-r8-form-text) !important;
    caret-color: var(--nediteso-r8-form-primary) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 select:focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 textarea:focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-control-r8:focus {
    border-color: var(--nediteso-r8-form-border-strong) !important;
    box-shadow: 0 0 0 3px var(--nediteso-r8-form-focus) !important;
    outline: none !important;
}

/* Pulsante primario ereditato dal form Publisher pubblico: nell'ambiente interno torna blu. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-primary-r8 {
    background: var(--nediteso-r8-form-primary) !important;
    border-color: var(--nediteso-r8-form-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-primary-r8:hover,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .nediteso-form-primary-r8:focus-visible {
    background: var(--nediteso-r8-form-primary-hover) !important;
    border-color: var(--nediteso-r8-form-primary-hover) !important;
    color: #ffffff !important;
}

/* Checkbox/radio: accent blu senza modificare dimensioni o struttura. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 input[type="checkbox"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 form.nediteso-internal-form-r8 input[type="radio"] {
    accent-color: var(--nediteso-r8-form-primary) !important;
}

/* I colori semantici (success/error/warning/status) non vengono neutralizzati. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .alert,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 [class*="alert"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 [class*="warning"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 [class*="danger"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 [class*="success"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 .badge,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r8 [class*="status"] {
    box-shadow: initial;
}

/* NEDITESO_3E1J_P03_R9_INTERNAL_FORM_THEME_HARD_ISOLATION */

/*
 * R9 completa l'isolamento cromatico dei form interni.
 * Gate obbligatorio: solo shell CRM interne già riconosciute da R7/R8.
 * Le pagine pubbliche di registrazione NON vengono toccate.
 */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 {
    --nediteso-r9-bg: #ffffff;
    --nediteso-r9-border: #8dbff0;
    --nediteso-r9-border-strong: #3f91e4;
    --nediteso-r9-text: #0d2d58;
    --nediteso-r9-muted: #607895;
    --nediteso-r9-primary: #1477e6;
    --nediteso-r9-primary-hover: #0d65c6;
    --nediteso-r9-focus: rgba(20, 119, 230, .16);
}

/* Superfici form interne individuate dal JS: nessun beige/arancio residuo. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 {
    background: var(--nediteso-r9-bg) !important;
    background-color: var(--nediteso-r9-bg) !important;
    background-image: none !important;
    border-color: var(--nediteso-r9-border) !important;
    color: var(--nediteso-r9-text) !important;
    box-shadow: 0 6px 20px rgba(5, 39, 82, .07) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 {
    color: var(--nediteso-r9-text) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 h1,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 h2,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 h3,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 h4,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 legend,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 label {
    color: var(--nediteso-r9-text) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 p,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 small,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 .help,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 .hint,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 [class*="help"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-surface-r9 [class*="hint"] {
    color: var(--nediteso-r9-muted) !important;
}

/* Campi interni: bianco + blu, anche se la classe pubblica Publisher resta nel markup. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-control-r9,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 select,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 textarea {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: var(--nediteso-r9-border) !important;
    color: var(--nediteso-r9-text) !important;
    caret-color: var(--nediteso-r9-primary) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-control-r9:focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 select:focus,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 form.nediteso-internal-form-r9 textarea:focus {
    border-color: var(--nediteso-r9-border-strong) !important;
    box-shadow: 0 0 0 3px var(--nediteso-r9-focus) !important;
    outline: none !important;
}

/* CTA primarie interne: mai arancioni. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-primary-r9 {
    background: var(--nediteso-r9-primary) !important;
    background-color: var(--nediteso-r9-primary) !important;
    border-color: var(--nediteso-r9-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-primary-r9:hover,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .nediteso-form-primary-r9:focus-visible {
    background: var(--nediteso-r9-primary-hover) !important;
    background-color: var(--nediteso-r9-primary-hover) !important;
    border-color: var(--nediteso-r9-primary-hover) !important;
    color: #ffffff !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 input[type="checkbox"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 input[type="radio"] {
    accent-color: var(--nediteso-r9-primary) !important;
}

/* Colori semantici esclusi dalla neutralizzazione. */
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .alert,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 [class*="alert"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 [class*="warning"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 [class*="danger"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 [class*="success"],
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 .badge,
body.nediteso-crm-blue-r7.nediteso-internal-forms-r9 [class*="status"] {
    box-shadow: initial;
}

/* NEDITESO_3E1J_P03_R10_INTERNAL_THEME_BOUNDARY_RESET */

/*
 * R10: reset cromatico definitivo delle sole shell CRM interne.
 * Gate obbligatorio: body.nediteso-crm-blue-r7 + shell ADMIN/PUBLISHER rilevata da R7.
 * Nessuna regola si applica alle pagine pubbliche di registrazione.
 */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 {
    --nediteso-r10-blue: #1477e6;
    --nediteso-r10-blue-dark: #0d2d58;
    --nediteso-r10-blue-soft: #8dbff0;
    --nediteso-r10-blue-sidebar: #9bd1ff;
    --nediteso-r10-muted: #607895;
    --nediteso-r10-white: #ffffff;
    --nediteso-r10-focus: rgba(20,119,230,.16);
}

/* Superfici interne che appartengono a form/pannelli: sempre bianche. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-form-surface,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-warm-surface {
    background: var(--nediteso-r10-white) !important;
    background-color: var(--nediteso-r10-white) !important;
    background-image: none !important;
    color: var(--nediteso-r10-blue-dark) !important;
    box-shadow: 0 6px 20px rgba(5,39,82,.07) !important;
}

/* Bordo interno coerente con l'ambiente CRM. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-blue-border {
    border-color: var(--nediteso-r10-blue-soft) !important;
    outline-color: var(--nediteso-r10-blue-soft) !important;
}

/* Testo arancione residuo nel contenuto -> blu NEDÌTESO. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-orange-text {
    color: var(--nediteso-r10-blue) !important;
}

/* Nella sidebar scura lo stesso residuo diventa azzurro chiaro leggibile. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 [data-nediteso-r10-zone="sidebar"] .nediteso-r10-orange-text {
    color: var(--nediteso-r10-blue-sidebar) !important;
}

/* Pseudo-elementi eventualmente colorati dal vecchio tema Publisher. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-before-orange::before,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-after-orange::after {
    color: var(--nediteso-r10-blue) !important;
    border-color: var(--nediteso-r10-blue-soft) !important;
}
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 [data-nediteso-r10-zone="sidebar"] .nediteso-r10-before-orange::before,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 [data-nediteso-r10-zone="sidebar"] .nediteso-r10-after-orange::after {
    color: var(--nediteso-r10-blue-sidebar) !important;
    border-color: rgba(155,209,255,.48) !important;
}

/* SVG/icone inline ereditate dal tema arancione. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-orange-svg {
    fill: var(--nediteso-r10-blue) !important;
    stroke: var(--nediteso-r10-blue) !important;
    color: var(--nediteso-r10-blue) !important;
}
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 [data-nediteso-r10-zone="sidebar"] .nediteso-r10-orange-svg {
    fill: var(--nediteso-r10-blue-sidebar) !important;
    stroke: var(--nediteso-r10-blue-sidebar) !important;
    color: var(--nediteso-r10-blue-sidebar) !important;
}

/* Controlli dei form interni: nessuna eredità cromatica dalla registrazione. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form select,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form textarea {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: var(--nediteso-r10-blue-soft) !important;
    color: var(--nediteso-r10-blue-dark) !important;
    caret-color: var(--nediteso-r10-blue) !important;
}
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form select:focus,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 form.nediteso-r10-internal-form textarea:focus {
    border-color: var(--nediteso-r10-blue) !important;
    box-shadow: 0 0 0 3px var(--nediteso-r10-focus) !important;
    outline: none !important;
}

/* CTA arancioni non semantiche -> blu. */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-primary-blue {
    background: var(--nediteso-r10-blue) !important;
    background-color: var(--nediteso-r10-blue) !important;
    border-color: var(--nediteso-r10-blue) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-primary-blue:hover,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 .nediteso-r10-primary-blue:focus-visible {
    background: #0d65c6 !important;
    background-color: #0d65c6 !important;
    border-color: #0d65c6 !important;
    color: #ffffff !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 input[type="checkbox"],
body.nediteso-crm-blue-r7.nediteso-internal-theme-r10 input[type="radio"] {
    accent-color: var(--nediteso-r10-blue) !important;
}

/* NEDITESO_3E1J_P03_R11_INTERNAL_THEME_RUNTIME_HARDRESET */
/*
 * R11 - Correzione definitiva del trascinamento cromatico Publisher nei soli
 * ambienti interni ADMIN/PUBLISHER. Il JS R11 applica override inline !important
 * solo a colori caldi/arancioni realmente visibili dopo il caricamento di tutti
 * gli stili della pagina. Le pagine pubbliche non ricevono la classe R11.
 */
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 {
    --nediteso-r11-blue: #1477e6;
    --nediteso-r11-blue-dark: #0d2d58;
    --nediteso-r11-blue-soft: #8dbff0;
    --nediteso-r11-sidebar-text: #9bd1ff;
    --nediteso-r11-white: #ffffff;
    --nediteso-r11-focus: rgba(20,119,230,.16);
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 .nediteso-r11-form-surface {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: var(--nediteso-r11-blue-soft) !important;
    color: var(--nediteso-r11-blue-dark) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 .nediteso-r11-orange-text {
    color: var(--nediteso-r11-blue) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 [data-nediteso-r11-zone="sidebar"] .nediteso-r11-orange-text {
    color: var(--nediteso-r11-sidebar-text) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form select,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form textarea {
    caret-color: var(--nediteso-r11-blue) !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form select:focus,
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 form textarea:focus {
    border-color: var(--nediteso-r11-blue) !important;
    box-shadow: 0 0 0 3px var(--nediteso-r11-focus) !important;
    outline: none !important;
}

body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 input[type="checkbox"],
body.nediteso-crm-blue-r7.nediteso-internal-theme-r11 input[type="radio"] {
    accent-color: var(--nediteso-r11-blue) !important;
}


/* ========================================================================
   NEDITESO_3E1N_P08_R5_HF14_UNIFIED_CRM_CONTROL_CENTER_DESIGN_SYSTEM
   Control Center — internal action-button governance.
   Existing Control Center layout remains unchanged; only internal actionable
   buttons are normalized to NEDÌTESO blue with white text.
   ======================================================================== */
:root{
    --ned-ui-primary:#0878f7;
    --ned-ui-primary-hover:#0668d6;
    --ned-ui-primary-disabled:#7fb6f1;
}

body.admin-control-body .admin-control-workspace button,
body.admin-control-body .admin-control-workspace input[type="submit"],
body.admin-control-body .admin-control-workspace input[type="button"],
body.admin-control-body .admin-control-workspace a.cta,
body.admin-control-body .admin-control-workspace .cta,
body.admin-control-body .admin-control-workspace a.btn,
body.admin-control-body .admin-control-workspace .btn,
body.admin-control-body .admin-control-workspace a.button,
body.admin-control-body .admin-control-workspace .button,
body.admin-control-body .admin-control-workspace .ws-btn,
body.admin-control-body .admin-control-workspace .fcc-btn,
body.admin-control-body .admin-control-workspace .pay-btn,
body.admin-control-body .admin-control-workspace .receipt-btn,
body.admin-control-body .admin-control-workspace .pay-now-btn{
    background:var(--ned-ui-primary) !important;
    background-color:var(--ned-ui-primary) !important;
    background-image:none !important;
    color:#fff !important;
    border-color:var(--ned-ui-primary) !important;
    box-shadow:none !important;
    text-shadow:none !important;
    text-decoration:none !important;
}
body.admin-control-body .admin-control-workspace button:hover,
body.admin-control-body .admin-control-workspace input[type="submit"]:hover,
body.admin-control-body .admin-control-workspace input[type="button"]:hover,
body.admin-control-body .admin-control-workspace .cta:hover,
body.admin-control-body .admin-control-workspace .btn:hover,
body.admin-control-body .admin-control-workspace .button:hover,
body.admin-control-body .admin-control-workspace .ws-btn:hover,
body.admin-control-body .admin-control-workspace .fcc-btn:hover,
body.admin-control-body .admin-control-workspace .pay-btn:hover,
body.admin-control-body .admin-control-workspace .receipt-btn:hover,
body.admin-control-body .admin-control-workspace .pay-now-btn:hover{
    background:var(--ned-ui-primary-hover) !important;
    background-color:var(--ned-ui-primary-hover) !important;
    border-color:var(--ned-ui-primary-hover) !important;
    color:#fff !important;
}
body.admin-control-body .admin-control-workspace button:disabled,
body.admin-control-body .admin-control-workspace input[type="submit"]:disabled,
body.admin-control-body .admin-control-workspace input[type="button"]:disabled,
body.admin-control-body .admin-control-workspace .cta:disabled,
body.admin-control-body .admin-control-workspace .btn:disabled,
body.admin-control-body .admin-control-workspace .button:disabled,
body.admin-control-body .admin-control-workspace .ws-btn:disabled,
body.admin-control-body .admin-control-workspace .fcc-btn:disabled,
body.admin-control-body .admin-control-workspace .pay-btn:disabled{
    background:var(--ned-ui-primary-disabled) !important;
    background-color:var(--ned-ui-primary-disabled) !important;
    border-color:var(--ned-ui-primary-disabled) !important;
    color:#fff !important;
    opacity:1 !important;
    cursor:not-allowed !important;
}

/* ========================================================================
   NEDITESO_3E1N_P08_R5_HF15_GLOBAL_VISUAL_GOVERNANCE_ALL_PORTALS
   Global visual governance — Control Center + Author external portal +
   shared access/verification surfaces.

   Contract:
   - true action buttons: NEDÌTESO blue + white text;
   - clickable cards/teasers: white card + blue border, never filled like buttons;
   - Author registration keeps the approved light-blue form identity;
   - Publisher external registration keeps the approved light-orange identity;
   - shared login / OTP / invite pages remain neutral white + blue actions;
   - semantic success/warning/error badges retain semantic colors.
   ======================================================================== */

:root{
    --ned-hf15-blue:#0878f7;
    --ned-hf15-blue-hover:#0668d6;
    --ned-hf15-blue-soft:#eaf4ff;
    --ned-hf15-border:#87bfff;
    --ned-hf15-border-soft:#c9def2;
    --ned-hf15-text:#102e52;
    --ned-hf15-muted:#607792;
    --ned-hf15-workspace:#edf1f5;
    --ned-hf15-white:#fff;
    --ned-hf15-author-form:#eef8ff;
    --ned-hf15-publisher-orange:#f47b20;
    --ned-hf15-publisher-orange-hover:#d96312;
    --ned-hf15-publisher-form:#fff3e8;
}

/* ------------------------------------------------------------------------
   SHARED APP / AUTHOR / ACCESS: actions are real blue buttons.
   Publisher external registration is explicitly excluded and restored below.
   ------------------------------------------------------------------------ */
body:not(:has(.publisher-registration-page)) main.app-shell .cta,
body:not(:has(.publisher-registration-page)) main.app-shell a.cta,
body:not(:has(.publisher-registration-page)) main.app-shell button:not(.fcc-action),
body:not(:has(.publisher-registration-page)) main.app-shell input[type="submit"],
body:not(:has(.publisher-registration-page)) main.app-shell input[type="button"],
body:not(:has(.publisher-registration-page)) main.app-shell .btn,
body:not(:has(.publisher-registration-page)) main.app-shell .button,
body:not(:has(.publisher-registration-page)) .author-home .ah-card-button,
body:not(:has(.publisher-registration-page)) .docs-shell .docs-download,
body:not(:has(.publisher-registration-page)) .docs-shell .docs-actions a,
body:not(:has(.publisher-registration-page)) .ap-shell .ap-actions a{
    background:var(--ned-hf15-blue) !important;
    background-color:var(--ned-hf15-blue) !important;
    background-image:none !important;
    color:#fff !important;
    border-color:var(--ned-hf15-blue) !important;
    box-shadow:none !important;
    text-shadow:none !important;
    text-decoration:none !important;
}
body:not(:has(.publisher-registration-page)) main.app-shell .cta:hover,
body:not(:has(.publisher-registration-page)) main.app-shell button:not(.fcc-action):hover,
body:not(:has(.publisher-registration-page)) main.app-shell input[type="submit"]:hover,
body:not(:has(.publisher-registration-page)) main.app-shell input[type="button"]:hover,
body:not(:has(.publisher-registration-page)) .author-home .ah-card-button:hover,
body:not(:has(.publisher-registration-page)) .docs-shell .docs-download:hover,
body:not(:has(.publisher-registration-page)) .docs-shell .docs-actions a:hover,
body:not(:has(.publisher-registration-page)) .ap-shell .ap-actions a:hover{
    background:var(--ned-hf15-blue-hover) !important;
    background-color:var(--ned-hf15-blue-hover) !important;
    border-color:var(--ned-hf15-blue-hover) !important;
    color:#fff !important;
}

/* Author-facing form identity: keep the permanent light-blue rule. */
body:has(form input[name="birth_date"]):not(:has(.publisher-registration-page)) form,
body:has(form select[name="has_published"]):not(:has(.publisher-registration-page)) form,
body:has(.ap-shell) .ap-form-panel form,
body:has(.profile-form) .profile-form,
body:has(.author-profile) .author-profile form{
    background:var(--ned-hf15-author-form) !important;
    background-color:var(--ned-hf15-author-form) !important;
    background-image:none !important;
    border-color:#b9d9f8 !important;
    box-shadow:none !important;
}

/* Shared access / OTP / invite cards: neutral white surfaces. */
body:not(:has(.publisher-registration-page)) main.app-shell .panel,
body:not(:has(.publisher-registration-page)) main.app-shell .verify-box{
    background:#fff;
    border-color:var(--ned-hf15-border-soft);
}

/* ------------------------------------------------------------------------
   CLICKABLE CARDS ARE NOT BUTTONS.
   Fixes Financial Control Center "Flussi finanziari" teaser and establishes
   the same rule for future clickable card patterns.
   ------------------------------------------------------------------------ */
body.admin-control-body .admin-control-workspace button.fcc-action,
body.admin-control-body .admin-control-workspace a.fcc-action,
main.app-shell button.fcc-action,
main.app-shell a.fcc-action{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    min-height:135px !important;
    padding:17px !important;
    text-align:left !important;
    font:inherit !important;
    background:#fff !important;
    background-color:#fff !important;
    background-image:none !important;
    color:inherit !important;
    border:1px solid #dbe6f0 !important;
    border-radius:17px !important;
    box-shadow:0 8px 22px rgba(20,66,115,.04) !important;
    text-shadow:none !important;
}
body.admin-control-body .admin-control-workspace button.fcc-action:hover,
body.admin-control-body .admin-control-workspace a.fcc-action:hover,
main.app-shell button.fcc-action:hover,
main.app-shell a.fcc-action:hover{
    background:#fff !important;
    background-color:#fff !important;
    border-color:var(--ned-hf15-border) !important;
    color:inherit !important;
    transform:translateY(-1px);
}
body.admin-control-body .admin-control-workspace .fcc-action strong,
main.app-shell .fcc-action strong{color:#0b2d57 !important;}
body.admin-control-body .admin-control-workspace .fcc-action span,
main.app-shell .fcc-action span{color:#677b90 !important;}
body.admin-control-body .admin-control-workspace .fcc-action em,
main.app-shell .fcc-action em{color:#126edc !important;}

/* Ordinary dashboard / choice cards stay cards, not filled action buttons. */
main.app-shell a.stat-card,
main.app-shell a.choice-card,
.author-home a.ah-action-card,
.docs-shell a.docs-resource{
    background:#fff !important;
    color:inherit !important;
    border-color:var(--ned-hf15-border-soft) !important;
    box-shadow:none !important;
}

/* ------------------------------------------------------------------------
   AUTHOR BOOK STUDIO WRITER: align the chapter navigation chips.
   First chapter chip = active blue tab; secondary metric chips remain pale.
   ------------------------------------------------------------------------ */
body:has(.writer-shell) .actions{
    align-items:center !important;
}
body:has(.writer-shell) .actions > .writer-chip{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:42px !important;
    padding:0 14px !important;
    border:1px solid #d2e4f7 !important;
    border-radius:12px !important;
    background:#eef5ff !important;
    color:#175899 !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:850 !important;
}
body:has(.writer-shell) .actions > .writer-chip:first-of-type{
    background:var(--ned-hf15-blue) !important;
    color:#fff !important;
    border-color:var(--ned-hf15-blue) !important;
}

/* ------------------------------------------------------------------------
   EXTERNAL PUBLISHER REGISTRATION: explicit protected orange exception.
   Nothing from global blue button governance may recolor this page.
   ------------------------------------------------------------------------ */
body:has(.publisher-registration-page) .publisher-registration-form{
    background:var(--ned-hf15-publisher-form) !important;
    border-color:#f3c495 !important;
}
body:has(.publisher-registration-page) .publisher-registration-form button[type="submit"],
body:has(.publisher-registration-page) .publisher-registration-form input[type="submit"],
body:has(.publisher-registration-page) .publisher-registration-form .cta{
    background:var(--ned-hf15-publisher-orange) !important;
    background-color:var(--ned-hf15-publisher-orange) !important;
    border-color:var(--ned-hf15-publisher-orange) !important;
    color:#fff !important;
}
body:has(.publisher-registration-page) .publisher-registration-form button[type="submit"]:hover,
body:has(.publisher-registration-page) .publisher-registration-form input[type="submit"]:hover,
body:has(.publisher-registration-page) .publisher-registration-form .cta:hover{
    background:var(--ned-hf15-publisher-orange-hover) !important;
    background-color:var(--ned-hf15-publisher-orange-hover) !important;
    border-color:var(--ned-hf15-publisher-orange-hover) !important;
    color:#fff !important;
}


/* ========================================================================
   NEDITESO_3E1N_P08_R5_HF16_FINAL_CLICKABLE_CARD_VISIBILITY_FIX
   Final residual visual correction after HF15 browser regression.

   Scope:
   1) Author home Book Studio primary card: restore readable dark typography
      on the white clickable-card surface while preserving its blue CTA.
   2) Financial Control Center preview tile: force clickable-card semantics
      (white card / blue border / dark copy) even when generic button rules
      are present elsewhere in the Control Center design system.

   No hero media, external Publisher registration, PHP, DB, Stripe, OTP,
   governance, wallet or fair-use behavior is changed.
   ======================================================================== */

:root{
    --ned-hf16-blue:#0878f7;
    --ned-hf16-blue-hover:#0668d6;
    --ned-hf16-text:#0b2d57;
    --ned-hf16-muted:#607792;
    --ned-hf16-border:#87bfff;
    --ned-hf16-white:#fff;
}

/* ------------------------------------------------------------------------
   AUTHOR HOME — PRIMARY BOOK STUDIO CARD
   HF15 correctly made clickable cards white, but the primary Book Studio
   card still inherited legacy light typography. Restore explicit contrast.
   ------------------------------------------------------------------------ */
html body .author-home .ah-action-card:first-child,
html body .author-home a.ah-action-card:first-child{
    background:var(--ned-hf16-white) !important;
    background-color:var(--ned-hf16-white) !important;
    background-image:none !important;
    color:var(--ned-hf16-text) !important;
    border-color:#c9def2 !important;
}
html body .author-home .ah-action-card:first-child h2,
html body .author-home a.ah-action-card:first-child h2,
html body .author-home .ah-action-card:first-child strong,
html body .author-home a.ah-action-card:first-child strong{
    color:var(--ned-hf16-text) !important;
}
html body .author-home .ah-action-card:first-child p,
html body .author-home a.ah-action-card:first-child p,
html body .author-home .ah-action-card:first-child small,
html body .author-home a.ah-action-card:first-child small{
    color:var(--ned-hf16-muted) !important;
}
html body .author-home .ah-action-card:first-child .ah-card-button,
html body .author-home a.ah-action-card:first-child .ah-card-button{
    background:var(--ned-hf16-blue) !important;
    background-color:var(--ned-hf16-blue) !important;
    border-color:var(--ned-hf16-blue) !important;
    color:#fff !important;
}
html body .author-home .ah-action-card:first-child .ah-card-button:hover,
html body .author-home a.ah-action-card:first-child .ah-card-button:hover{
    background:var(--ned-hf16-blue-hover) !important;
    background-color:var(--ned-hf16-blue-hover) !important;
    border-color:var(--ned-hf16-blue-hover) !important;
    color:#fff !important;
}

/* ------------------------------------------------------------------------
   FINANCIAL CONTROL CENTER — CLICKABLE PREVIEW TILE
   Use selectors independent from body/shell classes so the tile can never be
   recolored by the generic Control Center button policy.
   ------------------------------------------------------------------------ */
html body .fcc-actions button.fcc-action,
html body .fcc-actions a.fcc-action,
html body button.fcc-action[data-open-fcc-modal],
html body a.fcc-action[data-open-fcc-modal]{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    min-height:135px !important;
    padding:17px !important;
    text-align:left !important;
    font:inherit !important;
    background:var(--ned-hf16-white) !important;
    background-color:var(--ned-hf16-white) !important;
    background-image:none !important;
    color:var(--ned-hf16-text) !important;
    border:1px solid var(--ned-hf16-border) !important;
    border-radius:17px !important;
    box-shadow:none !important;
    text-shadow:none !important;
    text-decoration:none !important;
}
html body .fcc-actions button.fcc-action:hover,
html body .fcc-actions a.fcc-action:hover,
html body button.fcc-action[data-open-fcc-modal]:hover,
html body a.fcc-action[data-open-fcc-modal]:hover{
    background:#f8fbff !important;
    background-color:#f8fbff !important;
    border-color:var(--ned-hf16-blue) !important;
    color:var(--ned-hf16-text) !important;
    transform:translateY(-1px) !important;
}
html body .fcc-action strong{
    color:var(--ned-hf16-text) !important;
}
html body .fcc-action span{
    color:var(--ned-hf16-muted) !important;
}
html body .fcc-action em{
    color:var(--ned-hf16-blue) !important;
}
