.izp5-template-badge,.izp5-guide-card,.izp5-social-lead-panel,.izp5-rfq-handoff,.izp5-archive-hub{direction:rtl;background:#fff;border:1px solid #e7e7ea;border-radius:20px;padding:22px;margin:18px 0;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.izp5-kicker{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#a10f1c;background:#fff1f2;border:1px solid #ffd7dc;border-radius:999px;padding:5px 10px;margin-bottom:8px}
.izp5-template-badge strong{display:block;font-size:20px;color:#1b1d24;margin:5px 0}.izp5-template-badge p,.izp5-social-lead-panel p,.izp5-rfq-handoff p,.izp5-archive-hub p{color:#667085;line-height:1.9;margin:6px 0 0}.izp5-social-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.izp5-social-actions .button{border-radius:12px!important;padding:8px 14px!important;height:auto!important}.izp5-social-result{margin-top:12px;font-size:13px;color:#067647}.izp5-placeholder{background:#f9fafb;border:1px dashed #d0d5dd;border-radius:14px;padding:14px;color:#667085}.izp5-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.izp5-archive-grid>div{background:#f9fafb;border-radius:14px;padding:14px}.izp5-archive-grid strong{display:block;color:#101828;margin-bottom:6px}.izp5-archive-grid span{color:#667085}.izp5-preset-stack>*{margin-bottom:18px}@media(max-width:768px){.izp5-archive-grid{grid-template-columns:1fr}.izp5-social-actions{display:grid}.izp5-template-badge,.izp5-guide-card,.izp5-social-lead-panel,.izp5-rfq-handoff,.izp5-archive-hub{padding:16px;border-radius:16px}}

/* Phase 5 v0.6.0 integrated product templates */
.izp5-full-product{direction:rtl;display:block;--izp5-blue:#0b63f6;--izp5-gold:#d99a13;--izp5-border:#e7edf6;--izp5-muted:#667085;--izp5-bg:#f8fafc}
.izp5-integrated-section{background:#fff;border:1px solid var(--izp5-border);border-radius:24px;padding:22px;margin:22px 0;box-shadow:0 14px 40px rgba(16,24,40,.055)}
.izp5-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;border-bottom:1px solid #eef2f7;padding-bottom:12px}
.izp5-section-head h2{margin:0;font-size:20px;color:#101828;font-weight:900}.izp5-full-product .izp5-kicker{margin:0}.izp5-content-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.izp5-content-card{background:#fff;border:1px solid #e8eef7;border-radius:20px;padding:18px;box-shadow:0 8px 28px rgba(16,24,40,.04)}.izp5-content-card h3{margin:0 0 12px;color:#111827;font-size:18px}.izp5-content-card h4{margin:14px 0 8px;color:#1f2937;font-size:15px}.izp5-content-card p{line-height:1.95;color:#475467}.izp5-long-article{grid-column:1/-1}.izp5-final-cta{grid-column:1/-1;background:linear-gradient(135deg,#eff6ff,#fff);border-color:#bfd7ff}.izp5-rich-text{line-height:1.95;color:#475467}.izp5-pros-cons-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.izp5-pros{background:#f0fdf4;border-color:#bbf7d0}.izp5-cons{background:#fff7ed;border-color:#fed7aa}.izp5-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}.izp5-list li{position:relative;padding-right:28px;color:#344054;line-height:1.8}.izp5-list li:before{position:absolute;right:0;top:.2em;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:12px;font-weight:900}.izp5-list-check li:before{content:'✓';background:#dcfce7;color:#15803d}.izp5-list-warning li:before{content:'!';background:#fee2e2;color:#dc2626}.izp5-list-dot li:before{content:'•';background:#eff6ff;color:#0b63f6}.izp5-product-story-row{background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:14px 18px;margin:0 0 18px;box-shadow:0 10px 28px rgba(16,24,40,.05);overflow:hidden}.izp5-product-story-row .smartiz-story-box,.izp5-product-story-row .smartiz-tagged-stories,.izp5-product-story-row .izlift-phase1-social{margin:0!important}.izp5-product-social-network{background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #dbeafe;border-radius:24px;padding:20px}.izp5-social-network-intro h3{margin:8px 0;color:#111827}.izp5-social-network-intro p{color:#667085;line-height:1.9}.izp5-social-network-grid{display:grid;gap:16px}.izp5-spec-pro-card{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:20px}.izp5-score-circle{width:112px;height:112px;border-radius:999px;background:conic-gradient(#0b63f6 0 75%,#e5eefc 75%);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 10px #fff}.izp5-score-circle strong{font-size:32px;color:#0b63f6}.izp5-score-circle span{font-size:12px;color:#667085}.izp5-tech-specs-table{overflow:auto}.izp5-tech-specs-table table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}.izp5-tech-specs-table th,.izp5-tech-specs-table td{border:1px solid #edf2f7;padding:12px;text-align:right}.izp5-tech-specs-table th{background:#f8fafc;color:#344054;font-weight:900}.izp5-article-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.izp5-faq-card details{border:1px solid #edf2f7;border-radius:14px;padding:12px;margin:8px 0;background:#fff}.izp5-faq-card summary{cursor:pointer;font-weight:800;color:#1f2937}.izp5-related-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.izp5-related-card{border:1px solid #e8eef7;border-radius:18px;padding:14px;text-decoration:none;color:#111827;background:#fff;display:flex;flex-direction:column;gap:8px}.izp5-related-card img{width:100%;height:120px;object-fit:contain;background:#f8fafc;border-radius:12px}.izp5-related-card span{color:#0b63f6;font-weight:900}.izp5-connection-map{background:#fff;border:1px solid #dbeafe;border-radius:20px;padding:20px;box-shadow:0 10px 30px rgba(16,24,40,.05)}.izp5-connection-map h3{margin-top:0}.izp5-connection-map li{margin:8px 0;line-height:1.9;color:#344054}
.izp5-group-safety_part .izp5-section-trust_badges,.izp5-group-safety_part .izp5-pros-cons-grid{border-color:#facc15}.izp5-group-visual_cabin .izp5-product-social-network{background:linear-gradient(135deg,#fff7ed,#fff)}.izp5-group-replacement_part .izp5-integrated-section{padding:18px}.izp5-group-project_mechanical .izp5-section-project_calculator{border-color:#bfdbfe}.izp5-group-electrical_control .izp5-section-technical_specs{border-color:#bbf7d0}
@media(max-width:900px){.izp5-content-sections,.izp5-pros-cons-grid,.izp5-article-faq-grid{grid-template-columns:1fr}.izp5-related-products{grid-template-columns:repeat(2,minmax(0,1fr))}.izp5-integrated-section{padding:16px;border-radius:18px}.izp5-section-head{align-items:flex-start;flex-direction:column}.izp5-spec-pro-card{flex-direction:column;align-items:flex-start}.izp5-long-article,.izp5-final-cta{grid-column:auto}}


/* Phase 5 v0.6.4 hotfix: compact top product stories with add button */
.izp5-product-story-row{padding:8px 10px!important;margin:0 0 12px!important;border-radius:14px!important;box-shadow:0 6px 18px rgba(16,24,40,.045)!important;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.izp5-product-story-row *{font-size:12px!important;line-height:1.35!important}
.izp5-product-story-row h1,.izp5-product-story-row h2,.izp5-product-story-row h3,.izp5-product-story-row h4{font-size:13px!important;margin:0 0 6px!important;line-height:1.35!important}
.izp5-product-story-row p{font-size:11px!important;margin:0!important;line-height:1.45!important}
.izp5-product-story-row form,.izp5-product-story-row textarea,.izp5-product-story-row input[type="text"],.izp5-product-story-row input[type="file"],.izp5-product-story-row .smartiz-story-form,.izp5-product-story-row .smartiz-story-composer{display:none!important}
.izp5-product-story-row img,.izp5-product-story-row video{max-width:100%!important;max-height:78px!important;object-fit:cover!important;border-radius:10px!important}
.izp5-product-story-row [class*="story"],.izp5-product-story-row [class*="Story"]{max-height:112px!important}.izp5-product-story-row [class*="story-card"],.izp5-product-story-row [class*="story-item"],.izp5-product-story-row [class*="story-card"] a,.izp5-product-story-row [class*="story-item"] a{padding:6px!important;gap:6px!important;min-height:0!important}.izp5-product-story-row .swiper,.izp5-product-story-row .slick-slider{max-height:118px!important}
.izp5-article-collapsed .izp5-article-first-paragraph p{margin-top:0}.izp5-article-more{margin-top:12px}.izp5-article-more>summary{display:inline-flex!important;align-items:center;gap:6px;cursor:pointer;border-radius:999px;padding:8px 16px!important;background:#0b63f6!important;color:#fff!important;border:none!important;text-decoration:none!important;font-weight:800!important;list-style:none}.izp5-article-more>summary::-webkit-details-marker{display:none}.izp5-article-more-content{margin-top:14px;border-top:1px solid #edf2f7;padding-top:14px}
@media(max-width:900px){.izp5-product-story-row{padding:6px 8px!important;margin-bottom:10px!important;max-height:128px!important}.izp5-product-story-row *{font-size:11px!important}.izp5-product-story-row h1,.izp5-product-story-row h2,.izp5-product-story-row h3,.izp5-product-story-row h4{font-size:12px!important}.izp5-product-story-row img,.izp5-product-story-row video{max-height:60px!important}.izp5-product-story-row [class*="story"],.izp5-product-story-row [class*="Story"]{max-height:94px!important}}


/* Phase 5 v0.6.4: keep add-story button visible while keeping inline composer compact/hidden */
.izp5-product-story-row .smartiz-create-story,
.izp5-product-story-row .smartiz-add-story,
.izp5-product-story-row [class*="add-story"],
.izp5-product-story-row [class*="AddStory"],
.izp5-product-story-row button[class*="story"],
.izp5-product-story-row a[class*="story"]{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;height:auto!important;padding:5px 10px!important;border-radius:999px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important
}
.izp5-product-story-row .smartiz-story-form .smartiz-create-story,
.izp5-product-story-row .smartiz-story-composer .smartiz-create-story{display:inline-flex!important}
.izp5-product-social-network:empty,.izp5-social-lead-panel:empty{display:none!important}


/* Phase 5 v0.6.5: mobile story row fit + remove extra story labels */
.izp5-product-story-row .smartiz-eyebrow,
.izp5-product-story-row small{
    display:none!important;
}
.izp5-product-story-row{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    max-height:none!important;
    -webkit-overflow-scrolling:touch!important;
}
.izp5-product-story-row [class*="story"],
.izp5-product-story-row [class*="Story"]{
    max-height:none!important;
}
.izp5-product-story-row [class*="story-list"],
.izp5-product-story-row [class*="stories"],
.izp5-product-story-row [class*="Stories"]{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
}
.izp5-product-story-row [class*="story-item"],
.izp5-product-story-row [class*="story-card"]{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:76px!important;
    min-width:54px!important;
}
.izp5-product-story-row img,
.izp5-product-story-row video{
    width:52px!important;
    height:52px!important;
    max-width:52px!important;
    max-height:52px!important;
    border-radius:999px!important;
    object-fit:cover!important;
}
.izp5-product-story-row .smartiz-create-story,
.izp5-product-story-row .smartiz-add-story,
.izp5-product-story-row [class*="add-story"],
.izp5-product-story-row [class*="AddStory"]{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    max-width:none!important;
}
@media(max-width:768px){
    .izp5-product-story-row{padding:6px 6px!important;margin:0 0 8px!important;border-radius:12px!important;}
    .izp5-product-story-row *{font-size:10px!important;line-height:1.25!important;}
    .izp5-product-story-row img,.izp5-product-story-row video{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;}
    .izp5-product-story-row [class*="story-item"],.izp5-product-story-row [class*="story-card"]{max-width:66px!important;min-width:48px!important;}
}
.izp5-spec-pro-stack{display:grid;gap:14px}.izp5-score-circle{background:conic-gradient(#0b63f6 0 var(--izp5-score-percent,75%),#e5eefc var(--izp5-score-percent,75%) 100%)}.izp5-spec-pro-stack .smartiz-spec-product-bars{margin:0}.izp5-spec-pro-stack .smartiz-spec-bars-head{margin-bottom:8px}.izp5-spec-pro-stack .smartiz-spec-bars-kicker{display:none}

/* Phase 5 v0.6.7: calm, readable Spec Pro score circle */
.izp5-score-circle{
    --izp5-score-accent:#0f766e;
    --izp5-score-accent-2:#14b8a6;
    --izp5-score-rest:#e8eef3;
    position:relative!important;
    isolation:isolate!important;
    width:124px!important;
    height:124px!important;
    min-width:124px!important;
    border-radius:999px!important;
    background:
        conic-gradient(from -90deg,var(--izp5-score-accent) 0 var(--izp5-score-percent,0%),var(--izp5-score-rest) var(--izp5-score-percent,0%) 100%)!important;
    border:1px solid rgba(15,118,110,.16)!important;
    box-shadow:0 14px 34px rgba(15,23,42,.10), inset 0 0 0 1px rgba(255,255,255,.7)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    overflow:hidden!important;
}
.izp5-score-circle:before{
    content:'';
    position:absolute;
    inset:13px;
    border-radius:999px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    box-shadow:inset 0 0 0 1px #eef2f7, 0 6px 18px rgba(15,23,42,.06);
    z-index:0;
}
.izp5-score-circle:after{
    content:'';
    position:absolute;
    inset:5px;
    border-radius:999px;
    background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(255,255,255,0) 55%);
    pointer-events:none;
    z-index:0;
}
.izp5-score-circle strong,
.izp5-score-circle span{
    position:relative;
    z-index:1;
}
.izp5-score-circle strong{
    color:#0f172a!important;
    font-size:30px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:-.05em!important;
    font-variant-numeric:tabular-nums!important;
    text-shadow:0 1px 0 #fff!important;
    direction:ltr!important;
}
.izp5-score-circle span{
    margin-top:7px!important;
    color:#64748b!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:800!important;
}
.izp5-spec-pro-card{
    border-color:#d8e3ec!important;
    background:linear-gradient(135deg,#ffffff 0%,#fbfdfd 100%)!important;
}
@media(max-width:768px){
    .izp5-score-circle{width:104px!important;height:104px!important;min-width:104px!important;}
    .izp5-score-circle:before{inset:11px;}
    .izp5-score-circle strong{font-size:25px!important;}
    .izp5-score-circle span{font-size:10px!important;margin-top:5px!important;}
}

/* v0.7.7 brand card country/flag robust fix */
.izp5-brand-card{direction:rtl;background:#fff;border:1px solid #e6edf4;border-radius:18px;padding:0;margin:12px 0;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}.izp5-brand-card-inner{display:flex;align-items:center;gap:12px;padding:14px 15px;color:inherit;text-decoration:none}.izp5-brand-card.is-linked .izp5-brand-card-inner{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.izp5-brand-card.is-linked:hover{border-color:#bfdbfe;box-shadow:0 18px 40px rgba(11,99,246,.10);transform:translateY(-1px)}.izp5-brand-logo{width:48px;height:48px;border-radius:15px;background:#fff;border:1px solid #e8eef5;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 48px}.izp5-brand-logo img{max-width:82%;max-height:82%;object-fit:contain;display:block}.izp5-brand-logo--placeholder{background:linear-gradient(135deg,#0b63f6,#14b8a6);color:#fff;font-size:22px;font-weight:950}.izp5-brand-copy{display:grid;gap:2px;min-width:0}.izp5-brand-copy>b{font-size:11px;color:#64748b;font-weight:850}.izp5-brand-copy strong{font-size:16px;line-height:1.5;color:#0f172a;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.izp5-brand-copy small{font-size:12px;color:#0f766e;line-height:1.6}.izp5-brand-copy small b{display:inline-flex;align-items:center;gap:5px;font-weight:900;color:#0f766e}.izp5-brand-country img.emoji,.izp5-brand-country .emoji{width:18px!important;height:18px!important;display:inline-block!important;vertical-align:-4px!important;margin:0 0 0 4px!important}.izp5-brand-country--empty{color:#94a3b8!important}

/* v0.7.7 robust brand country flag */
.izp5-brand-card .izp5-brand-country{display:block!important;margin-top:2px!important;color:#0f766e!important}
.izp5-brand-card .izp5-brand-country b{display:inline-flex!important;align-items:center!important;gap:5px!important;font-weight:900!important;color:#0f766e!important}
.izp5-brand-card .izp5-brand-country img.emoji,.izp5-brand-card .izp5-brand-country .emoji{width:18px!important;height:18px!important;display:inline-block!important;vertical-align:-4px!important;margin:0 0 0 4px!important;box-shadow:none!important;border:0!important;background:transparent!important}
.izp5-brand-card .izp5-brand-country--empty b{color:#94a3b8!important}
