/* Ama SI Doctor Portal: white top bar, navy sidebar with an orange → purple active item, white cards on a pale page. */
:root {
  --p-indigo: #5b3df5;
  --p-indigo-2: #7c4dff;
  --p-side: #0d1442;
  --p-side-2: #161c58;
  --p-card: #ffffff;
  --p-line: #e7eaf3;
  --p-soft: #f6f7fc;
  --p-text: #121a3a;
  --p-muted: #5d6685;
  --p-faint: #8d95b0;
}
.portal {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f6fb;
  color: var(--p-text);
  font-size: 14px;
}
.portal button,
.overlay button,
.drawer button {
  font: inherit;
  color: inherit;
}
svg.i.xs {
  width: 14px;
  height: 14px;
}
svg.i.dots {
  stroke-width: 3.2;
}
svg.i.big2 {
  width: 30px;
  height: 30px;
  color: #e5484d;
}
svg.i.huge {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.6);
}
.hide {
  display: none !important;
}
.grow {
  flex: 1;
}
.right {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.center {
  text-align: center;
}
.small {
  font-size: 12.5px;
}
.big {
  font-size: 18px;
}

/* top bar */
.ptop {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--p-line);
}
.pbrand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--p-text);
  width: 280px;
  flex: none;
}
.pbrand img {
  width: 40px;
  height: 40px;
}
.pbrand-name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #121a5a;
}
.pbrand-name .si {
  background: linear-gradient(90deg, #f43f5e, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pbrand-for {
  font-size: 18px;
  font-weight: 750;
  margin-left: 4px;
}
.qsearch {
  position: relative;
  flex: 1;
  max-width: 640px;
}
.qsearch label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fbfbfe;
  color: var(--p-faint);
}
.qsearch input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font: inherit;
  color: var(--p-text);
}
.qbox {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 26, 58, 0.14);
  padding: 6px;
  z-index: 30;
}
.qbox button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.qbox button:hover {
  background: var(--p-soft);
}
.qbox span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qbox small {
  color: var(--p-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qbox p {
  padding: 10px;
  color: var(--p-muted);
}
.ptop-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: #2b335a;
  cursor: pointer;
  flex: none;
}
.iconbtn:hover {
  background: var(--p-soft);
}
.iconbtn.flat {
  width: 32px;
  height: 32px;
}
.iconbtn.danger,
.plink.danger {
  color: #e5484d;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.iconbtn .badge {
  position: absolute;
  top: 1px;
  right: 0;
  border: 2px solid #fff;
}
.badge.inline {
  margin-left: 6px;
}
.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d5f0e2;
  background: #effbf4;
  color: #0f8a59;
  font-weight: 650;
  cursor: pointer;
}
.online .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa3bb;
}
.online.on .dot {
  background: #16b46e;
}
.online:not(.on) {
  background: #f3f4f8;
  border-color: var(--p-line);
  color: var(--p-muted);
}
.online:disabled {
  cursor: default;
}
.online.side {
  height: 26px;
  margin-top: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
  background: rgba(22, 180, 110, 0.18);
  border-color: transparent;
  color: #6ff0b0;
}
.online.side:not(.on) {
  background: rgba(255, 255, 255, 0.1);
  color: #c9cde6;
}
.online.big {
  height: 42px;
  font-size: 15px;
}
.me {
  position: relative;
}
.me-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
}
.me-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.me-text small {
  color: var(--p-muted);
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 26, 58, 0.14);
  padding: 6px;
  z-index: 40;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.menu button:hover {
  background: var(--p-soft);
}
.more {
  flex: none;
}

/* avatars */
.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.av.sm {
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}
.av.md {
  width: 40px;
  height: 40px;
}
.av.lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.av.xl {
  width: 64px;
  height: 64px;
  font-size: 21px;
}
.av.xxl {
  width: 92px;
  height: 92px;
  font-size: 30px;
}

/* sidebar */
.side {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 12px 16px;
  background: linear-gradient(180deg, var(--p-side), var(--p-side-2));
  color: #e8eaf8;
  border-top-right-radius: 18px;
  overflow-y: auto;
}
.side-me {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px 6px;
}
.side-me .av {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}
.side-me > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.side-me b {
  font-size: 14.5px;
  color: #fff;
}
.side-me small {
  color: #c4c8e6;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e1e4f6;
  text-decoration: none;
  font-size: 14.5px;
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
}
.side-nav a.on {
  background: linear-gradient(90deg, #f97316, #c026d3 70%, #8b5cf6);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 6px 18px rgba(192, 38, 211, 0.35);
}
.side-nav a span:first-of-type {
  flex: 1;
}
.side-badge {
  background: #ef4444;
}
.side-ai {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.side-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #fff;
}
.side-ai-head img {
  width: 36px;
  height: 36px;
}
.side-ai p {
  margin: 10px 0 12px;
  color: #c9cde6;
  font-size: 13px;
  line-height: 1.45;
}
.side-ai-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #121a5a !important;
  font-weight: 750 !important;
  font-size: 17px !important;
  cursor: pointer;
}
.side-ai-btn img {
  width: 28px;
  height: 28px;
}

