:root {
  --ink: #1f3230;
  --muted: #75817d;
  --bg: #f5f7f4;
  --card: #fff;
  --line: #e4e9e3;
  --green: #26624c;
  --lime: #d1ef91;
  --red: #b6403c;
  --radius: 15px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #83b497;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #122d2b;
  color: #b3c6bd;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand:hover {
  text-decoration: none;
}
.brand-icon {
  width: 41px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #1b3a2e;
  border-radius: 13px;
  font-size: 21px;
  padding-left: 2px;
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9eb8ae;
  letter-spacing: 1.6px;
  margin-top: 2px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6d9286;
  margin: 49px 14px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a8bdb4;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 13px;
}
nav a:hover {
  background: #1b3a35;
  text-decoration: none;
  color: #fff;
}
nav a.active {
  background: #d2ee94;
  color: #213d29;
  font-weight: 650;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 10px 0;
  font-size: 11px;
}
.sidebar-bottom > a {
  color: #a8bdb4;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #2b4540;
}
.local-note {
  font-size: 10px;
  color: #81a597;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #98c572;
  border-radius: 50%;
  margin-right: 6px;
}
.sidebar-logout {
  color: #8fab9f !important;
  padding-left: 0 !important;
  margin-top: 10px;
}
main {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
  color: #7c8981;
}
.crumb {
  padding: 0 14px;
  color: #c0c7c0;
}
#breadcrumb {
  color: #354b3e;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.avatar {
  background: #eff2eb;
  border: 1px solid #dce3d4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #5c7350;
}
.workspace {
  padding: 34px 42px 18px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 27px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0 0 7px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  margin: 0;
}
small,
.muted {
  color: var(--muted);
}
.subline {
  font-size: 12px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #dbe3d9;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  min-height: 38px;
}
.btn:hover {
  background: #f1f5ed;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #194a38;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #23412c;
}
.btn.danger {
  color: var(--red);
}
.btn.sm {
  padding: 7px 11px;
  min-height: 32px;
  font-size: 11px;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  color: var(--green);
  font-size: 12px;
}
.hero {
  background: #163d36;
  color: #fff;
  border-radius: 17px;
  min-height: 200px;
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  margin-bottom: 23px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #bbd6ad;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.hero h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  line-height: 1.45;
  margin-bottom: 9px;
}
.hero p {
  font-size: 12px;
  line-height: 1.9;
  color: #aac3b8;
}
.hero .actions {
  margin-top: 21px;
}
.hero .btn {
  min-height: 33px;
  font-size: 11px;
}
.hero-art {
  width: 210px;
  height: 160px;
  position: relative;
  margin-right: 26px;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  border: 1px solid #497459;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  opacity: 0.5;
}
.hero-art:after {
  width: 330px;
  height: 330px;
  opacity: 0.3;
}
.tv-art {
  width: 159px;
  height: 103px;
  border: 2px solid #a4cf8c;
  border-radius: 12px;
  background: #244b3d;
  position: relative;
  z-index: 1;
  box-shadow: 10px 10px 0 #0d2c29;
  display: grid;
  place-items: center;
}
.tv-art:after {
  content: "";
  position: absolute;
  width: 65px;
  height: 3px;
  background: #8aae7d;
  bottom: -15px;
  left: 46px;
  border-radius: 3px;
}
.play-art {
  font-size: 33px;
  color: var(--lime);
  margin-left: 7px;
}
.art-badge {
  position: absolute;
  z-index: 2;
  right: 1px;
  bottom: 22px;
  border: 1px solid #a2c480;
  color: #1d402a;
  background: #daefb1;
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 10px;
  box-shadow: 0 5px 15px #112c2750;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 29px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 20px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  color: #7c8980;
  font-size: 11px;
}
.stat-label svg {
  width: 16px;
  height: 16px;
  color: #7b9778;
}
.stat-value {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 12px 0 5px;
}
.stat-value.state-value {
  font-size: 23px;
}
.stat-note {
  font-size: 10px;
  color: #9aa39b;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 15px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(265px, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
}
.card.flat {
  margin-bottom: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #f0f3ed;
  color: #70816a;
  white-space: nowrap;
}
.badge.good {
  background: #edf6e8;
  color: #527c36;
}
.badge.good:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #7aa54e;
  border-radius: 50%;
}
.badge.warn {
  color: #a57a32;
  background: #fff6e5;
}
.badge.bad {
  color: #a9443b;
  background: #fcefe9;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.device-top {
  display: flex;
  gap: 13px;
  align-items: center;
}
.device-icon {
  width: 42px;
  height: 42px;
  background: #f0f4ec;
  border-radius: 11px;
  color: #6d8d60;
  display: grid;
  place-items: center;
}
.device-info {
  flex: 1;
  min-width: 0;
}
.device-info h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.device-info p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.device-body {
  margin: 16px 0;
  padding: 11px 0;
  border-top: 1px solid #edf0e9;
  border-bottom: 1px solid #edf0e9;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.device-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.device-bottom .quiet {
  font-size: 11px;
  padding: 3px 7px;
}
.empty {
  padding: 30px 24px;
  text-align: center;
  border: 1px dashed #dbe3d5;
  border-radius: 12px;
  background: #fafcf8;
}
.empty .device-icon {
  margin: 0 auto 13px;
  width: 48px;
  height: 48px;
}
.empty h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.empty p {
  font-size: 11px;
  color: #84907e;
  line-height: 1.9;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}
