/* =================================================================
   Frontline — Application UI (portal + admin hub)
   Layers on top of styles.css: reuses the navy/gold tokens, buttons
   and site chrome, and adds the "workspace" components (app shell,
   KPI tiles, data tables, status pills, activity feed, threads).
   ================================================================= */

/* ----------------------------------------------------------------
   1. APP SHELL
---------------------------------------------------------------- */
.app-body {
  margin: 0;
  background: var(--paper-alt);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}

/* --- Sidebar --- */
.app-side {
  background: var(--navy-950);
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.app-side__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: #fff;
}
.app-side__brand img { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 auto; }
.app-side__brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
}
.app-side__brand span {
  display: block;
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}

.app-side__section {
  padding: 1.15rem 0 .3rem;
}
.app-side__label {
  padding: 0 1.35rem .5rem;
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .38);
}

.app-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 .7rem; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  font-size: .89rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.app-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.app-nav a.is-active {
  background: rgba(195, 149, 31, .16);
  color: #fff;
  border-left-color: var(--gold-500);
  font-weight: 600;
}
.app-nav a i { width: 17px; text-align: center; font-size: .92rem; opacity: .9; }
.app-nav .nav-count {
  margin-left: auto;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: .68rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.app-side__foot {
  margin-top: auto;
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .74rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.6;
}
.app-side__foot a { color: rgba(255, 255, 255, .72); }
.app-side__cross {
  color: var(--gold-400) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  font-size: .8rem;
}
.app-side__cross:hover { color: var(--gold-300) !important; }

/* --- Main column --- */
.app-main { display: flex; flex-direction: column; min-width: 0; }

.app-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .85rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-top__title { min-width: 0; }
.app-top__title h1 {
  font-size: 1.18rem;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-top__title p {
  margin: .1rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}
.app-top__actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Organization switcher */
.org-switch { position: relative; }
.org-switch form { display: flex; }
.org-switch select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: .42rem 2rem .42rem .7rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%2361738a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 11px;
  max-width: 230px;
}

/* User chip */
.user-chip { display: flex; align-items: center; gap: .6rem; }
.user-chip__av {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.user-chip__meta { line-height: 1.25; }
.user-chip__meta strong { display: block; font-size: .82rem; color: var(--ink); font-weight: 600; }
.user-chip__meta span { font-size: .7rem; color: var(--muted); }

.app-content { padding: 1.75rem; max-width: 1400px; width: 100%; }

/* ----------------------------------------------------------------
   2. KPI TILES
---------------------------------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line);
}
.kpi--gold::before { background: var(--gold-500); }
.kpi--navy::before { background: var(--navy-600); }
.kpi--warn::before { background: #b45309; }
.kpi--ok::before { background: var(--success); }
.kpi__label {
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.kpi__value {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}
.kpi__sub { font-size: .76rem; color: var(--muted); margin-top: .3rem; }

/* ----------------------------------------------------------------
   3. PANELS + GRIDS
---------------------------------------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel + .panel { margin-top: 1.25rem; }
.panel__head {
  padding: .95rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.panel__head h2 {
  font-size: 1rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}
.panel__head p { margin: .15rem 0 0; font-size: .76rem; color: var(--muted); }
.panel__head .panel__actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.panel__body { padding: 1.25rem; }
.panel__body--flush { padding: 0; }
.panel__foot {
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-alt);
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.split-main-side { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; align-items: start; }

/* ----------------------------------------------------------------
   4. STATUS PILLS
---------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}
.pill--neutral { background: var(--paper-alt); color: var(--ink-soft); border-color: var(--line); }
.pill--open    { background: #eef4fb; color: #1d4270; border-color: #cddff2; }
.pill--progress{ background: #eaf1fd; color: #26479a; border-color: #c9d8f6; }
.pill--waiting { background: #fdf3e3; color: #97590c; border-color: #f2ddb6; }
.pill--blocked { background: #fdecec; color: #a52222; border-color: #f4cdcd; }
.pill--complete{ background: var(--success-bg); color: var(--success); border-color: #bfe2cd; }
.pill--cancelled{ background: #f1f3f6; color: #6b7787; border-color: #dfe4ea; }
.pill--gold    { background: var(--gold-100); color: var(--gold-700); border-color: #edd9a3; }
.pill--navy    { background: var(--navy-050); color: var(--navy-700); border-color: var(--navy-100); }
.pill--danger  { background: #fdecec; color: #a52222; border-color: #f4cdcd; }
.pill--urgent  { background: #fdecec; color: #a52222; border-color: #f4cdcd; }
.pill--high    { background: #fdf3e3; color: #97590c; border-color: #f2ddb6; }
.pill--normal  { background: var(--paper-alt); color: var(--ink-soft); border-color: var(--line); }
.pill--low     { background: #f1f3f6; color: #6b7787; border-color: #dfe4ea; }

/* ----------------------------------------------------------------
   5. DATA TABLES
---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
table.data th {
  text-align: left;
  padding: .7rem 1.1rem;
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--ink-soft);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfcfe; }
table.data td strong { color: var(--ink); font-weight: 600; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .nowrap { white-space: nowrap; }
table.data a.rowlink { color: var(--navy-600); font-weight: 600; text-decoration: none; }
table.data a.rowlink:hover { text-decoration: underline; }

.cell-sub { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; margin-top: .12rem; }

/* ----------------------------------------------------------------
   6. LIST ROWS (documents, reports)
---------------------------------------------------------------- */
.file-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #fbfcfe; }
.file-row__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--navy-050);
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: .95rem;
}
.file-row__main { min-width: 0; flex: 1; }
.file-row__main strong {
  display: block;
  font-size: .88rem;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row__main span { font-size: .75rem; color: var(--muted); }
.file-row__side { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

/* ----------------------------------------------------------------
   7. ACTIVITY FEED
---------------------------------------------------------------- */
.feed { list-style: none; margin: 0; padding: .5rem 0; }
.feed li {
  display: flex;
  gap: .8rem;
  padding: .7rem 1.25rem;
  position: relative;
}
.feed li + li { border-top: 1px solid var(--line-soft); }
.feed__dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  flex: 0 0 auto;
}
.feed__body { min-width: 0; flex: 1; font-size: .84rem; color: var(--ink-soft); }
.feed__body strong { color: var(--ink); font-weight: 600; }
.feed__time { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ----------------------------------------------------------------
   8. FORMS
---------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field > label,
.field-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .38rem;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field input[type='number'],
.field input[type='date'],
.field input[type='search'],
.field select,
.field textarea,
.input {
  width: 100%;
  font: inherit;
  font-size: .9rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: 2px solid var(--navy-500);
  outline-offset: 1px;
  border-color: var(--navy-500);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.field-hint { font-size: .74rem; color: var(--muted); margin-top: .3rem; }

/* ----------------------------------------------------------------
   9. FILTER BAR / TABS
---------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-alt);
}
.filter-bar .field { margin: 0; min-width: 150px; }
.filter-bar .field input, .filter-bar .field select { padding: .45rem .6rem; font-size: .84rem; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a {
  padding: .6rem .95rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--navy-700); border-bottom-color: var(--gold-500); }

/* ----------------------------------------------------------------
   10. BUTTONS (workspace sizes)
---------------------------------------------------------------- */
.btn-sm { padding: .4rem .8rem !important; font-size: .78rem !important; }
.btn-block { width: 100%; justify-content: center; }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-600);
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-danger { background: #fdecec !important; color: #a52222 !important; border-color: #f4cdcd !important; }
.btn-danger:hover { background: #fbdcdc !important; }

/* ----------------------------------------------------------------
   11. EMPTY STATE
---------------------------------------------------------------- */
.empty {
  text-align: center;
  padding: 2.75rem 1.5rem;
  color: var(--muted);
}
.empty i {
  font-size: 1.6rem;
  color: var(--navy-100);
  display: block;
  margin-bottom: .7rem;
}
.empty strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { margin: 0 auto; font-size: .84rem; max-width: 42ch; }

/* ----------------------------------------------------------------
   12. PROGRESS / METERS
---------------------------------------------------------------- */
.meter { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gold-500); border-radius: 999px; }
.meter--navy span { background: var(--navy-600); }
.meter--ok span { background: var(--success); }

/* ----------------------------------------------------------------
   13. UPLOAD DROPZONE
---------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--navy-100);
  border-radius: var(--radius-lg);
  background: var(--navy-050);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold-500); background: var(--gold-100); }
.dropzone i { font-size: 1.5rem; color: var(--navy-600); display: block; margin-bottom: .5rem; }
.dropzone strong { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }
.dropzone p { margin: .25rem 0 .9rem; font-size: .8rem; color: var(--muted); }

/* ----------------------------------------------------------------
   14. MESSAGE THREADS
---------------------------------------------------------------- */
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-list li { border-bottom: 1px solid var(--line-soft); }
.thread-list a {
  display: block;
  padding: .9rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.thread-list a:hover { background: #fbfcfe; }
.thread-list strong { display: block; color: var(--ink); font-size: .89rem; font-weight: 600; }
.thread-list span { font-size: .76rem; color: var(--muted); }

.msg { display: flex; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.msg:last-child { border-bottom: 0; }
.msg--mine { background: var(--navy-050); }
.msg__av {
  width: 34px; height: 34px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}
.msg--mine .msg__av { background: linear-gradient(145deg, var(--gold-600), var(--gold-700)); color: #fff; }
.msg__body { min-width: 0; flex: 1; }
.msg__meta { font-size: .75rem; color: var(--muted); margin-bottom: .3rem; }
.msg__meta strong { color: var(--ink); font-weight: 600; }
.msg__text { font-size: .88rem; color: var(--ink-soft); line-height: 1.66; white-space: pre-wrap; }

/* ----------------------------------------------------------------
   15. AUTH SCREENS
---------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper);
}
.auth-aside {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-950) 70%);
  color: #fff;
  padding: 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: '';
  position: absolute;
  right: -140px; bottom: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 149, 31, .22), transparent 68%);
}
.auth-aside__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: auto; }
.auth-aside__brand img { width: 40px; height: 40px; border-radius: 8px; }
.auth-aside__brand strong { font-family: var(--serif); font-size: 1.1rem; display: block; line-height: 1.15; }
.auth-aside__brand span { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.auth-aside h2 {
  font-family: var(--serif);
  font-size: 1.95rem;
  line-height: 1.2;
  color: #fff;
  margin: 2rem 0 .9rem;
  max-width: 22ch;
}
.auth-aside p { color: rgba(255, 255, 255, .74); font-size: .94rem; max-width: 42ch; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.6rem 0 0; position: relative; z-index: 1; }
.auth-aside li {
  display: flex; gap: .65rem; align-items: flex-start;
  color: rgba(255, 255, 255, .82); font-size: .88rem; margin-bottom: .7rem;
}
.auth-aside li i { color: var(--gold-400); margin-top: .28rem; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
.auth-card > p { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }

.alert {
  padding: .75rem .9rem;
  border-radius: var(--radius);
  font-size: .84rem;
  margin-bottom: 1.1rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.alert i { margin-top: .18rem; }
.alert--error { background: #fdecec; color: #8f1d1d; border: 1px solid #f4cdcd; }
.alert--ok { background: var(--success-bg); color: var(--success); border: 1px solid #bfe2cd; }
.alert--info { background: var(--navy-050); color: var(--navy-700); border: 1px solid var(--navy-100); }

.demo-creds {
  margin-top: 1.6rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: .85rem 1rem;
}
.demo-creds strong {
  display: block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .45rem;
}
.demo-creds button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .4rem .6rem;
  font: inherit;
  font-size: .78rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: .3rem;
}
.demo-creds button:hover { border-color: var(--gold-500); color: var(--ink); }
.demo-creds code { font-size: .78rem; }

/* ----------------------------------------------------------------
   16. MOBILE NAV TOGGLE
---------------------------------------------------------------- */
.app-nav-toggle { display: none; }

/* ----------------------------------------------------------------
   17. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .split-main-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-side {
    position: fixed;
    inset: 0 30% 0 0;
    z-index: 60;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-side.is-open { transform: translateX(0); }
  .app-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: .95rem;
    flex: 0 0 auto;
  }
  .app-top { padding: .75rem 1rem; }
  .app-content { padding: 1.1rem; }
  .user-chip__meta { display: none; }
}
@media (max-width: 620px) {
  .kpi-row { grid-template-columns: minmax(0, 1fr); }
  .app-top__title p { display: none; }
  .panel__body { padding: 1rem; }
  .filter-bar { padding: .85rem 1rem; }
  .file-row { padding: .8rem 1rem; }
}
