/* ==== GLASS LOOK (Bryant's design, 11-30) ====
   Only on pages with body.nl2: staff, and companies with "new look" on (Company.new_look). Clients without it see
   no change. To go back: turn the companies' new look off, or remove this file's <link> from base.html. */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("fonts/outfit-variable.e31a3aa5fce3.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.f837d382a885.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.42b95430773b.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.75fb76ec3559.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.3714175d15f3.woff2") format("woff2"); }

body.nl2 {
  --primary: #092768; --primary-dark: #061A47; --soft: #E7EDFA; --select: #F2F5FC; --link: #0B2A6F;
  --ink: #1B2232; --ink-2: #33405A; --muted: #4A5468; --line: rgba(9,39,104,.12); --line-2: rgba(9,39,104,.07); --field: #C9D2E3;
  --ground: #EEF2FA; --paper: rgba(255,255,255,.6);
  --head: "Outfit", "Inter", "Segoe UI", sans-serif; --body: "Inter", "Segoe UI", sans-serif;
  --glass: rgba(255,255,255,.55); --glass-edge: rgba(255,255,255,.78);
  --glass-shadow: 0 18px 40px rgba(9,39,104,.14), 0 2px 6px rgba(9,39,104,.08), inset 0 1px 0 rgba(255,255,255,.9);
  --lite: rgba(255,255,255,.68); --lite-shadow: 0 4px 14px rgba(9,39,104,.07);
  --radius: 16px;
  font-family: var(--body); color: var(--ink);
}
body.nl2:not(.viewer-page) { background: linear-gradient(160deg, #EAF0FB 0%, #F6F3FB 45%, #EEF6F7 100%) fixed; min-height: 100vh; }
/* the soft colour patches behind the glass */
body.nl2:not(.viewer-page)::before, body.nl2:not(.viewer-page)::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(100px); }
body.nl2:not(.viewer-page)::before { top: 120px; left: 18%; width: 560px; height: 520px; background: #7FA2EC; opacity: .42; }
body.nl2:not(.viewer-page)::after { top: 40px; right: -140px; width: 500px; height: 500px; background: #8FD3CF; opacity: .36; }

/* type: main page headers in ALL CAPS (Bryant) */
body.nl2 h1, body.nl2 h2, body.nl2 h3 { font-family: var(--head); color: #0E1A36; }
body.nl2 h1 { text-transform: uppercase; letter-spacing: .5px; font-weight: 700; font-size: 32px; }
body.nl2 h2 { font-weight: 600; letter-spacing: .1px; }

/* glass boxes */
body.nl2 .glass, body.nl2 .card, body.nl2 .lib-card, body.nl2 .result, body.nl2 .sidenav {
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 20px;
}
body.nl2 .card-head { border-bottom-color: var(--line-2); }
body.nl2 .lib-card, body.nl2 .glass-hover { transition: transform .15s ease, box-shadow .15s ease; }
body.nl2 .lib-card:hover { transform: translateY(-2px); border-color: var(--glass-edge); box-shadow: 0 26px 50px rgba(9,39,104,.2), inset 0 1px 0 rgba(255,255,255,.9); }
body.nl2 .lib-icon { background: rgba(231,237,250,.9); color: var(--primary); border-radius: 12px; }
body.nl2 table.data th { background: rgba(255,255,255,.45); }
body.nl2 table.data td, body.nl2 table.data th { border-color: var(--line); }
body.nl2 .list-row:hover, body.nl2 table.data tr:hover td { background: rgba(255,255,255,.75); }
body.nl2 .pill.grey { background: rgba(255,255,255,.75); color: var(--muted); }

/* inputs and buttons: main action solid blue with a shadow, the rest light glass */
body.nl2 .input, body.nl2 select.input, body.nl2 textarea.input { background: var(--lite); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--lite-shadow); border-radius: 12px; }
body.nl2 .input:focus { border-color: var(--primary); }
body.nl2 .btn { border-radius: 12px; }
body.nl2 .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 12px 26px rgba(9,39,104,.3); }
body.nl2 .btn.primary:hover { background: var(--primary-dark); }
body.nl2 .btn.soft, body.nl2 .btn.ghost { background: var(--lite); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--lite-shadow); color: var(--primary); }

/* top bar: solid Forensis blue with a soft shadow; the page row under it is glass */
body.nl2 .top { background: var(--primary); box-shadow: 0 6px 20px rgba(9,39,104,.25); }
body.nl2 .logo-word { font-family: var(--head); letter-spacing: 1.5px; }
body.nl2 .nav a { color: #DCE4F5; border-radius: 10px; }
body.nl2 .nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
body.nl2 .subnav { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.8); }
body.nl2 .sidenav a[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(9,39,104,.25); }
body.nl2 .sidenav a:hover { background: rgba(255,255,255,.8); }
body.nl2 .sidenav a[aria-current="page"]:hover { background: var(--primary); }
.nl-toggle { color: #fff; font-size: 12px; text-decoration: underline; opacity: .85; white-space: nowrap; }
.nl-toggle:hover { color: #fff; opacity: 1; }

/* the "Find a file" box on the usual Libraries page */
body.nl2 .hero h1 { color: #0E1A36; }
body.nl2 .hero-search { background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
body.nl2 .hero-search select { background: rgba(255,255,255,.5); }
body.nl2 .hero-try a { background: var(--lite); border-color: rgba(255,255,255,.95); }

/* ---- Home dashboard ---- */
.dash { display: flex; flex-direction: column; gap: 22px; }
.dash-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 30px 34px; }
.dash-hi { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-kicker { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
body.nl2 .dash-hero h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.dash-search { display: flex; align-items: stretch; max-width: 760px; margin-top: 8px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); border-radius: 16px; box-shadow: var(--lite-shadow); overflow: hidden; }
.dash-search:focus-within { border-color: var(--primary); }
.dash-search-icon { display: flex; align-items: center; padding: 0 4px 0 16px; color: var(--primary); }
.dash-search input { flex: 1 1 200px; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 12px; min-height: 54px; color: var(--ink); }
.dash-search .btn { border-radius: 0 16px 16px 0; min-height: 54px; padding: 0 26px; }
.dash-logo-box { flex: 1 1 220px; display: flex; align-items: center; justify-content: center; min-height: 110px; }
.dash-logo { max-width: 260px; max-height: 120px; width: auto; height: auto; display: block; }
.dash-logo-name { font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--primary); text-align: center; letter-spacing: .5px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.dash-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
a.dash-stat:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 26px 50px rgba(9,39,104,.2), inset 0 1px 0 rgba(255,255,255,.9); }
.dash-stat b { font-family: var(--head); font-size: 34px; line-height: 1.1; color: #0E1A36; }
.dash-stat span { font-size: 14px; color: var(--muted); font-weight: 500; }
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.dash-box { padding: 22px 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-box h2 { font-size: 20px; margin-bottom: 8px; }
.dash-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); min-height: 56px; }
.dash-row:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.dash-row-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(231,237,250,.95); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.dash-row-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dash-row-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row-t span { font-size: 13px; color: var(--muted); }
.dash-go { font-size: 22px; color: var(--muted); }
.dash-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dash-act { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: var(--ink); min-height: 92px; transition: transform .15s ease, box-shadow .15s ease; }
.dash-act b { font-family: var(--head); font-size: 18px; color: #0E1A36; }
.dash-act span { font-size: 13px; color: var(--muted); }
.dash-act:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 26px 50px rgba(9,39,104,.2), inset 0 1px 0 rgba(255,255,255,.9); }
.dash-act.solid { background: var(--primary); color: #fff; box-shadow: 0 16px 34px rgba(9,39,104,.32); border: 1px solid var(--primary); }
.dash-act.solid b { color: #fff; }
.dash-act.solid span { color: #DCE4F5; }
.dash-act.solid:hover { background: var(--primary-dark); color: #fff; }
@media (max-width: 640px) {
  .dash-hero { padding: 22px 18px; }
  .dash-search { flex-wrap: wrap; }
  .dash-search .btn { flex: 1 1 100%; border-radius: 0; }
  .dash-two { grid-template-columns: 1fr; }
  .dash-stat b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .dash-stat, .dash-act, body.nl2 .lib-card { transition: none; } .dash-stat:hover, .dash-act:hover, body.nl2 .lib-card:hover { transform: none; } }
/* ==== END GLASS LOOK ==== */
/* 11-30 boxes in production: the stage under the number */
.nl2 .dash-stat-sub { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }

/* ==== PHASE 3 (Bryant's FT Service pages, 11-30): Pickups & supplies, Request a file, Users, E-sign ==== */
/* every button that is not the main one: light glass */
body.nl2 .btn:not(.primary):not(.danger):not(.link):not(.signout) { background: var(--lite); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--lite-shadow); color: var(--primary); font-weight: 600; }
body.nl2 .btn:not(.primary):not(.danger):not(.link):not(.signout):hover { background: rgba(255,255,255,.9); }
body.nl2 .btn.danger { border-radius: 12px; }
body.nl2 .card.field, body.nl2 form.card { padding: 24px; gap: 14px; }
body.nl2 .card h2 { font-size: 20px; }
body.nl2 .head-row h1 + p, body.nl2 h1 + p.muted, body.nl2 h1 + p { color: var(--muted); }
/* status pills */
body.nl2 .pill { border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 13px; }
body.nl2 .pill.ok { background: #E6F4EE; color: #14684A; }
body.nl2 .pill.warn { background: #FFF1E3; color: #8A4300; }
body.nl2 .pill.bad { background: #FDE8E8; color: #A3231F; }
/* Pickups & supplies: each supply a light box */
body.nl2 form.card .list-row { background: var(--lite); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--lite-shadow); border-radius: 14px; padding: 14px; }
body.nl2 form.card .list-row .input.pg { width: 90px; background: #fff; border: 1px solid var(--field); }
body.nl2 table.data td { padding-top: 12px; padding-bottom: 12px; }
/* Request a file: "How do you want it?" as three choices, the picked one solid blue */
body.nl2 .howopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
body.nl2 .howopts legend { margin-bottom: 8px; }
body.nl2 .howopts label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; cursor: pointer; font-weight: 600; min-height: 52px;
  background: var(--lite); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--lite-shadow); transition: background .15s ease, box-shadow .15s ease; }
body.nl2 .howopts label.opt:hover { background: rgba(255,255,255,.92); }
body.nl2 .howopts label.opt:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 12px 26px rgba(9,39,104,.28); }
body.nl2 .howopts label.opt:has(input:focus-visible) { outline: 3px solid #7FA2EC; outline-offset: 2px; }
body.nl2 .howopts label.opt input { margin-top: 3px; accent-color: #fff; }
/* Users & permissions: a round badge with the initials */
body.nl2 td.u-cell { display: flex; align-items: center; gap: 12px; }
body.nl2 .u-ini { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
body.nl2 .u-who { min-width: 0; }
body.nl2 table.data tr.sel td { background: rgba(231,237,250,.9); }
/* E-sign: three numbers at a glance, the status chips as a glass bar */
body.nl2 .es-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
body.nl2 .es-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
body.nl2 .es-stat:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 26px 50px rgba(9,39,104,.2), inset 0 1px 0 rgba(255,255,255,.9); }
body.nl2 .es-stat b { font-family: var(--head); font-size: 30px; color: #0E1A36; line-height: 1.1; }
body.nl2 .es-stat span { font-size: 14px; color: var(--muted); }
body.nl2 .es-filter .chips { background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-edge); box-shadow: var(--lite-shadow); border-radius: 14px; padding: 6px; flex: 0 1 auto; }
body.nl2 .es-filter .chip { border: 0; background: transparent; border-radius: 10px; padding: 9px 14px; }
body.nl2 .es-filter .chip:hover { background: rgba(255,255,255,.85); }
body.nl2 .es-filter .chip.on { background: var(--primary); color: #fff; font-weight: 600; }
body.nl2 .es-filter .chip.on .muted { color: #DCE4F5; }
@media (prefers-reduced-motion: reduce) { body.nl2 .es-stat { transition: none; } body.nl2 .es-stat:hover { transform: none; } }
/* ==== END PHASE 3 ==== */
/* 11-30 TOP BAR ONE LINE (Chris "yes"): the tabs and + Add-ons stay on one line next to the company / Libraries; under
   1500 px the name next to the round badge is left out (it is on the badge's My account page); under 1181 px the tabs go
   under the company line as before */
body.nl2 .logo-word { white-space: nowrap; }
@media (min-width: 1181px) { body.nl2 .svc-tabs { flex-wrap: nowrap; } body.nl2 .svc-tabs a { white-space: nowrap; } }
@media (max-width: 1500px) { body.nl2 .me-text { display: none; } body.nl2 .logo-word { font-size: 15px; } }
/* 11-30 LOGO TWO LINES (Chris: "put my files under FT Forward") */
body.nl2 .logo-word.lw2 { display: flex; flex-direction: column; line-height: 1.05; font-size: 17px; }
body.nl2 .logo-word.lw2 b { font-weight: 700; letter-spacing: 1.5px; }
body.nl2 .logo-word.lw2 small { font-size: 11px; font-weight: 600; letter-spacing: 3px; opacity: .85; margin-top: 3px; }
/* ==== PHASE 4 (Bryant's library, search and viewer pages, 11-30) ==== */
/* inside a library: the file table on fewer lines - names keep together, the Pages column is left out (PDFs stay) */
body.nl2 table.data.files td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
body.nl2 table.data.files th { white-space: nowrap; font-size: 12px; letter-spacing: .04em; }
body.nl2 table.data.files .folder-link { white-space: nowrap; font-weight: 600; text-decoration: none; }
body.nl2 table.data.files .folder-link:hover { text-decoration: underline; }
body.nl2 table.data.files td:nth-child(3), body.nl2 table.data.files td.right, body.nl2 table.data.files td.nowrap { white-space: nowrap; }
body.nl2 table.data.files td:nth-child(n+4):not(.right):not(.nowrap) { min-width: 96px; }
body.nl2 table.data.files th.right:nth-last-child(2), body.nl2 table.data.files td.right.muted { display: none; }
body.nl2 table.data.files tbody td.right:not(.muted)::after { content: " PDFs"; font-size: 12px; color: var(--muted); font-weight: 400; }
body.nl2 table.data.files tr:hover td { background: rgba(255,255,255,.85); }
/* search results: the whole card opens the file, lifts on hover; the matched field in yellow */
body.nl2 .results { gap: 14px; }
body.nl2 .result { position: relative; padding: 18px 20px; transition: transform .15s ease, box-shadow .15s ease; }
body.nl2 .result:hover { transform: translateY(-2px); box-shadow: 0 26px 50px rgba(9,39,104,.2), inset 0 1px 0 rgba(255,255,255,.9); }
body.nl2 .result-title { font-family: var(--head); font-size: 17px; font-weight: 600; color: #0E1A36; text-decoration: none; }
body.nl2 .result-title::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
body.nl2 .result-title:hover { color: var(--primary); }
body.nl2 .result-title:focus-visible { outline: 3px solid #7FA2EC; outline-offset: 3px; }
body.nl2 .result .pill { position: relative; z-index: 1; background: #FFF4C2; color: #6B5200; }
body.nl2 .result .pill.grey { background: rgba(231,237,250,.95); color: var(--primary); }
body.nl2 .result-info { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--ink-2); }
body.nl2 .result-info b { font-weight: 500; color: var(--muted); }
/* the document viewer: the soft background, glass pages list / details, the page with a deep shadow, Download in white */
body.nl2.viewer-page { background: linear-gradient(160deg, #EAF0FB 0%, #F6F3FB 45%, #EEF6F7 100%) fixed; }
body.nl2 .viewer-top { background: var(--primary); box-shadow: 0 6px 20px rgba(9,39,104,.25); }
body.nl2 .viewer-top .btn { background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; box-shadow: none !important; border-radius: 12px; }
body.nl2 .viewer-top .btn:hover { background: rgba(255,255,255,.22) !important; }
body.nl2 .viewer-top .btn.light { background: #fff !important; color: var(--primary) !important; border-color: #fff !important; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.18) !important; }
body.nl2 .viewer-body { background: transparent; gap: 16px; padding: 16px; }
body.nl2 .thumbs-wrap, body.nl2 .doc-side { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 18px; }
body.nl2 .thumbs-col, body.nl2 .thumbs-bar { background: transparent; }
body.nl2 .doc-side { padding: 18px 20px; }
body.nl2 .thumbs button { border-radius: 8px; background: #fff; }
body.nl2 .thumbs button.on { outline: 3px solid #2D61C9; outline-offset: 1px; }
body.nl2 .stage, body.nl2 .page-box { background: transparent; }
body.nl2 .stage .toolbar { background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-edge); box-shadow: var(--lite-shadow); border-radius: 14px; }
body.nl2 .page-box canvas { box-shadow: 0 24px 60px rgba(9,39,104,.22); border-radius: 6px; }
body.nl2 .doc-side .ai-box { background: var(--lite); border: 1px solid rgba(255,255,255,.95); border-radius: 14px; box-shadow: var(--lite-shadow); }
body.nl2 .doc-side .list-row { border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { body.nl2 .result { transition: none; } body.nl2 .result:hover { transform: none; } }
/* ==== END PHASE 4 ==== */

/* ==== PHASE 5 (Bryant's other pages + the phone, 11-30) ==== */
/* FT Transfer / FT Archive sub-menu: light glass strip, not grey */
body.nl2 .subnav { background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(9,39,104,.08); box-shadow: 0 6px 18px rgba(9,39,104,.06); }
body.nl2 .subnav-in a { color: #44506A; font-weight: 600; }
body.nl2 .subnav-in a[aria-current], body.nl2 .subnav-in a.on { color: var(--primary); }
/* empty lists sit in a light glass box */
body.nl2 p.empty { background: var(--lite); border: 1px dashed rgba(9,39,104,.18); border-radius: 16px; padding: 22px; text-align: center; margin-top: 14px; }
/* Activity: the two filters and Show on one line */
body.nl2 .head-row form.head-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
body.nl2 .head-row form.head-row .input { width: auto; min-width: 170px; }
/* Company info: nicer file pick and tick boxes */
body.nl2 input[type=file] { font: inherit; font-size: 14px; color: var(--muted); }
body.nl2 input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--primary); background: var(--lite); border: 1px solid rgba(9,39,104,.15); border-radius: 10px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
body.nl2 input[type=checkbox] { accent-color: var(--primary); }
/* forms: a little air between fields */
body.nl2 form.card .field + .field, body.nl2 .card.field .field + .field { margin-top: 4px; }
body.nl2 .crumbs { margin-bottom: 6px; }

/* ---- the phone (up to 640 px) ---- */
@media (max-width: 640px) {
  /* top bar: tabs scroll sideways without a scrollbar, smaller */
  body.nl2 .svc-tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.nl2 .svc-tabs::-webkit-scrollbar { display: none; }
  body.nl2 .svc-tabs a { font-size: 14px; padding: 7px 10px; }
  /* home: the 4 numbers 2 by 2 */
  body.nl2 .dash-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.nl2 .dash-stat { padding: 16px; }
  body.nl2 .dash-stat b { font-size: 26px; }
    /* library table: each file is a card - name on top, its details on one line under it */
  body.nl2 .table-wrap:has(table.data.files) { overflow: visible; }
  body.nl2 table.data.files, body.nl2 table.data.files tbody { display: block; width: 100%; }
  body.nl2 table.data.files thead { display: none; }
  body.nl2 table.data.files tr { display: block; position: relative; padding: 12px 14px 12px 46px; border-bottom: 1px solid rgba(9,39,104,.08); }
  body.nl2 table.data.files td { display: inline; padding: 0; border: 0; min-width: 0 !important; white-space: normal !important; font-size: 13px; color: var(--muted); background: none !important; }
  body.nl2 table.data.files td:first-child { position: absolute; left: 14px; top: 13px; }
  body.nl2 table.data.files td:nth-child(2) { display: block; font-size: 15px; color: #0E1A36; margin-bottom: 3px; }
  body.nl2 table.data.files td:nth-child(n+4):not(:empty)::before { content: " · "; color: #A5AEC2; }
  body.nl2 table.data.files td.right.muted { display: none; }
  body.nl2 table.data.files td:nth-child(3) { color: #0E1A36; font-weight: 600; }
  /* buttons in a row wrap neatly, two per line */
  /* FT Service: the left menu (chips above the page) a bit smaller */
  body.nl2 .sidenav { gap: 4px; padding: 8px; margin-bottom: 12px; }
  body.nl2 .sidenav a { padding: 7px 12px; font-size: 14px; }
  /* Activity filters stack, full width */
  body.nl2 .head-row form.head-row .input { flex: 1 1 100%; min-width: 0; }
  /* nothing wider than the phone: wide tables (users, activity, shared links) scroll inside their box */
  body.nl2 main > * { min-width: 0; max-width: 100%; }
  body.nl2 .card.flush { overflow: hidden; }
  body.nl2 .table-wrap { overflow-x: auto !important; }
  /* forms full width, two-column grids one column */
  body.nl2 .form-grid { grid-template-columns: 1fr; }
  body.nl2 h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  /* viewer on the phone: smaller buttons in two rows, no Print, the file's documents as a sideways strip above the page */
  body.nl2 .viewer-top { flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
  body.nl2 .viewer-top .back { flex: 1 1 100%; }
  body.nl2 .viewer-top .t { flex: 1 1 100%; margin-bottom: 4px; }
  body.nl2 .viewer-top .t b { font-size: 18px; }
  body.nl2 .viewer-top .btn { padding: 6px 11px; font-size: 13px; min-height: 0; border-radius: 10px; }
  body.nl2 .viewer-top [data-print] { display: none; }
  body.nl2 .viewer-body { flex-wrap: wrap; }
  body.nl2 #thumbs-wrap:has(#lp-tabs) { display: block; width: 100% !important; flex: 1 1 100%; order: -1; height: auto; padding: 0; }
  body.nl2 #thumbs-wrap:has(#lp-tabs) .thumbs-col { width: auto; height: auto; }
  body.nl2 #thumbs-wrap .lp-tabs, body.nl2 #thumbs-wrap .lp-pages, body.nl2 #thumbs-wrap .thumbs-handle { display: none; }
  body.nl2 #thumbs-wrap .lp-docs, body.nl2 #thumbs-wrap .lp-docs[hidden] { display: flex; flex-direction: row; overflow-x: auto; gap: 8px; padding: 10px 14px; scrollbar-width: none; }
  body.nl2 #thumbs-wrap .lp-doc { flex: 0 0 auto; background: var(--lite); border: 1px solid rgba(9,39,104,.1); max-width: 70vw; }
  body.nl2 #thumbs-wrap .lp-doc .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.nl2 .toolbar { flex-wrap: wrap; gap: 4px 6px; padding: 8px 10px; }
  body.nl2 .toolbar .sep, body.nl2 .toolbar label[for=pg] { display: none; }
  body.nl2 .toolbar .tb { width: 34px; height: 34px; }
  body.nl2 .toolbar .tb.fit { width: auto; padding: 0 10px; white-space: nowrap; }
  body.nl2 .toolbar #findform { flex: 1 1 100%; }
  body.nl2 .toolbar #findform input { width: 100%; }
}
/* ==== END PHASE 5 ==== */

/* ===== SIGN-IN 12-02 (everyone on the new look): the sign-in, code and password pages in the glass look ===== */
body.nl2 .auth { padding: 22px; gap: 22px; background: transparent; }
body.nl2 .auth-brand { border-radius: 22px; background: linear-gradient(150deg, #0B2A6F 0%, #143A94 55%, #2F64E0 100%);
  box-shadow: 0 24px 60px rgba(11, 42, 111, .32); position: relative; overflow: hidden; }
body.nl2 .auth-brand::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, .28), transparent 65%); pointer-events: none; }
body.nl2 .auth-brand > * { position: relative; z-index: 1; }
body.nl2 .auth-brand .facts span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 12px; }
body.nl2 .auth-form { align-self: center; justify-self: center; width: 100%; max-width: 460px; margin: auto;
  background: rgba(255, 255, 255, .64); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 20px; padding: 34px 32px; box-shadow: 0 18px 50px rgba(15, 35, 90, .14); }
body.nl2 .auth-form .input { background: #fff; border-radius: 10px; }
body.nl2 .auth-form .btn.primary { border-radius: 10px; box-shadow: 0 8px 20px rgba(9, 39, 104, .28); }
body.nl2 .auth-form .hint, body.nl2 .auth-form .msg { border-radius: 12px; }
@media (max-width: 860px) { body.nl2 .auth { padding: 12px; gap: 12px; } body.nl2 .auth-brand { border-radius: 16px; } body.nl2 .auth-form { padding: 24px 18px; } }
body.nl2 .auth-brand h1 { color: #fff; }
body.nl2 .auth-brand p { color: rgba(255, 255, 255, .86); }
body.nl2 .auth-brand .kicker { color: #9FE7DA; }
