:root {
  --bg: #080d13;
  --surface: #0d141d;
  --surface-2: #111a25;
  --surface-3: #151f2b;
  --line: #202c3a;
  --line-soft: #182330;
  --text: #edf3f8;
  --muted: #8391a2;
  --muted-2: #536174;
  --mint: #48e0c1;
  --mint-soft: rgba(72, 224, 193, 0.1);
  --blue: #60a5fa;
  --amber: #f8b84e;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 67% -20%, rgba(32, 114, 109, 0.09), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: rgba(8, 13, 19, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 27px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 224, 193, 0.45);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(72, 224, 193, 0.2), rgba(72, 224, 193, 0.03));
  color: var(--mint);
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(72, 224, 193, 0.05);
}

.brand strong {
  display: block;
  letter-spacing: 0.18em;
  font-size: 15px;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-label {
  margin: 0 10px 8px;
  color: #465567;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-label.second {
  margin-top: 23px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #778698;
  text-align: left;
  transition: 160ms ease;
}

.nav-item > span {
  font-size: 18px;
  color: #657487;
}

.nav-item:hover {
  color: #c8d4df;
  background: rgba(255, 255, 255, 0.025);
}

.nav-item.active {
  color: #e8fff9;
  border-color: rgba(72, 224, 193, 0.13);
  background: linear-gradient(90deg, rgba(72, 224, 193, 0.13), rgba(72, 224, 193, 0.025));
  box-shadow: inset 2px 0 var(--mint);
}

.nav-item.active > span {
  color: var(--mint);
}

.nav-item em {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(251, 113, 133, 0.13);
  color: #fb8b9c;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.server-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(150deg, #101925, #0b121b);
}

.server-card-head,
.server-stats {
  display: flex;
  justify-content: space-between;
}

.server-card-head span {
  color: #9aabba;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.server-card-head i,
.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(72, 224, 193, 0.7);
}

.server-card-head strong {
  color: var(--mint);
  font-size: 10px;
}

.server-meter {
  height: 3px;
  margin: 12px 0 13px;
  overflow: hidden;
  border-radius: 3px;
  background: #1c2734;
}

.server-meter span {
  width: 82%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--mint), #65a9ff);
}

.server-stats > div {
  display: grid;
  gap: 2px;
}

.server-stats strong {
  font-size: 13px;
}

.server-stats span {
  color: var(--muted-2);
  font-size: 9px;
}

.profile {
  width: 100%;
  margin-top: 13px;
  padding: 12px 7px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #17322f;
  color: var(--mint);
  font-weight: 800;
}

.avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 11px;
}

.profile small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.profile b {
  color: var(--muted-2);
}

.workspace {
  min-width: 0;
  padding: 0 27px 36px;
}

.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  margin: 0 0 7px;
  color: #4a596b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.breadcrumb span {
  color: var(--mint);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}

.sync-info {
  display: flex;
  align-items: center;
}

.sync-info strong,
.sync-info small {
  display: block;
}

.sync-info strong {
  font-size: 10px;
}

.sync-info small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.refresh-button,
.primary-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(72, 224, 193, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, #3dd5b8, #2caa96);
  color: #06110f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(72, 224, 193, 0.11);
}

.refresh-button span {
  margin-right: 5px;
  font-size: 15px;
}

.refresh-button.spinning span {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-banner {
  margin-top: 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.055);
  color: #8394aa;
  font-size: 10px;
}

.demo-banner span {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.12);
  color: #83baff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 175px 103px;
  gap: 10px;
}

.search-box {
  height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #263546;
  border-radius: 10px;
  background: #0d151f;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.01);
}

.search-box:focus-within {
  border-color: rgba(72, 224, 193, 0.45);
  box-shadow: 0 0 0 3px rgba(72, 224, 193, 0.05);
}

.search-symbol {
  color: var(--mint);
  font-size: 23px;
  line-height: 0;
  transform: rotate(-15deg);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #526173;
}

kbd {
  padding: 4px 7px;
  border: 1px solid #273545;
  border-radius: 5px;
  background: #121c27;
  color: #536275;
  font-family: inherit;
  font-size: 8px;
}

.search-section select,
.filter-button {
  padding: 0 13px;
  border: 1px solid #233142;
  border-radius: 9px;
  background: #0d151f;
  color: #9aa9ba;
  font-size: 10px;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filter-button b {
  min-width: 18px;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 9px;
}

.metric-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 26, 37, 0.96), rgba(11, 18, 27, 0.96));
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 139px;
  padding: 15px 17px;
  border-radius: 11px;
}

.total-card {
  border-color: rgba(72, 224, 193, 0.26);
  background:
    radial-gradient(circle at 90% 0, rgba(72, 224, 193, 0.09), transparent 45%),
    linear-gradient(145deg, rgba(17, 29, 39, 0.96), rgba(11, 19, 27, 0.96));
}

