/* NTFS Permission Audit — application theme (on top of Bootstrap 5) */
:root {
  --pa-ink: #0f172a;
  --pa-ink-2: #334155;
  --pa-muted: #64748b;
  --pa-faint: #94a3b8;
  --pa-line: #e2e8f0;
  --pa-line-2: #edf1f6;
  --pa-bg: #f3f5f9;
  --pa-card: #ffffff;
  --pa-accent: #2563eb;
  --pa-accent-ink: #1d4ed8;
  --pa-accent-soft: #e8efff;
  /* Left column: FiFo green (#619627). Text on it is white for contrast. */
  --pa-side: #619627;
  --pa-side-2: #4e7a1f;
  --pa-side-ink: #ffffff;
  --pa-side-muted: rgba(255,255,255,.82);
  --pa-ok: #067647;
  --pa-ok-soft: #e6f6ee;
  --pa-warn: #b54708;
  --pa-warn-soft: #fef3e2;
  --pa-bad: #b42318;
  --pa-bad-soft: #fdecea;
  --pa-radius: 10px;
  --pa-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--pa-ink);
  --bs-body-bg: var(--pa-bg);
  --bs-link-color-rgb: 29, 78, 216;
  --bs-border-color: var(--pa-line);
  --bs-primary: var(--pa-accent);
  --bs-primary-rgb: 37, 99, 235;
}

