﻿.dashboard {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 0 4px 18px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
}

.page-header p {
  margin: 6px 0 0;
  color: #172033;
  font-size: 14px;
  font-weight: 500;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  margin-right: 28px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  font-size: 17px;
  font-weight: 950;
}

.profile strong,
.profile span {
  display: block;
}

.profile strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.profile span {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}

.date-toolbar,
.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.date-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 18px;
}

.date-toolbar strong {
  font-size: 14px;
  font-weight: 850;
}

.date-picker,
.icon-button,
.today-button,
.segmented-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: #142033;
  border: 1px solid rgba(16, 24, 40, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.date-picker {
  gap: 10px;
  min-width: 230px;
  padding: 0 12px;
}

.date-picker .chevron {
  margin-left: auto;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 36px;
  padding: 0;
}

.today-button {
  min-width: 94px;
  color: var(--blue);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(136px, 1fr));
  gap: 8px;
}

.stat-card {
  --stat-accent: var(--dept-design);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: start;
  gap: 12px;
  min-height: 118px;
  padding: 16px 16px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stat-accent);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stat-accent) 46%, transparent);
}

.stat-card:nth-child(1) {
  --stat-accent: var(--dept-design);
}

.stat-card:nth-child(2) {
  --stat-accent: var(--dept-it);
}

.stat-card:nth-child(3) {
  --stat-accent: var(--dept-care);
}

.stat-card:nth-child(4) {
  --stat-accent: var(--dept-stem);
}

.stat-card:nth-child(5) {
  --stat-accent: var(--dept-business);
}

.stat-icon {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 7px;
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.15), 0 8px 18px color-mix(in srgb, var(--stat-accent) 20%, transparent);
}