.alert-card {
  background:
    radial-gradient(circle at 90% 0, rgba(248, 184, 78, 0.08), transparent 45%),
    linear-gradient(145deg, rgba(24, 26, 31, 0.96), rgba(14, 18, 24, 0.96));
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(72, 224, 193, 0.09);
  color: var(--mint);
}

.metric-icon.cyan {
  color: #72d6e2;
  background: rgba(114, 214, 226, 0.09);
}

.metric-icon.blue {
  color: #75aefd;
  background: rgba(96, 165, 250, 0.09);
}

.metric-icon.amber {
  color: var(--amber);
  background: rgba(248, 184, 78, 0.09);
}

.trend {
  color: #59687a;
  font-size: 9px;
  font-weight: 800;
}

.trend.positive {
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--mint-soft);
  color: var(--mint);
}

.trend.warning {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(248, 184, 78, 0.09);
  color: var(--amber);
}

.metric-card > p {
  margin: 14px 0 5px;
  color: #687789;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.metric-card > small {
  display: block;
  margin-top: 4px;
  color: #536174;
  font-size: 9px;
}

.content-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(660px, 1fr) 315px;
  gap: 12px;
  align-items: start;
}

.panel {
  border-radius: 11px;
  overflow: hidden;
}

.panel-header {
  min-height: 71px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header.compact {
  min-height: 64px;
  border: 0;
}

.panel-header h2,
.detail-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.panel-header p,
.detail-head p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.ghost-button,
.more-button {
  border: 0;
  background: transparent;
  color: #748396;
  font-size: 9px;
}

.ghost-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.more-button {
  font-weight: 900;
  letter-spacing: 0.1em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 11, 17, 0.38);
  color: #465466;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 18px;
}

td {
  height: 65px;
  padding: 8px 10px;
  border-bottom: 1px solid #17212d;
  color: #9cabb9;
  font-size: 10px;
  vertical-align: middle;
}

tr {
  cursor: pointer;
  transition: 130ms ease;
}

tbody tr:hover,
.selected-row {
  background: rgba(72, 224, 193, 0.028);
}

.selected-row {
  box-shadow: inset 2px 0 var(--mint);
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 4px;
  color: #506073;
  font-size: 8px;
  white-space: nowrap;
}

