@import url("./theme.css");

.portal-ui, :where(.portal-ui) * {
  box-sizing: border-box;
}

.portal-ui {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
}

body.portal-ui {
  margin: 0;
  background: var(--bg);
}

:where(.portal-ui) a {
  color: var(--brand-ink);
  text-decoration: none;
}

:where(.portal-ui) a:hover {
  text-decoration: underline;
}

:where(.portal-ui) button,
:where(.portal-ui) input,
:where(.portal-ui) select,
:where(.portal-ui) textarea {
  font: inherit;
}

:where(.portal-ui) button,
:where(.portal-ui) a,
:where(.portal-ui) input,
:where(.portal-ui) select,
:where(.portal-ui) textarea {
  outline-offset: 3px;
}

:where(.portal-ui) button:focus-visible,
:where(.portal-ui) a:focus-visible,
:where(.portal-ui) input:focus-visible,
:where(.portal-ui) select:focus-visible,
:where(.portal-ui) textarea:focus-visible {
  outline: 3px solid #80d3f2;
}

:where(.portal-ui) button {
  cursor: pointer;
}

:where(.portal-ui) svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(.portal-ui) .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--nav);
  color: #b9c5d9;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  transition: width .16s;
}

:where(.portal-ui) .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
  padding: 0 12px 25px;
  white-space: nowrap;
}

:where(.portal-ui) .brand:hover {
  text-decoration: none;
}

:where(.portal-ui) .brand-mark {
  display: grid;
  place-items: center;
  background: #00A0E4;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  font-size: 23px;
  letter-spacing: 0;
  flex: none;
}

:where(.portal-ui) .brand small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2px;
  display: block;
  margin-top: 4px;
  color: #b7c3d8;
}

:where(.portal-ui) .nav-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 20px 12px 9px;
  color: #7f90ac;
}

:where(.portal-ui) .nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 45px;
  color: #b9c5d9;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 3px 0;
  font-weight: 500;
  white-space: nowrap;
}

:where(.portal-ui) .nav-item:hover {
  background: #22324c;
  color: white;
  text-decoration: none;
}

:where(.portal-ui) .nav-item.active {
  background: var(--brand);
  color: var(--brand-on);
}

:where(.portal-ui) .sidebar-bottom {
  margin-top: auto;
}

:where(.portal-ui) .nav-note {
  font-size: 11px;
  color: #7f90ac;
  line-height: 1.6;
  padding: 14px 12px;
}

:where(.portal-ui) .shell {
  margin-left: var(--sidebar);
  min-width: 0;
  transition: margin .16s;
}

:where(.portal-ui) .topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}

:where(.portal-ui) .topbar-left,
:where(.portal-ui) .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

:where(.portal-ui) .workspace-name {
  font-size: 13px;
  color: var(--muted);
}

:where(.portal-ui) .icon-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  padding: 10px;
}

:where(.portal-ui) .icon-button:hover {
  background: #f0f3f9;
  text-decoration: none;
}

:where(.portal-ui) .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #def3fc;
  color: #00A0E4;
  font-weight: 700;
}

:where(.portal-ui) .user-name {
  font-size: 12px;
  font-weight: 600;
}

:where(.portal-ui) .user-name small {
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

:where(.portal-ui) .content {
  max-width: 1560px;
  padding: 32px 36px 56px;
  margin: 0 auto;
}

:where(.portal-ui) .breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

:where(.portal-ui) .page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

:where(.portal-ui) .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 9px;
}

:where(.portal-ui) h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.8px;
  margin: 0 0 10px;
  line-height: 1.25;
}

:where(.portal-ui) h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}

:where(.portal-ui) h3 {
  font-size: 14px;
  margin: 0 0 7px;
}

:where(.portal-ui) p {
  line-height: 1.6;
  margin: 0 0 15px;
}

:where(.portal-ui) .subtitle,
:where(.portal-ui) .muted {
  color: var(--muted);
}

:where(.portal-ui) .subtitle {
  font-size: 13px;
  max-width: 760px;
  line-height: 1.7;
}

:where(.portal-ui) .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 43px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  text-align: center;
}

