:root {
  color-scheme: light;
  --text: #142c2b;
  --muted: #516563;
  --line: #cbd6cc;
  --green: #145b4e;
  --lime: #d8f39c;
  --paper: #f1f3eb;
  font:
    16px/1.5 Inter,
    'Segoe UI',
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  background: #fcfdf8;
  border-bottom: 1px solid var(--line);
}
.shell {
  width: min(1110px, 92%);
  margin: auto;
}
nav,
.brand,
.navlinks,
.pagehead,
.bar,
.monitor-head,
.readings,
.actions {
  display: flex;
  align-items: center;
}
nav,
.pagehead,
.bar,
.monitor-head {
  justify-content: space-between;
}
nav {
  min-height: 74px;
}
.brand,
.navlinks a {
  color: inherit;
  text-decoration: none;
}
.brand {
  gap: 0.65rem;
  font-size: 1.24rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  position: relative;
}
.mark:before,
.mark:after {
  content: '';
  position: absolute;
  border: 2px solid var(--lime);
  width: 10px;
  height: 7px;
  transform: skewY(-26deg);
  border-radius: 2px;
}
.mark:before {
  left: 6px;
  top: 15px;
}
.mark:after {
  right: 6px;
  top: 9px;
}
.navlinks {
  gap: 0.35rem;
}
.navlinks a {
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  border-radius: 0.5rem;
}
.navlinks [aria-current] {
  background: #e5eee1;
  color: #154e40;
}
main.shell {
  padding: clamp(2rem, 6vw, 4.7rem) 0 4rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.05rem, 5vw, 3.8rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.04;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h3 {
  font-size: 1.1rem;
}
.intro {
  margin: 0.85rem 0 2rem;
  color: var(--muted);
  max-width: 52ch;
}
.layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.card,
.monitor {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid var(--line);
}
.card {
  background: #fcfdf9;
}
.card p:not(.feedback) {
  color: var(--muted);
}
.switch {
  display: flex;
  gap: 0.3rem;
  border: 0;
  border-radius: 0.65rem;
  background: #edf1e9;
  padding: 0.27rem;
  margin: 1.3rem 0 1.1rem;
}
.switch label {
  position: relative;
  cursor: pointer;
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.3rem;
  border-radius: 0.45rem;
  font-size: 0.92rem;
}
.switch label:has(:checked) {
  background: #fff;
  box-shadow: 0 1px 5px #21362022;
  font-weight: 650;
}
.switch label:has(:focus-visible) {
  outline: 2px solid var(--green);
}
.switch input,
.sr {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field,
.minor,
.feedback,
.muted {
  color: var(--muted);
}
.field {
  display: block;
  margin: 1.2rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
input:not([type='radio']),
select,
textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 1px solid #aebfb4;
  border-radius: 0.5rem;
  background: white;
  color: var(--text);
  font: inherit;
}
button,
.primary,
.secondary,
.stop {
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary,
.stop {
  margin-top: 1rem;
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: #10483d;
}
.stop,
.danger {
  background: #fff4ef;
  color: #893b2d;
  border: 1px solid #d5afa4;
}
.secondary,
.actions button {
  background: #f9fbf5;
  color: var(--green);
  border: 1px solid var(--line);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #ab8126;
  outline-offset: 3px;
}
details {
  margin: 0.8rem 0;
}
summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--green);
}
details p,
.minor {
  font-size: 0.87rem;
  margin: 0.5rem 0;
}
.monitor {
  color: #eef8e8;
  background: #183c38;
  border-color: #183c38;
}
.monitor h2 {
  color: #f3f5e9;
}
.indicator,
.tag,
.count {
  background: #e3eddf;
  border-radius: 1rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
}
.indicator {
  background: #294b46;
  color: #d4e4cc;
  white-space: nowrap;
}
.indicator:before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.indicator.live {
  color: #d1f58c;
}
.route {
  list-style: none;
  padding: 0;
  margin: 1.7rem 0;
}
.route li {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.85rem;
  min-height: 3.65rem;
}
.route li:not(:last-child):before {
  content: '';
  position: absolute;
  left: 8px;
  top: calc(50% + 9px);
  height: calc(100% - 18px);
  border-left: 1px dashed #86a098;
}
.route i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #9db8a8;
  background: #284d44;
}
.route li:last-child i {
  border-radius: 4px;
}
.route span,
.readings span {
  display: block;
  color: #a8c7b7;
  font-size: 0.77rem;
}
.route strong {
  font-size: 0.98rem;
}
.readings {
  border-top: 1px solid #46665d;
  gap: 2.5rem;
  padding-top: 1rem;
}
.readings strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.feedback {
  margin-top: 0.7rem;
  white-space: pre-line;
}
.feedback:empty {
  display: none;
}
.error {
  color: #963d27 !important;
}
.busy:before {
  content: '';
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: rotate 0.9s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(1turn);
  }
}
.login {
  max-width: 31rem;
}
.bar {
  margin: 0.4rem 0 1rem;
}
.count,
.tag {
  font-weight: 550;
  vertical-align: middle;
}
.device {
  margin-bottom: 1rem;
}
.device .stats {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.55rem 0;
}
.actions {
  gap: 0.5rem;
  flex-wrap: wrap;
}
.actions .danger {
  color: #8f4032;
}
.detail {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.7rem;
}
.detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 12rem;
  overflow: auto;
}
.detail label {
  display: block;
  margin: 0.5rem 0;
}
.detail input {
  font-family: monospace;
}
.detail button,
.detail select {
  margin: 0.3rem 0.4rem 0.3rem 0;
}
.major-name {
  overflow-wrap: anywhere;
}
.minor {
  margin-top: 0.8rem;
}
.pagehead {
  gap: 1rem;
}
.device p {
  overflow-wrap: anywhere;
}
#apk {
  margin: 0.8rem 0.25rem 0 0;
}
@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
  }
  nav {
    min-height: 62px;
  }
  .navlinks a {
    padding: 0.4rem 0.45rem;
  }
  .pagehead {
    align-items: flex-start;
  }
}
@media (max-width: 390px) {
  .brand {
    font-size: 1.02rem;
  }
  .navlinks {
    gap: 0;
  }
  .navlinks a,
  .switch label {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .busy:before {
    animation: none;
  }
}

#allowed {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
