:root {
  --nav: #10263f;
  --blue: #1769e0;
  --ink: #182436;
  --muted: #6f7c8c;
  --line: #e4e9f0;
  --bg: #f4f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px Segoe UI,
    Arial;
}
button,
.button {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
input,
select {
  border: 1px solid #d7dfe9;
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  font: inherit;
  width: 100%;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0e2745, #1769e0);
}
.loginbox {
  width: min(410px, 92vw);
  background: #fff;
  padding: 34px;
  border-radius: 20px;
}
.logo,
.brand > b {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.loginbox h1 {
  margin: 18px 0 4px;
}
.loginbox p {
  color: var(--muted);
  margin: 0 0 24px;
}
.loginbox label,
.profile label,
.modal label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--muted);
}
.loginbox button {
  width: 100%;
}
.error {
  color: #b83232;
  margin-top: 12px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
aside {
  background: var(--nav);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 28px;
}
.brand > b {
  width: 42px;
  height: 42px;
}
.brand span,
.who {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}
.brand small,
.who small {
  color: #9caec3;
  font-weight: 400;
  margin-top: 4px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  background: transparent;
  color: #b9c6d6;
  text-align: left;
}
nav button.active {
  background: #213d5d;
  color: #fff;
}
.who {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid #2b4664;
}
main {
  padding: 30px 36px;
  min-width: 0;
}
header,
.panelhead,
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
header {
  margin-bottom: 24px;
}
header p {
  color: var(--muted);
  margin: 0 0 4px;
}
h1,
h2 {
  margin: 0;
}
.light {
  background: #eef2f7;
  color: #405064;
}
.hero {
  background: linear-gradient(120deg, #145dc9, #0d8c9f);
  border-radius: 20px;
  padding: 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.hero div,
.hero span {
  display: flex;
  flex-direction: column;
}
.hero b {
  font-size: 34px;
  margin: 8px 0;
}
.hero p,
.hero small {
  opacity: 0.8;
}
.hero span {
  font-size: 24px;
  text-align: right;
}
.hero span small {
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.stats article,
.panel,
.quick,
.upload {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.stats article {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stats b {
  font-size: 25px;
}
.stats span,
.hint {
  color: var(--muted);
  font-size: 12px;
}
.panel {
  margin-top: 18px;
}
.panel h2 {
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 480px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  background: #eaf2fd;
  color: #185aa7;
  padding: 5px 8px;
  border-radius: 10px;
}
.actions {
  display: flex;
  gap: 6px;
}
.actions button {
  padding: 6px 9px;
}
.danger {
  background: #fff0f0;
  color: #b73737;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 30px;
}
.quick {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: 10px;
}
.quick h2 {
  grid-column: 1/-1;
}
.upload {
  text-align: center;
  padding: 42px;
  border: 2px dashed #c7d5e7;
}
.uploadicon {
  font-size: 45px;
  color: var(--blue);
}
.upload p {
  color: var(--muted);
  max-width: 650px;
  margin: 12px auto 22px;
}
.upload select {
  max-width: 340px;
  margin: 0 10px 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.chips span {
  background: #eff4fa;
  border-radius: 18px;
  padding: 7px 11px;
}
.loading,
.errorbox {
  padding: 22px;
  margin-top: 15px;
  background: #fff;
}
.errorbox {
  color: #a52f2f;
}
.profile form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  max-width: 700px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #071b30b5;
  display: grid;
  place-items: center;
  z-index: 10;
}
.modal form {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  width: min(620px, 94vw);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.modal h2,
.modal .actions,
.modal .error {
  grid-column: 1/-1;
}
.assetfilters select {
  max-width: 230px;
}
.analyticsHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.analyticsHead p {
  color: var(--muted);
  margin: 6px 0 0;
}
.chartgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.chart {
  margin-top: 0;
}
.bars {
  display: grid;
  gap: 11px;
}
.barrow {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) 2fr minmax(75px, auto);
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.barrow > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.barrow > div {
  height: 13px;
  background: #edf1f6;
  border-radius: 8px;
  overflow: hidden;
}
.barrow i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #1769e0, #17a5a7);
  border-radius: 8px;
}
.barrow b {
  text-align: right;
  font-size: 11px;
}
.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eaf2fd;
  border: 1px solid #c9dcf8;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}
.bulkbar select {
  max-width: 230px;
}
.check {
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.sort {
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}
.sort.on {
  color: var(--blue);
}
tr.selected td {
  background: #edf5ff;
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
  }
  .brand,
  .who {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  main {
    padding: 18px 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .quick,
  .profile form,
  .modal form {
    grid-template-columns: 1fr;
  }
  .hero,
  .panelhead,
  .toolbar {
    display: block;
  }
  .bulkbar {
    align-items: stretch;
    flex-direction: column;
  }
  .bulkbar select {
    max-width: none;
  }
  .chartgrid {
    grid-template-columns: 1fr;
  }
  .analyticsHead {
    display: block;
  }
  .analyticsHead button {
    margin-top: 12px;
  }
  .barrow {
    grid-template-columns: 90px 1fr 65px;
  }
}
