/* =============================================================================
   50 — Phase 2A (2026-11-05): document requests / KYC, e-signature, surveys,
   company users, install prompt. Portal (.portal-dash-body) + firm (.firm-shell).
   Reuses .panel / .panel-head / .badge-* / .firm-field / .btn / .rd-btn / .mt-chip;
   adds only .fl2-* pieces. Mobile-first checks at 360px.
   ============================================================================= */

.portal-shell .fl2-notice{margin-bottom:18px}
.portal-shell .fl2-count{font-size:12.5px;color:var(--mid);font-weight:600;white-space:nowrap}
.portal-shell .fl2-small{font-size:12.5px;color:var(--mid);line-height:1.55;margin:12px 0 0}
.portal-shell .fl2-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;word-break:break-all;color:var(--ink)}
.portal-shell .fl2-crumb{margin:-4px 0 6px;font-size:13.5px}
.portal-shell .fl2-crumb a{color:var(--mid);text-decoration:none}
.portal-shell .fl2-crumb a:hover{color:var(--blue-ink)}
.portal-shell .fl2-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.portal-shell .fl2-link-danger{background:none;border:0;padding:6px 2px;color:var(--red-dark);font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.portal-shell .fl2-link-danger:hover{color:var(--red)}
.portal-shell .btn.btn-sm{padding:7px 14px;font-size:13px;min-height:0}
.portal-shell .fl2-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.portal-shell .fl2-two > .panel{margin-bottom:0}
.portal-shell .fl2-two + .panel,.portal-shell .panel + .fl2-two{margin-top:20px}
.portal-shell .firm-field textarea,.portal-shell .fl2-sign-body textarea,.portal-shell .fl2-survey textarea,.portal-shell .fl2-sign-body input[type=text],.portal-shell .fl2-survey input[type=text]{
	width:100%;padding:11px 13px;border:1.5px solid var(--hair);border-radius:9px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;box-sizing:border-box;
}
.portal-shell .firm-field textarea:focus,.portal-shell .fl2-sign-body input:focus,.portal-shell .fl2-survey textarea:focus,.portal-shell .fl2-survey input:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(237,28,36,.08)}
.portal-shell .fl2-form .form-sec-label{margin:22px 0 10px}

/* ---- client field (portal forms) ---- */
.portal-shell .fl2-sign-body .field,.portal-shell .fl2-survey .field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.portal-shell .fl2-sign-body .field label,.portal-shell .fl2-survey .field label{font-size:13px;font-weight:600;color:var(--blue-ink)}

