:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #203d3b;
  background: #f5f8f7;
  font-synthesis: none;
  --teal: #176d60;
  --deep: #124e46;
  --mint: #e6f3ec;
  --muted: #7b8b87;
  --line: #e7eeeb;
  --radius: 17px;
  --shadow: 0 3px 16px #23483b03;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button {
  color: inherit;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #84bdab;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8fc2b4;
  outline-offset: 1px;
}
svg {
  display: block;
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 100;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 15px;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 18px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 11px 35px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1d4941;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #d3f1df;
}
.brand-mark .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.1;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
}
.workspace-icon {
  background: #f1f6f3;
  padding: 8px;
  border-radius: 7px;
  color: #517768;
}
.workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.workspace small {
  font-size: 10px;
  color: var(--muted);
}
.workspace > .icon {
  margin-left: auto;
  width: 14px;
}
.nav-label {
  font-size: 9px;
  color: #95a39e;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 14px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button,
.side-bottom button {
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  font-size: 12px;
  color: #788a83;
  font-weight: 550;
  border-radius: 8px;
}
.nav button:hover,
.side-bottom button:hover {
  background: #f6f9f7;
}
.nav button.active {
  color: var(--teal);
  background: #eaf4ee;
  font-weight: 700;
}
.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  background: var(--teal);
  border-radius: 0 3px 3px 0;
}
.nav .icon,
.side-bottom .icon {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  background: #d8eadd;
  color: #47805e;
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 6px;
}
.sidebar-space {
  flex: 1;
  min-height: 40px;
}
.sidebar-note {
  background: #f5f9f6;
  border: 1px solid #e8efe9;
  border-radius: 11px;
  padding: 14px;
  margin: 10px 7px 20px;
}
.sidebar-note .icon {
  width: 19px;
  color: #679980;
  margin-bottom: 8px;
}
.sidebar-note strong {
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}
.sidebar-note p {
  font-size: 10px;
  line-height: 1.7;
  color: #8b9b93;
  margin: 0;
}
.side-bottom {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #f0e6d9;
  color: #806a50;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  flex-shrink: 0;
}
.profile strong {
  display: block;
  font-size: 11px;
}
.profile small {
  font-size: 9px;
  color: var(--muted);
}
.profile > .icon {
  margin-left: auto;
  width: 15px;
  color: var(--muted);
}
.shell {
  margin-left: 232px;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.breadcrumb {
  font-size: 11px;
  color: #8a9992;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 550;
  color: #3e5c50;
}
.breadcrumb .icon {
  width: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ba9a1;
  font-size: 11px;
}
.global-search input {
  background: none;
  border: 0;
  width: 180px;
  outline: none;
  font-size: 11px;
}
.global-search .icon {
  width: 17px;
}
.shortcut {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 5px;
  border-radius: 4px;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  position: relative;
}
.icon-button .icon {
  width: 17px;
}
.unread-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  background: #d5a36c;
  border-radius: 50%;
}
.mobile-brand {
  display: none;
}
.main {
  padding: 31px 38px 26px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 9px;
  color: #88a294;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
}
.page-heading h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -1.1px;
  margin: 0 0 7px;
  font-weight: 750;
  color: #213f36;
}
.page-heading p {
  font-size: 11px;
  color: #87968e;
  margin: 0;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: white;
  white-space: nowrap;
}
.btn .icon {
  width: 15px;
  height: 15px;
}
.btn:hover {
  background: #f2f7f4;
}
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 2px 4px #176d6010;
}
.btn-primary:hover {
  background: #10594e;
}
.btn-quiet {
  border: 0;
  color: var(--teal);
  background: transparent;
  padding: 6px 0;
  min-height: 30px;
}
.date-button {
  color: #657b6d;
  font-size: 10px;
}
.welcome {
  position: relative;
  background: #155c50;
  border: 1px solid #155c50;
  border-radius: 15px;
  min-height: 153px;
  padding: 26px 28px;
  overflow: hidden;
  color: white;
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.welcome .eyebrow {
  color: #b6d1bf;
  font-size: 8px;
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #b5d9ae;
  border-radius: 50%;
}
.welcome h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 12px 0 10px;
}
.welcome p {
  font-size: 10px;
  color: #b8d3c6;
  line-height: 1.7;
  margin: 0;
}
.welcome-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 44%;
  height: 100%;
  color: #5a9f85;
  opacity: 0.9;
  pointer-events: none;
}
.welcome-content {
  position: relative;
  z-index: 1;
}
.welcome-tag {
  position: absolute;
  right: 25px;
  bottom: 23px;
  color: #c0dbca;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.welcome-tag .icon {
  width: 13px;
  height: 13px;
}
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  color: #4b6658;
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-label .icon {
  width: 13px;
  height: 13px;
  color: #8da495;
}
.range-tabs {
  display: inline-flex;
  background: #edf2ee;
  padding: 3px;
  border-radius: 7px;
  gap: 2px;
}
.range-tabs button {
  border: 0;
  background: none;
  padding: 5px 11px;
  font-size: 9px;
  color: #819187;
  border-radius: 5px;
}
.range-tabs button.selected {
  background: #fff;
  color: #456453;
  box-shadow: 0 1px 4px #23483b0d;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 18px 15px;
  box-shadow: var(--shadow);
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #748a7a;
  gap: 8px;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #eef6ef;
  color: #618d70;
}
.kpi-icon .icon {
  width: 16px;
  height: 16px;
}
.kpi:nth-child(2) .kpi-icon {
  background: #eaf4f4;
  color: #72a4a0;
}
.kpi:nth-child(3) .kpi-icon {
  background: #f6f1e7;
  color: #b9a16a;
}
.kpi:nth-child(4) .kpi-icon {
  background: #f0eff9;
  color: #9b8dbb;
}
.kpi-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 5px 0 8px;
  color: #294b3c;
}
.kpi-number small {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  color: #85978a;
}
.kpi-foot {
  font-size: 9px;
  color: #94a096;
  display: flex;
  align-items: center;
  gap: 5px;
}
.kpi-foot .icon {
  width: 11px;
  height: 11px;
}
.positive {
  color: #65936a;
}
.dashboard-charts {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 22px 0;
}
.panel h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: -0.2px;
  font-weight: 750;
  margin: 0 0 5px;
}
.panel-subtitle {
  font-size: 9px;
  color: #94a197;
  margin: 0;
  line-height: 1.6;
}
.panel-header .btn {
  font-size: 9px;
  min-height: 28px;
  padding: 5px 8px;
  color: #83968a;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 8px;
  color: #7c9082;
  margin: 17px 22px 8px;
}
.legend-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.chart {
  padding: 0 12px 12px;
  position: relative;
}
.bar-chart {
  width: 100%;
  height: 171px;
  overflow: visible;
}
.bar-chart text,
.line-chart text {
  font-family: inherit;
  font-size: 10px;
  fill: #9ba99f;
}
.bar-chart .grid,
.line-chart .grid {
  stroke: #eef2ee;
  stroke-dasharray: 3 4;
}
.bar-chart rect {
  transition: opacity 0.2s;
}
.bar-chart rect:hover {
  opacity: 0.65;
}
.chart-note {
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9ba79d;
  margin: 0 22px 16px;
}
.chart-note .icon {
  height: 11px;
  width: 11px;
}
.donut-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  padding: 20px 20px 13px;
}
.donut-wrap {
  width: 150px;
  height: 150px;
  position: relative;
  flex-shrink: 0;
}
.donut {
  transform: rotate(-90deg);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.donut-center strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 750;
  color: #32513f;
}
.donut-center small {
  font-size: 8px;
  color: #94a295;
  margin-top: 3px;
}
.device-legend {
  flex: 1;
  max-width: 145px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.device-legend > div {
  display: flex;
  align-items: center;
  font-size: 9px;
  color: #829384;
  gap: 6px;
}
.device-legend strong {
  color: #496849;
  font-size: 10px;
  margin-left: auto;
}
.device-legend small {
  color: #a0aea0;
  font-size: 8px;
  margin-left: 2px;
  min-width: 23px;
}
.panel-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #94a297;
}
.panel-footer .btn-quiet {
  font-size: 9px;
  min-height: 20px;
  color: #5a8666;
  gap: 5px;
}
.panel-footer .icon {
  width: 12px;
  height: 12px;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}