.step {
  display: flex;
  gap: 13px;
}
.step-num {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f0f4e9;
  color: #6e875b;
  font-size: 11px;
  flex-shrink: 0;
}
.step strong {
  font-size: 12px;
  font-weight: 600;
}
.step p {
  font-size: 11px;
  color: #91a08b;
  line-height: 1.8;
  margin-top: 4px;
}
.hint {
  border: 1px solid #e4eada;
  background: #f7f9f0;
  color: #6d7c5e;
  font-size: 11px;
  padding: 13px 15px;
  border-radius: 9px;
  line-height: 1.9;
}
.hint.warning {
  border-color: #eee2c8;
  background: #fffaf0;
  color: #99783f;
}
.hint a {
  text-decoration: underline;
}
.recent {
  margin-top: 25px;
}
.log-preview {
  font-size: 11px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eef1e9;
}
.log-preview time {
  white-space: nowrap;
  color: #9aa692;
  font-variant-numeric: tabular-nums;
}
.log-preview span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64735b;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.category {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.category:has(input:checked) {
  background: #f4f8ec;
  border-color: #c3d7a4;
}
.category input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
}
.category strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.category p {
  font-size: 11px;
  color: #89947f;
  margin-top: 4px;
}
.category code {
  font-family: inherit;
  font-size: 10px;
  color: #a1ac97;
  margin-left: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
}
.field > span {
  font-weight: 550;
}
.field small {
  font-size: 11px;
  font-weight: 400;
}
.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe2d6;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  min-height: 40px;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input::placeholder,
.search-input::placeholder {
  color: #a8afa2;
}
.field:has(input:invalid:not(:placeholder-shown)) {
  --invalid: #b14b44;
}
.field.full {
  grid-column: 1/-1;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #edf1e8;
}
.switch-row:last-child {
  border: 0;
}
.switch-row strong {
  font-size: 12px;
  font-weight: 550;
}
.switch-row p {
  font-size: 11px;
  color: #8a957f;
  margin-top: 5px;
  line-height: 1.8;
}
.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 35px;
  height: 21px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch i {
  pointer-events: none;
  width: 35px;
  height: 21px;
  border-radius: 20px;
  background: #dce3d5;
  transition: background 0.15s;
}
.switch i:after {
  content: "";
  display: block;
  background: #fff;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  margin: 3px;
  box-shadow: 0 1px 3px #3b543325;
  transition: transform 0.15s;
}
.switch input:checked + i {
  background: var(--green);
}
.switch input:checked + i:after {
  transform: translateX(14px);
}
.switch input:focus-visible + i {
  outline: 3px solid #83b497;
  outline-offset: 3px;
}
.save-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding-top: 21px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.save-row small {
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 12px;
  color: #88937d;
  font-weight: 450;
  background: #f8faf5;
  font-size: 11px;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #eef1e9;
}
td code {
  font-size: 10px;
  color: #8c9585;
}
.log-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.log-toolbar select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  font-size: 12px;
}
.logs {
  background: #132c2b;
  color: #bbcdc0;
  border-radius: 12px;
  padding: 20px;
  min-height: 350px;
  max-height: 620px;
  overflow: auto;
  font:
    11px/1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.log-line {
  display: grid;
  grid-template-columns: 70px 60px 1fr;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #243b34;
  overflow-wrap: anywhere;
}
.log-line time {
  color: #6f9182;
}
.log-line .level {
  color: #a7c77a;
}
.log-line.error .level {
  color: #eaa094;
}
.log-line.warning .level {
  color: #e0c18a;
}
.log-line.debug .level {
  color: #98b1c7;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a0aa98;
  font-size: 9px;
  margin-top: 35px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 100px #0c282544;
  max-height: 90vh;
}
dialog::backdrop {
  background: #102a2966;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 17px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 17px;
}
.tabs {
  display: flex;
  padding: 4px;
  background: #f0f4eb;
  border-radius: 9px;
  margin-bottom: 21px;
  gap: 4px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  color: #87977a;
}
.tabs button.active {
  background: #fff;
  color: #34552c;
  box-shadow: 0 1px 4px #1d41251c;
}
.pair-code {
  font-size: 23px !important;
  letter-spacing: 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.result small {
  display: block;
  font-size: 10px;
}
.inline-error {
  color: var(--red);
  background: #fff2eb;
  border: 1px solid #f4dfd2;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
  margin: 15px 0;
  white-space: pre-line;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #78906e;
  font-size: 13px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #173b34;
  color: #fff;
  padding: 60px 11%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-size: 44px;
  letter-spacing: -1px;
  line-height: 1.45;
  font-weight: 550;
  margin: 60px 0 20px;
}
.auth-story p {
  color: #a7c3b2;
  font-size: 13px;
  line-height: 2.1;
}
.auth-story .hero-art {
  margin: 30px auto 50px;
  transform: rotate(-7deg) scale(1.2);
}
.auth-story small {
  color: #7d9d89;
  font-size: 11px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 350px;
}
.auth-form .eyebrow {
  color: #7d9869;
  margin-bottom: 16px;
}
.auth-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-form > p {
  font-size: 12px;
  color: #909c88;
  line-height: 1.9;
  margin-bottom: 30px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
}
.auth-note {
  font-size: 10px;
  color: #9ba88f;
  text-align: center;
  line-height: 1.9;
  margin-top: 23px;
}
.auth-form .field input {
  padding: 13px;
}
.file-input {
  max-width: 100%;
  font-size: 12px;
}
.spacer-top {
  margin-top: 18px;
}
.no-margin {
  margin: 0;
}
.narrow {
  max-width: 900px;
}
.version-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  line-height: 2;
}
.version-box code {
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #183e30;
  color: #fff;
  padding: 13px 24px;
  border: 1px solid #3c6650;
  border-radius: 10px;
  z-index: 50;
  font-size: 12px;
  box-shadow: 0 8px 30px #17382b30;
  max-width: 90%;
  white-space: pre-line;
}
#toast.error {
  background: #843e35;
  border-color: #a8574b;
}
@media (min-width: 1500px) {
  .workspace {
    padding-top: 42px;
  }
  .hero {
    min-height: 220px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero-art {
    margin-right: 70px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding: 25px 15px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  main {
    margin-left: 210px;
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero-art {
    margin-right: 0;
    transform: scale(0.85) rotate(-7deg);
  }
  .hero h2 {
    font-size: 25px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .category code {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 17px 18px 10px;
  }
  .shell {
    display: block;
  }
  .brand {
    font-size: 15px;
  }
  .brand-icon {
    width: 34px;
    height: 35px;
    font-size: 18px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    gap: 5px;
    padding-bottom: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 9px 12px;
    gap: 7px;
    font-size: 11px;
  }
  nav .icon {
    width: 15px;
    height: 15px;
  }
  main {
    margin-left: 0;
  }
  .topbar {
    height: 53px;
    padding: 0 20px;
    font-size: 10px;
  }
  .workspace {
    padding: 24px 18px 10px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
    gap: 12px;
  }
  h1 {
    font-size: 23px;
  }
  .subline {
    font-size: 11px;
    max-width: 250px;
  }
  .page-heading > .actions {
    justify-content: flex-end;
  }
  .btn {
    padding: 9px 12px;
    font-size: 11px;
    min-height: 35px;
  }
  .hero {
    padding: 25px;
    min-height: 200px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    max-width: 260px;
    font-size: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 25px;
  }
  .card {
    padding: 20px;
  }
  .category-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .category {
    padding: 16px;
  }
  .grid-two {
    gap: 16px;
  }
  .save-row {
    flex-wrap: wrap;
  }
  .save-row small {
    flex: 1;
  }
  footer {
    font-size: 8px;
    flex-direction: column;
    gap: 5px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 28px 30px;
    min-height: 220px;
  }
  .auth-story h1 {
    font-size: 30px;
    margin: 26px 0 8px;
  }
  .auth-story p {
    font-size: 11px;
  }
  .auth-story .hero-art,
  .auth-story > small {
    display: none;
  }
  .auth-form-wrap {
    padding: 35px 30px;
  }
  .auth-form {
    max-width: 420px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .log-line {
    grid-template-columns: 58px 47px 1fr;
    gap: 7px;
    font-size: 10px;
  }
  .logs {
    padding: 14px;
  }
  .modal-body {
    padding: 21px;
  }
  .modal-head {
    padding: 20px;
  }
  .page-heading .actions .btn svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) {
  nav {
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
}
