:root {
  --bg-page: #f4f6f8;
  --surface: #ffffff;
  --raised: #f7f8f9;
  --active: #ebedee;
  --border: #e8eaec;
  --rule: #f0f1f2;
  --control: #cdced1;
  --text: #131416;
  --muted: #5d5f60;
  --faint: #6b6b6b;
  --accent: #1b6c80;
  --primary: #1d1f20;
  --positive: #1e7b4f;
  --negative: #c4242a;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --warning-border: #f3d49a;
  --positive-bg: #edf8f1;
  --negative-bg: #fff4f3;
  --info-bg: #edf4f5;
  --radius-panel: 8px;
  --radius-control: 6px;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-page);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  font: 14px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(27, 108, 128, 0.45);
  outline-offset: 2px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  z-index: 30;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.sidebar-brand {
  min-height: 46px;
  padding: 0 8px 14px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e7eff0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0 12px;
}

.nav-group + .nav-group {
  margin-top: 24px;
}

.nav-label {
  margin: 0 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.nav-group a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-group a:hover {
  background: var(--active);
  color: var(--text);
  text-decoration: none;
}

.nav-group a.on {
  background: var(--active);
  color: var(--text);
  font-weight: 500;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--border);
}

.account-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dfeaed;
  color: #144d5b;
  font-size: 12px;
  font-weight: 600;
}

.account-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.account-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-copy small {
  color: var(--muted);
  font-size: 12px;
}

.account-action {
  color: var(--muted);
  font-size: 12px;
}

.workspace-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-frame {
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 16px);
  margin: 8px 8px 8px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.page-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-account {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.page-account a {
  color: var(--text);
}

.mobile-bar {
  display: none;
}

.menu-backdrop {
  display: none;
}

.wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px;
}

