@font-face {
  font-family: Inter;
  src: url("/assets/inter-400.woff2");
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter-500.woff2");
  font-weight: 500;
}
:root {
  font-family: Inter, Arial, sans-serif;
  color: #252523;
  background: #f6f6f7;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #d9d9dc;
  background: white;
  color: inherit;
  border-radius: 4px;
  padding: 10px 15px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #f0f0f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #252523;
  color: white;
  border-color: #252523;
}
.primary:hover {
  background: #41413e;
}
.danger {
  color: #9f3434;
}
a {
  color: inherit;
}
h1 {
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: #777780;
}
.small {
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid #e4e4e6;
  padding: 35px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: Georgia, serif;
  font-size: 31px;
  letter-spacing: 5px;
  margin: 0 10px 5px;
}
.sidebar > small {
  margin: 0 10px 35px;
  letter-spacing: 2px;
  font-size: 10px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  text-decoration: none;
  color: #686871;
  padding: 12px 14px;
  border-radius: 4px;
}
.nav a.active {
  background: #f0f0f2;
  color: #222;
}
.sidebar .foot {
  margin-top: auto;
  padding-top: 30px;
}
.main {
  padding: 36px 44px;
  max-width: 1700px;
  width: 100%;
  margin: auto auto 0;
  align-self: start;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  letter-spacing: 1.6px;
  font-size: 10px;
  color: #82828b;
  margin: 0 0 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat,
.panel {
  background: white;
  border: 1px solid #e0e0e3;
  border-radius: 5px;
  padding: 24px;
}
.stat span {
  display: block;
  color: #777781;
  font-size: 12px;
  margin-bottom: 17px;
}
.stat strong {
  font-size: 27px;
  font-weight: 500;
}
.stat small {
  display: block;
  margin-top: 10px;
}
.panel {
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #81818a;
  font-weight: 400;
  border-bottom: 1px solid #e2e2e4;
  padding: 12px;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #ededee;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfbfc;
}
td.wrap {
  white-space: normal;
  min-width: 180px;
  max-width: 450px;
}
.tag {
  font-size: 11px;
  background: #f1f1f3;
  border: 1px solid #e4e4e7;
  border-radius: 3px;
  padding: 4px 7px;
  display: inline-block;
}
.tag.good {
  color: #37654b;
  background: #edf4ef;
  border-color: #dce9e0;
}
.tag.warn {
  color: #8e662c;
  background: #faf3e7;
  border-color: #eee0c8;
}
.tag.bad {
  color: #9b4343;
  background: #faeeee;
  border-color: #eed8d8;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
label {
  display: block;
  font-size: 12px;
  color: #686871;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
input,
select,
textarea {
  background: white;
  border: 1px solid #d7d7dc;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  min-width: 0;
  color: #252523;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
input[type="number"] {
  max-width: 100%;
}
form > .actions,
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.notice {
  border: 1px solid #e4ddcc;
  background: #faf8f1;
  color: #766542;
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0;
}
.error {
  color: #a03535;
  font-size: 13px;
  line-height: 1.5;
}
.loading,
.empty {
  padding: 40px;
  color: #82828a;
  text-align: center;
}
.auth {
  max-width: 460px;
  margin: 8vh auto;
  padding: 35px;
  background: white;
  border: 1px solid #dddde1;
  border-radius: 5px;
}
.auth .brand {
  margin: 0 0 30px;
}
.auth h1 {
  font-size: 20px;
  margin-bottom: 25px;
}
.auth button.primary {
  width: 100%;
}
.line {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.6fr 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #ececee;
}
.line label {
  margin: 0;
}
.line button {
  align-self: end;
}
.payment {
  border: 1px solid #e4e4e8;
  padding: 14px;
  margin-bottom: 12px;
}
.filter {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.filter label {
  margin: 0;
  flex: 1;
  min-width: 130px;
}
.filter button {
  height: 39px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
}
.kv dt {
  color: #777781;
}
.kv dd {
  margin: 0;
  text-align: right;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs a {
  padding: 9px 12px;
  text-decoration: none;
  border: 1px solid #dddde0;
  background: white;
  border-radius: 3px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f5f6;
  padding: 15px;
  font-size: 11px;
  line-height: 1.6;
}
dialog {
  border: 1px solid #dddde2;
  border-radius: 6px;
  padding: 28px;
  width: min(800px, 94vw);
  max-height: 90vh;
  overflow: auto;
  color: #252523;
}
dialog::backdrop {
  background: #1a1a224f;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.dialog-head h2 {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #252523;
  color: white;
  border-radius: 4px;
  max-width: 90vw;
  z-index: 9;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  color: #62626c;
}
.checklist {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.checklist label {
  margin-bottom: 5px;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .main {
    padding: 28px 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 15px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px;
  }
  .sidebar > small {
    margin-bottom: 12px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav a {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar .foot {
    display: none;
  }
  .main {
    padding: 24px 16px;
  }
  .top {
    align-items: flex-start;
  }
  .top h1 {
    font-size: 23px;
  }
  .stats {
    gap: 10px;
  }
  .stat,
  .panel {
    padding: 17px;
  }
  .stat strong {
    font-size: 22px;
  }
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .line {
    grid-template-columns: 1fr 1fr;
  }
  .auth {
    margin: 25px 16px;
  }
  .dialog-head {
    gap: 10px;
  }
}
thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.media-preview {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: auto;
}
