* {
  box-sizing: border-box;
}
:root {
  --ink: #1c293b;
  --muted: #5c6c80;
  --line: #dce3ec;
  --accent: #315cbd;
  --bg: #f5f7fb;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 40px;
  min-width: 112px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}
.secondary {
  color: var(--ink);
  background: white;
  border-color: #b9c6d8;
}
.danger {
  background: #a42c3b;
}
.icon {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back {
  border: 1px solid var(--line);
  background: white;
  margin-bottom: 16px;
  font-size: 22px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #376fda;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: white;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 21px;
}
.nav-label {
  margin: 28px 12px 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 650;
}
nav > a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: #40516b;
}
nav > a:hover,
nav > a[aria-current="page"] {
  background: #edf2fc;
  color: var(--accent);
  text-decoration: none;
}
.sidebar-foot {
  margin-top: auto;
  padding: 32px 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-label {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1520px;
  margin: auto;
  padding: 36px 38px 60px;
  min-width: 0;
}
.profile-menu {
  position: relative;
}
.profile-menu summary {
  cursor: pointer;
  min-height: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  width: 230px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 10px 30px #20304418;
  z-index: 3;
}
.profile-menu a {
  display: block;
  padding: 8px 0;
}
.profile-menu strong {
  display: block;
  overflow-wrap: anywhere;
}
.profile-menu button {
  width: 100%;
  margin-top: 10px;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px;
}
h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 14px;
}
.muted,
.help {
  color: var(--muted);
}
.small,
.help {
  font-size: 12px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  min-width: 0;
}
.section-title {
  margin: 32px 0 16px;
}
.empty {
  text-align: center;
  padding: 48px 24px;
}
.empty h2 {
  margin-top: 12px;
}
.empty-symbol {
  background: #edf2fc;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 30px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.cards .panel {
  margin-top: 0;
}
.module-card {
  color: var(--ink);
}
.module-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.module-card h3 {
  display: flex;
  justify-content: space-between;
}
.module-card p {
  color: var(--muted);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-heading h1 {
  margin: 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 18px;
}
.filters > div {
  flex: 1 1 155px;
  min-width: 0;
}
.filters label {
  font-size: 12px;
}
.filters button,
.filters > .button {
  flex: 0 1 auto;
}
label {
  display: block;
  font-weight: 550;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #afbdce;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
}
textarea {
  min-height: 110px;
}
select[multiple] {
  min-height: 160px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
input[type="hidden"] {
  display: none;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}
.field {
  margin: 0 0 22px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.checkbox label {
  margin: 0;
  order: 1;
}
.checkbox .errorlist {
  width: 100%;
  order: 2;
}
.form-panel {
  max-width: 820px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.errorlist {
  color: #a12335;
  padding: 10px 14px;
  list-style: none;
  border-left: 3px solid #c94854;
  background: #fff3f3;
  font-size: 13px;
}
.help {
  margin-top: 6px;
}
.help ul {
  padding-left: 18px;
}
.notice {
  padding: 14px 18px;
  background: #ecf7f0;
  border: 1px solid #a8d5b9;
  border-radius: 8px;
  margin-bottom: 20px;
}
.notice.error {
  background: #fff2ef;
  border-color: #e6aaa0;
}
.confirm {
  border: 1px solid #d2af94;
  padding: 16px;
  border-radius: 8px;
  margin-top: 18px;
}
.confirm label {
  margin: 0;
  font-weight: 400;
}
.table-wrap {
  padding: 0;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  font-weight: 600;
}
td,
th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border: 0;
}
tr[data-row] {
  cursor: pointer;
}
tr[data-row]:hover {
  background: #f3f6fc;
}
small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.identifier {
  font-size: 11px;
  color: var(--muted);
}
.badge {
  background: #edf6f1;
  color: #2b684a;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  display: inline-block;
  white-space: nowrap;
}
.badge.inactive {
  background: #f0f1f4;
  color: #596575;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 22px;
}
.pagination span {
  font-size: 13px;
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
  gap: 14px 24px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tree ul {
  list-style: none;
  padding-left: 20px;
}
.tree > ul {
  padding-left: 0;
}
.tree li {
  margin: 12px 0;
}
.tree summary {
  cursor: pointer;
  min-height: 40px;
  padding: 8px;
}
.tree a {
  display: inline-block;
  min-height: 40px;
  padding: 8px;
}
.login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 50px #213f6510;
}
.login-card .brand {
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card button {
  width: 100%;
}
.login-card .muted {
  margin-bottom: 24px;
}
.mobile-menu {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  header {
    padding: 0 24px;
  }
  main {
    padding: 28px 24px;
  }
  aside {
    padding: 24px 12px;
  }
  .header-label {
    display: none;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  aside {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 5;
    overflow-y: auto;
  }
  .menu-open aside {
    display: flex;
  }
  .mobile-menu {
    display: inline-flex;
  }
  header {
    height: 64px;
    padding: 0 18px;
  }
  main {
    padding: 24px 18px 40px;
  }
  h1 {
    font-size: 25px;
  }
  .profile-menu summary span {
    max-width: 230px;
    overflow-wrap: anywhere;
  }
  .panel {
    padding: 20px;
  }
  .table-wrap {
    padding: 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  .filters {
    padding: 16px;
  }
  .filters > div {
    flex-basis: 100%;
  }
  .filters > .button,
  .filters > button {
    flex: 1;
  }
  td,
  th {
    padding: 12px;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  dd {
    margin-bottom: 12px;
  }
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
  .login-card {
    padding: 24px;
  }
  .tree ul {
    padding-left: 12px;
  }
}