:where(.portal-ui) .button:hover {
  text-decoration: none;
  background: #f5f7fc;
}

:where(.portal-ui) .button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-on);
}

:where(.portal-ui) .button.primary:hover {
  background: #0088c2;
}

:where(.portal-ui) .button.danger {
  color: var(--red);
  border-color: #f0ccd1;
  background: #fff;
}

:where(.portal-ui) .button.small {
  min-height: 36px;
  padding: 8px 12px;
}

:where(.portal-ui) .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

:where(.portal-ui) .grid {
  display: grid;
  gap: 20px;
}

:where(.portal-ui) .grid.two {
  grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr);
}

:where(.portal-ui) .grid.equal {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

:where(.portal-ui) .stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 26px;
}

:where(.portal-ui) .stat,
:where(.portal-ui) .card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

:where(.portal-ui) .stat {
  padding: 21px 22px;
  position: relative;
}

:where(.portal-ui) .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

:where(.portal-ui) .stat-value {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}

:where(.portal-ui) .stat-value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

:where(.portal-ui) .stat-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

:where(.portal-ui) .stat-icon {
  position: absolute;
  right: 20px;
  top: 19px;
  background: #effaff;
  color: var(--brand);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

:where(.portal-ui) .card {
  padding: 24px;
  min-width: 0;
  margin-bottom: 20px;
}

:where(.portal-ui) .card.flush {
  padding: 0;
  overflow: hidden;
}

:where(.portal-ui) .card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 21px;
}

:where(.portal-ui) .card-head p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}

:where(.portal-ui) .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  background: #edf1f6;
  color: #57667b;
}

:where(.portal-ui) .badge.green,
:where(.portal-ui) .badge.accepted,
:where(.portal-ui) .badge.confirmed,
:where(.portal-ui) .badge.completed {
  color: #0b6e4b;
  background: #e7f6ee;
}

:where(.portal-ui) .badge.amber,
:where(.portal-ui) .badge.pending,
:where(.portal-ui) .badge.invited {
  color: #91630b;
  background: #fff5d9;
}

:where(.portal-ui) .badge.red,
:where(.portal-ui) .badge.rejected,
:where(.portal-ui) .badge.declined,
:where(.portal-ui) .badge.cancelled {
  color: #ab3340;
  background: #fcebed;
}

:where(.portal-ui) .badge.blue {
  color: #006d9c;
  background: #effaff;
}

:where(.portal-ui) .divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

:where(.portal-ui) .empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 13px;
}

:where(.portal-ui) .empty svg {
  width: 34px;
  height: 34px;
  color: #9eacc0;
  margin-bottom: 12px;
}

:where(.portal-ui) .empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

:where(.portal-ui) .list-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eef1f5;
}

:where(.portal-ui) .list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

:where(.portal-ui) .list-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
}

:where(.portal-ui) .list-subtitle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

:where(.portal-ui) .shift-cover {
  height: 5px;
  background: linear-gradient(90deg,#00A0E4,#80d3f2);
  border-radius: 12px 12px 0 0;
  margin: -24px -24px 22px;
}

:where(.portal-ui) .shift-date {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}

:where(.portal-ui) .progress {
  height: 6px;
  border-radius: 10px;
  background: #edf0f5;
  overflow: hidden;
  margin: 10px 0;
}

:where(.portal-ui) .progress span {
  display: block;
  background: var(--brand);
  height: 100%;
  border-radius: 10px;
}

:where(.portal-ui) .note {
  background: #effaff;
  color: #425987;
  border: 1px solid #b9e8fa;
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0;
}

:where(.portal-ui) .note.warning {
  background: #fff9eb;
  border-color: #f1e4c4;
  color: #806329;
}

:where(.portal-ui) .note.error {
  background: #fff0f1;
  border-color: #f3d3d8;
  color: #a03240;
}

:where(.portal-ui) .messages {
  margin-bottom: 22px;
}

:where(.portal-ui) .message {
  border: 1px solid #c9e8d8;
  background: #effaf4;
  color: #17694a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  line-height: 1.6;
}

:where(.portal-ui) .message.error {
  background: #fff0f1;
  border-color: #f3d3d8;
  color: #a03240;
}

:where(.portal-ui) .tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  overflow-x: auto;
}

