@font-face {
  font-family: Archivo;
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  font-family: Archivo, Arial, sans-serif;
  color: #e5edf8;
  background: #0b1120;
  --gold: #87a9d9;
  --gold-soft: #87a9d912;
  --panel: #182238;
  --muted: #94a3ba;
  --line: #ffffff0c;
  --red: #ed777d;
  --green: #80c5a5;
  color-scheme: dark;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-stretch: 80%;
  font-weight: 800;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #465879 #141d30;
}
.tablet {
  min-height: 100dvh;
  max-width: 1920px;
  margin: auto;
  background: #141d30;
  border: 1px solid #ffffff0f;
}
.device-bar {
  height: 43px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #0e1626;
}
.wordmark {
  font-size: 17px;
  font-weight: 900;
  font-stretch: 75%;
  letter-spacing: -0.5px;
}
.wordmark > span {
  color: var(--gold);
}
.wordmark b {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #76717f;
  border-left: 1px solid #ffffff25;
  margin-left: 16px;
  padding-left: 16px;
}
.device-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9b96a4;
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.bar-divider {
  height: 12px;
  width: 1px;
  background: #ffffff15;
  margin: 0 7px;
}
.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100dvh - 45px);
}
.sidebar {
  background: #101829;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 14px 0;
}
.department {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 28px;
  border-bottom: 1px solid var(--line);
}
.badge-holder {
  width: 43px;
  height: 50px;
  flex-shrink: 0;
}
.badge-holder img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.department span {
  font-size: 8px;
  letter-spacing: 2.4px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.department strong {
  display: block;
  font-size: 12px;
}
.department small {
  display: block;
  font-size: 9px;
  color: #8a9ab3;
  margin-top: 5px;
}
#navigation {
  padding: 6px 0 24px;
}
.nav-group {
  margin-top: 24px;
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.9px;
  color: #8191aa;
  font-weight: 750;
  margin: 0 14px 10px;
  display: flex;
  justify-content: space-between;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 11px 13px;
  width: 100%;
  color: #a0aec4;
  text-align: left;
  font-size: 11px;
  margin: 3px 0;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-item > span {
  display: flex;
}
.nav-item svg {
  width: 16px;
  height: 16px;
}
.nav-item:hover {
  color: #e4e0e8;
  background: #ffffff04;
}
.nav-item.active {
  background: var(--gold-soft);
  border-color: #87a9d922;
  color: var(--gold);
}
.nav-item.active:after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: auto;
}
.nav-count {
  margin-left: auto;
  font-size: 9px;
  color: #756b7b;
}
.sidebar-bottom {
  margin-top: auto;
  padding-bottom: 16px;
}
.officer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 20px 9px 0;
  border-top: 1px solid var(--line);
}
.officer-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 33px;
  background: #87a9d90d;
  border: 1px solid #87a9d920;
  color: var(--gold);
  border-radius: 4px;
}
.officer-avatar svg {
  width: 17px;
  height: 17px;
}
.officer strong {
  font-size: 10px;
  display: block;
}
.officer small {
  font-size: 9px;
  color: #726c7b;
  display: block;
  margin-top: 5px;
}
.local-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  margin-left: auto;
}
.main-layout {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  background: #141217;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #7f788a;
  white-space: nowrap;
}
.breadcrumb strong {
  font-weight: 600;
  color: #d0cbd6;
}
.breadcrumb-home {
  display: flex;
}
.breadcrumb-home svg {
  width: 15px;
}
.slash {
  color: #4f4859;
}
.global-search {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 260px;
  margin-left: auto;
  color: #6f687b;
  background: #101829;
  border: 1px solid #ffffff08;
  border-radius: 5px;
  padding: 9px 12px;
}
.global-search svg {
  width: 15px;
  height: 15px;
}
.global-search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: #ddd6e5;
  font-size: 10px;
  outline: none;
}
.global-search input::placeholder {
  color: #726a7c;
}
.global-search kbd {
  font-family: inherit;
  font-size: 10px;
  border: 1px solid #ffffff15;
  border-radius: 3px;
  padding: 1px 4px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff0e;
  border-radius: 4px;
  background: #ffffff03;
  width: 31px;
  height: 31px;
  color: #9b94a4;
  flex-shrink: 0;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.icon-button:hover {
  color: var(--gold);
  border-color: #87a9d940;
}
.device-status .icon-button {
  border: 0;
  background: transparent;
  width: 25px;
  height: 24px;
  margin-left: 6px;
}
.mobile-toggle {
  display: none;
}
main {
  padding: 34px;
  flex: 1;
  outline: none;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.page-heading h1 span {
  color: var(--gold);
}
.subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  min-height: 37px;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 0.15s;
}
.button svg {
  width: 14px;
  height: 14px;
}
.primary {
  color: #19130b;
  background: var(--gold);
  box-shadow: 0 3px 18px #87a9d90a;
}
.primary:hover {
  background: #ffd772;
}
.secondary {
  background: #ffffff03;
  color: #b6aebf;
  border-color: #ffffff10;
}
.secondary:hover {
  background: #ffffff08;
  color: #fff;
}
.danger {
  background: #ed777d14;
  border-color: #ed777d35;
  color: var(--red);
}
.date-pill {
  font-size: 9px;
  color: #aaa1b5;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
}
.date-pill svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
  background: linear-gradient(135deg, #1c1920, #17141a);
  border: 1px solid var(--line);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a29aaa;
}
.stat-icon {
  display: grid;
  place-items: center;
  background: #ffffff04;
  border: 1px solid #ffffff06;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  color: #a296b0;
}
.stat-icon svg {
  width: 15px;
  height: 15px;
}
.stat-card:first-child .stat-icon {
  color: var(--gold);
  background: #87a9d90b;
  border-color: #87a9d912;
}
.stat-number {
  font-size: 34px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -1.2px;
  margin: 13px 0 10px;
  line-height: 1;
}
.stat-bottom {
  font-size: 9px;
  color: #6f667c;
  display: flex;
  gap: 7px;
  align-items: center;
}
.stat-bottom:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #63576e;
  border-radius: 50%;
}
.stat-card:first-child .stat-bottom:before {
  background: var(--gold);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 22px;
}
.panel {
  background: #17141b;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-head h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head h2 svg {
  color: var(--gold);
  width: 16px;
  height: 16px;
}
.panel-link {
  font-size: 9px;
  color: var(--gold);
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.panel-link svg {
  width: 12px;
  height: 12px;
}
.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 215px;
  background:
    linear-gradient(90deg, #17141bf7, #17141ba0),
    url("../img/los-santos.jpg") center/cover;
  border: 1px solid #ffffff0d;
  border-radius: 5px;
  margin-bottom: 22px;
}
.hero-card:after {
  content: "SL / LSPD";
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff1e;
}
.hero-card .eyebrow {
  font-size: 8px;
}
.hero-card h2 {
  font-size: 35px;
  line-height: 1.08;
  letter-spacing: -1px;
  max-width: 13ch;
}
.hero-card h2 span {
  color: var(--gold);
}
.hero-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #9c91aa;
  margin: 12px 0 20px;
  max-width: 40ch;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 17px;
}
.quick-card {
  background: #1c1822;
  border: 1px solid var(--line);
  padding: 17px 15px;
  border-radius: 4px;
  text-align: left;
  position: relative;
  min-height: 108px;
  transition: border-color 0.2s;
}
.quick-card > svg {
  color: var(--gold);
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
}
.quick-card strong {
  display: block;
  font-size: 10px;
}
.quick-card small {
  display: block;
  color: #786e87;
  font-size: 8px;
  margin-top: 7px;
}
.quick-card:hover {
  border-color: #87a9d940;
}
.quick-card .quick-arrow {
  position: absolute;
  top: 17px;
  right: 13px;
  color: #60556b;
  width: 13px;
}
.activity-list {
  padding: 5px 22px;
}
.activity-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 13px;
  align-items: start;
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  display: grid;
  place-items: center;
  background: #87a9d90a;
  border: 1px solid #87a9d910;
  border-radius: 4px;
  width: 29px;
  height: 29px;
  color: var(--gold);
  flex-shrink: 0;
}
.activity-dot svg {
  width: 14px;
  height: 14px;
}
.activity-item strong {
  font-size: 10px;
  font-weight: 650;
  display: block;
  line-height: 1.6;
}
.activity-item small {
  font-size: 9px;
  color: #746a82;
  display: block;
  margin-top: 5px;
}
.section-gap {
  margin-top: 22px;
}
.table-wrap {
  overflow: auto;
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #100e1440;
}
th {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #766b84;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 10px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
  color: #a99eb5;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #ffffff02;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff10;
  background: #282030;
  color: #b09abe;
  font-size: 10px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-cell strong {
  font-size: 10px;
  color: #e2d9ea;
  display: block;
  font-weight: 650;
}
.person-cell small {
  font-size: 8px;
  color: #776981;
  display: block;
  margin-top: 5px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 8px;
  background: #ffffff06;
  color: #aaa1b3;
  border: 1px solid #ffffff07;
  white-space: nowrap;
}
.tag:before {
  content: "";
  height: 3px;
  width: 3px;
  background: currentColor;
  border-radius: 50%;
}
.tag.yellow {
  background: #87a9d90a;
  color: #d9af50;
  border-color: #87a9d915;
}
.tag.green {
  color: #80b89e;
  background: #80c5a50a;
  border-color: #80c5a515;
}
.tag.red {
  color: #d78a92;
  background: #ed777d0a;
  border-color: #ed777d15;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  color: #70657e;
}
.empty-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff0b;
  background: #ffffff03;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.empty-icon svg {
  color: #a090b1;
  width: 19px;
  height: 19px;
}
.empty-state strong {
  display: block;
  font-size: 12px;
  color: #c0b3cd;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 10px;
  line-height: 1.8;
  max-width: 40ch;
  margin: 0 auto 18px;
}
.empty-state.compact {
  padding: 28px 15px;
}
.toolbar {
  padding: 17px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff0b;
  background: #100e15;
  padding: 9px 12px;
  border-radius: 4px;
  max-width: 310px;
  width: 100%;
  color: #736480;
}
.filter-search input {
  background: none;
  border: 0;
  outline: none;
  color: #d8cde2;
  font-size: 10px;
  width: 100%;
  min-width: 0;
}
.filter-search svg {
  width: 14px;
  height: 14px;
}
.toolbar select {
  margin-left: auto;
  max-width: 170px;
}
.field-control,
input,
select,
textarea {
  color: #e4dcec;
}
select,
input:not([type="file"]),
textarea {
  border: 1px solid #ffffff10;
  background: #100e15;
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 11px;
}
select {
  cursor: pointer;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #7d6f8b;
}
.pagination-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.pagination-actions span {
  padding: 0 10px;
  color: #b5a5c5;
}
.local-notice {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 9px;
  color: #7a6c87;
  margin-top: 17px;
}
.local-notice svg {
  width: 13px;
  height: 13px;
  color: #ad8e4a;
}
.app-footer {
  border-top: 1px solid var(--line);
  padding: 14px 34px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #655b72;
  letter-spacing: 0.2px;
  gap: 15px;
}
.app-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-footer .status-dot {
  width: 4px;
  height: 4px;
}
.app-footer b {
  font-weight: 500;
  color: #a69a72;
  margin-left: 5px;
}
.footer-separator {
  padding: 0 10px;
}
.modal {
  background: #17131d;
  color: #f0e8f5;
  border: 1px solid #ffffff15;
  border-radius: 9px;
  padding: 0;
  width: min(640px, calc(100vw - 30px));
  max-width: none;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 25px 100px #0008;
}
.modal::backdrop {
  background: #08060cc7;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.modal-head h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.modal-head .eyebrow {
  margin-bottom: 10px;
}
.modal-body {
  padding: 25px 28px;
}
.modal-foot {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: end;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  color: #a695b8;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field > span {
  display: flex;
  gap: 4px;
}
.field em {
  color: var(--gold);
  font-style: normal;
}
.field small {
  font-size: 9px;
  color: #73627f;
  line-height: 1.6;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 12px;
  padding: 12px;
}
.form-error {
  padding: 0 28px;
  font-size: 11px;
  color: var(--red);
  line-height: 1.8;
  margin: 0 0 15px;
}
.form-error:empty {
  display: none;
}
.photo-upload {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px dashed #ffffff18;
  background: #ffffff02;
  border-radius: 5px;
}
.photo-preview {
  width: 75px;
  height: 91px;
  background: #241c2e;
  border: 1px solid #ffffff10;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #746180;
  flex-shrink: 0;
  overflow: hidden;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-upload strong {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
.photo-upload p {
  font-size: 9px;
  color: #7d6b8d;
  margin-bottom: 12px;
}
.photo-upload input {
  font-size: 9px;
  max-width: 100%;
  color: #8c789d;
}
.profile-modal {
  width: min(860px, calc(100vw - 30px));
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, #87a9d906, transparent);
}
.identity-photo {
  width: 106px;
  height: 130px;
  flex-shrink: 0;
  background: #2a2135;
  border: 1px solid #ffffff15;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #ad96c1;
  overflow: hidden;
}
.identity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.identity-name {
  font-size: 28px;
  font-weight: 800;
  font-stretch: 80%;
}
.identity-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.identity-meta div span {
  font-size: 8px;
  color: #786984;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.identity-meta strong {
  font-size: 11px;
  font-weight: 600;
}
.profile-actions {
  margin-top: 18px;
  display: flex;
  gap: 9px;
}
.profile-section {
  padding: 25px 28px;
}
.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.profile-section h3 {
  font-size: 16px;
}
.criminal-entry {
  border: 1px solid #ffffff10;
  border-left: 2px solid #87a9d960;
  border-radius: 4px;
  padding: 18px;
  margin-top: 12px;
  background: #100d16;
}
.criminal-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.criminal-top h4 {
  font-size: 12px;
  margin: 0;
}
.criminal-top small {
  color: #79648c;
  font-size: 9px;
  display: block;
  margin-top: 7px;
}
.criminal-entry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: #a691b8;
  line-height: 1.9;
  margin-top: 12px;
}
.criminal-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-size: 9px;
  color: #c5a257;
}
.settings-body {
  display: grid;
  gap: 13px;
}
.notice {
  display: flex;
  gap: 13px;
  background: #87a9d908;
  border: 1px solid #87a9d916;
  border-radius: 4px;
  padding: 17px;
  color: #b3a193;
}
.notice > svg {
  color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.notice p {
  font-size: 11px;
  line-height: 1.9;
}
.settings-option {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 20px;
  background: #ffffff02;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  color: #a98ebc;
}
.settings-option svg {
  width: 19px;
  height: 19px;
}
.settings-option strong {
  display: block;
  font-size: 11px;
  color: #d6c8e1;
}
.settings-option small {
  display: block;
  font-size: 9px;
  color: #7c668c;
  margin-top: 7px;
}
.settings-option > b {
  margin-left: auto;
  color: var(--gold);
  font-weight: 400;
}
.settings-option:hover {
  border-color: #87a9d935;
}
.confirm-modal {
  width: min(430px, calc(100vw - 30px));
}
.confirm-modal .modal-body {
  font-size: 12px;
  line-height: 1.9;
  color: #aa95ba;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #29202f;
  border: 1px solid #87a9d940;
  box-shadow: 0 10px 45px #0008;
  color: #efdcbb;
  border-radius: 5px;
  font-size: 12px;
  padding: 15px 23px;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--gold);
  color: #111;
  z-index: 100;
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
.connection-banner {
  display: flex;
  gap: 12px;
  align-items: start;
  border: 1px solid #87a9d922;
  background: #87a9d907;
  border-radius: 5px;
  padding: 15px 18px;
  margin-bottom: 24px;
}
.connection-banner svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.connection-banner p {
  font-size: 10px;
  line-height: 1.8;
  color: #9b8b9f;
}
.connection-banner strong {
  color: #d1bd9d;
}
.connection-banner .button {
  margin-left: auto;
  flex-shrink: 0;
}
.chat-list {
  padding: 20px;
  display: grid;
  gap: 15px;
}
.chat-message {
  padding: 17px;
  border: 1px solid var(--line);
  background: #201925;
  border-radius: 5px;
}
.chat-message strong {
  font-size: 11px;
  color: #decce7;
}
.chat-message small {
  font-size: 9px;
  color: #80678f;
  margin-left: 10px;
}
.chat-message p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #bfa5ce;
  margin-top: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.detail-grid dt {
  font-size: 9px;
  color: #80678f;
  margin-bottom: 8px;
}
.detail-grid dd {
  font-size: 12px;
  margin: 0;
  color: #d9c6e4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-grid .full {
  grid-column: 1/-1;
}
@media (min-width: 1550px) {
  .tablet {
    margin: 18px auto;
    max-width: 1650px;
    min-height: calc(100dvh - 36px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 35px 100px #0007;
  }
  .workspace {
    min-height: calc(100dvh - 81px);
  }
  main {
    padding: 40px;
  }
  .topbar {
    padding: 0 40px;
  }
  .overview-grid {
    gap: 20px;
  }
  .stat-card {
    padding: 24px;
  }
  .stat-number {
    font-size: 40px;
  }
  .hero-card {
    min-height: 244px;
    padding: 35px;
  }
  .hero-card h2 {
    font-size: 40px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .department {
    gap: 9px;
    padding-left: 3px;
    padding-right: 0;
  }
  .department strong {
    font-size: 10px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 17px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-top {
    font-size: 9px;
  }
  .global-search {
    width: 220px;
  }
  .hero-card {
    padding: 24px;
  }
  .hero-card h2 {
    font-size: 31px;
  }
  .panel-head {
    padding: 18px;
  }
  .quick-grid {
    padding: 13px;
    gap: 8px;
  }
  .quick-card {
    padding: 15px 12px;
  }
  .app-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-width: 950px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .dashboard-right .section-gap {
    margin-top: 0;
  }
  .global-search {
    width: 190px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 9px;
  }
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-top {
    font-size: 10px;
  }
  .app-footer > span:last-child {
    font-size: 7px;
  }
  .date-pill {
    display: none;
  }
}
@media (max-width: 720px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 15;
    top: 43px;
    bottom: 0;
    left: 0;
    width: 240px;
    overflow: auto;
    box-shadow: 20px 0 60px #0009;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .breadcrumb-home {
    display: none;
  }
  .device-bar {
    padding: 0 15px;
  }
  .wordmark b {
    font-size: 7px;
    letter-spacing: 1px;
    padding-left: 10px;
    margin-left: 10px;
  }
  .device-status {
    font-size: 8px;
  }
  .bar-divider {
    margin: 0 3px;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 12px;
  }
  .global-search {
    width: 180px;
  }
  .global-search input {
    font-size: 9px;
    padding: 0;
  }
  .global-search kbd {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .subtitle {
    font-size: 10px;
  }
  .page-heading .button {
    font-size: 9px;
    padding: 10px;
  }
  .page-heading .button svg {
    display: none;
  }
  .overview-grid {
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .dashboard-right {
    grid-template-columns: 1fr;
  }
  .hero-card {
    padding: 25px;
    min-height: 225px;
  }
  .hero-card h2 {
    font-size: 36px;
  }
  .app-footer {
    padding: 13px 18px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .toolbar {
    padding: 14px;
    flex-wrap: wrap;
  }
  .toolbar select {
    margin-left: 0;
    flex: 1;
  }
  .filter-search {
    max-width: none;
  }
  .panel-head {
    padding: 17px;
  }
  .form-grid {
    gap: 16px;
  }
  .modal-head,
  .modal-body,
  .modal-foot,
  .profile-section {
    padding: 23px;
  }
  .profile-summary {
    padding: 23px;
    gap: 18px;
  }
  .identity-photo {
    width: 85px;
    height: 110px;
  }
  .identity-name {
    font-size: 24px;
  }
  .identity-meta {
    gap: 13px;
  }
  .profile-actions {
    flex-wrap: wrap;
  }
  .profile-section-head {
    align-items: start;
  }
  .profile-section-head .button {
    font-size: 9px;
  }
  .connection-banner {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .connection-banner .button {
    margin-left: 26px;
  }
  .global-search svg {
    display: none;
  }
}
@media (max-width: 420px) {
  .global-search {
    width: 135px;
  }
  .topbar {
    gap: 9px;
  }
  .breadcrumb > span:not(.slash) {
    display: none;
  }
  .breadcrumb .slash {
    display: none;
  }
  .device-status .bar-divider,
  .device-status .status-dot {
    display: none;
  }
  .device-status {
    gap: 5px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .heading-actions {
    align-self: stretch;
  }
  .heading-actions .button {
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full,
  .photo-upload {
    grid-column: auto;
  }
  .profile-summary {
    align-items: start;
  }
  .identity-photo {
    width: 65px;
    height: 83px;
  }
  .identity-name {
    font-size: 22px;
  }
  .photo-upload {
    padding: 13px;
    gap: 14px;
  }
  .photo-preview {
    width: 60px;
    height: 75px;
  }
  .profile-actions {
    margin-top: 15px;
  }
  .stat-top {
    font-size: 9px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .stat-number {
    font-size: 30px;
  }
  .quick-card strong {
    font-size: 10px;
  }
  .wordmark b {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.auth-pending > .tablet {
  display: none;
}
.auth-gate {
  min-height: 100dvh;
  background: #0d0c10;
}
.auth-loading {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.auth-loading strong {
  font-weight: 900;
  font-size: 28px;
  font-stretch: 75%;
}
.auth-loading span {
  color: var(--gold);
}
.auth-loading p {
  font-size: 12px;
  color: var(--muted);
}
.auth-layout {
  max-width: 1600px;
  min-height: 100dvh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 45px 55px;
  background:
    linear-gradient(0deg, #0e0b13f2, #0e0b1360 70%, #0e0b1390),
    url("../img/los-santos.jpg") center/cover;
  border-right: 1px solid #ffffff0b;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left, #87a9d90e, transparent 70%);
  pointer-events: none;
}
.auth-wordmark {
  font-stretch: 75%;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.auth-wordmark > span {
  color: var(--gold);
}
.auth-wordmark small {
  font-size: 8px;
  display: block;
  font-weight: 550;
  color: #aca1b6;
  letter-spacing: 2px;
  margin-top: 9px;
}
.auth-story-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.auth-story-copy .eyebrow {
  font-size: 9px;
}
.auth-story-copy h1 {
  font-size: clamp(44px, 5.6vw, 83px);
  font-weight: 900;
  font-stretch: 65%;
  letter-spacing: -2px;
  line-height: 0.99;
}
.auth-story-copy h1 span {
  color: var(--gold);
}
.auth-story-copy > p:last-child {
  font-size: 12px;
  line-height: 1.9;
  color: #9e91ac;
  margin-top: 28px;
}
.auth-story-footer {
  font-size: 8px;
  letter-spacing: 2px;
  color: #796c88;
}
.auth-story-footer span {
  padding: 0 15px;
  color: #87a9d970;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(30px, 5vw, 85px);
  background: radial-gradient(ellipse at top right, #87a9d904, transparent 50%), #131016;
}
.auth-panel > h2 {
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.auth-panel > h2 > span {
  color: var(--gold);
}
.auth-panel > .eyebrow {
  font-size: 9px;
}
.auth-lock {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #87a9d920;
  border-radius: 9px;
  background: #87a9d90a;
  color: var(--gold);
  margin-bottom: 33px;
}
.auth-lock svg {
  width: 22px;
  height: 22px;
}
.auth-description {
  font-size: 12px;
  color: #95889f;
  line-height: 1.9;
  margin: 18px 0 28px;
}
.auth-connect {
  min-height: 50px;
  font-size: 12px;
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  gap: 13px;
}
.auth-connect > svg:first-child {
  width: 22px;
  height: 22px;
}
.auth-connect > svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.auth-connect > svg:first-child:not(:last-child) {
  margin-right: auto;
}
.auth-hint {
  font-size: 10px;
  line-height: 1.9;
  color: #6f607b;
  margin: 23px 0;
  text-align: center;
}
.auth-support {
  color: #af9470;
  font-size: 11px;
  text-align: center;
  margin-top: 25px;
}
.auth-support:hover {
  color: var(--gold);
}
.auth-message {
  border: 1px solid #87a9d925;
  border-radius: 5px;
  background: #87a9d907;
  padding: 14px 16px;
  font-size: 11px;
  color: #c2ac8d;
  line-height: 1.8;
  margin-bottom: 15px;
}
.auth-text-button {
  font:
    550 11px Archivo,
    sans-serif;
  color: #a18eaf;
  background: none;
  border: 0;
  padding: 17px 0 0;
  text-align: center;
  cursor: pointer;
}
.auth-text-button:hover {
  color: var(--gold);
}
.auth-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #ffffff0b;
  background: #ffffff02;
  padding: 15px;
  border-radius: 5px;
  margin: 0 0 25px;
}
.auth-identity > img,
.auth-identity > span {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #211828;
  color: #bfa0d4;
  flex-shrink: 0;
}
.auth-identity strong {
  font-size: 12px;
  color: #e2d3ed;
  font-weight: 750;
  display: block;
}
.auth-identity small {
  font-size: 9px;
  color: #7e6b8f;
  display: block;
  margin-top: 6px;
}
.auth-identity > b {
  margin-left: auto;
  font-weight: 500;
  font-size: 7px;
}
.auth-roles-block h3 {
  font-size: 10px;
  color: #9c87af;
  letter-spacing: 0.7px;
  margin-bottom: 13px;
}
.role-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.discord-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff0e;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 9px;
  background: #ffffff03;
  color: #bcb0c6;
}
.discord-role > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--role-color);
  flex-shrink: 0;
}
.grade-choices {
  padding: 0;
  margin: 0 0 15px;
  border: 0;
  max-height: 280px;
  overflow: auto;
}
.grade-choices legend {
  font-size: 10px;
  color: #9b85ac;
  margin-bottom: 13px;
}
.grade-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid #ffffff0b;
  background: #18131e;
  border-radius: 5px;
  margin-bottom: 9px;
  cursor: pointer;
}
.grade-choice:has(input:checked) {
  border-color: #87a9d970;
  background: #87a9d909;
}
.grade-choice input {
  appearance: none;
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}
.grade-choice:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.grade-symbol {
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #ffffff04;
  border-radius: 5px;
  color: var(--role-color);
}
.grade-symbol svg {
  width: 19px;
  height: 19px;
}
.grade-choice strong {
  font-size: 11px;
  display: block;
}
.grade-choice small {
  font-size: 8px;
  color: #7c678b;
  display: block;
  margin-top: 6px;
}
.grade-choice > i {
  margin-left: auto;
  color: #87a9d9;
  opacity: 0;
}
.grade-choice:has(input:checked) > i {
  opacity: 1;
}
.grade-choice > i svg {
  width: 17px;
  height: 17px;
}
.auth-layout.wide .auth-panel {
  padding-top: 45px;
  padding-bottom: 45px;
}
.auth-layout.wide .auth-description {
  margin-bottom: 20px;
}
.auth-layout.wide .auth-identity {
  margin-bottom: 20px;
}
.discord-profile-button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #87a9d908;
  border: 1px solid #87a9d920;
  border-radius: 4px;
  color: #c5a76c;
  padding: 7px 9px;
  font-size: 9px;
  max-width: 200px;
  flex-shrink: 0;
  order: 4;
}
.discord-profile-button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.discord-profile-button > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.officer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.admin-notice {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 17px 20px;
  background: #87a9d907;
  border: 1px solid #87a9d920;
  border-radius: 5px;
  margin-bottom: 25px;
}
.admin-notice svg {
  color: var(--gold);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.admin-notice p {
  font-size: 11px;
  color: #af9a96;
  line-height: 1.8;
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 22px;
}
.admin-controls {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.admin-controls .field {
  max-width: 350px;
}
.admin-toggle {
  font-size: 10px;
  color: #a18ab2;
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.7;
}
.admin-toggle input,
.permission-matrix input,
.admin-grade-item input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.permission-matrix td:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9b7d5;
  font-size: 11px;
}
.permission-matrix td svg {
  width: 16px;
  height: 16px;
  color: #9575a8;
}
.permission-matrix td:nth-child(2),
.permission-matrix td:nth-child(3),
.permission-matrix th:nth-child(2),
.permission-matrix th:nth-child(3) {
  text-align: center;
}
.permission-matrix td {
  padding: 15px 21px;
}
.admin-grade-description {
  font-size: 10px;
  line-height: 1.8;
  color: #8c749d;
  padding: 18px 20px;
}
.admin-grade-list {
  padding: 0 20px 20px;
  display: grid;
  gap: 9px;
  max-height: 450px;
  overflow: auto;
}
.admin-grade-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.admin-grade-item .discord-role {
  margin: 0;
}
.admin-save-message {
  font-size: 12px;
  color: var(--gold);
  line-height: 1.8;
  margin-top: 24px;
}
.officer-links {
  display: grid;
  gap: 15px;
  padding: 0 20px 24px;
}
.officer-link-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 1fr) 32px;
  gap: 14px;
  align-items: end;
}
.officer-link-row .field input {
  padding: 10px;
  font-size: 11px;
}
.officer-link-row > button {
  margin-bottom: 4px;
}
.permission-empty {
  color: #756180;
}
@media (max-width: 1050px) {
  .auth-story {
    padding: 35px;
  }
  .auth-panel {
    padding: 40px 35px;
  }
  .auth-panel > h2 {
    font-size: 31px;
  }
  .auth-story-copy h1 {
    font-size: 60px;
  }
  .auth-identity {
    flex-wrap: wrap;
  }
  .auth-identity > b {
    font-size: 7px;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .discord-profile-button {
    max-width: 140px;
  }
  .topbar {
    gap: 12px;
  }
}
@media (max-width: 720px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .auth-story {
    padding: 27px 25px;
    border-right: 0;
    border-bottom: 1px solid #ffffff0b;
    min-height: 155px;
  }
  .auth-story-copy {
    padding: 30px 0 0;
    margin: 0;
  }
  .auth-story-copy h1 {
    font-size: 35px;
    line-height: 1;
    letter-spacing: -1px;
  }
  .auth-story-copy h1 br {
    display: none;
  }
  .auth-story-copy h1 span {
    display: block;
    margin-top: 3px;
  }
  .auth-story-copy > .eyebrow,
  .auth-story-copy > p:last-child,
  .auth-story-footer {
    display: none;
  }
  .auth-wordmark {
    font-size: 23px;
  }
  .auth-wordmark small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .auth-panel,
  .auth-layout.wide .auth-panel {
    padding: 35px 25px 45px;
  }
  .auth-lock {
    margin-bottom: 25px;
    width: 42px;
    height: 42px;
  }
  .auth-panel > h2 {
    font-size: 30px;
  }
  .auth-connect {
    font-size: 11px;
  }
  .grade-choices {
    max-height: 310px;
  }
  .auth-identity > b {
    margin-left: auto;
  }
  .discord-profile-button {
    padding: 7px;
    max-width: 100px;
  }
  .discord-profile-button > span {
    font-size: 8px;
  }
  .global-search {
    display: none;
  }
  .topbar .breadcrumb {
    margin-right: auto;
  }
  .officer-link-row {
    grid-template-columns: minmax(0, 1fr) 100px 25px;
    gap: 10px;
  }
  .officer-link-row .icon-button {
    width: 25px;
  }
  .officer-link-row .field > span {
    font-size: 8px;
  }
  .admin-controls {
    padding: 18px;
  }
  .admin-notice {
    padding: 15px;
  }
  .admin-notice p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-gate * {
    transition: none !important;
  }
}

:root {
  --night: #0e0d10;
  --panel: #19171b;
  --muted: #a6a3aa;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #87a9d9;
  color: #f5f4f0;
  background: #09080b;
}
.tablet {
  background: var(--night);
  border-color: #ffffff0b;
}
.device-bar {
  height: 46px;
  background: #0b0a0d;
  border-bottom-color: var(--line);
}
.wordmark {
  font-size: 20px;
  font-stretch: 65%;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.wordmark b {
  font-size: 8px;
  letter-spacing: 2.3px;
  color: #827c88;
}
.workspace {
  height: calc(100dvh - 48px);
  min-height: 0;
}
.sidebar {
  background: linear-gradient(180deg, #111a2c, #0c0b0e);
  padding: 26px 14px 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.department {
  padding: 0 7px 25px;
  border-bottom-color: #ffffff0b;
  flex-shrink: 0;
}
.department span {
  color: var(--gold);
  letter-spacing: 2px;
}
.department strong {
  font-size: 12px;
  font-weight: 750;
}
.department small {
  color: #827987;
}
.badge-holder {
  width: 43px;
  height: 54px;
  filter: drop-shadow(0 5px 12px #0006);
}
#navigation {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 17px 0 25px;
  scrollbar-width: thin;
  scrollbar-color: #87a9d945 transparent;
}
.nav-group {
  margin-top: 9px;
  border: 0;
}
.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 12px;
  list-style: none;
  font-size: 9px;
  letter-spacing: 1.55px;
  text-transform: uppercase;
  font-weight: 750;
  color: #877d90;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background 0.18s,
    color 0.18s;
  user-select: none;
}
.nav-label::-webkit-details-marker {
  display: none;
}
.nav-label::marker {
  content: "";
}
.nav-label:hover {
  color: #d0c6d9;
  background: #ffffff03;
}
.nav-group[open] > .nav-label {
  color: #d1bd8c;
}
.nav-group-count {
  margin-left: auto;
  color: #655c6c;
  font-size: 8px;
  font-weight: 550;
  letter-spacing: 1px;
}
.nav-chevron {
  display: flex;
  color: #82738d;
  transition: transform 0.2s;
}
.nav-chevron svg {
  width: 12px;
  height: 12px;
}
.nav-group[open] > .nav-label .nav-chevron {
  transform: rotate(90deg);
  color: var(--gold);
}
.nav-group-links {
  display: grid;
  gap: 4px;
  padding: 3px 0 10px;
}
.nav-item {
  position: relative;
  gap: 11px;
  padding: 12px 12px;
  border-radius: 4px;
  margin: 0;
  color: #9b919f;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  min-height: 40px;
}
.nav-item > svg {
  width: 16px;
  height: 16px;
  color: #756a80;
  flex-shrink: 0;
}
.nav-item-text {
  display: block;
  flex: 1;
  min-width: 0;
}
.nav-item:hover {
  background: #ffffff04;
  color: #e5dde9;
  border-color: #ffffff07;
}
.nav-item:hover > svg {
  color: #cebb94;
}
.nav-item.active {
  background: linear-gradient(90deg, #87a9d916, #87a9d908);
  border: 1px solid #87a9d922;
  color: #ffd56f;
  box-shadow: 0 4px 15px #00000010;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px #87a9d935;
}
.nav-item.active > svg {
  color: var(--gold);
}
.nav-item.active:after {
  width: 4px;
  height: 4px;
  background: var(--gold);
  flex-shrink: 0;
}
.nav-count {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #87a9d912;
  border: 1px solid #87a9d917;
  color: #b99e67;
  padding: 3px 5px;
  border-radius: 3px;
}
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: 0;
  padding-bottom: 15px;
}
.officer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid #ffffff0c;
  background: transparent;
  padding: 20px 7px 17px;
  margin: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.officer:hover {
  background: #ffffff02;
}
.officer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #87a9d945;
  background: #211a27;
  box-shadow: 0 0 0 4px #87a9d905;
  display: block;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.officer-avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.officer-info {
  min-width: 0;
  flex: 1;
}
.officer strong {
  font-size: 11px;
  font-weight: 750;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2d8ea;
}
.officer small {
  font-size: 9px;
  color: #b89a60;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  line-height: 1.4;
}
.officer-profile-arrow {
  margin-left: auto;
  display: flex;
  color: #665973;
}
.officer-profile-arrow svg {
  width: 13px;
  height: 13px;
}
.configuration-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid #ffffff09;
  border-radius: 4px;
  background: #ffffff03;
  color: #a99bb4;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.configuration-button > span {
  display: flex;
}
.configuration-button svg {
  width: 16px;
  height: 16px;
  color: #94829f;
}
.configuration-button .configuration-arrow {
  margin-left: auto;
}
.configuration-arrow svg {
  width: 12px;
  height: 12px;
  color: #6b5c78;
}
.configuration-button:hover,
.configuration-button.active {
  color: var(--gold);
  background: #87a9d90a;
  border-color: #87a9d930;
}
.configuration-button:hover svg,
.configuration-button.active svg {
  color: var(--gold);
}
.main-layout {
  height: 100%;
  min-height: 0;
  background: radial-gradient(ellipse at top right, #87a9d904, transparent 60%), #121014;
}
.topbar {
  flex-shrink: 0;
  background: #141216;
  border-bottom-color: var(--line);
}
main {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #87a9d965 #121014;
}
.app-footer {
  flex-shrink: 0;
  background: #100e12;
  border-top-color: #ffffff07;
  color: #746a7e;
}
.page-heading h1 {
  font-size: 35px;
  font-stretch: 70%;
  font-weight: 900;
  letter-spacing: -1px;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 2.6px;
}
.page-heading .subtitle {
  color: #948a9e;
  font-size: 11px;
}
.panel {
  background: linear-gradient(145deg, #1a171c, #161318);
  border-color: #ffffff09;
  box-shadow: 0 6px 25px #00000008;
  border-radius: 5px;
}
.panel-head {
  border-color: #ffffff08;
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.1px;
  color: #e9e1ee;
}
.panel-head h2 svg {
  color: var(--gold);
}
.stat-card {
  background: linear-gradient(135deg, #1d191f, #171419);
  border-color: #ffffff09;
  border-radius: 5px;
}
.stat-top {
  color: #a59aaf;
}
.stat-number {
  font-size: 38px;
  font-weight: 900;
  font-stretch: 70%;
  color: #f5f0f7;
}
.stat-bottom {
  color: #7f7189;
}
.hero-card {
  border-color: #ffffff0c;
  background:
    linear-gradient(90deg, #151117f0, #15111780),
    url("../img/los-santos.jpg") center/cover;
}
.hero-card h2 {
  font-size: 39px;
  font-weight: 900;
  font-stretch: 65%;
  letter-spacing: -1px;
}
.hero-card .eyebrow {
  color: var(--gold);
  letter-spacing: 2px;
}
.button.primary {
  font-weight: 800;
  letter-spacing: 0.1px;
  background: var(--gold);
  border-color: #87a9d966;
  color: #16110b;
  box-shadow: 0 3px 18px #87a9d908;
}
.button.primary:hover {
  background: #ffda76;
}
.quick-card {
  background: #ffffff04;
  border-color: #ffffff08;
  border-radius: 4px;
}
.quick-card:hover {
  border-color: #87a9d936;
  background: #87a9d905;
}
.quick-card strong {
  font-size: 11px;
  font-weight: 700;
}
.quick-card small {
  color: #887694;
}
.toolbar {
  background: #ffffff03;
  border-bottom-color: #ffffff08;
}
.filter-search {
  background: #100d13;
  border-color: #ffffff0b;
}
.filter-search input {
  background: transparent;
  border: 0;
}
.table-wrap th {
  color: #877293;
  background: #ffffff03;
  font-size: 8px;
  padding-top: 17px;
  padding-bottom: 17px;
}
.table-wrap td {
  padding-top: 19px;
  padding-bottom: 19px;
}
.table-wrap tbody tr:hover {
  background: #87a9d904;
}
.profile-role-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.profile-role-section > .eyebrow {
  font-size: 8px;
}
.profile-role-section > .role-pills {
  margin-bottom: 0;
}
.discord-profile-button {
  background: #87a9d908;
  border-color: #87a9d918;
  color: #d6b979;
}
.auth-identity > img {
  border-radius: 50%;
  border: 1px solid #87a9d935;
}
.settings-option {
  background: #ffffff02;
  border-color: #ffffff09;
}
.settings-option:hover {
  background: #87a9d904;
  border-color: #87a9d930;
}
@media (min-width: 1550px) {
  .workspace {
    height: calc(100dvh - 84px);
    min-height: 0;
  }
  .tablet {
    height: calc(100dvh - 36px);
    min-height: 0;
    max-height: 1100px;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .hero-card h2 {
    font-size: 44px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    padding: 22px 11px 0;
  }
  .department {
    gap: 10px;
  }
  .department strong {
    font-size: 11px;
  }
  .officer strong,
  .officer small {
    max-width: 110px;
  }
  .configuration-button {
    padding: 11px 10px;
  }
  .nav-label {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-item {
    padding: 11px 10px;
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .hero-card h2 {
    font-size: 35px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    top: 46px;
    bottom: 0;
    height: calc(100dvh - 46px);
    width: 260px;
    padding: 23px 14px 0;
    overflow: hidden;
  }
  .department strong {
    font-size: 12px;
  }
  .nav-item {
    font-size: 11px;
    padding: 12px;
  }
  .officer strong,
  .officer small {
    max-width: 150px;
  }
  .configuration-button {
    font-size: 11px;
    padding: 13px;
  }
  .workspace {
    height: calc(100dvh - 48px);
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .hero-card h2 {
    font-size: 37px;
  }
  .stat-number {
    font-size: 33px;
  }
  .app-footer {
    font-size: 8px;
  }
  .profile-role-section {
    padding-top: 17px;
  }
}

.discord-connection-notice {
  position: fixed;
  z-index: 60;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 13px;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 30px);
  padding: 17px 20px;
  background: #211b16;
  border: 1px solid #87a9d945;
  border-radius: 6px;
  box-shadow: 0 12px 45px #0007;
  color: #e2c59a;
}
.discord-connection-notice > span {
  display: flex;
  color: #87a9d9;
}
.discord-connection-notice svg {
  width: 19px;
  height: 19px;
}
.discord-connection-notice strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}
.discord-connection-notice small {
  display: block;
  font-size: 9px;
  color: #ac987e;
  margin-top: 4px;
  line-height: 1.7;
}
.discord-connection-notice button {
  font:
    700 10px Archivo,
    sans-serif;
  color: var(--gold);
  padding: 9px 12px;
  border: 1px solid #87a9d935;
  border-radius: 4px;
  background: #87a9d908;
  margin-left: 10px;
  white-space: nowrap;
  cursor: pointer;
}
.discord-connection-notice button:hover {
  background: #87a9d915;
}
@media (max-width: 650px) {
  .discord-connection-notice {
    bottom: 15px;
    padding: 14px;
    gap: 10px;
    width: calc(100vw - 30px);
    flex-wrap: wrap;
  }
  .discord-connection-notice > p {
    flex: 1;
    min-width: 180px;
  }
  .discord-connection-notice button {
    margin-left: 29px;
  }
}

main.workbench-mode {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
  background: #151217;
  flex-shrink: 0;
}
.workbench-header .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.workbench-header h1 {
  font-size: 28px;
  font-stretch: 75%;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.workbench-header h1 > span {
  color: var(--gold);
}
.workbench-header .button {
  font-size: 9px;
  min-height: 34px;
  padding: 9px 12px;
}
.workbench-notice {
  padding: 15px 25px 0;
  flex-shrink: 0;
}
.workbench-notice .connection-banner {
  margin-bottom: 15px;
}
.citizen-workbench {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.citizen-directory {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #100d13;
}
.directory-search {
  padding: 19px 14px 14px;
  border-bottom: 1px solid #ffffff06;
  flex-shrink: 0;
}
.directory-search > label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff0c;
  border-radius: 4px;
  background: #1a151f;
  padding: 9px 10px;
  color: #897794;
}
.directory-search > label > svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.directory-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #d5c8df;
  font-size: 10px;
  outline: none;
}
.directory-search input::placeholder {
  color: #786784;
}
.directory-search > p {
  font-size: 8px;
  letter-spacing: 0.4px;
  color: #77677f;
  margin: 13px 3px 0;
}
.citizen-directory-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-color: #87a9d940 transparent;
}
.citizen-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: none;
  border-radius: 4px;
  padding: 12px 9px;
  color: #b2a3bd;
  text-align: left;
  transition:
    background 0.18s,
    border-color 0.18s;
  margin: 3px 0;
}
.citizen-row:hover {
  background: #ffffff04;
  border-color: #ffffff05;
}
.citizen-row.selected {
  background: linear-gradient(90deg, #87a9d914, #87a9d907);
  border-color: #87a9d925;
  color: #f0dcaf;
}
.citizen-row > .avatar {
  width: 29px;
  height: 33px;
  border-color: #ffffff0e;
  background: #261c31;
  font-size: 9px;
  flex-shrink: 0;
}
.citizen-row.selected > .avatar {
  background: #87a9d90e;
  border-color: #87a9d925;
  color: #dfbf80;
}
.citizen-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.citizen-row strong {
  font-size: 10px;
  font-weight: 650;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citizen-row small {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  color: #7d6d89;
  white-space: nowrap;
}
.citizen-row small i {
  font-style: normal;
  margin: 0 6px;
  color: #51445c;
}
.citizen-row.selected small {
  color: #b19a70;
}
.citizen-row > svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #766082;
}
.citizen-row.selected > svg {
  color: var(--gold);
}
.directory-pagination {
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.directory-pagination .icon-button {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.directory-pagination span {
  font-size: 9px;
  color: #a18aac;
  letter-spacing: 1px;
}
.directory-empty {
  padding: 35px 18px;
  text-align: center;
  color: #64566f;
}
.directory-empty > svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 13px;
  color: #9478a7;
}
.directory-empty > p {
  font-size: 10px;
  line-height: 1.9;
  color: #8c759a;
}
.citizen-detail {
  overflow: auto;
  min-height: 0;
  min-width: 0;
  background: radial-gradient(ellipse at top right, #87a9d903, transparent 60%), #151117;
}
.citizen-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px 21px;
  border-bottom: 1px solid var(--line);
}
.citizen-detail-head > .eyebrow,
.citizen-detail-head .eyebrow {
  font-size: 7px;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}
.citizen-detail-head h2 {
  font-size: 25px;
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1.25;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.citizen-detail-head h2 > span {
  color: var(--gold);
}
.citizen-detail-head p:not(.eyebrow) {
  font-size: 8px;
  color: #776582;
  margin-top: 10px;
  line-height: 1.8;
}
.citizen-detail-head p > i {
  font-style: normal;
  padding: 0 9px;
  color: #44364d;
}
.citizen-detail-head > .button {
  font-size: 8px;
  min-height: 30px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.citizen-detail-head > .button svg {
  width: 12px;
  height: 12px;
}
.citizen-profile-grid {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 25px;
  padding: 26px;
}
.citizen-actions-panel {
  min-width: 0;
}
.citizen-actions-panel > .identity-photo {
  width: 110px;
  height: 135px;
  margin: 0 auto;
  border-radius: 5px;
  border-color: #87a9d930;
  box-shadow: 0 6px 20px #0003;
  background: #23192c;
  font-size: 30px;
}
.identity-photo-label {
  display: block;
  font-size: 6px;
  letter-spacing: 1.8px;
  color: #6f5c7d;
  text-align: center;
  margin-top: 10px;
}
.citizen-actions {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}
.citizen-actions > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid #87a9d915;
  border-radius: 3px;
  background: #87a9d908;
  color: #b9a176;
  line-height: 1.4;
  text-align: left;
  font-size: 8px;
  font-weight: 650;
  min-height: 40px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.citizen-actions > button:first-child {
  background: var(--gold);
  color: #211809;
  border-color: var(--gold);
}
.citizen-actions > button:hover {
  background: #87a9d913;
  border-color: #87a9d940;
  color: #dfc699;
}
.citizen-actions > button:first-child:hover {
  background: #ffda76;
  color: #211809;
}
.citizen-actions > button > svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.citizen-actions > button > svg:last-child {
  margin-left: auto;
  width: 9px;
  height: 9px;
  opacity: 0.5;
}
.citizen-actions > button > span {
  flex: 1;
  display: block;
}
.citizen-information {
  min-width: 0;
}
.citizen-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
}
.citizen-fact {
  min-width: 0;
  border-bottom: 1px solid #ffffff09;
  padding-bottom: 14px;
}
.citizen-fact > span {
  display: block;
  font-size: 8px;
  color: #7f6a8c;
  margin-bottom: 8px;
}
.citizen-fact > strong {
  display: block;
  font-size: 10px;
  font-weight: 650;
  color: #e5d7ef;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.citizen-permits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.citizen-permits > div > span {
  font-size: 8px;
  color: #7f6a8c;
  display: block;
  margin-bottom: 9px;
}
.permit-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #87728f;
  font-size: 8px;
  font-weight: 550;
  line-height: 1.5;
}
.permit-state i {
  display: block;
  width: 4px;
  height: 4px;
  background: #756281;
  border-radius: 50%;
  flex-shrink: 0;
}
.permit-state.valid {
  color: #9bb19b;
}
.permit-state.valid i {
  background: #80c5a5;
}
.citizen-dossiers {
  margin-top: 25px;
}
.dossier-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ffffff10;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #87a9d940 transparent;
}
.dossier-tabs > button {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 14px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  color: #877293;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dossier-tabs > button > span {
  font-size: 7px;
  background: #ffffff06;
  padding: 3px 5px;
  border-radius: 3px;
  color: #796084;
}
.dossier-tabs > button[aria-selected="true"] {
  color: #f3d393;
}
.dossier-tabs > button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.dossier-tabs > button[aria-selected="true"] > span {
  background: #87a9d914;
  color: #c7a76c;
}
.dossier-tab-content {
  padding-top: 20px;
  min-width: 0;
}
.dossier-tab-content .empty-state {
  padding: 40px 12px;
}
.dossier-tab-content .empty-state strong {
  font-size: 11px;
}
.dossier-tab-content .empty-state p {
  font-size: 9px;
}
.dossier-tab-content .table-wrap th,
.dossier-tab-content .table-wrap td {
  padding: 13px 12px;
  font-size: 8px;
}
.dossier-stack {
  display: grid;
  gap: 13px;
}
.dossier-card {
  background: #110d16;
  border: 1px solid #ffffff0b;
  border-left: 2px solid #87a9d950;
  border-radius: 4px;
  padding: 18px;
}
.dossier-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dossier-card-top .tag {
  font-size: 7px;
  padding: 4px 6px;
}
.dossier-card-top time {
  font-size: 8px;
  color: #7a6289;
}
.dossier-card h3 {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
  margin-top: 16px;
}
.dossier-content {
  font-size: 10px;
  color: #b59cc5;
  line-height: 1.9;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.dossier-content p {
  margin: 8px 0;
  white-space: pre-wrap;
}
.dossier-content h4 {
  font-size: 12px;
  margin: 15px 0 8px;
  color: #ddc8ea;
}
.dossier-content blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 2px solid #87a9d970;
  background: #87a9d905;
  color: #b49b7e;
}
.rich-bullet {
  padding-left: 14px;
  position: relative;
}
.rich-bullet:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.dossier-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #ffffff08;
  margin-top: 17px;
  padding-top: 13px;
  font-size: 8px;
  color: #80658f;
}
.dossier-card-bottom strong {
  font-size: 8px;
  color: #c4a46a;
  font-weight: 650;
}
.dossier-card-bottom i {
  font-style: normal;
  padding: 0 8px;
  color: #64513c;
}
.citizen-welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 25px;
  text-align: center;
  background: radial-gradient(ellipse at center, #87a9d904, transparent 70%);
}
.citizen-welcome > svg {
  width: 34px;
  height: 34px;
  color: #cba75d;
  stroke-width: 1.2;
  margin-bottom: 25px;
}
.citizen-welcome .eyebrow {
  font-size: 8px;
  letter-spacing: 2.4px;
}
.citizen-welcome h2 {
  font-size: 38px;
  line-height: 1.15;
  font-stretch: 65%;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.citizen-welcome h2 span {
  color: var(--gold);
}
.citizen-welcome > p:last-child {
  font-size: 11px;
  line-height: 1.9;
  color: #887095;
  margin-top: 19px;
  max-width: 38ch;
}
.agent-identity {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
}
.agent-identity > .identity-photo {
  height: 100px;
  width: 85px;
}
.agent-identity > .identity-photo > svg {
  width: 35px;
  height: 35px;
  color: #a38a63;
}
.agent-identity h3 {
  font-size: 23px;
  margin: 7px 0 12px;
}
.agent-identity p {
  font-size: 10px;
  color: #a18aaa;
  margin-top: 7px;
}
.agent-statistics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 25px;
}
.agent-statistics > div {
  border: 1px solid #ffffff08;
  padding: 23px 20px;
  background: #ffffff02;
}
.agent-statistics > div > span {
  display: block;
  color: #9e84ae;
  font-size: 9px;
  line-height: 1.7;
}
.agent-statistics strong {
  display: block;
  color: #f2d69e;
  font-size: 28px;
  font-weight: 850;
  font-stretch: 75%;
  margin-top: 12px;
}
.agent-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px;
  padding: 20px 22px;
  background: #87a9d908;
  border: 1px solid #87a9d918;
  border-radius: 4px;
}
.agent-total span {
  font-size: 10px;
  color: #a88c65;
}
.agent-total strong {
  font-size: 28px;
  color: var(--gold);
  font-stretch: 75%;
}
.register-warning {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 15px 20px;
  margin: 0 0 22px;
  background: #87a9d908;
  border: 1px solid #87a9d925;
  color: #bd9d6a;
  border-radius: 4px;
}
.register-warning svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.register-warning p {
  font-size: 11px;
  line-height: 1.8;
}
.workbench-mode > .register-warning {
  margin: 15px 25px;
  flex-shrink: 0;
}
.interrogation-modal {
  width: min(760px, calc(100vw - 30px));
}
.interrogation-modal .modal-head {
  padding: 23px 27px;
}
.interrogation-modal .modal-head h2 {
  font-size: 22px;
}
.interrogation-modal .field > span {
  font-size: 10px;
}
.interrogation-modal .form-grid {
  gap: 18px;
}
.rich-editor {
  background: #100c16;
  border: 1px solid #ffffff15;
  border-radius: 5px;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid #ffffff0c;
  background: #201727;
}
.rich-toolbar button {
  font:
    700 11px Archivo,
    sans-serif;
  min-width: 27px;
  height: 26px;
  border: 0;
  background: none;
  color: #a98abc;
  border-radius: 3px;
  cursor: pointer;
}
.rich-toolbar button:hover {
  color: var(--gold);
  background: #87a9d90a;
}
.rich-toolbar small {
  margin-left: auto;
  font-size: 8px;
  color: #756181;
  line-height: 1.5;
}
.rich-editor textarea {
  border: 0 !important;
  background: none !important;
  border-radius: 0;
  resize: vertical;
  min-height: 200px !important;
  line-height: 1.9;
  font-size: 12px !important;
}
.rich-content {
  display: block;
  white-space: normal !important;
}
.rich-content p {
  margin: 8px 0;
  line-height: 1.9;
}
.rich-content h4 {
  font-size: 13px;
  color: #e3c1f5;
  margin: 15px 0 7px;
}
.rich-content blockquote {
  border-left: 2px solid #87a9d950;
  margin: 10px 0;
  padding: 7px 15px;
  color: #a88cbb;
}
.citizen-picker select {
  width: 100%;
}
.dossier-tabs > button:focus-visible {
  outline-offset: -3px;
}
@media (min-width: 1700px) {
  .citizen-workbench {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .citizen-profile-grid {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
  }
  .citizen-detail-head {
    padding: 28px 30px;
  }
  .citizen-facts {
    gap: 24px 25px;
  }
  .citizen-fact > strong {
    font-size: 11px;
  }
  .citizen-actions > button {
    font-size: 9px;
  }
  .dossier-tabs > button {
    font-size: 10px;
  }
}
@media (max-width: 1250px) {
  .citizen-workbench {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .citizen-profile-grid {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 21px;
  }
  .citizen-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .citizen-permits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  .citizen-detail-head {
    padding: 21px;
    flex-wrap: wrap;
  }
  .citizen-detail-head h2 {
    font-size: 24px;
  }
  .citizen-actions > button {
    font-size: 8px;
    padding: 10px 8px;
  }
  .citizen-row {
    padding: 11px 7px;
    gap: 8px;
  }
  .citizen-row strong {
    font-size: 9px;
  }
  .citizen-row small {
    font-size: 7px;
  }
  .dossier-tabs {
    gap: 17px;
  }
  .workbench-header {
    padding: 23px;
  }
  .workbench-header h1 {
    font-size: 26px;
  }
  .agent-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .citizen-workbench {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .citizen-profile-grid {
    grid-template-columns: 1fr;
  }
  .citizen-actions-panel {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 17px;
    align-items: start;
  }
  .citizen-actions-panel > .identity-photo {
    width: 80px;
    height: 100px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .identity-photo-label {
    grid-column: 1;
    font-size: 5px;
    letter-spacing: 0.7px;
    margin-top: 8px;
  }
  .citizen-actions {
    grid-column: 2;
    grid-row: 1/3;
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .citizen-actions > button {
    font-size: 7px;
    min-height: 36px;
    padding: 8px;
  }
  .citizen-actions > button > svg:last-child {
    display: none;
  }
  .citizen-actions > button > svg {
    width: 10px;
    height: 10px;
  }
  .citizen-actions > button:first-child {
    grid-column: 1/-1;
  }
  .citizen-row > .avatar {
    display: none;
  }
  .citizen-row strong {
    font-size: 10px;
  }
  .directory-search {
    padding: 15px 10px;
  }
  .directory-search > label {
    padding: 9px;
  }
  .directory-search input {
    font-size: 9px;
  }
  .citizen-detail-head > .button {
    font-size: 8px;
  }
  .agent-statistics {
    padding: 0 18px;
  }
  .agent-statistics > div {
    padding: 20px 15px;
  }
  .agent-identity {
    padding: 22px 18px;
    gap: 17px;
  }
  .agent-total {
    margin: 20px 18px;
  }
  .rich-toolbar small {
    display: none;
  }
}
@media (max-width: 720px) {
  .citizen-workbench {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .workbench-header {
    padding: 19px 17px;
    align-items: start;
  }
  .workbench-header h1 {
    font-size: 25px;
  }
  .workbench-header .eyebrow {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .workbench-header .heading-actions {
    gap: 6px;
  }
  .workbench-header .button {
    padding: 9px 10px;
    font-size: 8px;
  }
  .workbench-header .button svg {
    display: none;
  }
  .workbench-notice {
    padding: 12px 14px 0;
  }
  .workbench-notice .connection-banner {
    font-size: 9px;
  }
  .citizen-detail-head {
    padding: 20px 17px;
    gap: 15px;
  }
  .citizen-detail-head h2 {
    font-size: 23px;
  }
  .citizen-profile-grid {
    padding: 18px 16px;
  }
  .citizen-actions-panel {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
  }
  .citizen-actions-panel > .identity-photo {
    width: 65px;
    height: 83px;
  }
  .citizen-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .citizen-actions > button:first-child {
    grid-column: auto;
  }
  .citizen-actions > button {
    min-height: 32px;
    font-size: 8px;
    padding: 8px;
  }
  .citizen-actions > button > svg {
    width: 11px;
    height: 11px;
  }
  .citizen-permits {
    padding-bottom: 20px;
  }
  .citizen-fact > strong {
    font-size: 9px;
  }
  .dossier-tabs > button {
    font-size: 8px;
  }
  .dossier-tabs {
    gap: 15px;
  }
  .agent-identity h3 {
    font-size: 21px;
  }
  .agent-identity > .identity-photo {
    width: 60px;
    height: 75px;
  }
  .agent-statistics > div {
    padding: 18px 13px;
  }
  .agent-statistics > div > span {
    font-size: 8px;
  }
  .agent-statistics strong {
    font-size: 25px;
  }
}
@media (max-width: 520px) {
  .citizen-workbench {
    grid-template-columns: 1fr;
    overflow: auto;
    display: block;
  }
  .citizen-directory {
    height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .citizen-directory-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    padding: 5px 10px;
    gap: 5px;
  }
  .citizen-row {
    margin: 0;
  }
  .citizen-row > .avatar {
    display: flex;
    width: 24px;
    height: 28px;
    font-size: 7px;
  }
  .citizen-row > svg {
    display: none;
  }
  .directory-search {
    padding: 12px 14px;
  }
  .directory-search > p {
    display: none;
  }
  .directory-pagination {
    padding: 8px;
  }
  .directory-pagination .icon-button {
    height: 22px;
    width: 22px;
  }
  .citizen-detail {
    overflow: visible;
    min-height: 450px;
  }
  .citizen-welcome {
    min-height: 380px;
    padding: 35px 20px;
  }
  .citizen-welcome h2 {
    font-size: 33px;
  }
  .citizen-profile-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .citizen-actions-panel {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 17px;
  }
  .citizen-actions-panel > .identity-photo {
    width: 75px;
    height: 95px;
  }
  .citizen-actions {
    grid-template-columns: 1fr 1fr;
  }
  .citizen-actions > button:first-child {
    grid-column: 1/-1;
  }
  .workbench-header {
    gap: 12px;
  }
  .workbench-header h1 {
    font-size: 23px;
  }
  .workbench-header .heading-actions {
    flex-direction: column;
    gap: 5px;
  }
  .workbench-header .button {
    padding: 8px 10px;
    min-height: 27px;
  }
  .citizen-detail-head h2 {
    font-size: 25px;
  }
  .citizen-detail-head .button {
    font-size: 9px;
  }
  .agent-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .interrogation-modal .modal-body {
    padding: 20px;
  }
  .interrogation-modal .form-grid {
    grid-template-columns: 1fr;
  }
  .interrogation-modal .field.full {
    grid-column: auto;
  }
  .citizen-picker {
    grid-column: auto !important;
  }
}

.photo-paste {
  border: 1px dashed var(--accent, #87a9d9);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--accent, #87a9d9);
  background: rgba(135, 169, 217, 0.04);
  font-size: 11px;
  cursor: text;
  outline: none;
}
.photo-paste:focus {
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(135, 169, 217, 0.13);
}
.photo-status,
.field-hint {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}

.evidence-upload {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: block;
}
.evidence-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.evidence-upload-heading p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 16px;
}
.evidence-file-button {
  display: inline-flex;
  cursor: pointer;
  margin-bottom: 12px;
}
.evidence-file-button input {
  display: none;
}
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.evidence-gallery > a,
.evidence-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.evidence-gallery img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.evidence-gallery span {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 10px;
  color: var(--muted);
}
.evidence-photo > .icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #152039;
  color: #87a9d9;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
}
.evidence-gallery-section {
  padding: 24px;
}
.evidence-gallery-section .panel-head {
  padding: 0;
}
.evidence-gallery > a:hover {
  border-color: #87a9d9;
}

.agent-roster-summary {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.agent-roster-summary strong {
  color: #f4f2f5;
  margin-right: 5px;
  font-size: 15px;
}
.agent-workbench .directory-search {
  display: grid;
  gap: 12px;
}
.agent-workbench .directory-search select {
  width: 100%;
  font-size: 11px;
}
.agent-directory-row .agent-status {
  margin-top: 8px;
  font-size: 8px;
}
.agent-directory-row > span:nth-child(2) {
  min-width: 0;
}
.agent-list-count {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #b4aebc;
}
.agent-status i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.agent-status.active {
  color: #80c9a4;
}
.agent-status.fired {
  color: #ef737b;
}
.agent-status.unknown {
  color: #dbba67;
}
.agent-profile-card {
  margin: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.agent-profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.agent-portrait {
  display: grid;
  place-items: center;
  width: 72px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(135, 169, 217, 0.045);
  color: #87a9d9;
  overflow: hidden;
}
.agent-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-portrait svg {
  width: 26px;
  height: 26px;
}
.agent-profile-title {
  flex: 1;
  min-width: 0;
}
.agent-profile-title h2 {
  margin: 7px 0 10px;
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.agent-profile-title .eyebrow {
  font-size: 8px;
  margin: 0;
}
.agent-profile-top .button {
  font-size: 10px;
  padding: 11px 14px;
}
.agent-profile-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.agent-profile-fields dt {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
}
.agent-profile-fields dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.agent-status-note {
  margin: 0;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.agent-activity-section {
  padding: 3px 25px 25px;
}
.agent-activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.agent-activity-heading .eyebrow {
  font-size: 8px;
}
.agent-activity-heading h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 8px 0 0;
}
.agent-total-pill {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: var(--muted);
  font-size: 10px;
}
.agent-total-pill strong {
  color: #87a9d9;
  font-size: 25px;
}
.agent-activity-section .agent-statistics {
  padding: 0;
  gap: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.agent-activity-section .agent-statistics > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.012);
}
.agent-activity-section .agent-statistics > div > span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.agent-activity-section .agent-statistics strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin-top: 13px;
  color: #f4f2f5;
}
.agent-count-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 18px 0 0;
}
.profile-matricule {
  margin: 23px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.profile-matricule h3 {
  font-size: 18px;
  margin: 8px 0;
}
.profile-matricule p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.profile-matricule form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.profile-matricule .field {
  flex: 1;
  min-width: 0;
}
.profile-matricule .button {
  font-size: 10px;
  min-height: 42px;
}
.profile-matricule .eyebrow {
  font-size: 8px;
}
@media (max-width: 1100px) {
  .agent-profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agent-profile-top {
    flex-wrap: wrap;
  }
  .agent-profile-top .button {
    margin-left: 90px;
  }
  .agent-activity-section .agent-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .agent-profile-card {
    margin: 16px;
  }
  .agent-profile-top {
    padding: 18px;
    gap: 13px;
  }
  .agent-portrait {
    width: 55px;
    height: 65px;
  }
  .agent-profile-title h2 {
    font-size: 22px;
  }
  .agent-profile-fields {
    padding: 18px;
  }
  .agent-profile-top .button {
    margin-left: 68px;
  }
  .agent-activity-section {
    padding: 5px 16px 22px;
  }
  .agent-roster-summary {
    padding: 0 18px 17px;
    gap: 15px;
    font-size: 9px;
  }
  .agent-activity-section .agent-statistics > div {
    padding: 15px 12px;
  }
  .agent-workbench .citizen-directory {
    height: 280px;
  }
  .profile-matricule {
    padding: 17px;
  }
  .profile-matricule form {
    flex-direction: column;
    align-items: stretch;
  }
}

.citizen-phone-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.citizen-phone-section h3 {
  font-size: 16px;
  margin: 8px 0 18px;
}
.citizen-phone-section .eyebrow {
  font-size: 8px;
}
.citizen-phone-section form {
  display: flex;
  gap: 12px;
  align-items: end;
}
.citizen-phone-section .field {
  flex: 1;
}
.citizen-phone-section .button {
  font-size: 10px;
  min-height: 42px;
}
.officer-save-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 20px;
}
.officer-save-controls > span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.officer-save-controls .button {
  font-size: 10px;
}
@media (max-width: 600px) {
  .citizen-phone-section form {
    flex-direction: column;
    align-items: stretch;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .breadcrumb {
  flex: 1;
}

.citizen-action-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 12px;
}
.citizen-action-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.citizen-action-heading h3 {
  font-size: 15px;
  margin: 0;
}
.citizen-action-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.citizen-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.citizen-action-grid > button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.018);
  color: #e5e1e9;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.citizen-action-grid > button:hover {
  border-color: rgba(135, 169, 217, 0.45);
  background: rgba(135, 169, 217, 0.05);
}
.citizen-action-grid > button > svg:first-child {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #87a9d9;
}
.citizen-action-grid > button > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.citizen-action-grid > button > svg:last-child {
  width: 11px;
  height: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.citizen-editor-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.citizen-editor-identity > strong {
  font-size: 17px;
}
.citizen-editor-identity > span {
  font-size: 11px;
  color: var(--muted);
}
.citizen-actions-panel {
  display: block;
}
.citizen-actions-panel > .identity-photo {
  width: 100%;
  max-width: 160px;
  height: 200px;
  margin: 0 auto;
}
.identity-photo-label {
  display: block;
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .citizen-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .citizen-profile-grid {
    grid-template-columns: 1fr;
  }
  .citizen-actions-panel {
    display: block;
  }
  .citizen-actions-panel > .identity-photo {
    width: 90px;
    height: 112px;
    margin: 0;
  }
  .identity-photo-label {
    text-align: left;
  }
}
@media (max-width: 520px) {
  .citizen-action-grid {
    grid-template-columns: 1fr;
  }
  .citizen-action-grid > button {
    min-height: 48px;
    font-size: 12px;
  }
  .citizen-editor-identity {
    align-items: start;
    flex-direction: column;
  }
}
