:root {
  --sb-accent: #3b82f6;
  --sb-sidebar: 15rem;
  --sb-radius: 0.75rem;
  font-family: Inter, system-ui, sans-serif;
}
html, body { min-height: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bs-body-bg); }
body.is-app { overflow-x: hidden; }

.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: var(--sb-sidebar); flex-shrink: 0; padding: 1.25rem 1rem;
  border-right: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg);
  position: sticky; top: 0; height: 100vh;
}
.dash-content { flex: 1; min-width: 0; }
.dash-topbar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--bs-border-color);
  position: sticky; top: 0; z-index: 20; background: var(--bs-body-bg);
}
.topbar-title { font-weight: 600; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 0.25rem; color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit; font-weight: 700; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--sb-accent); color: #fff; font-size: 0.75rem; letter-spacing: 0.02em;
}
.brand-name { font-size: 1rem; }
.brand-lg .brand-mark { width: 2.5rem; height: 2.5rem; }
.dash-side-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; }
.dash-side-nav a {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; text-decoration: none;
  color: var(--bs-body-color); font-weight: 500;
}
.dash-side-nav a:hover { background: var(--bs-secondary-bg); }
.dash-side-nav a.active { background: rgba(59, 130, 246, 0.15); color: var(--sb-accent); }
.btn-ghost { border: 1px solid transparent; background: transparent; color: inherit; }
.btn-ghost:hover { background: var(--bs-secondary-bg); }
.user-chip { font-size: 0.875rem; color: var(--bs-secondary-color); }
.public-top { padding: 1.25rem 0; }
.public-top-inner { display: flex; align-items: center; justify-content: space-between; }
.public-home { padding: 1rem 0 3rem; }
/* Form first on narrow screens; intro + feature cards stay left from lg up. */
.public-home-layout { display: flex; }
.public-home-form { order: 1; }
.public-home-intro { order: 2; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--sb-accent); }
.lead-copy { color: var(--bs-secondary-color); max-width: 36rem; }
.feature-card {
  height: 100%; padding: 1rem; border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color);
}
.feature-card p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--bs-secondary-color); }
.auth-card {
  padding: 1.5rem; border-radius: calc(var(--sb-radius) + 0.25rem);
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.public-register { display: flex; justify-content: center; }
.public-register .container { max-width: 28rem; }
.register-card { width: 100%; }
.activation-code { font-size: 1rem; letter-spacing: 0.08em; font-weight: 600; }
.devices-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-body-bg);
}
.devices-bulk-bar[hidden],
.devices-bulk-url[hidden] {
  display: none !important;
}
.devices-bulk-count {
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
}
.devices-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.devices-bulk-sep {
  width: 1px;
  align-self: stretch;
  min-height: 1.55rem;
  background: var(--bs-border-color);
  margin: 0 0.1rem;
}
.devices-bulk-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 100%;
}
.devices-bulk-url .form-control { min-width: 0; flex: 1 1 12rem; }
.devices-bulk-url .btn { flex: 0 0 auto; white-space: nowrap; }
.devices-table .col-select {
  width: 2.25rem;
  text-align: center;
  vertical-align: middle;
}
.devices-table .col-select .form-check-input { margin: 0; cursor: pointer; }
.devices-table-wrap {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-body-bg);
  overflow-x: auto;
}
.devices-table {
  --bs-table-bg: transparent;
  width: 100%;
}
.devices-table > :not(caption) > * > * {
  padding: 0.3rem 0.55rem;
}
.devices-table th {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  font-weight: 600;
}
.devices-table td { vertical-align: middle; }
.devices-table .col-select { width: 2.25rem; }
.devices-table .col-status,
.devices-table .col-seen,
.devices-table .col-actions {
  width: 1%;
  white-space: nowrap;
}
.devices-table .col-status { width: 7.25rem; }
.devices-table .device-status .badge.badge-wifi-off {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
  text-align: start;
}
.devices-table .col-name { width: 22%; max-width: 16rem; }
.devices-table .col-url { width: 99%; max-width: 0; }
.devices-table .col-name,
.devices-table .col-url { overflow: hidden; }
.device-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  min-width: 0;
}
.device-status .badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}
.badge-standby,
.badge-wifi-off {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: help;
}
.standby-option {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.standby-legend {
  float: none;
  width: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.45rem;
}
.standby-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}
.standby-help {
  margin-top: 0.35rem;
  max-width: 34rem;
}
.device-row { cursor: pointer; }
.device-row:focus { outline: 2px solid var(--sb-accent); outline-offset: -2px; }
.device-name-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.device-name-link:hover { color: var(--sb-accent); text-decoration: underline; }
.kiosk-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}
.sticker-mini {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.device-row-actions { cursor: default; }
.view-toggle {
  display: inline-flex;
  padding: 0.15rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-tertiary-bg);
}
.view-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.view-toggle-btn.is-active,
.view-toggle-btn[aria-pressed="true"] {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.devices-tiles-panel { display: none; }
html[data-devices-view="tiles"] .devices-table-panel { display: none; }
html[data-devices-view="tiles"] .devices-tiles-panel { display: block; }
.devices-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.65rem;
}
.device-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  min-height: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-body-bg);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.device-tile:hover {
  border-color: color-mix(in srgb, var(--sb-accent) 45%, var(--bs-border-color));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.device-tile:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
.device-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.device-tile .device-status {
  flex: 0 0 auto;
  min-width: min-content;
}
.device-tile-seen {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  text-align: right;
}
.device-tile-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.05rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-tile-url {
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}
.device-tile-url.is-empty { font-style: italic; }
.device-form-page { max-width: 40rem; }
.device-form-page.is-edit {
  max-width: none;
  width: 100%;
  container-type: inline-size;
  container-name: device-edit;
}
.device-form-body { padding: 1.5rem 1.35rem; }
@media (min-width: 576px) {
  .device-form-body { padding: 1.75rem 1.75rem; }
}
.form-section {
  margin: 0 0 1.65rem;
  padding: 0 0 1.65rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.form-section:last-child,
.form-section-submit {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.form-section-title {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 0.3rem;
}
.form-section-lead {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  margin: 0 0 1.05rem;
  max-width: 34rem;
}
.device-acties {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.device-acties-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.device-acties-item + .device-acties-item {
  padding-top: 1.15rem;
  border-top: 1px solid var(--bs-border-color);
}
.device-acties-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.device-acties-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
}
.device-edit-danger {
  padding: 1.25rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--bs-danger) 28%, var(--bs-border-color));
  border-radius: var(--sb-radius);
  background: color-mix(in srgb, var(--bs-danger) 6%, var(--bs-body-bg));
}
.device-edit-danger .form-section-title { color: var(--bs-danger); }
.device-edit-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.form-advanced {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
  padding: 0 0.9rem 0.85rem;
}
.form-advanced > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.7rem 0;
  color: var(--bs-secondary-color);
}
.form-advanced-body { padding-bottom: 0.15rem; }
.week-schedule {
  margin: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
}
.week-schedule-summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.week-schedule-summary-text {
  font-weight: 400;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}
