:root {
  color: #17211b;
  background: #f4f6f3;
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #17211b;
  --muted: #718078;
  --line: #dde5df;
  --green-950: #102e23;
  --green-900: #163c2d;
  --green-700: #25684c;
  --green-100: #eaf5ef;
  --gold: #c69b52;
  --danger: #a64040;
  --surface: #ffffff;
  --shadow: 0 14px 42px rgb(26 55 41 / 8%);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.eyebrow {
  color: #5d8973;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-950);
  border-radius: 12px;
  background: #d9f0e4;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}
.environment-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid #c8ddd1;
  border-radius: 999px;
  color: #376e54;
  background: #eef8f2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.environment-development {
  color: #855515;
  border-color: #edd09b;
  background: #fff6df;
}
.environment-test {
  color: #355b8a;
  border-color: #bed2ed;
  background: #edf5ff;
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(430px, 0.95fr) minmax(440px, 1.05fr);
}
.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgb(96 161 126 / 32%), transparent 35%),
    linear-gradient(145deg, #0d281e, #174431 62%, #20543d);
}
.login-brand-panel::after {
  position: absolute;
  right: -180px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgb(255 255 255 / 3%),
    0 0 0 130px rgb(255 255 255 / 2%);
  content: "";
}
.login-brand-panel .brand-mark {
  color: #fff;
  background: rgb(255 255 255 / 14%);
}
.login-brand-panel .environment-badge {
  color: #ffe7b6;
  border-color: rgb(255 222 157 / 35%);
  background: rgb(120 78 0 / 22%);
}
.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
}
.login-brand-copy .eyebrow {
  color: #aad9c1;
}
.login-brand-copy h1 {
  margin: 18px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.login-brand-copy p {
  max-width: 480px;
  color: rgb(255 255 255 / 68%);
  font-size: 16px;
  line-height: 1.8;
}
.authorized-only {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 10px;
  color: rgb(255 255 255 / 72%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  font-size: 11px;
}
.login-feature-list {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 25px;
  color: rgb(255 255 255 / 64%);
  font-size: 12px;
}
.login-feature-list span::before {
  margin-right: 8px;
  color: #8dd1af;
  content: "•";
}
.login-form-panel {
  display: grid;
  padding: 40px;
  place-items: center;
  background: #f5f7f4;
}
.login-card {
  width: min(420px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.mobile-brand {
  display: none;
}
.login-card h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.login-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.login-card label,
.form-grid label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #536159;
  font-size: 12px;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #cfd9d2;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #4f9573;
  box-shadow: 0 0 0 3px rgb(68 143 106 / 12%);
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
button {
  padding: 10px 14px;
  color: #405048;
  border: 1px solid #d4ded7;
  border-radius: 10px;
  background: #fff;
}
button:hover {
  border-color: #aebfb4;
}
button.primary {
  color: #fff;
  border-color: var(--green-700);
  background: var(--green-700);
  box-shadow: 0 7px 18px rgb(37 104 76 / 18%);
}
button.primary:hover {
  background: #1f5a42;
}
button.wide {
  width: 100%;
  margin-top: 6px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.form-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 12px;
}

.console-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, #102e23, #153b2d);
}
.sidebar .brand-lockup {
  padding: 0 9px;
}
.sidebar .brand-mark {
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgb(255 255 255 / 13%);
}
.sidebar-label {
  margin: 31px 10px 10px;
  color: rgb(255 255 255 / 38%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 10px 12px;
  color: rgb(255 255 255 / 66%);
  text-align: left;
  border: 0;
  background: transparent;
}
.nav-item i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  font-style: normal;
  font-size: 13px;
}
.nav-item.active {
  color: #fff;
  background: rgb(255 255 255 / 11%);
}
.nav-item.active i {
  color: #153b2d;
  border-radius: 8px;
  background: #ccead9;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(0 0 0 / 9%);
}
.sidebar-footer div {
  display: grid;
  gap: 3px;
}
.sidebar-footer strong {
  font-size: 11px;
}
.sidebar-footer small {
  color: rgb(255 255 255 / 44%);
  font-size: 9px;
}
.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69d59f;
  box-shadow: 0 0 0 4px rgb(105 213 159 / 12%);
}
.workspace {
  min-width: 0;
}
.topbar {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(12px);
}
.topbar h1 {
  margin: 3px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.admin-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-menu > div {
  display: grid;
}
.admin-menu strong {
  font-size: 12px;
}
.admin-menu small {
  color: var(--muted);
  font-size: 9px;
}
.admin-menu button {
  margin-left: 6px;
  padding: 7px 10px;
  font-size: 11px;
}
.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #315f4a;
  font-size: 12px;
}
.content-area {
  padding: 26px 30px 46px;
}
.page {
  display: none;
  max-width: 1500px;
  margin: 0 auto;
}
.page.active {
  display: block;
}

.welcome-banner {
  position: relative;
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 34px;
  color: #fff;
  border-radius: 19px;
  background:
    radial-gradient(circle at 78% 20%, rgb(122 192 157 / 22%), transparent 35%),
    linear-gradient(120deg, #143829, #245b43);
  box-shadow: var(--shadow);
}
.welcome-banner::after {
  position: absolute;
  right: 140px;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  content: "";
}
.welcome-banner .eyebrow {
  color: #9fd4b9;
}
.welcome-banner h2 {
  margin: 9px 0 5px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
}
.welcome-banner p {
  color: rgb(255 255 255 / 62%);
}
.welcome-banner button {
  position: relative;
  z-index: 1;
  color: #194431;
  border-color: #d9eee4;
  background: #e7f5ed;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0;
}
.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(26 55 41 / 4%);
}
.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-card span {
  color: var(--muted);
  font-size: 11px;
}
.metric-card b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #26704f;
  border-radius: 10px;
  background: #eaf5ef;
  font-size: 12px;
}
.metric-card strong {
  display: block;
  margin-top: 13px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.metric-card small {
  color: #8b9891;
  font-size: 10px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.surface {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(26 55 41 / 4%);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.section-heading span {
  color: #789083;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-heading h3 {
  margin: 4px 0 0;
  font-size: 17px;
}
.section-heading > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.text-action {
  padding: 5px;
  color: #27704f;
  border: 0;
  background: none;
  font-size: 11px;
}
.distribution-list,
.recent-list {
  display: grid;
  gap: 12px;
}
.distribution-row {
  display: grid;
  grid-template-columns: 65px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.distribution-track {
  height: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf2ee;
}
.distribution-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d9973, #8fc9aa);
}
.recent-item {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid #edf1ee;
}
.recent-item:first-child {
  border-top: 0;
}
.recent-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #27704f;
  border-radius: 10px;
  background: #edf7f2;
  font-size: 11px;
}
.recent-item div {
  display: grid;
  gap: 3px;
}
.recent-item strong {
  font-size: 12px;
}
.recent-item small,
.recent-item time {
  color: var(--muted);
  font-size: 9px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.page-actions.split {
  justify-content: space-between;
}
.page-actions h2 {
  margin: 4px 0;
  font-size: 24px;
}
.page-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.search-box {
  position: relative;
  min-width: 310px;
}
.search-box span {
  position: absolute;
  top: 9px;
  left: 12px;
  color: #819087;
}
.search-box input {
  padding-left: 33px;
}
.page-actions select {
  width: 150px;
}
.table-surface {
  padding: 0;
  overflow: hidden;
}
.table-surface .section-heading {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.pagination button {
  padding: 7px 11px;
  font-size: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 11px 16px;
  color: #849087;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1ee;
  font-size: 11px;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fafcfb;
}
.account-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-cell .avatar {
  width: 32px;
  height: 32px;
  color: #245f45;
  background: #e7f3ed;
}
.account-cell div {
  display: grid;
  gap: 3px;
}
.account-cell small,
td small {
  color: var(--muted);
  font-size: 9px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: 4px 7px;
  color: #287050;
  border-radius: 999px;
  background: #eaf6ef;
  font-size: 9px;
  font-weight: 700;
}
.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.status-pill.off {
  color: #9b4949;
  background: #fbecec;
}
.plan-pill {
  display: inline-block;
  padding: 4px 8px;
  color: #555f59;
  border: 1px solid #dde4df;
  border-radius: 999px;
  background: #fafbfa;
  font-size: 9px;
  font-weight: 750;
}
.row-action {
  padding: 6px 9px;
  font-size: 10px;
}
.empty-state {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.content-filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.filter-chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
}
.filter-chip.active {
  color: #fff;
  border-color: var(--green-700);
  background: var(--green-700);
}
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dispatch-card {
  display: grid;
  min-height: 225px;
  grid-template-rows: auto auto 1fr auto;
  gap: 11px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(26 55 41 / 4%);
}
.dispatch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-label {
  color: #367b59;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.dispatch-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}
.dispatch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.dispatch-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #edf1ee;
}
.dispatch-card footer small {
  color: var(--muted);
  font-size: 9px;
}
.dispatch-card footer button {
  padding: 6px 9px;
  font-size: 9px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.plan-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.plan-card h3 {
  margin: 0;
}
.plan-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.plan-card label,
.cost-item label {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}
.plan-card input,
.plan-card select,
.cost-item input {
  padding: 8px 9px;
  font-size: 11px;
}
.plan-card .wide-field {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.plan-card .wide-field span {
  color: var(--muted);
  font-size: 9px;
}
.plan-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.plan-card footer label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.plan-card footer input {
  width: auto;
}
.plan-card footer button {
  padding: 7px 10px;
  font-size: 10px;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cost-item {
  padding: 13px;
  border: 1px solid #e2e8e3;
  border-radius: 12px;
  background: #fafcfb;
}
.cost-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cost-item strong {
  font-size: 11px;
}
.cost-item button {
  width: 100%;
  padding: 7px;
  font-size: 9px;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
}
dialog::backdrop {
  background: rgb(11 26 19 / 44%);
  backdrop-filter: blur(3px);
}
.drawer-dialog {
  width: min(620px, 100vw);
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0 0 0 auto;
}
.modal-dialog {
  width: min(720px, calc(100vw - 30px));
  max-width: none;
  border-radius: 18px;
}
.dialog-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: #fff;
  box-shadow: -20px 0 50px rgb(14 35 25 / 18%);
}
.dialog-shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-shell h2 {
  margin: 4px 0 0;
  font-size: 20px;
}
.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}
.dialog-body {
  flex: 1;
  padding: 20px 22px;
  overflow: auto;
}
.dialog-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dialog-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.dialog-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dialog-metrics div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 11px;
  background: #f5f8f6;
}
.dialog-metrics span {
  color: var(--muted);
  font-size: 9px;
}
.dialog-metrics strong {
  font-size: 16px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.inline-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}
.inline-form .full {
  grid-column: 1 / -1;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.action-row button {
  font-size: 10px;
}
.danger {
  color: var(--danger);
  border-color: #e6caca;
  background: #fff8f8;
}
.ghost {
  background: transparent;
}
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf1ee;
}
.device-row div {
  display: grid;
  gap: 3px;
}
.device-row small {
  color: var(--muted);
  font-size: 9px;
}
.device-row button {
  padding: 6px 8px;
  font-size: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid fieldset {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.form-grid legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 10px;
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.check-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.check-row input {
  width: auto;
}
.dialog-shell > footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfa;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 360px;
  padding: 12px 15px;
  color: #fff;
  border-radius: 11px;
  background: #183f30;
  box-shadow: 0 12px 32px rgb(0 0 0 / 22%);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background: #8c3535;
}

@media (max-width: 1180px) {
  .metric-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dispatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    min-height: 100vh;
    padding: 20px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
  }
  .console-view {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sidebar {
    padding: 18px 10px;
  }
  .sidebar .brand-lockup > span:not(.brand-mark),
  .sidebar-label,
  .nav-item span,
  .sidebar-footer div {
    display: none;
  }
  .sidebar .brand-lockup {
    justify-content: center;
    padding: 0;
  }
  .nav-item {
    grid-template-columns: 1fr;
    padding: 9px;
    place-items: center;
  }
  .sidebar-footer {
    justify-content: center;
  }
  .topbar {
    padding: 15px 18px;
  }
  .content-area {
    padding: 18px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .admin-menu > div {
    display: none;
  }
  .welcome-banner {
    min-height: 160px;
    padding: 25px;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 600px) {
  .console-view {
    display: block;
  }
  .sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    z-index: 20;
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 6px;
  }
  .sidebar > .brand-lockup,
  .sidebar-label,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
  }
  .nav-item {
    gap: 0;
    font-size: 0;
  }
  .nav-item i {
    font-size: 11px;
  }
  .workspace {
    padding-bottom: 68px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar {
    min-height: 72px;
  }
  .content-area {
    padding: 13px;
  }
  .welcome-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .welcome-banner h2 {
    font-size: 24px;
  }
  .metric-grid,
  .plan-grid,
  .dispatch-grid,
  .cost-grid {
    grid-template-columns: 1fr;
  }
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .page-actions.split {
    align-items: stretch;
  }
  .page-actions select {
    width: 100%;
  }
  .table-surface {
    margin: 0 -13px;
    border-radius: 0;
  }
  th,
  td {
    padding: 12px;
    white-space: nowrap;
  }
  .drawer-dialog {
    width: 100vw;
  }
  .modal-dialog {
    width: calc(100vw - 16px);
  }
  .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }
  .form-grid .full,
  .inline-form .full {
    grid-column: auto;
  }
  .dialog-metrics {
    grid-template-columns: 1fr;
  }
}
