/* NEMI MULTIPRODUCT UX V4
   Visual/interaction layer only. Pricing, Graph, gateway actions and product engines remain authoritative. */
:root{--nemi-ux-cyan:#00b8ee;--nemi-ux-pink:#ec007a;--nemi-ux-yellow:#ffd51f;--nemi-ux-green:#7ddc62;--nemi-ux-ink:#07111f;--nemi-ux-panel:#0a1d38;--nemi-ux-line:#dbe2ea;--nemi-ux-soft:#f4f7fa}

/* Workspace: make the current line obvious and all other lines reachable. */
.nemi-line-switcher{display:none;gap:8px;align-items:stretch;margin:0 0 12px;padding:4px 2px 8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scroll-snap-type:x proximity}
body.work-mode .nemi-line-switcher{display:flex}.nemi-line-tab{position:relative;flex:0 0 clamp(180px,23vw,260px);min-width:0;scroll-snap-align:start;border:1px solid #dce3eb;background:#fff;color:#152033;border-radius:14px;padding:11px 12px 10px;text-align:left;box-shadow:0 5px 18px rgba(15,31,52,.045);transition:border-color .16s,box-shadow .16s,transform .16s}.nemi-line-tab:hover{border-color:#aebdce;transform:translateY(-1px)}.nemi-line-tab.active{border-color:#14283f;box-shadow:inset 0 0 0 1px #14283f,0 7px 20px rgba(15,31,52,.08)}.nemi-line-tab.active:before{content:"";position:absolute;left:12px;right:12px;top:-1px;height:3px;border-radius:0 0 5px 5px;background:var(--nemi-ux-cyan)}.nemi-line-tab[data-state="pending"]:before{background:var(--nemi-ux-yellow)}.nemi-line-tab[data-state="review"]:before{background:var(--nemi-ux-pink)}.nemi-line-num{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;text-transform:uppercase;color:#758397;margin-bottom:5px}.nemi-line-tab strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.3}.nemi-line-meta{display:flex;gap:6px;align-items:center;margin-top:7px;font-size:9px;color:#647387}.nemi-line-state{display:inline-flex;align-items:center;gap:4px;font-weight:900}.nemi-line-state:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--nemi-ux-green)}.nemi-line-tab[data-state="pending"] .nemi-line-state:before{background:#e5a900}.nemi-line-tab[data-state="review"] .nemi-line-state:before{background:var(--nemi-ux-pink)}.nemi-line-price{margin-left:auto;font-weight:950;color:#1a2c43;white-space:nowrap}.nemi-line-add{flex:0 0 148px;border:1px dashed #a8b5c4;background:#f8fafc;color:#25384e;border-radius:14px;padding:10px;font-weight:900;font-size:10px}.nemi-line-add:hover{border-style:solid;background:#fff}

/* Current configurator: one task, one visual priority. */
/* Desktop configurator balance: configuration gets the reading width; visual summary does not stretch into dead space. */
@media(min-width:1180px){body.work-mode .focus-card{grid-template-columns:minmax(430px,1.08fr) minmax(360px,.92fr)!important;align-items:start!important}body.work-mode .focus-identity{align-self:start!important;height:max-content!important;min-height:0!important}body.work-mode .decision-card .cfg-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.work-mode .decision-card .configurator-form{gap:10px!important}body.work-mode .decision-card .cfg-group{padding-top:10px!important}}
body.work-mode #workspace{background:#eef3f7!important;border:1px solid #d7e0e8!important;box-shadow:0 18px 50px rgba(5,22,43,.08)!important}.workspace-toolbar{align-items:flex-start!important}.workspace-toolbar>div:first-of-type{max-width:760px}.workspace-toolbar h1{letter-spacing:-.035em!important}.focus-card{border-color:#cfd9e4!important;box-shadow:0 13px 34px rgba(8,25,47,.07)!important}.decision-card{border:1px solid #d9e2eb!important;background:#f8fafc!important}.decision-kicker{color:#567084!important}.cfg-option{transition:border-color .14s,box-shadow .14s,transform .14s!important}.cfg-option:hover{transform:translateY(-1px)}.cfg-option.selected{box-shadow:0 0 0 2px rgba(0,184,238,.16)!important}.answer-feedback:not(:empty){margin-top:8px;padding:9px 10px;border-radius:9px;background:#fff3d6;color:#66501a;font-size:10px;font-weight:750}

/* Right rail becomes a scalable proposal cockpit, not a competing configurator. */
#propuesta.side{display:flex!important;flex-direction:column;max-height:calc(100vh - 92px);padding-bottom:14px!important}#propuesta .summary{flex:0 0 auto}#propuesta .total{flex:0 0 auto;margin-top:10px!important}#propuesta .quote-actions{flex:0 0 auto;margin-top:9px!important}#propuesta .log{flex:1 1 auto;min-height:88px;max-height:46vh;overflow:auto;padding-right:3px;scrollbar-width:thin;counter-reset:nemiProposalLine}#propuesta .log-item{position:relative;counter-increment:nemiProposalLine;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:9px!important;min-height:62px;border:1px solid transparent!important;transition:border-color .14s,transform .14s,box-shadow .14s!important}#propuesta .log-item:before{content:counter(nemiProposalLine);width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#eaf0f6;color:#40546b;font-size:9px;font-weight:950;position:absolute;left:7px;top:7px;z-index:2}#propuesta .log-item img{width:42px!important;height:42px!important;border-radius:9px!important;object-fit:cover;margin:0!important}#propuesta .log-item.no-thumb{grid-template-columns:34px minmax(0,1fr) auto!important;padding-left:9px!important}#propuesta .log-item.no-thumb:before{position:static}#propuesta .log-item>div{min-width:0}#propuesta .log-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important}#propuesta .log-item.active-item{border-color:var(--nemi-ux-cyan)!important;box-shadow:0 0 0 2px rgba(0,184,238,.13)!important;transform:translateX(-2px)}#propuesta .log-item[data-state="pending"]{border-left:3px solid var(--nemi-ux-yellow)!important}#propuesta .log-item[data-state="ready"]{border-left:3px solid var(--nemi-ux-green)!important}#propuesta .log-item[data-state="review"]{border-left:3px solid var(--nemi-ux-pink)!important}.nemi-side-edit{align-self:center;border:1px solid #d6e0ea;background:#f6f8fb;color:#20344c;border-radius:9px;padding:7px 8px;font-size:8px;font-weight:950;white-space:nowrap}.nemi-side-edit:hover{border-color:#91a7bd;background:#fff}.nemi-proposal-lines-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 2px 8px;color:#dbe6f3;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;border-top:1px solid #ffffff26}.nemi-proposal-lines-head span:last-child{color:#8fa4ba;font-weight:750;text-transform:none;letter-spacing:0}.nemi-side-hint{margin:8px 0 1px;color:#aebdd0;font-size:9px;line-height:1.35}

/* Review: scalable line-by-line editor with undo. */
#review{width:min(1040px,calc(100vw - 24px));max-width:1040px;border:0;padding:0;background:transparent}#review::backdrop{background:rgba(3,10,20,.72);backdrop-filter:blur(8px)}#review .review-modal{width:100%!important;max-width:none!important;max-height:min(88vh,900px);overflow:hidden;display:flex;flex-direction:column;background:#f7f9fb!important;color:#101c2c;border-radius:22px!important;padding:0!important;box-shadow:0 32px 110px rgba(0,0,0,.36)}#review .review-head{padding:21px 23px 17px;background:#071a34;color:#fff;border-bottom:1px solid #ffffff1d;flex:0 0 auto}#review .review-head .eyebrow{color:#70dcff!important}#review .review-head h2{font-size:clamp(25px,3vw,38px);letter-spacing:-.045em;margin:4px 0 5px}#review .review-head p{color:#bdc9d8!important;max-width:680px;margin:0;font-size:11px;line-height:1.45}#review .review-head .ghost{background:transparent!important;color:#fff!important;border:1px solid #ffffff55!important;box-shadow:none!important}#review .review-metrics{padding:12px 23px 0;background:#f7f9fb;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:0 0 auto}#review .review-metric{background:#fff!important;border:1px solid #dce4ec!important;border-radius:12px!important;padding:11px 12px!important}#review .review-total{margin:11px 23px 0!important;background:#fff!important;border:1px solid #dbe3eb!important;border-radius:14px!important;padding:13px 16px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:2px 16px;flex:0 0 auto}#review .review-total span{font-weight:850;color:#506075}#review .review-total b{font-size:29px!important;color:#071a34!important;grid-column:2;grid-row:1/3}#review .review-total small{font-size:9px;color:#68778a;grid-column:1}.review-list{padding:14px 23px 5px!important;margin:0!important;overflow:auto;flex:1 1 auto}.nemi-review-section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:2px 0 9px}.nemi-review-section-title h3{font-size:12px!important;text-transform:uppercase;letter-spacing:.08em;color:#405268;margin:0!important}.nemi-review-section-title span{font-size:9px;color:#758398}.nemi-review-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:start;background:#fff;border:1px solid #dae3ec;border-radius:15px;padding:13px;margin-bottom:9px}.nemi-review-item[data-state="pending"]{border-left:4px solid var(--nemi-ux-yellow)}.nemi-review-item[data-state="ready"]{border-left:4px solid var(--nemi-ux-green)}.nemi-review-item[data-state="review"]{border-left:4px solid var(--nemi-ux-pink)}.nemi-review-index{width:27px;height:27px;border-radius:9px;background:#eef3f7;display:grid;place-items:center;font-size:9px;font-weight:950;color:#485b70}.nemi-review-copy{min-width:0}.nemi-review-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.nemi-review-top h3{margin:0!important;font-size:14px!important;letter-spacing:-.015em}.nemi-review-status{display:inline-flex;padding:4px 6px;border-radius:999px;background:#edf5eb;color:#2f6c25;font-size:7px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}.nemi-review-item[data-state="pending"] .nemi-review-status{background:#fff5ce;color:#785c00}.nemi-review-item[data-state="review"] .nemi-review-status{background:#fde5f1;color:#8e1552}.nemi-review-detail{margin:6px 0 0!important;color:#657387!important;font-size:10px!important;line-height:1.4}.nemi-review-pending{margin-top:7px;padding:7px 8px;background:#fff8db;border-radius:8px;color:#6d5916;font-size:9px;line-height:1.35}.nemi-review-price{margin-top:8px;font-size:15px;font-weight:950;color:#071a34}.nemi-review-price small{font-size:8px;font-weight:750;color:#748295;margin-left:5px}.nemi-review-actions{display:flex;gap:6px;align-self:center}.nemi-review-actions button{min-height:38px;border-radius:9px;padding:8px 10px;font-size:9px;font-weight:900}.nemi-review-edit{border:1px solid #cbd6e1;background:#f5f8fa;color:#17314d}.nemi-review-remove{border:1px solid #f1ccd7;background:#fff5f8;color:#a32758}.nemi-review-removed{margin:14px 0 7px;padding:12px;border:1px dashed #cbd5df;border-radius:13px;background:#f1f4f7}.nemi-review-removed summary{cursor:pointer;font-size:10px;font-weight:900;color:#536579}.nemi-review-removed-list{display:grid;gap:7px;margin-top:9px}.nemi-review-removed-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border-radius:9px;padding:9px 10px;font-size:10px;color:#5e6d7d}.nemi-review-removed-row button{border:1px solid #bad8b4;background:#f2fbf0;color:#2f6c25;border-radius:8px;padding:7px 9px;font-size:8px;font-weight:950}.nemi-review-empty{padding:30px;text-align:center;color:#718095}.canonical-note{margin:5px 23px 0!important;font-size:9px!important;color:#718095!important;background:transparent!important;border:0!important;padding:0!important}.review-modal>.modal-foot{margin:0!important;padding:14px 23px 18px;background:#fff;border-top:1px solid #dfe6ed;display:flex!important;justify-content:space-between;gap:9px;flex:0 0 auto}.review-modal>.modal-foot button{min-height:44px}.review-modal>.modal-foot .primary{background:var(--nemi-ux-pink)!important;color:#fff!important}

@media(max-width:1100px){#propuesta.side{max-height:none!important}#propuesta .log{max-height:330px}.nemi-line-tab{flex-basis:220px}}
@media(max-width:760px){
 body.work-mode .nemi-line-switcher{margin-left:-2px;margin-right:-2px;padding-bottom:7px}.nemi-line-tab{flex-basis:76vw;max-width:285px}.nemi-line-add{flex-basis:128px;min-height:68px}
 /* Side remains hidden during normal mobile configuration; the review is the safe multi-line surface. */
 #propuesta.side{display:none!important}body.review-open #propuesta.side{display:none!important}
 #review{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;margin:0!important}#review .review-modal{height:100dvh;max-height:100dvh!important;border-radius:0!important}#review .review-head .ghost{font-size:0!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;display:grid!important;place-items:center!important}#review .review-head .ghost:after{content:'×';font-size:25px;line-height:1}.review-list{padding:12px!important;min-height:0!important}.nemi-review-item{grid-template-columns:28px minmax(0,1fr);padding:11px;gap:8px}.nemi-review-actions{grid-column:1/-1;width:100%;padding-left:36px}.nemi-review-actions button{flex:1}.nemi-review-index{width:25px;height:25px}.nemi-review-top h3{font-size:13px!important}#review .review-head{padding:15px 14px 12px}#review .review-head h2{font-size:25px}#review .review-metrics{padding:9px 12px 0;gap:6px!important}#review .review-metric{padding:8px!important}#review .review-total{margin:8px 12px 0!important;padding:10px 11px!important}#review .review-total b{font-size:23px!important}.canonical-note{margin:4px 12px 0!important}.review-modal>.modal-foot{padding:10px 12px 12px;position:static!important;margin-top:auto!important}.review-modal>.modal-foot button{flex:1;min-width:0;padding:9px 8px;font-size:9px}.nemi-review-removed{margin-left:0;margin-right:0}
}
@media(max-width:390px){#review .review-metrics{grid-template-columns:repeat(3,1fr)!important}.review-metric b{font-size:18px!important}.review-metric span{font-size:7px!important}.nemi-line-tab{flex-basis:82vw}}