.week-schedule[open] .week-schedule-summary {
  border-bottom: 1px solid var(--bs-border-color);
}
.week-schedule-body {
  padding: 0 1rem 1rem;
}
.week-schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0;
}
.week-schedule-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.week-day-row {
  display: grid;
  grid-template-columns: 2.4rem 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.week-day-row.is-off { opacity: 0.65; }
.week-day-name { font-weight: 600; }
.week-day-times {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.week-day-times .form-control { min-width: 0; }
.week-day-sep { color: var(--bs-secondary-color); }
.time-24 {
  font-variant-numeric: tabular-nums;
  max-width: 5.5rem;
  text-align: center;
}
@media (max-width: 575.98px) {
  .week-day-row { grid-template-columns: 2.4rem 1fr; }
  .week-day-times { grid-column: 1 / -1; }
  .week-day-times .time-24 { max-width: none; flex: 1; }
  .device-form-body { padding: 1.25rem 1.1rem; }
  .form-section { margin-bottom: 1.35rem; padding-bottom: 1.35rem; }
}
@media (max-width: 575.98px) {
  .devices-table-panel form {
    display: flex;
    flex-direction: column;
  }
  .devices-table-wrap { order: 1; overflow-x: visible; }
  .devices-bulk-bar {
    order: 2;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0.65rem 0 0;
    box-shadow: 0 -10px 28px color-mix(in srgb, var(--bs-body-color) 10%, transparent);
  }
  .devices-bulk-url { flex: 1 1 100%; max-width: none; }
  .devices-bulk-url .form-control { flex: 1 1 100%; }
  .devices-table,
  .devices-table tbody { display: block; width: 100%; }
  .devices-table thead { display: none; }
  .devices-table tr.device-row {
    display: grid;
    grid-template-columns: 1.5rem max-content minmax(0, 1fr) auto;
    grid-template-areas:
      "select status name actions"
      "select . url url"
      "select . seen seen";
    column-gap: 0.4rem;
    row-gap: 0.12rem;
    align-items: center;
    padding: 0.35rem 0.5rem 0.4rem;
    border-bottom: 1px solid var(--bs-border-color);
  }
  .devices-table tr.device-row:last-child { border-bottom: 0; }
  .devices-table tr.device-row > td {
    display: block;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    --bs-table-bg-state: transparent;
    --bs-table-accent-bg: transparent;
    box-shadow: none;
    background-color: transparent;
  }
  .devices-table.table-hover > tbody > tr.device-row:hover {
    background-color: var(--bs-table-hover-bg);
  }
  .devices-table tr.device-row > td.col-select { grid-area: select; align-self: start; padding-top: 0.15rem; }
  .devices-table tr.device-row > td.col-status { grid-area: status; align-self: start; }
  .devices-table tr.device-row > td.col-name { grid-area: name; min-width: 0; }
  .devices-table tr.device-row > td.col-url { grid-area: url; min-width: 0; }
  .devices-table tr.device-row > td.col-seen { grid-area: seen; min-width: 0; font-size: 0.75rem; }
  .devices-table tr.device-row > td.device-row-actions {
    grid-area: actions;
    justify-self: end;
    align-self: start;
  }
  .devices-table .device-status { flex-direction: column; align-items: flex-start; }
  .device-row-actions .btn {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    white-space: nowrap;
  }
}
.device-meta-line {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-seen-at,
.device-temp,
.device-meta-sep { display: inline; }
.col-seen { color: var(--bs-secondary-color); }
.device-temp {
  font-variant-numeric: tabular-nums;
  color: var(--bs-secondary-color);
}
.device-temp.is-warm {
  color: #b45309;
}
[data-bs-theme="dark"] .device-temp.is-warm {
  color: #d97706;
}
.device-last-temp {
  font-size: 0.9rem;
}
.empty-state { max-width: 28rem; }
.sticker-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.pairing-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 0.75rem;
}
.pairing-input::placeholder {
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--bs-secondary-color);
  opacity: 0.4;
}
.pairing-input::-webkit-input-placeholder {
  font-weight: 400;
  color: var(--bs-secondary-color);
  opacity: 0.4;
}
.pairing-input::-moz-placeholder {
  font-weight: 400;
  color: var(--bs-secondary-color);
  opacity: 0.4;
}
[data-bs-theme="dark"] .pairing-input::placeholder,
[data-bs-theme="dark"] .pairing-input::-webkit-input-placeholder,
[data-bs-theme="dark"] .pairing-input::-moz-placeholder {
  color: var(--bs-secondary-color);
  opacity: 0.35;
}
.scherm-block {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
}
.scherm-legend {
  float: none;
  width: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
}
.device-card { border-radius: calc(var(--sb-radius) + 0.15rem); }
.sticker-panel {
  padding: 0.85rem 1rem;
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
  border: 1px dashed var(--bs-border-color);
}
.sticker-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
}
.sticker-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
  word-break: break-all;
}
.sticker-card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sticker-card-row .sticker-input {
  flex: 1;
  min-width: 0;
}
.sticker-card-row .sticker-id {
  border: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.device-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1rem; }
