
:root {
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202b3c;
  background: #f3f3ef;
  --ink: #162238;
  --gold: #edbc59;
  --muted: #657083;
  --line: #dfe3e6;
  --blue: #245fbb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: #8f9ba8;
  background: #f8f9fb;
}
.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.primary:hover {
  background: #293c58;
  color: #fff;
}
.danger {
  color: #a12c3d;
  border-color: #dbb8bd;
}
.gold {
  background: var(--gold);
  color: #152136;
  border-color: var(--gold);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 18px;
  line-height: 1.2;
}
.brand i {
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--gold);
  color: #14233b;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 17px;
}
.brand small {
  font-size: 10px;
  color: #aeb9cc;
  letter-spacing: 0.17em;
  display: block;
  margin-top: 5px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: #132138;
  color: #f4f5f8;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.rail nav {
  display: grid;
  gap: 7px;
}
.rail nav button {
  text-align: left;
  justify-content: start;
  border: 0;
  color: #bcc8dc;
  background: transparent;
  padding: 12px 14px;
}
.rail nav button[aria-current="page"] {
  color: #ffe0a0;
  background: #2e3b50;
}
.rail nav button:hover {
  background: #26364f;
}
.rail-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #a3b1c7;
}
.rail-bottom a {
  color: #e9cc8e;
}
.topbar {
  min-height: 80px;
  padding: 20px 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .tag {
  font-size: 12px;
  color: #5e6b7e;
}
.body {
  padding: 34px 36px 55px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #63738a;
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 7px;
}
.muted {
  color: var(--muted);
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 26px;
}
.intro p {
  max-width: 720px;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.stat .number {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  margin: 9px 0;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 13px;
}
.cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin: 22px 0;
}
.panel p:last-child {
  margin-bottom: 0;
}
.notice {
  padding: 14px 18px;
  background: #fff7e8;
  border: 1px solid #edd8ab;
  border-radius: 10px;
  color: #624b24;
  font-size: 13px;
  margin: 18px 0;
}
.notice.info {
  background: #eaf1fb;
  border-color: #c7d8ef;
  color: #284c7b;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 22px 0;
}
.toolbar label {
  min-width: 140px;
  flex: 1;
}
.toolbar .search {
  flex: 2;
}
.toolbar label span,
label > span {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: #4f5d70;
  margin-bottom: 6px;
}
input,
select,
textarea {
  border: 1px solid #ccd3db;
  background: #fff;
  border-radius: 8px;
  color: #18263c;
  padding: 10px 12px;
  width: 100%;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #204e85;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.check span {
  margin: 0;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form label {
  display: block;
  margin-bottom: 16px;
}
.wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
}
.portrait {
  height: 196px;
  background: radial-gradient(circle at 50% 55%, #f4ebd6, #dbe2ea);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portrait img,
.portrait canvas {
  height: 94%;
  width: 94%;
  object-fit: contain;
}
.portrait .placeholder {
  color: #7e8b9c;
  font-size: 13px;
}
.card-copy {
  padding: 17px;
}
.card h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.card p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 12px;
  min-height: 18px;
}
.card button {
  width: 100%;
  padding: 8px 10px;
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: #eef1f5;
  color: #536174;
}
.badge.green {
  background: #e1f4e9;
  color: #286a45;
}
.badge.amber {
  background: #fff0cb;
  color: #89651f;
}
.badge.blue {
  background: #e5eefa;
  color: #365c8f;
}
.badge.red {
  background: #fbe7e9;
  color: #963343;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.empty {
  padding: 45px 22px;
  border: 1px dashed #b9c4d0;
  border-radius: 12px;
  color: #617086;
  text-align: center;
  background: #ffffff80;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th {
  color: #68778c;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table-wrap td:first-child {
  font-weight: 650;
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr 35px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin: 14px 0;
}
.bar {
  height: 7px;
  background: #eef0f3;
  border-radius: 6px;
  overflow: hidden;
}
.bar div {
  height: 100%;
  background: #c4953f;
  min-width: 2px;
}
.loading {
  padding: 35px;
  color: #68778b;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.status {
  font-size: 13px;
  min-height: 24px;
  color: #6b5268;
}
.status.error {
  color: #a0273c;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-art {
  background: radial-gradient(ellipse at 75% 20%, #394766, #132138 70%);
  color: #fff;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}
.login-art h1 {
  font-size: 52px;
  max-width: 530px;
  line-height: 1.1;
  margin: 70px 0 24px;
}
.login-art p {
  color: #becbdd;
  max-width: 460px;
  font-size: 17px;
}
.login-form {
  align-self: center;
  margin: auto;
  padding: 55px;
  max-width: 530px;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
}
.login-form .primary {
  width: 100%;
  padding: 13px;
}
.login-form footer {
  font-size: 12px;
  margin-top: 32px;
  color: #6d7888;
}
.login-art .line-art {
  border-top: 1px solid #526078;
  padding-top: 25px;
  font-size: 12px;
  color: #b8c5d9;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
dialog {
  border: 1px solid #d8dde4;
  border-radius: 16px;
  padding: 0;
  width: min(850px, calc(100% - 32px));
  max-height: 90vh;
  box-shadow: 0 30px 110px #07132b66;
  color: var(--ink);
}
dialog::backdrop {
  background: #111d32a6;
  backdrop-filter: blur(3px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 26px;
}
.detail-top {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.detail-top .portrait {
  border-radius: 12px;
  height: 220px;
}
.detail-top p {
  white-space: pre-line;
}
.tiny {
  font-size: 11px;
  color: #758093;
}
.secret {
  letter-spacing: 0.05em;
}
.gallery {
  max-width: 1320px;
  margin: auto;
  padding: 38px;
}
.gallery header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.gallery .brand small {
  color: #6a7484;
}
.gallery-hero {
  padding: 60px 0 35px;
  max-width: 850px;
}
.gallery-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}
.gallery-hero p {
  font-size: 17px;
  color: var(--muted);
}
.gallery footer {
  font-size: 12px;
  margin-top: 38px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .body {
    padding: 26px;
  }
  .topbar {
    padding: 20px 26px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 40px;
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .rail {
    padding: 17px;
    gap: 16px;
  }
  .rail nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .rail nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .rail-bottom {
    display: none;
  }
  .rail .brand small {
    display: none;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro {
    align-items: start;
    flex-direction: column;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: auto;
    padding: 26px;
  }
  .login-art h1 {
    font-size: 30px;
    margin: 35px 0 16px;
  }
  .login-art .line-art {
    display: none;
  }
  .login-form {
    padding: 35px 26px;
  }
  .gallery {
    padding: 24px;
  }
  .gallery-hero {
    padding-top: 35px;
  }
}
@media (max-width: 460px) {
  .body {
    padding: 20px 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .number {
    font-size: 27px;
  }
  .cards {
    gap: 10px;
  }
  .portrait {
    height: 170px;
  }
  .card-copy {
    padding: 12px;
  }
  .detail-top {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 18px;
  }
  form .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 15px;
  }
  .topbar .tag {
    max-width: 140px;
  }
  .gallery header {
    align-items: start;
    flex-direction: column;
  }
  .gallery .cards {
    grid-template-columns: 1fr 1fr;
  }
}
