@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --ink: #1d2940;
  --muted: #768198;
  --line: #e8ebf1;
  --paper: #fff;
  --bg: #f5f6fa;
  --navy: #202d48;
  --indigo: #5865d9;
  --indigo-soft: #eff0ff;
  --green: #328b70;
  --red: #bd5a60;
  --amber: #ad7330;
  --shadow: 0 18px 50px #26355212;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px 'DM Sans',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.boot {
  padding: 3rem;
  color: var(--navy);
  font: 800 30px Manrope;
}
.boot span,
.mobile-brand span,
.error-screen h1 span {
  color: var(--indigo);
}
.layout {
  min-height: 100vh;
}
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  padding: 30px 17px 18px;
  color: #eef1fa;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font: 800 23px Manrope;
  letter-spacing: -1px;
  padding: 2px 10px 39px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  background: #7782ec;
  color: #fff;
  font: 800 20px Manrope;
}
.brand-dot {
  color: #aeb5ff;
}
.brand small {
  display: block;
  font: 600 8px 'DM Sans';
  letter-spacing: 1.5px;
  color: #aab3c9;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: none;
  color: #bac4d7;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.nav-item > span {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.nav-item i {
  font-style: normal;
  margin-left: auto;
  background: #ffffff18;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
}
.nav-item:hover,
.nav-item.on {
  background: #ffffff14;
  color: white;
}
.side-bottom {
  margin-top: auto;
  display: grid;
  gap: 5px;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff20;
  padding: 17px 4px 0;
  margin-top: 10px;
}
.profile-chip b,
.profile-chip small {
  display: block;
}
.profile-chip b {
  font-size: 12px;
}
.profile-chip small {
  color: #aab3c9;
  font-size: 11px;
  margin-top: 3px;
}
.profile-chip > button {
  margin-left: auto;
  background: none;
  border: 0;
  color: #aab3c9;
}
.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf0ff;
  color: var(--indigo);
  font-weight: 700;
}
.main {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  height: 74px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-date {
  text-transform: capitalize;
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  color: var(--muted);
}
.icon-btn:hover {
  border-color: #bfc5ef;
  color: var(--indigo);
}
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.15s;
}
.primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 4px 12px #5865d932;
}
.primary:hover {
  background: #4854c1;
  transform: translateY(-1px);
}
.soft {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.soft:hover {
  border-color: #b7bdeb;
  background: #fafaff;
}
.small {
  padding: 8px 12px;
  font-size: 12px;
}
.content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 5vw 80px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 9px;
}
.page-head h1,
.detail-title h1,
.login-card h1 {
  font: 700 30px Manrope;
  letter-spacing: -1.1px;
  margin: 0;
  color: var(--ink);
}
.muted,
.page-head p {
  color: var(--muted);
}
.page-head p {
  margin: 8px 0 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 34px;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 18px 20px;
  box-shadow: 0 2px 7px #17244004;
}
.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font: 700 30px Manrope;
  margin: 8px 0 3px;
}
.metric small {
  font-size: 11px;
}
.warn-text {
  color: var(--amber) !important;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 27px 0 10px;
}
.section-head h2,
.card-title h2 {
  font: 700 15px Manrope;
  margin: 0;
}
.section-head > span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: #e9ecf5;
  color: var(--muted);
  font-size: 11px;
}
.contact-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.contact-row {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef0f4;
  min-height: 69px;
}
.contact-row:last-child {
  border-bottom: 0;
}
.contact-row:hover {
  background: #fafaff;
}
.person {
  background: #eef0ff;
  color: #5d68ce;
}
.row-main {
  min-width: 0;
  flex: 1;
}
.row-main b {
  display: block;
  font-size: 13px;
}
.row-main small,
.row-meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.row-meta {
  text-align: right;
  min-width: 140px;
}
.row-meta small {
  font-size: 10px;
}
.date-pill,
.tag {
  display: inline-block;
  border-radius: 6px;
  background: #f1f2f6;
  color: #66718a;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
}
.date-pill.warn {
  background: #fff4e6;
  color: var(--amber);
}
.date-pill.today {
  background: #edf6f3;
  color: var(--green);
}
.chevron {
  font-size: 23px;
  color: #a4adbf;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.searchbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: #98a1b4;
}
.searchbox span {
  font-size: 21px;
}
.searchbox input {
  border: 0;
  outline: 0;
  min-height: 42px;
  width: 100%;
  background: transparent;
}
.filters select,
.filter-panel select,
.filter-panel input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 10px;
  outline-color: #aab0ed;
}
.list-caption {
  color: var(--muted);
  font-size: 11px;
  margin: 16px 0 8px;
}
.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.filter-panel > label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.check-filters {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 37px;
}
.check-label {
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
}
.filter-panel input[type='checkbox'],
.milestone input,
.switch-line input {
  accent-color: var(--indigo);
}
.text-button {
  border: 0;
  background: none;
  color: var(--indigo);
  font-weight: 600;
  padding: 7px;
}
.text-button:hover {
  text-decoration: underline;
}
.calendar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 7px #17244004;
}
.cal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.cal-header h2 {
  font: 700 16px Manrope;
  text-transform: capitalize;
  margin: 0 auto 0 3px;
}
.cal-header .text-button {
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays {
  background: #fafbfc;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  padding: 11px 0;
}
.day-cell {
  height: 86px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-right: 1px solid #eff0f4;
  border-top: 1px solid #eff0f4;
  background: white;
  padding: 7px;
  overflow: hidden;
}
.day-cell:nth-child(7n) {
  border-right: 0;
}
.day-cell:hover {
  background: #f8f8ff;
}
.day-cell > span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 11px;
}
.day-cell.current > span {
  background: var(--indigo);
  color: white;
}
.day-cell.outside {
  color: #bdc2ce;
  background: #fcfcfd;
}
.cal-event {
  display: block;
  margin-top: 3px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 15px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.exchange,
.event-dot.exchange,
.legend-exchange {
  background: #e8eaff;
  color: #5360ca;
}
.cal-event.reminder,
.event-dot.reminder,
.legend-reminder {
  background: #e4f3ed;
  color: #37846d;
}
.more {
  display: block;
  font-size: 9px;
  color: var(--muted);
  padding-left: 3px;
}
.legend {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 13px 17px;
  color: var(--muted);
  font-size: 10px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.day-detail {
  margin-top: 18px;
}
.day-event {
  border: 0;
  background: none;
  width: 100%;
  padding: 13px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.day-event > span {
  flex: 1;
}
.day-event b,
.day-event small {
  display: block;
}
.day-event small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.event-type {
  color: var(--muted);
  font-size: 10px;
}
.back-link {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
  margin-bottom: 20px;
}
.back-link:hover {
  color: var(--indigo);
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar.big {
  width: 54px;
  height: 54px;
  font-size: 18px;
}
.detail-title {
  flex: 1;
}
.detail-title h1 {
  font-size: 27px;
}
.tagline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.tag.danger {
  background: #fff0f0;
  color: var(--red);
  margin-left: 5px;
}
.detail-actions {
  display: flex;
  gap: 9px;
  margin: 22px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}
.main-column,
.detail-side {
  display: grid;
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 7px #17244004;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-title > span {
  font-size: 10px;
  color: var(--muted);
}
.highlight-card {
  border-color: #e1e3fa;
  background: linear-gradient(135deg, #fff, #fafaff);
}
.exchange-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.channel-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eeefff;
  color: var(--indigo);
  width: 36px;
  height: 36px;
  font-size: 17px;
  flex: 0 0 auto;
}
.exchange-summary b {
  font-size: 12px;
}
.exchange-summary p,
.timeline-item p,
.commitment-text {
  font-size: 12px;
  color: #68738a;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 6px 0;
}
.commitment {
  padding: 9px 11px;
  background: #f4f5ff;
  border-radius: 7px;
  margin-top: 9px;
}
.commitment b,
.timeline-commit b {
  font-size: 10px;
  color: #5964c7;
}
.commitment p,
.timeline-commit p {
  margin: 4px 0 0;
}
.timeline {
  border-left: 1px solid #e4e7f0;
  margin-left: 5px;
}
.timeline-item {
  position: relative;
  padding: 0 0 21px 19px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8189e5;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #8189e5;
}
.timeline-dot.refusal {
  background: #cf797a;
  box-shadow: 0 0 0 1px #cf797a;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.timeline-head b {
  font-size: 11px;
}
.timeline-head time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.sep {
  color: #a0a8b8;
}
.timeline-commit {
  border-left: 2px solid #dcdffe;
  padding: 5px 10px;
  margin-top: 8px;
}
.info-line {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f4;
}
.info-line:last-of-type {
  border: 0;
}
.info-line small,
.info-line span {
  display: block;
}
.info-line small {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-line span {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.full {
  width: 100%;
}
.info-line a {
  text-decoration: none;
  color: var(--indigo);
}
.reminder-box {
  padding: 12px;
  background: #eef7f3;
  border-radius: 8px;
  color: #337e68;
}
.reminder-box b,
.reminder-box small {
  display: block;
}
.reminder-box b {
  font-size: 12px;
}
.reminder-box small {
  margin-top: 5px;
  font-size: 10px;
}
.button-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f4;
}
.milestone:last-child {
  border: 0;
}
.milestone > span {
  flex: 1;
}
.milestone b,
.milestone small {
  display: block;
}
.milestone b {
  font-size: 11px;
}
.milestone small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.date-edit {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 17px;
}
.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.switch-line b,
.switch-line small {
  display: block;
}
.switch-line b {
  font-size: 11px;
}
.switch-line small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  text-align: center;
  padding: 26px 12px;
  color: var(--muted);
}
.empty h2 {
  font: 600 14px Manrope;
  color: var(--ink);
  margin: 8px 0;
}
.empty p {
  font-size: 11px;
  margin: 0;
}
.empty-icon {
  display: block;
  font-size: 22px;
  color: #9aa1e3;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17233a77;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}
.modal {
  background: white;
  border-radius: 14px;
  width: min(600px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-shadow: 0 24px 80px #11182740;
}
.modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal > header h2 {
  font: 700 16px Manrope;
  margin: 0;
}
.modal-body {
  padding: 19px 21px;
  display: grid;
  gap: 13px;
}
.modal-body > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px;
  border-top: 1px solid var(--line);
}
.modal label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #59647a;
}
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  padding: 10px 11px;
  outline-color: #a5aaec;
  background: white;
  font-size: 12px;
}
.modal textarea {
  resize: vertical;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-input {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.quick-input textarea {
  flex: 1;
}
.quick-input .button {
  white-space: nowrap;
}
.subform {
  border: 1px solid #e5e6f6;
  background: #fbfbff;
  padding: 13px;
  border-radius: 9px;
  display: grid;
  gap: 11px;
}
.subform-title {
  font-size: 11px;
  font-weight: 700;
  color: #626ccc;
}
.divider {
  height: 1px;
  background: var(--line);
}
.modal-body > .muted {
  font-size: 11px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #24334f;
  color: white;
  padding: 12px 17px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: calc(100vw - 28px);
}
.toast.error {
  background: #8d3e45;
}
.mobile-nav,
.mobile-brand {
  display: none;
}
.login-screen,
.error-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 70% 20%, #e8eaff 0, transparent 36%), var(--bg);
}
.login-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 38px;
  box-shadow: 0 15px 60px #283a5914;
}
.login-card .brand {
  color: var(--navy);
  padding: 0 0 46px;
}
.login-card h1 {
  font-size: 26px;
  line-height: 1.25;
}
.login-card > p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 25px;
}
.login-card form {
  display: grid;
  gap: 14px;
}
.login-card input {
  margin-top: 2px;
}
.login-foot {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 24px;
}
.login-error {
  min-height: 16px;
  color: var(--red);
  font-size: 11px;
}
.error-screen {
  text-align: center;
}
.error-screen h1 {
  font: 800 32px Manrope;
}
.error-screen p {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .sidebar {
    width: 220px;
  }
  .main {
    margin-left: 220px;
  }
  .content {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .main {
    margin: 0;
    padding-bottom: 70px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .mobile-brand {
    display: block;
    background: none;
    border: 0;
    font: 800 21px Manrope;
    color: var(--navy);
  }
  .top-date {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .button {
    padding: 9px 11px;
  }
  .top-actions .button span {
    display: none;
  }
  .content {
    padding: 27px 17px 40px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 12px;
    line-height: 1.5;
  }
  .page-head > .button {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric {
    padding: 13px 12px;
  }
  .metric span {
    font-size: 10px;
    min-height: 28px;
  }
  .metric strong {
    font-size: 24px;
    margin: 5px 0;
  }
  .metric small {
    font-size: 9px;
  }
  .contact-row {
    padding: 12px 11px;
    gap: 9px;
  }
  .avatar.person {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .row-meta {
    min-width: 90px;
  }
  .row-meta small {
    font-size: 9px;
  }
  .row-main b {
    font-size: 12px;
  }
  .row-main small {
    max-width: 40vw;
  }
  .date-pill,
  .tag {
    font-size: 9px;
    padding: 4px 6px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .searchbox {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
  }
  .filter-panel {
    gap: 10px;
  }
  .filter-panel > label {
    flex: 1 1 44%;
    min-width: 130px;
  }
  .check-filters {
    flex-wrap: wrap;
  }
  .calendar-grid.weekdays {
    font-size: 9px;
  }
  .day-cell {
    height: 68px;
    padding: 4px;
  }
  .day-cell > span {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .cal-event {
    font-size: 8px;
    padding: 0 2px;
  }
  .detail-head {
    gap: 10px;
  }
  .detail-title h1 {
    font-size: 23px;
  }
  .detail-head > .button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .detail-actions {
    margin: 17px 0;
  }
  .detail-actions .button {
    flex: 1;
    padding: 10px 7px;
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side {
    grid-row: 1;
  }
  .detail-side .card {
    padding: 15px;
  }
  .main-column .card {
    padding: 15px;
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal {
    border-radius: 15px 15px 0 0;
    max-height: 92vh;
  }
  .modal-body {
    padding: 16px;
  }
  .modal > header,
  .modal footer {
    padding: 14px 16px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 6;
    bottom: 0;
    inset-inline: 0;
    height: 65px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav button {
    border: 0;
    background: none;
    color: #8a93a7;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    font-size: 18px;
    min-width: 60px;
  }
  .mobile-nav button.on {
    color: var(--indigo);
  }
  .mobile-nav small {
    font-size: 9px;
  }
  .form-grid {
    gap: 9px;
  }
  .login-card {
    padding: 28px 23px;
  }
}
@media (max-width: 390px) {
  .content {
    padding-left: 13px;
    padding-right: 13px;
  }
  .page-head > .button {
    font-size: 10px;
    padding: 9px;
  }
  .metric {
    padding: 12px 9px;
  }
  .row-meta {
    min-width: 78px;
  }
  .day-cell {
    height: 58px;
  }
  .cal-event {
    line-height: 12px;
  }
  .topbar {
    padding: 0 13px;
  }
}

@media (max-width: 760px) {
  .detail-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .main-column,
  .detail-side {
    display: contents;
  }
  .highlight-card {
    order: 1;
  }
  .appointment-card {
    order: 2;
  }
  .detail-side > .card {
    order: 3;
  }
  .main-column > .card:not(.highlight-card):not(.appointment-card) {
    order: 4;
  }
}
