@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900&display=swap");

:root {
  --navy: #203878;
  --navy-deep: #182c5c;
  --navy-900: #121e40;
  --indigo: #2a4a8c;
  --indigo-soft: #4a6aaa;
  --peach-bg: #f4f6f8;
  --peach-100: #eef2f4;
  --peach-200: #e4ebe6;
  --peach-300: #d4e0d8;
  --orange: #387038;
  --orange-ink: #284828;
  --orange-soft: #6a9a62;
  --green: #387038;
  --green-ink: #284828;
  --green-soft: #e6f0e6;
  --red: #c40d04;
  --red-soft: #fbeceb;
  --purple: #6b4c9a;
  --purple-soft: #f0eaf6;
  --ink: #1b1c33;
  --ink-2: #3a3c55;
  --muted: #6c6f86;
  --muted-2: #9a9cb0;
  --line: #e4e8ee;
  --line-2: #d5dce8;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(18, 30, 64, 0.06);
  --shadow: 0 6px 20px rgba(18, 30, 64, 0.08);
  --radius: 16px;
  --radius-sm: 11px;
  --font: "Avenir Next", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--peach-bg);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
::selection { background: var(--peach-300); }
a { color: var(--navy); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-900) 100%);
  color: #cdd0ec;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  box-shadow: 0 6px 16px rgba(56, 112, 56, 0.35);
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
}

.brand-name { font-weight: 800; color: #fff; font-size: 15px; line-height: 1.1; }
.brand-org { font-size: 11.5px; color: #9a9dcf; margin-top: 3px; font-weight: 600; letter-spacing: 0.3px; }

.nav-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7a7db8;
  padding: 14px 10px 8px;
}

.apps { display: flex; flex-direction: column; gap: 3px; }

.app-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #c3c6ea;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.15s;
  position: relative;
}

.app-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.app-link.active {
  background: linear-gradient(90deg, rgba(56, 112, 56, 0.28), rgba(255, 255, 255, 0.04));
  color: #fff;
  border-color: rgba(56, 112, 56, 0.4);
}

.app-link.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
}

.app-link .ico { width: 18px; height: 18px; flex: none; }
.app-link.soon { color: #71749f; cursor: default; }
.app-link.soon:hover { background: transparent; color: #71749f; }

.soon-tag {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a8dc0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 7px;
}

.side-foot { margin-top: auto; padding-top: 14px; }

.sync-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9a9dcf;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-weight: 600;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57c77f;
  box-shadow: 0 0 0 3px rgba(87, 199, 127, 0.2);
  flex: none;
}

.sync-pill.is-error .sync-dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2); }

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 6px;
}

.user-av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.user-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.1; }
.user-mail { font-size: 11px; color: #8a8dc0; margin-top: 2px; }

.signout {
  margin-left: auto;
  color: #9a9dcf;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  display: flex;
}

.signout:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px 0;
  flex: none;
}

.topbar-head { display: flex; align-items: flex-start; gap: 16px; }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.3px; color: var(--ink); }
.topbar .sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}

.nav-toggle svg { width: 18px; height: 18px; }

.subtabs { display: flex; gap: 2px; margin-top: 16px; }

.subtab {
  background: none;
  border: none;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: 0.15s;
}

.subtab:hover { color: var(--ink); background: var(--peach-100); }
.subtab.active { color: var(--navy); border-bottom-color: var(--orange); }
.subtab .ico { width: 16px; height: 16px; }

.content { flex: 1; overflow-y: auto; padding: 24px 28px 40px; }

.view { display: none; }
.view.active { display: block; animation: fade 0.25s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: 0.15s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: #242767; }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-sm { padding: 7px 11px; font-size: 12px; }
.btn .ico { width: 15px; height: 15px; }

.people-wrap {
  display: grid;
  grid-template-columns: 378px 1fr;
  gap: 20px;
  height: calc(100vh - 168px);
}

.people-panel,
.detail-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.people-panel { display: flex; flex-direction: column; overflow: hidden; }
.search-box { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; }
.search-field .ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted-2);
}

.search-field input,
.fld input,
.fld select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--peach-bg);
}

.search-field input { padding-left: 40px; }

.search-field input:focus,
.fld input:focus,
.fld select:focus,
.btn:focus-visible,
.subtab:focus-visible,
.app-link:focus-visible {
  outline: none;
  border-color: var(--indigo-soft);
  box-shadow: 0 0 0 3px rgba(88, 92, 199, 0.12);
}

.chips { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }

.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
}

.chip:hover { border-color: var(--indigo-soft); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { opacity: 0.7; font-weight: 800; margin-left: 3px; }

.people-list { overflow-y: auto; flex: 1; padding: 8px; }

.p-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}

.p-row:hover { background: var(--peach-100); }
.p-row.active { background: var(--peach-100); border-color: var(--peach-300); }
.p-row.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3.5px;
  border-radius: 4px;
  background: var(--navy);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.p-main { min-width: 0; flex: 1; }