/* the page area */
.pwrap {
  min-width: 0;
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmain {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  outline: none;
}
.pbanner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
}
.pbanner > div {
  flex: 1;
}
.pbanner.amber {
  background: linear-gradient(120deg, #f59e0b, #f97316);
}
.pbanner.blue {
  background: linear-gradient(120deg, #2563eb, #7c3aed);
}
.pbanner.red {
  background: linear-gradient(120deg, #e5484d, #c2410c);
}
.pbanner .note {
  margin-top: 4px;
  font-weight: 650;
}
.phead {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.phead-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}
.phead-text h1 {
  font-size: 25px;
  letter-spacing: -0.01em;
}
.phead-text p {
  color: var(--p-muted);
}
.phead-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.pinfo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef2ff;
  color: #3730a3;
}

/* buttons */
.pb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 650 !important;
  cursor: pointer;
  white-space: nowrap;
}
.pb svg.i {
  width: 17px;
  height: 17px;
}
.pb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pb.primary {
  background: linear-gradient(90deg, var(--p-indigo), var(--p-indigo-2));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(91, 61, 245, 0.25);
}
.phead-actions .pb.primary:last-child {
  background: linear-gradient(90deg, #6d3df2, #f97316);
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.pb.blue {
  background: #1d6cf2;
  color: #fff !important;
}
.pb.outline {
  background: #fff;
  border-color: #d9dcf0;
  color: #3b2fd1 !important;
}
.pb.outline:hover {
  background: #f6f5ff;
}
.pb.soft {
  background: #f1efff;
  color: #4b34e0 !important;
}
.pb.white {
  background: #fff;
  color: #1e1b4b !important;
}
.pb.flat {
  background: none;
  color: #4b34e0 !important;
  padding: 0 10px;
}
.pb.danger {
  background: #fff;
  border-color: #f4b7b9;
  color: #e5484d !important;
}
.plink {
  border: none;
  background: none;
  color: #4b34e0 !important;
  font-weight: 650 !important;
  cursor: pointer;
  padding: 0;
}
.pair2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

/* chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  background: #eef0f5;
  color: #56607d;
}
.chip.green {
  background: #e6f8ee;
  color: #0f8a59;
}
.chip.blue {
  background: #e8f0ff;
  color: #2f62e0;
}
.chip.amber {
  background: #fff3df;
  color: #c26a00;
}
.chip.red {
  background: #ffe9ea;
  color: #d93a40;
}
.chip.pink {
  background: #ffe8f0;
  color: #d63c74;
}
.chip.purple {
  background: #f0eaff;
  color: #6d3df2;
}
.chip.orange {
  background: #fff0e4;
  color: #e2570a;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
i.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #9aa3bb;
}
i.dot.blue {
  background: #2f62e0;
}
i.dot.red {
  background: #e5484d;
}
i.dot.green {
  background: #16b46e;
}

/* cards */
.pc {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(18, 26, 58, 0.04);
}
.pc.flush {
  padding: 0;
  overflow: hidden;
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.pc-head h2,
.pc-head h3 {
  font-size: 17px;
  font-weight: 750;
}
.pc-head h2 {
  font-size: 20px;
}
.pc-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pc-title {
  font-size: 16px;
}
.pc h4 {
  margin: 4px 0 0;
  font-size: 14.5px;
}
.pempty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  color: var(--p-faint);
  text-align: center;
}
.pempty svg.i {
  width: 30px;
  height: 30px;
}
.pempty p {
  color: var(--p-muted);
  max-width: 360px;
}
.pmuted {
  color: var(--p-muted);
}
.perror {
  color: #d93a40;
  font-weight: 600;
}
.dcol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* stat cards */
.stats {
  display: grid;
  gap: 14px;
}
.stats.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--p-line);
  background: #fff;
  text-align: left;
  min-width: 0;
}
button.stat {
  cursor: pointer;
}
button.stat:hover {
  box-shadow: 0 8px 20px rgba(18, 26, 58, 0.08);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: none;
}
.stat-icon svg.i {
  width: 26px;
  height: 26px;
}
.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.stat-body small {
  font-weight: 650;
  color: var(--p-text);
  font-size: 13.5px;
}
.stat-body b {
  font-size: 24px;
  line-height: 1.2;
}
.stat-sub {
  font-size: 12.5px;
  color: var(--p-muted);
}
.stat-sub .up,
.up {
  color: #0f8a59;
}
.stat-go {
  color: var(--p-faint);
}
.stat.blue {
  background: linear-gradient(135deg, #fff, #f2f6ff);
}
.stat.blue .stat-icon {
  background: #e3ecff;
  color: #2f62e0;
}
.stat.purple {
  background: linear-gradient(135deg, #fff, #f6f2ff);
}
.stat.purple .stat-icon {
  background: #ece5ff;
  color: #6d3df2;
}
.stat.pink {
  background: linear-gradient(135deg, #fff, #fff2f6);
}
.stat.pink .stat-icon {
  background: #ffe2ec;
  color: #e0457b;
}
.stat.green {
  background: linear-gradient(135deg, #fff, #effaf4);
}
.stat.green .stat-icon {
  background: #dcf5e7;
  color: #0f8a59;
}
.stat.amber {
  background: linear-gradient(135deg, #fff, #fff8ec);
}
.stat.amber .stat-icon {
  background: #ffefd2;
  color: #e08a00;
}

/* layout grids */
.dgrid {
  display: grid;
  gap: 14px;
  align-items: start;
}
.dgrid.r1,
.dgrid.r2 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.95fr);
}
.dgrid.r3 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.8fr);
}
.agrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.acol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pgrid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}
.vgrid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.cgrid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}
.rxgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}
.rxleft {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.rxmain {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ovgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.ovgrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ovgrid.wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

/* forms */
.psearch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: #fff;
  color: var(--p-faint);
  min-width: 0;
  flex: 1;
}
.psearch input {
  border: none;
  outline: none;
  background: none;
  font: inherit;
  color: var(--p-text);
  min-width: 0;
  flex: 1;
}
.psel,
.pinput {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe3ef;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--p-text);
  min-width: 0;
}
textarea.pinput {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}
.pinput:focus,
.psel:focus,
.psearch:focus-within,
.qsearch label:focus-within {
  outline: 2px solid #c7bcff;
  outline-offset: 0;
  border-color: #8b7cf6;
}
.pinput:disabled {
  background: var(--p-soft);
  color: var(--p-muted);
}
.pinput.strong {
  font-weight: 650;
}
.plabel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #36405f;
  min-width: 0;
}
.plabel .pinput {
  width: 100%;
}
.pgrid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pgrid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.prow {
  display: flex;
  gap: 8px;
}
.daypick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.daypick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #dfe3ef;
  cursor: pointer;
  font-weight: 600;
}
.daypick label.on {
  background: #f1efff;
  border-color: #b9adff;
  color: #4b34e0;
}

/* tabs */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1f2f8;
  border-radius: 9px;
}
.seg button {
  border: none;
  background: none;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600 !important;
  color: #3e4766;
}
.seg button.on {
  background: var(--p-indigo);
  color: #fff;
}
.seg.full {
  display: flex;
}
.seg.full button {
  flex: 1;
  padding: 6px 8px;
  font-size: 12.5px;
}
.seg.full button.on {
  background: #fff;
  color: #4b34e0;
  box-shadow: 0 1px 3px rgba(18, 26, 58, 0.1);
}
.utabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--p-line);
  overflow-x: auto;
}
.utabs button {
  border: none;
  background: none;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  color: #3e4766;
  font-weight: 550 !important;
}
.utabs button.on {
  color: #4b34e0;
  border-bottom-color: #4b34e0;
  font-weight: 700 !important;
}
.ttabs,
.ctabs,
.vtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ttabs button,
.ctabs button,
.vtabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-weight: 600 !important;
  color: #3e4766;
}
.ttabs button.on,
.ctabs button.on,
.vtabs button.on {
  background: var(--p-indigo);
  color: #fff;
}
.ttabs button svg.i {
  width: 16px;
  height: 16px;
  color: #e5484d;
}
.ttabs button.on svg.i {
  color: #fff;
}
.vtabs {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
}
.vtabs button {
  padding: 8px 28px;
}
.ctabs {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  padding: 4px;
}
.ctabs.inline {
  border: none;
  padding: 0;
  background: none;
}
.ctabs.inline button.on {
  background: #eef0ff;
  color: #4b34e0;
}

