:root {
  font: 15px/1.5 Inter, system-ui, sans-serif;
  color: #152e2b;
  background: #f5f7f5;
  color-scheme: light;
  --muted: #51645f;
  --border: #d8e2dc;
  --green: #145a43;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
.wrap { width: min(1240px, 92%); margin: auto; }
header { background: #12332e; color: #fff; }
.bar { display: flex; gap: 20px; align-items: center; min-height: 64px; }
.brand { font-size: 1.55rem; letter-spacing: -.06em; line-height: 1; }
.brand span { color: #b9e393; }
.tenant { padding-left: 20px; border-left: 1px solid #57756d; font-size: .94rem; }
#identity { margin-left: auto; font-size: .86rem; color: #e0e9e3; overflow-wrap: anywhere; }
.bar .light { margin: 0; background: transparent; color: white; border: 1px solid #718d82; }
.heading { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; margin: 38px 0 22px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.05em; }
h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.025em; }
nav { display: flex; gap: 16px; }
a { color: var(--green); text-underline-offset: 4px; }
nav a { font-size: .9rem; font-weight: 600; }
#team-overview { display: grid; grid-template-columns: repeat(3, 1fr); background: #e8efe7; border: 1px solid #cbdacb; border-radius: 10px; margin-bottom: 24px; }
#team-overview div { padding: 16px 22px; }
#team-overview div + div { border-left: 1px solid #cbdacb; }
#team-overview span, .hint, .head span, .sub { color: var(--muted); font-size: .86rem; }
#team-overview strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .46fr); align-items: start; gap: 20px; }
.layout:has(#editor[hidden]) { grid-template-columns: 1fr; }
.card { min-width: 0; background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: 10px; }
.login { max-width: 430px; }
.login h2 { margin-bottom: 20px; }
.login button { width: 100%; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.history { margin: 22px 0 44px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; margin-top: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e6ece8; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; background: #f4f7f4; }
.active { background: #f1f7ee; }
.status { display: inline-block; background: #fbf2de; color: #684512; padding: 2px 7px; border-radius: 4px; font-size: .8rem; white-space: nowrap; }
.status.ready { background: #e0f0e2; color: #23583b; }
.status.suspended { background: #eceeed; color: #4b5753; }
label { display: block; font-size: .87rem; font-weight: 600; margin: 15px 0 4px; }
input, select { width: 100%; background: white; color: inherit; border: 1px solid #9cafa5; border-radius: 5px; padding: 9px 11px; font: inherit; }
button { border: 1px solid transparent; color: white; background: var(--green); font: 650 .91rem/1.4 Inter, system-ui, sans-serif; border-radius: 5px; cursor: pointer; padding: 9px 14px; margin-top: 15px; }
button:hover:not(:disabled) { filter: brightness(.9); }
button:disabled { opacity: .52; cursor: default; }
button.device { background: transparent; color: var(--green); padding: 2px 0; margin: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.secondary { background: white; color: #884924; border-color: #c8b5a4; }
.hint, .scroll + p { margin-top: 12px; }
#new-device { margin: 14px 0; }
#new-device summary { display: list-item; max-width: fit-content; cursor: pointer; color: var(--green); font-size: .91rem; font-weight: 650; }
#register { border-left: 2px solid #8cb7a1; padding-left: 15px; margin: 12px 0 18px; max-width: 440px; }
#notice:not(:empty) { margin-bottom: 15px; padding: 10px 12px; background: #e5f1e9; border-left: 3px solid #37865b; }
#notice.error:not(:empty) { background: #fff0e3; border-color: #9d5127; }
:focus-visible { outline: 3px solid #2580a2; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 840px) {
  .layout { grid-template-columns: 1fr; }
  .card { padding: 17px; }
  .history table { min-width: 650px; }
}
@media (max-width: 610px) {
  .bar { gap: 10px; flex-wrap: wrap; padding: 10px 0; }
  .bar .light { padding: 5px 8px; }
  .tenant { padding-left: 10px; font-size: .8rem; }
  #identity { display: none; }
  .heading { margin-top: 26px; gap: 10px; flex-wrap: wrap; }
  #team-overview div { padding: 10px; }
  #team-overview strong { font-size: 1.02rem; }
  #team-overview span { font-size: .77rem; }
  #parc table { min-width: 490px; }
}