:where(.portal-ui) .tabs a {
  display: block;
  padding: 0 0 13px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

:where(.portal-ui) .tabs a.active {
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
}

:where(.portal-ui) .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

:where(.portal-ui) table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

:where(.portal-ui) th {
  background: #f8fafc;
  color: #667487;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .3px;
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

:where(.portal-ui) td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}

:where(.portal-ui) tr:last-child td {
  border: 0;
}

:where(.portal-ui) .field-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

:where(.portal-ui) .field {
  margin-bottom: 18px;
  min-width: 0;
}

:where(.portal-ui) .field label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

:where(.portal-ui) .field input:not([type=checkbox]):not([type=radio]),
:where(.portal-ui) .field select,
:where(.portal-ui) .field textarea {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  width: 100%;
  border: 1px solid #d8e0eb;
  border-radius: 7px;
  min-height: 43px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

:where(.portal-ui) .field textarea {
  min-height: 94px;
  resize: vertical;
}

:where(.portal-ui) .field input[type=checkbox] {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 8px;
}

:where(.portal-ui) .field input[type=file] {
  font-size: 12px;
}

:where(.portal-ui) .field .help {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 7px;
}

:where(.portal-ui) .errorlist {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
}

:where(.portal-ui) .field:has(.errorlist) input,
:where(.portal-ui) .field:has(.errorlist) select,
:where(.portal-ui) .field:has(.errorlist) textarea {
  border-color: #d8818b;
}

:where(.portal-ui) .form-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}

:where(.portal-ui) .form-footer small {
  color: var(--muted);
  font-size: 11px;
}

:where(.portal-ui) .auth-body {
  min-height: 100vh;
  background: #f7f9fc;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

:where(.portal-ui) .auth-visual {
  background: #172743;
  color: #fff;
  padding: 45px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

:where(.portal-ui) .auth-visual:after {
  content: '';
  width: 600px;
  height: 600px;
  border: 1px solid #456189;
  border-radius: 50%;
  position: absolute;
  bottom: -300px;
  left: -140px;
  box-shadow: 0 0 0 80px #203451,0 0 0 81px #314a6d,0 0 0 160px #1c2e4a;
  opacity: .6;
}

:where(.portal-ui) .auth-visual .brand {
  position: relative;
  z-index: 1;
  padding: 0;
}

:where(.portal-ui) .auth-story {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin-bottom: 80px;
}

:where(.portal-ui) .auth-story h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

:where(.portal-ui) .auth-story p {
  color: #c0cce0;
  font-size: 15px;
  line-height: 1.8;
}

:where(.portal-ui) .auth-visual footer {
  font-size: 11px;
  color: #a8b8d1;
  z-index: 1;
}

:where(.portal-ui) .auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

:where(.portal-ui) .auth-card {
  width: 100%;
  max-width: 380px;
}

:where(.portal-ui) .auth-card h1 {
  font-size: 28px;
}

:where(.portal-ui) .auth-card .subtitle {
  margin-bottom: 28px;
}

:where(.portal-ui) .auth-card .button {
  width: 100%;
}

:where(.portal-ui) .auth-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.8;
}

:where(.portal-ui) .password-wrap {
  position: relative;
}

:where(.portal-ui) .password-wrap input {
  padding-right: 50px!important;
}

:where(.portal-ui) .password-toggle {
  position: absolute;
  right: 0;
  top: 0;
}

:where(.portal-ui) .mobile-overlay {
  display: none;
}

:where(.portal-ui) .viewer {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7fa;
}

:where(.portal-ui) .viewer-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

:where(.portal-ui) .key-values {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  font-size: 12px;
}

:where(.portal-ui) .key-values dt {
  color: var(--muted);
}

:where(.portal-ui) .key-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}

:where(.portal-ui) .review-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: 20px;
}