.review-list {
  padding: 7px 22px 0;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.review-row:last-child {
  border-bottom: 0;
}
.device-icon {
  background: #f0f5ef;
  color: #83a287;
  border-radius: 9px;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.device-icon .icon {
  width: 19px;
}
.review-main {
  min-width: 0;
  flex: 1;
}
.review-main strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.review-main p {
  font-size: 8px;
  color: #94a296;
  margin: 0;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  font-size: 8px;
  line-height: 1.2;
  border-radius: 5px;
  background: #f1f5ef;
  color: #7d9277;
  font-weight: 500;
  white-space: nowrap;
}
.badge.warning {
  background: #fbf1dd;
  color: #b2995d;
}
.badge.danger {
  background: #f9eae6;
  color: #b87e6e;
}
.badge.success {
  background: #eaf4ea;
  color: #6c9770;
}
.badge.blue {
  background: #eaf2f8;
  color: #6f95b3;
}
.badge.purple {
  background: #f1edf8;
  color: #9b87b3;
}
.review-row > .icon {
  width: 13px;
  color: #a1b1a2;
}
.activity-feed {
  padding: 18px 22px 4px;
}
.feed-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}
.feed-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: #e8eee6;
}
.feed-symbol {
  width: 27px;
  height: 27px;
  background: #edf6ec;
  border-radius: 50%;
  color: #82a17d;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.feed-symbol .icon {
  width: 13px;
  height: 13px;
}
.feed-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}
.feed-text strong {
  font-size: 9px;
  font-weight: 550;
  display: block;
  margin-bottom: 5px;
}
.feed-text p {
  font-size: 8px;
  color: #9aa69c;
  margin: 0;
  line-height: 1.6;
}
.feed-time {
  font-size: 8px;
  color: #a3afa4;
  white-space: nowrap;
  padding-top: 3px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: #a3afa4;
  margin-top: 23px;
  line-height: 1.6;
}
.footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer .icon {
  width: 10px;
  height: 10px;
}
.demo-pill {
  background: #f0f5ee;
  color: #81977a;
  border: 1px solid #e3ebde;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.3px;
}
.mobile-nav {
  display: none;
}
.list-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.field-search {
  min-width: 180px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  min-height: 40px;
}
.field-search .icon {
  width: 16px;
  color: #9aa99f;
}
.field-search input {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 0;
  outline: none;
  font-size: 11px;
  color: #365344;
}
.filter-select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 30px 8px 12px;
  font-size: 11px;
  color: #6b816f;
}
.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.records-table th {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fa08f;
  font-weight: 600;
  padding: 14px 20px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}