.p-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; }
.p-form { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.p-date { font-size: 11px; color: var(--muted-2); font-weight: 600; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-pending { background: #e8edf6; color: var(--navy); }
.pill-pending .dot { background: var(--navy); }
.pill-done { background: var(--green-soft); color: var(--green-ink); }
.pill-done .dot { background: var(--green); }
.pill-viewed { background: #eef0fb; color: var(--navy); }
.pill-viewed .dot { background: var(--indigo-soft); }
.pill-declined { background: var(--red-soft); color: var(--red); }
.pill-declined .dot { background: var(--red); }
.pill-canceled { background: #f1f0ec; color: var(--muted); }
.pill-canceled .dot { background: var(--muted-2); }
.pill-expired { background: var(--purple-soft); color: var(--purple); }
.pill-expired .dot { background: var(--purple); }

.detail-panel { overflow-y: auto; }

.detail-hero {
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--peach-100), #fff);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.detail-hero .avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 19px; }
.dh-name { font-size: 21px; font-weight: 900; letter-spacing: -0.3px; }
.dh-mail { color: var(--muted); font-size: 13.5px; margin-top: 3px; font-weight: 600; }
.dh-actions { margin-left: auto; display: flex; gap: 8px; }

.stat-strip { display: flex; gap: 0; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.stat-cell { flex: 1; padding: 0 4px; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); padding-left: 22px; }
.stat-num { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }
.stat-lbl { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 6px; }

.detail-body { padding: 22px 28px 30px; }
.section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin: 0 0 14px; }

.packet { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.packet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--peach-bg);
  border-bottom: 1px solid var(--line);
}
.packet-form { font-weight: 800; font-size: 14px; }
.packet-id { font-size: 11.5px; color: var(--muted-2); font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 3px; }
.packet-head .pill { margin-left: auto; }

.timeline { padding: 14px 18px 8px; }
.tl-item { display: flex; gap: 13px; padding-bottom: 16px; position: relative; }
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.tl-icon .ico { width: 14px; height: 14px; color: #fff; }
.tl-signed { background: var(--green); }
.tl-viewed { background: var(--indigo-soft); }
.tl-wait { background: var(--navy); }
.tl-body { flex: 1; min-width: 0; padding-top: 2px; }
.tl-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-who { font-weight: 800; font-size: 13.5px; }
.tl-role { font-size: 11px; color: var(--muted-2); font-weight: 700; background: var(--peach-100); padding: 2px 7px; border-radius: 6px; }
.tl-mail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-when { font-size: 11.5px; color: var(--muted-2); font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.tl-when .ico { width: 12px; height: 12px; }

.empty-detail,
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-weight: 600;
}

.empty-detail .circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--peach-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card { padding: 20px 22px; }
.stat-card .k { display: flex; align-items: center; gap: 10px; }
.stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-ico .ico { width: 18px; height: 18px; }
.stat-card .big { font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1; margin-top: 14px; }
.stat-card .cap { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.ov-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; margin-bottom: 6px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.2px; }
.card-head .btn { margin-left: auto; }
.card-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; font-weight: 500; }

.attn-row,
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.attn-name,
.form-name { font-weight: 800; font-size: 14px; }
.attn-form,
.form-id { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.form-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted-2); }
.attn-signers { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.attn-signer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }

.form-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--peach-100);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.form-icon .ico { width: 19px; height: 19px; }
.form-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.form-stats b { color: var(--ink); }

.progress {
  height: 8px;
  border-radius: 20px;
  background: var(--peach-200);
  overflow: hidden;
  display: flex;
  margin-top: 14px;
}

.progress .seg-done { background: var(--green); }
.progress .seg-pend { background: var(--navy); }

.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--peach-bg);
}

.tbl tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--peach-100); }

.doc-title { font-weight: 800; font-size: 13.5px; }
.doc-id { font-size: 11px; color: var(--muted-2); font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 3px; }
.signer-line { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.signer-nm { font-weight: 700; font-size: 12.5px; }
.signer-mail { font-size: 11.5px; color: var(--muted); }
.signer-when { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.muted-cell { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.add-inbox { padding: 24px; }
.field-grid { display: grid; grid-template-columns: 1fr 320px auto; gap: 14px; align-items: end; margin-top: 16px; }
.field-grid.docs { grid-template-columns: 200px 240px 1fr auto; }
.fld label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inbox-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.inbox-main { flex: 1; min-width: 0; }
.inbox-name { font-weight: 800; font-size: 14px; }
.inbox-url { font-size: 11.5px; color: var(--muted-2); font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; word-break: break-all; }
.inbox-col { text-align: center; min-width: 78px; }
.inbox-col .v { font-weight: 900; font-size: 16px; }
.inbox-col .l { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; margin-top: 3px; }
.inbox-actions { display: flex; gap: 8px; }

.form-feedback {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.form-feedback.is-ok { background: var(--green-soft); color: var(--green-ink); }
.form-feedback.is-error { background: var(--red-soft); color: var(--red); }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy-900);
}

.auth-card {
  width: min(400px, 100%);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-head {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-900) 100%);
  padding: 32px 28px 28px;
  text-align: center;
}

.auth-logo-tile {
  width: min(240px, 100%);
  height: 78px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.auth-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-head h1 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.auth-head p {
  margin: 6px 0 0;
  color: #b8c0d8;
  font-size: 14px;
  font-weight: 600;
}

.auth-body { padding: 28px 28px 24px; }

.auth-field { position: relative; }

.auth-field .ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.auth-field input {
  padding-left: 42px;
  padding-right: 42px;
  min-height: 46px;
  background: #eef2f6;
}

.auth-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.auth-toggle:hover { color: var(--navy); background: rgba(32, 56, 120, 0.06); }
.auth-toggle svg { width: 18px; height: 18px; }

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.auth-foot svg { width: 14px; height: 14px; }

.nav-backdrop { display: none; }

@media (max-width: 1080px) {
  .people-wrap { grid-template-columns: 1fr; height: auto; }
  .detail-panel { min-height: 420px; }
  .stat-grid,
  .ov-2col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 248px;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    pointer-events: none;
  }
  .sidebar.is-open { transform: none; pointer-events: auto; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 20, 63, 0.4);
    z-index: 20;
  }
  .topbar,
  .content { padding-left: 16px; padding-right: 16px; }
  .stat-grid,
  .ov-2col,
  .field-grid,
  .field-grid.docs { grid-template-columns: 1fr; }
  .inbox-row { flex-wrap: wrap; }
  .dh-actions { margin-left: 0; }
  .detail-hero { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