:where(.portal-ui) .alert-dot {
  width: 6px;
  height: 6px;
  background: #e28b36;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

:where(.portal-ui) .footer-note {
  font-size: 10px;
  color: #8390a1;
  margin-top: 30px;
}

:where(.portal-ui) .inline-form {
  display: inline;
}

:where(.portal-ui) .search-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

:where(.portal-ui) .search-bar .field {
  margin: 0;
  flex: 1;
  min-width: 140px;
}

body.portal-ui.sidebar-collapsed {
  --sidebar: 76px;
}

body.portal-ui.sidebar-collapsed .sidebar {
  padding: 24px 10px;
}

body.portal-ui.sidebar-collapsed .brand {
  padding: 0 10px 25px;
}

body.portal-ui.sidebar-collapsed .brand-name,
body.portal-ui.sidebar-collapsed .nav-text,
body.portal-ui.sidebar-collapsed .nav-label,
body.portal-ui.sidebar-collapsed .nav-note {
  display: none;
}

body.portal-ui.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

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

:where(.portal-ui) [hidden] {
  display: none!important;
}

@media(min-width:1800px) {
  :where(.portal-ui) .content {
    padding-top: 40px;
  }
}

@media(max-width:1100px) {
  :where(.portal-ui) .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  :where(.portal-ui) .grid.two,
  :where(.portal-ui) .grid.equal {
    grid-template-columns: 1fr;
  }

  :where(.portal-ui) .topbar {
    padding: 0 24px;
  }

  :where(.portal-ui) .content {
    padding: 28px 24px;
  }

  :where(.portal-ui) .review-grid {
    grid-template-columns: 1fr;
  }

  :where(.portal-ui) .workspace-name {
    display: none;
  }
}

@media(max-width:767px) {
  .portal-ui,
  body.portal-ui.sidebar-collapsed {
    --sidebar: 0px;
  }

  :where(.portal-ui) .sidebar,
  body.portal-ui.sidebar-collapsed .sidebar {
    width: 256px;
    transform: translateX(-100%);
    padding: 24px 16px;
    transition: transform .2s;
  }

  :where(.portal-ui) .sidebar .brand-name,
  :where(.portal-ui) .sidebar .nav-text,
  :where(.portal-ui) .sidebar .nav-label,
  :where(.portal-ui) .sidebar .nav-note,
  body.portal-ui.sidebar-collapsed .sidebar .brand-name,
  body.portal-ui.sidebar-collapsed .sidebar .nav-text,
  body.portal-ui.sidebar-collapsed .sidebar .nav-label,
  body.portal-ui.sidebar-collapsed .sidebar .nav-note {
    display: block;
  }

  :where(.portal-ui) .sidebar .nav-item,
  body.portal-ui.sidebar-collapsed .sidebar .nav-item {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  :where(.portal-ui) .sidebar .brand,
  body.portal-ui.sidebar-collapsed .sidebar .brand {
    padding: 0 12px 25px;
  }

  body.portal-ui.mobile-open .sidebar {
    transform: translateX(0);
  }

  body.portal-ui.mobile-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #0f203b80;
    z-index: 25;
    border: 0;
    width: 100%;
  }

  :where(.portal-ui) .topbar {
    height: 64px;
    padding: 0 14px;
    gap: 5px;
  }

  :where(.portal-ui) .topbar-left,
  :where(.portal-ui) .topbar-right {
    gap: 7px;
  }

  :where(.portal-ui) .user-name {
    display: none;
  }

  :where(.portal-ui) .content {
    padding: 23px 16px 35px;
  }

  :where(.portal-ui) h1 {
    font-size: 24px;
  }

  :where(.portal-ui) .page-head {
    flex-direction: column;
    margin-bottom: 20px;
  }

  :where(.portal-ui) .stats {
    gap: 10px;
    margin-bottom: 20px;
  }

  :where(.portal-ui) .stat {
    padding: 16px 13px;
  }

  :where(.portal-ui) .stat-icon {
    right: 12px;
    top: 14px;
    width: 26px;
    height: 26px;
  }

  :where(.portal-ui) .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  :where(.portal-ui) .stat-label {
    max-width: 100px;
    font-size: 11px;
    min-height: 28px;
    margin-bottom: 5px;
  }

  :where(.portal-ui) .stat-value {
    font-size: 25px;
  }

  :where(.portal-ui) .stat-note {
    font-size: 10px;
  }

  :where(.portal-ui) .card {
    padding: 19px;
    margin-bottom: 16px;
  }

  :where(.portal-ui) .grid.equal,
  :where(.portal-ui) .field-grid {
    grid-template-columns: 1fr;
  }

  :where(.portal-ui) .grid {
    gap: 0;
  }

  :where(.portal-ui) .shift-cover {
    margin: -19px -19px 19px;
  }

  :where(.portal-ui) .field-grid {
    gap: 0;
  }

  :where(.portal-ui) .card-head {
    flex-wrap: wrap;
  }

  :where(.portal-ui) .key-values {
    grid-template-columns: 100px 1fr;
  }

  :where(.portal-ui) .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  :where(.portal-ui) .auth-body {
    display: block;
  }

  :where(.portal-ui) .auth-visual {
    padding: 25px 24px;
    min-height: auto;
  }

  :where(.portal-ui) .auth-story,
  :where(.portal-ui) .auth-visual footer,
  :where(.portal-ui) .auth-visual:after {
    display: none;
  }

  :where(.portal-ui) .auth-main {
    padding: 40px 24px;
  }

  :where(.portal-ui) .auth-card {
    max-width: 440px;
  }

  :where(.portal-ui) .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  :where(.portal-ui) .form-footer .button {
    width: 100%;
  }

  :where(.portal-ui) td,
  :where(.portal-ui) th {
    padding: 14px;
  }

  :where(.portal-ui) .review-grid {
    gap: 0;
  }

  :where(.portal-ui) .viewer {
    height: 55vh;
  }

  :where(.portal-ui) .tabs {
    gap: 20px;
  }

  :where(.portal-ui) .topbar .workspace-button {
    display: none;
  }
}

:where(.portal-ui) .requirements-matrix {
  min-width: 1000px;
}

:where(.portal-ui) .requirements-matrix th:first-child,
:where(.portal-ui) .requirements-matrix td:first-child {
  position: sticky;
  left: 0;
  min-width: 200px;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #e2e7ee;
}

:where(.portal-ui) .requirements-matrix th:first-child {
  background: #f8fafc;
  z-index: 3;
}

:where(.portal-ui) .requirements-matrix th {
  white-space: normal;
  min-width: 140px;
}

:where(.portal-ui) .requirements-matrix .badge {
  min-width: 94px;
}

:where(.portal-ui) .badge.missing {
  background: #f0f2f5;
  color: #657286;
}

:where(.portal-ui) .badge.provided,
:where(.portal-ui) .badge.pending {
  background: #fff5d9;
  color: #91630b;
}

:where(.portal-ui) .badge.exempt {
  background: #f0f2f5;
  color: #657286;
}

:where(.portal-ui) .badge.yellow {
  color: #91630b;
  background: #fff5d9;
}

:where(.portal-ui) .badge.gray {
  color: #57667b;
  background: #edf1f6;
}

:where(.portal-ui) .field div:has(>div>label>input[type=checkbox]) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
}

