@font-face {
  font-family: Workspace;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Workspace, "Segoe UI", Arial, sans-serif;
  color: #172b44;
}
body {
  background: #083763;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #55b4ff;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #438ded;
  outline-offset: 0;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: #2062bb;
  text-decoration: none;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 73% 45%,
    #159ed4 0,
    #086ca4 20%,
    #084a7d 42%,
    #052f59 64%,
    #061d39 100%
  );
}
.wallpaper:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(164deg, transparent 40%, #65d3ff22 40.2%, transparent 52%),
    linear-gradient(195deg, transparent 54%, #0b2f5b66 54.2%);
  opacity: 0.7;
}
.window-light {
  position: absolute;
  left: 62%;
  top: 27%;
  width: 300px;
  height: 290px;
  transform: perspective(700px) rotateY(-25deg) skewY(-2deg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  filter: drop-shadow(0 0 30px #45d2ff66);
}
.window-light i {
  background: linear-gradient(100deg, #36b5ea44, #88e3fc33);
  border: 2px solid #7cddfa99;
  box-shadow: inset 0 0 26px #6cddff33;
}
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(transparent, #031a35aa);
  clip-path: polygon(
    0 75%,
    5% 75%,
    5% 53%,
    6% 42%,
    7% 53%,
    7% 69%,
    13% 69%,
    13% 50%,
    15% 50%,
    15% 65%,
    18% 65%,
    18% 30%,
    19% 14%,
    20% 30%,
    20% 67%,
    25% 67%,
    25% 53%,
    29% 53%,
    29% 72%,
    37% 72%,
    37% 39%,
    39% 23%,
    41% 39%,
    41% 68%,
    52% 68%,
    52% 50%,
    54% 50%,
    54% 71%,
    62% 71%,
    62% 30%,
    64% 10%,
    66% 30%,
    66% 65%,
    72% 65%,
    72% 50%,
    77% 50%,
    77% 75%,
    86% 75%,
    86% 43%,
    89% 43%,
    89% 74%,
    100% 74%,
    100% 100%,
    0 100%
  );
}
.login-screen {
  height: 100dvh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: #03162e2b;
  position: relative;
}
.login-brand {
  position: absolute;
  left: 38px;
  top: 30px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}
.login-brand small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2px;
  margin-top: 7px;
  opacity: 0.65;
}
.brand-mark,
.desktop-seal {
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-mark span,
.desktop-seal span {
  font-size: 19px;
  letter-spacing: -1px;
  transform: rotate(90deg);
}
.login-center {
  text-align: center;
  width: 350px;
  padding: 20px 10px;
  margin-top: -20px;
}
.account-avatar {
  height: 112px;
  width: 112px;
  background: #c1d1df38;
  border: 1px solid #e4f4ff30;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  backdrop-filter: blur(12px);
}
.account-avatar .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1;
  color: #fff;
}
.login-center h1 {
  font-size: 37px;
  font-weight: 300;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.login-subtitle {
  font-size: 13px;
  color: #dae9f8;
  margin-bottom: 24px;
}
.login-choice {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  border: 1px solid #e4f1ff88;
  padding: 11px 18px;
  color: white;
  background: #06244738;
  font-size: 14px;
}
.login-choice:hover {
  background: #ffffff20;
}
.login-center input {
  width: 100%;
  padding: 11px 13px;
  background: #fffffff0;
  color: #102437;
  border: 2px solid #ffffff88;
  border-radius: 0;
  font-size: 14px;
}
.password-input {
  display: flex;
  margin-top: 10px;
}
.password-input input {
  min-width: 0;
}
.password-input button {
  display: grid;
  place-items: center;
  width: 45px;
  background: #ffffff26;
  border: 2px solid #ffffffaa;
  border-left: 0;
  color: white;
  flex-shrink: 0;
}
.password-input button:hover {
  background: #1d86c8;
}
.login-help {
  font-size: 11px;
  line-height: 1.7;
  color: #c5d9ec;
  margin-top: 18px;
}
.login-register-toggle,
.register-cancel {
  border: 0;
  background: transparent;
  color: #e2efff;
  padding: 10px 4px;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.login-register-toggle:hover,
.register-cancel:hover {
  color: white;
}
.register-actions {
  display: grid;
  gap: 4px;
}
.register-submit {
  width: 100%;
  border: 1px solid #d9eaff;
  background: #ffffff24;
  color: white;
  padding: 11px 14px;
  font: inherit;
  cursor: pointer;
}
.register-submit:hover {
  background: #ffffff38;
}
.register-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.login-error {
  font-size: 13px;
  color: #ffe7cb;
  line-height: 1.6;
}
.discord-connect {
  padding: 12px;
  background: #5865f2;
  color: white;
  display: block;
  font-size: 13px;
}
.discord-connect .icon {
  width: 20px;
  margin-left: 8px;
}
.setup-notice {
  font-size: 12px;
  line-height: 1.7;
  color: #f4d8ac;
  background: #01152b88;
  padding: 12px;
}
.login-bottom {
  position: absolute;
  bottom: 30px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #bed3e6;
}
.login-profile {
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
}
.login-profile .icon {
  width: 30px;
  height: 30px;
}
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #052f59;
  color: white;
  z-index: 50;
}
.loading-screen h2 {
  font-size: 23px;
  font-weight: 300;
  margin: 28px 0 12px;
}
.loading-screen p {
  color: #bdd5ea;
  font-size: 13px;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 3px dotted #b7def4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#desktop {
  height: 100dvh;
  overflow: hidden;
  position: relative;
}
.desktop-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 34px;
  color: #fff;
}
.desktop-seal {
  font-size: 31px;
  opacity: 0.85;
}
.desktop-top strong {
  font-size: 14px;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.desktop-top > div > span {
  display: block;
  font-size: 11px;
  color: #b6d0e6;
  margin-top: 5px;
}
.desktop-session {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: #e0ecf5;
}
.desktop-session small {
  display: block;
  font-size: 10px;
  color: #a8c9df;
  margin-top: 5px;
}
.desktop-icons {
  display: grid;
  grid-template-columns: repeat(1, 98px);
  gap: 24px;
  padding: 25px 20px;
  width: max-content;
}
.desktop-icon {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 98px;
  padding: 10px 4px;
  border: 1px solid transparent;
  text-shadow: 0 1px 3px #012;
}
.desktop-icon:hover {
  background: #82cbf42b;
  border-color: #addfff50;
}
.app-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #d6eeff, #66bcf0);
  color: #14609a;
  border-radius: 7px;
  box-shadow: 0 4px 10px #00193355;
}
.app-symbol .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.5;
}
.app-symbol.police {
  background: linear-gradient(140deg, #3289dc, #0b3e7d);
  color: #fff6c9;
  border: 1px solid #84c8fa88;
}
.app-symbol.admin {
  background: linear-gradient(145deg, #d7e3ec, #859fbb);
  color: #1b4767;
}
.app-symbol.ambulance {
  background: linear-gradient(140deg, #fff, #c6dcdf);
  color: #bc353f;
}
.desktop-icon > span:last-child {
  font-size: 12px;
}
.desktop-watermark {
  position: absolute;
  right: 48px;
  bottom: 100px;
  color: #fff9;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 7px;
  text-align: right;
  pointer-events: none;
}
.desktop-watermark small {
  display: block;
  font-size: 9px;
  letter-spacing: 4.5px;
  margin-top: 12px;
  color: #bfdff0a6;
}
.taskbar {
  height: 46px;
  background: #061421eb;
  backdrop-filter: blur(25px);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  color: white;
  z-index: 20;
}
.start-button {
  width: 52px;
  display: grid;
  place-items: center;
}
.start-button .icon {
  fill: currentColor;
  stroke-width: 0;
  width: 21px;
}
.start-button:hover,
.system-tray button:hover,
.pinned-apps button:hover {
  background: #ffffff1b;
}
.taskbar-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 270px;
  background: #f4f6f9;
  color: #566371;
  padding: 0 13px;
  border: 1px solid #ddd;
}
.taskbar-search input {
  background: none;
  border: 0;
  width: 100%;
  font-size: 12px;
  outline: none;
  color: #182536;
  min-width: 0;
}
.taskbar-search .icon {
  width: 17px;
}
.pinned-apps {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding-left: 8px;
}
.pinned-apps button {
  width: 48px;
  position: relative;
  color: #9ac9ef;
}
.pinned-apps button.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: #66b4f5;
  bottom: 0;
  left: 6px;
  right: 6px;
}
.system-tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 10px;
}
.system-tray .icon {
  width: 17px;
}
.secure-tray {
  color: #78d4b7;
}
.system-tray button {
  height: 100%;
  padding: 0 6px;
  font-size: 11px;
  color: #f5f7f9;
}
.system-tray small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.start-menu {
  position: absolute;
  left: 0;
  bottom: 46px;
  width: 340px;
  background: #101f2ff5;
  backdrop-filter: blur(30px);
  z-index: 25;
  color: white;
  box-shadow: 0 -6px 24px #00142450;
  padding: 24px 18px 16px;
}
.start-menu h3 {
  font-weight: 500;
  margin: 0 0 6px;
  font-size: 18px;
}
.start-menu p {
  color: #9eafc2;
  font-size: 12px;
}
.start-menu button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  color: #fff;
  font-size: 13px;
}
.start-menu button:hover {
  background: #ffffff12;
}
.start-menu button .icon {
  color: #8ebce7;
}
.start-menu hr {
  border: 0;
  border-top: 1px solid #ffffff17;
  margin: 15px 0;
}
.demo-banner {
  position: absolute;
  left: 150px;
  bottom: 64px;
  background: #ffd784e8;
  color: #573c0d;
  padding: 8px 13px;
  font-size: 10px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  z-index: 3;
}
.app-window {
  position: absolute;
  left: 10.5%;
  top: 11%;
  width: 84%;
  height: 80%;
  max-width: 1550px;
  min-height: 400px;
  background: #f5f7fb;
  box-shadow: 0 20px 80px #00162666;
  border: 1px solid #6688a122;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-radius: 8px 8px 3px 3px;
  overflow: hidden;
}
.app-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100%;
  height: calc(100% - 46px);
  max-width: none;
  border-radius: 0;
}
.window-titlebar {
  height: 35px;
  min-height: 35px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 14px;
  user-select: none;
  touch-action: none;
  border-bottom: 1px solid #e8edf4;
}
.window-titlebar > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #41536a;
}
.window-titlebar .icon {
  width: 14px;
  height: 14px;
  color: #317bd0;
}
.window-controls {
  height: 100%;
  display: flex;
}
.window-controls button {
  width: 44px;
  font-size: 19px;
  font-weight: 300;
  color: #394455;
}
.window-controls button:hover {
  background: #eef1f6;
}
.window-controls button:last-child:hover {
  background: #d93140;
  color: white;
}
#app-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.police-sidebar {
  width: 215px;
  background: #102b4b;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  color: #e4edf7;
}
.agency-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 25px 20px 22px;
  border-bottom: 1px solid #ffffff0c;
}
.agency-brand > .icon {
  width: 29px;
  height: 35px;
  color: #d8c896;
}
.agency-brand strong {
  font-size: 17px;
  letter-spacing: 1px;
  display: block;
}
.agency-brand small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #91abc5;
  display: block;
  margin-top: 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  padding: 23px 22px 10px;
  color: #7b96b3;
}
.police-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px;
}
.police-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  color: #aebfd2;
  font-size: 12px;
  border-radius: 4px;
}
.police-nav .icon {
  width: 17px;
  height: 17px;
}
.police-nav button:hover {
  background: #ffffff08;
  color: white;
}
.police-nav button.active {
  background: #2672c3;
  color: white;
  box-shadow: 0 4px 10px #0001;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 18px;
  border-top: 1px solid #ffffff0c;
  font-size: 11px;
  color: #abc1d7;
  display: flex;
  gap: 10px;
  align-items: center;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #47b795;
  box-shadow: 0 0 0 3px #47b79519;
  flex-shrink: 0;
}
.sidebar-bottom small {
  font-size: 9px;
  display: block;
  margin-top: 4px;
  color: #708fab;
}
.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fb;
}
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  background: white;
  border-bottom: 1px solid #e8edf4;
  padding: 0 27px;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8c9aab;
}
.breadcrumb .icon {
  width: 11px;
}
.breadcrumb strong {
  color: #32465e;
  font-weight: 500;
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #44556d;
}
.user-initials {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e8f0fc;
  color: #2265ac;
  font-size: 10px;
  font-weight: 600;
}
.portal-user small {
  display: block;
  font-size: 9px;
  color: #8a98aa;
  margin-top: 3px;
}
.portal-content {
  overflow: auto;
  padding: 25px 28px 35px;
  flex: 1;
  min-height: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.9px;
  color: #7a8fa7;
  display: block;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 0 0 7px;
  color: #142e4e;
}
.page-heading p {
  font-size: 12px;
  color: #7b8b9f;
  margin: 0;
  line-height: 1.6;
}
.button {
  padding: 10px 14px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 36px;
  cursor: pointer;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button.primary {
  background: #2473c6;
  color: #fff;
  border-color: #2473c6;
  box-shadow: 0 3px 7px #1c5eab12;
}
.button.primary:hover {
  background: #185da6;
}
.button.secondary {
  background: #fff;
  border-color: #dce4ed;
  color: #52667d;
}
.button.secondary:hover {
  background: #f3f6fa;
}
.button.danger {
  background: #fff0f1;
  color: #b23f50;
  border-color: #f4d8dc;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card > span {
  display: block;
  color: #7e8fa3;
  font-size: 11px;
}
.stat-card > strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  color: #19375b;
  margin-top: 12px;
}
.stat-card > small {
  font-size: 10px;
  color: #90a0b2;
  display: block;
  margin-top: 7px;
}
.stat-card > .icon {
  position: absolute;
  right: 15px;
  top: 16px;
  width: 20px;
  height: 20px;
  color: #528fc8;
}
.stat-card.good > .icon {
  color: #4eab90;
}
.stat-card.good > small {
  color: #4b9a83;
}
.two-column {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.two-column > .panel {
  margin: 0;
}
.panel-heading {
  padding: 17px 20px;
  border-bottom: 1px solid #eaf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #294260;
}
.panel-heading p {
  font-size: 10px;
  color: #8b99ac;
  margin: 6px 0 0;
}
.panel-heading button {
  color: #2d72ba;
  font-size: 10px;
}
.panel-heading button .icon {
  width: 12px;
  height: 12px;
}
.panel-body {
  padding: 18px 20px;
}
.mini-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 11px;
  color: #687e97;
}
.mini-rank:last-child {
  margin: 0;
}
.mini-rank > span:first-child {
  width: 135px;
}
.mini-rank > strong {
  font-size: 11px;
  margin-left: auto;
  color: #2e4e72;
  min-width: 15px;
  text-align: right;
}
.bar-track {
  background: #eef3f9;
  height: 5px;
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
}
.bar-track progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  appearance: none;
}
.bar-track progress::-webkit-progress-bar {
  background: #edf2f8;
}
.bar-track progress::-webkit-progress-value {
  background: #4c94da;
  border-radius: 3px;
}
.activity-row {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}
.activity-row:last-child {
  border: 0;
}
.activity-dot {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: #edf4fd;
  color: #6192c7;
  border-radius: 5px;
  flex-shrink: 0;
}
.activity-dot .icon {
  width: 13px;
  height: 13px;
}
.activity-row strong {
  font-size: 11px;
  font-weight: 500;
  color: #45607c;
}
.activity-row small {
  display: block;
  font-size: 10px;
  color: #93a1b1;
  margin-top: 5px;
}
.security-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: #edf4fb;
  border: 1px solid #dbe7f4;
  border-radius: 5px;
  color: #547897;
  font-size: 10px;
  line-height: 1.7;
}
.security-note .icon {
  color: #5380b0;
  width: 18px;
  height: 18px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid #e9eef5;
  flex-wrap: wrap;
}
.search-control {
  display: flex;
  align-items: center;
  border: 1px solid #dce5ef;
  border-radius: 4px;
  background: #fff;
  gap: 8px;
  padding: 0 10px;
  min-width: 180px;
  flex: 1;
  max-width: 320px;
}
.search-control .icon {
  color: #91a2b5;
  width: 15px;
}
.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  padding: 9px 0;
  font-size: 11px;
  color: #344f6b;
}
.toolbar select {
  padding: 8px 30px 8px 11px;
  border: 1px solid #dce5ef;
  border-radius: 4px;
  background: white;
  color: #6b7e95;
  font-size: 11px;
  min-height: 33px;
}
.toolbar-count {
  margin-left: auto;
  font-size: 10px;
  color: #8d9daf;
}
.audit-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7e95;
  font-size: 10px;
  white-space: nowrap;
}
.audit-date-filter input {
  min-height: 33px;
  padding: 6px 8px;
  color: #344f6b;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 4px;
  font: inherit;
}
.callsign-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667d96;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.callsign-select-all input,
.callsign-select {
  width: 15px;
  height: 15px;
  accent-color: #276bc2;
  cursor: pointer;
}
.callsign-select:disabled {
  cursor: not-allowed;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 12px 18px;
  background: #fafbfd;
  color: #8595a9;
  border-bottom: 1px solid #e7edf5;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid #eef2f7;
  color: #61748d;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #f9fbfe;
}
th button {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
}
.person-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.person-cell strong {
  font-size: 11px;
  color: #34516f;
  display: block;
  font-weight: 500;
}
.person-cell small {
  font-size: 9px;
  color: #9aa7b6;
  display: block;
  margin-top: 4px;
}
.person-cell-id {
  display: block;
  margin-top: 4px;
  color: #9aa7b6;
  font-size: 9px;
}
.panel-note {
  margin: 0;
  padding: 12px 18px;
  color: #73869d;
  font-size: 10px;
  border-top: 1px solid #eef2f7;
}
.person-cell .user-initials {
  width: 28px;
  height: 28px;
  font-size: 9px;
}
.rank-tag {
  font-size: 10px;
  background: #edf3fa;
  padding: 4px 7px;
  color: #5b7da5;
  border-radius: 3px;
}
.callsign {
  font-family: Consolas, monospace;
  color: #365b83;
  font-size: 11px;
  font-weight: 600;
}
.callsign-warning {
  display: block;
  margin-top: 5px;
  color: #9a6819;
  font-size: 9px;
  cursor: help;
}
.tag {
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.tag.active {
  color: #2f967b;
  background: #eaf7f1;
}
.tag.inactive {
  color: #8995a5;
  background: #f0f2f6;
}
.tag.free {
  color: #5086bc;
  background: #edf4fc;
}
.icon-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #8598ad;
  border: 1px solid transparent;
  border-radius: 4px;
}
.icon-button .icon {
  width: 14px;
  height: 14px;
}
.icon-button:hover {
  background: #e8f1fc;
  color: #2770b7;
  border-color: #d7e7f9;
}
.icon-button.danger:hover {
  background: #fff0f0;
  color: #b44053;
  border-color: #f0d2d8;
}
.row-actions {
  display: flex;
  gap: 2px;
}
.empty-state {
  text-align: center;
  padding: 40px 25px;
  color: #91a2b5;
  font-size: 12px;
  line-height: 1.9;
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #b0c2d4;
}
.empty-state strong {
  display: block;
  font-size: 13px;
  color: #627c98;
  font-weight: 500;
}
.empty-state p {
  margin: 8px 0 0;
  font-size: 11px;
}
.sheet-section {
  border: 1px solid #dfe8f1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 17px;
  background: #fff;
}
.sheet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf1f9;
  padding: 11px 17px;
}
.sheet-title strong {
  font-size: 12px;
  color: #375777;
}
.sheet-title span {
  font-size: 10px;
  color: #7b91ac;
}
.sheet-title em {
  font-style: normal;
  font-size: 9px;
  background: #d7e5f5;
  padding: 3px 6px;
  margin-right: 8px;
  border-radius: 3px;
}
.sheet-section th {
  background: #f7f9fc;
}
.sheet-section td {
  padding: 10px 18px;
}
.sheet-section .free-text {
  color: #bac4d0;
  font-style: italic;
  font-size: 10px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.archive-card {
  border: 1px solid #e1e8f1;
  background: white;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  text-align: left;
}
.archive-card:hover {
  border-color: #91b8e1;
  box-shadow: 0 4px 14px #34577e0a;
}
.archive-card > .icon {
  color: #528fcd;
  width: 29px;
  height: 29px;
  margin-bottom: 16px;
}
.archive-card h3 {
  font-size: 13px;
  color: #2b4766;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.archive-card p {
  color: #8999ac;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-card small {
  font-size: 9px;
  color: #9aaabc;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  gap: 6px;
}
.archive-category {
  font-size: 9px;
  color: #5c83ac;
  background: #eef4fb;
  align-self: flex-start;
  border-radius: 3px;
  padding: 4px 7px;
  margin-bottom: 12px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e8edf4;
  border-radius: 4px;
  font-size: 12px;
}
.category-row > span {
  flex: 1;
}
.settings-form {
  max-width: 820px;
}
.settings-section {
  padding: 21px 24px;
  border-bottom: 1px solid #e7edf4;
}
.settings-section h3 {
  font-size: 13px;
  margin: 0 0 7px;
  color: #34516f;
}
.settings-section > p {
  font-size: 11px;
  line-height: 1.8;
  color: #8596aa;
  margin: 0 0 17px;
}
.settings-form > footer {
  padding: 18px 24px;
  display: flex;
  justify-content: flex-end;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  color: #536a83;
  font-weight: 500;
}
.field:last-child {
  margin-bottom: 0;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 11px;
  border: 1px solid #d8e2ec;
  border-radius: 4px;
  color: #27435e;
  background: white;
  font-size: 12px;
  font-weight: 400;
}
.field small {
  display: block;
  color: #8d9caf;
  font-size: 10px;
  font-weight: 400;
  margin-top: 7px;
  line-height: 1.7;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.7;
}
.field textarea.large {
  min-height: 200px;
}
.field.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}
.field.checkbox input {
  width: 15px;
  height: 15px;
  margin: 0;
}
.access-editor {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fbff, #f2f6fb);
}
.access-editor > .field {
  margin-bottom: 12px;
}
.access-permissions {
  min-width: 0;
  margin: 0;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid #dfe8f1;
}
.access-permissions[hidden] {
  display: none;
}
.access-permissions legend {
  padding: 11px 0 0;
  color: #45637f;
  font-size: 11px;
  font-weight: 650;
}
.access-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.access-scope {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  color: #405b76;
  font-size: 11px;
  cursor: pointer;
}
.access-scope:has(input:checked) {
  border-color: #83b1e2;
  background: #edf6ff;
  color: #245a91;
}
.access-scope input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2878c9;
}
.access-permissions > p {
  margin: 11px 0 0;
  color: #75889d;
  font-size: 10px;
  line-height: 1.7;
}
.access-owner-note {
  margin: 14px 0;
}
.access-cell {
  min-width: 190px;
  white-space: normal;
}
.permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.permission-chip {
  display: inline-flex;
  padding: 3px 6px;
  border: 1px solid #dce8f5;
  border-radius: 999px;
  background: #f3f8fd;
  color: #54718d;
  font-size: 9px;
  line-height: 1.4;
}
.permission-muted {
  color: #8b9bad;
  font-size: 10px;
}
.audit-action {
  color: #366292;
  font-family: Consolas, monospace;
  font-size: 10px;
}
.audit-details {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 350px;
  overflow: auto;
  background: #f4f7fb;
  padding: 15px;
  border: 1px solid #e2eaf3;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.8;
}
.file-preview {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #edf2f8;
  border-radius: 5px;
  margin: 10px auto 18px;
  display: block;
}
.note-text {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.9;
  color: #5b7089;
  max-height: 360px;
  overflow: auto;
  word-break: break-word;
}
.file-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #f1f6fc;
  border: 1px solid #dce7f4;
  padding: 15px;
  font-size: 11px;
  margin-top: 16px;
  border-radius: 5px;
}
.file-meta .button {
  margin-left: auto;
}
.explorer {
  padding: 32px;
  overflow: auto;
  width: 100%;
  background: #f7f9fc;
}
.explorer h1 {
  font-size: 24px;
  color: #26496c;
  font-weight: 400;
}
.explorer p {
  font-size: 12px;
  color: #8192a6;
  line-height: 1.8;
}
.explorer-apps {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.explorer-apps > button {
  width: 210px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid #dfe8f2;
  border-radius: 6px;
  padding: 20px;
  text-align: left;
}
.explorer-apps strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.explorer-apps small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
  color: #8599af;
}
dialog {
  padding: 0;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: #fff;
  color: #29435e;
  box-shadow: 0 25px 100px #00162e55;
  width: min(590px, calc(100vw - 30px));
  max-height: 90dvh;
}
dialog::backdrop {
  background: #06182e88;
  backdrop-filter: blur(4px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
}
dialog header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 25px 19px;
  border-bottom: 1px solid #e8edf5;
}
#modal-eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #92a5bb;
}
dialog h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 7px 0 0;
  color: #284560;
}
#modal-body {
  padding: 24px 25px;
  overflow: auto;
  min-height: 0;
}
#modal-error {
  margin: 0;
  padding: 0 25px;
  color: #b13e53;
  font-size: 12px;
  line-height: 1.7;
}
#modal-error:not(:empty) {
  padding-bottom: 15px;
}
dialog footer {
  padding: 16px 25px;
  border-top: 1px solid #e8edf5;
  background: #f9fbfd;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
#toast {
  position: fixed;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #103956;
  color: #edf7ff;
  box-shadow: 0 7px 30px #00162655;
  padding: 13px 20px;
  border: 1px solid #5b92b277;
  border-radius: 6px;
  max-width: min(550px, 90vw);
  font-size: 12px;
  line-height: 1.6;
}
#toast.error {
  background: #742b3e;
  border-color: #cb7a8a;
}
.mobile-nav {
  display: none;
}
.help-list {
  font-size: 12px;
  color: #6d8299;
  line-height: 1.9;
}
.help-list dt {
  font-weight: 600;
  color: #2e4e70;
  margin-top: 15px;
}
.help-list dd {
  margin: 4px 0 0;
}
.read-only-tag {
  font-size: 9px;
  color: #698bad;
  background: #eaf1fa;
  padding: 5px 9px;
  border-radius: 4px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.read-only-tag .icon {
  width: 12px;
  height: 12px;
}
@media (min-width: 1600px) {
  .app-window {
    left: 15%;
    width: 78%;
    top: 12%;
    height: 78%;
  }
  .portal-content {
    padding: 32px 36px;
  }
  .police-sidebar {
    width: 235px;
  }
  .stats-grid {
    gap: 20px;
  }
  .stat-card {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .app-window {
    left: 11%;
    width: 87%;
    top: 10%;
    height: 82%;
  }
  .police-sidebar {
    width: 180px;
  }
  .agency-brand {
    padding: 21px 15px;
  }
  .agency-brand strong {
    font-size: 15px;
  }
  .portal-content {
    padding: 22px 20px;
  }
  .portal-topbar {
    padding: 0 20px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-card > span {
    font-size: 10px;
  }
  .stat-card > strong {
    font-size: 26px;
  }
  .stats-grid {
    gap: 10px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column > .panel:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .login-brand {
    left: 22px;
    top: 24px;
  }
  .window-light {
    left: 48%;
    top: 25%;
    width: 230px;
    height: 240px;
  }
  .login-bottom {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
  .login-bottom > span:nth-child(2) {
    display: none;
  }
  .desktop-top {
    padding: 20px;
  }
  .desktop-session {
    font-size: 11px;
  }
  .desktop-watermark {
    right: 20px;
    bottom: 100px;
    font-size: 22px;
  }
  .desktop-icons {
    padding-left: 12px;
    gap: 10px;
  }
  .taskbar-search {
    width: 50px;
    padding: 0;
    justify-content: center;
    background: none;
    border: 0;
    color: #d0e0ef;
  }
  .taskbar-search input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .pinned-apps {
    padding: 0;
    gap: 0;
  }
  .pinned-apps button {
    width: 41px;
  }
  .system-tray {
    gap: 7px;
    padding-right: 5px;
  }
  .system-tray > .secure-tray,
  .system-tray > span:nth-child(2) {
    display: none;
  }
  .app-window {
    left: 0 !important;
    top: 0 !important;
    width: 100%;
    height: calc(100% - 46px);
    min-height: 0;
    max-width: none;
    border-radius: 0;
  }
  .police-sidebar {
    width: 62px;
  }
  .agency-brand {
    padding: 15px;
    justify-content: center;
  }
  .agency-brand > div {
    display: none;
  }
  .agency-brand > .icon {
    width: 25px;
  }
  .nav-label {
    font-size: 0;
    padding: 10px 0;
  }
  .police-nav {
    padding: 0 7px;
    gap: 6px;
  }
  .police-nav button {
    justify-content: center;
    padding: 12px 0;
  }
  .police-nav button > span {
    display: none;
  }
  .police-nav button .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar-bottom {
    padding: 16px 0;
    justify-content: center;
  }
  .sidebar-bottom > div {
    display: none;
  }
  .sidebar-bottom .status-dot {
    width: 7px;
  }
  .portal-topbar {
    min-height: 52px;
    padding: 0 13px;
  }
  .portal-user > div:not(.user-initials) {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 5px;
  }
  .portal-content {
    padding: 20px 14px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 19px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .heading-actions {
    gap: 6px;
  }
  .button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 15px 12px;
  }
  .stat-card > .icon {
    right: 10px;
    top: 13px;
    width: 17px;
  }
  .stat-card > strong {
    font-size: 25px;
  }
  .stat-card > span {
    font-size: 10px;
    padding-right: 12px;
  }
  .stat-card > small {
    font-size: 9px;
  }
  .panel-heading {
    padding: 14px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .panel-body {
    padding: 15px;
  }
  .two-column {
    gap: 15px;
  }
  .mini-rank > span:first-child {
    width: 110px;
    font-size: 10px;
  }
  .toolbar {
    padding: 12px;
    gap: 8px;
  }
  .search-control {
    min-width: 150px;
    max-width: none;
  }
  .toolbar-count {
    font-size: 9px;
  }
  .toolbar select {
    max-width: 100%;
    font-size: 10px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-card {
    padding: 16px;
  }
  .sheet-title {
    padding: 11px 12px;
  }
  .sheet-title strong {
    font-size: 11px;
  }
  .sheet-title span {
    font-size: 9px;
  }
  .sheet-title em {
    font-size: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .settings-section {
    padding: 18px 14px;
  }
  .settings-form > footer {
    padding: 14px;
  }
  .security-note {
    padding: 12px;
    font-size: 9px;
  }
  .explorer {
    padding: 22px;
  }
  .explorer-apps {
    gap: 10px;
  }
  .explorer-apps > button {
    width: 100%;
    padding: 14px;
  }
  .demo-banner {
    left: 130px;
    font-size: 8px;
    max-width: calc(100% - 145px);
  }
  dialog header {
    padding: 20px;
  }
  #modal-body {
    padding: 20px;
  }
  dialog footer {
    padding: 15px 20px;
  }
  .file-meta {
    flex-wrap: wrap;
  }
  .file-meta .button {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
