:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19251f;
  background: #f4f7f5;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  margin: 0;
  background: #f4f7f5;
}

.dashboard-app {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.dashboard-app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #cbd7d0;
}

.dashboard-app__title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

.dashboard-app__home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -0.2rem -0.35rem;
  padding: 0.2rem 0.35rem;
  color: inherit;
  text-decoration: none;
  border-radius: 0.35rem;
}

.dashboard-app__home-link:hover { text-decoration: underline; }

.dashboard-app__home-link:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.dashboard-app__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.dashboard-app__parent-controls-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-app__parent-controls-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.dashboard-app__button {
  min-width: 7rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #53645a;
  border-radius: 0.55rem;
  color: #19251f;
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.dashboard-app__button--primary {
  border-color: #155d42;
  color: #fff;
  background: #155d42;
}

.dashboard-app__button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.dashboard-app__button:focus-visible,
.dashboard-app :focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.dashboard-app__status {
  min-height: 1.5rem;
  margin: 1rem 0;
  color: #34483d;
  font-weight: 600;
}

.dashboard-app__section { margin-top: 1rem; }

.dashboard-app__settings-read:not(:empty) {
  margin-bottom: 1rem;
}

.dashboard-app__settings-form:empty {
  display: none;
}

.dashboard-app__settings-form .parent-agent-settings-form__input,
.dashboard-app__settings-form .parent-agent-settings-form__button {
  min-height: 44px;
}

.dashboard-app__dialog-host { position: relative; }

@media (max-width: 520px) {
  .dashboard-app { width: min(100% - 1.25rem, 76rem); }
  .dashboard-app__header { align-items: flex-start; flex-direction: column; }
  .dashboard-app__controls { width: 100%; justify-content: stretch; }
  .dashboard-app__button { flex: 1 1 8rem; }
}
