.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 9px;
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  position: relative;
  font-size: 25px;
}
.icon-button:hover {
  background: var(--bg);
  color: var(--ink);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #171a29;
  color: #abb5ca;
  padding: 32px 16px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar > .brand {
  padding: 0 12px 24px;
  color: white;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #77839e;
  margin: 25px 16px 12px;
  font-weight: 800;
}
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: inherit;
  border-radius: 9px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  margin: 4px 0;
  min-height: 46px;
}
.nav-link:hover {
  background: #ffffff08;
  color: #fff;
}
.nav-link.active {
  background: #f5823218;
  color: #ffac6b;
  box-shadow: inset 3px 0 var(--accent);
}
.nav-count {
  margin-left: auto;
  padding: 0 6px;
  background: #f58232;
  color: #171a29;
  font-size: 11px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-message {
  display: flex;
  gap: 10px;
  margin: 24px 8px 10px;
  padding: 15px 8px;
  border-top: 1px solid #ffffff12;
  font-size: 11px;
  color: #c1c9d9;
}
.sidebar-message small {
  display: block;
  color: #8994ab;
  font-size: 10px;
  margin-top: 3px;
}
.main-shell {
  margin-left: 248px;
  min-width: 0;
}
.topbar {
  height: 84px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 18px;
}
.topbar-caption {
  font-size: 12px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.identity {
  border: 0;
  background: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}
.identity strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}
.identity small {
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #ac4d0d;
  font-weight: 800;
  font-size: 12px;
  flex: none;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  font-size: 23px;
}
.notification-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 7px;
  right: 7px;
}
.environment-banner {
  text-align: center;
  background: var(--accent-soft);
  color: #965017;
  font-size: 10px;
  letter-spacing: 0.9px;
  padding: 7px 12px;
  font-weight: 800;
}
#pageContent {
  padding: 34px;
  max-width: 1680px;
  margin: auto;
  outline: none;
  min-height: calc(100dvh - 160px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
  letter-spacing: 1.3px;
}
.page-heading h1 {
  font-size: 31px;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.page-heading .muted {
  font-size: 12px;
  max-width: 660px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.actions .button {
  font-size: 12px;
  padding: 10px 13px;
}
.actions .icon {
  width: 17px;
  height: 17px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 21px 22px;
  border-radius: 13px;
  position: relative;
  box-shadow: var(--shadow);
}
.metric > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.metric > .icon {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.metric > strong {
  display: block;
  font-size: 29px;
  line-height: 1.4;
  margin: 11px 0 3px;
  letter-spacing: -1px;
  font-weight: 800;
}
.metric strong small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.metric p {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px 24px;
}
.panel-toolbar h2,
.panel-title h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
}
.panel-toolbar .muted,
.panel-title .muted {
  font-size: 11px;
  margin-top: 5px;
}
.month-title,
.period-bar h2 {
  text-transform: capitalize;
}
.month-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.month-controls .button {
  min-height: 37px;
  padding: 7px 11px;
  font-size: 11px;
}
.month-controls .icon-button {
  min-height: 35px;
  min-width: 30px;
}
.month-input input {
  padding: 7px 8px;
  max-width: 182px;
  font-size: 12px;
  border-color: transparent;
  background: var(--bg);
}
.segmented {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 5px #0001;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 13px 0;
  background: var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.day-cell {
  padding: 12px 11px;
  min-width: 0;
  height: 132px;
  background: var(--surface);
  border: 0;
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  outline-offset: -3px !important;
  overflow: hidden;
}
.day-cell:hover {
  background: var(--accent-soft);
}
.day-cell.is-rest {
  background: var(--bg);
}
.day-cell.is-holiday {
  background: var(--accent-soft);
}
.day-cell.outside {
  background: var(--bg);
  opacity: 0.72;
  pointer-events: none;
}
.day-cell.is-today {
  box-shadow: inset 0 0 0 2px var(--accent);
  z-index: 1;
}
.day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 22px;
  gap: 4px;
}
.day-number {
  font-size: 12px;
  font-weight: 800;
}
.day-number small {
  display: none;
}
.day-flags {
  display: flex;
  gap: 5px;
  font-size: 12px;
  color: #bb651c;
}
.attention {
  display: grid;
  place-items: center;
  color: var(--danger);
  font-size: 10px;
  line-height: 1;
  background: #b73e4e12;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-weight: 800;
}
.day-status {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--line);
  align-self: flex-start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-trabalho,
.status-troca-trabalho {
  background: var(--blue-soft);
  color: var(--blue);
}
.status-extra,
.status-feriado {
  background: #f582321a;
  color: #a95a16;
}
.status-falta {
  background: #b73e4e12;
  color: var(--danger);
}
.status-ferias,
.status-abonado {
  background: #17825e12;
  color: var(--green);
}
.day-time {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.day-record {
  font-size: 9px;
  color: var(--muted);
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-atribuicao {
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 1px 6px;
  align-self: flex-start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  padding: 15px 24px;
  border-top: 1px solid var(--line);
}
.legend {
  display: flex;
  gap: 15px;
}
.legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.blue-dot {
  background: #6491d9;
}
.gray-dot {
  background: #a4aebf;
}
.orange-dot {
  background: var(--accent);
}
.bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.bottom-actions .button {
  font-size: 11px;
  min-height: 38px;
}
.bottom-actions .muted {
  font-size: 11px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 34px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg);
  color: var(--muted);
  padding: 14px 18px;
  white-space: nowrap;
}
td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
td .button {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 11px;
}
tbody tr:hover {
  background: var(--bg);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.badge.green {
  background: #17825e12;
  color: var(--green);
}
.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.orange {
  background: var(--accent-soft);
  color: #a95a16;
}
.panel-title {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
  align-items: start;
}
.detail-list {
  padding: 8px 24px;
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-list > div:last-child {
  border-bottom: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  font-weight: 700;
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}
.panel-note {
  background: var(--bg);
  font-size: 11px;
  color: var(--muted);
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.financial-total {
  background: var(--accent-soft);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a45115;
  font-size: 12px;
}
.financial-total strong {
  display: block;
  font-size: 29px;
  letter-spacing: -0.5px;
}
.financial-total .icon {
  width: 34px;
  height: 34px;
}
.period-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
.period-bar h2 {
  font-size: 20px;
}
.notice {
  padding: 16px 18px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 10px;
  font-size: 12px;
  margin: 18px 0;
  line-height: 1.7;
}
.notice.error {
  background: #b73e4e12;
  color: var(--danger);
}
.notice.warning {
  background: var(--accent-soft);
  color: #a45115;
}
.empty {
  text-align: center;
  padding: 65px 25px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin: 17px 0 7px;
}
.empty p {
  font-size: 12px;
  max-width: 440px;
  margin: auto;
}
.empty-symbol {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  padding: 18px;
}
.empty-symbol .icon {
  width: 27px;
  height: 27px;
}
.swap-list {
  padding: 22px;
  display: grid;
  gap: 15px;
}
.swap-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
}
.swap-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
}
.swap-heading small {
  color: var(--muted);
  font-size: 10px;
}
.swap-card h3 {
  font-size: 15px;
}
.swap-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
}
.swap-dates span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swap-card > p {
  font-size: 12px;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.swap-card > .actions {
  margin-top: 16px;
}
.form-panel {
  padding: 24px;
}
.profile-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.profile-heading h2 {
  font-size: 19px;
}
.profile-heading .muted {
  font-size: 11px;
}
.profile-heading .actions {
  margin-top: 9px;
}
.profile-heading .button {
  font-size: 10px;
  padding: 5px 9px;
  min-height: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  margin: 20px 0;
}
.form-grid label {
  font-size: 12px;
}
form > label {
  margin: 18px 0;
}
form input,
form select,
form textarea {
  font-size: 13px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
.check-row input {
  width: 16px;
  flex: none;
  accent-color: var(--accent);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
  margin-bottom: 22px;
}
.modal-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.modal-heading h2 {
  font-size: 24px;
  margin-bottom: 9px;
}
.modal-heading .muted {
  font-size: 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.separated-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.separated-actions .button {
  font-size: 11px;
}
.form-section {
  font-size: 15px;
  margin-top: 25px;
}
.point-pairs {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.point-pairs > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.point-pairs > div > span {
  font-size: 12px;
  color: var(--muted);
}
.point-pairs label {
  font-size: 11px;
}
.day-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 12px;
}
.day-atribuicao {
  display: flex;
  align-items: baseline;
  gap: 9px;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.day-atribuicao span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.day-atribuicao strong {
  color: var(--ink);
  font-weight: 700;
}
.audit-json {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  overflow: auto;
  max-height: 360px;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.search-label {
  max-width: 330px;
}
.search-label input {
  font-size: 12px;
  padding: 9px 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  border-radius: 6px;
}
.month-loading {
  min-height: 390px;
  display: grid;
  place-content: center;
  color: var(--muted);
}
.credential-summary {
  display: grid;
  gap: 24px;
}
.credential-summary section + section {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.skip-link:focus {
  top: 10px;
}
.mobile-menu {
  display: none;
}
body.dark .environment-banner,
body.dark .badge.orange,
body.dark .notice.warning,
body.dark .financial-total,
body.dark .avatar {
  color: #ffb47e;
}
body.dark .status-extra,
body.dark .status-feriado {
  color: #ffb47e;
}
@media (min-width: 1600px) {
  .day-cell {
    height: 150px;
  }
  .day-status,
  .day-time {
    font-size: 11px;
  }
  .day-record {
    font-size: 10px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 222px;
    padding-inline: 12px;
  }
  .main-shell {
    margin-left: 222px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  #pageContent {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .actions {
    max-width: 220px;
    justify-content: flex-end;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric > .icon {
    display: none;
  }
  .metric > strong {
    font-size: 26px;
  }
  .panel-toolbar {
    padding: 18px;
  }
  .day-cell {
    padding: 9px 8px;
    height: 125px;
  }
  .calendar-foot {
    padding-inline: 18px;
  }
  .segmented {
    margin-left: auto;
  }
  .split-panels {
    gap: 16px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 202px;
  }
  .main-shell {
    margin-left: 202px;
  }
  .nav-link {
    padding: 11px 10px;
    font-size: 12px;
    gap: 9px;
  }
  .sidebar .brand {
    font-size: 19px;
    padding-inline: 8px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .topbar-caption {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    height: 74px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric > strong {
    font-size: 25px;
    margin-top: 5px;
  }
  .split-panels {
    grid-template-columns: 1fr;
  }
  .month-controls {
    margin-left: auto;
  }
  .segmented {
    display: none;
  }
  .panel-toolbar > .month-controls {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .day-cell {
    height: 116px;
    padding: 8px 5px;
  }
  .day-status {
    font-size: 9px;
    padding: 1px 4px;
  }
  .day-time {
    font-size: 9px;
  }
  .day-record {
    font-size: 8px;
  }
  .bottom-actions {
    align-items: flex-start;
  }
  .app-footer {
    padding-inline: 26px;
  }
  .app-footer span {
    max-width: 240px;
    text-align: right;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 248px;
    transition: transform 0.18s ease;
    padding-top: 24px;
  }
  .menu-open .sidebar {
    transform: none;
    box-shadow: 20px 0 80px #0005;
  }
  .menu-open .topbar {
    position: relative;
    z-index: 40;
  }
  .menu-open .mobile-menu {
    margin-left: 214px;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid;
    margin-right: auto;
  }
  .topbar {
    padding: 0 20px;
    gap: 10px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .topbar .theme-button {
    min-height: 40px;
    padding: 9px;
  }
  .theme-button span {
    display: none;
  }
  .identity strong {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .identity {
    gap: 8px;
  }
  #pageContent {
    padding: 24px 18px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .actions {
    max-width: none;
    justify-content: flex-start;
    margin-top: 18px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 16px;
  }
  .metric > span {
    font-size: 10px;
  }
  .metric p {
    font-size: 9px;
  }
  .panel-toolbar {
    padding: 18px;
  }
  .month-title {
    font-size: 18px !important;
  }
  .day-cell {
    height: 122px;
    padding: 9px 7px;
  }
  .day-status {
    font-size: 10px;
  }
  .day-time {
    font-size: 9px;
  }
  .bottom-actions {
    flex-wrap: wrap;
  }
  .app-footer {
    padding: 20px 18px;
    font-size: 9px;
  }
  .environment-banner {
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .form-grid {
    gap: 14px;
  }
  .period-bar {
    flex-wrap: wrap;
  }
  .period-bar .month-controls {
    margin: 0;
    width: 100%;
    justify-content: space-between;
  }
  .profile-heading {
    align-items: flex-start;
  }
  .profile-heading h2 {
    font-size: 18px;
  }
  .panel-title {
    padding: 20px;
  }
}
body.dark input,
body.dark select {
  color-scheme: dark;
}
body:not(.dark) input,
body:not(.dark) select {
  color-scheme: light;
}
@media (max-width: 1000px) {
  .segmented {
    display: flex;
  }
}
@media (max-width: 540px) {
  .calendar-weekdays {
    display: none;
  }
  .calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .day-cell.outside {
    display: none;
  }
  .day-cell {
    height: 82px;
    display: grid;
    grid-template-columns: 51px minmax(0, 1fr) 114px;
    grid-template-rows: 25px 20px;
    align-content: center;
    gap: 1px 10px;
    padding: 12px 15px;
  }
  .day-top {
    grid-column: 1;
    grid-row: 1/3;
    display: block;
    align-self: center;
  }
  .day-number {
    font-size: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
  }
  .day-number small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    font-weight: 600;
  }
  .day-flags {
    position: absolute;
    left: 5px;
    top: 8px;
    font-size: 10px;
  }
  .day-status {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 11px;
    max-width: 100%;
    justify-self: start;
  }
  .day-time {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
    align-self: start;
  }
  .day-record {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 9px;
    text-align: right;
    margin: 0;
    align-self: center;
    white-space: normal;
  }
  .calendar-foot {
    font-size: 9px;
    gap: 10px;
  }
  .calendar-foot > span {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .point-pairs > div {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .point-pairs input {
    padding: 10px 7px;
  }
  .modal-heading h2 {
    font-size: 21px;
  }
  .modal-heading {
    gap: 12px;
  }
  dialog {
    padding: 22px 18px;
  }
  .modal-actions .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .swap-list {
    padding: 15px;
  }
  .swap-card {
    padding: 16px;
  }
  .swap-heading {
    flex-wrap: wrap;
  }
  .form-panel {
    padding: 20px;
  }
  .app-footer span {
    max-width: 200px;
  }
  .metric > strong {
    font-size: 27px;
  }
  .metrics .metric:nth-child(3),
  .metrics .metric:nth-child(4) {
    padding-block: 13px;
  }
  .metric strong small {
    font-size: 10px;
  }
  .identity small {
    font-size: 9px;
  }
  .topbar-actions {
    gap: 8px;
  }
}