.stat-icon.blue {
  background: linear-gradient(135deg, color-mix(in srgb, var(--dept-design) 92%, #fff), var(--dept-design));
}

.stat-icon.orange {
  background: linear-gradient(135deg, color-mix(in srgb, var(--dept-it) 92%, #fff), var(--dept-it));
}

.stat-icon.purple {
  background: linear-gradient(135deg, color-mix(in srgb, var(--dept-care) 88%, #fff), var(--dept-care));
}

.stat-icon.green {
  background: linear-gradient(135deg, color-mix(in srgb, var(--dept-stem) 90%, #fff), var(--dept-stem));
}

.stat-icon.red {
  background: linear-gradient(135deg, color-mix(in srgb, var(--dept-business) 90%, #fff), var(--dept-business));
}

.stat-card strong {
  display: block;
  margin-bottom: 7px;
  color: #07132c;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.stat-card span {
  display: block;
  max-width: 116px;
  margin-bottom: 10px;
  color: #101828;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.22;
}

.stat-card small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #24334d;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.92);
  font-size: 11px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.panel-tall {
  min-height: 0;
}

.panel.wide {
  grid-column: auto;
  min-height: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px 8px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.panel-header.compact {
  align-items: flex-start;
  min-height: 52px;
  padding-bottom: 9px;
}

.panel h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.panel-header p {
  margin: 5px 0 0;
  color: #23344e;
  font-size: 11px;
  font-weight: 750;
}

.panel-header a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--dept-design);
  border: 1px solid color-mix(in srgb, var(--dept-design) 22%, transparent);
  border-radius: 6px;
  background: #edf6ff;
}

.table-wrap {
  flex: 1 1 auto;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-table {
  max-height: 360px;
  overflow-y: auto;
}

.replacements .scroll-table {
  flex: 0 1 auto;
  max-height: 338px;
  overflow-y: auto;
}

.scroll-table::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scroll-table::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-table::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
}

.replacements td:first-child,
.replacements td:nth-child(3) {
  color: #111827;
  font-weight: 850;
}

.occupancy {
  order: 1;
}

.replacements {
  order: 2;
  height: 390px;
}

.notices {
  order: 3;
  height: 390px;
}

.changes {
  order: 4;
}

.changes .panel-header,
.online-users .panel-header {
  min-height: 58px;
  padding-top: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background:
    linear-gradient(90deg, rgba(230, 241, 255, 0.72), rgba(255, 255, 255, 0.54));
}

.online-users {
  order: 5;
}

.row-arrow {
  width: 15px;
  height: 15px;
  color: var(--blue);
  stroke-width: 2.6;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 16px 6px;
}

.segmented-control button {
  min-height: 28px;
  padding: 0 10px;
  color: #23344e;
  font-size: 10px;
}

.segmented-control .active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.note-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 6px 16px 14px;
  overflow-y: auto;
}

.note-composer {
  display: grid;
  gap: 8px;
  padding: 0 16px 8px;
}

.note-composer textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 10px 11px;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.note-composer textarea:focus {
  outline: 3px solid rgba(0, 154, 166, 0.16);
  border-color: rgba(0, 154, 166, 0.36);
}

.note-composer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.note-composer label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: #344054;
  font-size: 11px;
  font-weight: 850;
}

.note-composer input {
  accent-color: var(--blue);
}

.note-composer button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.note-cancel {
  margin-left: auto;
  color: #344054;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.note-submit {
  color: #fff;
  background: var(--blue);
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-left-width: 3px;
  border-radius: 7px;
}

.note p {
  grid-column: 1;
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
}

.note div {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.note span:first-child {
  color: #25344d;
  font-size: 10px;
  font-weight: 650;
}

.note button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #334155;
  border-radius: 6px;
  background: transparent;
}

.note button:hover {
  background: rgba(15, 23, 42, 0.07);
}

.note.warning {
  border-left-color: var(--dept-it);
  background: rgba(255, 247, 234, 0.92);
}

.note.info {
  border-left-color: var(--dept-design);
  background: rgba(239, 248, 255, 0.94);
}

.note.success {
  border-left-color: var(--dept-stem);
  background: rgba(240, 250, 243, 0.94);
}

.note.personal {
  border-left-color: var(--dept-care);
  background: rgba(248, 244, 255, 0.94);
}

.note-empty {
  display: grid;
  place-items: center;
  min-height: 96px;
  color: #667085;
  border: 1px dashed rgba(16, 24, 40, 0.16);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  color: #6b4b08;
  border-radius: 999px;
  background: rgba(255, 236, 196, 0.86);
  font-size: 10px;
  font-weight: 850;
}

.blue-pill {
  color: var(--blue);
  background: rgba(219, 235, 255, 0.98);
}

.green-pill {
  color: var(--dept-work);
  background: rgba(222, 246, 230, 0.98);
}

.occupancy-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 12px;
}

.occupancy-overview span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: end;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(11, 114, 255, 0.1);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(230, 241, 255, 0.96), rgba(255, 255, 255, 0.76));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--dept-design) 44%, transparent);
}

.occupancy-overview b {
  color: #07132c;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.occupancy-overview small {
  min-width: 0;
  overflow: hidden;
  color: #52627c;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.occupancy .table-wrap {
  padding: 0 16px;
  overflow-x: visible;
}

.occupancy table,
.occupancy thead,
.occupancy tbody {
  display: grid;
  width: 100%;
}

.occupancy table {
  gap: 5px;
}

.occupancy thead tr,
.occupancy tbody tr {
  display: grid;
  grid-template-columns: 42px 80px 112px 172px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.occupancy thead tr {
  padding: 0 10px;
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.occupancy th,
.occupancy td {
  min-width: 0;
  padding: 0;
  border: 0;
  font-size: 10px;
  text-align: left;
  vertical-align: middle;
}

.occupancy tbody {
  gap: 5px;
}

.occupancy tbody tr {
  min-height: 43px;
  padding: 6px 10px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-left: 3px solid color-mix(in srgb, var(--green) 58%, transparent);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(240, 250, 243, 0.88), rgba(255, 255, 255, 0.78));
}

.occupancy tbody tr:has(.meter.attention) {
  border-left-color: color-mix(in srgb, var(--orange) 64%, transparent);
  background: linear-gradient(90deg, rgba(255, 247, 234, 0.9), rgba(255, 255, 255, 0.78));
}

.occupancy tbody tr:has(.meter.full) {
  border-left-color: color-mix(in srgb, var(--red) 64%, transparent);
  background: linear-gradient(90deg, rgba(255, 240, 238, 0.92), rgba(255, 255, 255, 0.78));
}

.occupancy td:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #07132c;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.occupancy td:nth-child(2) {
  color: #344054;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.occupancy td:last-child {
  color: #101828;
  font-weight: 850;
  line-height: 1.25;
}

.capacity-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  max-width: 118px;
  color: #111827;
  font-weight: 900;
}

.capacity-value b {
  color: #475569;
  font-size: 9px;
  font-weight: 850;
}

.supervisors {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: none;
  overflow: hidden;
}

.supervisors span,
.supervisors.muted {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-height: 18px;
  padding: 0 5px;
  min-width: 0;
  max-width: 64px;
  overflow: hidden;
  color: #1f3b65;
  border: 1px solid rgba(11, 114, 255, 0.16);
  border-radius: 999px;
  background: rgba(230, 241, 255, 0.88);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supervisors.muted {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(241, 245, 249, 0.92);
}

.class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.class-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  color: #22314a;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.98);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.class-tags.muted span {
  color: #94a3b8;
}

.break-row {
  grid-template-columns: 42px 84px minmax(0, 1fr) !important;
  min-height: 34px !important;
  border-left-color: rgba(148, 163, 184, 0.58) !important;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.72)) !important;
}