.device-meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  margin: 0;
}
.device-meta dd { margin: 0.1rem 0 0; }
.theme-toggle .theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-dark { display: inline; }

@media (min-width: 992px) {
  .public-home-intro { order: 1; }
  .public-home-form { order: 2; }
}

@media (max-width: 767.98px) {
  .dash-sidebar { display: none; }
  .menu-toggle { display: inline-flex; }
}


/* device-edit disclosure (a02b23f) */
.form-section-basis {
  border-bottom: 0;
  margin-bottom: 0.35rem;
  padding-bottom: 0;
}

.form-disclosure {
  margin: 0 0 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
  padding: 0 0.95rem;
}

.form-disclosure[open] { padding-bottom: 0.95rem; }

.form-disclosure > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  list-style: none;
  padding: 0.8rem 0;
}

.form-disclosure > summary::-webkit-details-marker { display: none; }

.form-disclosure > summary::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.form-disclosure[open] > summary::before { transform: rotate(45deg); }

.form-disclosure[open] > summary {
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0.95rem;
}

h2.form-disclosure-title {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 0;
}

.form-disclosure-hint {
  flex: 1 1 8rem;
  margin-left: auto;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  text-align: right;
}

.form-disclosure[open] > summary .form-disclosure-hint { display: none; }

.form-disclosure .form-section {
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
}