/* dashboard */
.trows {
  display: flex;
  flex-direction: column;
}
.trow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid #f0f2f8;
}
.trow:last-child {
  border-bottom: none;
}
.trow-time {
  width: 72px;
  flex: none;
  font-size: 13px;
  color: #36405f;
}
.trow-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.trow-main small {
  color: var(--p-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trow-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trow-btns .pb {
  height: 30px;
  padding: 0 14px;
  font-size: 12.5px;
}
.cal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cal-bar b {
  flex: 1;
  text-align: center;
}
.cal-bar.center b {
  font-size: 17px;
}
.cal-bar .seg {
  margin-left: auto;
}
.cal-day {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  max-height: 330px;
  overflow-y: auto;
}
.cal-hour {
  display: flex;
  gap: 10px;
  min-height: 42px;
  border-top: 1px solid #f0f2f8;
  padding: 3px 0;
}
.cal-label {
  width: 44px;
  flex: none;
  font-size: 12px;
  color: var(--p-muted);
}
.cal-free {
  flex: 1;
}
.cal-ev {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid;
  border-left-width: 4px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.cal-ev span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.cal-ev small {
  color: var(--p-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ev.blue,
.sblock.blue,
.sside.blue {
  background: #eef4ff;
  border-color: #bcd2ff;
}
.cal-ev.green,
.sblock.green,
.sside.green {
  background: #ecfaf2;
  border-color: #a9e5c6;
}
.cal-ev.orange,
.sblock.orange,
.sside.orange {
  background: #fff4ea;
  border-color: #fbcf9f;
}
.cal-ev.req,
.sblock.req {
  border-style: dashed;
}
.cal-ev svg.i {
  color: #2f62e0;
  width: 18px;
  height: 18px;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.cal-wd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  padding: 8px 4px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  min-height: 150px;
  cursor: pointer;
  text-align: center;
}
.cal-wd.today {
  border-color: #b9adff;
  background: #f8f6ff;
}
.cal-pill {
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-pill.blue {
  background: #e3ecff;
}
.cal-pill.green {
  background: #dcf5e7;
}
.cal-pill.orange {
  background: #ffe9d4;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}
.mgrid-h {
  font-size: 11.5px;
  color: var(--p-muted);
  padding: 4px 0;
}
.mday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0 4px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.mday:hover {
  background: var(--p-soft);
}
.mday.out {
  color: #b9bfd3;
}
.mday.today {
  font-weight: 800;
  color: #4b34e0;
}
.mday.on {
  background: var(--p-indigo);
  color: #fff;
}
.mdots {
  display: flex;
  gap: 2px;
  height: 5px;
}
.mdots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e5484d;
}
.mday.on .mdots i {
  background: #fff;
}
.rlist {
  display: flex;
  flex-direction: column;
}
.rrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid #f0f2f8;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.rrow:last-child {
  border-bottom: none;
}
.rrow-main,
.rrow-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rrow-main {
  flex: 1;
}
.rrow-main small,
.rrow-side small {
  color: var(--p-muted);
  font-size: 12px;
}
.rrow-side {
  align-items: flex-start;
  gap: 4px;
}
.ctiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ctile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid;
  cursor: pointer;
  text-align: center;
}
.ctile svg.i {
  width: 30px;
  height: 30px;
}
.ctile.purple {
  background: linear-gradient(135deg, #5b3df5, #7c4dff);
  border-color: transparent;
  color: #fff !important;
}
.ctile.green {
  background: #effaf4;
  border-color: #bfe9d2;
}
.ctile.green svg.i {
  color: #12a46b;
}
.ctile.orange {
  background: #fff5ec;
  border-color: #fbd3ad;
}
.ctile.orange svg.i {
  color: #f97316;
}
.ctile small {
  opacity: 0.85;
}
.aicard-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.aicard-head img {
  width: 44px;
  height: 44px;
}
.aicard-head p {
  color: var(--p-muted);
  margin-top: 4px;
}
.aicard-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.aimini .pb {
  width: 100%;
}
.avail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 10px 0;
}
.avail > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.avail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e5ef;
}
.avail-dot.on {
  background: #16b46e;
}
.avail-dot.today {
  outline: 3px solid #d8d0ff;
}

/* the consultation stage */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  background: radial-gradient(circle at 50% 40%, #3a2a5e, #141331 70%);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.stage.small {
  min-height: 250px;
}
.stage-patient {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 70px;
}
.stage-patient b {
  font-size: 20px;
}
.stage-patient small {
  opacity: 0.75;
}
.stage-timer {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.45);
  font-weight: 700;
}
.stage-self {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.stage-self video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.stage-tag {
  position: absolute;
  left: 14px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.5);
  border-left: 3px solid #16b46e;
}
.stage-tag small {
  opacity: 0.8;
}
.stage.small .stage-tag {
  bottom: 64px;
}
.stage-note {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-30%);
  width: min(56%, 420px);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  line-height: 1.4;
}
.stage-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px;
  background: rgba(10, 10, 30, 0.75);
}
.ctl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: #fff !important;
  cursor: pointer;
  min-width: 64px;
}
.ctl span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.ctl small {
  font-size: 12px;
}
.ctl.end {
  background: #ef4444;
  border-radius: 10px;
  padding: 6px 14px;
}
.ctl.end span {
  background: none;
  transform: rotate(135deg);
}
.cinfo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cinfo-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cinfo-head > div:not(.right) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cinfo-head small {
  color: var(--p-muted);
}
dl.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 13.5px;
}
dl.kv dt {
  color: var(--p-muted);
}
dl.kv dd {
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.reason {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--p-soft);
  white-space: pre-wrap;
  color: #2b335a;
}
.kvline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f8;
}

/* chat */
.pchat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.pthread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  min-height: 160px;
  overflow-y: auto;
  padding: 4px 2px;
}
.pthread.tall {
  max-height: 520px;
  min-height: 360px;
}
.pday {
  align-self: center;
  font-size: 12px;
  color: var(--p-muted);
  padding: 2px 10px;
}
.pmsg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 82%;
}
.pmsg.doctor {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.pmsg-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pmsg.doctor .pmsg-body {
  align-items: flex-end;
}
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.pmsg.user .bubble {
  background: #f1f2f7;
  border-bottom-left-radius: 4px;
}
.pmsg.doctor .bubble {
  background: linear-gradient(90deg, #5b3df5, #7c4dff);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.pmsg small {
  font-size: 11px;
  color: var(--p-faint);
}
.pcompose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 6px;
  border: 1px solid #dfe3ef;
  border-radius: 12px;
}
.pcompose textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font: inherit;
  padding: 7px 6px;
  min-height: 36px;
  max-height: 160px;
}
.sendbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #5b3df5, #7c4dff);
  color: #fff !important;
  cursor: pointer;
  flex: none;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick button {
  border: 1px solid #d9dcf0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12.5px;
  text-align: left;
}
.quick button:hover {
  background: #f6f5ff;
}

