* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f8fd;
  color: #0b123c;
  font:
    16px/1.55 system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid #dfe5f2;
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}
button:hover {
  background: #f1edff;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #6234ef;
  color: #fff;
  border-color: #6234ef;
  font-weight: 650;
}
.primary:hover {
  background: #5025d0;
}
.danger {
  color: #b42342;
  border-color: #ffd3db;
}
a {
  color: #5930dc;
  text-decoration: none;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 4px 0 10px;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
}
p {
  color: #687698;
  margin: 8px 0 16px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #7959d8;
}
.panel {
  background: #fff;
  border: 1px solid #e3e8f4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 24px #17275904;
}
.login {
  max-width: 480px;
  margin: 8vh auto;
  padding: 32px;
}
.login img {
  max-width: 145px;
  max-height: 70px;
}
.login #qr {
  max-width: 200px;
  max-height: 200px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #657393;
  margin: 12px 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3f1;
  background: #fafbff;
  padding: 10px 12px;
  border-radius: 9px;
  color: #0b123c;
  font-size: 15px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9577ff;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9577ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px;
  border-right: 1px solid #e3e8f4;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.brand img {
  width: 132px;
}
aside .eyebrow {
  margin-top: 24px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  border: 0;
  padding: 13px 16px;
}
nav button.active {
  background: #6435f1;
  color: #fff;
}
.aside-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.aside-bottom small {
  overflow-wrap: anywhere;
  color: #71809b;
}
main {
  padding: 32px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
header button {
  flex-shrink: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.metric {
  background: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 14px;
  padding: 20px;
}
.metric span {
  display: block;
  color: #697895;
  font-size: 13px;
}
.metric strong {
  font-size: 30px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar label {
  margin: 0;
}
.search {
  flex: 1;
}
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.content:has(#details:not([hidden])) {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
}
.record {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f7;
}
.record:last-child {
  border: 0;
}
.record button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  max-width: 75%;
  font-weight: 650;
}
.record button span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #7683a0;
  overflow-wrap: anywhere;
}
.badge {
  align-self: start;
  font-size: 12px;
  border-radius: 20px;
  padding: 4px 10px;
  background: #eef0f6;
  color: #69738b;
}
.badge.active {
  background: #e0faeb;
  color: #188447;
}
.badge.expired,
.badge.suspended,
.badge.revoked {
  background: #ffedf0;
  color: #c13253;
}
.badge.business {
  background: #eee8ff;
  color: #6935de;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}
dt {
  color: #7481a0;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.detail-section {
  border-top: 1px solid #e8ecf4;
  padding-top: 16px;
  margin-top: 20px;
}
.mini {
  padding: 8px 0;
  font-size: 14px;
}
.mini small {
  display: block;
  color: #71809b;
}
.empty {
  padding: 30px 10px;
  text-align: center;
}
.error,
#error,
[id$="-error"] {
  color: #b52949;
}
#error {
  background: #ffedf0;
  border: 1px solid #ffd0d8;
  border-radius: 12px;
  padding: 14px;
}
#notice {
  color: #266849;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  color: #7b86a0;
  font-size: 13px;
}
dialog {
  border: 1px solid #dce3f2;
  border-radius: 20px;
  padding: 26px;
  width: min(620px, calc(100% - 28px));
  max-height: 90vh;
  color: inherit;
  background: #fff;
  box-shadow: 0 25px 100px #14213d30;
}
dialog::backdrop {
  background: #10183465;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check {
  display: flex;
  align-items: center;
}
.check input {
  width: auto;
}
details {
  margin: 16px 0;
  padding: 14px;
  background: #f7f8fd;
  border-radius: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1100px) {
  .content:has(#details:not([hidden])) {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  #workspace {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
    padding: 16px;
  }
  .brand img {
    width: 110px;
  }
  aside .eyebrow {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .aside-bottom {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 12px;
  }
  .aside-bottom small {
    margin-left: auto;
  }
  main {
    padding: 18px;
  }
  h1 {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 24px 14px;
  }
  .metric {
    padding: 15px;
  }
  header {
    gap: 8px;
  }
}

nav button {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
aside,
.content,
.panel,
header > div {
  min-width: 0;
}
nav {
  max-width: 100%;
}
nav button {
  flex-shrink: 0;
}
.content {
  align-items: start;
}
@media (min-width: 1101px) {
  #details {
    max-height: calc(100vh - 48px);
    overflow: auto;
    position: sticky;
    top: 24px;
  }
}
/* Reference dashboard: quiet surfaces, compact cards, persistent account context. */
body {
  font:
    16px/1.5 Arial,
    system-ui,
    sans-serif;
  background: #f7f9ff;
  color: #10163e;
}
#workspace {
  grid-template-columns: 210px minmax(0, 1fr);
}
aside {
  padding: 0 13px 20px;
}
.brand {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 13px;
  margin: 0 -13px 20px;
  border-bottom: 1px solid #edf0f7;
}
.brand img {
  width: 132px;
}
aside > .eyebrow {
  display: none;
}
nav {
  gap: 7px;
}
nav button {
  height: 45px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 16px;
}
nav button.active {
  background: linear-gradient(120deg, #722aff, #5728ed);
  box-shadow: 0 3px 10px #6733ef16;
}
.aside-bottom {
  padding: 15px 10px;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  gap: 9px;
  font-size: 15px;
  background: #fcfdff;
}
.aside-bottom #logout {
  padding: 6px 10px;
  font-size: 15px;
}
main {
  padding: 0 23px 24px;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 -23px 20px;
  padding: 0 23px;
  border-bottom: 1px solid #e8edf7;
  background: #fff;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin: 0;
  padding: 0 12px;
  height: 44px;
  border: 1px solid #e6ebf7;
  border-radius: 8px;
  background: #f8faff;
}
.global-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7786ab;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.global-search input {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  min-width: 0;
}
.global-search select {
  border: 0;
  border-left: 1px solid #e4e9f3;
  background: transparent;
  width: 120px;
  padding: 4px 6px;
  font-size: 14px;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid #e8edf7;
  padding-left: 20px;
  flex-shrink: 0;
}
.admin-profile strong,
.admin-profile small {
  display: block;
}
.admin-profile strong {
  font-size: 15px;
}
.admin-profile small {
  font-size: 14px;
  color: #7d89a8;
}
#admin-avatar,
.person-avatar {
  display: grid;
  place-items: center;
  background: #ece7fc;
  color: #6840d9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 700;
  flex-shrink: 0;
}
.icon-button {
  padding: 6px;
  border: 0;
  position: relative;
  display: flex;
  align-items: center;
}
.icon-button svg {
  width: 22px;
  height: 22px;
  stroke: #2d3d69;
  fill: none;
  stroke-width: 1.7;
}
#attention-dot {
  position: absolute;
  top: 1px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f45764;
}
main > header {
  align-items: center;
}
h1 {
  font-size: 31px;
  margin: 0 0 3px;
  letter-spacing: -0.8px;
}
#subtitle {
  margin: 0;
  font-size: 16px;
  color: #7583a5;
}
#refresh {
  font-size: 15px;
  padding: 7px 12px;
}
#notice:empty {
  display: none;
}
.panel {
  padding: 16px;
  border-radius: 9px;
  border-color: #e8edf7;
  box-shadow: none;
}
.metrics {
  gap: 12px;
  margin: 16px 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 9px;
  padding: 18px;
  min-height: 104px;
}
.metric-icon {
  display: grid !important;
  place-items: center;
  width: 54px;
  height: 56px;
  border-radius: 12px;
  background: #f1edff;
  color: #6a36f6 !important;
  flex-shrink: 0;
}
.metric-icon svg {
  width: 29px;
  height: 29px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.metric span {
  font-size: 15px;
  color: #38446e;
}
.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}
.metric small {
  display: block;
  font-size: 14px;
  color: #7e8aa8;
  margin-top: 3px;
}
.toolbar {
  margin: 0 0 10px;
  justify-content: flex-end;
}
.toolbar .search {
  flex: 0 1 275px;
}
.toolbar input,
.toolbar select {
  font-size: 15px;
  padding: 7px 10px;
  height: 42px;
  border-radius: 7px;
  background: white;
}
#search-button {
  font-size: 15px;
  padding: 7px 12px;
}
.content {
  gap: 12px;
  align-items: start;
}
.content:has(#right-column:not([hidden])) {
  grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
}
.left-column,
.right-column {
  min-width: 0;
}
.right-column {
  display: grid;
  gap: 12px;
}
#details {
  position: static;
  max-height: none;
  overflow: visible;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.35px;
}
.section-heading h2 svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6d36fa;
  stroke-width: 1.8;
}
.section-heading .subtle {
  font-size: 14px;
  color: #8792aa;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
th {
  background: #f7f9fe;
  font-size: 14px;
  color: #647497;
  font-weight: 650;
  padding: 10px 8px;
  white-space: nowrap;
}
td {
  padding: 12px 8px;
  border-bottom: 1px solid #edf0f8;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.accounts-table tbody tr:hover,
.accounts-table tr.selected {
  background: #f1edff;
}
.accounts-table td:first-child {
  min-width: 210px;
}
.accounts-table td {
  font-size: 14px;
}
.accounts-table .contact-cell {
  overflow-wrap: anywhere;
  min-width: 125px;
}
.account-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  width: 100%;
}
.account-cell:hover {
  background: transparent;
}
.account-cell strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
.account-cell small {
  display: block;
  font-size: 14px;
  color: #8190ad;
  font-weight: 400;
  margin-top: 2px;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f0eaff;
  border-radius: 9px;
  flex-shrink: 0;
  color: #6939f0;
}
.account-avatar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.account-avatar.large {
  width: 46px;
  height: 46px;
  border: 1px solid #e8e4f3;
}
.accounts-table td:last-child button {
  border: 0;
  background: transparent;
  padding: 4px 6px;
}
.badge {
  padding: 3px 9px;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.active {
  color: #188b47;
  background: #defbe9;
}
.badge.expired,
.badge.suspended,
.badge.revoked {
  background: #fff0f0;
  color: #d43f56;
}
.selected-account-heading {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 15px 0;
}
.selected-account-heading h3 {
  margin: 0 0 1px;
  font-size: 16px;
  line-height: 1.5;
}
.selected-account-heading small {
  color: #8090ac;
  font-size: 14px;
}
.selected-account-heading > .badge {
  margin-left: auto;
}
.small-button {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 14px;
}
.account-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
}
.account-facts small {
  display: block;
  font-size: 14px;
  color: #7b8aaa;
  margin-bottom: 2px;
}
.account-facts strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  display: block;
}
.account-extra {
  margin-top: 12px;
  font-size: 14px;
  border-top: 1px solid #edf0f7;
  padding-top: 9px;
}
.account-extra summary {
  cursor: pointer;
  color: #596c94;
}
.account-extra p {
  font-size: 14px;
  margin: 8px 0;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-size: 14px;
  color: #6d36ff;
}
.text-button:hover {
  background: transparent;
  text-decoration: underline;
}
.account-previews {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.count {
  display: inline-block;
  color: #7380a1;
  background: #f0f3fa;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.vehicle-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vehicle-cell svg {
  width: 29px;
  height: 25px;
  fill: none;
  stroke: #3d4976;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.vehicle-cell strong {
  font-size: 14px;
}
.driver-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f7;
}
.driver-row:last-child {
  border: 0;
}
.driver-row button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  min-width: 0;
}
.driver-row strong,
.driver-row small {
  display: block;
}
.driver-row strong {
  font-size: 14px;
}
.driver-row small {
  font-size: 14px;
  color: #7b89a7;
  overflow-wrap: anywhere;
}
.driver-row .badge {
  margin-left: auto;
  align-self: center;
}
.person-avatar {
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.empty-note {
  font-size: 15px;
  padding: 14px 0;
  margin: 0;
}
.grant-panel {
  width: auto;
  padding: 16px;
  margin: 0;
}
.grant-panel header {
  align-items: center;
}
.grant-panel h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.grant-panel header .eyebrow {
  display: none;
}
.grant-panel header p {
  font-size: 14px;
  margin: 4px 0 9px;
}
.grant-panel header button {
  border: 0;
  padding: 0 5px;
  font-size: 18px;
}
.grant-panel label {
  font-size: 14px;
  margin: 8px 0;
  gap: 3px;
}
.grant-panel input,
.grant-panel select,
.grant-panel textarea {
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}
.grant-panel .form-grid {
  gap: 0 9px;
}
.grant-panel .check {
  font-size: 14px;
  gap: 7px;
}
.grant-panel .check input {
  width: 13px;
  height: 13px;
  margin: 0;
}
.grant-panel details {
  font-size: 14px;
  margin: 9px 0;
}
.grant-panel button.primary {
  width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  background: linear-gradient(120deg, #702bff, #5728ed);
}
.grant-panel #generated button {
  font-size: 14px;
  padding: 7px 10px;
}
.grant-panel #generated p {
  font-size: 14px;
  margin: 6px 0 0;
}
.overview-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 14px 0;
}
.overview-total span,
.overview-total strong {
  display: block;
}
.overview-total span {
  font-size: 15px;
  color: #7483a2;
}
.overview-total strong {
  font-size: 23px;
}
footer button {
  padding: 7px 10px;
  font-size: 14px;
}
@media (min-width: 1450px) {
  .content:has(#right-column:not([hidden])) {
    grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr);
  }
}
@media (max-width: 1200px) {
  #workspace {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .content:has(#right-column:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .metric {
    gap: 10px;
    padding: 12px;
  }
  .metric-icon {
    width: 40px;
    height: 44px;
  }
  .account-previews {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 950px) {
  .content:has(#right-column:not([hidden])) {
    grid-template-columns: 1fr;
  }
  .account-previews {
    grid-template-columns: 1fr 1fr;
  }
  .right-column {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #workspace {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 0 14px 12px;
  }
  .brand {
    height: 56px;
    margin-bottom: 0;
  }
  nav {
    margin-top: 10px;
    gap: 3px;
  }
  nav button {
    height: 38px;
    font-size: 15px;
    padding: 8px;
  }
  nav svg {
    width: 17px;
    height: 17px;
  }
  .aside-bottom {
    display: none;
  }
  main {
    padding: 0 14px 18px;
  }
  .topbar {
    margin: 0 -14px 16px;
    padding: 0 14px;
    gap: 10px;
  }
  .admin-profile {
    padding-left: 8px;
  }
  .admin-profile > div,
  .global-search select {
    display: none;
  }
  .global-search {
    padding: 0 8px;
  }
  .global-search input {
    font-size: 14px;
  }
  .icon-button {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  #subtitle {
    font-size: 15px;
  }
  #refresh {
    padding: 5px 7px;
    font-size: 14px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    min-height: 90px;
    padding: 12px;
    gap: 9px;
  }
  .metric span {
    font-size: 14px;
  }
  .metric strong {
    font-size: 23px;
  }
  .metric small {
    font-size: 14px;
  }
  .metric-icon {
    width: 36px;
    height: 42px;
    border-radius: 8px;
  }
  .metric-icon svg {
    width: 24px;
    height: 24px;
  }
  .toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .toolbar .search {
    flex: 1 1 100%;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .panel {
    padding: 13px;
  }
  .right-column,
  .account-previews {
    grid-template-columns: 1fr;
  }
  .grant-panel .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .overview-totals {
    grid-template-columns: 1fr 1fr;
  }
}
.account-extra {
  padding: 8px 0 0;
  border-radius: 0;
  background: none;
}
.grant-panel details {
  padding: 8px 10px;
  border: 1px solid #edf0f7;
  border-radius: 6px;
  background: #fafbff;
}
.grant-panel label:has([name="businessName"]) {
  margin-top: 10px;
}
.grant-panel .form-grid {
  align-items: start;
}
.grant-panel .agreement-options {
  margin-bottom: 12px;
}
.account-facts {
  gap: 9px 14px;
}
@media (max-width: 700px) {
  .global-search {
    min-width: 0;
  }
  .topbar {
    min-width: 0;
  }
  .grant-panel input[type="datetime-local"] {
    min-width: 0;
    max-width: 100%;
  }
}
.records-heading {
  flex-wrap: wrap;
}
.records-heading > .subtle {
  display: none;
}
#record-tools-slot {
  margin-left: auto;
  min-width: 0;
}
#record-tools-slot .toolbar {
  margin: 0;
}
#record-tools-slot .search {
  flex: 1 1 210px;
}
#record-tools-slot input {
  width: 210px;
}
#record-tools-slot #search-button {
  display: none;
}
.account-history {
  grid-column: 1/-1;
}
.account-history .account-extra {
  margin-top: 0;
  border-top: 0;
}
.account-history .account-extra + .account-extra {
  margin-top: 10px;
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.grant-panel .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grant-panel .form-grid label:has([name="redeemBefore"]) {
  grid-column: span 2;
}
.grant-panel #features {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1200px) {
  #record-tools-slot {
    flex-basis: 100%;
  }
}
@media (max-width: 700px) {
  #record-tools-slot input {
    width: 100%;
  }
  #record-tools-slot .search {
    flex-basis: 100%;
  }
  #record-tools-slot #search-button {
    display: block;
  }
  .grant-panel .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grant-panel .form-grid label:has([name="redeemBefore"]) {
    grid-column: auto;
  }
}
.accounts-table tbody tr {
  cursor: pointer;
}
@media (max-width: 700px) {
  .aside-bottom {
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    margin-top: 8px;
    gap: 12px;
  }
  .aside-bottom #identity {
    display: none;
  }
  .aside-bottom #logout {
    margin-left: auto;
    padding: 3px 9px;
  }
}

.contact-cell a,
.contact-cell strong,
.registration-contact a,
.registration-contact strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.contact-cell a,
.registration-contact a {
  color: #5144cb;
  text-decoration: none;
}
.contact-cell a:hover,
.registration-contact a:hover {
  text-decoration: underline;
}