:where(.portal-ui) .field div:has(>div>label>input[type=checkbox]) label {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin: 0;
}

@media(max-width:767px) {
  :where(.portal-ui) .field div:has(>div>label>input[type=checkbox]) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Original VLABA identity from vlaba.ru; use the symbol when collapsed. */

:where(.portal-ui) .brand {
  padding: 0 8px 24px;
  min-height: 87px;
  letter-spacing: 0;
}

:where(.portal-ui) .brand-logo {
  display: block;
  width: 208px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex: none;
}

:where(.portal-ui) .brand-symbol {
  display: none;
  width: 36px;
  height: 42px;
  object-fit: contain;
  flex: none;
}

:where(.portal-ui) .auth-visual .brand {
  width: 320px;
  max-width: 100%;
  min-height: 0;
}

:where(.portal-ui) .auth-visual .brand-logo {
  width: 320px;
}

:where(.portal-ui) .eyebrow {
  color: var(--brand-ink);
}

:where(.portal-ui) input[type=checkbox],
:where(.portal-ui) progress {
  accent-color: var(--brand);
}

body.portal-ui.sidebar-collapsed .brand {
  padding: 0 10px 24px;
}

body.portal-ui.sidebar-collapsed .brand-logo {
  display: none;
}

body.portal-ui.sidebar-collapsed .brand-symbol {
  display: block;
}

@media(max-width:767px) {
  body.portal-ui.sidebar-collapsed .brand,
  :where(.portal-ui) .sidebar .brand {
    padding: 0 8px 24px;
  }

  :where(.portal-ui) .sidebar .brand-logo,
  body.portal-ui.sidebar-collapsed .sidebar .brand-logo {
    display: block;
  }

  :where(.portal-ui) .sidebar .brand-symbol,
  body.portal-ui.sidebar-collapsed .sidebar .brand-symbol {
    display: none;
  }

  :where(.portal-ui) .auth-visual .brand {
    width: 250px;
  }
}

:where(.portal-ui) .sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Shared utilities and content sizing. */
:where(.portal-ui) .text-small { font-size:12px; }
:where(.portal-ui) .full-width { width:100%; }
:where(.portal-ui) .mt-18 { margin-top:18px; }
:where(.portal-ui) .card-inset { padding:22px 24px; }
:where(.portal-ui) .my-20 { margin:20px 0; }
:where(.portal-ui) .mb-0 { margin-bottom:0; }
:where(.portal-ui) .mt-12 { margin-top:12px; }
:where(.portal-ui) .mt-16 { margin-top:16px; }
:where(.portal-ui) .nav-logout { border:0;background:transparent;width:100%; }
:where(.portal-ui) .topbar-separator { margin:0 9px;color:#ccd2dc; }
:where(.portal-ui) .breadcrumb-separator { margin:0 8px; }
:where(.portal-ui) .award-icon { position:static;width:44px;height:44px;margin-bottom:18px; }
:where(.portal-ui) .span-all { grid-column:1/-1; }
:where(.portal-ui) .notification-body { font-size:12px;margin:8px 0; }
:where(.portal-ui) .align-start { align-self:start; }
:where(.portal-ui) .stats-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
:where(.portal-ui) .card-toolbar { padding:22px 24px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap; }
:where(.portal-ui) .justify-center { justify-content:center; }
:where(.portal-ui) .review-label { font-size:12px;display:block;line-height:1.8;margin-bottom:14px; }
:where(.portal-ui) .review-separator { border-top:1px solid #e8edf3;padding-top:20px;margin-top:20px; }
:where(.portal-ui) .viewer-compact { height:440px; }
:where(.portal-ui) .mt-20 { margin-top:20px; }
:where(.portal-ui) .mt-14 { margin-top:14px; }
:where(.portal-ui) .mt-7 { margin-top:7px; }
:where(.portal-ui) .pagination-bar { padding:20px;justify-content:space-between; }
:where(.portal-ui) .auth-eyebrow { color:#80d3f2; }
:where(.portal-ui) .auth-security { background:#2e4364;color:#def3fc; }
:where(.portal-ui) .auth-recovery { text-align:right;margin:-5px 0 24px;font-size:12px; }
:where(.portal-ui) .m-0 { margin: 0; }
:where(.portal-ui) .clickable { cursor: pointer; }
:where(.portal-ui) .text-danger { color: var(--red); }
:where(.portal-ui) .card-head > div { min-width: 0; flex: 1 1 140px; overflow-wrap: anywhere; }
:where(.portal-ui) .list-row > div:first-child { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
:where(.portal-ui) .list-row .actions { flex-shrink: 0; }
:where(.portal-ui) .page-head > div { min-width: 0; overflow-wrap: anywhere; }
:where(.portal-ui) .viewer-compact { max-height: 65vh; }
:where(.portal-ui) .workspace-breadcrumbs { font-size: 12px; margin-bottom: 22px; color: var(--muted); }
.portal-ui { min-width: 0; }
body.portal-ui.error-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
:where(.portal-ui) .error-card { width: 100%; max-width: 640px; margin: 0; }
:where(.portal-ui) .error-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
:where(.portal-ui) .error-brand img { width: 44px; height: auto; flex: none; }
:where(.portal-ui) .error-brand span { font-size: 16px; font-weight: 600; color: var(--brand-ink); }
:where(.portal-ui) .error-code { margin-bottom: 16px; }