/* notes */
.pnotes-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pnote-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pnotes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.pnote {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbea;
  border: 1px solid #f6e7a8;
}
.pnote p {
  white-space: pre-wrap;
}
.pnote small {
  display: flex;
  justify-content: space-between;
  color: var(--p-muted);
  margin-top: 4px;
}

/* shared readings */
.pshared {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.pshared table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 13.5px;
}
.pshared td {
  padding: 5px 0;
  border-bottom: 1px solid #f0f2f8;
}
.pshared td:last-child {
  text-align: right;
  font-weight: 650;
}
.ptiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.ptile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--p-line);
}
.ptile > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ptile small {
  color: var(--p-muted);
  font-size: 11.5px;
}
.ptile svg.i {
  color: #e5484d;
}
.ptile.warning {
  background: #fff8ec;
  border-color: #fbd9a6;
}
.ptile.danger {
  background: #fff1f1;
  border-color: #f7b9bb;
}

/* appointments */
.sbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--p-line);
}
.sbar-title {
  font-size: 18px;
  min-width: 170px;
  text-align: center;
}
.sbar .psearch {
  flex: 0 1 220px;
}
.sched-wrap .sched,
.sched-wrap .wgrid,
.sched-wrap .mgrid {
  padding: 0 0 8px;
}
.sched-wrap > .mgrid {
  padding: 12px;
}
.sched {
  display: flex;
  flex-direction: column;
}
.sched-head,
.sched-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.sched-head span {
  padding: 10px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--p-line);
  border-left: 1px solid var(--p-line);
  background: #fbfbfe;
}
.sched-head span:first-child {
  border-left: none;
}
.sched-row > * {
  min-height: 52px;
  border-bottom: 1px solid #f0f2f8;
  border-left: 1px solid #f0f2f8;
  margin: 0;
}
.sched-time {
  border-left: none !important;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--p-muted);
}
.sched-row.off .sched-free {
  background: repeating-linear-gradient(135deg, #fafbfe, #fafbfe 6px, #f3f4f9 6px, #f3f4f9 12px);
  color: var(--p-faint);
  font-size: 12px;
  padding: 8px;
}
.sblock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 4px !important;
  border-radius: 8px;
  border: 1px solid;
  border-left-width: 4px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.sblock > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sblock small {
  color: var(--p-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sblock.on {
  outline: 2px solid #7c4dff;
}
.sblock-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #2f62e0;
}
.sside {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 4px !important;
  border-radius: 8px;
  border: 1px solid;
  min-width: 0;
  flex-wrap: wrap;
}
.sside > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 90px;
}
.sside small {
  color: var(--p-muted);
}
.sside .pb {
  height: 30px;
  padding: 0 12px;
}
.wgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.wcol {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #f0f2f8;
  min-height: 300px;
  min-width: 0;
}
.wcol.today {
  background: #faf9ff;
}
.wcol-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: none;
  border-bottom: 1px solid var(--p-line);
  background: #fbfbfe;
  cursor: pointer;
}
.wcol-head small {
  color: var(--p-muted);
}
.wcol .sblock .av,
.wcol .sblock-side {
  display: none;
}
.adet-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.adet-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.adet-head small {
  color: var(--p-muted);
}
ul.adet {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.adet li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
ul.adet li svg.i {
  color: #4b34e0;
}
ul.adet li span {
  display: flex;
  flex-direction: column;
}
ul.adet small {
  color: var(--p-muted);
}
.adet-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adet-btns > .pb {
  width: 100%;
  height: 42px;
}
.ptable-wrap {
  overflow-x: auto;
}
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ptable th {
  text-align: left;
  padding: 10px;
  color: #36405f;
  font-weight: 650;
  border-bottom: 1px solid var(--p-line);
  white-space: nowrap;
}
.ptable td {
  padding: 10px;
  border-bottom: 1px solid #f0f2f8;
  vertical-align: middle;
}
.ptable td small {
  display: block;
  color: var(--p-muted);
}
.ptable tbody tr {
  cursor: pointer;
}
.ptable tbody tr:hover,
.ptable tr.on {
  background: #faf9ff;
}
.reason-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who > span:not(.av):not(.rf-icon) {
  display: flex;
  flex-direction: column;
}
.mode {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.mode svg.i {
  color: #2f62e0;
}
.row-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.row-btns .pb {
  height: 32px;
}

/* patients */
.pleft {
  gap: 10px;
}
.pchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pchips button {
  border: 1px solid var(--p-line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600 !important;
}
.pchips button.on {
  background: var(--p-indigo);
  border-color: transparent;
  color: #fff;
}
.plist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 820px;
  overflow-y: auto;
}
.pitem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-bottom-color: #f0f2f8;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.pitem:hover {
  background: var(--p-soft);
}
.pitem.on {
  background: #f4f2ff;
  border-color: #c9beff;
}
.pitem-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pitem-main small {
  color: var(--p-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pitem-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.pitem-side small {
  color: var(--p-muted);
}
.pcenter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pcenter > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phero {
  gap: 14px;
}
.phero-top {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.phero-name {
  flex: 1;
  min-width: 180px;
}
.phero-name h2 {
  font-size: 24px;
}
.phero-name p {
  color: var(--p-muted);
}
.phero-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.phero-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #36405f;
}
.phero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phero-facts svg.i {
  color: #4b34e0;
  width: 18px;
  height: 18px;
}
.ovtiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.ovtile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--p-line);
  min-width: 0;
}
.ovtile svg.i {
  color: #4b34e0;
}
.ovtile small {
  color: var(--p-muted);
  font-size: 12px;
}
.ovtile b {
  font-size: 17px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline li {
  display: grid;
  grid-template-columns: 34px 74px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}
.tl-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4b34e0;
}
.tl-icon svg.i {
  width: 16px;
  height: 16px;
}
.tl-at {
  color: var(--p-muted);
  font-size: 12px;
}
.timeline li > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.timeline small {
  color: var(--p-muted);
}
ul.mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul.mini li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #f0f2f8;
  border-radius: 10px;
}
ul.mini li > span:not(.chip):not(.rf-icon):not(.av) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
ul.mini li small {
  color: var(--p-muted);
  font-size: 12px;
}
ul.mini li svg.i {
  color: #e5484d;
  width: 18px;
  height: 18px;
}
ul.mini.big li b {
  overflow-wrap: anywhere;
}
.nextap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.nextap > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}
.nextap small {
  color: var(--p-muted);
}
.qactions {
  display: flex;
  flex-direction: column;
}
.qactions button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.qactions button > svg.i:last-child {
  margin-left: auto;
  color: var(--p-faint);
}
.qa-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.qa-icon svg.i {
  width: 17px;
  height: 17px;
}
.qa-icon.blue,
.qg.blue svg.i {
  background: #e3ecff;
  color: #2f62e0;
}
.qa-icon.purple,
.qg.purple svg.i {
  background: #ece5ff;
  color: #6d3df2;
}
.qa-icon.green,
.qg.green svg.i {
  background: #dcf5e7;
  color: #0f8a59;
}
.qa-icon.orange,
.qg.orange svg.i {
  background: #ffe9d4;
  color: #e2570a;
}
.qa-icon.red,
.qg.red svg.i {
  background: #ffe2e3;
  color: #d93a40;
}
.qa-icon.pink,
.qg.pink svg.i {
  background: #ffe2ec;
  color: #e0457b;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip.tag button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-weight: 800 !important;
  color: inherit;
}
.addtag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px dashed #b9adff;
  border-radius: 8px;
  background: none;
  color: #4b34e0 !important;
  cursor: pointer;
  font-weight: 600 !important;
}
.addtag svg.i {
  width: 15px;
  height: 15px;
}