.card {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.card:last-child {
  margin-bottom: 0;
}

.card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.card h2 .tip {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.col {
  flex: 1 1 220px;
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
}

input[readonly] {
  background: var(--raised);
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(27, 108, 128, 0.15);
  outline-offset: 0;
}

.btn,
.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn {
  min-height: 38px;
  padding: 8px 15px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.btn:hover {
  background: #343637;
  text-decoration: none;
}

.btn.gray {
  background: var(--surface);
  border-color: var(--control);
  color: var(--text);
}

.btn.gray:hover {
  background: var(--raised);
}

.btn.green {
  background: var(--positive);
}

.btn.green:hover {
  background: #155f3d;
}

.btn.danger {
  background: var(--negative);
}

.btn.danger:hover {
  background: #9f1c22;
}

.btn-mini {
  min-height: 30px;
  padding: 4px 9px;
  background: var(--surface);
  border-color: var(--control);
  color: var(--text);
  font-size: 12px;
}

.btn-mini:hover {
  background: var(--raised);
  text-decoration: none;
}

.btn-mini.danger {
  color: var(--negative);
  border-color: #e7b7b3;
}

.btn-mini.ok {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

td.mono {
  text-align: right;
}

.url-column {
  min-width: 0;
}

.url-cell {
  min-width: 0;
  max-width: none;
  white-space: normal;
  word-break: break-all;
  text-align: left;
}

.devices-table {
  width: max-content;
  min-width: 100%;
  --sim-column-width: 190px;
}

.devices-table .sim-column,
.devices-table .sim-cell {
  width: var(--sim-column-width);
  min-width: var(--sim-column-width);
  max-width: none;
  white-space: nowrap;
  word-break: normal;
}

.devices-table .sim-cell {
  user-select: all;
  text-align: left;
}

.devices-table .sim-column {
  position: relative;
  padding-right: 18px;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--control);
}

.col-resizer:hover::after,
.col-resizer:focus-visible::after,
.is-resizing-column .col-resizer::after {
  background: var(--accent);
}

.is-resizing-column {
  cursor: col-resize;
  user-select: none;
}

.version-table {
  min-width: 1120px;
  table-layout: fixed;
}

.version-table .version-col-id {
  width: 54px;
}

.version-table .version-col-name {
  width: 150px;
}

.version-table .version-col-url {
  width: 290px;
}

.version-table .version-col-remark {
  width: 140px;
}

.version-table .version-col-default {
  width: 80px;
}

.version-table .version-col-size {
  width: 72px;
}

.version-table .version-col-time {
  width: 145px;
}

.version-table .version-col-actions {
  width: 189px;
}

.version-table .num-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.version-table .action-cell {
  white-space: normal;
}

.version-table .action-cell .btn-mini {
  margin: 2px 3px 2px 0;
}

tbody tr:hover td {
  background: #fbfcfc;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.st-wait {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.st-sent {
  background: var(--info-bg);
  border-color: #c9dce0;
  color: #185b6b;
}

.st-ok {
  background: var(--positive-bg);
  border-color: #c4dfce;
  color: #155f3d;
}

.st-fail {
  background: var(--negative-bg);
  border-color: #ecc6c3;
  color: var(--negative);
}

.on-line {
  color: var(--positive);
  font-weight: 500;
}

.off-line {
  color: var(--negative);
  font-weight: 500;
}

.flash {
  padding: 10px 13px;
  margin-bottom: 16px;
  border: 1px solid #c4dfce;
  border-radius: var(--radius-panel);
  background: var(--positive-bg);
  color: #155f3d;
}

.flash.err {
  border-color: #ecc6c3;
  background: var(--negative-bg);
  color: #941f1e;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--border);
}

a.stat {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat {
  min-width: 0;
  padding: 15px 17px;
  background: var(--surface);
}

.stat b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

a.stat:hover {
  background: var(--raised);
  text-decoration: none;
}

a.stat.on {
  background: var(--active);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.filters .f {
  min-width: 0;
}

.filters input,
.filters select {
  min-height: 36px;
  padding: 7px 9px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.edit-card {
  max-width: 860px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--border);
}

.detail-grid > div {
  min-width: 0;
  padding: 13px 15px;
  background: var(--raised);
}

.detail-grid span,
.detail-grid strong {
  display: block;
}

.detail-grid span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.command-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.command-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.command-list {
  border-top: 1px solid var(--rule);
}

.command-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.command-row > div {
  min-width: 0;
}

.command-row strong,
.command-row span {
  display: block;
}

.command-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.command-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.command-row .btn {
  flex: 0 0 auto;
}

.command-current {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.empty {
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.err {
  color: var(--negative);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px 16px;
  color: var(--muted);
  font-size: 12px;
}

.tag.fw-ok {
  border-color: #c4dfce;
  background: var(--positive-bg);
  color: #155f3d;
  font-weight: 500;
}

.tag.fw-old {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 500;
}

.tag.fw-new {
  border-color: #c9dce0;
  background: var(--info-bg);
  color: #185b6b;
}

.tag.fw-unknown {
  background: var(--raised);
  color: var(--muted);
}

tr.row-old td {
  background: #fffdf7;
}

tr.row-old.host-row td {
  background: #fffaf0;
}

tr.row-offline td {
  background: #fffafa;
}

tr.row-offline.host-row td {
  background: #fff7f7;
}

.fw-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}

.tg:hover {
  background: var(--active);
}

.tree-branch {
  margin-right: 3px;
  color: var(--muted);
}

tr.host-row td {
  background: #fafbfb;
}

tr.child-row td:nth-child(2) {
  padding-left: 20px;
}

.fe-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid #ecc6c3;
  border-radius: var(--radius-panel);
  background: var(--negative-bg);
  color: #8f1e1e;
  line-height: 1.65;
}

.fe-warning b {
  flex: 0 0 auto;
}

.fe-step {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.fe-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.fe-step-no {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--active);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.fe-step-head strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.fe-step-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 18px;
}

.fe-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.fe-required {
  margin-left: 3px;
  color: var(--negative);
}

.fe-generated {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--raised);
}

.fe-generated > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.fe-generated input {
  background: var(--surface);
  font-size: 15px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-page);
}

.auth-topbar {
  padding: 20px 28px;
}

.auth-main {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 80px;
  align-items: center;
}

.auth-copy {
  padding: 24px 0;
}

.auth-copy h1 {
  max-width: 10em;
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.auth-copy p {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.auth-form-panel {
  min-width: 0;
}

.login-box {
  margin: 0;
  padding: 30px;
  border-radius: 16px;
}

.login-heading {
  margin-bottom: 24px;
}

.login-heading h2 {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
}

.login-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-box input {
  min-height: 42px;
  margin-bottom: 16px;
}

.login-box input:last-of-type {
  margin-bottom: 0;
}

.login-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 20px;
}

.login-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-foot {
  padding: 16px 24px 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

  .wrap {
    padding: 20px;
  }
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    max-width: calc(100vw - 48px);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    border-right: 1px solid var(--border);
  }

  .menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(19, 20, 22, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .menu-open {
    overflow: hidden;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-page);
  }

  .mobile-bar strong {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-bar a {
    color: var(--muted);
    font-size: 12px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    padding: 8px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: var(--active);
  }

  .menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
  }

  .content-frame {
    min-height: calc(100vh - 48px);
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .page-header {
    padding: 20px;
  }

  .page-account {
    display: none;
  }

  .auth-main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 40px;
    width: calc(100% - 48px);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 16px;
  }

  .page-header {
    padding: 18px 16px 16px;
  }

  .page-header h1 {
    font-size: 21px;
  }

  .page-header p {
    font-size: 12px;
  }

  .card {
    padding: 16px;
  }

  .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .col {
    min-width: 0;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar > * {
    max-width: 100%;
  }

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

  .stat {
    padding: 14px;
  }

  .stat b {
    font-size: 21px;
  }

  .foot {
    flex-direction: column;
    padding-inline: 16px;
  }

  .fe-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .command-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .fe-warning {
    display: block;
  }

  .fe-warning b {
    display: block;
    margin-bottom: 4px;
  }

  .auth-topbar {
    padding: 16px 18px;
  }

  .auth-main {
    margin: 0;
    width: 100%;
    padding: 16px 18px 32px;
    display: block;
  }

  .auth-copy {
    padding: 20px 0 24px;
  }

  .auth-copy h1 {
    font-size: 27px;
  }

  .auth-copy p {
    font-size: 14px;
  }

  .login-box {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .menu-backdrop,
  .btn,
  .btn-mini,
  .nav-group a {
    transition: none;
  }
}
