:root {
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: #20324a;
  background: #f5f7fa;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  --ink: #20324a;
  --muted: #68758a;
  --blue: #245edb;
  --line: #e5eaf1;
  --surface: #fff;
  --green: #237458;
  --red: #b33c50;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce3ed;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f1f5fb;
  border-color: #bac9dd;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 2px 3px #245edb14;
}
.primary:hover {
  background: #194ec2;
  border-color: #194ec2;
}
.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.danger {
  color: var(--red);
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 7px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand strong {
  font-weight: 750;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border-radius: 10px;
}
.brand-mark .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
}
.app-header {
  height: 72px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.app-header > .brand {
  width: 196px;
  flex-shrink: 0;
}
.header-context {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.header-context .icon {
  width: 13px;
  height: 13px;
  stroke: #a9b4c5;
}
#current-space {
  color: var(--ink);
  font-weight: 600;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf0fd;
  color: #2859b8;
  font-weight: 700;
}
.account #logout {
  margin-left: 12px;
  color: var(--muted);
  font-size: 12px;
}
.account #identity {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.authenticated) .app-header {
  display: none;
}
#workspace:not([hidden]) {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 27px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 72px;
  height: calc(100dvh - 72px);
  overflow-y: auto;
}
.space-switch {
  padding: 0 6px;
}
.space-switch label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 8px;
}
.space-switch select {
  font-weight: 600;
  background: #f8fafd;
  border-color: #e6ebf3;
  padding: 10px 11px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  justify-content: flex-start;
  padding: 12px 14px;
  border-color: transparent;
  background: transparent;
  font-weight: 550;
  color: #657288;
}
.sidebar nav button.active {
  background: #edf3ff;
  color: #245edb;
  font-weight: 650;
}
.sidebar nav button:hover {
  background: #f3f6fb;
}
.sidebar nav button.active .icon {
  stroke-width: 2;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #dfe9fe;
  min-width: 22px;
}
.nav-count:empty {
  display: none;
}
.space-options {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.space-options summary {
  cursor: pointer;
}
.space-options button {
  font-size: 12px;
  text-align: left;
  padding-left: 0;
  margin-top: 8px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 23px;
}
.deployment-box {
  background: #f5f8fe;
  border: 1px solid #e9effa;
  border-radius: 12px;
  padding: 15px;
}
.deploy-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e0e8f7;
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 10px;
}
.deployment-box strong {
  font-size: 13px;
}
.deployment-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 14px;
}
.deployment-box button {
  width: 100%;
  font-size: 12px;
  padding: 9px;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #65758b;
  padding: 0 5px;
  flex-wrap: wrap;
}
.sidebar-foot > span:last-child {
  margin-left: auto;
  font-size: 10px;
}
.small-mark {
  font-weight: 800;
  color: #7d91b1;
}
main {
  padding: 36px clamp(22px, 3vw, 52px) 52px;
  min-width: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.heading h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0 0 9px;
}
.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.heading > button {
  font-size: 12px;
  padding: 9px 12px;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.35px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 24px 0 12px;
}
p {
  max-width: 75ch;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.status-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.status-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 7px;
}
.status-tabs button[aria-pressed="true"] {
  background: white;
  border-color: #dbe3ef;
  color: var(--ink);
  box-shadow: 0 1px 2px #20324a06;
}
.status-tabs button span {
  font-size: 10px;
  background: #e9edf3;
  color: #5b6a80;
  padding: 1px 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.status-tabs button[aria-pressed="true"] span {
  background: #eaf0fd;
  color: var(--blue);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #94a1b5;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online {
  background: var(--green);
}
.status-dot.revoked {
  background: var(--red);
}
.fleet-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fleet-panel > .toolbar {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 350px;
}
.search-field > .icon {
  position: absolute;
  top: 11px;
  left: 12px;
  color: #8b99ac;
  width: 17px;
  height: 17px;
}
.search-field input {
  padding-left: 38px;
  background: #f9fafc;
  font-size: 12px;
  border-color: #e6ebf2;
  height: 40px;
}
.toolbar .primary {
  margin-left: auto;
  font-size: 12px;
  height: 40px;
}
.toolbar > button:not(.primary) {
  font-size: 12px;
  height: 40px;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  background: #edf3ff;
  border-bottom: 1px solid #dbe7ff;
  color: #265bbd;
  min-height: 43px;
  font-size: 12px;
}
.selection-bar button {
  border: 0;
  background: transparent;
  color: #265bbd;
  font-size: 11px;
  padding: 4px 6px;
  text-decoration: underline;
}
.selection-bar .selection-note {
  margin-left: auto;
  color: #5875a7;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.fleet-panel .table-wrap {
  border: 0;
  border-radius: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  background: #fafbfd;
  color: #65758b;
  font-size: 11px;
  font-weight: 550;
  padding: 13px 16px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #edf0f5;
  padding: 17px 16px;
  vertical-align: middle;
  color: #4c5f76;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td small {
  display: block;
  color: #65758b;
  font-size: 10px;
  margin-top: 4px;
}
td strong {
  color: #283c56;
  font-size: 12px;
  font-weight: 650;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover {
  background: #f8faff;
}
tbody tr.selected {
  background: #f1f6ff;
}
.device-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.device-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #f7f9fd;
  color: #5e79a1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.device-icon .icon {
  width: 18px;
  height: 18px;
}
.row-action {
  border-color: transparent;
  background: transparent;
  font-size: 11px;
  padding: 6px 8px;
  color: #6d819c;
}
.row-action .icon {
  width: 14px;
  height: 14px;
}
.table-footer {
  padding: 13px 20px;
  color: #65758b;
  font-size: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #f0f3f7;
  color: #5d6d83;
  border-radius: 5px;
  padding: 4px 7px;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.online,
.status.succeeded {
  background: #eaf5ef;
  color: #237458;
}
.status.failed,
.status.revoked,
.status.timed_out {
  background: #fceef0;
  color: #ac4053;
}
.status.running,
.status.leased {
  background: #ebf1ff;
  color: #345eb2;
}
.group-chip {
  display: inline-block;
  background: #f3f5f9;
  border: 1px solid #e8edf4;
  color: #718096;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  margin: 2px 3px 2px 0;
}
.empty {
  padding: 66px 24px;
  text-align: center;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.fleet-panel .empty {
  border: 0;
  border-radius: 0;
}
.empty-icon {
  width: 62px;
  height: 62px;
  background: #f1f5fc;
  border: 1px solid #e6edf8;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: #6183b5;
}
.empty-icon .icon {
  width: 27px;
  height: 27px;
}
.empty h2 {
  font-size: 19px;
}
.empty p {
  margin: 10px auto 23px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty button {
  font-size: 12px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 550;
  font-size: 12px;
  color: #475b73;
}
input,
select,
textarea {
  border: 1px solid #dae2ed;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  max-width: 100%;
  outline: none;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #718096;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
  vertical-align: middle;
  margin: 0;
}
input[type="file"] {
  font-size: 12px;
  background: #f8fafd;
  border-style: dashed;
}
input[type="file"]::file-selector-button {
  border: 1px solid #dce4f0;
  background: white;
  color: #3d5e94;
  padding: 6px 9px;
  border-radius: 5px;
  font: inherit;
  margin-right: 12px;
  cursor: pointer;
}
textarea {
  min-height: 220px;
  resize: vertical;
  font:
    12px/1.8 "Cascadia Code",
    Consolas,
    monospace;
  background: #f7f9fd;
  color: #314c73;
  tab-size: 2;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8fb3ff;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6794ef;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.script {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.script-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.script h2 {
  font-size: 16px;
}
.script summary {
  color: #5071a3;
  font-size: 12px;
}
.script pre,
pre.result {
  background: #f5f8fc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid #e5ecf5;
  border-radius: 7px;
  max-height: 420px;
  overflow: auto;
  font:
    12px/1.8 "Cascadia Code",
    Consolas,
    monospace;
  color: #36506f;
}
.pill {
  font-size: 10px;
  border-radius: 5px;
  background: #edf4ff;
  color: #5072a4;
  padding: 4px 8px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.warning {
  background: #fff8e8;
  border: 1px solid #f0e2bc;
  color: #8b6a24;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}
code {
  font:
    12px "Cascadia Code",
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
details summary {
  cursor: pointer;
}
dialog {
  border: 1px solid #dfe6f0;
  border-radius: 16px;
  width: min(820px, 94vw);
  padding: 0;
  max-height: 90dvh;
  box-shadow: 0 24px 100px #19325433;
  color: var(--ink);
}
dialog::backdrop {
  background: #172a455c;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  margin: 0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-head button {
  border-color: transparent;
  color: #8b99ac;
}
.dialog-head button:hover {
  background: #f2f5f9;
}
#dialog-content {
  padding: 25px 28px 28px;
}
#dialog-content > form > .primary {
  justify-self: end;
  min-width: 170px;
}
#inline-script {
  background: #f8fafd;
  border: 1px solid #e8eef7;
  padding: 18px;
  border-radius: 10px;
}
#inline-script textarea {
  background: white;
  min-height: 230px;
}
#inline-script p {
  margin: 0;
}
#notice {
  position: fixed;
  bottom: 22px;
  right: 24px;
  max-width: 520px;
  background: #203a5d;
  color: white;
  padding: 14px 12px 14px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 32px #18335722;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 20;
  font-size: 13px;
}
#notice.error {
  background: #92394b;
}
#dismiss-notice {
  padding: 3px;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.8;
}
#notice .icon {
  width: 16px;
  height: 16px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 46% 54%;
  background: white;
}
.login-story {
  background: #214c92;
  color: #fff;
  padding: 52px clamp(30px, 5vw, 85px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story > .brand {
  position: absolute;
  top: 42px;
  left: clamp(30px, 5vw, 85px);
  color: white;
}
.login-story .brand-mark {
  background: #ffffff1f;
  border: 1px solid #ffffff26;
}
.login-intro {
  margin-top: 70px;
}
.login-intro h1 {
  font-size: clamp(32px, 3.3vw, 51px);
  font-weight: 600;
  letter-spacing: -1.7px;
  line-height: 1.18;
  margin: 0 0 24px;
}
.login-intro p {
  font-size: 15px;
  color: #c4d5ef;
  line-height: 1.8;
  max-width: 36ch;
}
.fleet-illustration {
  margin: 35px -10px 30px;
  max-width: 440px;
}
.fleet-illustration svg {
  width: 100%;
}
.connection {
  stroke: #5c80b8;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.endpoint {
  stroke: #9ab9e6;
  stroke-width: 1.5;
}
.fleet-center {
  fill: #3664a6;
  stroke: #6e94cb;
  stroke-width: 1;
}
.fleet-glyph {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}
.login-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #b8cbea;
  margin-top: 20px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 70px 35px;
  position: relative;
}
.login-form-wrap {
  width: 100%;
  max-width: 350px;
}
.login-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #f0f5ff;
  color: var(--blue);
  border: 1px solid #e4ecfb;
  border-radius: 13px;
  margin-bottom: 25px;
}
.login-form-wrap h2 {
  font-size: 28px;
  letter-spacing: -0.9px;
}
.login-description {
  color: var(--muted);
  font-size: 14px;
  margin: 11px 0 32px;
}
.login form {
  display: grid;
  gap: 8px;
}
.login input {
  height: 46px;
  margin-bottom: 15px;
  background: #fcfdff;
  font-size: 13px;
}
.login form > .primary {
  height: 46px;
  margin-top: 8px;
  justify-content: space-between;
  padding: 0 16px;
}
.login-help {
  font-size: 11px;
  line-height: 1.7;
  color: #65758b;
  margin: 23px 0 0;
}
.login-footer {
  position: absolute;
  bottom: 30px;
  color: #65758b;
  font-size: 11px;
}
@media (min-width: 1600px) {
  main {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 1100px) {
  .app-header {
    padding: 0 20px;
    gap: 20px;
  }
  .app-header > .brand {
    width: 184px;
  }
  #workspace:not([hidden]) {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  main {
    padding: 30px 24px;
  }
  .account #logout span {
    display: none;
  }
  .account #logout {
    margin-left: 0;
  }
  .selection-note {
    display: none;
  }
  .toolbar .search-field {
    max-width: none;
  }
  .fleet-panel > .toolbar {
    padding: 14px;
  }
  .device-icon {
    display: none;
  }
  th,
  td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-context {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 62px;
    padding: 0 18px;
  }
  .app-header > .brand {
    width: auto;
    font-size: 20px;
  }
  .header-context {
    display: none;
  }
  .account {
    gap: 8px;
  }
  .account #identity {
    max-width: 95px;
    font-size: 12px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }
  #workspace:not([hidden]) {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px 0;
    gap: 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .space-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
  }
  .space-switch label {
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
  }
  .space-switch select {
    max-width: 220px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    padding-bottom: 12px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .sidebar nav .icon {
    width: 16px;
    height: 16px;
  }
  .nav-count {
    display: none;
  }
  .space-options {
    display: none;
  }
  .sidebar-bottom {
    display: block;
    position: static;
    margin: 0;
  }
  .deployment-box {
    border: 0;
    background: transparent;
    padding: 0 0 12px;
  }
  .deployment-box > .deploy-icon,
  .deployment-box > strong,
  .deployment-box > p,
  .sidebar-foot {
    display: none;
  }
  .deployment-box button {
    width: auto;
    padding: 7px 10px;
    font-size: 11px;
  }
  .sidebar nav {
    margin-bottom: -6px;
  }
  main {
    padding: 26px 16px 36px;
  }
  .heading {
    margin-bottom: 22px;
    align-items: flex-start;
    gap: 12px;
  }
  .heading h1 {
    font-size: 26px;
  }
  .heading p {
    font-size: 12px;
    max-width: 34ch;
  }
  .heading > button {
    font-size: 0;
    width: 33px;
    height: 33px;
    padding: 7px;
  }
  .heading > button .icon {
    width: 17px;
    height: 17px;
  }
  .status-tabs {
    gap: 0;
    margin-bottom: 17px;
  }
  .status-tabs button {
    font-size: 11px;
    padding: 7px 8px;
  }
  .fleet-panel > .toolbar {
    gap: 8px;
    padding: 12px;
  }
  .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .toolbar .primary {
    flex: 1;
    margin-left: 0;
  }
  .table-footer {
    font-size: 10px;
    padding: 12px;
  }
  .table-footer span:last-child {
    display: none;
  }
  .selection-bar {
    padding: 8px 12px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .empty {
    padding: 45px 22px;
  }
  .empty h2 {
    font-size: 17px;
  }
  dialog {
    width: calc(100vw - 20px);
    max-height: 94dvh;
    border-radius: 12px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  #dialog-content {
    padding: 18px;
  }
  #dialog-content > form > .primary {
    width: 100%;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 28px 26px 30px;
    min-height: 250px;
    justify-content: flex-end;
  }
  .login-story > .brand {
    position: static;
    margin-bottom: 30px;
    font-size: 21px;
  }
  .login-intro {
    margin: 0;
  }
  .login-intro h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .login-intro p {
    font-size: 12px;
    margin: 0;
    max-width: 42ch;
  }
  .fleet-illustration,
  .login-caption {
    display: none;
  }
  .login-panel {
    padding: 34px 26px 60px;
  }
  .login-symbol {
    display: none;
  }
  .login-form-wrap h2 {
    font-size: 24px;
  }
  .login-description {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .login-footer {
    bottom: 18px;
    font-size: 10px;
  }
  #notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
  }
  .script {
    padding: 18px;
  }
  .script-head {
    align-items: flex-start;
  }
  .script h2 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}
/* Automatic refresh: discreet timestamp next to the manual refresh button. */
.refresh-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.refresh-note.error {
  color: #a8442f;
}
/* Script versions: compact badges next to the edit button, indented history. */
.script-head .actions {
  align-items: center;
}
.script .history {
  gap: 6px;
  margin: 10px 0 4px 16px;
}