/* video */
.vnow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #c9beff;
  background: #f6f4ff;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.vnow > span:not(.av) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vnow small {
  color: var(--p-muted);
}
.vnow .live {
  color: #16b46e;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f8;
}
.vrow > span:not(.av) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vrow small {
  color: var(--p-muted);
  font-size: 12px;
}
.vrow .pb {
  height: 32px;
}
ul.tlist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid #e4e1ff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.tlist li {
  display: flex;
  align-items: center;
  gap: 8px;
}
ul.tlist li > span:not(.av) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
ul.tlist small {
  color: var(--p-muted);
  font-size: 12px;
}
.vinfo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
}
.vinfo > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vacts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.vacts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.vacts button svg.i {
  color: #4b34e0;
}
.vacts small {
  font-size: 11px;
  text-align: center;
}
.chiprow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.vpill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.vpill span {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.vpill small {
  color: var(--p-muted);
  font-size: 11.5px;
}

/* messages */
.cleft {
  gap: 10px;
}
.clist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 760px;
  overflow-y: auto;
}
.citem {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-bottom-color: #f0f2f8;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.citem:hover {
  background: var(--p-soft);
}
.citem.on {
  background: #f4f2ff;
  border-color: #c9beff;
}
.citem-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.citem-top,
.citem-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.citem-top small {
  color: var(--p-muted);
  font-size: 12px;
  white-space: nowrap;
}
.citem-last {
  color: var(--p-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmain {
  gap: 12px;
}
.chead {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--p-line);
  flex-wrap: wrap;
}
.chead > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.chead small {
  color: var(--p-muted);
}
.chead-name {
  display: flex;
  gap: 8px;
  align-items: center;
}
.csym {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--p-soft);
  color: #36405f;
}
.ctools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--p-line);
  padding-top: 8px;
}
.qgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.qgrid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.qg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid var(--p-line);
  background: #fbfbfe;
  cursor: pointer;
  text-align: center;
}
.qg svg.i {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
}
.qg small {
  font-size: 11.5px;
  line-height: 1.25;
}

/* prescriptions */
.rxbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  padding: 6px 8px;
}
.rxbar .psearch {
  max-width: 380px;
  margin-left: auto;
}
.rxlist .plist {
  padding: 6px;
}
.rxform {
  gap: 12px;
}
.rxpatient {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.rxpatient > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rxpatient small {
  color: var(--p-muted);
}
.rxvitals {
  display: flex;
  flex-direction: column;
}
.rxmeds-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rxmed {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
}
.rxnum {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #c9beff;
  color: #4b34e0;
  font-weight: 700;
  flex: none;
}
.rxmed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rxmed-top {
  display: flex;
  gap: 8px;
}
.rxmed-top .pinput {
  flex: 1;
}
.rxextra {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.rxfoot {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
}
.rxpreview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  font-size: 12.5px;
  background: #fff;
}
.rxdoc-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rxdoc-brand img {
  width: 38px;
  height: 38px;
}
.rxdoc-brand div,
.rxdoc-who > div {
  display: flex;
  flex-direction: column;
}
.rxdoc-who {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.rxdoc-who small {
  color: var(--p-muted);
}
.rxdoc-meta {
  margin-left: auto;
  text-align: right;
}
.rxdoc-table {
  width: 100%;
  border-collapse: collapse;
}
.rxdoc-table th {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--p-line);
  font-weight: 650;
}
.rxdoc-table td {
  padding: 6px 4px;
  vertical-align: top;
}
.rxdoc-table tr.sub td {
  color: var(--p-muted);
  padding-top: 0;
  border-bottom: 1px solid #f0f2f8;
}
.rxdoc-add ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.rxdoc-sign {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.rxdoc-sign > div {
  display: flex;
  flex-direction: column;
}
.sigline {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 20px;
  color: #1e1b4b;
  border-bottom: 1px solid #c9cde0;
  margin-bottom: 4px;
}
.rxdoc-id {
  text-align: right;
  align-items: flex-end;
}
.rxdoc-id small {
  color: var(--p-muted);
}
.rxprev-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rxprev-btns .pb {
  padding: 0 8px;
}
ul.rxhist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
ul.rxhist button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px 4px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
ul.rxhist button:hover {
  background: var(--p-soft);
}
ul.rxhist small {
  color: var(--p-muted);
  width: 82px;
  flex: none;
}
ul.rxhist span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tpl-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tpl-use {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.tpl-use small {
  color: var(--p-muted);
}

/* records, reports */
.recs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rec-head > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rec-head small {
  color: var(--p-muted);
}
.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  height: 220px;
  padding-top: 10px;
}
.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
.bar small {
  color: var(--p-muted);
  font-size: 12px;
}
.bar-v {
  font-weight: 700;
  color: var(--p-text) !important;
}
.bar-fill {
  width: 70%;
  min-height: 3px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #7c4dff, #5b3df5);
}
ul.share {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.share li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}
ul.share li > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-bar {
  height: 10px;
  border-radius: 99px;
  background: #f0f2f8;
  overflow: hidden;
}
.share-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5b3df5, #f97316);
  border-radius: 99px;
}
ul.share b {
  text-align: right;
}
.docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
}
.doc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ece6ff;
  color: #6d3df2;
}
.doc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.doc-file a {
  word-break: break-all;
}
.upload input {
  display: none;
}