html, body { height: 100%; }
body { font-size: .9rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.tabular, .table td.num, .kpi-value { font-variant-numeric: tabular-nums; }
.mono, .path { font-family: var(--pa-mono); font-size: .82rem; }
.path { word-break: break-all; color: var(--pa-ink-2); }
.text-muted, .muted { color: var(--pa-muted) !important; }
.small-caps { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 600; color: var(--pa-muted); }

/* ------------------------------------------------------------------ shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: 0 0 248px; background: var(--pa-side); color: var(--pa-side-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1030;
}
.sidebar .brand { padding: 18px 18px 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 34px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.brand-logo { display: block; max-width: 100%; max-height: 40px; background: #fff; border-radius: 7px; padding: 4px 8px; }
.brand-text { line-height: 1.15; min-width: 0; }
.brand-title { color: #fff; font-weight: 650; font-size: .95rem; letter-spacing: .01em; }
.brand-sub { color: var(--pa-side-muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-side { padding: 10px 10px; overflow-y: auto; flex: 1; }
.nav-side .nav-label { color: var(--pa-side-muted); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 14px 10px 6px; }
.nav-side a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--pa-side-ink);
  font-size: .87rem; margin-bottom: 2px; transition: background .12s, color .12s;
}
.nav-side a i { font-size: 1.02rem; width: 18px; text-align: center; opacity: .85; }
.nav-side a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.nav-side a.active { background: rgba(0,0,0,.18); color: #fff; box-shadow: inset 3px 0 0 #fff; font-weight: 600; }
.nav-side a.active i { color: #fff; opacity: 1; }
.nav-side .count { margin-left: auto; font-size: .7rem; background: rgba(255,255,255,.08); border-radius: 20px; padding: 1px 8px; color: var(--pa-side-ink); }
.side-footer { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: .78rem; display: flex; gap: 10px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--pa-side-2); display: grid; place-items: center; color: #fff; font-weight: 600; flex: 0 0 30px; font-size: .8rem; }
.side-footer .who { min-width: 0; }
.side-footer .who div:first-child { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-footer .role { color: var(--pa-side-muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--pa-line); position: sticky; top: 0; z-index: 1020;
}
.topbar .crumbs { font-size: .82rem; color: var(--pa-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs a { color: var(--pa-muted); }
.topbar .crumbs .sep { margin: 0 6px; color: var(--pa-faint); }
.topbar .search { margin-left: auto; position: relative; width: 340px; max-width: 45vw; }
.topbar .search input { padding-left: 34px; border-radius: 20px; background: var(--pa-bg); border-color: transparent; height: 36px; font-size: .85rem; }
.topbar .search input:focus { background: #fff; border-color: #bfd3fb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.topbar .search > i { position: absolute; left: 12px; top: 9px; color: var(--pa-faint); }
.menu-toggle { display: none; }
.content { padding: 26px 28px 48px; max-width: 1600px; width: 100%; flex: 1 0 auto; }

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.38rem; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.page-head .lead { color: var(--pa-muted); font-size: .88rem; margin: 4px 0 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ cards & tables */
.card { border: 1px solid var(--pa-line); border-radius: var(--pa-radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); background: var(--pa-card); }
.card-header { background: transparent; border-bottom: 1px solid var(--pa-line-2); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.card-header h2, .card-header h3 { font-size: .98rem; font-weight: 640; margin: 0; }
.card-header .sub { color: var(--pa-muted); font-size: .8rem; }
.card-header .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 16px 18px; }

.table { --bs-table-bg: transparent; margin: 0; font-size: .855rem; }
.table > :not(caption) > * > * { padding: .62rem .9rem; border-bottom-color: var(--pa-line-2); vertical-align: middle; }
.table thead th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pa-muted); font-weight: 600;
  background: #f8fafc; border-bottom: 1px solid var(--pa-line); white-space: nowrap;
}
.table-scroll thead th { position: sticky; top: 0; z-index: 2; }
.table tbody tr:hover { background: #f8fbff; }
.table tr.row-inherited td { color: var(--pa-muted); }
.table tr.row-inherited .principal-link span { color: var(--pa-ink-2); }
.table tr.row-deny { background: #fff7f6; }
.table tr.tone-added { background: #f1fbf5; }
.table tr.tone-removed { background: #fff5f4; }
.table tr.tone-changed { background: #fffaf0; }
.table-scroll { max-height: 640px; overflow: auto; }
.empty { padding: 34px 20px; text-align: center; color: var(--pa-muted); }
.empty i { font-size: 1.8rem; display: block; margin-bottom: 8px; color: var(--pa-faint); }

/* ------------------------------------------------------------------ badges */
.principal-link { display: inline-flex; align-items: center; gap: 7px; color: var(--pa-ink); font-weight: 500; }
.principal-link:hover span { text-decoration: underline; }
.kind-icon { color: var(--pa-muted); font-size: .95rem; }
.rights { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; border: 1px solid transparent; }
.rights-l4 { background: #fdecea; color: #a8160c; border-color: #f9d0cb; }
.rights-l3 { background: #fff3e0; color: #a14a05; border-color: #fbdcb0; }
.rights-l2 { background: #fff8db; color: #8a5a00; border-color: #f4e3a1; }
.rights-l1 { background: #e8efff; color: #1d4ed8; border-color: #cddcff; }
.rights-l0, .rights-none { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.rights-deny { background: #b42318; color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: var(--pa-ink-2); font-weight: 500; white-space: nowrap; }
.tag-protected { background: #f3e8ff; color: #6b21a8; }
.tag-explicit { background: var(--pa-accent-soft); color: var(--pa-accent-ink); }
.tag-error { background: var(--pa-warn-soft); color: var(--pa-warn); }
.tag-disabled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.status { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status-ok { color: var(--pa-ok); }
.status-warn { color: var(--pa-warn); }
.status-fail { color: var(--pa-bad); }
.status-muted { color: var(--pa-muted); }
.status-running { color: var(--pa-accent); }
.status-running .spinner-grow { width: .6rem; height: .6rem; }
.sev { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; }
.sev-high { background: #fdecea; color: #a8160c; }
.sev-medium { background: #fff3e0; color: #a14a05; }
.sev-low { background: #fff8db; color: #8a5a00; }
.sev-info { background: #eef2f7; color: #475569; }
.chg { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.chg-add { background: var(--pa-ok-soft); color: var(--pa-ok); }
.chg-rem { background: var(--pa-bad-soft); color: var(--pa-bad); }
.chg-mod { background: #fff4db; color: #8a5a00; }
.chg-base { background: #eef2f7; color: #475569; }
.cat { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 30px; font-size: .95rem; }
.cat-ace { background: #e8efff; color: #1d4ed8; }
.cat-share { background: #e0f2fe; color: #0369a1; }
.cat-owner { background: #f3e8ff; color: #7e22ce; }
.cat-inherit { background: #fce7f3; color: #be185d; }
.cat-member { background: #dcfce7; color: #15803d; }
.cat-item { background: #fef3c7; color: #a16207; }
.cat-scan { background: #f1f5f9; color: #475569; }
.change-arrow { color: var(--pa-faint); margin: 0 4px; }

/* ------------------------------------------------------------------ dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 40px; }
.kpi-label { color: var(--pa-muted); font-size: .78rem; font-weight: 500; }
.kpi-value { font-size: 1.55rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.kpi-sub { color: var(--pa-faint); font-size: .75rem; }
.ico-blue { background: #e8efff; color: #1d4ed8; }
.ico-green { background: #e6f6ee; color: #067647; }
.ico-amber { background: #fff3e0; color: #b54708; }
.ico-red { background: #fdecea; color: #b42318; }
.ico-violet { background: #f3e8ff; color: #7e22ce; }
.ico-slate { background: #eef2f7; color: #334155; }
.finding { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--pa-line-2); color: var(--pa-ink); }
.finding:last-child { border-bottom: 0; }
.finding:hover { background: #f8fbff; text-decoration: none; }
.finding .ft { font-weight: 560; font-size: .86rem; }
.finding .fd { color: var(--pa-muted); font-size: .76rem; }
.finding .fc { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 1rem; }
.finding.zero .fc { color: var(--pa-faint); }
.finding.zero .sev { opacity: .45; }
.chart-wrap { height: 220px; position: relative; }
.feed-item { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--pa-line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .meta { color: var(--pa-muted); font-size: .76rem; }
.feed-item .what { font-size: .85rem; }
.scanner-alert { border-radius: var(--pa-radius); padding: 12px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.scanner-alert.bad { background: var(--pa-warn-soft); color: #7a2e0e; border: 1px solid #fbd9a8; }

/* ------------------------------------------------------------------ browse */
.browse { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 18px; align-items: start; }
.tree-card { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.tree { overflow: auto; padding: 8px 6px 12px; flex: 1; font-size: .85rem; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; }
.tree > ul { padding-left: 0; }
.tree li { position: relative; }
.tree .node { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; cursor: pointer; color: var(--pa-ink); white-space: nowrap; }
.tree .node:hover { background: #f1f5fb; text-decoration: none; }
.tree .node.selected { background: var(--pa-accent-soft); color: var(--pa-accent-ink); font-weight: 600; }
.tree .twisty { width: 16px; flex: 0 0 16px; color: var(--pa-faint); display: grid; place-items: center; font-size: .7rem; transition: transform .12s; }
.tree .twisty.open { transform: rotate(90deg); }
.tree .twisty.leaf { visibility: hidden; }
.tree .fi { color: #e3a008; }
.tree .fi.share { color: var(--pa-accent); }
.tree .marks { margin-left: 4px; display: inline-flex; gap: 3px; font-size: .72rem; }
.tree .marks .m-prot { color: #7e22ce; }
.tree .marks .m-expl { color: var(--pa-accent); }
.tree .marks .m-err { color: var(--pa-warn); }
.tree .loading { color: var(--pa-faint); padding: 3px 26px; font-size: .8rem; }
.item-head { display: flex; gap: 14px; align-items: flex-start; }
.item-head .big-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff7e0; color: #e3a008; display: grid; place-items: center; font-size: 1.4rem; flex: 0 0 46px; }
.item-head h1 { font-size: 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 22px; padding: 14px 18px; border-top: 1px solid var(--pa-line-2); }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pa-muted); font-weight: 600; margin-bottom: 2px; }
.facts dd { margin: 0; font-size: .86rem; }
.breadcrumb-path { font-family: var(--pa-mono); font-size: .8rem; color: var(--pa-muted); word-break: break-all; }
.breadcrumb-path a { color: var(--pa-muted); }
.breadcrumb-path a:hover { color: var(--pa-accent); }

/* ------------------------------------------------------------------ forms & controls */
.btn { font-size: .85rem; font-weight: 550; border-radius: 8px; }
.btn-sm { font-size: .78rem; border-radius: 7px; }
.btn-primary { --bs-btn-bg: var(--pa-accent); --bs-btn-border-color: var(--pa-accent); --bs-btn-hover-bg: var(--pa-accent-ink); --bs-btn-hover-border-color: var(--pa-accent-ink); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--pa-line); --bs-btn-hover-bg: #f6f8fb; --bs-btn-hover-border-color: #cfd8e3; }
.btn-export { display: inline-flex; gap: 6px; align-items: center; }
.form-control, .form-select { font-size: .87rem; border-radius: 8px; border-color: #d6dde7; }
.form-control:focus, .form-select:focus { border-color: #9dbafb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-label { font-weight: 560; font-size: .82rem; color: var(--pa-ink-2); margin-bottom: 5px; }
.form-text { color: var(--pa-muted); font-size: .77rem; }
.form-check-label { font-size: .86rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--pa-line-2); }
.filters .f { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--pa-muted); }
.toggle-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.form-switch .form-check-input { cursor: pointer; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice-cards label { border: 1px solid var(--pa-line); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: block; height: 100%; }
.choice-cards input { margin-right: 6px; }
.choice-cards label:has(input:checked) { border-color: var(--pa-accent); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.choice-cards .desc { color: var(--pa-muted); font-size: .77rem; margin-top: 4px; }
.weekday-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday-picks label { border: 1px solid var(--pa-line); border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: .82rem; user-select: none; }
.weekday-picks input { display: none; }
.weekday-picks label:has(input:checked) { background: var(--pa-accent); border-color: var(--pa-accent); color: #fff; }
.group-list { border: 1px solid var(--pa-line); border-radius: 10px; }
.group-list .gi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--pa-line-2); }
.group-list .gi:last-child { border-bottom: 0; }
.group-list .gi .sid { color: var(--pa-faint); font-family: var(--pa-mono); font-size: .72rem; }
.group-list .empty-note { padding: 12px; color: var(--pa-muted); font-size: .83rem; }

/* typeahead */
.ta { position: relative; }
.ta-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--pa-line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15,23,42,.14); z-index: 1060; max-height: 340px; overflow: auto; display: none;
}
.ta-menu.show { display: block; }
.ta-item { display: flex; gap: 10px; padding: 8px 12px; cursor: pointer; align-items: center; }
.ta-item:hover, .ta-item.active { background: #f1f6ff; }
.ta-item .n { font-weight: 550; font-size: .85rem; }
.ta-item .d { color: var(--pa-muted); font-size: .75rem; }
.ta-item .k { margin-left: auto; font-size: .7rem; color: var(--pa-faint); text-transform: uppercase; letter-spacing: .05em; }
.ta-empty { padding: 10px 12px; color: var(--pa-muted); font-size: .82rem; }

/* tabs */
.nav-tabs-line { border-bottom: 1px solid var(--pa-line); padding: 0 18px; gap: 4px; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--pa-muted); font-weight: 560; font-size: .86rem; padding: 12px 10px; border-radius: 0; }
.nav-tabs-line .nav-link.active { color: var(--pa-accent-ink); border-bottom-color: var(--pa-accent); background: transparent; }
.nav-tabs-line .nav-link .badge { font-weight: 600; background: #eef2f7; color: var(--pa-ink-2); margin-left: 4px; }

/* pager */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--pa-line-2); font-size: .82rem; color: var(--pa-muted); }
.pagination { margin: 0; --bs-pagination-font-size: .8rem; --bs-pagination-padding-x: .65rem; --bs-pagination-padding-y: .3rem; }

/* setup */
.setup-body { display: flex; flex-direction: column; }
.setup-body > .setup-wrap, .setup-body > main { flex: 1 0 auto; width: 100%; }
.setup-body { background: radial-gradient(1200px 600px at 20% -10%, #dbe7ff 0%, rgba(219,231,255,0) 60%), var(--pa-bg); min-height: 100vh; }
.setup-wrap { max-width: 920px; margin: 0 auto; padding: 48px 20px; }
.setup-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.setup-brand .brand-mark { width: 42px; height: 42px; }
.setup-steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.setup-steps .st { flex: 1; min-width: 110px; font-size: .78rem; color: var(--pa-muted); border-top: 3px solid var(--pa-line); padding-top: 8px; }
.setup-steps .st.done { border-top-color: #93c5fd; color: var(--pa-ink-2); }
.setup-steps .st.cur { border-top-color: var(--pa-accent); color: var(--pa-accent-ink); font-weight: 650; }
.setup-card { padding: 28px 30px; }
.setup-card h2 { font-size: 1.25rem; font-weight: 650; }
.code-box { font-family: var(--pa-mono); background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 14px; font-size: .8rem; word-break: break-all; }

/* error pages */
.center-page { max-width: 640px; margin: 8vh auto; text-align: center; }
.center-page .big { font-size: 3rem; color: var(--pa-faint); }

@media (max-width: 1100px) {
  .browse { grid-template-columns: 1fr; }
  .tree-card { position: static; max-height: 420px; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -260px; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .menu-toggle { display: inline-flex; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 0 14px; }
  .topbar .search { width: auto; flex: 1; }
}
@media print {
  .sidebar, .topbar, .actions, .filters, .no-print { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* Bootstrap display utilities (d-flex …) are !important; keep [hidden] working with them. */
[hidden] { display: none !important; }
.filters .form-check-label { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 400; color: var(--pa-ink); }

/* ---------------------------------------------------------------- sign-in page */
.login-wrap { flex: 1 0 auto; display: grid; place-items: center; padding: 48px 16px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--pa-line); border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(15,23,42,.25); padding: 30px 30px 24px; }
.login-brand { margin-bottom: 22px; }
.login-logo { max-height: 54px; max-width: 220px; display: block; margin-bottom: 16px; }
.login-product { display: flex; align-items: center; gap: 12px; }
.login-product .brand-mark { width: 40px; height: 40px; }
.login-title { font-weight: 650; font-size: 1.05rem; }
.login-company { color: var(--pa-muted); font-size: .82rem; }
.login-h1 { font-size: 1.35rem; font-weight: 650; margin: 0 0 2px; }
.login-lead { color: var(--pa-muted); font-size: .88rem; margin-bottom: 18px; }
.login-windows { padding: 10px; font-weight: 600; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--pa-faint); font-size: .78rem; margin: 18px 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--pa-line); }
.login-form .form-label { font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.login-note { font-size: .78rem; color: var(--pa-muted); margin-top: 14px; }
.side-footer form { margin-left: auto; }
.side-footer .btn-signout { color: var(--pa-side-muted); padding: 2px 6px; }
.side-footer .btn-signout:hover { color: #fff; }

/* ---------------------------------------------------------------- license page */
.license-state { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; }
.license-state > i { font-size: 1.8rem; }
.license-state .ls-head { font-weight: 650; font-size: 1.05rem; }
.license-state .ls-sub { font-size: .85rem; }
.license-state.ok { background: #ecfdf5; color: #065f46; }
.license-state.info { background: var(--pa-accent-soft); color: var(--pa-accent-ink); }
.license-state.bad { background: #fef2f2; color: #991b1b; }

/* ---------------------------------------------------------------- FiFo product logo (left column, above sign-out) */
.side-product { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.2); color: #fff; }
.side-product img { width: 30px; height: 30px; flex: 0 0 30px; }
.side-product .sp-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.1; }
.side-product .sp-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.sidebar .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.nav-side .nav-label { color: rgba(255,255,255,.75); }
.side-footer .btn-signout { color: rgba(255,255,255,.85); }
.fifo-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.disclaimer { border: 1px solid var(--pa-line); border-radius: 10px; background: var(--pa-bg); padding: 16px 18px; font-size: .8rem; color: var(--pa-muted); max-width: 900px; }
.disclaimer p { margin-bottom: .55rem; }
.disclaimer h3 { color: var(--pa-ink-2, #334155); }
