:root {
    --lf-bg:#f4f7fb;
    --lf-sidebar:#0b1f3a;
    --lf-sidebar-deep:#07182d;
    --lf-sidebar-muted:#9eb0c8;
    --lf-primary:#2459a9;
    --lf-primary-dark:#19478f;
    --lf-accent:#f59e0b;
    --lf-accent-soft:#fff5df;
    --lf-accent-border:#f7cf7a;
    --lf-border:#dfe6ef;
    --lf-text:#172033;
    --lf-muted:#667085;
}
html,body{min-height:100%}body{color:var(--lf-text)}.lf-app-body{background:linear-gradient(180deg,#f6f8fc 0,#f3f6fb 100%)}
.lf-auth-body{background:radial-gradient(circle at 15% 20%,rgba(36,89,169,.12),transparent 32rem),radial-gradient(circle at 90% 90%,rgba(245,158,11,.08),transparent 30rem),#f7f9fc}.lf-auth-brandbar{position:absolute;z-index:2;top:1.75rem;left:clamp(1.25rem,3vw,3rem)}.lf-auth-brand-link{display:inline-flex}.lf-auth-brand-link img{display:block;width:clamp(133px,14vw,168px);height:auto}.lf-auth-body main{padding-top:7.5rem;padding-bottom:3rem}.lf-auth-shell{max-width:480px}.lf-auth-shell:has(.lf-auth-card-wide){max-width:760px}.lf-auth-card{border-radius:1.25rem}.lf-brand-logo{display:block;height:auto}.lf-brand-logo-full{width:134px}.lf-brand-logo-mark{display:none;width:27px}.lf-mobile-brand-logo{display:block;height:auto}.lf-mobile-brand-mark{width:32px;height:32px;padding:.3rem;border-radius:.75rem;background:linear-gradient(180deg,var(--lf-sidebar),var(--lf-sidebar-deep))}
.lf-brand-mark{width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,var(--lf-primary),#5478c7);color:#fff;font-weight:800;letter-spacing:-.04em;box-shadow:0 .5rem 1.5rem rgba(36,89,169,.24)}.lf-brand-mark-sm{width:34px;height:34px;border-radius:10px;font-size:.78rem;box-shadow:none}.lf-brand-name{font-weight:750;letter-spacing:-.02em;font-size:1.15rem}.lf-security-note{color:#6b7280;font-size:.82rem;text-align:center}
.lf-step-pill{display:inline-flex;padding:.35rem .65rem;border-radius:999px;background:#eaf0fb;color:#31579f;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.lf-code-input{letter-spacing:.38em;font-variant-numeric:tabular-nums;text-align:center;font-weight:700}.lf-qr-wrap{display:inline-flex;padding:14px;background:#fff;border:1px solid var(--lf-border);border-radius:1rem}.lf-secret-key{display:flex;align-items:center;gap:.75rem;padding:.7rem .75rem .7rem 1rem;border:1px solid var(--lf-border);border-radius:.75rem;background:#f8fafc}.lf-secret-key code{overflow-wrap:anywhere;flex:1;color:#263d87}.lf-setup-list{padding-left:1.2rem}.lf-setup-list li{margin-bottom:.55rem}
.btn-primary{background-color:var(--lf-primary);border-color:var(--lf-primary)}.btn-primary:hover,.btn-primary:focus{background-color:var(--lf-primary-dark);border-color:var(--lf-primary-dark)}.btn-outline-primary{color:var(--lf-primary);border-color:var(--lf-primary)}.btn-outline-primary:hover{background:var(--lf-primary);border-color:var(--lf-primary)}.form-control,.input-group-text,.form-select{border-color:#d5deea}.form-control:focus,.form-select:focus{border-color:#7e9dd3;box-shadow:0 0 0 .2rem rgba(36,89,169,.12)}
.lf-sidebar{width:245px;background:linear-gradient(180deg,var(--lf-sidebar) 0%,var(--lf-sidebar-deep) 100%);color:#fff;padding:1.35rem 1rem;position:sticky;top:0;height:100vh;box-shadow:8px 0 24px rgba(11,31,58,.08)}.lf-sidebar-brand{color:#fff;display:flex;align-items:center;gap:.75rem;font-weight:750;padding:.25rem .5rem}.lf-sidebar .nav-link,.offcanvas .nav-link{border-radius:.65rem;padding:.7rem .8rem;color:var(--lf-sidebar-muted);font-weight:600}.lf-sidebar .nav-link{position:relative}.lf-sidebar .nav-link:hover{background:rgba(255,255,255,.075);color:#fff}.lf-sidebar .nav-link.active{background:linear-gradient(90deg,rgba(36,89,169,.34),rgba(36,89,169,.14));color:#fff}.lf-sidebar .nav-link.active:before{content:"";position:absolute;left:-.2rem;top:.55rem;bottom:.55rem;width:3px;border-radius:3px;background:var(--lf-accent)}.offcanvas .nav-link{color:#5b6475}.offcanvas .nav-link.active{background:#edf3fb;color:var(--lf-primary)}
.lf-topbar{min-height:68px;background:rgba(255,255,255,.97)!important;box-shadow:0 2px 10px rgba(15,34,59,.035)}.lf-topbar .navbar-brand{color:#183152}.lf-main{max-width:1600px;margin:0 auto}.min-width-0{min-width:0}.lf-eyebrow{letter-spacing:.08em;color:#315b95!important}
.lf-stat-card,.lf-panel{border-radius:1rem}.lf-panel{border:1px solid rgba(220,227,237,.72)!important}.lf-stat-card{overflow:hidden;border:1px solid #e1e7f0!important}.lf-stat-card:before{content:"";display:block;height:3px;background:linear-gradient(90deg,var(--lf-primary),#6c8bc7)}.lf-stat-card:nth-child(3n+2):before{background:linear-gradient(90deg,var(--lf-accent),#f6c45f)}.lf-stat-card .card-body{padding:1.25rem}.lf-stat-label{color:#687386;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.lf-stat-value{font-size:clamp(1.7rem,4vw,2.35rem);line-height:1.1;font-weight:750;letter-spacing:-.04em;margin:.35rem 0}.lf-stat-alert{box-shadow:inset 0 3px 0 #dc3545,0 .125rem .25rem rgba(0,0,0,.075)!important}.lf-search-box{width:min(100%,290px)}.lf-site-registry-select,.lf-search-box>.form-control,.lf-search-box>.input-group-text{height:38px}.lf-site-registry-type-select{min-width:145px}.lf-site-registry-server-select{min-width:205px}
.lf-sites-table th{background:#f7f9fc;color:#607087;font-size:.76rem;text-transform:uppercase;letter-spacing:.045em;border-bottom-color:var(--lf-border);padding:.75rem 1rem}.lf-sites-table td{padding:.95rem 1rem;border-color:#edf1f6}.lf-health-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:.4rem;background:#aab2c0}.lf-health-dot.is-healthy{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.12)}.lf-release-code{font-size:.78rem;color:#4f5d75}.alert-warning{border-color:var(--lf-accent-border);background:var(--lf-accent-soft);color:#744b08}.badge.text-bg-warning{background-color:#f4b740!important;color:#4b3305!important}
/* Knowledge Base legacy/base rules */
.lf-kb-hero{padding:clamp(1.25rem,4vw,2.5rem);border:1px solid #e2e7f2;border-radius:1.25rem;background:linear-gradient(135deg,#fff 0%,#f5f7ff 100%)}.lf-kb-search .input-group{border-radius:.85rem;overflow:hidden}.lf-kb-category{transition:transform .15s ease,box-shadow .15s ease}.lf-kb-category:hover{transform:translateY(-2px);box-shadow:0 .5rem 1.5rem rgba(30,41,59,.1)!important}.lf-kb-sticky{position:sticky;top:92px}.lf-kb-article-nav .nav-link,.lf-kb-toc .nav-link{color:#667085;padding:.45rem .6rem;border-radius:.5rem;font-size:.9rem}.lf-kb-article-nav .nav-link:hover,.lf-kb-article-nav .nav-link.active,.lf-kb-toc .nav-link:hover{color:var(--lf-primary);background:#edf3fb}.lf-kb-article-body{font-size:1.02rem;line-height:1.75}.lf-kb-article-body p{color:#445065}.lf-kb-code-wrap{position:relative;margin:1rem 0 1.25rem}.lf-kb-code-wrap pre{margin:0;padding:1.15rem;padding-right:4.5rem;border-radius:.85rem;background:#0b1f3a;color:#e5e7eb;overflow-x:auto;font-size:.86rem;line-height:1.6}.lf-kb-code-wrap code{color:inherit;white-space:pre}.lf-kb-copy{position:absolute;right:.55rem;top:.55rem;z-index:1}.breadcrumb{white-space:nowrap}.breadcrumb-item{min-width:0}
@media(max-width:991.98px){.lf-kb-sticky{position:static}.lf-kb-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem}.lf-kb-article-body{font-size:1rem}}
@media(max-width:767.98px){.lf-auth-brandbar{top:1.15rem;left:1.25rem}.lf-auth-brand-link img{width:190px}.lf-auth-body main{padding-top:6.25rem;padding-bottom:2rem}.lf-auth-card .card-body{padding:1.5rem!important}.lf-secret-key{align-items:flex-start}.lf-stat-card .card-body{padding:1rem}.lf-sites-table{min-width:760px}.lf-kb-hero{border-radius:1rem}.lf-kb-search .input-group-lg>.form-control,.lf-kb-search .input-group-lg>.input-group-text,.lf-kb-search .input-group-lg>.btn{font-size:1rem;padding:.65rem .75rem}.lf-kb-search .btn{padding-left:1rem!important;padding-right:1rem!important}.lf-kb-toc{grid-template-columns:1fr}.lf-kb-code-wrap pre{font-size:.8rem;padding:1rem;padding-top:3.1rem}.lf-kb-copy{left:.55rem;right:auto}}

/* RL-scoped control overrides */
.lf-btn-outline-orange{color:#d97706;border-color:#f59e0b;background:transparent}.lf-btn-outline-orange:hover,.lf-btn-outline-orange:focus{color:#fff;border-color:#d97706;background:#d97706}
.lf-release-picker-button:hover,.lf-release-picker-button:focus-visible,.lf-release-picker-button.show{color:var(--lf-text)!important;background:#f4f6f8!important;border-color:#cfd7e3!important}

/* Current RL: readable data rows and fixed-width registry status columns. */
.table>tbody>tr:nth-of-type(even):not([class*="table-"])>*{--bs-table-bg:#f5f7fa}.lf-table-nowrap{white-space:nowrap}.lf-sites-table .lf-table-nowrap .d-inline-flex{flex-wrap:nowrap!important}

@media(max-width:767.98px){.lf-module-catalog-groups .accordion-button{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:.75rem;row-gap:.35rem;align-items:center;padding-right:1rem}.lf-module-catalog-groups .lf-module-catalog-name{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}.lf-module-catalog-groups .lf-module-catalog-key{grid-column:1;grid-row:2;margin-left:0!important;min-width:0;white-space:normal;overflow-wrap:anywhere}.lf-module-catalog-groups .lf-module-catalog-count{grid-column:1;grid-row:3;justify-self:start;margin-left:0!important;margin-right:0!important}.lf-module-catalog-groups .lf-module-catalog-approved{grid-column:2;grid-row:3;margin-right:0!important;white-space:nowrap}.lf-module-catalog-groups .accordion-button:after{grid-column:2;grid-row:1/3;align-self:center;margin-left:0}.lf-module-catalog-groups .accordion-body{padding:.75rem}.lf-module-catalog-groups .lf-module-version-card{min-width:0}.lf-module-catalog-groups .lf-module-version-card *{max-width:100%}}


/* Mobile package inspection: preserve the desktop row while allowing long paths to wrap. */
@media (max-width: 767.98px) {
  .lf-module-file-toggle { min-width: 0; align-items: flex-start; }
  .lf-module-file-path { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .lf-module-file-size { flex: 0 0 auto; white-space: nowrap; }
}


/* Unified Workspace diff review */
.lf-diff-file-summary { display:flex; justify-content:space-between; align-items:center; gap:.75rem; cursor:pointer; list-style:none; }
.lf-diff-file-summary::-webkit-details-marker { display:none; }
.lf-diff-file-summary::before { content:"›"; color:#6c757d; font-size:1.25rem; transition:transform .15s ease; }
.lf-diff-file[open] > .lf-diff-file-summary::before { transform:rotate(90deg); }
.lf-diff-file-label { display:flex; align-items:center; gap:.5rem; min-width:0; }
.lf-diff-file-label code { overflow-wrap:anywhere; word-break:break-word; }
.lf-diff-badge-added { color:#055d20; background:#dafbe1; border:1px solid #aceebb; }
.lf-diff-badge-modified, .lf-diff-badge-renamed { color:#075985; background:#e0f2fe; border:1px solid #bae6fd; }
.lf-diff-badge-deleted { color:#82071e; background:#ffebe9; border:1px solid #ffcecb; }
.lf-diff { border:1px solid #d0d7de; border-radius:.375rem; overflow:hidden; background:#fff; }
.lf-diff-toolbar { display:flex; align-items:center; gap:.5rem; padding:.5rem .75rem; border-bottom:1px solid #d0d7de; background:#f6f8fa; }
.lf-diff-code { overflow:auto; max-height:34rem; font:12px/20px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; color:#1f2328; }
.lf-diff-row { display:grid; grid-template-columns:3.5rem 3.5rem 1.5rem minmax(max-content,1fr); min-width:100%; width:max-content; }
.lf-diff-line-number { color:#656d76; text-align:right; padding:0 .6rem; border-right:1px solid rgba(27,31,36,.08); user-select:none; }
.lf-diff-sign { text-align:center; user-select:none; }
.lf-diff-text { padding-right:1rem; white-space:pre; }
.lf-diff-add { background:#dafbe1; }
.lf-diff-delete { background:#ffebe9; }
.lf-diff-hunk { grid-template-columns:8.5rem minmax(max-content,1fr); background:#ddf4ff; color:#0969da; }
.lf-diff-hunk .lf-diff-text { grid-column:1 / -1; padding:0 .75rem; }
.lf-diff-inline { padding:0; color:inherit; background:#abf2bc; }
.lf-diff-delete .lf-diff-inline { background:#ffc1ba; }
@media (max-width: 575.98px) {
  .lf-diff-file-summary { align-items:flex-start; }
  .lf-diff-file-summary > .text-secondary { display:none; }
  .lf-diff-row { grid-template-columns:2.65rem 2.65rem 1.25rem minmax(max-content,1fr); }
  .lf-diff-line-number { padding:0 .35rem; }
}

/* Workspace alignment and stable Managed Flow controls. */
.lf-unpublished-changes-panel,.lf-unpublished-changes-panel .lf-diff-file-summary,.lf-unpublished-changes-panel .lf-diff-file-label,.lf-unpublished-changes-panel .lf-diff-file-label code{text-align:left!important}
.lf-unpublished-changes-panel .lf-diff-file-label{flex:1 1 auto;justify-content:flex-start}
.lf-flow-section-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1rem}
.lf-flow-section-header>.form-check{margin:0;white-space:nowrap}
@media(max-width:575.98px){.lf-flow-section-header{grid-template-columns:minmax(0,1fr) auto;gap:.75rem}.lf-flow-section-header>.form-check{white-space:normal}}

/* Shared-source action guidance and mobile-only Managed Flow layout. */
.lf-shared-action-locked{opacity:.55;cursor:not-allowed}
[data-lf-shared-source-card]{scroll-margin-top:5rem}
.lf-shared-source-attention{animation:lf-shared-source-pulse .75s ease-in-out 3;outline:.4rem solid transparent;outline-offset:.15rem}
@keyframes lf-shared-source-pulse{0%,100%{border-color:var(--lf-accent-border);background-color:var(--lf-accent-soft);outline-color:transparent}50%{border-color:#b45309;background-color:#ffd16f;outline-color:rgba(245,158,11,.48)}}
@media(max-width:575.98px){
  .lf-flow-section-header{grid-template-columns:minmax(0,1fr);gap:.75rem}
  .lf-flow-section-header>.form-check{justify-self:start;white-space:normal}
  [data-lf-flow-section]{min-width:0}
  [data-lf-flow-section] .row>[class*="col-"]{min-width:0}
  [data-lf-flow-section] input,[data-lf-flow-section] select{min-width:0}
}
@media(prefers-reduced-motion:reduce){.lf-shared-source-attention{animation:none;outline:3px solid rgba(245,158,11,.5)}}

/* Collapsed Super Admin Defaults cards. */
.lf-defaults-section>summary{list-style:none;cursor:pointer}
.lf-defaults-section>summary::-webkit-details-marker{display:none}
.lf-defaults-section>summary:focus-visible{outline:3px solid var(--lf-primary);outline-offset:-3px}


/* A stable left marker identifies the open file without adding layout width. */
.lf-workspace-current{position:relative;background:var(--bs-primary-bg-subtle)!important;}
.lf-workspace-current::before{content:"";position:absolute;left:-.65rem;top:.45rem;bottom:.45rem;width:4px;border-radius:3px;background:var(--bs-primary);}
.lf-workspace-current a,.lf-workspace-current code{color:var(--bs-primary)!important;}

/* Keep action buttons at their intrinsic height in multi-line flex headers.
   Explicit Bootstrap alignment utilities and full-width buttons still apply. */
.lf-app-body .d-flex:not(.flex-column):not([class*="align-items-"])>.btn{align-self:center}
.lf-module-source-requirements{border-left:3px solid var(--lf-border);padding:.5rem .75rem;margin-top:.5rem;font-size:.82rem}
.lf-module-source-requirements.has-missing{border-left-color:var(--bs-danger);background:var(--bs-danger-bg-subtle,#fff2f2)}
.lf-module-source-requirement+.lf-module-source-requirement{margin-top:.5rem}

/* Module inspection and source editing: constrain code, wrap paths, keep toggles reachable. */
.lf-module-files,.lf-module-files .accordion-item,.lf-module-files .accordion-body{min-width:0;max-width:100%}
.lf-module-file-toggle{gap:.5rem}.lf-module-file-path{min-width:0;flex:1;overflow-wrap:anywhere;text-align:left}
.lf-module-file-size,.lf-module-file-meta{flex-shrink:0;white-space:nowrap}
.lf-module-files pre{max-width:100%;min-width:0;overflow:auto}.lf-module-source-content{max-width:100%;resize:vertical}
@media(max-width:575.98px){.lf-module-file-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:.5rem;row-gap:.35rem;padding:.75rem}.lf-module-file-path{grid-column:1;grid-row:1;font-size:.8rem}.lf-module-file-size,.lf-module-file-meta{grid-column:1;grid-row:2;justify-self:start;margin-left:0!important;margin-right:0!important}.lf-module-file-toggle:after{grid-column:2;grid-row:1/3;margin-left:0;align-self:center}.lf-module-files .accordion-body:not(.p-0){padding:.75rem}.lf-module-source-content{font-size:1rem;min-height:18rem}.lf-module-files pre{font-size:.8rem}}

/* Provisioning code uses an explicit paired foreground/background. */
.lf-agent-provisioning .lf-kb-code-wrap pre{background:#0b1f3a!important;color:#f8fafc!important;max-width:100%;white-space:pre;overflow-x:auto}
.lf-agent-provisioning .lf-kb-code-wrap pre code{color:inherit!important;background:transparent!important}
.lf-agent-provisioning details>summary{cursor:pointer}

/* History becomes labeled records on phones, preserving desktop table layout. */
@media(max-width:767.98px){
  .lf-history-table,.lf-history-table tbody,.lf-history-table tr{display:block;width:100%}
  .lf-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .lf-history-table tbody tr{padding:.75rem 0;border-bottom:1px solid var(--lf-border)}
  .lf-history-table td[data-label]{display:block;position:relative;min-height:3rem;padding:.4rem 1rem .4rem 40%!important;text-align:left!important;border:0;overflow-wrap:anywhere;white-space:normal}
  .lf-history-table td[data-label]::before{content:attr(data-label);position:absolute;left:1rem;top:.4rem;width:calc(40% - 1.5rem);font-weight:600;color:var(--bs-secondary-color);font-size:.82rem}
  .lf-history-table td[colspan]{display:block;width:100%;border:0}
  .lf-history-table code{white-space:normal;overflow-wrap:anywhere}
}

/* Shared label disclosures may extend beyond themed cards. */
.lf-panel:has([data-lf-label-picker]),.lf-panel:has([data-lf-registry-views]){overflow:visible!important}
.lf-registry-views-menu{position:absolute;right:0;z-index:1060;width:min(22rem,calc(100vw - 3rem))}
[data-lf-site-registry-filters] .lf-site-registry-select{min-width:0}
[data-lf-site-registry-filters] .lf-search-box{width:100%}
.lf-filter-tag-remove{border:0;background:transparent;color:inherit;padding:0 .2rem;font-size:1rem;line-height:1.2}
.lf-filter-tag-remove:focus-visible{outline:2px solid var(--lf-primary);outline-offset:2px}
[data-lf-label-tags]>.badge{max-width:100%;white-space:normal;text-align:left}
[data-lf-label-tags]>.badge>span{min-width:0;overflow-wrap:anywhere}
.lf-filter-tag-remove{flex-shrink:0}

/* Registry search stays compact; label categories remain separate at every width. */
.lf-registry-search{width:12rem;max-width:100%;align-self:center}
.lf-site-title,.lf-site-title-content{flex-shrink:0;white-space:nowrap}
.lf-site-title-content{flex:0 0 auto}
.lf-label-affiliate{background:#e8e0fa;color:#503681;border:1px solid #cec0eb}
.lf-label-vertical{background:#dcefe8;color:#1b5945;border:1px solid #b9ddcf}
[data-lf-registry-views]>summary{list-style:none}
[data-lf-registry-views]>summary::-webkit-details-marker{display:none}

/* Site detail actions keep all primary operations visible on phones. */
.lf-site-detail-heading{min-width:0;max-width:100%}
.lf-site-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:100%}
.lf-site-detail-actions>.btn,.lf-site-detail-actions>form>.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;white-space:nowrap;min-height:44px}
.lf-site-module-table .lf-site-module-key{overflow-wrap:anywhere}
@media(max-width:767.98px){
 .lf-site-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .lf-site-detail-actions>form{min-width:0;margin:0}
 .lf-site-detail-actions>.btn,.lf-site-detail-actions>form>.btn{width:100%;font-size:.875rem;padding:.5rem;gap:.3rem}
 .lf-site-detail-actions .lf-action-icon{width:1rem;height:1rem;flex-shrink:0}
 .lf-site-detail-fork{grid-column:1/-1}
 .lf-site-module-table .lf-site-module-key{display:block;margin-left:0!important;margin-top:.2rem}
 .lf-site-module-table th,.lf-site-module-table td{padding-left:.5rem!important;padding-right:.5rem!important}
}

.lf-site-hostname{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
.lf-notification-panel{width:min(350px,calc(100vw - 32px));max-height:70vh;overflow:auto}
.lf-notification-bell{position:relative;flex-shrink:0}
.lf-notification-count{position:absolute;top:-5px;right:-7px;font-size:.65rem}
.lf-topbar .navbar-brand{min-width:0}
.lf-topbar .ms-auto{flex-shrink:0}

/* Anchor phone notifications to the viewport, independent of the bell position. */
@media(max-width:767.98px){
 [data-lf-notification-widget]>.lf-notification-panel{position:fixed!important;inset:calc(4.25rem + .5rem) 1rem auto 1rem!important;transform:none!important;width:auto;max-width:none;max-height:calc(100vh - 6rem);max-height:calc(100dvh - 6rem);overflow:auto;overscroll-behavior:contain}
}

.lf-notification-times{display:flex;flex-wrap:wrap;gap:.15rem .75rem;font-size:.75rem}
.lf-notification-times>span{white-space:nowrap}
.lf-registry-views-menu{max-height:70vh;overflow:auto}
@media(max-width:767.98px){
 .lf-registry-controls{width:100%;min-width:0;flex-wrap:nowrap!important;align-items:center!important}
 .lf-registry-controls>.lf-registry-search{width:auto;min-width:0;flex:1 1 12rem}
 .lf-registry-controls>[data-lf-registry-views]{margin-left:auto;flex-shrink:0}
 [data-lf-registry-views]>.lf-registry-views-menu{position:fixed;inset:auto;left:var(--lf-views-left,1rem);top:var(--lf-views-top,5rem);width:var(--lf-views-width,calc(100vw - 2rem));max-width:none;max-height:var(--lf-views-height,calc(100vh - 6rem));margin-top:0!important;overflow:auto;overscroll-behavior:contain}
}

/* Restoration review shares the Workspace diff colors and responsive line gutters. */
.lf-diff-legend-delete{background:#ffebe9;color:#82071e}
.lf-diff-legend-add{background:#dafbe1;color:#055d20}
.lf-restoration-diff-heading{background:#f6f8fa;font-size:.75rem;border-bottom:1px solid #d0d7de}
.lf-restoration-diff-heading .lf-diff-line-number{padding:.3rem .35rem}
.lf-diff-ending{font-size:.65rem;color:#57606a;border:1px solid currentColor;border-radius:.2rem;padding:0 .2rem}
.lf-editor-tools>summary:focus-visible{outline:2px solid var(--bs-primary);outline-offset:2px}

.lf-workspace-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.lf-workspace-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px}
.lf-asset-layout{display:grid;grid-template-columns:190px minmax(0,1fr)}
.lf-asset-sidebar{background:#f8fafc;border-right:1px solid #e2e8f0;border-radius:1rem 0 0 1rem}
.lf-asset-folder-link{display:block;padding:.55rem .7rem;margin-bottom:.25rem;border-radius:.5rem;text-decoration:none;color:#334155;font-size:.875rem}
.lf-asset-folder-link:hover,.lf-asset-folder-link.active{background:#e7efff;color:#174b97}
.lf-asset-toolbar{display:grid;grid-template-columns:minmax(140px,1fr) 180px auto;gap:.6rem}
.lf-asset-drop,.lf-workspace-asset-drop{border:2px dashed #cbd5e1;border-radius:.7rem;padding:1rem;background:#f8fafc}
.lf-asset-drop{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}
.lf-asset-drop.is-dragging,.lf-workspace-asset-drop.is-dragging{background:#edf4ff;border-color:#2563eb}
.lf-asset-row{display:flex;align-items:center;gap:.75rem;border-bottom:1px solid #e8edf3;padding:.65rem .25rem;min-height:58px}
.lf-asset-open{border:0;background:none;padding:0;display:flex;align-items:center;gap:.75rem;flex:1;min-width:0;text-align:left;text-decoration:none;color:#172b4d;font:inherit}
.lf-asset-open:hover .lf-asset-name{text-decoration:underline;color:#174b97}
.lf-asset-name{overflow-wrap:anywhere;min-width:0;font-size:.875rem}
.lf-asset-icon{width:30px;height:30px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;color:#64748b}
.lf-asset-folder-row .lf-asset-icon{color:#bb8a2c}
.lf-asset-thumb{width:44px;height:38px;object-fit:contain;border-radius:.3rem;background:#f1f5f9;flex-shrink:0}
.lf-asset-select{flex-shrink:0;margin:0!important;width:1.1rem;height:1.1rem}
.lf-asset-size{white-space:nowrap;flex-shrink:0}
.lf-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem}
.lf-asset-grid .lf-asset-row{position:relative;border:1px solid #e2e8f0;border-radius:.6rem;padding:.75rem;flex-direction:column;align-items:stretch}
.lf-asset-grid .lf-asset-select{position:absolute;left:.7rem;top:.7rem;z-index:1;background-color:white}
.lf-asset-grid .lf-asset-open{flex-direction:column;align-items:center;text-align:center;padding-top:.25rem;width:100%}
.lf-asset-grid .lf-asset-thumb{width:100%;height:110px}
.lf-asset-grid .lf-asset-icon{height:70px;width:54px}
.lf-asset-grid .lf-asset-size{text-align:center}
.lf-asset-folder-remove{min-width:32px;min-height:32px;padding:.15rem}
.lf-asset-grid .lf-asset-folder-remove{position:absolute;top:.2rem;right:.2rem}
.lf-asset-empty{padding:2rem 1rem;text-align:center;color:#64748b;grid-column:1/-1}
.lf-asset-loading{opacity:.55;pointer-events:none}
.lf-asset-preview{min-height:180px;display:flex;align-items:center;justify-content:center;gap:1rem;background:#f8fafc;border-radius:.5rem;padding:1rem;flex-direction:column}
.lf-asset-preview img{max-width:100%;max-height:55vh;object-fit:contain}
.lf-asset-review-row{border-bottom:1px solid #e2e8f0;padding:.8rem 0}
@media(max-width:767.98px){
 .lf-workspace-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
 .lf-workspace-actions .btn{grid-column:span 2;flex-direction:column;gap:.3rem;font-size:.78rem;padding:.55rem .25rem}
 .lf-workspace-actions>.lf-site-download{grid-column:span 2}
 .lf-site-download>.btn{width:100%;height:100%}
 .lf-asset-layout{grid-template-columns:minmax(0,1fr)}
 .lf-asset-sidebar{border-right:0;border-bottom:1px solid #e2e8f0;border-radius:1rem 1rem 0 0}
 [data-lf-asset-folder-shortcuts]{display:flex;overflow-x:auto;gap:.4rem}
 .lf-asset-folder-link{white-space:nowrap;margin:0}
 .lf-asset-sidebar>.lf-asset-folder-link{display:inline-block}
 .lf-asset-sidebar>.small:last-child{display:none}
 .lf-asset-toolbar{grid-template-columns:minmax(0,1fr) auto}
 .lf-asset-toolbar>input{grid-column:1/-1}
 .lf-asset-toolbar>select{min-width:0}
 .lf-asset-row{gap:.5rem}
 .lf-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.lf-request-hook-copy{width:100%}
.lf-request-hook-actions{width:100%}
.lf-request-hook-actions>.btn{flex:1 1 0}
@media(min-width:768px){.lf-request-hook-copy{width:auto}.lf-request-hook-actions{width:auto;flex-shrink:0}.lf-request-hook-actions>.btn{flex:0 0 auto}}

/* Managed follow-up settings: distinct headings and compact, readable field groups. */
.lf-managed-flow{border:1px solid #cddbec;border-radius:12px;overflow:hidden;background:#f7f9fc}
.lf-managed-flow-heading{padding:1rem 1.25rem;background:#eaf1fb;border-bottom:1px solid #cddbec}
.lf-managed-flow-exit .lf-managed-flow-heading{background:#e9f5f1;border-bottom-color:#c6ded5}
.lf-managed-flow-body{padding:1rem 1.25rem}
.lf-flow-group{padding:1rem;background:white;border:1px solid #dbe3ed;border-radius:9px;margin-bottom:1rem}
.lf-flow-group p{margin-bottom:.85rem}
.lf-flow-mapping{display:grid;grid-template-columns:minmax(0,1fr) 1.25rem minmax(0,1fr) 2.25rem;align-items:end;gap:.5rem}
.lf-flow-mapping label{min-width:0}.lf-flow-mapping-arrow{text-align:center;padding-bottom:.45rem;color:#63758b}
.lf-flow-remove{min-height:31px}
@media(max-width:575.98px){.lf-managed-flow-heading,.lf-managed-flow-body{padding:1rem}.lf-flow-group{padding:.85rem}.lf-flow-mapping{grid-template-columns:minmax(0,1fr) 2.25rem;padding-bottom:.85rem;border-bottom:1px solid #e3e9f1}.lf-flow-mapping label{grid-column:1}.lf-flow-mapping-arrow{display:none}.lf-flow-mapping .lf-flow-remove{grid-column:2;grid-row:1;align-self:end}}

.lf-asset-parent-row{background:#f5f8fc}
.lf-asset-grid .lf-asset-parent-row{grid-column:1/-1;padding:.6rem .75rem;flex-direction:row}
.lf-asset-grid .lf-asset-parent-row .lf-asset-open{flex-direction:row;justify-content:flex-start;text-align:left}
.lf-asset-grid .lf-asset-parent-row .lf-asset-icon{height:24px;width:24px}
@media(max-width:575.98px){.lf-asset-drop{align-items:stretch;flex-direction:column}.lf-asset-drop>label{text-align:center}}

.lf-site-download>.btn{display:flex;align-items:center;gap:.4rem}