/* dialogs, the assistant */
.overlay,
.drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(13, 20, 66, 0.35);
}
.overlay {
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(13, 20, 66, 0.3);
  color: var(--p-text, #121a3a);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}
.modal-head h2 {
  font-size: 19px;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 18px;
}
.modal-body .plabel {
  font-size: 13px;
  font-weight: 600;
  color: #36405f;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.help > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.help p {
  color: #5d6685;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: -20px 0 50px rgba(13, 20, 66, 0.2);
  overflow-y: auto;
  color: #121a3a;
}
.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-head img {
  width: 40px;
  height: 40px;
}
.drawer-head > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.drawer-head h2 {
  font-size: 19px;
}
.drawer-head small {
  color: #5d6685;
}
.ai-ctx {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
}
.ai-sugg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-sugg button {
  border: 1px solid #e0dcff;
  background: #faf9ff;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #3b2fd1;
}
.ai-answer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.55;
}
.ai-answer ul {
  margin: 0;
  padding-left: 20px;
}
.ai-note {
  font-size: 12px;
  color: #8d95b0;
  border-top: 1px solid #e7eaf3;
  padding-top: 8px;
}

/* narrower screens */
@media (max-width: 1500px) {
  .stats.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dgrid.r1,
  .dgrid.r2,
  .dgrid.r3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dgrid.r1 > :first-child,
  .dgrid.r3 > :last-child {
    grid-column: 1 / -1;
  }
  .pgrid {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .pright {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vgrid {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .vgrid > :last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cgrid {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .cgrid > :last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rxgrid,
  .rxmain {
    grid-template-columns: minmax(0, 1fr);
  }
  .ovtiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pbrand {
    width: auto;
  }
}
@media (max-width: 1100px) {
  .portal {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .side-me > div,
  .side-nav a span,
  .side-ai p,
  .side-ai-head b {
    display: none;
  }
  .side-me {
    justify-content: center;
  }
  .side-nav a {
    justify-content: center;
    position: relative;
  }
  .side-nav a .side-badge {
    display: inline-grid;
    position: absolute;
    top: 2px;
    right: 4px;
  }
  .side-ai {
    padding: 8px;
  }
  .side-ai-btn {
    font-size: 0 !important;
    gap: 0;
  }
  .agrid,
  .pgrid,
  .vgrid,
  .cgrid,
  .vinfo,
  .ovgrid,
  .ovgrid.three,
  .ovgrid.wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .pright,
  .vgrid > :last-child,
  .cgrid > :last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .me-text,
  .pbrand-for {
    display: none;
  }
}
@media (max-width: 760px) {
  .portal {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .ptop {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }
  .qsearch {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .ptop-right {
    gap: 4px;
  }
  .ptop .online.top {
    display: none;
  }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 8px;
    border-radius: 0;
    overflow-x: auto;
  }
  .side-me,
  .side-ai {
    display: none;
  }
  .side-nav {
    flex-direction: row;
  }
  .pwrap {
    padding: 12px 16px 24px;
  }
  .stats.five,
  .stats.four,
  .dgrid.r1,
  .dgrid.r2,
  .dgrid.r3,
  .ctiles,
  .aicard-btns,
  .pgrid2,
  .pgrid4,
  .rxextra,
  .ovtiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .dgrid.r1 > :first-child,
  .dgrid.r3 > :last-child {
    grid-column: auto;
  }
  .sched-head,
  .sched-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .sched-head span:nth-child(n + 3),
  .sched-row > :nth-child(n + 3) {
    display: none;
  }
  .wgrid,
  .cal-week {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
    overflow-x: auto;
  }
  .vacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  ul.share li {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .share-bar {
    display: none;
  }
  .stage-note {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }
}

/* printing a prescription: only the preview */
@media print {
  body * {
    visibility: hidden;
  }
  .rx-print,
  .rx-print * {
    visibility: visible;
  }
  .rx-print {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
  }
  .rxpreview {
    border: none;
    font-size: 13px;
  }
}

/* fitting long names and labels */
.side > * {
  flex-shrink: 0;
}
.pitem-main b,
.trow-main b,
.rrow-main b,
.who b,
.citem-top b,
.vrow b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who > span:not(.av):not(.rf-icon) {
  min-width: 0;
  white-space: nowrap;
}
.stat-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sbar .psel,
.sbar select,
.prow select {
  width: auto;
  flex: none;
}
.aicard-btns .pb {
  white-space: normal;
  height: auto;
  min-height: 40px;
  padding: 6px 10px;
}
.ovgrid.three {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.ovtiles {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}
.pitem .chip {
  padding: 2px 8px;
  font-size: 11.5px;
}
.trow .chip {
  font-size: 11.5px;
  padding: 2px 8px;
}
@media (max-width: 1500px) {
  .ovtiles {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

.online.side {
  white-space: nowrap;
  flex: none;
}
.stage {
  min-height: 430px;
}
.stage-patient {
  padding-bottom: 150px;
}
.stage.small .stage-patient {
  padding-bottom: 70px;
}
.vgrid .pb,
.pair2 .pb,
.rxprev-btns .pb {
  white-space: normal;
  height: auto;
  min-height: 38px;
  min-width: 0;
  padding: 6px 10px;
  line-height: 1.2;
}
.rxprev-btns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rxprev-btns .pb.primary {
  grid-column: 1 / -1;
}
ul.tlist li > span:not(.av) small {
  display: none;
}
.chead select {
  max-width: 260px;
}
.online.side {
  display: inline-flex;
  flex-direction: row;
  overflow: visible;
  height: auto;
  min-height: 26px;
  padding: 3px 10px;
}

/* ---- records, lab, reports, earnings, availability, profile, certificates, settings ---- */
.av.huge {
  width: 150px;
  height: 150px;
  font-size: 46px;
  border-radius: 18px;
}
img.av {
  object-fit: cover;
  background: #eef0f5;
}
.hide-input {
  display: none;
}
.down {
  color: #d93a40;
}
.danger-text {
  color: #d93a40;
}
.stats.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stats.six .stat {
  padding: 14px 12px;
  gap: 10px;
}
.stats.six .stat-icon {
  width: 44px;
  height: 44px;
}
.stats.six .stat-sub {
  white-space: normal;
}
.pgrid.records,
.pgrid.labs {
  grid-template-columns: 290px minmax(0, 1fr) 270px;
}
.pgrid.labs {
  grid-template-columns: 290px minmax(0, 1fr) 320px;
}
.rf-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.rf-icon svg.i {
  width: 18px;
  height: 18px;
}
.rf-icon.big {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.rf-icon.big svg.i {
  width: 26px;
  height: 26px;
}
.rf-icon.red {
  background: #ffe2e3;
  color: #d93a40;
}
.rf-icon.pink {
  background: #ffe2ec;
  color: #e0457b;
}
.rf-icon.green {
  background: #dcf5e7;
  color: #0f8a59;
}
.rf-icon.blue {
  background: #e3ecff;
  color: #2f62e0;
}
.rf-icon.purple {
  background: #ece5ff;
  color: #6d3df2;
}
.rf-icon.amber {
  background: #ffefd2;
  color: #c26a00;
}
.rf-icon.grey {
  background: #eef0f5;
  color: #56607d;
}
.rec-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
}
.rhead {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.rhead-who {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1 1 300px;
  min-width: 0;
}
.rhead-who .av.xxl {
  width: 84px;
  height: 84px;
}
.rhead-who h2 {
  font-size: 22px;
}
.rhead-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 0;
}
.rhead-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 14px;
  border-left: 1px solid var(--p-line);
  min-width: 0;
}
.rhead-facts small {
  color: var(--p-muted);
  font-size: 12px;
}
.rhead-facts b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.lastvisit {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.lastvisit span {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lastvisit small {
  color: var(--p-muted);
}
.lastvisit b {
  font-size: 18px;
}
.lastvisit svg.big2 {
  color: #4b34e0;
}
.tabs-card {
  padding: 4px 16px 0;
}
.tabs-card .utabs {
  border-bottom: none;
}
ul.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.notes-list li {
  display: grid;
  grid-template-columns: 34px 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
ul.notes-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
ul.notes-list small {
  color: var(--p-muted);
}
.ptable.compact td,
.ptable.compact th {
  padding: 8px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ul.plan-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
ul.plan-list label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  cursor: pointer;
  font-size: 13.5px;
}
ul.plan-list input {
  accent-color: #16b46e;
  margin-top: 3px;
}
ul.plan-list li.done span {
  color: var(--p-muted);
  text-decoration: line-through;
}
.plan-add {
  display: flex;
  gap: 8px;
}
.plan-add .pinput {
  flex: 1;
}
.checks2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.checks2 label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--p-text);
}
.labbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.labbar .psel {
  width: auto;
}
.labbar .psearch {
  max-width: 300px;
}
.result-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.result-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--p-soft);
}
.result-box small {
  display: block;
  color: var(--p-muted);
}
.result-v {
  font-size: 30px;
}
.result-v.danger {
  color: #d93a40;
}
.result-v.warning {
  color: #c26a00;
}
.result-v.normal {
  color: #0f8a59;
}
.gauge {
  position: relative;
  height: 22px;
}
.gauge-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #22c55e 0 55%, #f59e0b 55% 77%, #ef4444 77%);
}
.gauge-mark {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #121a3a;
  transform: translateX(-7px);
}
.interp {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #f4f6ff;
}
.interp > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.interp p {
  color: var(--p-muted);
  font-size: 13px;
}
.interp svg.i {
  color: #4b34e0;
}
.interp.ai {
  background: #fff;
  border: 1px solid var(--p-line);
}
.interp.ai img {
  width: 30px;
  height: 30px;
}
.pair3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pair3 .pb {
  white-space: normal;
  height: auto;
  min-height: 38px;
  padding: 6px;
  font-size: 12.5px;
  line-height: 1.2;
}
.qrow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.qtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid var(--p-line);
  cursor: pointer;
  font-weight: 600 !important;
}
.qtile svg.i {
  width: 26px;
  height: 26px;
}
.qtile:disabled {
  opacity: 0.5;
  cursor: default;
}
.qtile.pink {
  background: #fff1f5;
  color: #e0457b !important;
}
.qtile.blue {
  background: #eef4ff;
  color: #2f62e0 !important;
}
.qtile.purple {
  background: #f4f0ff;
  color: #6d3df2 !important;
}
.qtile.orange {
  background: #fff5ec;
  color: #e2570a !important;
}
.qtile.green {
  background: #effaf4;
  color: #0f8a59 !important;
}

/* charts */
.donut {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.donut-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex: none;
}
.donut-ring svg {
  width: 100%;
  height: 100%;
}
.donut-ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-ring b {
  font-size: 20px;
}
.donut-ring small {
  font-size: 11px;
  color: var(--p-muted);
}
ul.donut-key {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 150px;
}
ul.donut-key li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
ul.donut-key li span {
  flex: 1;
}
ul.donut-key i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.linechart svg {
  width: 100%;
  height: auto;
  display: block;
}
ul.share li {
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto;
}

/* earnings */
.egrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}
.payout {
  display: flex;
  gap: 12px;
  align-items: center;
}
.payout > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.payout small {
  color: var(--p-muted);
}
.steps3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.steps3 span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--p-muted);
  flex: 1;
  text-align: center;
}
.steps3 i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c9cde0;
}
.steps3 span.on i {
  background: #5b3df5;
  border-color: #5b3df5;
}
.qgrid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* availability */
.avail-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.meter {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #eef0f5;
  margin-top: 5px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: #5b3df5;
}
.acal-wrap {
  overflow-x: auto;
}
.acal {
  display: grid;
  min-width: 640px;
}
.acal-corner,
.acal-day {
  border-bottom: 1px solid var(--p-line);
  background: #fbfbfe;
}
.acal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-left: 1px solid var(--p-line);
}
.acal-day small {
  color: var(--p-muted);
}
.acal-day.today {
  background: #f1efff;
  color: #4b34e0;
}
.acal-time {
  padding: 8px;
  font-size: 12px;
  color: var(--p-muted);
  border-bottom: 1px solid #f0f2f8;
}
.acell {
  min-height: 46px;
  border-left: 1px solid #f0f2f8;
  border-bottom: 1px solid #f0f2f8;
  padding: 3px;
  min-width: 0;
}
.acell.free small {
  color: #9aa3bb;
  font-size: 11px;
  padding: 4px;
}
.acell.closed {
  background: #fafbfe;
}
.acell.off {
  background: repeating-linear-gradient(135deg, #f7f8fc, #f7f8fc 6px, #eef0f6 6px, #eef0f6 12px);
}
.acell.ev,
.acell.block {
  display: flex;
  gap: 6px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid;
  margin: 3px;
  padding: 4px 6px;
  text-align: left;
  min-height: 40px;
  cursor: pointer;
}
.acell.ev span,
.acell.block span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.acell.ev b,
.acell.block b,
.acell.ev small,
.acell.block small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.acell.ev small,
.acell.block small {
  font-size: 11px;
  color: var(--p-muted);
}
.acell.ev.blue {
  background: #eef4ff;
  border-color: #bcd2ff;
  color: #2f62e0;
}
.acell.ev.green {
  background: #ecfaf2;
  border-color: #a9e5c6;
  color: #0f8a59;
}
.acell.ev.orange {
  background: #fff4ea;
  border-color: #fbcf9f;
  color: #e2570a;
}
.acell.ev b {
  color: var(--p-text);
}
.acell.block {
  background: #f3f0ff;
  border-color: #d9d0ff;
  color: #6d3df2;
  cursor: default;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--p-muted);
}
.legend i.lg {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-left: 8px;
  border: 1px solid var(--p-line);
}
.legend i.lg.free {
  background: #fff;
}
.legend i.lg.block {
  background: #f3f0ff;
  border-color: #d9d0ff;
}
.legend i.lg.off {
  background: #eef0f6;
}
.whours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px auto 100px auto;
  gap: 6px;
  align-items: center;
}
.wrow label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.wrow input {
  accent-color: #5b3df5;
}
select.pinput.small {
  height: 32px;
  padding: 0 6px;
  font-size: 12.5px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f8;
}
.toggle-row:last-child {
  border-bottom: none;
}
.toggle-row > span:not(.rf-icon) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.toggle-row small {
  color: var(--p-muted);
  font-size: 12px;
}
.portal .switch,
.drawer .switch,
button.switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  border: none;
  background: #d5d9e6;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.switch.on {
  background: #5b3df5;
}
.switch.on i {
  left: 21px;
}
.switch:disabled {
  opacity: 0.5;
  cursor: default;
}

