:root {
  color-scheme: light;
  --text: #20343c;
  --page-bg: #f3f5f5;
  --surface: #fff;
  --surface-soft: #f6f8f7;
  --surface-hover: #f0f5f3;
  --surface-highlight: #edf2ef;
  --strong-text: #29443a;
  --label-text: #4d6456;
  --subtle-text: #5f7068;
  --input-border: #a2b3ab;
  --primary-bg: #155b4c;
  --primary-hover: #114638;
  --avatar-text: #2e5d45;
  --hero-bg: #e4ece6;
  --hero-border: #d1dfd4;
  --hero-mark: #d4e1d7;
  --hero-text: #526a5c;
  --badge-bg: #edf1ef;
  --badge-text: #52665b;
  --good-bg: #e6f2e9;
  --good-text: #2f714b;
  --warn-bg: #fff1d9;
  --warn-text: #805716;
  --bad-bg: #fbe9e6;
  --bad-text: #a4483a;
  --info-bg: #e8eef7;
  --info-text: #45638b;
  --neutral-bg: #eff0f2;
  --neutral-text: #5f6b74;
  --proboard-bg: #fff3c4;
  --proboard-text: #73500b;
  --proboard-border: #c49b32;
  --warning-surface: #fff7e7;
  --warning-border: #eadcbf;
  --strip-bg: #edf1e9;
  --strip-text: #496043;
  --strip-border: #dce3d6;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--page-bg);
  font-synthesis: none;
  --green: #155b4c;
  --muted: #64747b;
  --line: #dce4e4;
  --nav: #122a32;
  --nav-highlight: #24444b;
  --nav-divider: #345058;
  --dialog-shadow: #10292140;
  --dialog-backdrop: #112d3580;
  --toast-bg: #173e31;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8eaed;
  --page-bg: #15171b;
  --surface: #202329;
  --surface-soft: #272b32;
  --surface-hover: #30353d;
  --surface-highlight: #30353d;
  --strong-text: #e8eaed;
  --label-text: #c5cad2;
  --subtle-text: #b4bbc5;
  --input-border: #626b78;
  --primary-bg: #21634f;
  --primary-hover: #2a735d;
  --avatar-text: #d3d8e0;
  --hero-bg: #292e36;
  --hero-border: #424954;
  --hero-mark: #373e48;
  --hero-text: #c5cad2;
  --badge-bg: #30353d;
  --badge-text: #cbd1da;
  --good-bg: #214235;
  --good-text: #a0dfb4;
  --warn-bg: #483b20;
  --warn-text: #f4d489;
  --bad-bg: #482b2b;
  --bad-text: #ffb7ad;
  --info-bg: #263c53;
  --info-text: #bbd7ff;
  --neutral-bg: #30353d;
  --neutral-text: #cbd1da;
  --proboard-bg: #3d3219;
  --proboard-text: #f5d36d;
  --proboard-border: #9b7d2d;
  --warning-surface: #3a311f;
  --warning-border: #7c683e;
  --strip-bg: #252a31;
  --strip-text: #cbd1da;
  --strip-border: #3a414b;
  --green: #8dddbf;
  --muted: #adb4bf;
  --line: #3a414b;
  --nav: #191c21;
  --nav-highlight: #30353d;
  --nav-divider: #3a414b;
  --dialog-shadow: #00000066;
  --dialog-backdrop: #0b0d1180;
  --toast-bg: #30353d;
}
.theme-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0 10px 22px;
  padding: 0 2px;
  color: #dcebe3;
  cursor: pointer;
}
.theme-track {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border: 1px solid #9eb5b8;
  border-radius: 15px;
  background: #475c61;
}
.theme-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
#theme-toggle:checked + .theme-track {
  background: #97d6b4;
  border-color: #97d6b4;
}
#theme-toggle:checked + .theme-track::after {
  left: 20px;
  background: #122a32;
}
#theme-toggle:focus-visible + .theme-track {
  outline: 3px solid #e6b44c;
  outline-offset: 4px;
}
.mobile-appearance-settings,
.sidebar nav .mobile-settings-link {
  display: none;
}
.appearance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.appearance-options label {
  display: block;
  cursor: pointer;
}
.appearance-options label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
.appearance-options input:checked + span {
  background: var(--primary-bg);
  border-color: var(--primary-bg);
  color: #fff;
}
.appearance-options input:focus-visible + span {
  outline: 3px solid #e6b44c;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .theme-control {
    display: none;
  }
  .mobile-appearance-settings {
    display: block;
  }
  .sidebar nav .mobile-settings-link {
    display: flex;
  }
  .desktop-theme-note {
    display: none;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ca891d;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
button {
  border: 1px solid var(--input-border);
  background: var(--surface);
  border-radius: 7px;
  padding: 10px 15px;
  color: var(--strong-text);
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
}
button:hover {
  background: var(--surface-hover);
}
button.primary {
  background: var(--primary-bg);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: var(--primary-hover);
}
button.danger {
  color: var(--bad-text);
}
.navigation-toggle {
  display: none;
}
.hamburger-lines {
  display: grid;
  gap: 5px;
  width: 20px;
}
.hamburger-lines span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  overflow-y: auto;
  background: var(--nav);
  color: #bac8cc;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 0 10px 16px;
}
.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: auto;
  aspect-ratio: 676 / 800;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand strong {
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 5px;
  color: #c2d2d5;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8ca5ac;
  padding: 0 12px;
  margin: 12px 0;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  border: 0;
  color: #b9cccf;
  background: transparent;
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
}
nav button.active {
  background: var(--nav-highlight);
  color: #fff;
}
nav button:hover {
  background: var(--nav-highlight);
}
.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.nav-count {
  font-size: 11px;
  border-radius: 4px;
  background: #c1d6b9;
  color: #244633;
  padding: 2px 6px;
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid var(--nav-divider);
  font-size: 12px;
  line-height: 1.8;
}
.local-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #9fca99;
  border-radius: 50%;
  margin-right: 6px;
}
.workarea {
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 42px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--strong-text);
  font-weight: 600;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mode-control {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.mode-control select {
  padding: 8px 28px 8px 9px;
  background: var(--surface-soft);
  min-height: 36px;
}
.avatar {
  background: var(--surface-highlight);
  color: var(--avatar-text);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.prototype-strip {
  background: var(--strip-bg);
  border-bottom: 1px solid var(--strip-border);
  color: var(--strip-text);
  font-size: 11px;
  padding: 10px 42px;
  line-height: 1.5;
}
.prototype-strip strong {
  letter-spacing: 0.5px;
  margin-right: 10px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 42px 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}
h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 13px;
}
.compliance-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid currentColor;
  border-radius: 9px;
}
.compliance-banner.compliant {
  color: var(--good-text);
  background: var(--good-bg);
}
.compliance-banner.non-compliant {
  color: var(--bad-text);
  background: var(--bad-bg);
}
.compliance-banner.not-evaluated {
  color: var(--info-text);
  background: var(--info-bg);
}
.compliance-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.compliance-copy {
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.compliance-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.compliance-copy .compliance-note {
  font-size: 11px;
}
.collapsible-card > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
}
.collapsible-card > summary::-webkit-details-marker {
  display: none;
}
.collapsible-card > summary h2 {
  color: var(--text);
  margin: 0;
}
.activity-chevron {
  font-size: 22px;
  line-height: 1;
}
.collapsible-card[open] > summary {
  border-bottom: 1px solid var(--line);
}
.collapsible-card[open] .activity-chevron {
  transform: rotate(180deg);
}
.hero {
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  border-radius: 10px;
  padding: 27px 29px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "+";
  position: absolute;
  right: 35px;
  top: -75px;
  font-size: 240px;
  line-height: 1;
  color: var(--hero-mark);
  font-weight: 200;
  pointer-events: none;
}
.hero > div {
  position: relative;
  z-index: 1;
  max-width: 630px;
}
.hero h2 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 9px;
}
.hero p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--hero-text);
  margin: 0 0 18px;
}
.hero .tag {
  margin-bottom: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat-top {
  font-size: 12px;
  color: var(--subtle-text);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stat-icon {
  background: var(--surface-highlight);
  color: var(--subtle-text);
  border-radius: 6px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
}
.stat-number {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 11px 0 8px;
}
.stat small {
  font-size: 11px;
  color: var(--subtle-text);
}
.stat small.attention {
  color: var(--warn-text);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 23px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 22px;
}
.card-header {
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.6;
}
.card-body {
  padding: 22px;
}
.card-footer {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.link-button {
  padding: 4px 0;
  border: 0;
  color: var(--green);
  font-size: 12px;
  background: transparent;
  min-height: 30px;
  white-space: nowrap;
}
.table-scroll {
  position: relative;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--subtle-text);
  background: var(--surface-soft);
  font-weight: 600;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.person strong {
  display: block;
  color: var(--strong-text);
  font-size: 12px;
  font-weight: 600;
}
.person small {
  display: block;
  font-size: 10px;
  color: var(--subtle-text);
  margin-top: 5px;
}
.person .avatar {
  border-radius: 8px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.member-certifications > div {
  min-width: 0;
}
.proboard-cert {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--proboard-border);
  border-radius: 5px;
  background: var(--proboard-bg);
  color: var(--proboard-text);
  overflow-wrap: break-word;
  vertical-align: middle;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  background: var(--badge-bg);
  color: var(--badge-text);
}
.badge.good {
  background: var(--good-bg);
  color: var(--good-text);
}
.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.badge.bad {
  background: var(--bad-bg);
  color: var(--bad-text);
}
.badge.info {
  background: var(--info-bg);
  color: var(--info-text);
}
.badge.neutral {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
.tag {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--hero-text);
  font-weight: 700;
}
.list-item {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.list-item:last-child {
  border: 0;
}
.list-item h3 {
  line-height: 1.5;
}
.list-item p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--subtle-text);
  margin: 3px 0;
}
.item-icon {
  background: var(--surface-highlight);
  border-radius: 7px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--subtle-text);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--subtle-text);
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  color: var(--strong-text);
  font-size: 14px;
  display: block;
  margin-bottom: 7px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  background: var(--surface-highlight);
  color: var(--subtle-text);
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin: 0 auto 14px;
  font-size: 23px;
}
.empty button {
  margin-top: 15px;
}
.notice {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--hero-text);
  margin: 0 0 20px;
}
.notice.warning {
  background: var(--warning-surface);
  border-color: var(--warning-border);
  color: var(--warn-text);
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  max-width: 230px;
}
input,
select,
textarea {
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--strong-text);
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
  min-height: 40px;
}
input[type="checkbox"] {
  min-height: 18px;
  width: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--label-text);
  font-weight: 600;
  min-width: 0;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  line-height: 1.6;
}
.field-note {
  font-size: 11px;
  color: var(--subtle-text);
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.member-heading {
  display: flex;
  gap: 15px;
  align-items: center;
}
.member-heading .avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 17px;
}
.meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.8;
}
.requirement-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  align-items: center;
}
.requirement-row:last-child {
  border: 0;
}
.timeline {
  padding-left: 15px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 20px;
}
.timeline p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 4px;
}
.timeline small {
  font-size: 10px;
  color: var(--subtle-text);
}
.review-card {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.review-card:last-child {
  border: 0;
}
.review-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.review-head > .badge {
  align-self: flex-start;
  flex-shrink: 0;
  border-radius: 999px;
}
.review-dates {
  display: flex;
  gap: 30px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
}
.review-dates small {
  display: block;
  color: var(--subtle-text);
}
.mail {
  background: var(--surface-soft);
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}
.settings-row {
  margin-bottom: 20px;
}
.footer-note {
  font-size: 10px;
  color: var(--subtle-text);
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pill-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pill-tabs button.active {
  background: var(--surface-highlight);
  border-color: var(--input-border);
}
.success-text {
  color: var(--good-text);
}
dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--strong-text);
  box-shadow: 0 24px 100px var(--dialog-shadow);
}
dialog::backdrop {
  background: var(--dialog-backdrop);
}
dialog .card-header {
  position: sticky;
  top: 0;
  background: var(--surface);
}
dialog .card-body {
  max-height: 70vh;
  overflow: auto;
}
.close {
  border: 0;
  font-size: 20px;
  padding: 2px 8px;
  background: transparent;
  min-height: 32px;
}
.error {
  background: var(--bad-bg);
  color: var(--bad-text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 450px;
  border-radius: 8px;
  background: var(--toast-bg);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 5px 25px #1234;
  z-index: 20;
}
#toast:not(:empty) {
  padding: 14px 20px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 30;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.policy {
  font-size: 11px;
  line-height: 1.8;
  color: var(--subtle-text);
}
.matrix td:nth-child(n + 2),
.matrix th:nth-child(n + 2) {
  text-align: center;
}
.source-chip {
  font-size: 10px;
  color: var(--subtle-text);
  margin-left: 8px;
}
.import-input {
  width: 100%;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px dashed var(--input-border);
}
.preview-count {
  font-size: 13px;
  margin-bottom: 16px;
}
.note-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-text);
  margin-bottom: 7px;
}
.section-gap {
  margin-top: 24px;
}
.code {
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
}
details {
  font-size: 12px;
  line-height: 1.8;
}
summary {
  cursor: pointer;
  color: var(--label-text);
  font-weight: 600;
}
.subtle-btn {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 32px;
}
.filter-label {
  min-width: 160px;
}
.mapping-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.toolbar label input {
  width: 100%;
}
.toolbar label {
  flex: 1;
}
.stats .stat-number span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
  color: var(--subtle-text);
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 12px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 28px 25px;
  }
  .prototype-strip {
    padding: 10px 25px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .heading-actions {
    max-width: 230px;
  }
  .brand {
    padding-left: 6px;
  }
  .brand strong {
    font-size: 13px;
  }
  .page-heading {
    gap: 12px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (min-width: 721px) {
  .sidebar nav button {
    font-size: 16px;
  }
  .sidebar .nav-icon {
    font-size: 20px;
  }
}
@media (min-width: 721px) and (max-height: 900px) {
  .sidebar {
    padding: 10px;
  }
  .sidebar .brand {
    padding: 0 4px 8px;
  }
  .sidebar .brand-mark {
    width: 40px;
  }
  .sidebar .brand strong {
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
  .sidebar .brand small {
    font-size: 8px;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }
  .sidebar .theme-control {
    margin: 0 4px;
  }
  .sidebar .nav-caption {
    margin: 4px 0;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: 1.2px;
    line-height: 1.4;
  }
  .sidebar nav {
    gap: 2px;
  }
  .sidebar nav button {
    min-height: 44px;
    padding: 8px 10px;
    gap: 10px;
    line-height: 1.2;
  }
  .sidebar .nav-icon {
    font-size: 20px;
  }
  .sidebar-foot {
    padding: 8px 10px 0;
    font-size: 11px;
    line-height: 1.5;
  }
}
@media (min-width: 1101px) and (min-height: 650px) and (max-height: 900px) {
  .sidebar nav button {
    min-height: 48px;
  }
}
@media (min-width: 721px) and (max-height: 649px) and (hover: hover) and (pointer: fine) {
  .sidebar nav {
    gap: 1px;
  }
  .sidebar nav button {
    min-height: 40px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    overflow: visible;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 12px;
  }
  :root[data-standalone="true"] .sidebar {
    /* Keep header controls below the installed app's status-bar fade. */
    padding-top: calc(14px + max(24px, env(safe-area-inset-top, 0px)));
  }
  .brand {
    padding: 0;
  }
  .sidebar .brand {
    padding: 0;
    min-width: 0;
    gap: 10px;
  }
  .sidebar .brand-home {
    flex: 1;
    min-height: 44px;
  }
  .sidebar .brand-home > div {
    min-width: 0;
  }
  .sidebar .theme-control {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: 9px;
    line-height: 1.2;
  }
  .sidebar .theme-control > span:first-child {
    white-space: nowrap;
  }
  .sidebar nav {
    grid-column: 1 / -1;
  }
  .navigation-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: #fff;
    background: transparent;
    border: 1px solid #547078;
  }
  .navigation-toggle:hover,
  .navigation-toggle[aria-expanded="true"] {
    background: var(--nav-highlight);
  }
  .sidebar.menu-open {
    padding-bottom: 18px;
  }
  .sidebar.menu-open nav {
    display: grid;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 42px;
    height: auto;
  }
  .brand strong {
    font-size: 17px;
  }
  .sidebar .brand small {
    font-size: 8px;
    letter-spacing: 0.4px;
    line-height: 1.4;
    margin-top: 4px;
  }
  .sidebar .brand-mark {
    width: 36px;
    height: auto;
  }
  .sidebar .brand strong {
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: none;
    gap: 5px;
    padding: 18px 0 0;
  }
  nav button {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    padding: 12px;
    font-size: 13px;
    gap: 12px;
  }
  .nav-icon {
    font-size: 13px;
    width: 18px;
  }
  .topbar {
    padding: 14px 16px 16px;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .top-actions {
    gap: 8px;
    min-width: 0;
  }
  .connected-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
  }
  .connected-actions .account-role {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .connected-actions > button {
    grid-row: 2;
    min-width: 0;
    min-height: 44px;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.4;
  }
  .connected-actions [data-action="add-cert"] {
    background: var(--primary-bg);
    border-color: var(--green);
    color: #fff;
  }
  .connected-actions [data-action="add-cert"]:hover {
    background: var(--primary-hover);
  }
  .breadcrumb {
    font-size: 12px;
    line-height: 1.5;
  }
  .mode-control {
    font-size: 10px;
  }
  .mode-control select {
    max-width: 170px;
    font-size: 11px;
  }
  .topbar .avatar {
    display: none;
  }
  .prototype-strip {
    padding: 10px 16px;
    font-size: 11px;
  }
  .prototype-strip strong {
    display: block;
    margin: 0 0 4px;
    font-size: 10px;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .heading-actions {
    max-width: none;
    padding-top: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat-top {
    font-size: 11px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 19px;
  }
  .hero:after {
    right: -15px;
    opacity: 0.5;
  }
  .content-grid {
    gap: 0;
  }
  .card-header {
    padding: 18px;
    flex-wrap: wrap;
  }
  .card-header > div {
    min-width: 0;
  }
  .card-body {
    padding: 18px;
  }
  th,
  td {
    padding: 13px 15px;
  }
  .form-grid,
  .mapping-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .full {
    grid-column: auto;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar label,
  .toolbar select {
    width: 100%;
    max-width: none;
  }
  .footer-note {
    display: block;
  }
  .footer-note span {
    display: block;
    margin-top: 5px;
  }
  .review-head {
    flex-wrap: wrap;
  }
  .review-dates {
    gap: 18px;
    flex-wrap: wrap;
  }
  .card-footer {
    flex-wrap: wrap;
  }
  .badge {
    white-space: normal;
  }
  .meta-row {
    gap: 10px;
  }
  .requirement-row {
    align-items: flex-start;
  }
  .requirement-row .badge {
    flex-shrink: 0;
    max-width: 48%;
  }
  #toast {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }
  .pill-tabs {
    flex-wrap: wrap;
  }
  .person {
    min-width: 130px;
  }
  .content-grid > div {
    min-width: 0;
  }
  .toolbar input {
    min-width: 0;
  }
  .mode-control {
    flex-wrap: wrap;
  }
  .account-role {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .button-row > button {
    max-width: 100%;
  }
  dialog {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
  }
  dialog[open] {
    display: flex;
    flex-direction: column;
  }
  dialog .card-header {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  dialog .card-header h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  dialog .card-body {
    min-height: 0;
    max-height: none;
    overflow-wrap: anywhere;
  }
  .admin-table,
  .admin-table tbody {
    display: block;
  }
  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .admin-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .admin-table tr:last-child {
    border-bottom: 0;
  }
  .admin-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .admin-table td:first-child,
  .admin-table td:last-child {
    grid-column: 1 / -1;
  }
  .admin-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--subtle-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
  }
  .admin-table td:last-child button {
    width: 100%;
  }
}
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .mode-control select {
    font-size: 16px;
    min-height: 44px;
  }
  button,
  .link-button,
  .close,
  label.check,
  .theme-control {
    min-height: 44px;
  }
  .close {
    min-width: 44px;
    flex-shrink: 0;
  }
  .link-button {
    white-space: normal;
    text-align: left;
  }
  summary {
    min-height: 44px;
    padding: 12px 0;
    cursor: pointer;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
  main {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.6;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .top-actions {
    flex-wrap: wrap;
  }
  .topbar {
    align-items: flex-start;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
}
.requirement-checklist {
  column-count: 2;
  column-gap: 12px;
}
.requirement-checklist > label {
  break-inside: avoid;
  margin-bottom: 12px;
}
fieldset > label.check {
  margin: 8px 0;
}
@media (max-width: 720px) {
  .requirement-checklist {
    column-count: 1;
  }
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  max-width: none;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
}
.auth-brand {
  background: var(--nav);
  padding: 24px;
}
.auth-brand .brand {
  padding: 0;
}
.auth-brand .theme-control {
  margin: 12px 0 0;
}
.auth-card h1 {
  font-size: 24px;
  margin-bottom: 20px;
}
.auth-card .error:not(:empty) {
  margin-bottom: 18px;
}
.account-role {
  max-width: 220px;
}
@media (min-width: 721px) and (max-width: 1100px) {
  .topbar {
    height: auto;
    min-height: 81px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .top-actions {
    flex-wrap: wrap;
  }
}
.report-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  overflow-wrap: anywhere;
}
.reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.reports-heading > div {
  min-width: 0;
}
.reports-heading h2 {
  margin: 0;
}
.reports-heading button {
  flex-shrink: 0;
  padding: 8px 12px;
}
.reports-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.reports-summary strong {
  color: var(--text);
}
.reports-checked {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.reports-message {
  padding: 0 16px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.reports-message p,
.reports-message .notice {
  margin: 0;
}
.reports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.report-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.report-row:last-child {
  border-bottom: 0;
}
.report-row-details {
  min-width: 0;
}
.report-row-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.report-address {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.report-status {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.35;
}
.reports-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.reports-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.reports-help > summary {
  min-height: 44px;
  padding: 12px 0;
  line-height: 1.4;
  cursor: pointer;
}
.reports-help[open] {
  flex-basis: 100%;
}
.reports-help p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.alert-rule,
.alert-editor {
  border-top: 1px solid var(--input-border);
  padding: 1rem 0;
  overflow-wrap: anywhere;
}
[data-alert-preview] {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Issued equipment: compact cards shared by personal and department views. */
.gear-toolbar, .gear-item-heading, .gear-permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gear-toolbar { margin: 0 0 20px; flex-wrap: wrap; }
.gear-toolbar .button-row { margin: 0; }
.gear-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.gear-item { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-wrap: anywhere; }
.gear-item h3, .gear-event h4 { margin: 0 0 6px; }
.gear-item-heading { align-items: flex-start; }
.gear-item-heading > div, .gear-permission-row > div { min-width: 0; overflow-wrap: anywhere; }
.gear-item-heading .badge { flex-shrink: 0; }
.gear-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 14px; margin: 18px 0; }
.gear-metadata dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.gear-metadata dd { margin: 0; white-space: pre-wrap; }
.gear-notes { white-space: pre-wrap; }
.gear-history { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.gear-event { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.gear-event h5 { margin-bottom: 6px; }
.gear-actions { gap: 8px; }
.gear-actions button { padding: 8px 12px; min-height: 40px; }
.gear-previous { margin-top: 24px; }
.gear-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.gear-filters label { flex: 1; min-width: 180px; }
.gear-filters select { width: 100%; }
.gear-optional { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.gear-permission-row { padding: 16px 0; border-top: 1px solid var(--line); }
.gear-permission-list { margin-top: 16px; }
@media (max-width: 720px) {
  .gear-item { padding: 18px; }
  .gear-actions button { min-height: 44px; }
  .gear-permission-row { flex-wrap: wrap; }
  .gear-filters { display: grid; grid-template-columns: 1fr; }
  .gear-filters label { min-width: 0; }
}
.gear-manager-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: min(360px, 40dvh);
  overflow-y: auto;
}
.gear-manager-results-list strong { min-width: 0; overflow-wrap: anywhere; }
.gear-manager-results-list button { flex-shrink: 0; }