.break-row td {
  color: #45566f;
  font-weight: 850;
}

.break-row td[colspan] {
  grid-column: 3 / -1;
}

.meter {
  display: block;
  width: 100%;
  max-width: 104px;
  height: 6px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7dadd;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.meter.attention i {
  background: var(--orange);
}

.meter.full i {
  background: var(--red);
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 16px 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(16, 24, 40, 0.07);
}

.legend span {
  display: inline-grid;
  grid-template-columns: 10px auto;
  gap: 5px;
  align-items: center;
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.legend b {
  margin-left: 2px;
  font-weight: 900;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.green-dot {
  background: var(--green);
}

.orange-dot {
  background: var(--orange);
}

.red-dot {
  background: var(--red);
}

.activity-list {
  display: grid;
  gap: 5px;
  padding: 10px 16px 14px;
}

.activity-row {
  display: grid;
  grid-template-columns: 44px 28px minmax(88px, 116px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-left: 3px solid color-mix(in srgb, var(--dept-design) 52%, transparent);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(239, 248, 255, 0.88), rgba(255, 255, 255, 0.78));
}

.activity-row:hover {
  background: linear-gradient(90deg, rgba(230, 241, 255, 0.96), rgba(255, 255, 255, 0.86));
}

.activity-row time {
  color: var(--dept-design);
  font-size: 10px;
  font-weight: 950;
}

.activity-row strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 10.5px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: #23344e;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.initials {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #0b3973;
  border: 1px solid rgba(11, 114, 255, 0.12);
  border-radius: 999px;
  background: rgba(230, 241, 255, 0.9);
  font-size: 9px;
  font-weight: 900;
}

.user-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.user-row {
  display: grid;
  grid-template-columns: 10px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.user-row.is-online {
  background: linear-gradient(90deg, rgba(240, 250, 243, 0.94), rgba(255, 255, 255, 0.78));
}

.user-presence {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dept-stem);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dept-stem) 16%, transparent);
}

.user-presence.away {
  background: var(--dept-it);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dept-it) 16%, transparent);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #07132c;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 950;
}

.user-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-main strong,
.user-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main strong {
  color: #101828;
  font-size: 12px;
  font-weight: 950;
}

.user-main small {
  color: #52627c;
  font-size: 11px;
  font-weight: 700;
}

.user-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #344054;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.user-status.live {
  color: var(--dept-work);
  background: color-mix(in srgb, var(--dept-stem) 15%, #fff);
}

@media (max-width: 1500px) {
  .stat-card {
    grid-template-columns: minmax(0, 1fr) 42px;
    min-height: 108px;
    padding: 14px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .icon.big {
    width: 28px;
    height: 28px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .stat-card span {
    font-size: 11px;
    margin-bottom: 6px;
  }
}

@media (max-width: 1040px) {
  .page-header {
    padding-left: 0;
  }

  .profile {
    margin-right: 0;
  }

  .date-toolbar {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .occupancy table {
    min-width: 720px;
  }

  .replacements table {
    min-width: 560px;
  }

  .occupancy td:nth-child(4) {
    min-width: 0;
  }
}
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .profile {
    min-width: 0;
  }

  .date-toolbar {
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .date-picker,
  .toolbar-actions,
  .today-button {
    width: 100%;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 36px 36px minmax(0, 1fr);
  }

  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 92px;
    padding: 12px;
  }

  .panel-tall {
    min-height: 0;
  }

}

@media (max-width: 520px) {
  .dashboard {
    gap: 7px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .page-header p {
    font-size: 13px;
  }

  .profile {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(16, 24, 40, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
  }

  .profile span {
    overflow-wrap: anywhere;
  }

  .date-toolbar strong {
    width: 100%;
  }

  .date-picker {
    min-width: 0;
  }

  .stat-card {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 82px;
    padding: 10px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .stat-card span,
  .stat-card small {
    font-size: 10px;
  }

  .panel-header {
    padding: 10px 12px 8px;
  }

  .panel h2 {
    font-size: 16px;
  }

  .segmented-control,
  .note-composer,
  .note-list,
  .legend,
  .user-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .user-row {
    grid-template-columns: 10px 34px minmax(0, 1fr);
  }

  .user-status {
    grid-column: 3;
    justify-self: start;
  }
}