.records-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: #80917f;
}
.records-table tr:last-child td {
  border: 0;
}
.records-table tbody tr {
  cursor: pointer;
}
.records-table tbody tr:hover {
  background: #fafcf9;
}
.records-table td strong {
  font-weight: 600;
  color: #3a5d44;
  display: block;
  margin-bottom: 5px;
}
.records-table td small {
  font-size: 9px;
  color: #97a594;
}
.records-table .device-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.records-table .device-icon {
  width: 29px;
  height: 31px;
}
.table-wrap {
  overflow-x: auto;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state .icon {
  margin: 0 auto 15px;
  color: #a2b99f;
  width: 30px;
  height: 30px;
}
.empty-state h3 {
  font-size: 15px;
  color: #466845;
}
.empty-state p {
  font-size: 12px;
  color: #8a9e86;
  line-height: 1.6;
}
.view-tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.view-tabs button {
  border: 0;
  background: none;
  font-size: 11px;
  color: #8d9e89;
  padding: 0 1px 13px;
  position: relative;
}
.view-tabs button.selected {
  color: var(--teal);
  font-weight: 650;
}
.view-tabs button.selected:after {
  content: "";
  height: 2px;
  background: var(--teal);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.view-tabs .badge {
  margin-left: 4px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.complication-bars {
  padding: 20px 22px;
}
.complication-row {
  display: grid;
  grid-template-columns: 124px 1fr 22px;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #7d9179;
  margin: 15px 0;
}
.complication-bar {
  height: 7px;
  background: #f1f4ee;
  border-radius: 4px;
  overflow: hidden;
}
.complication-bar span {
  display: block;
  height: 100%;
  background: #9fb89b;
  border-radius: 4px;
}
.complication-row b {
  text-align: right;
  font-size: 10px;
  color: #5c7c54;
}
.insight {
  background: #eff6ee;
  border-radius: 9px;
  padding: 12px;
  font-size: 10px;
  color: #68865c;
  line-height: 1.7;
  margin-top: 20px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px;
  gap: 15px;
}
.mini-stats > div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.mini-stats > div:last-child {
  border: 0;
}
.mini-stats strong {
  font-size: 23px;
  display: block;
  color: #466a3d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mini-stats span {
  font-size: 9px;
  color: #98a591;
  display: block;
  margin-top: 6px;
}
.duration-table {
  padding: 8px 22px 20px;
}
.duration-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #83977b;
}
.duration-row strong {
  font-weight: 550;
  color: #55794a;
}
.muted-note {
  font-size: 10px;
  color: #98a68f;
  line-height: 1.7;
  margin: 0;
  padding: 15px 22px;
}
.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-body {
  padding: 22px;
}
.settings-body p {
  font-size: 11px;
  color: #85987d;
  line-height: 1.8;
}
.settings-body label {
  font-size: 10px;
  font-weight: 550;
  display: block;
  margin: 20px 0 9px;
  color: #5f7c53;
}
.settings-body select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcf9;
  color: #4d7342;
}
.permission {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  margin: 16px 0;
  color: #7a9370;
}
.permission .icon {
  width: 15px;
  height: 15px;
  color: #6d9c5e;
}
.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.member strong {
  font-size: 11px;
  display: block;
}
.member small {
  font-size: 9px;
  color: #91a287;
}
.member .badge {
  margin-left: auto;
}
.about-hero {
  padding: 50px 30px;
  text-align: center;
  background: linear-gradient(150deg, #164e45, #247a62);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.about-hero .brand-mark {
  margin: 0 auto 22px;
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: #ffffff13;
  border: 1px solid #ffffff20;
}
.about-hero .brand-mark .icon {
  width: 40px;
  height: 40px;
}
.about-hero h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 35px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.about-hero p {
  font-size: 13px;
  max-width: 425px;
  margin: 0 auto;
  line-height: 1.9;
  color: #c1ddc4;
}
.dedication {
  margin: 35px auto;
  max-width: 520px;
  text-align: center;
}
.dedication .heart {
  font-size: 24px;
  display: block;
  margin-bottom: 18px;
}
.dedication h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.dedication p {
  font-size: 12px;
  line-height: 1.9;
  color: #8c9e84;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-card {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.about-card .icon {
  color: #81a471;
  margin-bottom: 15px;
}
.about-card h4 {
  font-size: 12px;
  margin: 0 0 10px;
}
.about-card p {
  font-size: 10px;
  color: #8da182;
  line-height: 1.8;
  margin: 0;
}
.notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #faf5e8;
  border: 1px solid #efe7d3;
  color: #a08d61;
  font-size: 10px;
  line-height: 1.8;
  margin: 20px 0;
}
.notice .icon {
  width: 17px;
  margin-top: 2px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #14352e59;
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.18s;
}
.modal {
  width: 620px;
  max-width: 100%;
  background: #fff;
  border-radius: 19px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px #092e2a30;
}
.modal-header {
  padding: 24px 27px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
  font-weight: 700;
}
.modal-header p {
  font-size: 11px;
  color: #8ea085;
  margin: 0;
  line-height: 1.7;
}
.modal-body {
  padding: 22px 27px;
  overflow-y: auto;
}
.modal-body form {
  display: contents;
}
.activity-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: #f1f5ef;
  border-radius: 9px;
  margin-bottom: 22px;
}
.activity-choice button {
  border: 0;
  border-radius: 6px;
  background: none;
  padding: 10px 6px;
  font-size: 11px;
  color: #849b79;
}
.activity-choice button.selected {
  background: #fff;
  color: var(--teal);
  font-weight: 600;
  box-shadow: 0 1px 6px #16423109;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 10px;
  color: #55764b;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.field label small {
  font-weight: 400;
  color: #a0af97;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e1e9dd;
  border-radius: 8px;
  background: #fcfdfb;
  min-height: 42px;
  padding: 10px 11px;
  color: #4b6f40;
  font-size: 12px;
}
.field input[type="date"] {
  min-width: 0;
  /* iOS adds native date-input padding outside its declared width. */
  padding-inline: 0;
}
.field input[type="date"]::-webkit-datetime-edit {
  padding-inline: 10px;
}
.field textarea {
  resize: vertical;
  min-height: 78px;
}
.field-hint {
  font-size: 9px;
  color: #98a98c;
  margin: 0;
  line-height: 1.6;
}
.form-divider {
  grid-column: 1/-1;
  padding: 4px 0 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #94a48a;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 1px;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
  background: #fbfdf9;
  border-radius: 0 0 19px 19px;
}
.modal-footer span {
  font-size: 9px;
  color: #98a68c;
  display: flex;
  align-items: center;
  gap: 5px;
}
.modal-footer span .icon {
  width: 12px;
  height: 12px;
}
.modal-footer > div {
  display: flex;
  gap: 8px;
}
.form-error {
  padding: 12px;
  background: #fbeee7;
  color: #b77f66;
  border-radius: 7px;
  font-size: 11px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.detail-top .device-icon {
  width: 49px;
  height: 51px;
}
.detail-top h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.detail-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.detail-data small {
  font-size: 9px;
  display: block;
  color: #99aa8c;
  margin-bottom: 6px;
}
.detail-data strong {
  font-size: 12px;
  font-weight: 550;
  color: #5e7e4e;
}
.detail-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-section h4 {
  font-size: 11px;
  font-weight: 650;
  margin: 0 0 14px;
}
.episode {
  border-left: 2px solid #c4d9b8;
  padding: 0 0 15px 15px;
  margin-left: 3px;
}
.episode strong {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  color: #5e7f4e;
}
.episode p {
  font-size: 10px;
  line-height: 1.8;
  color: #94a686;
  margin: 0;
}
.episode .btn-quiet {
  font-size: 10px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 22px;
}
.toast {
  position: fixed;
  left: calc(50% + 110px);
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #214f40;
  color: #eef8e6;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px #183e3520;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.install-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 15px 0;
}
.install-step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  line-height: 1.8;
  color: #809773;
}
.install-step:before {
  counter-increment: step;
  content: counter(step);
  border-radius: 50%;
  background: #ebf3e5;
  color: #71985f;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 11px;
}
.activity-duration {
  font-size: 10px;
  color: #a1ac98;
}
.audit-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
  color: #819876;
}
.audit-row strong {
  display: block;
  font-weight: 550;
  color: #557a46;
}
.audit-row small {
  font-size: 9px;
  color: #a1ad98;
}
.offline-status {
  width: 6px;
  height: 6px;
  background: #87af7b;
  border-radius: 50%;
  display: inline-block;
}
.line-chart {
  width: 100%;
  height: 180px;
}
.report-period {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chart-summary {
  display: flex;
  gap: 15px;
  padding: 18px 22px 0;
}
.chart-summary strong {
  font-size: 25px;
  color: #4f7740;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chart-summary span {
  font-size: 10px;
  color: #91a381;
  align-self: center;
}
.stage-label {
  font-size: 9px;
  color: #a0ac96;
  margin: 20px 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mobile-only {
  display: none;
}
#global-results {
  position: absolute;
  top: 60px;
  right: 80px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 45;
  box-shadow: 0 6px 30px #16423115;
  width: 320px;
  max-height: 350px;
  overflow: auto;
}
.search-result {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  display: block;
  font-size: 11px;
  color: #6c8b5f;
}
.search-result small {
  display: block;
  color: #a2af95;
  font-size: 9px;
  margin-top: 5px;
}
.search-result:hover {
  background: #f5f9f1;
}
.overview-date {
  font-size: 10px;
  font-weight: 550;
  color: #8ba181;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.avatar.small {
  height: 25px;
  width: 25px;
  font-size: 8px;
}
.date-range-label {
  font-size: 10px;
  color: #819775;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6f8c5e;
  padding: 8px 0;
}
.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.report-breakdown {
  padding: 10px 22px 20px;
}
.report-breakdown > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 10px;
  color: #8a9f7d;
}
.report-breakdown b {
  font-weight: 600;
  color: #5f854d;
}
.error-banner {
  margin: 20px;
  background: #fff0e8;
  color: #975e4b;
  padding: 15px;
  font-size: 12px;
}
.text-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.print-heading {
  display: none;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-content {
  animation: enter 0.23s ease-out;
}
@media (min-width: 1550px) {
  .main {
    padding: 40px 55px;
  }
  .topbar {
    padding: 0 55px;
  }
  .welcome {
    min-height: 175px;
  }
  .welcome h2 {
    font-size: 28px;
  }
  .bar-chart {
    height: 205px;
  }
  .donut-body {
    padding-top: 30px;
    padding-bottom: 26px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main {
    padding: 26px 24px;
  }
  .donut-body {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .donut-wrap {
    width: 125px;
    height: 125px;
  }
  .device-legend {
    gap: 14px;
  }
  .device-legend small {
    display: none;
  }
  .dashboard-charts,
  .lower-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .kpi {
    padding: 14px;
  }
  .kpi-head {
    font-size: 9px;
  }
  .kpi-foot {
    font-size: 8px;
  }
  .global-search input {
    width: 140px;
  }
  .toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 183px;
  }
  .shell {
    margin-left: 183px;
  }
  .sidebar .brand {
    font-size: 20px;
    margin-left: 6px;
    gap: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .sidebar .workspace {
    padding: 9px;
    gap: 7px;
  }
  .workspace-icon {
    padding: 5px;
  }
  .workspace strong {
    font-size: 10px;
  }
  .workspace small {
    font-size: 9px;
  }
  .nav button {
    font-size: 11px;
    padding: 12px;
  }
  .sidebar-note {
    padding: 11px;
    margin-left: 3px;
    margin-right: 3px;
  }
  .dashboard-charts,
  .lower-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 14px;
  }
  .panel-header {
    padding: 18px 17px 0;
  }
  .panel h3 {
    font-size: 11px;
  }
  .panel-header .btn {
    font-size: 8px;
  }
  .donut-body {
    flex-direction: column;
    gap: 11px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .donut-wrap {
    width: 119px;
    height: 119px;
  }
  .device-legend {
    flex-direction: row;
    max-width: none;
    width: 100%;
    gap: 10px;
    justify-content: center;
  }
  .device-legend > div {
    font-size: 8px;
    display: block;
    text-align: center;
  }
  .device-legend strong {
    display: block;
    margin-top: 5px;
  }
  .device-legend .legend-dot {
    margin-right: 3px;
    width: 5px;
    height: 5px;
  }
  .bar-chart {
    height: 189px;
  }
  .review-list {
    padding-left: 17px;
    padding-right: 17px;
  }
  .review-row {
    gap: 9px;
  }
  .review-row > .icon {
    display: none;
  }
  .review-main strong {
    font-size: 9px;
  }
  .review-main p {
    font-size: 7px;
  }
  .review-row .badge {
    font-size: 7px;
    padding: 4px 5px;
  }
  .activity-feed {
    padding-left: 17px;
    padding-right: 17px;
  }
  .feed-time {
    display: none;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .date-button {
    display: none;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
  .complication-row {
    grid-template-columns: 95px 1fr 17px;
    font-size: 9px;
  }
  .top-actions {
    gap: 15px;
  }
  .shortcut {
    display: none;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-head {
    font-size: 8px;
  }
  .kpi-icon {
    width: 24px;
    height: 24px;
  }
  .kpi-number {
    font-size: 27px;
  }
  .kpi-foot {
    font-size: 7px;
  }
  .review-row {
    padding: 16px 0;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  .about-card {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 0 12px;
  }
  .about-card .icon {
    grid-row: 1/3;
  }
  .about-card p {
    grid-column: 2;
  }
  .setting-grid {
    grid-template-columns: 1fr;
  }
  .records-table th,
  .records-table td {
    padding-left: 15px;
    padding-right: 15px;
  }
  .profile {
    padding-left: 4px;
    padding-right: 4px;
  }
  .profile strong {
    font-size: 10px;
  }
  .toast {
    left: calc(50% + 90px);
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 69px;
    padding: env(safe-area-inset-top, 0) 20px 0;
    position: sticky;
    top: 0;
    z-index: 35;
    background: #ffffffed;
    backdrop-filter: blur(16px);
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    margin: 0;
    font-size: 22px;
    gap: 9px;
  }
  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
  }
  .mobile-brand .brand-mark .icon {
    width: 23px;
    height: 23px;
  }
  .global-search {
    display: none;
  }
  .top-actions {
    gap: 11px;
  }
  .top-actions .avatar {
    width: 31px;
    height: 31px;
  }
  .icon-button {
    height: 32px;
    width: 32px;
  }
  .main {
    padding: 25px 20px 95px;
  }
  .page-heading {
    margin-bottom: 23px;
    align-items: center;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 230px;
  }
  .heading-actions {
    padding-top: 0;
  }
  .heading-actions > .btn-quiet {
    display: none;
  }
  .heading-actions .btn {
    min-height: 38px;
    font-size: 10px;
    padding: 10px 12px;
  }
  .welcome {
    padding: 22px;
    min-height: 155px;
    border-radius: 14px;
    margin-bottom: 23px;
  }
  .welcome h2 {
    font-size: 23px;
    max-width: 255px;
    line-height: 1.4;
    margin-top: 13px;
  }
  .welcome p {
    max-width: 228px;
    font-size: 10px;
    line-height: 1.8;
  }
  .welcome-art {
    width: 47%;
    right: -30px;
    opacity: 0.55;
  }
  .welcome-tag {
    display: none;
  }
  .welcome .eyebrow {
    font-size: 7px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 24px;
  }
  .kpi {
    padding: 15px 17px;
    border-radius: 11px;
  }
  .kpi-head {
    font-size: 10px;
  }
  .kpi-icon {
    width: 27px;
    height: 27px;
  }
  .kpi-icon .icon {
    width: 15px;
    height: 15px;
  }
  .kpi-number {
    font-size: 30px;
    margin-top: 6px;
    margin-bottom: 6px;
  }
  .kpi-foot {
    font-size: 8px;
    min-height: 13px;
  }
  .section-toolbar {
    margin-bottom: 12px;
  }
  .section-label {
    font-size: 10px;
  }
  .range-tabs button {
    padding: 5px 10px;
    font-size: 9px;
  }
  .dashboard-charts,
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
  .panel-header {
    padding: 21px 20px 0;
  }
  .panel h3 {
    font-size: 13px;
  }
  .panel-subtitle {
    font-size: 10px;
  }
  .panel-header .btn {
    font-size: 9px;
  }
  .chart-legend {
    font-size: 9px;
    gap: 18px;
    margin-left: 20px;
    margin-top: 18px;
  }
  .bar-chart {
    height: 185px;
  }
  .chart {
    padding-top: 3px;
    padding-bottom: 10px;
  }
  .chart-note {
    font-size: 8px;
    margin-left: 20px;
  }
  .donut-body {
    flex-direction: row;
    padding: 24px 27px;
    gap: 30px;
  }
  .donut-wrap {
    width: 145px;
    height: 145px;
  }
  .device-legend {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 145px;
  }
  .device-legend > div {
    font-size: 11px;
    display: flex;
    text-align: left;
    gap: 7px;
  }
  .device-legend strong {
    display: block;
    margin: 0 0 0 auto;
    font-size: 11px;
  }
  .device-legend small {
    display: inline;
    font-size: 9px;
    min-width: 24px;
  }
  .device-legend .legend-dot {
    height: 7px;
    width: 7px;
  }
  .panel-footer {
    padding: 13px 20px;
    font-size: 9px;
  }
  .panel-footer .btn-quiet {
    font-size: 10px;
  }
  .review-list {
    padding: 6px 20px 0;
  }
  .review-row {
    padding: 17px 0;
    gap: 12px;
  }
  .review-main strong {
    font-size: 11px;
  }
  .review-main p {
    font-size: 9px;
  }
  .review-row .badge {
    font-size: 8px;
    padding: 5px 7px;
  }
  .device-icon {
    width: 36px;
    height: 38px;
  }
  .review-row > .icon {
    display: block;
  }
  .activity-feed {
    padding: 22px 20px 2px;
  }
  .feed-item {
    gap: 13px;
    padding-bottom: 23px;
  }
  .feed-text strong {
    font-size: 11px;
  }
  .feed-text p {
    font-size: 9px;
  }
  .feed-time {
    font-size: 8px;
    display: block;
  }
  .feed-symbol {
    width: 29px;
    height: 29px;
  }
  .feed-item:not(:last-child)::before {
    left: 14px;
  }
  .footer {
    font-size: 8px;
    margin-top: 25px;
    justify-content: center;
  }
  .footer > span:last-child {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    background: #ffffffee;
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 20px #12392d03;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 54px;
    font-size: 8px;
    background: none;
    border: 0;
    padding: 3px 4px;
    color: #9aa994;
  }
  .mobile-nav .icon {
    height: 21px;
    width: 21px;
    stroke-width: 1.6;
  }
  .mobile-nav button.active {
    color: var(--teal);
    font-weight: 650;
  }
  .mobile-nav button.active .icon {
    stroke-width: 2.1;
  }
  .mobile-nav .nav-add {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    height: 44px;
    width: 44px;
    min-width: 44px;
    border-radius: 14px;
    margin: 0 7px;
    padding: 0;
    box-shadow: 0 3px 10px #176d6020;
  }
  .mobile-nav .nav-add .icon {
    height: 23px;
    width: 23px;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 94dvh;
  }
  .modal-header {
    padding: 24px 21px 17px;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .modal-header p {
    font-size: 11px;
  }
  .modal-body {
    padding: 21px;
    overscroll-behavior: contain;
  }
  .modal-footer {
    padding: 16px 21px calc(16px + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .modal-footer span {
    font-size: 8px;
  }
  .modal-footer .btn {
    min-height: 42px;
    font-size: 11px;
  }
  .field label {
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 45px;
    padding: 11px 10px;
  }
  .form-grid {
    gap: 18px 12px;
  }
  .activity-choice button {
    min-height: 39px;
    font-size: 11px;
  }
  .toast {
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom));
    font-size: 11px;
    text-align: center;
    min-width: 230px;
  }
  .table-wrap {
    overflow: visible;
  }
  .records-table,
  .records-table tbody {
    display: block;
  }
  .records-table thead {
    display: none;
  }
  .records-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 20px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }
  .records-table tr:last-child {
    border: 0;
  }
  .records-table td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 10px;
  }
  .records-table td:first-child {
    grid-column: 1;
    grid-row: 1/3;
  }
  .records-table td:nth-child(2) {
    text-align: right;
    grid-column: 2;
  }
  .records-table td:nth-child(n + 3) {
    padding-left: 41px;
    grid-column: 1;
  }
  .records-table td:nth-child(4) {
    text-align: right;
    grid-column: 2;
    padding-left: 0;
  }
  .records-table td:nth-child(5) {
    grid-column: 2;
    text-align: right;
    padding-left: 0;
  }
  .records-table td strong {
    font-size: 11px;
  }
  .records-table td small {
    font-size: 9px;
  }
  .records-table .device-name {
    align-items: flex-start;
    gap: 10px;
  }
  .records-table .device-icon {
    width: 31px;
    height: 34px;
  }
  .list-toolbar {
    gap: 8px;
    margin-bottom: 17px;
  }
  .field-search {
    flex-basis: 100%;
    min-height: 44px;
  }
  .field-search input {
    font-size: 16px;
    min-width: 0;
    padding: 11px 0;
  }
  .filter-select {
    font-size: 11px;
    min-height: 40px;
    flex: 1;
    min-width: 0;
    padding-right: 23px;
  }
  .view-tabs {
    gap: 22px;
  }
  .view-tabs button {
    font-size: 11px;
    white-space: nowrap;
  }
  .view-tabs .badge {
    font-size: 8px;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .report-period {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
  }
  .report-period .range-tabs {
    flex: 1;
  }
  .report-period .range-tabs button {
    flex: 1;
    padding: 8px 10px;
  }
  .report-period .filter-select {
    flex: 0 1 auto;
    min-height: 36px;
  }
  .report-period .date-range-label {
    flex-basis: 100%;
    font-size: 10px;
    margin-top: 5px;
  }
  .report-breakdown > div {
    font-size: 11px;
  }
  .complication-row {
    grid-template-columns: 125px 1fr 20px;
    font-size: 10px;
  }
  .complication-bars {
    padding: 14px 20px 20px;
  }
  .complication-row b {
    font-size: 11px;
  }
  .mini-stats strong {
    font-size: 25px;
  }
  .mini-stats span {
    font-size: 10px;
  }
  .duration-row {
    font-size: 11px;
  }
  .about-hero {
    padding: 38px 25px;
  }
  .about-hero h2 {
    font-size: 31px;
  }
  .about-hero p {
    font-size: 12px;
  }
  .dedication {
    margin: 32px auto;
  }
  .dedication h3 {
    font-size: 23px;
  }
  .about-cards {
    gap: 13px;
  }
  .about-card h4 {
    font-size: 12px;
  }
  .about-card p {
    font-size: 11px;
  }
  .notice {
    font-size: 10px;
  }
  .settings-body p {
    font-size: 12px;
  }
  .settings-body label {
    font-size: 11px;
  }
  .settings-body select {
    font-size: 16px;
  }
  .permission {
    font-size: 12px;
  }
  .audit-row {
    font-size: 11px;
  }
  .mobile-only {
    display: block;
  }
  #global-results {
    top: 65px;
    right: 20px;
    left: 20px;
    width: auto;
  }
  .modal-footer .btn-quiet {
    padding: 8px;
  }
  .heading-actions .export-text {
    display: none;
  }
  .detail-data strong {
    font-size: 13px;
  }
  .detail-data small {
    font-size: 10px;
  }
  .episode strong {
    font-size: 12px;
  }
  .episode p {
    font-size: 11px;
  }
  .review-list + .panel-footer {
    margin-top: 5px;
  }
}
@media (max-width: 360px) {
  .main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 9px;
  }
  .heading-actions .btn {
    padding-left: 9px;
    padding-right: 9px;
  }
  .kpi {
    padding: 13px;
  }
  .kpi-head {
    font-size: 9px;
  }
  .kpi-foot {
    font-size: 7px;
  }
  .donut-body {
    gap: 19px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .device-legend small {
    display: none;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full,
  .form-divider {
    grid-column: 1;
  }
  .modal-footer span {
    max-width: 85px;
    line-height: 1.7;
  }
  .review-main p {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .heading-actions,
  .list-toolbar,
  .view-tabs,
  .footer,
  .report-period .range-tabs,
  .report-period select,
  .btn,
  .toast,
  .modal-backdrop {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .panel,
  .kpi {
    break-inside: avoid;
    box-shadow: none;
  }
  .report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-heading {
    margin-top: 20px;
  }
  .print-heading {
    display: block;
    font-size: 10px;
    margin: 20px 0;
    color: #617959;
  }
  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .table-wrap {
    overflow: visible;
  }
  .records-table,
  .records-table tbody {
    display: table;
  }
  .records-table tbody {
    display: table-row-group;
  }
  .records-table tr {
    display: table-row;
  }
  .records-table td {
    display: table-cell;
  }
  .records-table thead {
    display: table-header-group;
  }
  .page-content {
    animation: none;
  }
}
[hidden] {
  display: none !important;
}
.kpi[role="button"] {
  cursor: pointer;
}
.kpi[role="button"]:hover {
  border-color: #bfdbcb;
}
.kpi[role="button"]:focus-visible {
  outline: 2px solid #8fc2b4;
  outline-offset: 3px;
}
.setting-grid .panel .icon {
  flex-shrink: 0;
}
.profile .avatar {
  display: grid;
}
.nav-add:disabled {
  opacity: 0.35;
}
.overview-date {
  font-size: 9px;
}
.report-period {
  margin-bottom: 20px;
}
.review-list .empty-state {
  padding: 35px 15px;
}
.report-period input {
  max-width: 160px;
}
.field-hint .text-link {
  font-size: inherit;
}
.activity-choice {
  overflow: auto;
}
.chart-note {
  line-height: 1.7;
}
.panel-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.view-tabs::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .section-label {
    display: block;
  }
  .section-label .overview-date {
    display: block;
    margin-top: 5px;
  }
  .welcome h2 {
    max-width: 100%;
    font-size: 22px;
  }
  .outcome-table td:nth-child(n + 2)::before {
    content: attr(data-label);
    display: block;
    font-size: 8px;
    color: #9cab95;
    margin-bottom: 4px;
  }
  .outcome-table td:first-child {
    grid-row: 1/4;
    align-self: start;
  }
  .outcome-table td:nth-child(3) {
    padding-left: 0;
    grid-column: 2;
    text-align: right;
  }
  .outcome-table td:nth-child(4) {
    grid-column: 1;
    text-align: left;
    padding-left: 0;
  }
  .outcome-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }
}
.page-heading p,
.panel-subtitle,
.kpi-head,
.kpi-foot,
.review-main p,
.feed-text p,
.feed-time,
.field-hint,
.muted-note,
.footer,
.chart-note,
.date-range-label,
.settings-body p,
.about-card p,
.dedication p,
.records-table td,
.records-table td small {
  color: #687c6d;
}
.panel-subtitle,
.kpi-foot {
  font-size: 10px;
}
.kpi-head {
  font-size: 11px;
}
.review-main strong {
  font-size: 11px;
}
.review-main p,
.feed-text p {
  font-size: 10px;
}
.feed-text strong {
  font-size: 11px;
}
.sidebar-note p {
  font-size: 11px;
}
.bar-chart text,
.line-chart text {
  fill: #748374;
}
.range-tabs button {
  color: #677d6b;
}
.chart-legend {
  font-size: 9px;
  color: #6d826f;
}
.field label small {
  color: #788a78;
}
.device-legend > div {
  color: #647d66;
}
.device-legend small {
  color: #7c8e7a;
}
.overview-date {
  color: #71866f;
}
.nav-label {
  color: #7e8e81;
}
.notice {
  color: #806e45;
}
.badge.warning {
  color: #8a7134;
}
.badge.danger {
  color: #985d4b;
}
.badge.success {
  color: #507d52;
}
.badge.blue {
  color: #4f7796;
}
.badge.purple {
  color: #7f6996;
}
.btn,
.nav button,
.mobile-nav button {
  transition:
    background-color 0.15s,
    color 0.15s;
}
.btn-primary {
  color: #fff;
}
.welcome p {
  color: #d2e7da;
}
.welcome .eyebrow {
  color: #c0d9c9;
}
.about-hero p {
  color: #d0e6d3;
}
.records-table td strong {
  color: #365b40;
}
@media (max-width: 1150px) {
  .kpi-head {
    font-size: 10px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .review-main p {
    font-size: 9px;
  }
}
@media (max-width: 950px) and (min-width: 761px) {
  .kpi-head {
    font-size: 9px;
  }
  .kpi-foot {
    font-size: 8px;
  }
  .feed-text strong {
    font-size: 10px;
  }
  .feed-text p {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .kpi-head {
    font-size: 11px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .icon-button {
    height: 38px;
    width: 38px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .avatar {
    height: 34px;
    width: 34px;
  }
  .mobile-nav button {
    min-height: 44px;
  }
  .range-tabs button {
    min-height: 30px;
  }
  .review-main p {
    font-size: 10px;
  }
  .feed-text p {
    font-size: 10px;
  }
  .panel-subtitle {
    font-size: 11px;
  }
  .welcome p {
    font-size: 11px;
  }
  .heading-actions .btn {
    min-height: 42px;
  }
  .modal-header .icon-button {
    height: 40px;
    width: 40px;
  }
  .footer {
    font-size: 9px;
  }
  .badge {
    font-size: 9px;
  }
  .section-label {
    font-size: 11px;
  }
  .range-tabs button {
    font-size: 10px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .page-heading p {
    font-size: 11px;
  }
}
.welcome-guide {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 8px 0 19px;
}
.guide-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.guide-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e8f4ec;
  color: #287363;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.guide-item h3 {
  font-size: 14px;
  margin: 1px 0 6px;
  font-weight: 650;
  color: #315547;
}
.guide-item p {
  font-size: 12px;
  line-height: 1.75;
  color: #718574;
  margin: 0;
  max-width: 360px;
}
.guide-storage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #728873;
  margin: 2px 0 8px;
}
.guide-storage .icon {
  width: 15px;
  height: 15px;
}
.backup-filename {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #52765a;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.backup-filename .icon {
  width: 18px;
}
.backup-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
}
.backup-counts > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #778c75;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.backup-counts strong {
  color: #436b4a;
  font-size: 14px;
}
input[type="file"] {
  font-size: 12px;
  padding: 12px !important;
  line-height: 1.8;
}
.activity-feed > .empty-state {
  padding: 28px 0;
}
.chart > .empty-state {
  padding: 38px 15px;
}
.setting-grid .permission {
  align-items: flex-start;
  line-height: 1.8;
}
@media (max-width: 760px) {
  .guide-item {
    gap: 13px;
  }
  .guide-item h3 {
    font-size: 14px;
  }
  .guide-item p {
    font-size: 12px;
  }
  .guide-storage {
    font-size: 10px;
  }
  .backup-counts {
    gap: 10px 16px;
  }
  .backup-counts > div {
    font-size: 11px;
  }
  .settings-body .detail-actions {
    gap: 9px;
  }
  .settings-body .detail-actions .btn {
    min-height: 43px;
  }
  .welcome-guide {
    gap: 23px;
  }
}
.device-lock {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(ellipse at top, #e6f0e9, transparent 65%), #f5f8f7;
}
.device-lock-card {
  width: min(100%, 420px);
  text-align: center;
  padding: 36px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 70px #1d57431a;
}
.device-lock-card > img {
  display: block;
  margin: 0 auto 24px;
  border-radius: 17px;
}
.device-lock-card > .eyebrow {
  display: block;
  font-size: 9px;
}
.device-lock-card h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 14px 0;
}
.device-lock-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.device-lock-card > .btn {
  width: 100%;
  min-height: 48px;
  margin: 14px 0 4px;
  font-size: 14px;
}
.device-lock-card details {
  text-align: left;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.device-lock-card summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
.device-lock-card > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 28px;
}

.sidebar {
  overflow-y: auto;
}
@media (min-width: 761px) and (max-height: 850px) {
  .sidebar-note {
    display: none;
  }
  .sidebar-space {
    min-height: 12px;
  }
}