.form-subsection {
  margin: 0 0 1.15rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.form-advanced > summary,
.form-advanced > summary .form-disclosure-title {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.form-advanced-body { padding-bottom: 0.15rem; }

.form-advanced .device-edit-danger { margin-top: 0.15rem; }

.form-disclosure-hint {
    flex-basis: 100%;
    margin-left: 1.15rem;
    text-align: left;
  }

.form-section-basis {
    margin-bottom: 0.35rem;
    padding-bottom: 0;
  }


/* two-column device edit (05310af surgical) */
.device-edit-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.device-edit-primary,
.device-edit-secondary { min-width: 0; }
.device-basis-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 1.05rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--sb-radius);
  background: var(--bs-tertiary-bg);
}
.device-basis-facts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}
.device-basis-facts .device-temp {
  display: inline;
  margin-top: 0;
  font-size: inherit;
}
.form-more { margin: 0 0 1.25rem; }
.form-advanced > summary.form-more-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
  color: var(--bs-body-color);
}
.form-more-hint {
  font-weight: 400;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}
.form-more .form-section {
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
}
.form-more .form-advanced-body > .form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.device-edit-advanced { margin-top: 1.35rem; }
.device-edit-advanced .device-edit-danger { margin-top: 0.25rem; }
.device-display-fields { display: flex; flex-direction: column; }
/* Viewport ≥992, and also when the edit page itself is ≥992 wide
   (content area beside the sidebar, not the raw window). */
@container device-edit (min-width: 992px) {
  .device-form-page.is-edit > .device-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1.25rem;
    align-items: start;
  }
  .device-form-page.is-edit > .device-edit-layout > .device-edit-secondary {
    position: sticky;
    top: 4.5rem;
    align-self: start;
  }
}
@media (min-width: 992px) {
  .device-form-page.is-edit > .device-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1.25rem;
    align-items: start;
  }
  .device-form-page.is-edit > .device-edit-layout > .device-edit-secondary {
    position: sticky;
    top: 4.5rem;
    align-self: start;
  }
  .device-edit-secondary .device-acties-form {
    flex-direction: column;
    align-items: stretch;
  }
  .device-edit-secondary .device-acties-form .btn { width: 100%; }
  .device-edit-secondary .device-acties-form .ms-2 { margin-left: 0 !important; }
}
@media (max-width: 991.98px) {
  .device-form-page.is-edit .form-section-submit {
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: var(--bs-body-bg);
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--bs-border-color);
    box-shadow: 0 -10px 28px color-mix(in srgb, var(--bs-body-color) 10%, transparent);
  }
  .device-form-page.is-edit .form-section-submit .btn { flex: 1 1 0; }
}

.device-wifi-off { font-weight: 500; }