/* ---- request items (portal + firm) ---- */
.portal-shell .fl2-req-head{align-items:flex-start;gap:12px}
.portal-shell .fl2-req-head h3{margin:0}
.portal-shell .fl2-req-sub{font-size:12.5px;color:var(--mid);margin-top:4px}
.portal-shell .fl2-progress{height:4px;background:var(--grey-100);margin:0 var(--cp-pad,22px);border-radius:4px;overflow:hidden}
.portal-shell .fl2-progress span{display:block;height:100%;background:var(--green);border-radius:4px;transition:width .3s}
.portal-shell .fl2-req-msg{margin:14px var(--cp-pad,22px) 0;padding:12px 14px;background:var(--blue-pale);border-left:3px solid var(--blue);border-radius:8px;font-size:13.5px;color:var(--blue-ink);line-height:1.55}
.portal-shell .fl2-es-msg{margin:0 0 18px}
.portal-shell .fl2-item-list{list-style:none;margin:0;padding:6px 0}
.portal-shell .fl2-item{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;padding:16px var(--cp-pad,22px);border-top:1px solid #eef0f4}
.portal-shell .fl2-item:first-child{border-top:0}
.portal-shell .fl2-item.is-overdue{box-shadow:inset 3px 0 0 var(--red)}
.portal-shell .fl2-item.is-rejected{box-shadow:inset 3px 0 0 var(--amber)}
.portal-shell .fl2-item.is-approved .fl2-item-label{color:var(--mid)}
.portal-shell .fl2-item-main{min-width:0;flex:1}
.portal-shell .fl2-item-label{font-weight:600;color:var(--blue-ink);font-size:14.5px;line-height:1.4}
.portal-shell .fl2-item-note{font-size:13px;color:var(--mid);margin-top:2px}
.portal-shell .fl2-item-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:7px;font-size:12.5px;color:var(--mid);align-items:center}
.portal-shell .fl2-due{display:inline-flex;align-items:center;gap:5px}
.portal-shell .fl2-due.is-late{color:var(--red-dark);font-weight:600}
.portal-shell .fl2-file{display:inline-flex;align-items:center;gap:5px;color:var(--blue);text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-shell .fl2-file:hover{text-decoration:underline}
.portal-shell .fl2-reason{margin-top:8px;font-size:13px;background:var(--amber-bg);color:#8a4b06;border-radius:8px;padding:8px 11px}
.portal-shell .fl2-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 0 auto}
.portal-shell .fl2-upload{margin:0}
.portal-shell .fl2-upload-btn{cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.portal-shell .fl2-upload.is-busy .fl2-upload-btn{opacity:.6;pointer-events:none}
.portal-shell .fl2-done summary{cursor:pointer;list-style:none}
.portal-shell .fl2-done summary::-webkit-details-marker{display:none}
.portal-shell .fl2-done summary h3::after{content:" ▾";color:var(--mid);font-size:12px}
.portal-shell .fl2-done-block{border-top:1px solid #eef0f4}
.portal-shell .fl2-done-title{padding:14px var(--cp-pad,22px) 0;font-weight:600;color:var(--blue-ink);display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* firm: review row, item editor, detail layout */
.portal-shell .fl2-review{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}
.portal-shell .fl2-review input[type=text]{flex:1 1 220px;min-width:0;padding:8px 11px;border:1.5px solid var(--hair);border-radius:8px;font:inherit;font-size:13px}
.portal-shell .fl2-items-head,.portal-shell .fl2-item-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 150px 36px;gap:10px;align-items:center}
.portal-shell .fl2-items-head{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);margin-bottom:6px}
.portal-shell .fl2-item-row{margin-bottom:10px}
.portal-shell .fl2-item-row input{width:100%;padding:10px 12px;border:1.5px solid var(--hair);border-radius:9px;font:inherit;font-size:14px;box-sizing:border-box;min-width:0}
.portal-shell .fl2-item-row input:focus{outline:none;border-color:var(--red)}
.portal-shell .fl2-item-rm{width:36px;height:38px;border:1px solid var(--hair);border-radius:9px;background:#fff;color:var(--mid);font-size:20px;line-height:1;cursor:pointer}
.portal-shell .fl2-item-rm:hover{color:var(--red);border-color:var(--red)}
.portal-shell .fl2-item-add{margin-top:4px}
.portal-shell .fl2-detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.portal-shell .fl2-detail-side .panel{margin-bottom:20px}
.portal-shell .fl2-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin:0;padding:16px var(--cp-pad,22px);font-size:13.5px}
.portal-shell .fl2-dl dt{color:var(--mid);font-weight:500}
.portal-shell .fl2-dl dd{margin:0;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.portal-shell .fl2-dl--wide{grid-template-columns:170px minmax(0,1fr)}
.portal-shell .fl2-side-actions{display:flex;flex-direction:column;gap:8px;padding:0 var(--cp-pad,22px) 18px}
.portal-shell .fl2-side-actions form{margin:0}
.portal-shell .fl2-side-actions--row{flex-direction:row;flex-wrap:wrap;align-items:center}
.portal-shell .fl2-add-item summary{cursor:pointer;list-style:none}
.portal-shell .fl2-add-item summary::-webkit-details-marker{display:none}
.portal-shell .fl2-add-item .firm-form{padding:0 var(--cp-pad,22px) 18px}
.portal-shell .fl2-log{list-style:none;margin:0;padding:8px var(--cp-pad,22px) 16px;max-height:460px;overflow:auto}
.portal-shell .fl2-log li{padding:9px 0;border-top:1px solid #f0f1f5;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.portal-shell .fl2-log li:first-child{border-top:0}
.portal-shell .fl2-log small{display:block;color:var(--mid);font-size:11.5px;margin-top:2px}
.portal-shell .fl2-log-ev{font-weight:600;color:var(--blue-ink)}
.portal-shell .fl2-strong{font-weight:600;color:var(--blue-ink);text-decoration:none}
.portal-shell .fl2-strong:hover{text-decoration:underline}
.portal-shell .fl2-sub{font-size:12px;color:var(--mid);margin-top:2px}
.portal-shell .fl2-chips{gap:8px;justify-content:flex-start;flex-wrap:wrap}
.portal-shell .fl2-tpl .firm-grid{padding:4px var(--cp-pad,22px) 18px}
.portal-shell .fl2-tpl{margin-bottom:16px}

/* ---- client 360 + matter: action tiles ---- */
.portal-shell .fl2-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px var(--cp-pad,22px) 20px}
.portal-shell .fl2-action{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--hair);border-radius:12px;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s,transform .15s;background:#fff}
.portal-shell .fl2-action:hover{border-color:var(--red);box-shadow:0 6px 18px rgba(11,31,75,.07);transform:translateY(-1px)}
.portal-shell .fl2-action strong{display:block;color:var(--blue-ink);font-size:14px}
.portal-shell .fl2-action small{display:block;color:var(--mid);font-size:12px;margin-top:2px}
.portal-shell .fl2-action-ic{flex:0 0 34px;height:34px;border-radius:9px;background:var(--red-pale);color:var(--red);display:flex;align-items:center;justify-content:center}
.portal-shell .fl2-actions--aside .fl2-actions{grid-template-columns:1fr;padding-top:10px}
.portal-shell .fl2-actions--aside .fl2-action{padding:10px 12px}

/* ---- company users ---- */
.portal-shell .fl2-user-list{list-style:none;margin:0;padding:4px 0}
.portal-shell .fl2-user{display:flex;gap:12px;align-items:center;padding:13px var(--cp-pad,22px);border-top:1px solid #eef0f4;flex-wrap:wrap}
.portal-shell .fl2-user:first-child{border-top:0}
.portal-shell .fl2-avatar{flex:0 0 36px;height:36px;border-radius:50%;background:var(--blue-ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.portal-shell .fl2-user-main{flex:1 1 180px;min-width:0}
.portal-shell .fl2-user-name{font-weight:600;color:var(--blue-ink)}
.portal-shell .fl2-you{color:var(--mid);font-weight:400;font-size:12.5px}
.portal-shell .fl2-user-meta{font-size:12.5px;color:var(--mid);overflow-wrap:anywhere}
.portal-shell .fl2-user-side{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.portal-shell .fl2-role{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--blue-pale);color:var(--blue-ink)}
.portal-shell .fl2-role.is-admin{background:var(--red-pale);color:#b3161c}
.portal-shell .fl2-role.is-finance{background:var(--green-bg);color:#16704a}
.portal-shell .fl2-inline{margin:0;display:inline-flex}
.portal-shell .fl2-inline select{height:32px;border:1px solid var(--hair);border-radius:8px;padding:0 8px;font:inherit;font-size:13px;background:#fff}
.portal-shell .fl2-add{border-top:1px solid #eef0f4}
.portal-shell .fl2-add summary{cursor:pointer;padding:14px var(--cp-pad,22px);font-weight:600;color:var(--red-dark);list-style:none}
.portal-shell .fl2-add summary::-webkit-details-marker{display:none}
.portal-shell .fl2-add summary::before{content:"+ "}
.portal-shell .fl2-add .fl2-form{padding:0 var(--cp-pad,22px) 18px}
.portal-shell .fl2-role-key{list-style:none;margin:0;padding:12px var(--cp-pad,22px) 16px;border-top:1px solid #eef0f4;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--mid)}
.portal-shell .fl2-role-key strong{color:var(--blue-ink)}
.portal-shell .fl2-invite-link{margin:4px var(--cp-pad,22px) 12px;padding:14px;border:1px solid #bfe6cf;background:var(--green-bg);border-radius:10px;font-size:13.5px}
.portal-shell .fl2-invite-link p{margin:0 0 10px;color:var(--ink)}
.portal-shell .fl2-invite-link span{color:var(--mid)}
.portal-shell .fl2-copy{display:flex;gap:8px;flex-wrap:wrap}
.portal-shell .fl2-copy input{flex:1 1 220px;min-width:0;padding:9px 11px;border:1px solid var(--hair);border-radius:8px;font:inherit;font-size:12.5px;background:#fff}

/* ---- e-signature ---- */
.portal-shell .fl2-es-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:13px;color:var(--mid);margin:-6px 0 18px}
.portal-shell .fl2-es-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:20px;align-items:start}
.portal-shell .fl2-pdf{display:block;width:100%;height:640px;border:0;border-top:1px solid #eef0f4;background:#f5f6fa}
.portal-shell .fl2-pdf-alt{margin:0;padding:10px var(--cp-pad,22px) 14px;font-size:13px}
.portal-shell .fl2-sign-body{padding:16px var(--cp-pad,22px) 20px}
.portal-shell .fl2-sig-tabs{display:inline-flex;border:1px solid var(--hair);border-radius:9px;padding:3px;margin-bottom:10px;background:var(--grey-50)}
.portal-shell .fl2-sig-tab{border:0;background:none;padding:7px 18px;border-radius:7px;font:inherit;font-size:13px;font-weight:600;color:var(--mid);cursor:pointer}
.portal-shell .fl2-sig-tab.is-active{background:#fff;color:var(--blue-ink);box-shadow:0 1px 3px rgba(11,31,75,.12)}
.portal-shell .fl2-sig-preview{min-height:84px;display:flex;align-items:flex-end;padding:0 10px 10px;border-bottom:2px solid var(--blue-ink);font-family:'Brush Script MT','Segoe Script','Lucida Handwriting',cursive;font-style:italic;font-size:36px;color:var(--blue-ink);background:repeating-linear-gradient(0deg,transparent,transparent 23px,rgba(11,31,75,.03) 24px);border-radius:8px 8px 0 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.portal-shell .fl2-sig-drawn{position:relative;display:none}
.portal-shell .fl2-sign-form[data-mode="drawn"] .fl2-sig-drawn{display:block}
.portal-shell .fl2-sign-form[data-mode="drawn"] .fl2-sig-typed{display:none}
.portal-shell .fl2-pad{display:block;width:100%;height:160px;border:1.5px dashed #c5cad6;border-radius:10px;background:#fff;touch-action:none;cursor:crosshair}
.portal-shell .fl2-pad.is-err{border-color:var(--red)}
.portal-shell .fl2-pad-clear{position:absolute;top:8px;right:8px;border:1px solid var(--hair);background:#fff;border-radius:7px;padding:4px 10px;font:inherit;font-size:12px;color:var(--mid);cursor:pointer}
.portal-shell .fl2-consent{display:flex;gap:10px;align-items:flex-start;margin:16px 0;font-size:13.5px;line-height:1.5;color:var(--ink);cursor:pointer}
.portal-shell .fl2-consent input{margin-top:3px;width:17px;height:17px;flex:0 0 17px;accent-color:var(--red)}
.portal-shell .fl2-otp{border:1px solid var(--hair);border-radius:10px;padding:12px;background:var(--grey-50)}
.portal-shell .fl2-otp-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.portal-shell .fl2-otp-row input{flex:1 1 120px;min-width:0;max-width:200px;letter-spacing:.35em;font-size:18px;font-weight:600;text-align:center;padding:9px 10px}
.portal-shell .fl2-otp-btn{display:inline-flex;align-items:center;height:42px;padding:0 16px;border:1.5px solid var(--blue-ink);border-radius:9px;background:#fff;color:var(--blue-ink);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.portal-shell .fl2-otp-btn:hover{background:var(--blue-ink);color:#fff}
.portal-shell .fl2-otp-btn:disabled{opacity:.55;cursor:wait}
.portal-shell .fl2-otp-box{font-size:12.5px;color:var(--mid);margin-top:9px}
.portal-shell .fl2-otp-box.is-ok{color:#16704a}
.portal-shell .fl2-otp-box.is-err{color:var(--red-dark)}
.portal-shell .fl2-otp-code{display:inline-block;margin-left:4px;padding:2px 10px;border-radius:6px;background:#fff;border:1px solid #bfe6cf;font-size:18px;letter-spacing:.25em;color:var(--blue-ink)}
.portal-shell .fl2-sign-actions{margin-top:16px}
.portal-shell .fl2-decline{margin-top:14px;font-size:13px}
.portal-shell .fl2-decline summary{cursor:pointer;color:var(--mid)}
.portal-shell .fl2-decline textarea{margin:10px 0}
.portal-shell .fl2-es-done .rd-btn{margin:0 var(--cp-pad,22px)}
.portal-shell .fl2-es-done .fl2-small{padding:0 var(--cp-pad,22px) 18px}
.portal-shell .fl2-wetink{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding:12px 14px;border-radius:10px;background:var(--amber-bg);color:#8a4b06;font-size:12.5px;line-height:1.55}
.portal-shell .fl2-wetink svg{flex:0 0 15px;margin-top:2px}
.portal-shell .fl2-wetink p{margin:0;font-size:inherit;line-height:inherit;color:inherit}
.portal-shell .fl2-es-list{list-style:none;margin:0;padding:4px 0}
.portal-shell .fl2-es-row{display:flex;gap:12px;align-items:center;padding:14px var(--cp-pad,22px);border-top:1px solid #eef0f4;flex-wrap:wrap}
.portal-shell .fl2-es-row:first-child{border-top:0}
.portal-shell .fl2-es-row.is-action{background:linear-gradient(90deg,rgba(237,28,36,.045),transparent 60%)}
.portal-shell .fl2-es-main{flex:1 1 200px;min-width:0}
.portal-shell .fl2-es-title{font-weight:600;color:var(--blue-ink);text-decoration:none}
.portal-shell a.fl2-es-title:hover{text-decoration:underline}

/* ---- surveys (portal) ---- */
.portal-shell .fl2-sv-body{padding:8px var(--cp-pad,22px) 20px}
.portal-shell .fl2-q{border:0;margin:0 0 20px;padding:0;min-width:0}
.portal-shell .fl2-q legend{font-weight:600;color:var(--blue-ink);font-size:14.5px;margin-bottom:10px;padding:0}
.portal-shell .fl2-nps{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px}
.portal-shell .fl2-nps-opt,.portal-shell .fl2-rate-opt{position:relative;margin:0}
.portal-shell .fl2-nps-opt input,.portal-shell .fl2-rate-opt input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.portal-shell .fl2-nps-opt span{display:flex;align-items:center;justify-content:center;height:42px;border:1.5px solid var(--hair);border-radius:9px;font-weight:600;color:var(--blue-ink);background:#fff;transition:all .15s}
.portal-shell .fl2-nps-opt input:checked + span{background:var(--blue-ink);border-color:var(--blue-ink);color:#fff}
.portal-shell .fl2-nps-opt input:focus-visible + span,.portal-shell .fl2-rate-opt input:focus-visible + span{box-shadow:var(--cp-ring)}
.portal-shell .fl2-nps-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--mid);margin-top:6px}
.portal-shell .fl2-rate{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.portal-shell .fl2-rate-opt span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 4px;border:1.5px solid var(--hair);border-radius:9px;background:#fff;transition:all .15s;text-align:center}
.portal-shell .fl2-rate-opt b{font-size:15px;color:var(--blue-ink)}
.portal-shell .fl2-rate-opt small{font-size:11px;color:var(--mid);line-height:1.2}
.portal-shell .fl2-rate-opt input:checked + span{border-color:var(--red);background:var(--red-pale)}
.portal-shell .fl2-rate-opt input:checked + span b{color:var(--red-dark)}

/* ---- surveys (firm) ---- */
.portal-shell .fl2-nps-card.is-good .stat-num{color:#16704a}
.portal-shell .fl2-nps-card.is-bad .stat-num{color:var(--red-dark)}
.portal-shell .fl2-trend{width:calc(100% - 2*var(--cp-pad,22px));margin:10px var(--cp-pad,22px);border-collapse:collapse;font-size:13px}
.portal-shell .fl2-trend th,.portal-shell .fl2-trend td{padding:7px 4px;text-align:left;border-bottom:1px solid #f0f1f5}
.portal-shell .fl2-trend thead th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.portal-shell .fl2-trend tbody th{font-weight:500;color:var(--ink);white-space:nowrap;width:80px}
.portal-shell .fl2-trend td.num{text-align:right;width:60px;color:var(--mid)}
.portal-shell .fl2-bar{position:relative;display:flex;align-items:center;height:22px}
.portal-shell .fl2-bar-axis{position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--grey-200)}
.portal-shell .fl2-bar-fill{position:absolute;left:50%;height:12px;border-radius:0 4px 4px 0;background:var(--green)}
.portal-shell .fl2-bar-fill.is-neg{left:auto;right:50%;border-radius:4px 0 0 4px;background:var(--red)}
.portal-shell .fl2-bar.is-ok .fl2-bar-fill{background:var(--amber)}
.portal-shell .fl2-bar b{position:relative;margin-left:auto;font-size:12.5px;color:var(--blue-ink);background:rgba(255,255,255,.85);padding:0 4px;border-radius:4px}
.portal-shell .fl2-split{display:flex;flex-wrap:wrap;gap:6px 16px;padding:4px var(--cp-pad,22px) 16px;font-size:12.5px;color:var(--mid)}
.portal-shell .fl2-split b{font-size:15px}
.portal-shell .fl2-split .is-pro b,.portal-shell .fl2-score.is-pro{color:#16704a}
.portal-shell .fl2-split .is-pas b,.portal-shell .fl2-score.is-pas{color:#8a4b06}
.portal-shell .fl2-split .is-det b,.portal-shell .fl2-score.is-det{color:var(--red-dark)}
.portal-shell .fl2-ratings{list-style:none;margin:0;padding:12px var(--cp-pad,22px) 18px}
.portal-shell .fl2-ratings li{display:grid;grid-template-columns:130px minmax(0,1fr) 34px;gap:12px;align-items:center;padding:8px 0;font-size:13.5px}
.portal-shell .fl2-ratings b{text-align:right;color:var(--blue-ink)}
.portal-shell .fl2-rbar{height:8px;background:var(--grey-100);border-radius:6px;overflow:hidden}
.portal-shell .fl2-rbar span{display:block;height:100%;background:var(--blue);border-radius:6px}
.portal-shell .fl2-comments{list-style:none;margin:0;padding:4px 0}
.portal-shell .fl2-comment{display:flex;gap:14px;padding:16px var(--cp-pad,22px);border-top:1px solid #eef0f4}
.portal-shell .fl2-comment:first-child{border-top:0}
.portal-shell .fl2-comment blockquote{margin:0;font-family:var(--font-display);font-size:15.5px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.portal-shell .fl2-score{flex:0 0 36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background:var(--grey-50);border:1.5px solid currentColor}

/* ---- install prompt ---- */
.fl2-install{position:fixed;left:16px;right:16px;bottom:16px;z-index:9990;max-width:460px;margin:0 auto;display:flex;gap:12px;align-items:center;padding:14px;background:#15224d;color:#fff;border-radius:14px;border-top:3px solid #ed1c24;box-shadow:0 18px 40px rgba(11,31,75,.35);font-family:var(--font-body,Inter,system-ui,sans-serif);animation:fl2Up .3s ease}
@keyframes fl2Up{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.fl2-install-ic{flex:0 0 42px;height:42px;border-radius:10px;background:#fff;color:#15224d;font-weight:800;display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',Georgia,serif}
.fl2-install-txt{flex:1;min-width:0;font-size:13px;line-height:1.4}
.fl2-install-txt strong{display:block;font-size:14px}
.fl2-install-txt span{color:#c9d1e6}
.fl2-install-act{display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.fl2-install-act .btn{padding:8px 16px;font-size:13px}
.fl2-install-x{background:none;border:0;color:#c9d1e6;font:inherit;font-size:12px;cursor:pointer;padding:2px}
@media (prefers-reduced-motion:reduce){.fl2-install{animation:none}}

/* ---- responsive ---- */
@media (max-width:1100px){
	.portal-shell .fl2-detail,.portal-shell .fl2-es-grid{grid-template-columns:minmax(0,1fr)}
	.portal-shell .fl2-pdf{height:520px}
}
@media (max-width:900px){
	.portal-shell .fl2-two{grid-template-columns:minmax(0,1fr)}
	.portal-shell .fl2-two > .panel + .panel{margin-top:0}
	.portal-shell .fl2-actions{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
	.portal-shell .fl2-item{flex-direction:column;gap:10px}
	.portal-shell .fl2-item-side{flex-direction:row;align-items:center;flex-wrap:wrap;width:100%;justify-content:space-between}
	.portal-shell .fl2-items-head{display:none}
	.portal-shell .fl2-item-row{grid-template-columns:minmax(0,1fr) 36px;padding:10px;border:1px solid var(--hair);border-radius:10px}
	.portal-shell .fl2-item-row input[name="item_label[]"]{grid-column:1}
	.portal-shell .fl2-item-row input[name="item_note[]"],.portal-shell .fl2-item-row input[name="item_due[]"]{grid-column:1 / -1}
	.portal-shell .fl2-item-row .fl2-item-rm{grid-row:1;grid-column:2}
	.portal-shell .fl2-dl,.portal-shell .fl2-dl--wide{grid-template-columns:minmax(0,1fr)}
	.portal-shell .fl2-dl dt{margin-top:6px}
	.portal-shell .fl2-pdf{height:420px}
	.portal-shell .fl2-nps{grid-template-columns:repeat(6,minmax(0,1fr))}
	.portal-shell .fl2-rate small{display:none}
	.portal-shell .fl2-ratings li{grid-template-columns:minmax(0,1fr) 34px}
	.portal-shell .fl2-ratings .fl2-rbar{grid-column:1 / -1;grid-row:2}
	.portal-shell .fl2-sig-preview{font-size:30px}
	.portal-shell .fl2-es-row .rd-btn{width:100%;justify-content:center}
	.portal-shell .fl2-user-side{width:100%;padding-left:48px}
	.portal-shell .fl2-head-actions{width:100%}
	.fl2-install{left:10px;right:10px;bottom:10px}
}