/* profile */
.profhead {
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.profphoto {
  position: relative;
  flex: none;
}
.profphoto img {
  width: 170px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}
.profphoto .av.huge {
  width: 170px;
  height: 170px;
}
.pb.cam {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: #1f2546;
  color: #fff !important;
}
.profmain {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profmain h2 {
  font-size: 26px;
}
.proffacts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #36405f;
}
.proffacts span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.proffacts svg.i {
  width: 17px;
  height: 17px;
  color: #4b34e0;
}
.profmain svg.xs {
  color: #f59e0b;
  fill: #f59e0b;
}
.profbio {
  color: #36405f;
  max-width: 620px;
}
.profside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 380px;
}
.profstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pstat {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 12px;
}
.pstat span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pstat small {
  font-size: 11.5px;
  color: var(--p-muted);
}
.pstat b {
  font-size: 20px;
}
.pstat.purple {
  background: #f4f0ff;
  color: #6d3df2;
}
.pstat.green {
  background: #effaf4;
  color: #0f8a59;
}
.pstat.amber {
  background: #fff8ec;
  color: #e08a00;
}
.pstat.pink {
  background: #fff2f6;
  color: #e0457b;
}
.pstat b {
  color: var(--p-text);
}
.dgrid.prof {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
}
.prow2 {
  display: grid;
  grid-template-columns: 22px 130px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  font-size: 13.5px;
}
.prow2 svg.i {
  width: 18px;
  height: 18px;
  color: #36405f;
}
.prow2 span:last-child {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
ul.edu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ul.edu li {
  display: grid;
  grid-template-columns: 30px 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.edu-icon {
  color: #4b34e0;
}
.edu-year {
  color: #4b34e0;
}
ul.edu li > span {
  display: flex;
  flex-direction: column;
}
ul.edu small {
  color: var(--p-muted);
}
.photocard {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 40px;
}
.photocard .cover {
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #e9e4ff, #ffe8dc);
}
.photocard .bigphoto,
.photocard .av.huge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}
.pubprof ul {
  margin: 0;
  padding-left: 18px;
}

/* certificates */
.docs-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px;
  border: 2px dashed #c9beff;
  border-radius: 12px;
  background: #faf9ff;
  text-align: center;
  cursor: pointer;
  color: #36405f;
}
.dropzone svg.i {
  width: 34px;
  height: 34px;
  color: #5b3df5;
}
.dropzone u {
  color: #4b34e0;
}
.dropzone.over {
  background: #f0ecff;
}
.verify {
  border-color: #c9beff;
  background: #faf9ff;
}
.qlinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qlinks a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f4f6ff;
  text-decoration: none;
  color: #121a3a;
  font-weight: 600;
}
.qlinks a span {
  flex: 1;
}
.qlinks svg.i {
  color: #4b34e0;
  width: 18px;
  height: 18px;
}
.row-btns a.pb {
  height: 32px;
  text-decoration: none;
}