.person-cell {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.person-cell strong {
  color: #c8d3dc;
  font-size: 10px;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-size: 9px;
}

.mini-avatar.blue { background: #142a42; color: #78b9ff; }
.mini-avatar.violet { background: #271f3d; color: #ae91f5; }
.mini-avatar.amber { background: #33271b; color: #eeba6c; }
.mini-avatar.rose { background: #39202a; color: #ef91a6; }
.mini-avatar.navy { background: #19283e; color: #84a9d9; }
.mini-avatar.green { background: #193029; color: #6fd4a7; }
.mini-avatar.orange { background: #37261a; color: #f1a86d; }

.item-code {
  color: #87dbcb;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
}

.quantity {
  color: #e7eef4;
  font-size: 13px;
}

.location-pill {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.08);
  color: #7cb5f7;
  font-size: 8px;
  font-weight: 750;
}

.loc-kho-job,
.loc-kho-ca-nhan {
  color: #b298f0;
  background: rgba(167, 139, 250, 0.08);
}

.loc-balo {
  color: #a8b4c2;
  background: rgba(148, 163, 184, 0.08);
}

.loc-tui-nguoi-choi {
  color: var(--mint);
  background: var(--mint-soft);
}

.metadata {
  color: #758496;
  font-size: 8px;
  white-space: nowrap;
}

.row-button {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #121c27;
  color: #68788b;
}

.table-footer {
  min-height: 50px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #536174;
  font-size: 9px;
}

.table-footer div {
  display: flex;
  gap: 4px;
}

.table-footer button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101823;
  color: #657487;
  font-size: 9px;
}

.table-footer .page-active {
  border-color: rgba(72, 224, 193, 0.35);
  color: var(--mint);
  background: var(--mint-soft);
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #526174;
  text-align: center;
}

.empty-state > span {
  color: var(--mint);
  font-size: 30px;
}

.empty-state h3 {
  margin: 12px 0 5px;
  color: #bac6d0;
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  font-size: 10px;
}

.right-rail {
  display: grid;
  gap: 12px;
}

.distribution-panel {
  padding-bottom: 13px;
}

.distribution-bar {
  height: 8px;
  margin: 1px 18px 13px;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 7px;
  background: #17212c;
}

.distribution-bar span {
  height: 100%;
  display: block;
}

.location-list {
  padding: 0 10px;
}

.location-list button {
  width: 100%;
  min-height: 31px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 7px 1fr 28px 29px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7d8c9d;
  font-size: 9px;
  text-align: left;
}

.location-list button:hover {
  background: rgba(255, 255, 255, 0.025);
}

.location-list i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.location-list strong {
  color: #c6d0d8;
  text-align: right;
}

.location-list small {
  color: #4e5d6e;
  text-align: right;
}

.history-chart {
  padding-bottom: 14px;
}

.bar-chart {
  height: 117px;
  padding: 5px 16px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 7px;
}

.bar-column {
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 17px;
  gap: 5px;
  text-align: center;
}

.bar-track {
  height: 100%;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 5px 5px 2px 2px;
  background: rgba(255, 255, 255, 0.018);
}

.bar-track span {
  width: 100%;
  min-height: 6px;
  display: block;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--mint), rgba(72, 224, 193, 0.18));
  box-shadow: 0 -4px 16px rgba(72, 224, 193, 0.11);
}

.bar-column small {
  color: #455365;
  font-size: 7px;
}

.detail-card {
  min-height: 260px;
}

.detail-head {
  padding: 17px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.large-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 11px;
}

.detail-tabs {
  padding: 0 17px;
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-tabs button {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #617083;
  font-size: 9px;
}

.detail-tabs button.active {
  border-color: var(--mint);
  color: var(--mint);
}

.detail-list {
  padding: 10px 17px 15px;
}

.detail-list div {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #17212d;
  font-size: 9px;
}

.detail-list span {
  color: #536174;
}

.detail-list strong {
  color: #aab7c4;
  font-weight: 600;
  text-align: right;
}

.timeline {
  padding: 13px 17px 17px;
}

.timeline > div {
  position: relative;
  min-height: 49px;
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 8px;
}

.timeline > div:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: -2px;
  left: 3px;
  width: 1px;
  background: #263241;
}

.timeline i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: #0d151e;
  z-index: 1;
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline strong {
  color: #aab6c1;
  font-size: 9px;
}

.timeline small {
  margin-top: 4px;
  color: #526173;
  font-size: 8px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background:
    radial-gradient(circle at 20% 25%, rgba(72, 224, 193, 0.13), transparent 32%),
    linear-gradient(120deg, #081018, #090d13 58%);
}

.login-brand,
.login-panel {
  padding: clamp(40px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand {
  position: relative;
  justify-content: space-between;
  min-height: 100vh;
  border-right: 1px solid var(--line-soft);
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-brand h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.login-lead {
  max-width: 530px;
  margin: 28px 0 0;
  color: #77889a;
  font-size: 15px;
  line-height: 1.75;
}

.security-line {
  color: #617083;
  font-size: 10px;
}

.security-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.login-panel {
  align-items: center;
}

.login-card {
  width: min(410px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 21, 30, 0.82);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.login-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 21px;
}

.login-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.muted {
  margin: 9px 0 26px;
  color: var(--muted);
  font-size: 11px;
}

.login-card > label {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  color: #a5b2bf;
  font-size: 10px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #263546;
  border-radius: 8px;
  outline: 0;
  background: #0a1119;
  color: var(--text);
}

.login-card input:focus {
  border-color: rgba(72, 224, 193, 0.55);
}

.login-options {
  margin: 17px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #566578;
  font-size: 9px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-label input {
  width: 13px;
  height: 13px;
  accent-color: var(--mint);
}

.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-note {
  margin: 15px 0 0;
  color: #4e5d6e;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1260px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sidebar {
    padding: 20px 10px;
  }

  .brand {
    padding: 0 7px 25px;
  }

  .brand > div:last-child,
  .nav-item:not(.active),
  .nav-item.active {
    font-size: 0;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }

  .nav-item > span {
    font-size: 18px;
  }

  .nav-label,
  .server-card,
  .profile span:not(.avatar),
  .profile b {
    display: none;
  }

  .profile {
    grid-template-columns: 1fr;
    place-items: center;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .right-rail {
    grid-template-columns: 1fr 1fr;
  }

  .detail-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
  }

  .brand {
    padding: 0;
  }

  .main-nav,
  .profile {
    display: none;
  }

  .workspace {
    padding: 0 15px 28px;
  }

  .topbar {
    padding: 17px 0;
    align-items: flex-start;
  }

  .sync-info {
    display: none;
  }

  .refresh-button {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .refresh-button span {
    margin: 0;
    font-size: 16px;
  }

  .search-section {
    grid-template-columns: 1fr 110px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .metric-grid,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .detail-card {
    grid-column: auto;
  }

  .content-grid {
    display: block;
  }

  .right-rail {
    margin-top: 12px;
  }

  .login-shell {
    display: block;
  }

  .login-brand {
    min-height: 52vh;
    padding: 42px 25px;
  }

  .login-brand h1 {
    font-size: 50px;
  }

  .login-panel {
    padding: 28px 18px 50px;
  }
}