/* settings */
.ovgrid.set1 {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.setprof {
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}
.setprof-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex: 0 0 210px;
}
.setprof-left .center {
  display: flex;
  justify-content: center;
}
.setprof-left .av.huge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  font-size: 34px;
}
.setprof-form {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pwgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
}
ul.rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--p-muted);
}
ul.rules li {
  display: flex;
  gap: 6px;
  align-items: center;
}
ul.rules li.ok {
  color: #0f8a59;
}
.pinfo.ok {
  background: #e6f8ee;
  color: #0f8a59;
}
div.pinfo {
  flex-wrap: wrap;
}
div.pinfo > span {
  flex: 1;
}

@media (max-width: 1500px) {
  .stats.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pgrid.records,
  .pgrid.labs {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .pgrid.records > :last-child,
  .pgrid.labs > :last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qrow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dgrid.prof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .egrid,
  .ovgrid.set1 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .pgrid.records,
  .pgrid.labs,
  .avail-grid,
  .docs-grid,
  .rec-top,
  .dgrid.prof {
    grid-template-columns: minmax(0, 1fr);
  }
  .pgrid.records > :last-child,
  .pgrid.labs > :last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .rhead-facts {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .stats.six,
  .qrow,
  .checks2,
  .profstats,
  .pwgrid,
  .pair3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .wrow {
    grid-template-columns: minmax(0, 1fr) 84px auto 84px;
  }
  .wrow .iconbtn {
    display: none;
  }
}

.psel {
  width: auto;
}
.side-nav a {
  white-space: nowrap;
  font-size: 14px;
}
.pc-head {
  flex-wrap: wrap;
}
.pc-head .seg button {
  padding: 5px 9px;
  font-size: 12.5px;
}
.pcenter > div.rec-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  flex-direction: unset;
}
.ovtiles {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.pleft .pitem > svg.i:last-child {
  display: none;
}
.pleft .pitem .av.lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.pleft .pitem {
  gap: 10px;
  padding: 10px 8px;
}
.pleft .pitem-side {
  flex: none;
}
.pleft .pitem-side .chip,
.pleft .pitem > .chip {
  font-size: 11px;
  padding: 2px 7px;
}
.wrow {
  grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr) auto;
}
.wrow select.pinput.small {
  width: 100%;
}
@media (max-width: 1100px) {
  .pcenter > div.rec-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* account security */
.mfa {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mfa > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.secscore .donut-ring {
  width: 120px;
  height: 120px;
}
.inline-chip {
  margin-left: 8px;
  font-size: 11px;
  padding: 1px 7px;
}
ul.mini.activity li > small {
  white-space: nowrap;
  font-size: 12px;
}
.qrbox {
  display: flex;
  justify-content: center;
}
img.qr {
  width: 190px;
  height: 190px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}
code.key {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f6ff;
  font-size: 14px;
  letter-spacing: 0.06em;
  word-break: break-all;
}
.code-input {
  font-size: 20px !important;
  letter-spacing: 0.18em;
  text-align: center;
}
.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.codes code {
  padding: 8px;
  border-radius: 8px;
  background: #f4f6ff;
  text-align: center;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}
.agree-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
